github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/util/intstr/generated.pb.go (about) 1 /* 2 Copyright The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Code generated by protoc-gen-gogo. DO NOT EDIT. 18 // source: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto 19 20 package intstr 21 22 import ( 23 fmt "fmt" 24 25 io "io" 26 math "math" 27 math_bits "math/bits" 28 29 proto "github.com/gogo/protobuf/proto" 30 ) 31 32 // Reference imports to suppress errors if they are not otherwise used. 33 var _ = proto.Marshal 34 var _ = fmt.Errorf 35 var _ = math.Inf 36 37 // This is a compile-time assertion to ensure that this generated file 38 // is compatible with the proto package it is being compiled against. 39 // A compilation error at this line likely means your copy of the 40 // proto package needs to be updated. 41 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 42 43 func (m *IntOrString) Reset() { *m = IntOrString{} } 44 func (*IntOrString) ProtoMessage() {} 45 func (*IntOrString) Descriptor() ([]byte, []int) { 46 return fileDescriptor_94e046ae3ce6121c, []int{0} 47 } 48 func (m *IntOrString) XXX_Unmarshal(b []byte) error { 49 return m.Unmarshal(b) 50 } 51 func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 b = b[:cap(b)] 53 n, err := m.MarshalToSizedBuffer(b) 54 if err != nil { 55 return nil, err 56 } 57 return b[:n], nil 58 } 59 func (m *IntOrString) XXX_Merge(src proto.Message) { 60 xxx_messageInfo_IntOrString.Merge(m, src) 61 } 62 func (m *IntOrString) XXX_Size() int { 63 return m.Size() 64 } 65 func (m *IntOrString) XXX_DiscardUnknown() { 66 xxx_messageInfo_IntOrString.DiscardUnknown(m) 67 } 68 69 var xxx_messageInfo_IntOrString proto.InternalMessageInfo 70 71 func init() { 72 proto.RegisterType((*IntOrString)(nil), "k8s.io.apimachinery.pkg.util.intstr.IntOrString") 73 } 74 75 func init() { 76 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/util/intstr/generated.proto", fileDescriptor_94e046ae3ce6121c) 77 } 78 79 var fileDescriptor_94e046ae3ce6121c = []byte{ 80 // 292 bytes of a gzipped FileDescriptorProto 81 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0xb1, 0x4a, 0x03, 0x31, 82 0x1c, 0xc6, 0x13, 0x5b, 0x8b, 0x9e, 0xe0, 0x50, 0x1c, 0x8a, 0x43, 0x7a, 0x58, 0x90, 0x5b, 0x4c, 83 0x56, 0x71, 0xec, 0x56, 0x10, 0x84, 0x56, 0x1c, 0xdc, 0xee, 0xda, 0x98, 0x86, 0x6b, 0x93, 0x90, 84 0xfb, 0x9f, 0x70, 0x5b, 0x1f, 0x41, 0x37, 0x47, 0x1f, 0xe7, 0xc6, 0x8e, 0x1d, 0xa4, 0x78, 0xf1, 85 0x2d, 0x9c, 0xe4, 0x72, 0x07, 0x3a, 0x3a, 0x25, 0xdf, 0xf7, 0xfd, 0x7e, 0x19, 0x12, 0xdc, 0xa6, 86 0xd7, 0x19, 0x95, 0x9a, 0xa5, 0x79, 0xc2, 0xad, 0xe2, 0xc0, 0x33, 0xf6, 0xcc, 0xd5, 0x42, 0x5b, 87 0xd6, 0x0e, 0xb1, 0x91, 0xeb, 0x78, 0xbe, 0x94, 0x8a, 0xdb, 0x82, 0x99, 0x54, 0xb0, 0x1c, 0xe4, 88 0x8a, 0x49, 0x05, 0x19, 0x58, 0x26, 0xb8, 0xe2, 0x36, 0x06, 0xbe, 0xa0, 0xc6, 0x6a, 0xd0, 0xfd, 89 0x51, 0x23, 0xd1, 0xbf, 0x12, 0x35, 0xa9, 0xa0, 0xb5, 0x44, 0x1b, 0xe9, 0xfc, 0x4a, 0x48, 0x58, 90 0xe6, 0x09, 0x9d, 0xeb, 0x35, 0x13, 0x5a, 0x68, 0xe6, 0xdd, 0x24, 0x7f, 0xf2, 0xc9, 0x07, 0x7f, 91 0x6b, 0xde, 0xbc, 0x78, 0xc5, 0xc1, 0xc9, 0x44, 0xc1, 0x9d, 0x9d, 0x81, 0x95, 0x4a, 0xf4, 0xa3, 92 0xa0, 0x0b, 0x85, 0xe1, 0x03, 0x1c, 0xe2, 0xa8, 0x33, 0x3e, 0x2b, 0xf7, 0x43, 0xe4, 0xf6, 0xc3, 93 0xee, 0x7d, 0x61, 0xf8, 0x77, 0x7b, 0x4e, 0x3d, 0xd1, 0xbf, 0x0c, 0x7a, 0x52, 0xc1, 0x43, 0xbc, 94 0x1a, 0x1c, 0x84, 0x38, 0x3a, 0x1c, 0x9f, 0xb6, 0x6c, 0x6f, 0xe2, 0xdb, 0x69, 0xbb, 0xd6, 0x5c, 95 0x06, 0xb6, 0xe6, 0x3a, 0x21, 0x8e, 0x8e, 0x7f, 0xb9, 0x99, 0x6f, 0xa7, 0xed, 0x7a, 0x73, 0xf4, 96 0xf6, 0x3e, 0x44, 0x9b, 0x8f, 0x10, 0x8d, 0x27, 0x65, 0x45, 0xd0, 0xb6, 0x22, 0x68, 0x57, 0x11, 97 0xb4, 0x71, 0x04, 0x97, 0x8e, 0xe0, 0xad, 0x23, 0x78, 0xe7, 0x08, 0xfe, 0x74, 0x04, 0xbf, 0x7c, 98 0x11, 0xf4, 0x38, 0xfa, 0xc7, 0x17, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xdc, 0xc4, 0xf0, 0xa0, 99 0x81, 0x01, 0x00, 0x00, 100 } 101 102 func (m *IntOrString) Marshal() (dAtA []byte, err error) { 103 size := m.Size() 104 dAtA = make([]byte, size) 105 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 106 if err != nil { 107 return nil, err 108 } 109 return dAtA[:n], nil 110 } 111 112 func (m *IntOrString) MarshalTo(dAtA []byte) (int, error) { 113 size := m.Size() 114 return m.MarshalToSizedBuffer(dAtA[:size]) 115 } 116 117 func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error) { 118 i := len(dAtA) 119 _ = i 120 var l int 121 _ = l 122 i -= len(m.StrVal) 123 copy(dAtA[i:], m.StrVal) 124 i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal))) 125 i-- 126 dAtA[i] = 0x1a 127 i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal)) 128 i-- 129 dAtA[i] = 0x10 130 i = encodeVarintGenerated(dAtA, i, uint64(m.Type)) 131 i-- 132 dAtA[i] = 0x8 133 return len(dAtA) - i, nil 134 } 135 136 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { 137 offset -= sovGenerated(v) 138 base := offset 139 for v >= 1<<7 { 140 dAtA[offset] = uint8(v&0x7f | 0x80) 141 v >>= 7 142 offset++ 143 } 144 dAtA[offset] = uint8(v) 145 return base 146 } 147 func (m *IntOrString) Size() (n int) { 148 if m == nil { 149 return 0 150 } 151 var l int 152 _ = l 153 n += 1 + sovGenerated(uint64(m.Type)) 154 n += 1 + sovGenerated(uint64(m.IntVal)) 155 l = len(m.StrVal) 156 n += 1 + l + sovGenerated(uint64(l)) 157 return n 158 } 159 160 func sovGenerated(x uint64) (n int) { 161 return (math_bits.Len64(x|1) + 6) / 7 162 } 163 func sozGenerated(x uint64) (n int) { 164 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 165 } 166 func (m *IntOrString) Unmarshal(dAtA []byte) error { 167 l := len(dAtA) 168 iNdEx := 0 169 for iNdEx < l { 170 preIndex := iNdEx 171 var wire uint64 172 for shift := uint(0); ; shift += 7 { 173 if shift >= 64 { 174 return ErrIntOverflowGenerated 175 } 176 if iNdEx >= l { 177 return io.ErrUnexpectedEOF 178 } 179 b := dAtA[iNdEx] 180 iNdEx++ 181 wire |= uint64(b&0x7F) << shift 182 if b < 0x80 { 183 break 184 } 185 } 186 fieldNum := int32(wire >> 3) 187 wireType := int(wire & 0x7) 188 if wireType == 4 { 189 return fmt.Errorf("proto: IntOrString: wiretype end group for non-group") 190 } 191 if fieldNum <= 0 { 192 return fmt.Errorf("proto: IntOrString: illegal tag %d (wire type %d)", fieldNum, wire) 193 } 194 switch fieldNum { 195 case 1: 196 if wireType != 0 { 197 return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) 198 } 199 m.Type = 0 200 for shift := uint(0); ; shift += 7 { 201 if shift >= 64 { 202 return ErrIntOverflowGenerated 203 } 204 if iNdEx >= l { 205 return io.ErrUnexpectedEOF 206 } 207 b := dAtA[iNdEx] 208 iNdEx++ 209 m.Type |= Type(b&0x7F) << shift 210 if b < 0x80 { 211 break 212 } 213 } 214 case 2: 215 if wireType != 0 { 216 return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType) 217 } 218 m.IntVal = 0 219 for shift := uint(0); ; shift += 7 { 220 if shift >= 64 { 221 return ErrIntOverflowGenerated 222 } 223 if iNdEx >= l { 224 return io.ErrUnexpectedEOF 225 } 226 b := dAtA[iNdEx] 227 iNdEx++ 228 m.IntVal |= int32(b&0x7F) << shift 229 if b < 0x80 { 230 break 231 } 232 } 233 case 3: 234 if wireType != 2 { 235 return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType) 236 } 237 var stringLen uint64 238 for shift := uint(0); ; shift += 7 { 239 if shift >= 64 { 240 return ErrIntOverflowGenerated 241 } 242 if iNdEx >= l { 243 return io.ErrUnexpectedEOF 244 } 245 b := dAtA[iNdEx] 246 iNdEx++ 247 stringLen |= uint64(b&0x7F) << shift 248 if b < 0x80 { 249 break 250 } 251 } 252 intStringLen := int(stringLen) 253 if intStringLen < 0 { 254 return ErrInvalidLengthGenerated 255 } 256 postIndex := iNdEx + intStringLen 257 if postIndex < 0 { 258 return ErrInvalidLengthGenerated 259 } 260 if postIndex > l { 261 return io.ErrUnexpectedEOF 262 } 263 m.StrVal = string(dAtA[iNdEx:postIndex]) 264 iNdEx = postIndex 265 default: 266 iNdEx = preIndex 267 skippy, err := skipGenerated(dAtA[iNdEx:]) 268 if err != nil { 269 return err 270 } 271 if (skippy < 0) || (iNdEx+skippy) < 0 { 272 return ErrInvalidLengthGenerated 273 } 274 if (iNdEx + skippy) > l { 275 return io.ErrUnexpectedEOF 276 } 277 iNdEx += skippy 278 } 279 } 280 281 if iNdEx > l { 282 return io.ErrUnexpectedEOF 283 } 284 return nil 285 } 286 func skipGenerated(dAtA []byte) (n int, err error) { 287 l := len(dAtA) 288 iNdEx := 0 289 depth := 0 290 for iNdEx < l { 291 var wire uint64 292 for shift := uint(0); ; shift += 7 { 293 if shift >= 64 { 294 return 0, ErrIntOverflowGenerated 295 } 296 if iNdEx >= l { 297 return 0, io.ErrUnexpectedEOF 298 } 299 b := dAtA[iNdEx] 300 iNdEx++ 301 wire |= (uint64(b) & 0x7F) << shift 302 if b < 0x80 { 303 break 304 } 305 } 306 wireType := int(wire & 0x7) 307 switch wireType { 308 case 0: 309 for shift := uint(0); ; shift += 7 { 310 if shift >= 64 { 311 return 0, ErrIntOverflowGenerated 312 } 313 if iNdEx >= l { 314 return 0, io.ErrUnexpectedEOF 315 } 316 iNdEx++ 317 if dAtA[iNdEx-1] < 0x80 { 318 break 319 } 320 } 321 case 1: 322 iNdEx += 8 323 case 2: 324 var length int 325 for shift := uint(0); ; shift += 7 { 326 if shift >= 64 { 327 return 0, ErrIntOverflowGenerated 328 } 329 if iNdEx >= l { 330 return 0, io.ErrUnexpectedEOF 331 } 332 b := dAtA[iNdEx] 333 iNdEx++ 334 length |= (int(b) & 0x7F) << shift 335 if b < 0x80 { 336 break 337 } 338 } 339 if length < 0 { 340 return 0, ErrInvalidLengthGenerated 341 } 342 iNdEx += length 343 case 3: 344 depth++ 345 case 4: 346 if depth == 0 { 347 return 0, ErrUnexpectedEndOfGroupGenerated 348 } 349 depth-- 350 case 5: 351 iNdEx += 4 352 default: 353 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 354 } 355 if iNdEx < 0 { 356 return 0, ErrInvalidLengthGenerated 357 } 358 if depth == 0 { 359 return iNdEx, nil 360 } 361 } 362 return 0, io.ErrUnexpectedEOF 363 } 364 365 var ( 366 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") 367 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") 368 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") 369 )