| 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/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 "k8s.io/apimachinery/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_39237a8d8061b52f, []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/apimachinery/pkg/apis/meta/v1beta1/generated.proto", fileDescriptor_39237a8d8061b52f) |
| 81 |
} |
| 82 |
|
| 83 |
var fileDescriptor_39237a8d8061b52f = []byte{ |
| 84 |
// 303 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, 0xc5, 0xdb, 0x6e, 0x82, 0x32, 0xd9, 0x51, 0x3c, 0x98, 0x76, 0x31, 0x8b, 0x35, |
| 88 |
0x4d, 0x69, 0xfe, 0x15, 0xbc, 0xf9, 0x11, 0xfc, 0x58, 0x3d, 0xee, 0x38, 0x10, 0x86, 0x8d, 0x5f, |
| 89 |
0x44, 0xd2, 0x56, 0x91, 0xa1, 0xd0, 0x5b, 0x9e, 0x07, 0x7e, 0xbf, 0x3c, 0x81, 0xf8, 0x67, 0xd1, |
| 90 |
0xa9, 0x21, 0x52, 0x53, 0x96, 0x48, 0xc5, 0xc2, 0x95, 0x8c, 0x79, 0xfa, 0x4c, 0x93, 0x48, 0xb8, |
| 91 |
0xc2, 0x50, 0xc5, 0x81, 0xd1, 0xa7, 0x49, 0xc0, 0x81, 0x4d, 0xa8, 0xe0, 0x31, 0x4f, 0x19, 0xf0, |
| 92 |
0x25, 0x49, 0x52, 0x0d, 0xba, 0x3b, 0xae, 0x50, 0xf2, 0x13, 0x25, 0x49, 0x24, 0x5c, 0x61, 0x88, |
| 93 |
0x43, 0x49, 0x8d, 0xf6, 0x8f, 0x84, 0x84, 0x55, 0x16, 0x90, 0x50, 0x2b, 0x2a, 0xb4, 0xd0, 0xb4, |
| 94 |
0x34, 0x04, 0xd9, 0x7d, 0x99, 0xca, 0x50, 0x9e, 0x2a, 0x73, 0xff, 0xb8, 0xc9, 0xa8, 0xdd, 0x3d, |
| 95 |
0xfd, 0x93, 0xbf, 0xa8, 0x34, 0x8b, 0x41, 0x2a, 0x4e, 0x4d, 0xb8, 0xe2, 0x8a, 0xed, 0x72, 0x87, |
| 96 |
0x6f, 0xc8, 0x3f, 0xb8, 0x66, 0x29, 0x48, 0xf6, 0x38, 0x0f, 0x1e, 0x78, 0x08, 0x57, 0x1c, 0xd8, |
| 97 |
0x92, 0x01, 0xbb, 0x94, 0x06, 0xba, 0xb7, 0x7e, 0x5b, 0xd5, 0xb9, 0xf7, 0x6f, 0x88, 0x46, 0x9d, |
| 98 |
0x29, 0x21, 0x4d, 0x1e, 0x4e, 0x1c, 0xed, 0x4c, 0xb3, 0xfd, 0x7c, 0x3b, 0xf0, 0xec, 0x76, 0xd0, |
| 99 |
0xfe, 0x6a, 0x16, 0xdf, 0xc6, 0xee, 0x9d, 0xdf, 0x92, 0xc0, 0x95, 0xe9, 0xa1, 0xe1, 0xff, 0x51, |
| 100 |
0x67, 0x7a, 0xde, 0x4c, 0xfd, 0xeb, 0xda, 0xd9, 0x5e, 0x7d, 0x4f, 0xeb, 0xc2, 0x19, 0x17, 0x95, |
| 101 |
0x78, 0x36, 0xcf, 0x0b, 0xec, 0xad, 0x0b, 0xec, 0x6d, 0x0a, 0xec, 0xbd, 0x58, 0x8c, 0x72, 0x8b, |
| 102 |
0xd1, 0xda, 0x62, 0xb4, 0xb1, 0x18, 0xbd, 0x5b, 0x8c, 0x5e, 0x3f, 0xb0, 0x77, 0x33, 0x6e, 0xfc, |
| 103 |
0x0d, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x0f, 0xd7, 0x36, 0x32, 0x02, 0x00, 0x00, |
| 104 |
} |
| 105 |
|
| 106 |
func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error) { |
| 107 |
size := m.Size() |
| 108 |
dAtA = make([]byte, size) |
| 109 |
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 110 |
if err != nil { |
| 111 |
return nil, err |
| 112 |
} |
| 113 |
return dAtA[:n], nil |
| 114 |
} |
| 115 |
|
| 116 |
func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error) { |
| 117 |
size := m.Size() |
| 118 |
return m.MarshalToSizedBuffer(dAtA[:size]) |
| 119 |
} |
| 120 |
|
| 121 |
func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 122 |
i := len(dAtA) |
| 123 |
_ = i |
| 124 |
var l int |
| 125 |
_ = l |
| 126 |
{ |
| 127 |
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 128 |
if err != nil { |
| 129 |
return 0, err |
| 130 |
} |
| 131 |
i -= size |
| 132 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 133 |
} |
| 134 |
i-- |
| 135 |
dAtA[i] = 0x12 |
| 136 |
if len(m.Items) > 0 { |
| 137 |
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 138 |
{ |
| 139 |
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 140 |
if err != nil { |
| 141 |
return 0, err |
| 142 |
} |
| 143 |
i -= size |
| 144 |
i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 145 |
} |
| 146 |
i-- |
| 147 |
dAtA[i] = 0xa |
| 148 |
} |
| 149 |
} |
| 150 |
return len(dAtA) - i, nil |
| 151 |
} |
| 152 |
|
| 153 |
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 154 |
offset -= sovGenerated(v) |
| 155 |
base := offset |
| 156 |
for v >= 1<<7 { |
| 157 |
dAtA[offset] = uint8(v&0x7f | 0x80) |
| 158 |
v >>= 7 |
| 159 |
offset++ |
| 160 |
} |
| 161 |
dAtA[offset] = uint8(v) |
| 162 |
return base |
| 163 |
} |
| 164 |
func (m *PartialObjectMetadataList) Size() (n int) { |
| 165 |
if m == nil { |
| 166 |
return 0 |
| 167 |
} |
| 168 |
var l int |
| 169 |
_ = l |
| 170 |
if len(m.Items) > 0 { |
| 171 |
for _, e := range m.Items { |
| 172 |
l = e.Size() |
| 173 |
n += 1 + l + sovGenerated(uint64(l)) |
| 174 |
} |
| 175 |
} |
| 176 |
l = m.ListMeta.Size() |
| 177 |
n += 1 + l + sovGenerated(uint64(l)) |
| 178 |
return n |
| 179 |
} |
| 180 |
|
| 181 |
func sovGenerated(x uint64) (n int) { |
| 182 |
return (math_bits.Len64(x|1) + 6) / 7 |
| 183 |
} |
| 184 |
func sozGenerated(x uint64) (n int) { |
| 185 |
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 186 |
} |
| 187 |
func (this *PartialObjectMetadataList) String() string { |
| 188 |
if this == nil { |
| 189 |
return "nil" |
| 190 |
} |
| 191 |
repeatedStringForItems := "[]PartialObjectMetadata{" |
| 192 |
for _, f := range this.Items { |
| 193 |
repeatedStringForItems += fmt.Sprintf("%v", f) + "," |
| 194 |
} |
| 195 |
repeatedStringForItems += "}" |
| 196 |
s := strings.Join([]string{`&PartialObjectMetadataList{`, |
| 197 |
`Items:` + repeatedStringForItems + `,`, |
| 198 |
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 199 |
`}`, |
| 200 |
}, "") |
| 201 |
return s |
| 202 |
} |
| 203 |
func valueToStringGenerated(v interface{}) string { |
| 204 |
rv := reflect.ValueOf(v) |
| 205 |
if rv.IsNil() { |
| 206 |
return "nil" |
| 207 |
} |
| 208 |
pv := reflect.Indirect(rv).Interface() |
| 209 |
return fmt.Sprintf("*%v", pv) |
| 210 |
} |
| 211 |
func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error { |
| 212 |
l := len(dAtA) |
| 213 |
iNdEx := 0 |
| 214 |
for iNdEx < l { |
| 215 |
preIndex := iNdEx |
| 216 |
var wire uint64 |
| 217 |
for shift := uint(0); ; shift += 7 { |
| 218 |
if shift >= 64 { |
| 219 |
return ErrIntOverflowGenerated |
| 220 |
} |
| 221 |
if iNdEx >= l { |
| 222 |
return io.ErrUnexpectedEOF |
| 223 |
} |
| 224 |
b := dAtA[iNdEx] |
| 225 |
iNdEx++ |
| 226 |
wire |= uint64(b&0x7F) << shift |
| 227 |
if b < 0x80 { |
| 228 |
break |
| 229 |
} |
| 230 |
} |
| 231 |
fieldNum := int32(wire >> 3) |
| 232 |
wireType := int(wire & 0x7) |
| 233 |
if wireType == 4 { |
| 234 |
return fmt.Errorf("proto: PartialObjectMetadataList: wiretype end group for non-group") |
| 235 |
} |
| 236 |
if fieldNum <= 0 { |
| 237 |
return fmt.Errorf("proto: PartialObjectMetadataList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 238 |
} |
| 239 |
switch fieldNum { |
| 240 |
case 1: |
| 241 |
if wireType != 2 { |
| 242 |
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 243 |
} |
| 244 |
var msglen int |
| 245 |
for shift := uint(0); ; shift += 7 { |
| 246 |
if shift >= 64 { |
| 247 |
return ErrIntOverflowGenerated |
| 248 |
} |
| 249 |
if iNdEx >= l { |
| 250 |
return io.ErrUnexpectedEOF |
| 251 |
} |
| 252 |
b := dAtA[iNdEx] |
| 253 |
iNdEx++ |
| 254 |
msglen |= int(b&0x7F) << shift |
| 255 |
if b < 0x80 { |
| 256 |
break |
| 257 |
} |
| 258 |
} |
| 259 |
if msglen < 0 { |
| 260 |
return ErrInvalidLengthGenerated |
| 261 |
} |
| 262 |
postIndex := iNdEx + msglen |
| 263 |
if postIndex < 0 { |
| 264 |
return ErrInvalidLengthGenerated |
| 265 |
} |
| 266 |
if postIndex > l { |
| 267 |
return io.ErrUnexpectedEOF |
| 268 |
} |
| 269 |
m.Items = append(m.Items, v1.PartialObjectMetadata{}) |
| 270 |
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 271 |
return err |
| 272 |
} |
| 273 |
iNdEx = postIndex |
| 274 |
case 2: |
| 275 |
if wireType != 2 { |
| 276 |
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 277 |
} |
| 278 |
var msglen int |
| 279 |
for shift := uint(0); ; shift += 7 { |
| 280 |
if shift >= 64 { |
| 281 |
return ErrIntOverflowGenerated |
| 282 |
} |
| 283 |
if iNdEx >= l { |
| 284 |
return io.ErrUnexpectedEOF |
| 285 |
} |
| 286 |
b := dAtA[iNdEx] |
| 287 |
iNdEx++ |
| 288 |
msglen |= int(b&0x7F) << shift |
| 289 |
if b < 0x80 { |
| 290 |
break |
| 291 |
} |
| 292 |
} |
| 293 |
if msglen < 0 { |
| 294 |
return ErrInvalidLengthGenerated |
| 295 |
} |
| 296 |
postIndex := iNdEx + msglen |
| 297 |
if postIndex < 0 { |
| 298 |
return ErrInvalidLengthGenerated |
| 299 |
} |
| 300 |
if postIndex > l { |
| 301 |
return io.ErrUnexpectedEOF |
| 302 |
} |
| 303 |
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 304 |
return err |
| 305 |
} |
| 306 |
iNdEx = postIndex |
| 307 |
default: |
| 308 |
iNdEx = preIndex |
| 309 |
skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 310 |
if err != nil { |
| 311 |
return err |
| 312 |
} |
| 313 |
if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 314 |
return ErrInvalidLengthGenerated |
| 315 |
} |
| 316 |
if (iNdEx + skippy) > l { |
| 317 |
return io.ErrUnexpectedEOF |
| 318 |
} |
| 319 |
iNdEx += skippy |
| 320 |
} |
| 321 |
} |
| 322 |
|
| 323 |
if iNdEx > l { |
| 324 |
return io.ErrUnexpectedEOF |
| 325 |
} |
| 326 |
return nil |
| 327 |
} |
| 328 |
func skipGenerated(dAtA []byte) (n int, err error) { |
| 329 |
l := len(dAtA) |
| 330 |
iNdEx := 0 |
| 331 |
depth := 0 |
| 332 |
for iNdEx < l { |
| 333 |
var wire uint64 |
| 334 |
for shift := uint(0); ; shift += 7 { |
| 335 |
if shift >= 64 { |
| 336 |
return 0, ErrIntOverflowGenerated |
| 337 |
} |
| 338 |
if iNdEx >= l { |
| 339 |
return 0, io.ErrUnexpectedEOF |
| 340 |
} |
| 341 |
b := dAtA[iNdEx] |
| 342 |
iNdEx++ |
| 343 |
wire |= (uint64(b) & 0x7F) << shift |
| 344 |
if b < 0x80 { |
| 345 |
break |
| 346 |
} |
| 347 |
} |
| 348 |
wireType := int(wire & 0x7) |
| 349 |
switch wireType { |
| 350 |
case 0: |
| 351 |
for shift := uint(0); ; shift += 7 { |
| 352 |
if shift >= 64 { |
| 353 |
return 0, ErrIntOverflowGenerated |
| 354 |
} |
| 355 |
if iNdEx >= l { |
| 356 |
return 0, io.ErrUnexpectedEOF |
| 357 |
} |
| 358 |
iNdEx++ |
| 359 |
if dAtA[iNdEx-1] < 0x80 { |
| 360 |
break |
| 361 |
} |
| 362 |
} |
| 363 |
case 1: |
| 364 |
iNdEx += 8 |
| 365 |
case 2: |
| 366 |
var length int |
| 367 |
for shift := uint(0); ; shift += 7 { |
| 368 |
if shift >= 64 { |
| 369 |
return 0, ErrIntOverflowGenerated |
| 370 |
} |
| 371 |
if iNdEx >= l { |
| 372 |
return 0, io.ErrUnexpectedEOF |
| 373 |
} |
| 374 |
b := dAtA[iNdEx] |
| 375 |
iNdEx++ |
| 376 |
length |= (int(b) & 0x7F) << shift |
| 377 |
if b < 0x80 { |
| 378 |
break |
| 379 |
} |
| 380 |
} |
| 381 |
if length < 0 { |
| 382 |
return 0, ErrInvalidLengthGenerated |
| 383 |
} |
| 384 |
iNdEx += length |
| 385 |
case 3: |
| 386 |
depth++ |
| 387 |
case 4: |
| 388 |
if depth == 0 { |
| 389 |
return 0, ErrUnexpectedEndOfGroupGenerated |
| 390 |
} |
| 391 |
depth-- |
| 392 |
case 5: |
| 393 |
iNdEx += 4 |
| 394 |
default: |
| 395 |
return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 396 |
} |
| 397 |
if iNdEx < 0 { |
| 398 |
return 0, ErrInvalidLengthGenerated |
| 399 |
} |
| 400 |
if depth == 0 { |
| 401 |
return iNdEx, nil |
| 402 |
} |
| 403 |
} |
| 404 |
return 0, io.ErrUnexpectedEOF |
| 405 |
} |
| 406 |
|
| 407 |
var ( |
| 408 |
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 409 |
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 410 |
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 411 |
) |