github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/apis/meta/v1beta1/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/apis/meta/v1beta1/generated.proto 19 20 package v1beta1 21 22 import ( 23 fmt "fmt" 24 25 io "io" 26 27 proto "github.com/gogo/protobuf/proto" 28 v1 "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/apis/meta/v1" 29 30 math "math" 31 math_bits "math/bits" 32 reflect "reflect" 33 strings "strings" 34 ) 35 36 // Reference imports to suppress errors if they are not otherwise used. 37 var _ = proto.Marshal 38 var _ = fmt.Errorf 39 var _ = math.Inf 40 41 // This is a compile-time assertion to ensure that this generated file 42 // is compatible with the proto package it is being compiled against. 43 // A compilation error at this line likely means your copy of the 44 // proto package needs to be updated. 45 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 46 47 func (m *PartialObjectMetadataList) Reset() { *m = PartialObjectMetadataList{} } 48 func (*PartialObjectMetadataList) ProtoMessage() {} 49 func (*PartialObjectMetadataList) Descriptor() ([]byte, []int) { 50 return fileDescriptor_90ec10f86b91f9a8, []int{0} 51 } 52 func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error { 53 return m.Unmarshal(b) 54 } 55 func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 56 b = b[:cap(b)] 57 n, err := m.MarshalToSizedBuffer(b) 58 if err != nil { 59 return nil, err 60 } 61 return b[:n], nil 62 } 63 func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message) { 64 xxx_messageInfo_PartialObjectMetadataList.Merge(m, src) 65 } 66 func (m *PartialObjectMetadataList) XXX_Size() int { 67 return m.Size() 68 } 69 func (m *PartialObjectMetadataList) XXX_DiscardUnknown() { 70 xxx_messageInfo_PartialObjectMetadataList.DiscardUnknown(m) 71 } 72 73 var xxx_messageInfo_PartialObjectMetadataList proto.InternalMessageInfo 74 75 func init() { 76 proto.RegisterType((*PartialObjectMetadataList)(nil), "k8s.io.apimachinery.pkg.apis.meta.v1beta1.PartialObjectMetadataList") 77 } 78 79 func init() { 80 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1/generated.proto", fileDescriptor_90ec10f86b91f9a8) 81 } 82 83 var fileDescriptor_90ec10f86b91f9a8 = []byte{ 84 // 317 bytes of a gzipped FileDescriptorProto 85 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x4b, 0xf3, 0x30, 86 0x1c, 0xc6, 0x9b, 0xf7, 0x65, 0x30, 0x3a, 0x04, 0xd9, 0x69, 0xee, 0x90, 0x0d, 0x4f, 0xdb, 0xc1, 87 0x84, 0x0d, 0x11, 0xc1, 0xdb, 0x6e, 0x82, 0x32, 0xd9, 0x51, 0x3c, 0x98, 0x76, 0x7f, 0xbb, 0x58, 88 0xd3, 0x94, 0xe4, 0xdf, 0x81, 0x37, 0x3f, 0x82, 0x1f, 0x6b, 0xc7, 0x1d, 0x07, 0xc2, 0x70, 0xf5, 89 0x8b, 0x48, 0xda, 0x2a, 0x32, 0x14, 0x7a, 0xeb, 0xf3, 0x94, 0xdf, 0x2f, 0x4f, 0x20, 0xfe, 0x2c, 90 0x3e, 0xb7, 0x4c, 0x6a, 0x1e, 0x67, 0x01, 0x98, 0x04, 0x10, 0x2c, 0x5f, 0x42, 0x32, 0xd7, 0x86, 91 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 0xbd, 0xcd, 0x8e, 0x7a, 0x2f, 0x39, 0x25, 0xab, 0x9c, 0x92, 0x75, 103 0x4e, 0xc9, 0x26, 0xa7, 0xe4, 0x3d, 0xa7, 0xe4, 0xf5, 0x83, 0x7a, 0xb7, 0xc3, 0xda, 0xcf, 0xe0, 104 0x33, 0x00, 0x00, 0xff, 0xff, 0x30, 0x97, 0x8b, 0x11, 0x4b, 0x02, 0x00, 0x00, 105 } 106 107 func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error) { 108 size := m.Size() 109 dAtA = make([]byte, size) 110 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 111 if err != nil { 112 return nil, err 113 } 114 return dAtA[:n], nil 115 } 116 117 func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error) { 118 size := m.Size() 119 return m.MarshalToSizedBuffer(dAtA[:size]) 120 } 121 122 func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) { 123 i := len(dAtA) 124 _ = i 125 var l int 126 _ = l 127 { 128 size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) 129 if err != nil { 130 return 0, err 131 } 132 i -= size 133 i = encodeVarintGenerated(dAtA, i, uint64(size)) 134 } 135 i-- 136 dAtA[i] = 0x12 137 if len(m.Items) > 0 { 138 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { 139 { 140 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 141 if err != nil { 142 return 0, err 143 } 144 i -= size 145 i = encodeVarintGenerated(dAtA, i, uint64(size)) 146 } 147 i-- 148 dAtA[i] = 0xa 149 } 150 } 151 return len(dAtA) - i, nil 152 } 153 154 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { 155 offset -= sovGenerated(v) 156 base := offset 157 for v >= 1<<7 { 158 dAtA[offset] = uint8(v&0x7f | 0x80) 159 v >>= 7 160 offset++ 161 } 162 dAtA[offset] = uint8(v) 163 return base 164 } 165 func (m *PartialObjectMetadataList) Size() (n int) { 166 if m == nil { 167 return 0 168 } 169 var l int 170 _ = l 171 if len(m.Items) > 0 { 172 for _, e := range m.Items { 173 l = e.Size() 174 n += 1 + l + sovGenerated(uint64(l)) 175 } 176 } 177 l = m.ListMeta.Size() 178 n += 1 + l + sovGenerated(uint64(l)) 179 return n 180 } 181 182 func sovGenerated(x uint64) (n int) { 183 return (math_bits.Len64(x|1) + 6) / 7 184 } 185 func sozGenerated(x uint64) (n int) { 186 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 187 } 188 func (this *PartialObjectMetadataList) String() string { 189 if this == nil { 190 return "nil" 191 } 192 repeatedStringForItems := "[]PartialObjectMetadata{" 193 for _, f := range this.Items { 194 repeatedStringForItems += fmt.Sprintf("%v", f) + "," 195 } 196 repeatedStringForItems += "}" 197 s := strings.Join([]string{`&PartialObjectMetadataList{`, 198 `Items:` + repeatedStringForItems + `,`, 199 `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, 200 `}`, 201 }, "") 202 return s 203 } 204 func valueToStringGenerated(v interface{}) string { 205 rv := reflect.ValueOf(v) 206 if rv.IsNil() { 207 return "nil" 208 } 209 pv := reflect.Indirect(rv).Interface() 210 return fmt.Sprintf("*%v", pv) 211 } 212 func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error { 213 l := len(dAtA) 214 iNdEx := 0 215 for iNdEx < l { 216 preIndex := iNdEx 217 var wire uint64 218 for shift := uint(0); ; shift += 7 { 219 if shift >= 64 { 220 return ErrIntOverflowGenerated 221 } 222 if iNdEx >= l { 223 return io.ErrUnexpectedEOF 224 } 225 b := dAtA[iNdEx] 226 iNdEx++ 227 wire |= uint64(b&0x7F) << shift 228 if b < 0x80 { 229 break 230 } 231 } 232 fieldNum := int32(wire >> 3) 233 wireType := int(wire & 0x7) 234 if wireType == 4 { 235 return fmt.Errorf("proto: PartialObjectMetadataList: wiretype end group for non-group") 236 } 237 if fieldNum <= 0 { 238 return fmt.Errorf("proto: PartialObjectMetadataList: illegal tag %d (wire type %d)", fieldNum, wire) 239 } 240 switch fieldNum { 241 case 1: 242 if wireType != 2 { 243 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) 244 } 245 var msglen int 246 for shift := uint(0); ; shift += 7 { 247 if shift >= 64 { 248 return ErrIntOverflowGenerated 249 } 250 if iNdEx >= l { 251 return io.ErrUnexpectedEOF 252 } 253 b := dAtA[iNdEx] 254 iNdEx++ 255 msglen |= int(b&0x7F) << shift 256 if b < 0x80 { 257 break 258 } 259 } 260 if msglen < 0 { 261 return ErrInvalidLengthGenerated 262 } 263 postIndex := iNdEx + msglen 264 if postIndex < 0 { 265 return ErrInvalidLengthGenerated 266 } 267 if postIndex > l { 268 return io.ErrUnexpectedEOF 269 } 270 m.Items = append(m.Items, v1.PartialObjectMetadata{}) 271 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 272 return err 273 } 274 iNdEx = postIndex 275 case 2: 276 if wireType != 2 { 277 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) 278 } 279 var msglen int 280 for shift := uint(0); ; shift += 7 { 281 if shift >= 64 { 282 return ErrIntOverflowGenerated 283 } 284 if iNdEx >= l { 285 return io.ErrUnexpectedEOF 286 } 287 b := dAtA[iNdEx] 288 iNdEx++ 289 msglen |= int(b&0x7F) << shift 290 if b < 0x80 { 291 break 292 } 293 } 294 if msglen < 0 { 295 return ErrInvalidLengthGenerated 296 } 297 postIndex := iNdEx + msglen 298 if postIndex < 0 { 299 return ErrInvalidLengthGenerated 300 } 301 if postIndex > l { 302 return io.ErrUnexpectedEOF 303 } 304 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 305 return err 306 } 307 iNdEx = postIndex 308 default: 309 iNdEx = preIndex 310 skippy, err := skipGenerated(dAtA[iNdEx:]) 311 if err != nil { 312 return err 313 } 314 if (skippy < 0) || (iNdEx+skippy) < 0 { 315 return ErrInvalidLengthGenerated 316 } 317 if (iNdEx + skippy) > l { 318 return io.ErrUnexpectedEOF 319 } 320 iNdEx += skippy 321 } 322 } 323 324 if iNdEx > l { 325 return io.ErrUnexpectedEOF 326 } 327 return nil 328 } 329 func skipGenerated(dAtA []byte) (n int, err error) { 330 l := len(dAtA) 331 iNdEx := 0 332 depth := 0 333 for iNdEx < l { 334 var wire uint64 335 for shift := uint(0); ; shift += 7 { 336 if shift >= 64 { 337 return 0, ErrIntOverflowGenerated 338 } 339 if iNdEx >= l { 340 return 0, io.ErrUnexpectedEOF 341 } 342 b := dAtA[iNdEx] 343 iNdEx++ 344 wire |= (uint64(b) & 0x7F) << shift 345 if b < 0x80 { 346 break 347 } 348 } 349 wireType := int(wire & 0x7) 350 switch wireType { 351 case 0: 352 for shift := uint(0); ; shift += 7 { 353 if shift >= 64 { 354 return 0, ErrIntOverflowGenerated 355 } 356 if iNdEx >= l { 357 return 0, io.ErrUnexpectedEOF 358 } 359 iNdEx++ 360 if dAtA[iNdEx-1] < 0x80 { 361 break 362 } 363 } 364 case 1: 365 iNdEx += 8 366 case 2: 367 var length int 368 for shift := uint(0); ; shift += 7 { 369 if shift >= 64 { 370 return 0, ErrIntOverflowGenerated 371 } 372 if iNdEx >= l { 373 return 0, io.ErrUnexpectedEOF 374 } 375 b := dAtA[iNdEx] 376 iNdEx++ 377 length |= (int(b) & 0x7F) << shift 378 if b < 0x80 { 379 break 380 } 381 } 382 if length < 0 { 383 return 0, ErrInvalidLengthGenerated 384 } 385 iNdEx += length 386 case 3: 387 depth++ 388 case 4: 389 if depth == 0 { 390 return 0, ErrUnexpectedEndOfGroupGenerated 391 } 392 depth-- 393 case 5: 394 iNdEx += 4 395 default: 396 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 397 } 398 if iNdEx < 0 { 399 return 0, ErrInvalidLengthGenerated 400 } 401 if depth == 0 { 402 return iNdEx, nil 403 } 404 } 405 return 0, io.ErrUnexpectedEOF 406 } 407 408 var ( 409 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") 410 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") 411 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") 412 )