1// Code generated by protoc-gen-gogo. DO NOT EDIT. 2// source: caps.proto 3 4package moby_buildkit_v1_apicaps 5 6import proto "github.com/gogo/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import _ "github.com/gogo/protobuf/gogoproto" 10 11import io "io" 12 13// Reference imports to suppress errors if they are not otherwise used. 14var _ = proto.Marshal 15var _ = fmt.Errorf 16var _ = math.Inf 17 18// This is a compile-time assertion to ensure that this generated file 19// is compatible with the proto package it is being compiled against. 20// A compilation error at this line likely means your copy of the 21// proto package needs to be updated. 22const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 23 24// APICap defines a capability supported by the service 25type APICap struct { 26 ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` 27 Enabled bool `protobuf:"varint,2,opt,name=Enabled,proto3" json:"Enabled,omitempty"` 28 Deprecated bool `protobuf:"varint,3,opt,name=Deprecated,proto3" json:"Deprecated,omitempty"` 29 DisabledReason string `protobuf:"bytes,4,opt,name=DisabledReason,proto3" json:"DisabledReason,omitempty"` 30 DisabledReasonMsg string `protobuf:"bytes,5,opt,name=DisabledReasonMsg,proto3" json:"DisabledReasonMsg,omitempty"` 31 DisabledAlternative string `protobuf:"bytes,6,opt,name=DisabledAlternative,proto3" json:"DisabledAlternative,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35} 36 37func (m *APICap) Reset() { *m = APICap{} } 38func (m *APICap) String() string { return proto.CompactTextString(m) } 39func (*APICap) ProtoMessage() {} 40func (*APICap) Descriptor() ([]byte, []int) { 41 return fileDescriptor_caps_04e1bcd232e9a565, []int{0} 42} 43func (m *APICap) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45} 46func (m *APICap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 if deterministic { 48 return xxx_messageInfo_APICap.Marshal(b, m, deterministic) 49 } else { 50 b = b[:cap(b)] 51 n, err := m.MarshalTo(b) 52 if err != nil { 53 return nil, err 54 } 55 return b[:n], nil 56 } 57} 58func (dst *APICap) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_APICap.Merge(dst, src) 60} 61func (m *APICap) XXX_Size() int { 62 return m.Size() 63} 64func (m *APICap) XXX_DiscardUnknown() { 65 xxx_messageInfo_APICap.DiscardUnknown(m) 66} 67 68var xxx_messageInfo_APICap proto.InternalMessageInfo 69 70func (m *APICap) GetID() string { 71 if m != nil { 72 return m.ID 73 } 74 return "" 75} 76 77func (m *APICap) GetEnabled() bool { 78 if m != nil { 79 return m.Enabled 80 } 81 return false 82} 83 84func (m *APICap) GetDeprecated() bool { 85 if m != nil { 86 return m.Deprecated 87 } 88 return false 89} 90 91func (m *APICap) GetDisabledReason() string { 92 if m != nil { 93 return m.DisabledReason 94 } 95 return "" 96} 97 98func (m *APICap) GetDisabledReasonMsg() string { 99 if m != nil { 100 return m.DisabledReasonMsg 101 } 102 return "" 103} 104 105func (m *APICap) GetDisabledAlternative() string { 106 if m != nil { 107 return m.DisabledAlternative 108 } 109 return "" 110} 111 112func init() { 113 proto.RegisterType((*APICap)(nil), "moby.buildkit.v1.apicaps.APICap") 114} 115func (m *APICap) Marshal() (dAtA []byte, err error) { 116 size := m.Size() 117 dAtA = make([]byte, size) 118 n, err := m.MarshalTo(dAtA) 119 if err != nil { 120 return nil, err 121 } 122 return dAtA[:n], nil 123} 124 125func (m *APICap) MarshalTo(dAtA []byte) (int, error) { 126 var i int 127 _ = i 128 var l int 129 _ = l 130 if len(m.ID) > 0 { 131 dAtA[i] = 0xa 132 i++ 133 i = encodeVarintCaps(dAtA, i, uint64(len(m.ID))) 134 i += copy(dAtA[i:], m.ID) 135 } 136 if m.Enabled { 137 dAtA[i] = 0x10 138 i++ 139 if m.Enabled { 140 dAtA[i] = 1 141 } else { 142 dAtA[i] = 0 143 } 144 i++ 145 } 146 if m.Deprecated { 147 dAtA[i] = 0x18 148 i++ 149 if m.Deprecated { 150 dAtA[i] = 1 151 } else { 152 dAtA[i] = 0 153 } 154 i++ 155 } 156 if len(m.DisabledReason) > 0 { 157 dAtA[i] = 0x22 158 i++ 159 i = encodeVarintCaps(dAtA, i, uint64(len(m.DisabledReason))) 160 i += copy(dAtA[i:], m.DisabledReason) 161 } 162 if len(m.DisabledReasonMsg) > 0 { 163 dAtA[i] = 0x2a 164 i++ 165 i = encodeVarintCaps(dAtA, i, uint64(len(m.DisabledReasonMsg))) 166 i += copy(dAtA[i:], m.DisabledReasonMsg) 167 } 168 if len(m.DisabledAlternative) > 0 { 169 dAtA[i] = 0x32 170 i++ 171 i = encodeVarintCaps(dAtA, i, uint64(len(m.DisabledAlternative))) 172 i += copy(dAtA[i:], m.DisabledAlternative) 173 } 174 if m.XXX_unrecognized != nil { 175 i += copy(dAtA[i:], m.XXX_unrecognized) 176 } 177 return i, nil 178} 179 180func encodeVarintCaps(dAtA []byte, offset int, v uint64) int { 181 for v >= 1<<7 { 182 dAtA[offset] = uint8(v&0x7f | 0x80) 183 v >>= 7 184 offset++ 185 } 186 dAtA[offset] = uint8(v) 187 return offset + 1 188} 189func (m *APICap) Size() (n int) { 190 if m == nil { 191 return 0 192 } 193 var l int 194 _ = l 195 l = len(m.ID) 196 if l > 0 { 197 n += 1 + l + sovCaps(uint64(l)) 198 } 199 if m.Enabled { 200 n += 2 201 } 202 if m.Deprecated { 203 n += 2 204 } 205 l = len(m.DisabledReason) 206 if l > 0 { 207 n += 1 + l + sovCaps(uint64(l)) 208 } 209 l = len(m.DisabledReasonMsg) 210 if l > 0 { 211 n += 1 + l + sovCaps(uint64(l)) 212 } 213 l = len(m.DisabledAlternative) 214 if l > 0 { 215 n += 1 + l + sovCaps(uint64(l)) 216 } 217 if m.XXX_unrecognized != nil { 218 n += len(m.XXX_unrecognized) 219 } 220 return n 221} 222 223func sovCaps(x uint64) (n int) { 224 for { 225 n++ 226 x >>= 7 227 if x == 0 { 228 break 229 } 230 } 231 return n 232} 233func sozCaps(x uint64) (n int) { 234 return sovCaps(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 235} 236func (m *APICap) Unmarshal(dAtA []byte) error { 237 l := len(dAtA) 238 iNdEx := 0 239 for iNdEx < l { 240 preIndex := iNdEx 241 var wire uint64 242 for shift := uint(0); ; shift += 7 { 243 if shift >= 64 { 244 return ErrIntOverflowCaps 245 } 246 if iNdEx >= l { 247 return io.ErrUnexpectedEOF 248 } 249 b := dAtA[iNdEx] 250 iNdEx++ 251 wire |= (uint64(b) & 0x7F) << shift 252 if b < 0x80 { 253 break 254 } 255 } 256 fieldNum := int32(wire >> 3) 257 wireType := int(wire & 0x7) 258 if wireType == 4 { 259 return fmt.Errorf("proto: APICap: wiretype end group for non-group") 260 } 261 if fieldNum <= 0 { 262 return fmt.Errorf("proto: APICap: illegal tag %d (wire type %d)", fieldNum, wire) 263 } 264 switch fieldNum { 265 case 1: 266 if wireType != 2 { 267 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 268 } 269 var stringLen uint64 270 for shift := uint(0); ; shift += 7 { 271 if shift >= 64 { 272 return ErrIntOverflowCaps 273 } 274 if iNdEx >= l { 275 return io.ErrUnexpectedEOF 276 } 277 b := dAtA[iNdEx] 278 iNdEx++ 279 stringLen |= (uint64(b) & 0x7F) << shift 280 if b < 0x80 { 281 break 282 } 283 } 284 intStringLen := int(stringLen) 285 if intStringLen < 0 { 286 return ErrInvalidLengthCaps 287 } 288 postIndex := iNdEx + intStringLen 289 if postIndex > l { 290 return io.ErrUnexpectedEOF 291 } 292 m.ID = string(dAtA[iNdEx:postIndex]) 293 iNdEx = postIndex 294 case 2: 295 if wireType != 0 { 296 return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) 297 } 298 var v int 299 for shift := uint(0); ; shift += 7 { 300 if shift >= 64 { 301 return ErrIntOverflowCaps 302 } 303 if iNdEx >= l { 304 return io.ErrUnexpectedEOF 305 } 306 b := dAtA[iNdEx] 307 iNdEx++ 308 v |= (int(b) & 0x7F) << shift 309 if b < 0x80 { 310 break 311 } 312 } 313 m.Enabled = bool(v != 0) 314 case 3: 315 if wireType != 0 { 316 return fmt.Errorf("proto: wrong wireType = %d for field Deprecated", wireType) 317 } 318 var v int 319 for shift := uint(0); ; shift += 7 { 320 if shift >= 64 { 321 return ErrIntOverflowCaps 322 } 323 if iNdEx >= l { 324 return io.ErrUnexpectedEOF 325 } 326 b := dAtA[iNdEx] 327 iNdEx++ 328 v |= (int(b) & 0x7F) << shift 329 if b < 0x80 { 330 break 331 } 332 } 333 m.Deprecated = bool(v != 0) 334 case 4: 335 if wireType != 2 { 336 return fmt.Errorf("proto: wrong wireType = %d for field DisabledReason", wireType) 337 } 338 var stringLen uint64 339 for shift := uint(0); ; shift += 7 { 340 if shift >= 64 { 341 return ErrIntOverflowCaps 342 } 343 if iNdEx >= l { 344 return io.ErrUnexpectedEOF 345 } 346 b := dAtA[iNdEx] 347 iNdEx++ 348 stringLen |= (uint64(b) & 0x7F) << shift 349 if b < 0x80 { 350 break 351 } 352 } 353 intStringLen := int(stringLen) 354 if intStringLen < 0 { 355 return ErrInvalidLengthCaps 356 } 357 postIndex := iNdEx + intStringLen 358 if postIndex > l { 359 return io.ErrUnexpectedEOF 360 } 361 m.DisabledReason = string(dAtA[iNdEx:postIndex]) 362 iNdEx = postIndex 363 case 5: 364 if wireType != 2 { 365 return fmt.Errorf("proto: wrong wireType = %d for field DisabledReasonMsg", wireType) 366 } 367 var stringLen uint64 368 for shift := uint(0); ; shift += 7 { 369 if shift >= 64 { 370 return ErrIntOverflowCaps 371 } 372 if iNdEx >= l { 373 return io.ErrUnexpectedEOF 374 } 375 b := dAtA[iNdEx] 376 iNdEx++ 377 stringLen |= (uint64(b) & 0x7F) << shift 378 if b < 0x80 { 379 break 380 } 381 } 382 intStringLen := int(stringLen) 383 if intStringLen < 0 { 384 return ErrInvalidLengthCaps 385 } 386 postIndex := iNdEx + intStringLen 387 if postIndex > l { 388 return io.ErrUnexpectedEOF 389 } 390 m.DisabledReasonMsg = string(dAtA[iNdEx:postIndex]) 391 iNdEx = postIndex 392 case 6: 393 if wireType != 2 { 394 return fmt.Errorf("proto: wrong wireType = %d for field DisabledAlternative", wireType) 395 } 396 var stringLen uint64 397 for shift := uint(0); ; shift += 7 { 398 if shift >= 64 { 399 return ErrIntOverflowCaps 400 } 401 if iNdEx >= l { 402 return io.ErrUnexpectedEOF 403 } 404 b := dAtA[iNdEx] 405 iNdEx++ 406 stringLen |= (uint64(b) & 0x7F) << shift 407 if b < 0x80 { 408 break 409 } 410 } 411 intStringLen := int(stringLen) 412 if intStringLen < 0 { 413 return ErrInvalidLengthCaps 414 } 415 postIndex := iNdEx + intStringLen 416 if postIndex > l { 417 return io.ErrUnexpectedEOF 418 } 419 m.DisabledAlternative = string(dAtA[iNdEx:postIndex]) 420 iNdEx = postIndex 421 default: 422 iNdEx = preIndex 423 skippy, err := skipCaps(dAtA[iNdEx:]) 424 if err != nil { 425 return err 426 } 427 if skippy < 0 { 428 return ErrInvalidLengthCaps 429 } 430 if (iNdEx + skippy) > l { 431 return io.ErrUnexpectedEOF 432 } 433 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 434 iNdEx += skippy 435 } 436 } 437 438 if iNdEx > l { 439 return io.ErrUnexpectedEOF 440 } 441 return nil 442} 443func skipCaps(dAtA []byte) (n int, err error) { 444 l := len(dAtA) 445 iNdEx := 0 446 for iNdEx < l { 447 var wire uint64 448 for shift := uint(0); ; shift += 7 { 449 if shift >= 64 { 450 return 0, ErrIntOverflowCaps 451 } 452 if iNdEx >= l { 453 return 0, io.ErrUnexpectedEOF 454 } 455 b := dAtA[iNdEx] 456 iNdEx++ 457 wire |= (uint64(b) & 0x7F) << shift 458 if b < 0x80 { 459 break 460 } 461 } 462 wireType := int(wire & 0x7) 463 switch wireType { 464 case 0: 465 for shift := uint(0); ; shift += 7 { 466 if shift >= 64 { 467 return 0, ErrIntOverflowCaps 468 } 469 if iNdEx >= l { 470 return 0, io.ErrUnexpectedEOF 471 } 472 iNdEx++ 473 if dAtA[iNdEx-1] < 0x80 { 474 break 475 } 476 } 477 return iNdEx, nil 478 case 1: 479 iNdEx += 8 480 return iNdEx, nil 481 case 2: 482 var length int 483 for shift := uint(0); ; shift += 7 { 484 if shift >= 64 { 485 return 0, ErrIntOverflowCaps 486 } 487 if iNdEx >= l { 488 return 0, io.ErrUnexpectedEOF 489 } 490 b := dAtA[iNdEx] 491 iNdEx++ 492 length |= (int(b) & 0x7F) << shift 493 if b < 0x80 { 494 break 495 } 496 } 497 iNdEx += length 498 if length < 0 { 499 return 0, ErrInvalidLengthCaps 500 } 501 return iNdEx, nil 502 case 3: 503 for { 504 var innerWire uint64 505 var start int = iNdEx 506 for shift := uint(0); ; shift += 7 { 507 if shift >= 64 { 508 return 0, ErrIntOverflowCaps 509 } 510 if iNdEx >= l { 511 return 0, io.ErrUnexpectedEOF 512 } 513 b := dAtA[iNdEx] 514 iNdEx++ 515 innerWire |= (uint64(b) & 0x7F) << shift 516 if b < 0x80 { 517 break 518 } 519 } 520 innerWireType := int(innerWire & 0x7) 521 if innerWireType == 4 { 522 break 523 } 524 next, err := skipCaps(dAtA[start:]) 525 if err != nil { 526 return 0, err 527 } 528 iNdEx = start + next 529 } 530 return iNdEx, nil 531 case 4: 532 return iNdEx, nil 533 case 5: 534 iNdEx += 4 535 return iNdEx, nil 536 default: 537 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 538 } 539 } 540 panic("unreachable") 541} 542 543var ( 544 ErrInvalidLengthCaps = fmt.Errorf("proto: negative length found during unmarshaling") 545 ErrIntOverflowCaps = fmt.Errorf("proto: integer overflow") 546) 547 548func init() { proto.RegisterFile("caps.proto", fileDescriptor_caps_04e1bcd232e9a565) } 549 550var fileDescriptor_caps_04e1bcd232e9a565 = []byte{ 551 // 236 bytes of a gzipped FileDescriptorProto 552 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4a, 0x4e, 0x2c, 0x28, 553 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0xc8, 0xcd, 0x4f, 0xaa, 0xd4, 0x4b, 0x2a, 0xcd, 554 0xcc, 0x49, 0xc9, 0xce, 0x2c, 0xd1, 0x2b, 0x33, 0xd4, 0x4b, 0x2c, 0xc8, 0x04, 0xc9, 0x4b, 0xe9, 555 0xa6, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0xa7, 0xe7, 0xa7, 0xe7, 0xeb, 556 0x83, 0x35, 0x24, 0x95, 0xa6, 0x81, 0x79, 0x60, 0x0e, 0x98, 0x05, 0x31, 0x48, 0xe9, 0x16, 0x23, 557 0x17, 0x9b, 0x63, 0x80, 0xa7, 0x73, 0x62, 0x81, 0x10, 0x1f, 0x17, 0x93, 0xa7, 0x8b, 0x04, 0xa3, 558 0x02, 0xa3, 0x06, 0x67, 0x10, 0x93, 0xa7, 0x8b, 0x90, 0x04, 0x17, 0xbb, 0x6b, 0x5e, 0x62, 0x52, 559 0x4e, 0x6a, 0x8a, 0x04, 0x93, 0x02, 0xa3, 0x06, 0x47, 0x10, 0x8c, 0x2b, 0x24, 0xc7, 0xc5, 0xe5, 560 0x92, 0x5a, 0x50, 0x94, 0x9a, 0x9c, 0x58, 0x92, 0x9a, 0x22, 0xc1, 0x0c, 0x96, 0x44, 0x12, 0x11, 561 0x52, 0xe3, 0xe2, 0x73, 0xc9, 0x2c, 0x06, 0xab, 0x0d, 0x4a, 0x4d, 0x2c, 0xce, 0xcf, 0x93, 0x60, 562 0x01, 0x9b, 0x8a, 0x26, 0x2a, 0xa4, 0xc3, 0x25, 0x88, 0x2a, 0xe2, 0x5b, 0x9c, 0x2e, 0xc1, 0x0a, 563 0x56, 0x8a, 0x29, 0x21, 0x64, 0xc0, 0x25, 0x0c, 0x13, 0x74, 0xcc, 0x29, 0x49, 0x2d, 0xca, 0x4b, 564 0x2c, 0xc9, 0x2c, 0x4b, 0x95, 0x60, 0x03, 0xab, 0xc7, 0x26, 0xe5, 0xc4, 0x73, 0xe2, 0x91, 0x1c, 565 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f, 0x1e, 0xc9, 0x31, 0x26, 0xb1, 0x81, 0x7d, 0x6c, 0x0c, 0x08, 566 0x00, 0x00, 0xff, 0xff, 0x02, 0x2d, 0x9e, 0x91, 0x48, 0x01, 0x00, 0x00, 567} 568