2019-01-18 01:50:10 +00:00
|
|
|
/*
|
|
|
|
Copyright 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. DO NOT EDIT.
|
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto
|
|
|
|
|
|
|
|
package v1beta1
|
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
io "io"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
v11 "k8s.io/api/core/v1"
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
reflect "reflect"
|
|
|
|
strings "strings"
|
|
|
|
)
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
2021-05-15 10:08:31 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
func (m *CronJob) Reset() { *m = CronJob{} }
|
|
|
|
func (*CronJob) ProtoMessage() {}
|
|
|
|
func (*CronJob) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{0}
|
|
|
|
}
|
|
|
|
func (m *CronJob) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *CronJob) 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 *CronJob) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CronJob.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CronJob) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *CronJob) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CronJob.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CronJob proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *CronJobList) Reset() { *m = CronJobList{} }
|
|
|
|
func (*CronJobList) ProtoMessage() {}
|
|
|
|
func (*CronJobList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{1}
|
|
|
|
}
|
|
|
|
func (m *CronJobList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *CronJobList) 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 *CronJobList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CronJobList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CronJobList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *CronJobList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CronJobList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CronJobList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *CronJobSpec) Reset() { *m = CronJobSpec{} }
|
|
|
|
func (*CronJobSpec) ProtoMessage() {}
|
|
|
|
func (*CronJobSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{2}
|
|
|
|
}
|
|
|
|
func (m *CronJobSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *CronJobSpec) 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 *CronJobSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CronJobSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CronJobSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *CronJobSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CronJobSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_CronJobSpec proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *CronJobStatus) Reset() { *m = CronJobStatus{} }
|
|
|
|
func (*CronJobStatus) ProtoMessage() {}
|
|
|
|
func (*CronJobStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{3}
|
|
|
|
}
|
|
|
|
func (m *CronJobStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *CronJobStatus) 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 *CronJobStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CronJobStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CronJobStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *CronJobStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CronJobStatus.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_CronJobStatus proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *JobTemplate) Reset() { *m = JobTemplate{} }
|
|
|
|
func (*JobTemplate) ProtoMessage() {}
|
|
|
|
func (*JobTemplate) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{4}
|
|
|
|
}
|
|
|
|
func (m *JobTemplate) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *JobTemplate) 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 *JobTemplate) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_JobTemplate.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *JobTemplate) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *JobTemplate) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_JobTemplate.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_JobTemplate proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *JobTemplateSpec) Reset() { *m = JobTemplateSpec{} }
|
|
|
|
func (*JobTemplateSpec) ProtoMessage() {}
|
|
|
|
func (*JobTemplateSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e57b277b05179ae7, []int{5}
|
|
|
|
}
|
|
|
|
func (m *JobTemplateSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *JobTemplateSpec) 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 *JobTemplateSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_JobTemplateSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *JobTemplateSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *JobTemplateSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_JobTemplateSpec.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_JobTemplateSpec proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*CronJob)(nil), "k8s.io.api.batch.v1beta1.CronJob")
|
|
|
|
proto.RegisterType((*CronJobList)(nil), "k8s.io.api.batch.v1beta1.CronJobList")
|
|
|
|
proto.RegisterType((*CronJobSpec)(nil), "k8s.io.api.batch.v1beta1.CronJobSpec")
|
|
|
|
proto.RegisterType((*CronJobStatus)(nil), "k8s.io.api.batch.v1beta1.CronJobStatus")
|
|
|
|
proto.RegisterType((*JobTemplate)(nil), "k8s.io.api.batch.v1beta1.JobTemplate")
|
|
|
|
proto.RegisterType((*JobTemplateSpec)(nil), "k8s.io.api.batch.v1beta1.JobTemplateSpec")
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/batch/v1beta1/generated.proto", fileDescriptor_e57b277b05179ae7)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_e57b277b05179ae7 = []byte{
|
|
|
|
// 794 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x95, 0x41, 0x6f, 0x1b, 0x45,
|
|
|
|
0x14, 0xc7, 0xbd, 0x4e, 0x1c, 0xbb, 0x63, 0x0a, 0xe9, 0x80, 0x52, 0xcb, 0xa0, 0xdd, 0xe0, 0xaa,
|
|
|
|
0x22, 0x20, 0x3a, 0x4b, 0x22, 0x84, 0x38, 0x21, 0x75, 0x8b, 0x0a, 0x84, 0xa0, 0xa2, 0x71, 0x11,
|
|
|
|
0x12, 0xaa, 0x50, 0x67, 0x67, 0x5f, 0x9c, 0x69, 0x76, 0x77, 0x56, 0x3b, 0xb3, 0x91, 0x72, 0xe3,
|
|
|
|
0xc2, 0x9d, 0x2f, 0xc2, 0x89, 0x3b, 0xe7, 0x1c, 0x7b, 0xec, 0x69, 0x45, 0x96, 0x6f, 0xc1, 0x09,
|
|
|
|
0xed, 0x78, 0xbd, 0x76, 0xed, 0x75, 0xd3, 0x5e, 0x72, 0xf3, 0xbc, 0xf9, 0xff, 0x7f, 0xf3, 0xf6,
|
|
|
|
0xbd, 0x37, 0x63, 0x74, 0xff, 0xf4, 0x4b, 0x45, 0x84, 0x74, 0x4f, 0x33, 0x1f, 0xd2, 0x18, 0x34,
|
|
|
|
0x28, 0xf7, 0x0c, 0xe2, 0x40, 0xa6, 0x6e, 0xb5, 0xc1, 0x12, 0xe1, 0xfa, 0x4c, 0xf3, 0x13, 0xf7,
|
|
|
|
0x6c, 0xdf, 0x07, 0xcd, 0xf6, 0xdd, 0x09, 0xc4, 0x90, 0x32, 0x0d, 0x01, 0x49, 0x52, 0xa9, 0x25,
|
|
|
|
0x1e, 0x4c, 0x95, 0x84, 0x25, 0x82, 0x18, 0x25, 0xa9, 0x94, 0xc3, 0x7b, 0x13, 0xa1, 0x4f, 0x32,
|
|
|
|
0x9f, 0x70, 0x19, 0xb9, 0x13, 0x39, 0x91, 0xae, 0x31, 0xf8, 0xd9, 0xb1, 0x59, 0x99, 0x85, 0xf9,
|
|
|
|
0x35, 0x05, 0x0d, 0xef, 0x34, 0x1c, 0xb9, 0x7c, 0xda, 0x70, 0xb4, 0x20, 0xe2, 0x32, 0x85, 0x26,
|
|
|
|
0xcd, 0xe7, 0x73, 0x4d, 0xc4, 0xf8, 0x89, 0x88, 0x21, 0x3d, 0x77, 0x93, 0xd3, 0x49, 0x19, 0x50,
|
|
|
|
0x6e, 0x04, 0x9a, 0x35, 0xb9, 0xdc, 0x75, 0xae, 0x34, 0x8b, 0xb5, 0x88, 0x60, 0xc5, 0xf0, 0xc5,
|
|
|
|
0x55, 0x06, 0xc5, 0x4f, 0x20, 0x62, 0xcb, 0xbe, 0xd1, 0xef, 0x6d, 0xd4, 0x7d, 0x90, 0xca, 0xf8,
|
|
|
|
0x50, 0xfa, 0xf8, 0x29, 0xea, 0x95, 0xf9, 0x04, 0x4c, 0xb3, 0x81, 0xb5, 0x6b, 0xed, 0xf5, 0x0f,
|
|
|
|
0x3e, 0x23, 0xf3, 0x7a, 0xd6, 0x58, 0x92, 0x9c, 0x4e, 0xca, 0x80, 0x22, 0xa5, 0x9a, 0x9c, 0xed,
|
|
|
|
0x93, 0x47, 0xfe, 0x33, 0xe0, 0xfa, 0x07, 0xd0, 0xcc, 0xc3, 0x17, 0xb9, 0xd3, 0x2a, 0x72, 0x07,
|
|
|
|
0xcd, 0x63, 0xb4, 0xa6, 0xe2, 0x6f, 0xd0, 0xa6, 0x4a, 0x80, 0x0f, 0xda, 0x86, 0x7e, 0x97, 0xac,
|
|
|
|
0xeb, 0x16, 0xa9, 0x52, 0x1a, 0x27, 0xc0, 0xbd, 0xb7, 0x2a, 0xe4, 0x66, 0xb9, 0xa2, 0x06, 0x80,
|
|
|
|
0x1f, 0xa1, 0x2d, 0xa5, 0x99, 0xce, 0xd4, 0x60, 0xc3, 0xa0, 0x3e, 0xba, 0x1a, 0x65, 0xe4, 0xde,
|
|
|
|
0xdb, 0x15, 0x6c, 0x6b, 0xba, 0xa6, 0x15, 0x66, 0xf4, 0x97, 0x85, 0xfa, 0x95, 0xf2, 0x48, 0x28,
|
|
|
|
0x8d, 0x9f, 0xac, 0xd4, 0x82, 0xbc, 0x5e, 0x2d, 0x4a, 0xb7, 0xa9, 0xc4, 0x76, 0x75, 0x52, 0x6f,
|
|
|
|
0x16, 0x59, 0xa8, 0xc3, 0x43, 0xd4, 0x11, 0x1a, 0x22, 0x35, 0x68, 0xef, 0x6e, 0xec, 0xf5, 0x0f,
|
|
|
|
0x3e, 0xbc, 0x32, 0x7b, 0xef, 0x66, 0x45, 0xeb, 0x7c, 0x57, 0xfa, 0xe8, 0xd4, 0x3e, 0xfa, 0x73,
|
|
|
|
0xb3, 0xce, 0xba, 0x2c, 0x0e, 0xfe, 0x14, 0xf5, 0xca, 0x3e, 0x07, 0x59, 0x08, 0x26, 0xeb, 0x1b,
|
|
|
|
0xf3, 0x2c, 0xc6, 0x55, 0x9c, 0xd6, 0x0a, 0xfc, 0x13, 0xba, 0xad, 0x34, 0x4b, 0xb5, 0x88, 0x27,
|
|
|
|
0x5f, 0x03, 0x0b, 0x42, 0x11, 0xc3, 0x18, 0xb8, 0x8c, 0x03, 0x65, 0x1a, 0xb4, 0xe1, 0xbd, 0x5f,
|
|
|
|
0xe4, 0xce, 0xed, 0x71, 0xb3, 0x84, 0xae, 0xf3, 0xe2, 0x27, 0xe8, 0x16, 0x97, 0x31, 0xcf, 0xd2,
|
|
|
|
0x14, 0x62, 0x7e, 0xfe, 0xa3, 0x0c, 0x05, 0x3f, 0x37, 0x6d, 0xba, 0xe1, 0x91, 0x2a, 0x9b, 0x5b,
|
|
|
|
0x0f, 0x96, 0x05, 0xff, 0x35, 0x05, 0xe9, 0x2a, 0x08, 0xdf, 0x45, 0x5d, 0x95, 0xa9, 0x04, 0xe2,
|
|
|
|
0x60, 0xb0, 0xb9, 0x6b, 0xed, 0xf5, 0xbc, 0x7e, 0x91, 0x3b, 0xdd, 0xf1, 0x34, 0x44, 0x67, 0x7b,
|
|
|
|
0xf8, 0x29, 0xea, 0x3f, 0x93, 0xfe, 0x63, 0x88, 0x92, 0x90, 0x69, 0x18, 0x74, 0x4c, 0x0b, 0x3f,
|
|
|
|
0x5e, 0x5f, 0xe7, 0xc3, 0xb9, 0xd8, 0x0c, 0xdd, 0xbb, 0x55, 0xa6, 0xfd, 0x85, 0x0d, 0xba, 0x88,
|
|
|
|
0xc4, 0xbf, 0xa2, 0xa1, 0xca, 0x38, 0x07, 0xa5, 0x8e, 0xb3, 0xf0, 0x50, 0xfa, 0xea, 0x5b, 0xa1,
|
|
|
|
0xb4, 0x4c, 0xcf, 0x8f, 0x44, 0x24, 0xf4, 0x60, 0x6b, 0xd7, 0xda, 0xeb, 0x78, 0x76, 0x91, 0x3b,
|
|
|
|
0xc3, 0xf1, 0x5a, 0x15, 0x7d, 0x05, 0x01, 0x53, 0xb4, 0x73, 0xcc, 0x44, 0x08, 0xc1, 0x0a, 0xbb,
|
|
|
|
0x6b, 0xd8, 0xc3, 0x22, 0x77, 0x76, 0x1e, 0x36, 0x2a, 0xe8, 0x1a, 0xe7, 0xe8, 0xef, 0x36, 0xba,
|
|
|
|
0xf9, 0xd2, 0x7d, 0xc0, 0xdf, 0xa3, 0x2d, 0xc6, 0xb5, 0x38, 0x2b, 0xe7, 0xa5, 0x1c, 0xc5, 0x3b,
|
|
|
|
0x8b, 0x25, 0x2a, 0xdf, 0xb4, 0xf9, 0xfd, 0xa6, 0x70, 0x0c, 0x65, 0x27, 0x60, 0x7e, 0x89, 0xee,
|
|
|
|
0x1b, 0x2b, 0xad, 0x10, 0x38, 0x44, 0xdb, 0x21, 0x53, 0x7a, 0x36, 0x6a, 0x8f, 0x45, 0x04, 0xa6,
|
|
|
|
0x49, 0xfd, 0x83, 0x4f, 0x5e, 0xef, 0xf2, 0x94, 0x0e, 0xef, 0xbd, 0x22, 0x77, 0xb6, 0x8f, 0x96,
|
|
|
|
0x38, 0x74, 0x85, 0x8c, 0x53, 0x84, 0x4d, 0xac, 0x2e, 0xa1, 0x39, 0xaf, 0xf3, 0xc6, 0xe7, 0xed,
|
|
|
|
0x14, 0xb9, 0x83, 0x8f, 0x56, 0x48, 0xb4, 0x81, 0x3e, 0xba, 0xb0, 0xd0, 0xe2, 0x44, 0x5c, 0xc3,
|
|
|
|
0x93, 0xf9, 0x33, 0xea, 0xe9, 0xd9, 0x14, 0xb7, 0xdf, 0x74, 0x8a, 0xeb, 0xdb, 0x5f, 0x8f, 0x70,
|
|
|
|
0x0d, 0x2b, 0x5f, 0xbc, 0x77, 0x96, 0xf4, 0xd7, 0xf0, 0x39, 0x5f, 0xbd, 0xf4, 0x0f, 0xf0, 0x41,
|
|
|
|
0xd3, 0xa7, 0x90, 0x57, 0x3c, 0xfc, 0xde, 0xbd, 0x8b, 0x4b, 0xbb, 0xf5, 0xfc, 0xd2, 0x6e, 0xbd,
|
|
|
|
0xb8, 0xb4, 0x5b, 0xbf, 0x15, 0xb6, 0x75, 0x51, 0xd8, 0xd6, 0xf3, 0xc2, 0xb6, 0x5e, 0x14, 0xb6,
|
|
|
|
0xf5, 0x4f, 0x61, 0x5b, 0x7f, 0xfc, 0x6b, 0xb7, 0x7e, 0xe9, 0x56, 0x05, 0xf9, 0x3f, 0x00, 0x00,
|
|
|
|
0xff, 0xff, 0xe9, 0xe0, 0x40, 0x92, 0x53, 0x08, 0x00, 0x00,
|
|
|
|
}
|
|
|
|
|
2019-01-18 01:50:10 +00:00
|
|
|
func (m *CronJob) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJob) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJob) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.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
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.ListMeta.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
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.FailedJobsHistoryLimit != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.FailedJobsHistoryLimit))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x38
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.SuccessfulJobsHistoryLimit != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.SuccessfulJobsHistoryLimit))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.JobTemplate.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
2019-01-18 01:50:10 +00:00
|
|
|
if m.Suspend != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
if *m.Suspend {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.ConcurrencyPolicy)
|
|
|
|
copy(dAtA[i:], m.ConcurrencyPolicy)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConcurrencyPolicy)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
if m.StartingDeadlineSeconds != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.StartingDeadlineSeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Schedule)
|
|
|
|
copy(dAtA[i:], m.Schedule)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Schedule)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.LastSuccessfulTime != nil {
|
|
|
|
{
|
|
|
|
size, err := m.LastSuccessfulTime.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if m.LastScheduleTime != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.LastScheduleTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x22
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
if len(m.Active) > 0 {
|
|
|
|
for iNdEx := len(m.Active) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Active[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplate) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplate) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x12
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x12
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
2021-05-15 10:08:31 +00:00
|
|
|
offset -= sovGenerated(v)
|
|
|
|
base := offset
|
2019-01-18 01:50:10 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2021-05-15 10:08:31 +00:00
|
|
|
return base
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
func (m *CronJob) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +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
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Schedule)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.StartingDeadlineSeconds != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.StartingDeadlineSeconds))
|
|
|
|
}
|
|
|
|
l = len(m.ConcurrencyPolicy)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.Suspend != nil {
|
|
|
|
n += 2
|
|
|
|
}
|
|
|
|
l = m.JobTemplate.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.SuccessfulJobsHistoryLimit != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.SuccessfulJobsHistoryLimit))
|
|
|
|
}
|
|
|
|
if m.FailedJobsHistoryLimit != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.FailedJobsHistoryLimit))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CronJobStatus) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Active) > 0 {
|
|
|
|
for _, e := range m.Active {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if m.LastScheduleTime != nil {
|
|
|
|
l = m.LastScheduleTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.LastSuccessfulTime != nil {
|
|
|
|
l = m.LastSuccessfulTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplate) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Template.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *JobTemplateSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *CronJob) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&CronJob{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "CronJobSpec", "CronJobSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "CronJobStatus", "CronJobStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *CronJobList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]CronJob{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "CronJob", "CronJob", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&CronJobList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *CronJobSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&CronJobSpec{`,
|
|
|
|
`Schedule:` + fmt.Sprintf("%v", this.Schedule) + `,`,
|
|
|
|
`StartingDeadlineSeconds:` + valueToStringGenerated(this.StartingDeadlineSeconds) + `,`,
|
|
|
|
`ConcurrencyPolicy:` + fmt.Sprintf("%v", this.ConcurrencyPolicy) + `,`,
|
|
|
|
`Suspend:` + valueToStringGenerated(this.Suspend) + `,`,
|
|
|
|
`JobTemplate:` + strings.Replace(strings.Replace(this.JobTemplate.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`SuccessfulJobsHistoryLimit:` + valueToStringGenerated(this.SuccessfulJobsHistoryLimit) + `,`,
|
|
|
|
`FailedJobsHistoryLimit:` + valueToStringGenerated(this.FailedJobsHistoryLimit) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *CronJobStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForActive := "[]ObjectReference{"
|
|
|
|
for _, f := range this.Active {
|
|
|
|
repeatedStringForActive += fmt.Sprintf("%v", f) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForActive += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&CronJobStatus{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Active:` + repeatedStringForActive + `,`,
|
|
|
|
`LastScheduleTime:` + strings.Replace(fmt.Sprintf("%v", this.LastScheduleTime), "Time", "v1.Time", 1) + `,`,
|
|
|
|
`LastSuccessfulTime:` + strings.Replace(fmt.Sprintf("%v", this.LastSuccessfulTime), "Time", "v1.Time", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *JobTemplate) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&JobTemplate{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Template:` + strings.Replace(strings.Replace(this.Template.String(), "JobTemplateSpec", "JobTemplateSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *JobTemplateSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&JobTemplateSpec{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Spec:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Spec), "JobSpec", "v12.JobSpec", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
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 *CronJob) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: CronJob: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: CronJob: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *CronJobList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: CronJobList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: CronJobList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, CronJob{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *CronJobSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: CronJobSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: CronJobSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Schedule", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Schedule = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field StartingDeadlineSeconds", wireType)
|
|
|
|
}
|
|
|
|
var v int64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.StartingDeadlineSeconds = &v
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ConcurrencyPolicy", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.ConcurrencyPolicy = ConcurrencyPolicy(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
b := bool(v != 0)
|
|
|
|
m.Suspend = &b
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field JobTemplate", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.JobTemplate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SuccessfulJobsHistoryLimit", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.SuccessfulJobsHistoryLimit = &v
|
|
|
|
case 7:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FailedJobsHistoryLimit", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.FailedJobsHistoryLimit = &v
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *CronJobStatus) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: CronJobStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: CronJobStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Active", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Active = append(m.Active, v11.ObjectReference{})
|
2019-01-18 01:50:10 +00:00
|
|
|
if err := m.Active[len(m.Active)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastScheduleTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.LastScheduleTime == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.LastScheduleTime = &v1.Time{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.LastScheduleTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2021-05-15 10:08:31 +00:00
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastSuccessfulTime", 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.LastSuccessfulTime == nil {
|
|
|
|
m.LastSuccessfulTime = &v1.Time{}
|
|
|
|
}
|
|
|
|
if err := m.LastSuccessfulTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-18 01:50:10 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *JobTemplate) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: JobTemplate: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: JobTemplate: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Template", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *JobTemplateSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: JobTemplateSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: JobTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
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
|
2021-05-15 10:08:31 +00:00
|
|
|
depth := 0
|
2019-01-18 01:50:10 +00:00
|
|
|
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
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
iNdEx += length
|
2019-01-18 01:50:10 +00:00
|
|
|
case 3:
|
2021-05-15 10:08:31 +00:00
|
|
|
depth++
|
2019-01-18 01:50:10 +00:00
|
|
|
case 4:
|
2021-05-15 10:08:31 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
|
|
|
}
|
|
|
|
depth--
|
2019-01-18 01:50:10 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-05-15 10:08:31 +00:00
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
2019-01-18 01:50:10 +00:00
|
|
|
)
|