schema.capnp.h (314960B)
1 // Generated by Cap'n Proto compiler, DO NOT EDIT 2 // source: schema.capnp 3 4 #pragma once 5 6 #include <capnp/generated-header-support.h> 7 #include <kj/windows-sanity.h> 8 9 #if CAPNP_VERSION != 10000 10 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." 11 #endif 12 13 14 CAPNP_BEGIN_HEADER 15 16 namespace capnp { 17 namespace schemas { 18 19 CAPNP_DECLARE_SCHEMA(e682ab4cf923a417); 20 CAPNP_DECLARE_SCHEMA(b9521bccf10fa3b1); 21 CAPNP_DECLARE_SCHEMA(debf55bbfa0fc242); 22 CAPNP_DECLARE_SCHEMA(f38e1de3041357ae); 23 CAPNP_DECLARE_SCHEMA(c2ba9038898e1fa2); 24 CAPNP_DECLARE_SCHEMA(9ea0b19b37fb4435); 25 CAPNP_DECLARE_SCHEMA(b54ab3364333f598); 26 CAPNP_DECLARE_SCHEMA(e82753cff0c2218f); 27 CAPNP_DECLARE_SCHEMA(b18aa5ac7a0d9420); 28 CAPNP_DECLARE_SCHEMA(ec1619d4400a0290); 29 CAPNP_DECLARE_SCHEMA(9aad50a41f4af45f); 30 CAPNP_DECLARE_SCHEMA(97b14cbe7cfec712); 31 CAPNP_DECLARE_SCHEMA(c42305476bb4746f); 32 CAPNP_DECLARE_SCHEMA(cafccddb68db1d11); 33 CAPNP_DECLARE_SCHEMA(bb90d5c287870be6); 34 CAPNP_DECLARE_SCHEMA(978a7cebdc549a4d); 35 CAPNP_DECLARE_SCHEMA(a9962a9ed0a4d7f8); 36 CAPNP_DECLARE_SCHEMA(9500cce23b334d80); 37 CAPNP_DECLARE_SCHEMA(d07378ede1f9cc60); 38 CAPNP_DECLARE_SCHEMA(87e739250a60ea97); 39 CAPNP_DECLARE_SCHEMA(9e0e78711a7f87a9); 40 CAPNP_DECLARE_SCHEMA(ac3a6f60ef4cc6d3); 41 CAPNP_DECLARE_SCHEMA(ed8bca69f7fb0cbf); 42 CAPNP_DECLARE_SCHEMA(c2573fe8a23e49f1); 43 CAPNP_DECLARE_SCHEMA(8e3b5f79fe593656); 44 CAPNP_DECLARE_SCHEMA(9dd1f724f4614a85); 45 CAPNP_DECLARE_SCHEMA(baefc9120c56e274); 46 CAPNP_DECLARE_SCHEMA(903455f06065422b); 47 CAPNP_DECLARE_SCHEMA(abd73485a9636bc9); 48 CAPNP_DECLARE_SCHEMA(c863cd16969ee7fc); 49 CAPNP_DECLARE_SCHEMA(ce23dcd2d7b00c9b); 50 CAPNP_DECLARE_SCHEMA(f1c8950dab257542); 51 CAPNP_DECLARE_SCHEMA(d1958f7dba521926); 52 enum class ElementSize_d1958f7dba521926: uint16_t { 53 EMPTY, 54 BIT, 55 BYTE, 56 TWO_BYTES, 57 FOUR_BYTES, 58 EIGHT_BYTES, 59 POINTER, 60 INLINE_COMPOSITE, 61 }; 62 CAPNP_DECLARE_ENUM(ElementSize, d1958f7dba521926); 63 CAPNP_DECLARE_SCHEMA(d85d305b7d839963); 64 CAPNP_DECLARE_SCHEMA(bfc546f6210ad7ce); 65 CAPNP_DECLARE_SCHEMA(cfea0eb02e810062); 66 CAPNP_DECLARE_SCHEMA(ae504193122357e5); 67 68 } // namespace schemas 69 } // namespace capnp 70 71 namespace capnp { 72 namespace schema { 73 74 struct Node { 75 Node() = delete; 76 77 class Reader; 78 class Builder; 79 class Pipeline; 80 enum Which: uint16_t { 81 FILE, 82 STRUCT, 83 ENUM, 84 INTERFACE, 85 CONST, 86 ANNOTATION, 87 }; 88 struct Parameter; 89 struct NestedNode; 90 struct SourceInfo; 91 struct Struct; 92 struct Enum; 93 struct Interface; 94 struct Const; 95 struct Annotation; 96 97 struct _capnpPrivate { 98 CAPNP_DECLARE_STRUCT_HEADER(e682ab4cf923a417, 5, 6) 99 #if !CAPNP_LITE 100 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 101 #endif // !CAPNP_LITE 102 }; 103 }; 104 105 struct Node::Parameter { 106 Parameter() = delete; 107 108 class Reader; 109 class Builder; 110 class Pipeline; 111 112 struct _capnpPrivate { 113 CAPNP_DECLARE_STRUCT_HEADER(b9521bccf10fa3b1, 0, 1) 114 #if !CAPNP_LITE 115 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 116 #endif // !CAPNP_LITE 117 }; 118 }; 119 120 struct Node::NestedNode { 121 NestedNode() = delete; 122 123 class Reader; 124 class Builder; 125 class Pipeline; 126 127 struct _capnpPrivate { 128 CAPNP_DECLARE_STRUCT_HEADER(debf55bbfa0fc242, 1, 1) 129 #if !CAPNP_LITE 130 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 131 #endif // !CAPNP_LITE 132 }; 133 }; 134 135 struct Node::SourceInfo { 136 SourceInfo() = delete; 137 138 class Reader; 139 class Builder; 140 class Pipeline; 141 struct Member; 142 143 struct _capnpPrivate { 144 CAPNP_DECLARE_STRUCT_HEADER(f38e1de3041357ae, 1, 2) 145 #if !CAPNP_LITE 146 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 147 #endif // !CAPNP_LITE 148 }; 149 }; 150 151 struct Node::SourceInfo::Member { 152 Member() = delete; 153 154 class Reader; 155 class Builder; 156 class Pipeline; 157 158 struct _capnpPrivate { 159 CAPNP_DECLARE_STRUCT_HEADER(c2ba9038898e1fa2, 0, 1) 160 #if !CAPNP_LITE 161 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 162 #endif // !CAPNP_LITE 163 }; 164 }; 165 166 struct Node::Struct { 167 Struct() = delete; 168 169 class Reader; 170 class Builder; 171 class Pipeline; 172 173 struct _capnpPrivate { 174 CAPNP_DECLARE_STRUCT_HEADER(9ea0b19b37fb4435, 5, 6) 175 #if !CAPNP_LITE 176 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 177 #endif // !CAPNP_LITE 178 }; 179 }; 180 181 struct Node::Enum { 182 Enum() = delete; 183 184 class Reader; 185 class Builder; 186 class Pipeline; 187 188 struct _capnpPrivate { 189 CAPNP_DECLARE_STRUCT_HEADER(b54ab3364333f598, 5, 6) 190 #if !CAPNP_LITE 191 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 192 #endif // !CAPNP_LITE 193 }; 194 }; 195 196 struct Node::Interface { 197 Interface() = delete; 198 199 class Reader; 200 class Builder; 201 class Pipeline; 202 203 struct _capnpPrivate { 204 CAPNP_DECLARE_STRUCT_HEADER(e82753cff0c2218f, 5, 6) 205 #if !CAPNP_LITE 206 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 207 #endif // !CAPNP_LITE 208 }; 209 }; 210 211 struct Node::Const { 212 Const() = delete; 213 214 class Reader; 215 class Builder; 216 class Pipeline; 217 218 struct _capnpPrivate { 219 CAPNP_DECLARE_STRUCT_HEADER(b18aa5ac7a0d9420, 5, 6) 220 #if !CAPNP_LITE 221 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 222 #endif // !CAPNP_LITE 223 }; 224 }; 225 226 struct Node::Annotation { 227 Annotation() = delete; 228 229 class Reader; 230 class Builder; 231 class Pipeline; 232 233 struct _capnpPrivate { 234 CAPNP_DECLARE_STRUCT_HEADER(ec1619d4400a0290, 5, 6) 235 #if !CAPNP_LITE 236 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 237 #endif // !CAPNP_LITE 238 }; 239 }; 240 241 struct Field { 242 Field() = delete; 243 244 class Reader; 245 class Builder; 246 class Pipeline; 247 enum Which: uint16_t { 248 SLOT, 249 GROUP, 250 }; 251 static constexpr ::uint16_t NO_DISCRIMINANT = 65535u; 252 struct Slot; 253 struct Group; 254 struct Ordinal; 255 256 struct _capnpPrivate { 257 CAPNP_DECLARE_STRUCT_HEADER(9aad50a41f4af45f, 3, 4) 258 #if !CAPNP_LITE 259 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 260 #endif // !CAPNP_LITE 261 }; 262 }; 263 264 struct Field::Slot { 265 Slot() = delete; 266 267 class Reader; 268 class Builder; 269 class Pipeline; 270 271 struct _capnpPrivate { 272 CAPNP_DECLARE_STRUCT_HEADER(c42305476bb4746f, 3, 4) 273 #if !CAPNP_LITE 274 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 275 #endif // !CAPNP_LITE 276 }; 277 }; 278 279 struct Field::Group { 280 Group() = delete; 281 282 class Reader; 283 class Builder; 284 class Pipeline; 285 286 struct _capnpPrivate { 287 CAPNP_DECLARE_STRUCT_HEADER(cafccddb68db1d11, 3, 4) 288 #if !CAPNP_LITE 289 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 290 #endif // !CAPNP_LITE 291 }; 292 }; 293 294 struct Field::Ordinal { 295 Ordinal() = delete; 296 297 class Reader; 298 class Builder; 299 class Pipeline; 300 enum Which: uint16_t { 301 IMPLICIT, 302 EXPLICIT, 303 }; 304 305 struct _capnpPrivate { 306 CAPNP_DECLARE_STRUCT_HEADER(bb90d5c287870be6, 3, 4) 307 #if !CAPNP_LITE 308 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 309 #endif // !CAPNP_LITE 310 }; 311 }; 312 313 struct Enumerant { 314 Enumerant() = delete; 315 316 class Reader; 317 class Builder; 318 class Pipeline; 319 320 struct _capnpPrivate { 321 CAPNP_DECLARE_STRUCT_HEADER(978a7cebdc549a4d, 1, 2) 322 #if !CAPNP_LITE 323 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 324 #endif // !CAPNP_LITE 325 }; 326 }; 327 328 struct Superclass { 329 Superclass() = delete; 330 331 class Reader; 332 class Builder; 333 class Pipeline; 334 335 struct _capnpPrivate { 336 CAPNP_DECLARE_STRUCT_HEADER(a9962a9ed0a4d7f8, 1, 1) 337 #if !CAPNP_LITE 338 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 339 #endif // !CAPNP_LITE 340 }; 341 }; 342 343 struct Method { 344 Method() = delete; 345 346 class Reader; 347 class Builder; 348 class Pipeline; 349 350 struct _capnpPrivate { 351 CAPNP_DECLARE_STRUCT_HEADER(9500cce23b334d80, 3, 5) 352 #if !CAPNP_LITE 353 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 354 #endif // !CAPNP_LITE 355 }; 356 }; 357 358 struct Type { 359 Type() = delete; 360 361 class Reader; 362 class Builder; 363 class Pipeline; 364 enum Which: uint16_t { 365 VOID, 366 BOOL, 367 INT8, 368 INT16, 369 INT32, 370 INT64, 371 UINT8, 372 UINT16, 373 UINT32, 374 UINT64, 375 FLOAT32, 376 FLOAT64, 377 TEXT, 378 DATA, 379 LIST, 380 ENUM, 381 STRUCT, 382 INTERFACE, 383 ANY_POINTER, 384 }; 385 struct List; 386 struct Enum; 387 struct Struct; 388 struct Interface; 389 struct AnyPointer; 390 391 struct _capnpPrivate { 392 CAPNP_DECLARE_STRUCT_HEADER(d07378ede1f9cc60, 3, 1) 393 #if !CAPNP_LITE 394 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 395 #endif // !CAPNP_LITE 396 }; 397 }; 398 399 struct Type::List { 400 List() = delete; 401 402 class Reader; 403 class Builder; 404 class Pipeline; 405 406 struct _capnpPrivate { 407 CAPNP_DECLARE_STRUCT_HEADER(87e739250a60ea97, 3, 1) 408 #if !CAPNP_LITE 409 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 410 #endif // !CAPNP_LITE 411 }; 412 }; 413 414 struct Type::Enum { 415 Enum() = delete; 416 417 class Reader; 418 class Builder; 419 class Pipeline; 420 421 struct _capnpPrivate { 422 CAPNP_DECLARE_STRUCT_HEADER(9e0e78711a7f87a9, 3, 1) 423 #if !CAPNP_LITE 424 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 425 #endif // !CAPNP_LITE 426 }; 427 }; 428 429 struct Type::Struct { 430 Struct() = delete; 431 432 class Reader; 433 class Builder; 434 class Pipeline; 435 436 struct _capnpPrivate { 437 CAPNP_DECLARE_STRUCT_HEADER(ac3a6f60ef4cc6d3, 3, 1) 438 #if !CAPNP_LITE 439 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 440 #endif // !CAPNP_LITE 441 }; 442 }; 443 444 struct Type::Interface { 445 Interface() = delete; 446 447 class Reader; 448 class Builder; 449 class Pipeline; 450 451 struct _capnpPrivate { 452 CAPNP_DECLARE_STRUCT_HEADER(ed8bca69f7fb0cbf, 3, 1) 453 #if !CAPNP_LITE 454 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 455 #endif // !CAPNP_LITE 456 }; 457 }; 458 459 struct Type::AnyPointer { 460 AnyPointer() = delete; 461 462 class Reader; 463 class Builder; 464 class Pipeline; 465 enum Which: uint16_t { 466 UNCONSTRAINED, 467 PARAMETER, 468 IMPLICIT_METHOD_PARAMETER, 469 }; 470 struct Unconstrained; 471 struct Parameter; 472 struct ImplicitMethodParameter; 473 474 struct _capnpPrivate { 475 CAPNP_DECLARE_STRUCT_HEADER(c2573fe8a23e49f1, 3, 1) 476 #if !CAPNP_LITE 477 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 478 #endif // !CAPNP_LITE 479 }; 480 }; 481 482 struct Type::AnyPointer::Unconstrained { 483 Unconstrained() = delete; 484 485 class Reader; 486 class Builder; 487 class Pipeline; 488 enum Which: uint16_t { 489 ANY_KIND, 490 STRUCT, 491 LIST, 492 CAPABILITY, 493 }; 494 495 struct _capnpPrivate { 496 CAPNP_DECLARE_STRUCT_HEADER(8e3b5f79fe593656, 3, 1) 497 #if !CAPNP_LITE 498 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 499 #endif // !CAPNP_LITE 500 }; 501 }; 502 503 struct Type::AnyPointer::Parameter { 504 Parameter() = delete; 505 506 class Reader; 507 class Builder; 508 class Pipeline; 509 510 struct _capnpPrivate { 511 CAPNP_DECLARE_STRUCT_HEADER(9dd1f724f4614a85, 3, 1) 512 #if !CAPNP_LITE 513 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 514 #endif // !CAPNP_LITE 515 }; 516 }; 517 518 struct Type::AnyPointer::ImplicitMethodParameter { 519 ImplicitMethodParameter() = delete; 520 521 class Reader; 522 class Builder; 523 class Pipeline; 524 525 struct _capnpPrivate { 526 CAPNP_DECLARE_STRUCT_HEADER(baefc9120c56e274, 3, 1) 527 #if !CAPNP_LITE 528 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 529 #endif // !CAPNP_LITE 530 }; 531 }; 532 533 struct Brand { 534 Brand() = delete; 535 536 class Reader; 537 class Builder; 538 class Pipeline; 539 struct Scope; 540 struct Binding; 541 542 struct _capnpPrivate { 543 CAPNP_DECLARE_STRUCT_HEADER(903455f06065422b, 0, 1) 544 #if !CAPNP_LITE 545 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 546 #endif // !CAPNP_LITE 547 }; 548 }; 549 550 struct Brand::Scope { 551 Scope() = delete; 552 553 class Reader; 554 class Builder; 555 class Pipeline; 556 enum Which: uint16_t { 557 BIND, 558 INHERIT, 559 }; 560 561 struct _capnpPrivate { 562 CAPNP_DECLARE_STRUCT_HEADER(abd73485a9636bc9, 2, 1) 563 #if !CAPNP_LITE 564 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 565 #endif // !CAPNP_LITE 566 }; 567 }; 568 569 struct Brand::Binding { 570 Binding() = delete; 571 572 class Reader; 573 class Builder; 574 class Pipeline; 575 enum Which: uint16_t { 576 UNBOUND, 577 TYPE, 578 }; 579 580 struct _capnpPrivate { 581 CAPNP_DECLARE_STRUCT_HEADER(c863cd16969ee7fc, 1, 1) 582 #if !CAPNP_LITE 583 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 584 #endif // !CAPNP_LITE 585 }; 586 }; 587 588 struct Value { 589 Value() = delete; 590 591 class Reader; 592 class Builder; 593 class Pipeline; 594 enum Which: uint16_t { 595 VOID, 596 BOOL, 597 INT8, 598 INT16, 599 INT32, 600 INT64, 601 UINT8, 602 UINT16, 603 UINT32, 604 UINT64, 605 FLOAT32, 606 FLOAT64, 607 TEXT, 608 DATA, 609 LIST, 610 ENUM, 611 STRUCT, 612 INTERFACE, 613 ANY_POINTER, 614 }; 615 616 struct _capnpPrivate { 617 CAPNP_DECLARE_STRUCT_HEADER(ce23dcd2d7b00c9b, 2, 1) 618 #if !CAPNP_LITE 619 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 620 #endif // !CAPNP_LITE 621 }; 622 }; 623 624 struct Annotation { 625 Annotation() = delete; 626 627 class Reader; 628 class Builder; 629 class Pipeline; 630 631 struct _capnpPrivate { 632 CAPNP_DECLARE_STRUCT_HEADER(f1c8950dab257542, 1, 2) 633 #if !CAPNP_LITE 634 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 635 #endif // !CAPNP_LITE 636 }; 637 }; 638 639 typedef ::capnp::schemas::ElementSize_d1958f7dba521926 ElementSize; 640 641 struct CapnpVersion { 642 CapnpVersion() = delete; 643 644 class Reader; 645 class Builder; 646 class Pipeline; 647 648 struct _capnpPrivate { 649 CAPNP_DECLARE_STRUCT_HEADER(d85d305b7d839963, 1, 0) 650 #if !CAPNP_LITE 651 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 652 #endif // !CAPNP_LITE 653 }; 654 }; 655 656 struct CodeGeneratorRequest { 657 CodeGeneratorRequest() = delete; 658 659 class Reader; 660 class Builder; 661 class Pipeline; 662 struct RequestedFile; 663 664 struct _capnpPrivate { 665 CAPNP_DECLARE_STRUCT_HEADER(bfc546f6210ad7ce, 0, 4) 666 #if !CAPNP_LITE 667 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 668 #endif // !CAPNP_LITE 669 }; 670 }; 671 672 struct CodeGeneratorRequest::RequestedFile { 673 RequestedFile() = delete; 674 675 class Reader; 676 class Builder; 677 class Pipeline; 678 struct Import; 679 680 struct _capnpPrivate { 681 CAPNP_DECLARE_STRUCT_HEADER(cfea0eb02e810062, 1, 2) 682 #if !CAPNP_LITE 683 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 684 #endif // !CAPNP_LITE 685 }; 686 }; 687 688 struct CodeGeneratorRequest::RequestedFile::Import { 689 Import() = delete; 690 691 class Reader; 692 class Builder; 693 class Pipeline; 694 695 struct _capnpPrivate { 696 CAPNP_DECLARE_STRUCT_HEADER(ae504193122357e5, 1, 1) 697 #if !CAPNP_LITE 698 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 699 #endif // !CAPNP_LITE 700 }; 701 }; 702 703 // ======================================================================================= 704 705 class Node::Reader { 706 public: 707 typedef Node Reads; 708 709 Reader() = default; 710 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 711 712 inline ::capnp::MessageSize totalSize() const { 713 return _reader.totalSize().asPublic(); 714 } 715 716 #if !CAPNP_LITE 717 inline ::kj::StringTree toString() const { 718 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 719 } 720 #endif // !CAPNP_LITE 721 722 inline Which which() const; 723 inline ::uint64_t getId() const; 724 725 inline bool hasDisplayName() const; 726 inline ::capnp::Text::Reader getDisplayName() const; 727 728 inline ::uint32_t getDisplayNamePrefixLength() const; 729 730 inline ::uint64_t getScopeId() const; 731 732 inline bool hasNestedNodes() const; 733 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader getNestedNodes() const; 734 735 inline bool hasAnnotations() const; 736 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; 737 738 inline bool isFile() const; 739 inline ::capnp::Void getFile() const; 740 741 inline bool isStruct() const; 742 inline typename Struct::Reader getStruct() const; 743 744 inline bool isEnum() const; 745 inline typename Enum::Reader getEnum() const; 746 747 inline bool isInterface() const; 748 inline typename Interface::Reader getInterface() const; 749 750 inline bool isConst() const; 751 inline typename Const::Reader getConst() const; 752 753 inline bool isAnnotation() const; 754 inline typename Annotation::Reader getAnnotation() const; 755 756 inline bool hasParameters() const; 757 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader getParameters() const; 758 759 inline bool getIsGeneric() const; 760 761 private: 762 ::capnp::_::StructReader _reader; 763 template <typename, ::capnp::Kind> 764 friend struct ::capnp::ToDynamic_; 765 template <typename, ::capnp::Kind> 766 friend struct ::capnp::_::PointerHelpers; 767 template <typename, ::capnp::Kind> 768 friend struct ::capnp::List; 769 friend class ::capnp::MessageBuilder; 770 friend class ::capnp::Orphanage; 771 }; 772 773 class Node::Builder { 774 public: 775 typedef Node Builds; 776 777 Builder() = delete; // Deleted to discourage incorrect usage. 778 // You can explicitly initialize to nullptr instead. 779 inline Builder(decltype(nullptr)) {} 780 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 781 inline operator Reader() const { return Reader(_builder.asReader()); } 782 inline Reader asReader() const { return *this; } 783 784 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 785 #if !CAPNP_LITE 786 inline ::kj::StringTree toString() const { return asReader().toString(); } 787 #endif // !CAPNP_LITE 788 789 inline Which which(); 790 inline ::uint64_t getId(); 791 inline void setId( ::uint64_t value); 792 793 inline bool hasDisplayName(); 794 inline ::capnp::Text::Builder getDisplayName(); 795 inline void setDisplayName( ::capnp::Text::Reader value); 796 inline ::capnp::Text::Builder initDisplayName(unsigned int size); 797 inline void adoptDisplayName(::capnp::Orphan< ::capnp::Text>&& value); 798 inline ::capnp::Orphan< ::capnp::Text> disownDisplayName(); 799 800 inline ::uint32_t getDisplayNamePrefixLength(); 801 inline void setDisplayNamePrefixLength( ::uint32_t value); 802 803 inline ::uint64_t getScopeId(); 804 inline void setScopeId( ::uint64_t value); 805 806 inline bool hasNestedNodes(); 807 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder getNestedNodes(); 808 inline void setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader value); 809 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder initNestedNodes(unsigned int size); 810 inline void adoptNestedNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>&& value); 811 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>> disownNestedNodes(); 812 813 inline bool hasAnnotations(); 814 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); 815 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); 816 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); 817 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); 818 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); 819 820 inline bool isFile(); 821 inline ::capnp::Void getFile(); 822 inline void setFile( ::capnp::Void value = ::capnp::VOID); 823 824 inline bool isStruct(); 825 inline typename Struct::Builder getStruct(); 826 inline typename Struct::Builder initStruct(); 827 828 inline bool isEnum(); 829 inline typename Enum::Builder getEnum(); 830 inline typename Enum::Builder initEnum(); 831 832 inline bool isInterface(); 833 inline typename Interface::Builder getInterface(); 834 inline typename Interface::Builder initInterface(); 835 836 inline bool isConst(); 837 inline typename Const::Builder getConst(); 838 inline typename Const::Builder initConst(); 839 840 inline bool isAnnotation(); 841 inline typename Annotation::Builder getAnnotation(); 842 inline typename Annotation::Builder initAnnotation(); 843 844 inline bool hasParameters(); 845 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder getParameters(); 846 inline void setParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value); 847 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder initParameters(unsigned int size); 848 inline void adoptParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value); 849 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> disownParameters(); 850 851 inline bool getIsGeneric(); 852 inline void setIsGeneric(bool value); 853 854 private: 855 ::capnp::_::StructBuilder _builder; 856 template <typename, ::capnp::Kind> 857 friend struct ::capnp::ToDynamic_; 858 friend class ::capnp::Orphanage; 859 template <typename, ::capnp::Kind> 860 friend struct ::capnp::_::PointerHelpers; 861 }; 862 863 #if !CAPNP_LITE 864 class Node::Pipeline { 865 public: 866 typedef Node Pipelines; 867 868 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 869 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 870 : _typeless(kj::mv(typeless)) {} 871 872 private: 873 ::capnp::AnyPointer::Pipeline _typeless; 874 friend class ::capnp::PipelineHook; 875 template <typename, ::capnp::Kind> 876 friend struct ::capnp::ToDynamic_; 877 }; 878 #endif // !CAPNP_LITE 879 880 class Node::Parameter::Reader { 881 public: 882 typedef Parameter Reads; 883 884 Reader() = default; 885 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 886 887 inline ::capnp::MessageSize totalSize() const { 888 return _reader.totalSize().asPublic(); 889 } 890 891 #if !CAPNP_LITE 892 inline ::kj::StringTree toString() const { 893 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 894 } 895 #endif // !CAPNP_LITE 896 897 inline bool hasName() const; 898 inline ::capnp::Text::Reader getName() const; 899 900 private: 901 ::capnp::_::StructReader _reader; 902 template <typename, ::capnp::Kind> 903 friend struct ::capnp::ToDynamic_; 904 template <typename, ::capnp::Kind> 905 friend struct ::capnp::_::PointerHelpers; 906 template <typename, ::capnp::Kind> 907 friend struct ::capnp::List; 908 friend class ::capnp::MessageBuilder; 909 friend class ::capnp::Orphanage; 910 }; 911 912 class Node::Parameter::Builder { 913 public: 914 typedef Parameter Builds; 915 916 Builder() = delete; // Deleted to discourage incorrect usage. 917 // You can explicitly initialize to nullptr instead. 918 inline Builder(decltype(nullptr)) {} 919 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 920 inline operator Reader() const { return Reader(_builder.asReader()); } 921 inline Reader asReader() const { return *this; } 922 923 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 924 #if !CAPNP_LITE 925 inline ::kj::StringTree toString() const { return asReader().toString(); } 926 #endif // !CAPNP_LITE 927 928 inline bool hasName(); 929 inline ::capnp::Text::Builder getName(); 930 inline void setName( ::capnp::Text::Reader value); 931 inline ::capnp::Text::Builder initName(unsigned int size); 932 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 933 inline ::capnp::Orphan< ::capnp::Text> disownName(); 934 935 private: 936 ::capnp::_::StructBuilder _builder; 937 template <typename, ::capnp::Kind> 938 friend struct ::capnp::ToDynamic_; 939 friend class ::capnp::Orphanage; 940 template <typename, ::capnp::Kind> 941 friend struct ::capnp::_::PointerHelpers; 942 }; 943 944 #if !CAPNP_LITE 945 class Node::Parameter::Pipeline { 946 public: 947 typedef Parameter Pipelines; 948 949 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 950 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 951 : _typeless(kj::mv(typeless)) {} 952 953 private: 954 ::capnp::AnyPointer::Pipeline _typeless; 955 friend class ::capnp::PipelineHook; 956 template <typename, ::capnp::Kind> 957 friend struct ::capnp::ToDynamic_; 958 }; 959 #endif // !CAPNP_LITE 960 961 class Node::NestedNode::Reader { 962 public: 963 typedef NestedNode Reads; 964 965 Reader() = default; 966 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 967 968 inline ::capnp::MessageSize totalSize() const { 969 return _reader.totalSize().asPublic(); 970 } 971 972 #if !CAPNP_LITE 973 inline ::kj::StringTree toString() const { 974 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 975 } 976 #endif // !CAPNP_LITE 977 978 inline bool hasName() const; 979 inline ::capnp::Text::Reader getName() const; 980 981 inline ::uint64_t getId() const; 982 983 private: 984 ::capnp::_::StructReader _reader; 985 template <typename, ::capnp::Kind> 986 friend struct ::capnp::ToDynamic_; 987 template <typename, ::capnp::Kind> 988 friend struct ::capnp::_::PointerHelpers; 989 template <typename, ::capnp::Kind> 990 friend struct ::capnp::List; 991 friend class ::capnp::MessageBuilder; 992 friend class ::capnp::Orphanage; 993 }; 994 995 class Node::NestedNode::Builder { 996 public: 997 typedef NestedNode Builds; 998 999 Builder() = delete; // Deleted to discourage incorrect usage. 1000 // You can explicitly initialize to nullptr instead. 1001 inline Builder(decltype(nullptr)) {} 1002 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1003 inline operator Reader() const { return Reader(_builder.asReader()); } 1004 inline Reader asReader() const { return *this; } 1005 1006 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1007 #if !CAPNP_LITE 1008 inline ::kj::StringTree toString() const { return asReader().toString(); } 1009 #endif // !CAPNP_LITE 1010 1011 inline bool hasName(); 1012 inline ::capnp::Text::Builder getName(); 1013 inline void setName( ::capnp::Text::Reader value); 1014 inline ::capnp::Text::Builder initName(unsigned int size); 1015 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 1016 inline ::capnp::Orphan< ::capnp::Text> disownName(); 1017 1018 inline ::uint64_t getId(); 1019 inline void setId( ::uint64_t value); 1020 1021 private: 1022 ::capnp::_::StructBuilder _builder; 1023 template <typename, ::capnp::Kind> 1024 friend struct ::capnp::ToDynamic_; 1025 friend class ::capnp::Orphanage; 1026 template <typename, ::capnp::Kind> 1027 friend struct ::capnp::_::PointerHelpers; 1028 }; 1029 1030 #if !CAPNP_LITE 1031 class Node::NestedNode::Pipeline { 1032 public: 1033 typedef NestedNode Pipelines; 1034 1035 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1036 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1037 : _typeless(kj::mv(typeless)) {} 1038 1039 private: 1040 ::capnp::AnyPointer::Pipeline _typeless; 1041 friend class ::capnp::PipelineHook; 1042 template <typename, ::capnp::Kind> 1043 friend struct ::capnp::ToDynamic_; 1044 }; 1045 #endif // !CAPNP_LITE 1046 1047 class Node::SourceInfo::Reader { 1048 public: 1049 typedef SourceInfo Reads; 1050 1051 Reader() = default; 1052 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1053 1054 inline ::capnp::MessageSize totalSize() const { 1055 return _reader.totalSize().asPublic(); 1056 } 1057 1058 #if !CAPNP_LITE 1059 inline ::kj::StringTree toString() const { 1060 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1061 } 1062 #endif // !CAPNP_LITE 1063 1064 inline ::uint64_t getId() const; 1065 1066 inline bool hasDocComment() const; 1067 inline ::capnp::Text::Reader getDocComment() const; 1068 1069 inline bool hasMembers() const; 1070 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader getMembers() const; 1071 1072 private: 1073 ::capnp::_::StructReader _reader; 1074 template <typename, ::capnp::Kind> 1075 friend struct ::capnp::ToDynamic_; 1076 template <typename, ::capnp::Kind> 1077 friend struct ::capnp::_::PointerHelpers; 1078 template <typename, ::capnp::Kind> 1079 friend struct ::capnp::List; 1080 friend class ::capnp::MessageBuilder; 1081 friend class ::capnp::Orphanage; 1082 }; 1083 1084 class Node::SourceInfo::Builder { 1085 public: 1086 typedef SourceInfo Builds; 1087 1088 Builder() = delete; // Deleted to discourage incorrect usage. 1089 // You can explicitly initialize to nullptr instead. 1090 inline Builder(decltype(nullptr)) {} 1091 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1092 inline operator Reader() const { return Reader(_builder.asReader()); } 1093 inline Reader asReader() const { return *this; } 1094 1095 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1096 #if !CAPNP_LITE 1097 inline ::kj::StringTree toString() const { return asReader().toString(); } 1098 #endif // !CAPNP_LITE 1099 1100 inline ::uint64_t getId(); 1101 inline void setId( ::uint64_t value); 1102 1103 inline bool hasDocComment(); 1104 inline ::capnp::Text::Builder getDocComment(); 1105 inline void setDocComment( ::capnp::Text::Reader value); 1106 inline ::capnp::Text::Builder initDocComment(unsigned int size); 1107 inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value); 1108 inline ::capnp::Orphan< ::capnp::Text> disownDocComment(); 1109 1110 inline bool hasMembers(); 1111 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder getMembers(); 1112 inline void setMembers( ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader value); 1113 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder initMembers(unsigned int size); 1114 inline void adoptMembers(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>&& value); 1115 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>> disownMembers(); 1116 1117 private: 1118 ::capnp::_::StructBuilder _builder; 1119 template <typename, ::capnp::Kind> 1120 friend struct ::capnp::ToDynamic_; 1121 friend class ::capnp::Orphanage; 1122 template <typename, ::capnp::Kind> 1123 friend struct ::capnp::_::PointerHelpers; 1124 }; 1125 1126 #if !CAPNP_LITE 1127 class Node::SourceInfo::Pipeline { 1128 public: 1129 typedef SourceInfo Pipelines; 1130 1131 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1132 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1133 : _typeless(kj::mv(typeless)) {} 1134 1135 private: 1136 ::capnp::AnyPointer::Pipeline _typeless; 1137 friend class ::capnp::PipelineHook; 1138 template <typename, ::capnp::Kind> 1139 friend struct ::capnp::ToDynamic_; 1140 }; 1141 #endif // !CAPNP_LITE 1142 1143 class Node::SourceInfo::Member::Reader { 1144 public: 1145 typedef Member Reads; 1146 1147 Reader() = default; 1148 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1149 1150 inline ::capnp::MessageSize totalSize() const { 1151 return _reader.totalSize().asPublic(); 1152 } 1153 1154 #if !CAPNP_LITE 1155 inline ::kj::StringTree toString() const { 1156 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1157 } 1158 #endif // !CAPNP_LITE 1159 1160 inline bool hasDocComment() const; 1161 inline ::capnp::Text::Reader getDocComment() const; 1162 1163 private: 1164 ::capnp::_::StructReader _reader; 1165 template <typename, ::capnp::Kind> 1166 friend struct ::capnp::ToDynamic_; 1167 template <typename, ::capnp::Kind> 1168 friend struct ::capnp::_::PointerHelpers; 1169 template <typename, ::capnp::Kind> 1170 friend struct ::capnp::List; 1171 friend class ::capnp::MessageBuilder; 1172 friend class ::capnp::Orphanage; 1173 }; 1174 1175 class Node::SourceInfo::Member::Builder { 1176 public: 1177 typedef Member Builds; 1178 1179 Builder() = delete; // Deleted to discourage incorrect usage. 1180 // You can explicitly initialize to nullptr instead. 1181 inline Builder(decltype(nullptr)) {} 1182 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1183 inline operator Reader() const { return Reader(_builder.asReader()); } 1184 inline Reader asReader() const { return *this; } 1185 1186 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1187 #if !CAPNP_LITE 1188 inline ::kj::StringTree toString() const { return asReader().toString(); } 1189 #endif // !CAPNP_LITE 1190 1191 inline bool hasDocComment(); 1192 inline ::capnp::Text::Builder getDocComment(); 1193 inline void setDocComment( ::capnp::Text::Reader value); 1194 inline ::capnp::Text::Builder initDocComment(unsigned int size); 1195 inline void adoptDocComment(::capnp::Orphan< ::capnp::Text>&& value); 1196 inline ::capnp::Orphan< ::capnp::Text> disownDocComment(); 1197 1198 private: 1199 ::capnp::_::StructBuilder _builder; 1200 template <typename, ::capnp::Kind> 1201 friend struct ::capnp::ToDynamic_; 1202 friend class ::capnp::Orphanage; 1203 template <typename, ::capnp::Kind> 1204 friend struct ::capnp::_::PointerHelpers; 1205 }; 1206 1207 #if !CAPNP_LITE 1208 class Node::SourceInfo::Member::Pipeline { 1209 public: 1210 typedef Member Pipelines; 1211 1212 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1213 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1214 : _typeless(kj::mv(typeless)) {} 1215 1216 private: 1217 ::capnp::AnyPointer::Pipeline _typeless; 1218 friend class ::capnp::PipelineHook; 1219 template <typename, ::capnp::Kind> 1220 friend struct ::capnp::ToDynamic_; 1221 }; 1222 #endif // !CAPNP_LITE 1223 1224 class Node::Struct::Reader { 1225 public: 1226 typedef Struct Reads; 1227 1228 Reader() = default; 1229 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1230 1231 inline ::capnp::MessageSize totalSize() const { 1232 return _reader.totalSize().asPublic(); 1233 } 1234 1235 #if !CAPNP_LITE 1236 inline ::kj::StringTree toString() const { 1237 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1238 } 1239 #endif // !CAPNP_LITE 1240 1241 inline ::uint16_t getDataWordCount() const; 1242 1243 inline ::uint16_t getPointerCount() const; 1244 1245 inline ::capnp::schema::ElementSize getPreferredListEncoding() const; 1246 1247 inline bool getIsGroup() const; 1248 1249 inline ::uint16_t getDiscriminantCount() const; 1250 1251 inline ::uint32_t getDiscriminantOffset() const; 1252 1253 inline bool hasFields() const; 1254 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader getFields() const; 1255 1256 private: 1257 ::capnp::_::StructReader _reader; 1258 template <typename, ::capnp::Kind> 1259 friend struct ::capnp::ToDynamic_; 1260 template <typename, ::capnp::Kind> 1261 friend struct ::capnp::_::PointerHelpers; 1262 template <typename, ::capnp::Kind> 1263 friend struct ::capnp::List; 1264 friend class ::capnp::MessageBuilder; 1265 friend class ::capnp::Orphanage; 1266 }; 1267 1268 class Node::Struct::Builder { 1269 public: 1270 typedef Struct Builds; 1271 1272 Builder() = delete; // Deleted to discourage incorrect usage. 1273 // You can explicitly initialize to nullptr instead. 1274 inline Builder(decltype(nullptr)) {} 1275 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1276 inline operator Reader() const { return Reader(_builder.asReader()); } 1277 inline Reader asReader() const { return *this; } 1278 1279 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1280 #if !CAPNP_LITE 1281 inline ::kj::StringTree toString() const { return asReader().toString(); } 1282 #endif // !CAPNP_LITE 1283 1284 inline ::uint16_t getDataWordCount(); 1285 inline void setDataWordCount( ::uint16_t value); 1286 1287 inline ::uint16_t getPointerCount(); 1288 inline void setPointerCount( ::uint16_t value); 1289 1290 inline ::capnp::schema::ElementSize getPreferredListEncoding(); 1291 inline void setPreferredListEncoding( ::capnp::schema::ElementSize value); 1292 1293 inline bool getIsGroup(); 1294 inline void setIsGroup(bool value); 1295 1296 inline ::uint16_t getDiscriminantCount(); 1297 inline void setDiscriminantCount( ::uint16_t value); 1298 1299 inline ::uint32_t getDiscriminantOffset(); 1300 inline void setDiscriminantOffset( ::uint32_t value); 1301 1302 inline bool hasFields(); 1303 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder getFields(); 1304 inline void setFields( ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader value); 1305 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder initFields(unsigned int size); 1306 inline void adoptFields(::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>&& value); 1307 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>> disownFields(); 1308 1309 private: 1310 ::capnp::_::StructBuilder _builder; 1311 template <typename, ::capnp::Kind> 1312 friend struct ::capnp::ToDynamic_; 1313 friend class ::capnp::Orphanage; 1314 template <typename, ::capnp::Kind> 1315 friend struct ::capnp::_::PointerHelpers; 1316 }; 1317 1318 #if !CAPNP_LITE 1319 class Node::Struct::Pipeline { 1320 public: 1321 typedef Struct Pipelines; 1322 1323 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1324 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1325 : _typeless(kj::mv(typeless)) {} 1326 1327 private: 1328 ::capnp::AnyPointer::Pipeline _typeless; 1329 friend class ::capnp::PipelineHook; 1330 template <typename, ::capnp::Kind> 1331 friend struct ::capnp::ToDynamic_; 1332 }; 1333 #endif // !CAPNP_LITE 1334 1335 class Node::Enum::Reader { 1336 public: 1337 typedef Enum Reads; 1338 1339 Reader() = default; 1340 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1341 1342 inline ::capnp::MessageSize totalSize() const { 1343 return _reader.totalSize().asPublic(); 1344 } 1345 1346 #if !CAPNP_LITE 1347 inline ::kj::StringTree toString() const { 1348 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1349 } 1350 #endif // !CAPNP_LITE 1351 1352 inline bool hasEnumerants() const; 1353 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader getEnumerants() const; 1354 1355 private: 1356 ::capnp::_::StructReader _reader; 1357 template <typename, ::capnp::Kind> 1358 friend struct ::capnp::ToDynamic_; 1359 template <typename, ::capnp::Kind> 1360 friend struct ::capnp::_::PointerHelpers; 1361 template <typename, ::capnp::Kind> 1362 friend struct ::capnp::List; 1363 friend class ::capnp::MessageBuilder; 1364 friend class ::capnp::Orphanage; 1365 }; 1366 1367 class Node::Enum::Builder { 1368 public: 1369 typedef Enum Builds; 1370 1371 Builder() = delete; // Deleted to discourage incorrect usage. 1372 // You can explicitly initialize to nullptr instead. 1373 inline Builder(decltype(nullptr)) {} 1374 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1375 inline operator Reader() const { return Reader(_builder.asReader()); } 1376 inline Reader asReader() const { return *this; } 1377 1378 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1379 #if !CAPNP_LITE 1380 inline ::kj::StringTree toString() const { return asReader().toString(); } 1381 #endif // !CAPNP_LITE 1382 1383 inline bool hasEnumerants(); 1384 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder getEnumerants(); 1385 inline void setEnumerants( ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader value); 1386 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder initEnumerants(unsigned int size); 1387 inline void adoptEnumerants(::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>&& value); 1388 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>> disownEnumerants(); 1389 1390 private: 1391 ::capnp::_::StructBuilder _builder; 1392 template <typename, ::capnp::Kind> 1393 friend struct ::capnp::ToDynamic_; 1394 friend class ::capnp::Orphanage; 1395 template <typename, ::capnp::Kind> 1396 friend struct ::capnp::_::PointerHelpers; 1397 }; 1398 1399 #if !CAPNP_LITE 1400 class Node::Enum::Pipeline { 1401 public: 1402 typedef Enum Pipelines; 1403 1404 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1405 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1406 : _typeless(kj::mv(typeless)) {} 1407 1408 private: 1409 ::capnp::AnyPointer::Pipeline _typeless; 1410 friend class ::capnp::PipelineHook; 1411 template <typename, ::capnp::Kind> 1412 friend struct ::capnp::ToDynamic_; 1413 }; 1414 #endif // !CAPNP_LITE 1415 1416 class Node::Interface::Reader { 1417 public: 1418 typedef Interface Reads; 1419 1420 Reader() = default; 1421 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1422 1423 inline ::capnp::MessageSize totalSize() const { 1424 return _reader.totalSize().asPublic(); 1425 } 1426 1427 #if !CAPNP_LITE 1428 inline ::kj::StringTree toString() const { 1429 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1430 } 1431 #endif // !CAPNP_LITE 1432 1433 inline bool hasMethods() const; 1434 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader getMethods() const; 1435 1436 inline bool hasSuperclasses() const; 1437 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader getSuperclasses() const; 1438 1439 private: 1440 ::capnp::_::StructReader _reader; 1441 template <typename, ::capnp::Kind> 1442 friend struct ::capnp::ToDynamic_; 1443 template <typename, ::capnp::Kind> 1444 friend struct ::capnp::_::PointerHelpers; 1445 template <typename, ::capnp::Kind> 1446 friend struct ::capnp::List; 1447 friend class ::capnp::MessageBuilder; 1448 friend class ::capnp::Orphanage; 1449 }; 1450 1451 class Node::Interface::Builder { 1452 public: 1453 typedef Interface Builds; 1454 1455 Builder() = delete; // Deleted to discourage incorrect usage. 1456 // You can explicitly initialize to nullptr instead. 1457 inline Builder(decltype(nullptr)) {} 1458 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1459 inline operator Reader() const { return Reader(_builder.asReader()); } 1460 inline Reader asReader() const { return *this; } 1461 1462 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1463 #if !CAPNP_LITE 1464 inline ::kj::StringTree toString() const { return asReader().toString(); } 1465 #endif // !CAPNP_LITE 1466 1467 inline bool hasMethods(); 1468 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder getMethods(); 1469 inline void setMethods( ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader value); 1470 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder initMethods(unsigned int size); 1471 inline void adoptMethods(::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>&& value); 1472 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>> disownMethods(); 1473 1474 inline bool hasSuperclasses(); 1475 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder getSuperclasses(); 1476 inline void setSuperclasses( ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader value); 1477 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder initSuperclasses(unsigned int size); 1478 inline void adoptSuperclasses(::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>&& value); 1479 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>> disownSuperclasses(); 1480 1481 private: 1482 ::capnp::_::StructBuilder _builder; 1483 template <typename, ::capnp::Kind> 1484 friend struct ::capnp::ToDynamic_; 1485 friend class ::capnp::Orphanage; 1486 template <typename, ::capnp::Kind> 1487 friend struct ::capnp::_::PointerHelpers; 1488 }; 1489 1490 #if !CAPNP_LITE 1491 class Node::Interface::Pipeline { 1492 public: 1493 typedef Interface Pipelines; 1494 1495 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1496 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1497 : _typeless(kj::mv(typeless)) {} 1498 1499 private: 1500 ::capnp::AnyPointer::Pipeline _typeless; 1501 friend class ::capnp::PipelineHook; 1502 template <typename, ::capnp::Kind> 1503 friend struct ::capnp::ToDynamic_; 1504 }; 1505 #endif // !CAPNP_LITE 1506 1507 class Node::Const::Reader { 1508 public: 1509 typedef Const Reads; 1510 1511 Reader() = default; 1512 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1513 1514 inline ::capnp::MessageSize totalSize() const { 1515 return _reader.totalSize().asPublic(); 1516 } 1517 1518 #if !CAPNP_LITE 1519 inline ::kj::StringTree toString() const { 1520 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1521 } 1522 #endif // !CAPNP_LITE 1523 1524 inline bool hasType() const; 1525 inline ::capnp::schema::Type::Reader getType() const; 1526 1527 inline bool hasValue() const; 1528 inline ::capnp::schema::Value::Reader getValue() const; 1529 1530 private: 1531 ::capnp::_::StructReader _reader; 1532 template <typename, ::capnp::Kind> 1533 friend struct ::capnp::ToDynamic_; 1534 template <typename, ::capnp::Kind> 1535 friend struct ::capnp::_::PointerHelpers; 1536 template <typename, ::capnp::Kind> 1537 friend struct ::capnp::List; 1538 friend class ::capnp::MessageBuilder; 1539 friend class ::capnp::Orphanage; 1540 }; 1541 1542 class Node::Const::Builder { 1543 public: 1544 typedef Const Builds; 1545 1546 Builder() = delete; // Deleted to discourage incorrect usage. 1547 // You can explicitly initialize to nullptr instead. 1548 inline Builder(decltype(nullptr)) {} 1549 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1550 inline operator Reader() const { return Reader(_builder.asReader()); } 1551 inline Reader asReader() const { return *this; } 1552 1553 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1554 #if !CAPNP_LITE 1555 inline ::kj::StringTree toString() const { return asReader().toString(); } 1556 #endif // !CAPNP_LITE 1557 1558 inline bool hasType(); 1559 inline ::capnp::schema::Type::Builder getType(); 1560 inline void setType( ::capnp::schema::Type::Reader value); 1561 inline ::capnp::schema::Type::Builder initType(); 1562 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); 1563 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); 1564 1565 inline bool hasValue(); 1566 inline ::capnp::schema::Value::Builder getValue(); 1567 inline void setValue( ::capnp::schema::Value::Reader value); 1568 inline ::capnp::schema::Value::Builder initValue(); 1569 inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); 1570 inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); 1571 1572 private: 1573 ::capnp::_::StructBuilder _builder; 1574 template <typename, ::capnp::Kind> 1575 friend struct ::capnp::ToDynamic_; 1576 friend class ::capnp::Orphanage; 1577 template <typename, ::capnp::Kind> 1578 friend struct ::capnp::_::PointerHelpers; 1579 }; 1580 1581 #if !CAPNP_LITE 1582 class Node::Const::Pipeline { 1583 public: 1584 typedef Const Pipelines; 1585 1586 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1587 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1588 : _typeless(kj::mv(typeless)) {} 1589 1590 inline ::capnp::schema::Type::Pipeline getType(); 1591 inline ::capnp::schema::Value::Pipeline getValue(); 1592 private: 1593 ::capnp::AnyPointer::Pipeline _typeless; 1594 friend class ::capnp::PipelineHook; 1595 template <typename, ::capnp::Kind> 1596 friend struct ::capnp::ToDynamic_; 1597 }; 1598 #endif // !CAPNP_LITE 1599 1600 class Node::Annotation::Reader { 1601 public: 1602 typedef Annotation Reads; 1603 1604 Reader() = default; 1605 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1606 1607 inline ::capnp::MessageSize totalSize() const { 1608 return _reader.totalSize().asPublic(); 1609 } 1610 1611 #if !CAPNP_LITE 1612 inline ::kj::StringTree toString() const { 1613 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1614 } 1615 #endif // !CAPNP_LITE 1616 1617 inline bool hasType() const; 1618 inline ::capnp::schema::Type::Reader getType() const; 1619 1620 inline bool getTargetsFile() const; 1621 1622 inline bool getTargetsConst() const; 1623 1624 inline bool getTargetsEnum() const; 1625 1626 inline bool getTargetsEnumerant() const; 1627 1628 inline bool getTargetsStruct() const; 1629 1630 inline bool getTargetsField() const; 1631 1632 inline bool getTargetsUnion() const; 1633 1634 inline bool getTargetsGroup() const; 1635 1636 inline bool getTargetsInterface() const; 1637 1638 inline bool getTargetsMethod() const; 1639 1640 inline bool getTargetsParam() const; 1641 1642 inline bool getTargetsAnnotation() const; 1643 1644 private: 1645 ::capnp::_::StructReader _reader; 1646 template <typename, ::capnp::Kind> 1647 friend struct ::capnp::ToDynamic_; 1648 template <typename, ::capnp::Kind> 1649 friend struct ::capnp::_::PointerHelpers; 1650 template <typename, ::capnp::Kind> 1651 friend struct ::capnp::List; 1652 friend class ::capnp::MessageBuilder; 1653 friend class ::capnp::Orphanage; 1654 }; 1655 1656 class Node::Annotation::Builder { 1657 public: 1658 typedef Annotation Builds; 1659 1660 Builder() = delete; // Deleted to discourage incorrect usage. 1661 // You can explicitly initialize to nullptr instead. 1662 inline Builder(decltype(nullptr)) {} 1663 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1664 inline operator Reader() const { return Reader(_builder.asReader()); } 1665 inline Reader asReader() const { return *this; } 1666 1667 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1668 #if !CAPNP_LITE 1669 inline ::kj::StringTree toString() const { return asReader().toString(); } 1670 #endif // !CAPNP_LITE 1671 1672 inline bool hasType(); 1673 inline ::capnp::schema::Type::Builder getType(); 1674 inline void setType( ::capnp::schema::Type::Reader value); 1675 inline ::capnp::schema::Type::Builder initType(); 1676 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); 1677 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); 1678 1679 inline bool getTargetsFile(); 1680 inline void setTargetsFile(bool value); 1681 1682 inline bool getTargetsConst(); 1683 inline void setTargetsConst(bool value); 1684 1685 inline bool getTargetsEnum(); 1686 inline void setTargetsEnum(bool value); 1687 1688 inline bool getTargetsEnumerant(); 1689 inline void setTargetsEnumerant(bool value); 1690 1691 inline bool getTargetsStruct(); 1692 inline void setTargetsStruct(bool value); 1693 1694 inline bool getTargetsField(); 1695 inline void setTargetsField(bool value); 1696 1697 inline bool getTargetsUnion(); 1698 inline void setTargetsUnion(bool value); 1699 1700 inline bool getTargetsGroup(); 1701 inline void setTargetsGroup(bool value); 1702 1703 inline bool getTargetsInterface(); 1704 inline void setTargetsInterface(bool value); 1705 1706 inline bool getTargetsMethod(); 1707 inline void setTargetsMethod(bool value); 1708 1709 inline bool getTargetsParam(); 1710 inline void setTargetsParam(bool value); 1711 1712 inline bool getTargetsAnnotation(); 1713 inline void setTargetsAnnotation(bool value); 1714 1715 private: 1716 ::capnp::_::StructBuilder _builder; 1717 template <typename, ::capnp::Kind> 1718 friend struct ::capnp::ToDynamic_; 1719 friend class ::capnp::Orphanage; 1720 template <typename, ::capnp::Kind> 1721 friend struct ::capnp::_::PointerHelpers; 1722 }; 1723 1724 #if !CAPNP_LITE 1725 class Node::Annotation::Pipeline { 1726 public: 1727 typedef Annotation Pipelines; 1728 1729 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1730 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1731 : _typeless(kj::mv(typeless)) {} 1732 1733 inline ::capnp::schema::Type::Pipeline getType(); 1734 private: 1735 ::capnp::AnyPointer::Pipeline _typeless; 1736 friend class ::capnp::PipelineHook; 1737 template <typename, ::capnp::Kind> 1738 friend struct ::capnp::ToDynamic_; 1739 }; 1740 #endif // !CAPNP_LITE 1741 1742 class Field::Reader { 1743 public: 1744 typedef Field Reads; 1745 1746 Reader() = default; 1747 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1748 1749 inline ::capnp::MessageSize totalSize() const { 1750 return _reader.totalSize().asPublic(); 1751 } 1752 1753 #if !CAPNP_LITE 1754 inline ::kj::StringTree toString() const { 1755 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1756 } 1757 #endif // !CAPNP_LITE 1758 1759 inline Which which() const; 1760 inline bool hasName() const; 1761 inline ::capnp::Text::Reader getName() const; 1762 1763 inline ::uint16_t getCodeOrder() const; 1764 1765 inline bool hasAnnotations() const; 1766 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; 1767 1768 inline ::uint16_t getDiscriminantValue() const; 1769 1770 inline bool isSlot() const; 1771 inline typename Slot::Reader getSlot() const; 1772 1773 inline bool isGroup() const; 1774 inline typename Group::Reader getGroup() const; 1775 1776 inline typename Ordinal::Reader getOrdinal() const; 1777 1778 private: 1779 ::capnp::_::StructReader _reader; 1780 template <typename, ::capnp::Kind> 1781 friend struct ::capnp::ToDynamic_; 1782 template <typename, ::capnp::Kind> 1783 friend struct ::capnp::_::PointerHelpers; 1784 template <typename, ::capnp::Kind> 1785 friend struct ::capnp::List; 1786 friend class ::capnp::MessageBuilder; 1787 friend class ::capnp::Orphanage; 1788 }; 1789 1790 class Field::Builder { 1791 public: 1792 typedef Field Builds; 1793 1794 Builder() = delete; // Deleted to discourage incorrect usage. 1795 // You can explicitly initialize to nullptr instead. 1796 inline Builder(decltype(nullptr)) {} 1797 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1798 inline operator Reader() const { return Reader(_builder.asReader()); } 1799 inline Reader asReader() const { return *this; } 1800 1801 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1802 #if !CAPNP_LITE 1803 inline ::kj::StringTree toString() const { return asReader().toString(); } 1804 #endif // !CAPNP_LITE 1805 1806 inline Which which(); 1807 inline bool hasName(); 1808 inline ::capnp::Text::Builder getName(); 1809 inline void setName( ::capnp::Text::Reader value); 1810 inline ::capnp::Text::Builder initName(unsigned int size); 1811 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 1812 inline ::capnp::Orphan< ::capnp::Text> disownName(); 1813 1814 inline ::uint16_t getCodeOrder(); 1815 inline void setCodeOrder( ::uint16_t value); 1816 1817 inline bool hasAnnotations(); 1818 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); 1819 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); 1820 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); 1821 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); 1822 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); 1823 1824 inline ::uint16_t getDiscriminantValue(); 1825 inline void setDiscriminantValue( ::uint16_t value); 1826 1827 inline bool isSlot(); 1828 inline typename Slot::Builder getSlot(); 1829 inline typename Slot::Builder initSlot(); 1830 1831 inline bool isGroup(); 1832 inline typename Group::Builder getGroup(); 1833 inline typename Group::Builder initGroup(); 1834 1835 inline typename Ordinal::Builder getOrdinal(); 1836 inline typename Ordinal::Builder initOrdinal(); 1837 1838 private: 1839 ::capnp::_::StructBuilder _builder; 1840 template <typename, ::capnp::Kind> 1841 friend struct ::capnp::ToDynamic_; 1842 friend class ::capnp::Orphanage; 1843 template <typename, ::capnp::Kind> 1844 friend struct ::capnp::_::PointerHelpers; 1845 }; 1846 1847 #if !CAPNP_LITE 1848 class Field::Pipeline { 1849 public: 1850 typedef Field Pipelines; 1851 1852 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1853 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1854 : _typeless(kj::mv(typeless)) {} 1855 1856 inline typename Ordinal::Pipeline getOrdinal(); 1857 private: 1858 ::capnp::AnyPointer::Pipeline _typeless; 1859 friend class ::capnp::PipelineHook; 1860 template <typename, ::capnp::Kind> 1861 friend struct ::capnp::ToDynamic_; 1862 }; 1863 #endif // !CAPNP_LITE 1864 1865 class Field::Slot::Reader { 1866 public: 1867 typedef Slot Reads; 1868 1869 Reader() = default; 1870 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1871 1872 inline ::capnp::MessageSize totalSize() const { 1873 return _reader.totalSize().asPublic(); 1874 } 1875 1876 #if !CAPNP_LITE 1877 inline ::kj::StringTree toString() const { 1878 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1879 } 1880 #endif // !CAPNP_LITE 1881 1882 inline ::uint32_t getOffset() const; 1883 1884 inline bool hasType() const; 1885 inline ::capnp::schema::Type::Reader getType() const; 1886 1887 inline bool hasDefaultValue() const; 1888 inline ::capnp::schema::Value::Reader getDefaultValue() const; 1889 1890 inline bool getHadExplicitDefault() const; 1891 1892 private: 1893 ::capnp::_::StructReader _reader; 1894 template <typename, ::capnp::Kind> 1895 friend struct ::capnp::ToDynamic_; 1896 template <typename, ::capnp::Kind> 1897 friend struct ::capnp::_::PointerHelpers; 1898 template <typename, ::capnp::Kind> 1899 friend struct ::capnp::List; 1900 friend class ::capnp::MessageBuilder; 1901 friend class ::capnp::Orphanage; 1902 }; 1903 1904 class Field::Slot::Builder { 1905 public: 1906 typedef Slot Builds; 1907 1908 Builder() = delete; // Deleted to discourage incorrect usage. 1909 // You can explicitly initialize to nullptr instead. 1910 inline Builder(decltype(nullptr)) {} 1911 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 1912 inline operator Reader() const { return Reader(_builder.asReader()); } 1913 inline Reader asReader() const { return *this; } 1914 1915 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1916 #if !CAPNP_LITE 1917 inline ::kj::StringTree toString() const { return asReader().toString(); } 1918 #endif // !CAPNP_LITE 1919 1920 inline ::uint32_t getOffset(); 1921 inline void setOffset( ::uint32_t value); 1922 1923 inline bool hasType(); 1924 inline ::capnp::schema::Type::Builder getType(); 1925 inline void setType( ::capnp::schema::Type::Reader value); 1926 inline ::capnp::schema::Type::Builder initType(); 1927 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); 1928 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); 1929 1930 inline bool hasDefaultValue(); 1931 inline ::capnp::schema::Value::Builder getDefaultValue(); 1932 inline void setDefaultValue( ::capnp::schema::Value::Reader value); 1933 inline ::capnp::schema::Value::Builder initDefaultValue(); 1934 inline void adoptDefaultValue(::capnp::Orphan< ::capnp::schema::Value>&& value); 1935 inline ::capnp::Orphan< ::capnp::schema::Value> disownDefaultValue(); 1936 1937 inline bool getHadExplicitDefault(); 1938 inline void setHadExplicitDefault(bool value); 1939 1940 private: 1941 ::capnp::_::StructBuilder _builder; 1942 template <typename, ::capnp::Kind> 1943 friend struct ::capnp::ToDynamic_; 1944 friend class ::capnp::Orphanage; 1945 template <typename, ::capnp::Kind> 1946 friend struct ::capnp::_::PointerHelpers; 1947 }; 1948 1949 #if !CAPNP_LITE 1950 class Field::Slot::Pipeline { 1951 public: 1952 typedef Slot Pipelines; 1953 1954 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1955 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1956 : _typeless(kj::mv(typeless)) {} 1957 1958 inline ::capnp::schema::Type::Pipeline getType(); 1959 inline ::capnp::schema::Value::Pipeline getDefaultValue(); 1960 private: 1961 ::capnp::AnyPointer::Pipeline _typeless; 1962 friend class ::capnp::PipelineHook; 1963 template <typename, ::capnp::Kind> 1964 friend struct ::capnp::ToDynamic_; 1965 }; 1966 #endif // !CAPNP_LITE 1967 1968 class Field::Group::Reader { 1969 public: 1970 typedef Group Reads; 1971 1972 Reader() = default; 1973 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 1974 1975 inline ::capnp::MessageSize totalSize() const { 1976 return _reader.totalSize().asPublic(); 1977 } 1978 1979 #if !CAPNP_LITE 1980 inline ::kj::StringTree toString() const { 1981 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 1982 } 1983 #endif // !CAPNP_LITE 1984 1985 inline ::uint64_t getTypeId() const; 1986 1987 private: 1988 ::capnp::_::StructReader _reader; 1989 template <typename, ::capnp::Kind> 1990 friend struct ::capnp::ToDynamic_; 1991 template <typename, ::capnp::Kind> 1992 friend struct ::capnp::_::PointerHelpers; 1993 template <typename, ::capnp::Kind> 1994 friend struct ::capnp::List; 1995 friend class ::capnp::MessageBuilder; 1996 friend class ::capnp::Orphanage; 1997 }; 1998 1999 class Field::Group::Builder { 2000 public: 2001 typedef Group Builds; 2002 2003 Builder() = delete; // Deleted to discourage incorrect usage. 2004 // You can explicitly initialize to nullptr instead. 2005 inline Builder(decltype(nullptr)) {} 2006 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2007 inline operator Reader() const { return Reader(_builder.asReader()); } 2008 inline Reader asReader() const { return *this; } 2009 2010 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2011 #if !CAPNP_LITE 2012 inline ::kj::StringTree toString() const { return asReader().toString(); } 2013 #endif // !CAPNP_LITE 2014 2015 inline ::uint64_t getTypeId(); 2016 inline void setTypeId( ::uint64_t value); 2017 2018 private: 2019 ::capnp::_::StructBuilder _builder; 2020 template <typename, ::capnp::Kind> 2021 friend struct ::capnp::ToDynamic_; 2022 friend class ::capnp::Orphanage; 2023 template <typename, ::capnp::Kind> 2024 friend struct ::capnp::_::PointerHelpers; 2025 }; 2026 2027 #if !CAPNP_LITE 2028 class Field::Group::Pipeline { 2029 public: 2030 typedef Group Pipelines; 2031 2032 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2033 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2034 : _typeless(kj::mv(typeless)) {} 2035 2036 private: 2037 ::capnp::AnyPointer::Pipeline _typeless; 2038 friend class ::capnp::PipelineHook; 2039 template <typename, ::capnp::Kind> 2040 friend struct ::capnp::ToDynamic_; 2041 }; 2042 #endif // !CAPNP_LITE 2043 2044 class Field::Ordinal::Reader { 2045 public: 2046 typedef Ordinal Reads; 2047 2048 Reader() = default; 2049 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2050 2051 inline ::capnp::MessageSize totalSize() const { 2052 return _reader.totalSize().asPublic(); 2053 } 2054 2055 #if !CAPNP_LITE 2056 inline ::kj::StringTree toString() const { 2057 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2058 } 2059 #endif // !CAPNP_LITE 2060 2061 inline Which which() const; 2062 inline bool isImplicit() const; 2063 inline ::capnp::Void getImplicit() const; 2064 2065 inline bool isExplicit() const; 2066 inline ::uint16_t getExplicit() const; 2067 2068 private: 2069 ::capnp::_::StructReader _reader; 2070 template <typename, ::capnp::Kind> 2071 friend struct ::capnp::ToDynamic_; 2072 template <typename, ::capnp::Kind> 2073 friend struct ::capnp::_::PointerHelpers; 2074 template <typename, ::capnp::Kind> 2075 friend struct ::capnp::List; 2076 friend class ::capnp::MessageBuilder; 2077 friend class ::capnp::Orphanage; 2078 }; 2079 2080 class Field::Ordinal::Builder { 2081 public: 2082 typedef Ordinal Builds; 2083 2084 Builder() = delete; // Deleted to discourage incorrect usage. 2085 // You can explicitly initialize to nullptr instead. 2086 inline Builder(decltype(nullptr)) {} 2087 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2088 inline operator Reader() const { return Reader(_builder.asReader()); } 2089 inline Reader asReader() const { return *this; } 2090 2091 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2092 #if !CAPNP_LITE 2093 inline ::kj::StringTree toString() const { return asReader().toString(); } 2094 #endif // !CAPNP_LITE 2095 2096 inline Which which(); 2097 inline bool isImplicit(); 2098 inline ::capnp::Void getImplicit(); 2099 inline void setImplicit( ::capnp::Void value = ::capnp::VOID); 2100 2101 inline bool isExplicit(); 2102 inline ::uint16_t getExplicit(); 2103 inline void setExplicit( ::uint16_t value); 2104 2105 private: 2106 ::capnp::_::StructBuilder _builder; 2107 template <typename, ::capnp::Kind> 2108 friend struct ::capnp::ToDynamic_; 2109 friend class ::capnp::Orphanage; 2110 template <typename, ::capnp::Kind> 2111 friend struct ::capnp::_::PointerHelpers; 2112 }; 2113 2114 #if !CAPNP_LITE 2115 class Field::Ordinal::Pipeline { 2116 public: 2117 typedef Ordinal Pipelines; 2118 2119 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2120 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2121 : _typeless(kj::mv(typeless)) {} 2122 2123 private: 2124 ::capnp::AnyPointer::Pipeline _typeless; 2125 friend class ::capnp::PipelineHook; 2126 template <typename, ::capnp::Kind> 2127 friend struct ::capnp::ToDynamic_; 2128 }; 2129 #endif // !CAPNP_LITE 2130 2131 class Enumerant::Reader { 2132 public: 2133 typedef Enumerant Reads; 2134 2135 Reader() = default; 2136 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2137 2138 inline ::capnp::MessageSize totalSize() const { 2139 return _reader.totalSize().asPublic(); 2140 } 2141 2142 #if !CAPNP_LITE 2143 inline ::kj::StringTree toString() const { 2144 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2145 } 2146 #endif // !CAPNP_LITE 2147 2148 inline bool hasName() const; 2149 inline ::capnp::Text::Reader getName() const; 2150 2151 inline ::uint16_t getCodeOrder() const; 2152 2153 inline bool hasAnnotations() const; 2154 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; 2155 2156 private: 2157 ::capnp::_::StructReader _reader; 2158 template <typename, ::capnp::Kind> 2159 friend struct ::capnp::ToDynamic_; 2160 template <typename, ::capnp::Kind> 2161 friend struct ::capnp::_::PointerHelpers; 2162 template <typename, ::capnp::Kind> 2163 friend struct ::capnp::List; 2164 friend class ::capnp::MessageBuilder; 2165 friend class ::capnp::Orphanage; 2166 }; 2167 2168 class Enumerant::Builder { 2169 public: 2170 typedef Enumerant Builds; 2171 2172 Builder() = delete; // Deleted to discourage incorrect usage. 2173 // You can explicitly initialize to nullptr instead. 2174 inline Builder(decltype(nullptr)) {} 2175 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2176 inline operator Reader() const { return Reader(_builder.asReader()); } 2177 inline Reader asReader() const { return *this; } 2178 2179 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2180 #if !CAPNP_LITE 2181 inline ::kj::StringTree toString() const { return asReader().toString(); } 2182 #endif // !CAPNP_LITE 2183 2184 inline bool hasName(); 2185 inline ::capnp::Text::Builder getName(); 2186 inline void setName( ::capnp::Text::Reader value); 2187 inline ::capnp::Text::Builder initName(unsigned int size); 2188 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 2189 inline ::capnp::Orphan< ::capnp::Text> disownName(); 2190 2191 inline ::uint16_t getCodeOrder(); 2192 inline void setCodeOrder( ::uint16_t value); 2193 2194 inline bool hasAnnotations(); 2195 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); 2196 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); 2197 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); 2198 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); 2199 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); 2200 2201 private: 2202 ::capnp::_::StructBuilder _builder; 2203 template <typename, ::capnp::Kind> 2204 friend struct ::capnp::ToDynamic_; 2205 friend class ::capnp::Orphanage; 2206 template <typename, ::capnp::Kind> 2207 friend struct ::capnp::_::PointerHelpers; 2208 }; 2209 2210 #if !CAPNP_LITE 2211 class Enumerant::Pipeline { 2212 public: 2213 typedef Enumerant Pipelines; 2214 2215 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2216 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2217 : _typeless(kj::mv(typeless)) {} 2218 2219 private: 2220 ::capnp::AnyPointer::Pipeline _typeless; 2221 friend class ::capnp::PipelineHook; 2222 template <typename, ::capnp::Kind> 2223 friend struct ::capnp::ToDynamic_; 2224 }; 2225 #endif // !CAPNP_LITE 2226 2227 class Superclass::Reader { 2228 public: 2229 typedef Superclass Reads; 2230 2231 Reader() = default; 2232 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2233 2234 inline ::capnp::MessageSize totalSize() const { 2235 return _reader.totalSize().asPublic(); 2236 } 2237 2238 #if !CAPNP_LITE 2239 inline ::kj::StringTree toString() const { 2240 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2241 } 2242 #endif // !CAPNP_LITE 2243 2244 inline ::uint64_t getId() const; 2245 2246 inline bool hasBrand() const; 2247 inline ::capnp::schema::Brand::Reader getBrand() const; 2248 2249 private: 2250 ::capnp::_::StructReader _reader; 2251 template <typename, ::capnp::Kind> 2252 friend struct ::capnp::ToDynamic_; 2253 template <typename, ::capnp::Kind> 2254 friend struct ::capnp::_::PointerHelpers; 2255 template <typename, ::capnp::Kind> 2256 friend struct ::capnp::List; 2257 friend class ::capnp::MessageBuilder; 2258 friend class ::capnp::Orphanage; 2259 }; 2260 2261 class Superclass::Builder { 2262 public: 2263 typedef Superclass Builds; 2264 2265 Builder() = delete; // Deleted to discourage incorrect usage. 2266 // You can explicitly initialize to nullptr instead. 2267 inline Builder(decltype(nullptr)) {} 2268 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2269 inline operator Reader() const { return Reader(_builder.asReader()); } 2270 inline Reader asReader() const { return *this; } 2271 2272 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2273 #if !CAPNP_LITE 2274 inline ::kj::StringTree toString() const { return asReader().toString(); } 2275 #endif // !CAPNP_LITE 2276 2277 inline ::uint64_t getId(); 2278 inline void setId( ::uint64_t value); 2279 2280 inline bool hasBrand(); 2281 inline ::capnp::schema::Brand::Builder getBrand(); 2282 inline void setBrand( ::capnp::schema::Brand::Reader value); 2283 inline ::capnp::schema::Brand::Builder initBrand(); 2284 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2285 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); 2286 2287 private: 2288 ::capnp::_::StructBuilder _builder; 2289 template <typename, ::capnp::Kind> 2290 friend struct ::capnp::ToDynamic_; 2291 friend class ::capnp::Orphanage; 2292 template <typename, ::capnp::Kind> 2293 friend struct ::capnp::_::PointerHelpers; 2294 }; 2295 2296 #if !CAPNP_LITE 2297 class Superclass::Pipeline { 2298 public: 2299 typedef Superclass Pipelines; 2300 2301 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2302 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2303 : _typeless(kj::mv(typeless)) {} 2304 2305 inline ::capnp::schema::Brand::Pipeline getBrand(); 2306 private: 2307 ::capnp::AnyPointer::Pipeline _typeless; 2308 friend class ::capnp::PipelineHook; 2309 template <typename, ::capnp::Kind> 2310 friend struct ::capnp::ToDynamic_; 2311 }; 2312 #endif // !CAPNP_LITE 2313 2314 class Method::Reader { 2315 public: 2316 typedef Method Reads; 2317 2318 Reader() = default; 2319 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2320 2321 inline ::capnp::MessageSize totalSize() const { 2322 return _reader.totalSize().asPublic(); 2323 } 2324 2325 #if !CAPNP_LITE 2326 inline ::kj::StringTree toString() const { 2327 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2328 } 2329 #endif // !CAPNP_LITE 2330 2331 inline bool hasName() const; 2332 inline ::capnp::Text::Reader getName() const; 2333 2334 inline ::uint16_t getCodeOrder() const; 2335 2336 inline ::uint64_t getParamStructType() const; 2337 2338 inline ::uint64_t getResultStructType() const; 2339 2340 inline bool hasAnnotations() const; 2341 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader getAnnotations() const; 2342 2343 inline bool hasParamBrand() const; 2344 inline ::capnp::schema::Brand::Reader getParamBrand() const; 2345 2346 inline bool hasResultBrand() const; 2347 inline ::capnp::schema::Brand::Reader getResultBrand() const; 2348 2349 inline bool hasImplicitParameters() const; 2350 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader getImplicitParameters() const; 2351 2352 private: 2353 ::capnp::_::StructReader _reader; 2354 template <typename, ::capnp::Kind> 2355 friend struct ::capnp::ToDynamic_; 2356 template <typename, ::capnp::Kind> 2357 friend struct ::capnp::_::PointerHelpers; 2358 template <typename, ::capnp::Kind> 2359 friend struct ::capnp::List; 2360 friend class ::capnp::MessageBuilder; 2361 friend class ::capnp::Orphanage; 2362 }; 2363 2364 class Method::Builder { 2365 public: 2366 typedef Method Builds; 2367 2368 Builder() = delete; // Deleted to discourage incorrect usage. 2369 // You can explicitly initialize to nullptr instead. 2370 inline Builder(decltype(nullptr)) {} 2371 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2372 inline operator Reader() const { return Reader(_builder.asReader()); } 2373 inline Reader asReader() const { return *this; } 2374 2375 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2376 #if !CAPNP_LITE 2377 inline ::kj::StringTree toString() const { return asReader().toString(); } 2378 #endif // !CAPNP_LITE 2379 2380 inline bool hasName(); 2381 inline ::capnp::Text::Builder getName(); 2382 inline void setName( ::capnp::Text::Reader value); 2383 inline ::capnp::Text::Builder initName(unsigned int size); 2384 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 2385 inline ::capnp::Orphan< ::capnp::Text> disownName(); 2386 2387 inline ::uint16_t getCodeOrder(); 2388 inline void setCodeOrder( ::uint16_t value); 2389 2390 inline ::uint64_t getParamStructType(); 2391 inline void setParamStructType( ::uint64_t value); 2392 2393 inline ::uint64_t getResultStructType(); 2394 inline void setResultStructType( ::uint64_t value); 2395 2396 inline bool hasAnnotations(); 2397 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder getAnnotations(); 2398 inline void setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value); 2399 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder initAnnotations(unsigned int size); 2400 inline void adoptAnnotations(::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value); 2401 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> disownAnnotations(); 2402 2403 inline bool hasParamBrand(); 2404 inline ::capnp::schema::Brand::Builder getParamBrand(); 2405 inline void setParamBrand( ::capnp::schema::Brand::Reader value); 2406 inline ::capnp::schema::Brand::Builder initParamBrand(); 2407 inline void adoptParamBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2408 inline ::capnp::Orphan< ::capnp::schema::Brand> disownParamBrand(); 2409 2410 inline bool hasResultBrand(); 2411 inline ::capnp::schema::Brand::Builder getResultBrand(); 2412 inline void setResultBrand( ::capnp::schema::Brand::Reader value); 2413 inline ::capnp::schema::Brand::Builder initResultBrand(); 2414 inline void adoptResultBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2415 inline ::capnp::Orphan< ::capnp::schema::Brand> disownResultBrand(); 2416 2417 inline bool hasImplicitParameters(); 2418 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder getImplicitParameters(); 2419 inline void setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value); 2420 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder initImplicitParameters(unsigned int size); 2421 inline void adoptImplicitParameters(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value); 2422 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> disownImplicitParameters(); 2423 2424 private: 2425 ::capnp::_::StructBuilder _builder; 2426 template <typename, ::capnp::Kind> 2427 friend struct ::capnp::ToDynamic_; 2428 friend class ::capnp::Orphanage; 2429 template <typename, ::capnp::Kind> 2430 friend struct ::capnp::_::PointerHelpers; 2431 }; 2432 2433 #if !CAPNP_LITE 2434 class Method::Pipeline { 2435 public: 2436 typedef Method Pipelines; 2437 2438 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2439 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2440 : _typeless(kj::mv(typeless)) {} 2441 2442 inline ::capnp::schema::Brand::Pipeline getParamBrand(); 2443 inline ::capnp::schema::Brand::Pipeline getResultBrand(); 2444 private: 2445 ::capnp::AnyPointer::Pipeline _typeless; 2446 friend class ::capnp::PipelineHook; 2447 template <typename, ::capnp::Kind> 2448 friend struct ::capnp::ToDynamic_; 2449 }; 2450 #endif // !CAPNP_LITE 2451 2452 class Type::Reader { 2453 public: 2454 typedef Type Reads; 2455 2456 Reader() = default; 2457 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2458 2459 inline ::capnp::MessageSize totalSize() const { 2460 return _reader.totalSize().asPublic(); 2461 } 2462 2463 #if !CAPNP_LITE 2464 inline ::kj::StringTree toString() const { 2465 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2466 } 2467 #endif // !CAPNP_LITE 2468 2469 inline Which which() const; 2470 inline bool isVoid() const; 2471 inline ::capnp::Void getVoid() const; 2472 2473 inline bool isBool() const; 2474 inline ::capnp::Void getBool() const; 2475 2476 inline bool isInt8() const; 2477 inline ::capnp::Void getInt8() const; 2478 2479 inline bool isInt16() const; 2480 inline ::capnp::Void getInt16() const; 2481 2482 inline bool isInt32() const; 2483 inline ::capnp::Void getInt32() const; 2484 2485 inline bool isInt64() const; 2486 inline ::capnp::Void getInt64() const; 2487 2488 inline bool isUint8() const; 2489 inline ::capnp::Void getUint8() const; 2490 2491 inline bool isUint16() const; 2492 inline ::capnp::Void getUint16() const; 2493 2494 inline bool isUint32() const; 2495 inline ::capnp::Void getUint32() const; 2496 2497 inline bool isUint64() const; 2498 inline ::capnp::Void getUint64() const; 2499 2500 inline bool isFloat32() const; 2501 inline ::capnp::Void getFloat32() const; 2502 2503 inline bool isFloat64() const; 2504 inline ::capnp::Void getFloat64() const; 2505 2506 inline bool isText() const; 2507 inline ::capnp::Void getText() const; 2508 2509 inline bool isData() const; 2510 inline ::capnp::Void getData() const; 2511 2512 inline bool isList() const; 2513 inline typename List::Reader getList() const; 2514 2515 inline bool isEnum() const; 2516 inline typename Enum::Reader getEnum() const; 2517 2518 inline bool isStruct() const; 2519 inline typename Struct::Reader getStruct() const; 2520 2521 inline bool isInterface() const; 2522 inline typename Interface::Reader getInterface() const; 2523 2524 inline bool isAnyPointer() const; 2525 inline typename AnyPointer::Reader getAnyPointer() const; 2526 2527 private: 2528 ::capnp::_::StructReader _reader; 2529 template <typename, ::capnp::Kind> 2530 friend struct ::capnp::ToDynamic_; 2531 template <typename, ::capnp::Kind> 2532 friend struct ::capnp::_::PointerHelpers; 2533 template <typename, ::capnp::Kind> 2534 friend struct ::capnp::List; 2535 friend class ::capnp::MessageBuilder; 2536 friend class ::capnp::Orphanage; 2537 }; 2538 2539 class Type::Builder { 2540 public: 2541 typedef Type Builds; 2542 2543 Builder() = delete; // Deleted to discourage incorrect usage. 2544 // You can explicitly initialize to nullptr instead. 2545 inline Builder(decltype(nullptr)) {} 2546 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2547 inline operator Reader() const { return Reader(_builder.asReader()); } 2548 inline Reader asReader() const { return *this; } 2549 2550 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2551 #if !CAPNP_LITE 2552 inline ::kj::StringTree toString() const { return asReader().toString(); } 2553 #endif // !CAPNP_LITE 2554 2555 inline Which which(); 2556 inline bool isVoid(); 2557 inline ::capnp::Void getVoid(); 2558 inline void setVoid( ::capnp::Void value = ::capnp::VOID); 2559 2560 inline bool isBool(); 2561 inline ::capnp::Void getBool(); 2562 inline void setBool( ::capnp::Void value = ::capnp::VOID); 2563 2564 inline bool isInt8(); 2565 inline ::capnp::Void getInt8(); 2566 inline void setInt8( ::capnp::Void value = ::capnp::VOID); 2567 2568 inline bool isInt16(); 2569 inline ::capnp::Void getInt16(); 2570 inline void setInt16( ::capnp::Void value = ::capnp::VOID); 2571 2572 inline bool isInt32(); 2573 inline ::capnp::Void getInt32(); 2574 inline void setInt32( ::capnp::Void value = ::capnp::VOID); 2575 2576 inline bool isInt64(); 2577 inline ::capnp::Void getInt64(); 2578 inline void setInt64( ::capnp::Void value = ::capnp::VOID); 2579 2580 inline bool isUint8(); 2581 inline ::capnp::Void getUint8(); 2582 inline void setUint8( ::capnp::Void value = ::capnp::VOID); 2583 2584 inline bool isUint16(); 2585 inline ::capnp::Void getUint16(); 2586 inline void setUint16( ::capnp::Void value = ::capnp::VOID); 2587 2588 inline bool isUint32(); 2589 inline ::capnp::Void getUint32(); 2590 inline void setUint32( ::capnp::Void value = ::capnp::VOID); 2591 2592 inline bool isUint64(); 2593 inline ::capnp::Void getUint64(); 2594 inline void setUint64( ::capnp::Void value = ::capnp::VOID); 2595 2596 inline bool isFloat32(); 2597 inline ::capnp::Void getFloat32(); 2598 inline void setFloat32( ::capnp::Void value = ::capnp::VOID); 2599 2600 inline bool isFloat64(); 2601 inline ::capnp::Void getFloat64(); 2602 inline void setFloat64( ::capnp::Void value = ::capnp::VOID); 2603 2604 inline bool isText(); 2605 inline ::capnp::Void getText(); 2606 inline void setText( ::capnp::Void value = ::capnp::VOID); 2607 2608 inline bool isData(); 2609 inline ::capnp::Void getData(); 2610 inline void setData( ::capnp::Void value = ::capnp::VOID); 2611 2612 inline bool isList(); 2613 inline typename List::Builder getList(); 2614 inline typename List::Builder initList(); 2615 2616 inline bool isEnum(); 2617 inline typename Enum::Builder getEnum(); 2618 inline typename Enum::Builder initEnum(); 2619 2620 inline bool isStruct(); 2621 inline typename Struct::Builder getStruct(); 2622 inline typename Struct::Builder initStruct(); 2623 2624 inline bool isInterface(); 2625 inline typename Interface::Builder getInterface(); 2626 inline typename Interface::Builder initInterface(); 2627 2628 inline bool isAnyPointer(); 2629 inline typename AnyPointer::Builder getAnyPointer(); 2630 inline typename AnyPointer::Builder initAnyPointer(); 2631 2632 private: 2633 ::capnp::_::StructBuilder _builder; 2634 template <typename, ::capnp::Kind> 2635 friend struct ::capnp::ToDynamic_; 2636 friend class ::capnp::Orphanage; 2637 template <typename, ::capnp::Kind> 2638 friend struct ::capnp::_::PointerHelpers; 2639 }; 2640 2641 #if !CAPNP_LITE 2642 class Type::Pipeline { 2643 public: 2644 typedef Type Pipelines; 2645 2646 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2647 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2648 : _typeless(kj::mv(typeless)) {} 2649 2650 private: 2651 ::capnp::AnyPointer::Pipeline _typeless; 2652 friend class ::capnp::PipelineHook; 2653 template <typename, ::capnp::Kind> 2654 friend struct ::capnp::ToDynamic_; 2655 }; 2656 #endif // !CAPNP_LITE 2657 2658 class Type::List::Reader { 2659 public: 2660 typedef List Reads; 2661 2662 Reader() = default; 2663 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2664 2665 inline ::capnp::MessageSize totalSize() const { 2666 return _reader.totalSize().asPublic(); 2667 } 2668 2669 #if !CAPNP_LITE 2670 inline ::kj::StringTree toString() const { 2671 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2672 } 2673 #endif // !CAPNP_LITE 2674 2675 inline bool hasElementType() const; 2676 inline ::capnp::schema::Type::Reader getElementType() const; 2677 2678 private: 2679 ::capnp::_::StructReader _reader; 2680 template <typename, ::capnp::Kind> 2681 friend struct ::capnp::ToDynamic_; 2682 template <typename, ::capnp::Kind> 2683 friend struct ::capnp::_::PointerHelpers; 2684 template <typename, ::capnp::Kind> 2685 friend struct ::capnp::List; 2686 friend class ::capnp::MessageBuilder; 2687 friend class ::capnp::Orphanage; 2688 }; 2689 2690 class Type::List::Builder { 2691 public: 2692 typedef List Builds; 2693 2694 Builder() = delete; // Deleted to discourage incorrect usage. 2695 // You can explicitly initialize to nullptr instead. 2696 inline Builder(decltype(nullptr)) {} 2697 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2698 inline operator Reader() const { return Reader(_builder.asReader()); } 2699 inline Reader asReader() const { return *this; } 2700 2701 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2702 #if !CAPNP_LITE 2703 inline ::kj::StringTree toString() const { return asReader().toString(); } 2704 #endif // !CAPNP_LITE 2705 2706 inline bool hasElementType(); 2707 inline ::capnp::schema::Type::Builder getElementType(); 2708 inline void setElementType( ::capnp::schema::Type::Reader value); 2709 inline ::capnp::schema::Type::Builder initElementType(); 2710 inline void adoptElementType(::capnp::Orphan< ::capnp::schema::Type>&& value); 2711 inline ::capnp::Orphan< ::capnp::schema::Type> disownElementType(); 2712 2713 private: 2714 ::capnp::_::StructBuilder _builder; 2715 template <typename, ::capnp::Kind> 2716 friend struct ::capnp::ToDynamic_; 2717 friend class ::capnp::Orphanage; 2718 template <typename, ::capnp::Kind> 2719 friend struct ::capnp::_::PointerHelpers; 2720 }; 2721 2722 #if !CAPNP_LITE 2723 class Type::List::Pipeline { 2724 public: 2725 typedef List Pipelines; 2726 2727 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2728 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2729 : _typeless(kj::mv(typeless)) {} 2730 2731 inline ::capnp::schema::Type::Pipeline getElementType(); 2732 private: 2733 ::capnp::AnyPointer::Pipeline _typeless; 2734 friend class ::capnp::PipelineHook; 2735 template <typename, ::capnp::Kind> 2736 friend struct ::capnp::ToDynamic_; 2737 }; 2738 #endif // !CAPNP_LITE 2739 2740 class Type::Enum::Reader { 2741 public: 2742 typedef Enum Reads; 2743 2744 Reader() = default; 2745 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2746 2747 inline ::capnp::MessageSize totalSize() const { 2748 return _reader.totalSize().asPublic(); 2749 } 2750 2751 #if !CAPNP_LITE 2752 inline ::kj::StringTree toString() const { 2753 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2754 } 2755 #endif // !CAPNP_LITE 2756 2757 inline ::uint64_t getTypeId() const; 2758 2759 inline bool hasBrand() const; 2760 inline ::capnp::schema::Brand::Reader getBrand() const; 2761 2762 private: 2763 ::capnp::_::StructReader _reader; 2764 template <typename, ::capnp::Kind> 2765 friend struct ::capnp::ToDynamic_; 2766 template <typename, ::capnp::Kind> 2767 friend struct ::capnp::_::PointerHelpers; 2768 template <typename, ::capnp::Kind> 2769 friend struct ::capnp::List; 2770 friend class ::capnp::MessageBuilder; 2771 friend class ::capnp::Orphanage; 2772 }; 2773 2774 class Type::Enum::Builder { 2775 public: 2776 typedef Enum Builds; 2777 2778 Builder() = delete; // Deleted to discourage incorrect usage. 2779 // You can explicitly initialize to nullptr instead. 2780 inline Builder(decltype(nullptr)) {} 2781 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2782 inline operator Reader() const { return Reader(_builder.asReader()); } 2783 inline Reader asReader() const { return *this; } 2784 2785 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2786 #if !CAPNP_LITE 2787 inline ::kj::StringTree toString() const { return asReader().toString(); } 2788 #endif // !CAPNP_LITE 2789 2790 inline ::uint64_t getTypeId(); 2791 inline void setTypeId( ::uint64_t value); 2792 2793 inline bool hasBrand(); 2794 inline ::capnp::schema::Brand::Builder getBrand(); 2795 inline void setBrand( ::capnp::schema::Brand::Reader value); 2796 inline ::capnp::schema::Brand::Builder initBrand(); 2797 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2798 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); 2799 2800 private: 2801 ::capnp::_::StructBuilder _builder; 2802 template <typename, ::capnp::Kind> 2803 friend struct ::capnp::ToDynamic_; 2804 friend class ::capnp::Orphanage; 2805 template <typename, ::capnp::Kind> 2806 friend struct ::capnp::_::PointerHelpers; 2807 }; 2808 2809 #if !CAPNP_LITE 2810 class Type::Enum::Pipeline { 2811 public: 2812 typedef Enum Pipelines; 2813 2814 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2815 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2816 : _typeless(kj::mv(typeless)) {} 2817 2818 inline ::capnp::schema::Brand::Pipeline getBrand(); 2819 private: 2820 ::capnp::AnyPointer::Pipeline _typeless; 2821 friend class ::capnp::PipelineHook; 2822 template <typename, ::capnp::Kind> 2823 friend struct ::capnp::ToDynamic_; 2824 }; 2825 #endif // !CAPNP_LITE 2826 2827 class Type::Struct::Reader { 2828 public: 2829 typedef Struct Reads; 2830 2831 Reader() = default; 2832 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2833 2834 inline ::capnp::MessageSize totalSize() const { 2835 return _reader.totalSize().asPublic(); 2836 } 2837 2838 #if !CAPNP_LITE 2839 inline ::kj::StringTree toString() const { 2840 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2841 } 2842 #endif // !CAPNP_LITE 2843 2844 inline ::uint64_t getTypeId() const; 2845 2846 inline bool hasBrand() const; 2847 inline ::capnp::schema::Brand::Reader getBrand() const; 2848 2849 private: 2850 ::capnp::_::StructReader _reader; 2851 template <typename, ::capnp::Kind> 2852 friend struct ::capnp::ToDynamic_; 2853 template <typename, ::capnp::Kind> 2854 friend struct ::capnp::_::PointerHelpers; 2855 template <typename, ::capnp::Kind> 2856 friend struct ::capnp::List; 2857 friend class ::capnp::MessageBuilder; 2858 friend class ::capnp::Orphanage; 2859 }; 2860 2861 class Type::Struct::Builder { 2862 public: 2863 typedef Struct Builds; 2864 2865 Builder() = delete; // Deleted to discourage incorrect usage. 2866 // You can explicitly initialize to nullptr instead. 2867 inline Builder(decltype(nullptr)) {} 2868 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2869 inline operator Reader() const { return Reader(_builder.asReader()); } 2870 inline Reader asReader() const { return *this; } 2871 2872 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2873 #if !CAPNP_LITE 2874 inline ::kj::StringTree toString() const { return asReader().toString(); } 2875 #endif // !CAPNP_LITE 2876 2877 inline ::uint64_t getTypeId(); 2878 inline void setTypeId( ::uint64_t value); 2879 2880 inline bool hasBrand(); 2881 inline ::capnp::schema::Brand::Builder getBrand(); 2882 inline void setBrand( ::capnp::schema::Brand::Reader value); 2883 inline ::capnp::schema::Brand::Builder initBrand(); 2884 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2885 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); 2886 2887 private: 2888 ::capnp::_::StructBuilder _builder; 2889 template <typename, ::capnp::Kind> 2890 friend struct ::capnp::ToDynamic_; 2891 friend class ::capnp::Orphanage; 2892 template <typename, ::capnp::Kind> 2893 friend struct ::capnp::_::PointerHelpers; 2894 }; 2895 2896 #if !CAPNP_LITE 2897 class Type::Struct::Pipeline { 2898 public: 2899 typedef Struct Pipelines; 2900 2901 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2902 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2903 : _typeless(kj::mv(typeless)) {} 2904 2905 inline ::capnp::schema::Brand::Pipeline getBrand(); 2906 private: 2907 ::capnp::AnyPointer::Pipeline _typeless; 2908 friend class ::capnp::PipelineHook; 2909 template <typename, ::capnp::Kind> 2910 friend struct ::capnp::ToDynamic_; 2911 }; 2912 #endif // !CAPNP_LITE 2913 2914 class Type::Interface::Reader { 2915 public: 2916 typedef Interface Reads; 2917 2918 Reader() = default; 2919 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 2920 2921 inline ::capnp::MessageSize totalSize() const { 2922 return _reader.totalSize().asPublic(); 2923 } 2924 2925 #if !CAPNP_LITE 2926 inline ::kj::StringTree toString() const { 2927 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 2928 } 2929 #endif // !CAPNP_LITE 2930 2931 inline ::uint64_t getTypeId() const; 2932 2933 inline bool hasBrand() const; 2934 inline ::capnp::schema::Brand::Reader getBrand() const; 2935 2936 private: 2937 ::capnp::_::StructReader _reader; 2938 template <typename, ::capnp::Kind> 2939 friend struct ::capnp::ToDynamic_; 2940 template <typename, ::capnp::Kind> 2941 friend struct ::capnp::_::PointerHelpers; 2942 template <typename, ::capnp::Kind> 2943 friend struct ::capnp::List; 2944 friend class ::capnp::MessageBuilder; 2945 friend class ::capnp::Orphanage; 2946 }; 2947 2948 class Type::Interface::Builder { 2949 public: 2950 typedef Interface Builds; 2951 2952 Builder() = delete; // Deleted to discourage incorrect usage. 2953 // You can explicitly initialize to nullptr instead. 2954 inline Builder(decltype(nullptr)) {} 2955 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 2956 inline operator Reader() const { return Reader(_builder.asReader()); } 2957 inline Reader asReader() const { return *this; } 2958 2959 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 2960 #if !CAPNP_LITE 2961 inline ::kj::StringTree toString() const { return asReader().toString(); } 2962 #endif // !CAPNP_LITE 2963 2964 inline ::uint64_t getTypeId(); 2965 inline void setTypeId( ::uint64_t value); 2966 2967 inline bool hasBrand(); 2968 inline ::capnp::schema::Brand::Builder getBrand(); 2969 inline void setBrand( ::capnp::schema::Brand::Reader value); 2970 inline ::capnp::schema::Brand::Builder initBrand(); 2971 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 2972 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); 2973 2974 private: 2975 ::capnp::_::StructBuilder _builder; 2976 template <typename, ::capnp::Kind> 2977 friend struct ::capnp::ToDynamic_; 2978 friend class ::capnp::Orphanage; 2979 template <typename, ::capnp::Kind> 2980 friend struct ::capnp::_::PointerHelpers; 2981 }; 2982 2983 #if !CAPNP_LITE 2984 class Type::Interface::Pipeline { 2985 public: 2986 typedef Interface Pipelines; 2987 2988 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 2989 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 2990 : _typeless(kj::mv(typeless)) {} 2991 2992 inline ::capnp::schema::Brand::Pipeline getBrand(); 2993 private: 2994 ::capnp::AnyPointer::Pipeline _typeless; 2995 friend class ::capnp::PipelineHook; 2996 template <typename, ::capnp::Kind> 2997 friend struct ::capnp::ToDynamic_; 2998 }; 2999 #endif // !CAPNP_LITE 3000 3001 class Type::AnyPointer::Reader { 3002 public: 3003 typedef AnyPointer Reads; 3004 3005 Reader() = default; 3006 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3007 3008 inline ::capnp::MessageSize totalSize() const { 3009 return _reader.totalSize().asPublic(); 3010 } 3011 3012 #if !CAPNP_LITE 3013 inline ::kj::StringTree toString() const { 3014 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3015 } 3016 #endif // !CAPNP_LITE 3017 3018 inline Which which() const; 3019 inline bool isUnconstrained() const; 3020 inline typename Unconstrained::Reader getUnconstrained() const; 3021 3022 inline bool isParameter() const; 3023 inline typename Parameter::Reader getParameter() const; 3024 3025 inline bool isImplicitMethodParameter() const; 3026 inline typename ImplicitMethodParameter::Reader getImplicitMethodParameter() const; 3027 3028 private: 3029 ::capnp::_::StructReader _reader; 3030 template <typename, ::capnp::Kind> 3031 friend struct ::capnp::ToDynamic_; 3032 template <typename, ::capnp::Kind> 3033 friend struct ::capnp::_::PointerHelpers; 3034 template <typename, ::capnp::Kind> 3035 friend struct ::capnp::List; 3036 friend class ::capnp::MessageBuilder; 3037 friend class ::capnp::Orphanage; 3038 }; 3039 3040 class Type::AnyPointer::Builder { 3041 public: 3042 typedef AnyPointer Builds; 3043 3044 Builder() = delete; // Deleted to discourage incorrect usage. 3045 // You can explicitly initialize to nullptr instead. 3046 inline Builder(decltype(nullptr)) {} 3047 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3048 inline operator Reader() const { return Reader(_builder.asReader()); } 3049 inline Reader asReader() const { return *this; } 3050 3051 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3052 #if !CAPNP_LITE 3053 inline ::kj::StringTree toString() const { return asReader().toString(); } 3054 #endif // !CAPNP_LITE 3055 3056 inline Which which(); 3057 inline bool isUnconstrained(); 3058 inline typename Unconstrained::Builder getUnconstrained(); 3059 inline typename Unconstrained::Builder initUnconstrained(); 3060 3061 inline bool isParameter(); 3062 inline typename Parameter::Builder getParameter(); 3063 inline typename Parameter::Builder initParameter(); 3064 3065 inline bool isImplicitMethodParameter(); 3066 inline typename ImplicitMethodParameter::Builder getImplicitMethodParameter(); 3067 inline typename ImplicitMethodParameter::Builder initImplicitMethodParameter(); 3068 3069 private: 3070 ::capnp::_::StructBuilder _builder; 3071 template <typename, ::capnp::Kind> 3072 friend struct ::capnp::ToDynamic_; 3073 friend class ::capnp::Orphanage; 3074 template <typename, ::capnp::Kind> 3075 friend struct ::capnp::_::PointerHelpers; 3076 }; 3077 3078 #if !CAPNP_LITE 3079 class Type::AnyPointer::Pipeline { 3080 public: 3081 typedef AnyPointer Pipelines; 3082 3083 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3084 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3085 : _typeless(kj::mv(typeless)) {} 3086 3087 private: 3088 ::capnp::AnyPointer::Pipeline _typeless; 3089 friend class ::capnp::PipelineHook; 3090 template <typename, ::capnp::Kind> 3091 friend struct ::capnp::ToDynamic_; 3092 }; 3093 #endif // !CAPNP_LITE 3094 3095 class Type::AnyPointer::Unconstrained::Reader { 3096 public: 3097 typedef Unconstrained Reads; 3098 3099 Reader() = default; 3100 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3101 3102 inline ::capnp::MessageSize totalSize() const { 3103 return _reader.totalSize().asPublic(); 3104 } 3105 3106 #if !CAPNP_LITE 3107 inline ::kj::StringTree toString() const { 3108 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3109 } 3110 #endif // !CAPNP_LITE 3111 3112 inline Which which() const; 3113 inline bool isAnyKind() const; 3114 inline ::capnp::Void getAnyKind() const; 3115 3116 inline bool isStruct() const; 3117 inline ::capnp::Void getStruct() const; 3118 3119 inline bool isList() const; 3120 inline ::capnp::Void getList() const; 3121 3122 inline bool isCapability() const; 3123 inline ::capnp::Void getCapability() const; 3124 3125 private: 3126 ::capnp::_::StructReader _reader; 3127 template <typename, ::capnp::Kind> 3128 friend struct ::capnp::ToDynamic_; 3129 template <typename, ::capnp::Kind> 3130 friend struct ::capnp::_::PointerHelpers; 3131 template <typename, ::capnp::Kind> 3132 friend struct ::capnp::List; 3133 friend class ::capnp::MessageBuilder; 3134 friend class ::capnp::Orphanage; 3135 }; 3136 3137 class Type::AnyPointer::Unconstrained::Builder { 3138 public: 3139 typedef Unconstrained Builds; 3140 3141 Builder() = delete; // Deleted to discourage incorrect usage. 3142 // You can explicitly initialize to nullptr instead. 3143 inline Builder(decltype(nullptr)) {} 3144 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3145 inline operator Reader() const { return Reader(_builder.asReader()); } 3146 inline Reader asReader() const { return *this; } 3147 3148 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3149 #if !CAPNP_LITE 3150 inline ::kj::StringTree toString() const { return asReader().toString(); } 3151 #endif // !CAPNP_LITE 3152 3153 inline Which which(); 3154 inline bool isAnyKind(); 3155 inline ::capnp::Void getAnyKind(); 3156 inline void setAnyKind( ::capnp::Void value = ::capnp::VOID); 3157 3158 inline bool isStruct(); 3159 inline ::capnp::Void getStruct(); 3160 inline void setStruct( ::capnp::Void value = ::capnp::VOID); 3161 3162 inline bool isList(); 3163 inline ::capnp::Void getList(); 3164 inline void setList( ::capnp::Void value = ::capnp::VOID); 3165 3166 inline bool isCapability(); 3167 inline ::capnp::Void getCapability(); 3168 inline void setCapability( ::capnp::Void value = ::capnp::VOID); 3169 3170 private: 3171 ::capnp::_::StructBuilder _builder; 3172 template <typename, ::capnp::Kind> 3173 friend struct ::capnp::ToDynamic_; 3174 friend class ::capnp::Orphanage; 3175 template <typename, ::capnp::Kind> 3176 friend struct ::capnp::_::PointerHelpers; 3177 }; 3178 3179 #if !CAPNP_LITE 3180 class Type::AnyPointer::Unconstrained::Pipeline { 3181 public: 3182 typedef Unconstrained Pipelines; 3183 3184 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3185 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3186 : _typeless(kj::mv(typeless)) {} 3187 3188 private: 3189 ::capnp::AnyPointer::Pipeline _typeless; 3190 friend class ::capnp::PipelineHook; 3191 template <typename, ::capnp::Kind> 3192 friend struct ::capnp::ToDynamic_; 3193 }; 3194 #endif // !CAPNP_LITE 3195 3196 class Type::AnyPointer::Parameter::Reader { 3197 public: 3198 typedef Parameter Reads; 3199 3200 Reader() = default; 3201 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3202 3203 inline ::capnp::MessageSize totalSize() const { 3204 return _reader.totalSize().asPublic(); 3205 } 3206 3207 #if !CAPNP_LITE 3208 inline ::kj::StringTree toString() const { 3209 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3210 } 3211 #endif // !CAPNP_LITE 3212 3213 inline ::uint64_t getScopeId() const; 3214 3215 inline ::uint16_t getParameterIndex() const; 3216 3217 private: 3218 ::capnp::_::StructReader _reader; 3219 template <typename, ::capnp::Kind> 3220 friend struct ::capnp::ToDynamic_; 3221 template <typename, ::capnp::Kind> 3222 friend struct ::capnp::_::PointerHelpers; 3223 template <typename, ::capnp::Kind> 3224 friend struct ::capnp::List; 3225 friend class ::capnp::MessageBuilder; 3226 friend class ::capnp::Orphanage; 3227 }; 3228 3229 class Type::AnyPointer::Parameter::Builder { 3230 public: 3231 typedef Parameter Builds; 3232 3233 Builder() = delete; // Deleted to discourage incorrect usage. 3234 // You can explicitly initialize to nullptr instead. 3235 inline Builder(decltype(nullptr)) {} 3236 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3237 inline operator Reader() const { return Reader(_builder.asReader()); } 3238 inline Reader asReader() const { return *this; } 3239 3240 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3241 #if !CAPNP_LITE 3242 inline ::kj::StringTree toString() const { return asReader().toString(); } 3243 #endif // !CAPNP_LITE 3244 3245 inline ::uint64_t getScopeId(); 3246 inline void setScopeId( ::uint64_t value); 3247 3248 inline ::uint16_t getParameterIndex(); 3249 inline void setParameterIndex( ::uint16_t value); 3250 3251 private: 3252 ::capnp::_::StructBuilder _builder; 3253 template <typename, ::capnp::Kind> 3254 friend struct ::capnp::ToDynamic_; 3255 friend class ::capnp::Orphanage; 3256 template <typename, ::capnp::Kind> 3257 friend struct ::capnp::_::PointerHelpers; 3258 }; 3259 3260 #if !CAPNP_LITE 3261 class Type::AnyPointer::Parameter::Pipeline { 3262 public: 3263 typedef Parameter Pipelines; 3264 3265 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3266 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3267 : _typeless(kj::mv(typeless)) {} 3268 3269 private: 3270 ::capnp::AnyPointer::Pipeline _typeless; 3271 friend class ::capnp::PipelineHook; 3272 template <typename, ::capnp::Kind> 3273 friend struct ::capnp::ToDynamic_; 3274 }; 3275 #endif // !CAPNP_LITE 3276 3277 class Type::AnyPointer::ImplicitMethodParameter::Reader { 3278 public: 3279 typedef ImplicitMethodParameter Reads; 3280 3281 Reader() = default; 3282 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3283 3284 inline ::capnp::MessageSize totalSize() const { 3285 return _reader.totalSize().asPublic(); 3286 } 3287 3288 #if !CAPNP_LITE 3289 inline ::kj::StringTree toString() const { 3290 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3291 } 3292 #endif // !CAPNP_LITE 3293 3294 inline ::uint16_t getParameterIndex() const; 3295 3296 private: 3297 ::capnp::_::StructReader _reader; 3298 template <typename, ::capnp::Kind> 3299 friend struct ::capnp::ToDynamic_; 3300 template <typename, ::capnp::Kind> 3301 friend struct ::capnp::_::PointerHelpers; 3302 template <typename, ::capnp::Kind> 3303 friend struct ::capnp::List; 3304 friend class ::capnp::MessageBuilder; 3305 friend class ::capnp::Orphanage; 3306 }; 3307 3308 class Type::AnyPointer::ImplicitMethodParameter::Builder { 3309 public: 3310 typedef ImplicitMethodParameter Builds; 3311 3312 Builder() = delete; // Deleted to discourage incorrect usage. 3313 // You can explicitly initialize to nullptr instead. 3314 inline Builder(decltype(nullptr)) {} 3315 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3316 inline operator Reader() const { return Reader(_builder.asReader()); } 3317 inline Reader asReader() const { return *this; } 3318 3319 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3320 #if !CAPNP_LITE 3321 inline ::kj::StringTree toString() const { return asReader().toString(); } 3322 #endif // !CAPNP_LITE 3323 3324 inline ::uint16_t getParameterIndex(); 3325 inline void setParameterIndex( ::uint16_t value); 3326 3327 private: 3328 ::capnp::_::StructBuilder _builder; 3329 template <typename, ::capnp::Kind> 3330 friend struct ::capnp::ToDynamic_; 3331 friend class ::capnp::Orphanage; 3332 template <typename, ::capnp::Kind> 3333 friend struct ::capnp::_::PointerHelpers; 3334 }; 3335 3336 #if !CAPNP_LITE 3337 class Type::AnyPointer::ImplicitMethodParameter::Pipeline { 3338 public: 3339 typedef ImplicitMethodParameter Pipelines; 3340 3341 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3342 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3343 : _typeless(kj::mv(typeless)) {} 3344 3345 private: 3346 ::capnp::AnyPointer::Pipeline _typeless; 3347 friend class ::capnp::PipelineHook; 3348 template <typename, ::capnp::Kind> 3349 friend struct ::capnp::ToDynamic_; 3350 }; 3351 #endif // !CAPNP_LITE 3352 3353 class Brand::Reader { 3354 public: 3355 typedef Brand Reads; 3356 3357 Reader() = default; 3358 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3359 3360 inline ::capnp::MessageSize totalSize() const { 3361 return _reader.totalSize().asPublic(); 3362 } 3363 3364 #if !CAPNP_LITE 3365 inline ::kj::StringTree toString() const { 3366 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3367 } 3368 #endif // !CAPNP_LITE 3369 3370 inline bool hasScopes() const; 3371 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader getScopes() const; 3372 3373 private: 3374 ::capnp::_::StructReader _reader; 3375 template <typename, ::capnp::Kind> 3376 friend struct ::capnp::ToDynamic_; 3377 template <typename, ::capnp::Kind> 3378 friend struct ::capnp::_::PointerHelpers; 3379 template <typename, ::capnp::Kind> 3380 friend struct ::capnp::List; 3381 friend class ::capnp::MessageBuilder; 3382 friend class ::capnp::Orphanage; 3383 }; 3384 3385 class Brand::Builder { 3386 public: 3387 typedef Brand Builds; 3388 3389 Builder() = delete; // Deleted to discourage incorrect usage. 3390 // You can explicitly initialize to nullptr instead. 3391 inline Builder(decltype(nullptr)) {} 3392 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3393 inline operator Reader() const { return Reader(_builder.asReader()); } 3394 inline Reader asReader() const { return *this; } 3395 3396 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3397 #if !CAPNP_LITE 3398 inline ::kj::StringTree toString() const { return asReader().toString(); } 3399 #endif // !CAPNP_LITE 3400 3401 inline bool hasScopes(); 3402 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder getScopes(); 3403 inline void setScopes( ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader value); 3404 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder initScopes(unsigned int size); 3405 inline void adoptScopes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>&& value); 3406 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>> disownScopes(); 3407 3408 private: 3409 ::capnp::_::StructBuilder _builder; 3410 template <typename, ::capnp::Kind> 3411 friend struct ::capnp::ToDynamic_; 3412 friend class ::capnp::Orphanage; 3413 template <typename, ::capnp::Kind> 3414 friend struct ::capnp::_::PointerHelpers; 3415 }; 3416 3417 #if !CAPNP_LITE 3418 class Brand::Pipeline { 3419 public: 3420 typedef Brand Pipelines; 3421 3422 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3423 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3424 : _typeless(kj::mv(typeless)) {} 3425 3426 private: 3427 ::capnp::AnyPointer::Pipeline _typeless; 3428 friend class ::capnp::PipelineHook; 3429 template <typename, ::capnp::Kind> 3430 friend struct ::capnp::ToDynamic_; 3431 }; 3432 #endif // !CAPNP_LITE 3433 3434 class Brand::Scope::Reader { 3435 public: 3436 typedef Scope Reads; 3437 3438 Reader() = default; 3439 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3440 3441 inline ::capnp::MessageSize totalSize() const { 3442 return _reader.totalSize().asPublic(); 3443 } 3444 3445 #if !CAPNP_LITE 3446 inline ::kj::StringTree toString() const { 3447 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3448 } 3449 #endif // !CAPNP_LITE 3450 3451 inline Which which() const; 3452 inline ::uint64_t getScopeId() const; 3453 3454 inline bool isBind() const; 3455 inline bool hasBind() const; 3456 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader getBind() const; 3457 3458 inline bool isInherit() const; 3459 inline ::capnp::Void getInherit() const; 3460 3461 private: 3462 ::capnp::_::StructReader _reader; 3463 template <typename, ::capnp::Kind> 3464 friend struct ::capnp::ToDynamic_; 3465 template <typename, ::capnp::Kind> 3466 friend struct ::capnp::_::PointerHelpers; 3467 template <typename, ::capnp::Kind> 3468 friend struct ::capnp::List; 3469 friend class ::capnp::MessageBuilder; 3470 friend class ::capnp::Orphanage; 3471 }; 3472 3473 class Brand::Scope::Builder { 3474 public: 3475 typedef Scope Builds; 3476 3477 Builder() = delete; // Deleted to discourage incorrect usage. 3478 // You can explicitly initialize to nullptr instead. 3479 inline Builder(decltype(nullptr)) {} 3480 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3481 inline operator Reader() const { return Reader(_builder.asReader()); } 3482 inline Reader asReader() const { return *this; } 3483 3484 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3485 #if !CAPNP_LITE 3486 inline ::kj::StringTree toString() const { return asReader().toString(); } 3487 #endif // !CAPNP_LITE 3488 3489 inline Which which(); 3490 inline ::uint64_t getScopeId(); 3491 inline void setScopeId( ::uint64_t value); 3492 3493 inline bool isBind(); 3494 inline bool hasBind(); 3495 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder getBind(); 3496 inline void setBind( ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader value); 3497 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder initBind(unsigned int size); 3498 inline void adoptBind(::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>&& value); 3499 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>> disownBind(); 3500 3501 inline bool isInherit(); 3502 inline ::capnp::Void getInherit(); 3503 inline void setInherit( ::capnp::Void value = ::capnp::VOID); 3504 3505 private: 3506 ::capnp::_::StructBuilder _builder; 3507 template <typename, ::capnp::Kind> 3508 friend struct ::capnp::ToDynamic_; 3509 friend class ::capnp::Orphanage; 3510 template <typename, ::capnp::Kind> 3511 friend struct ::capnp::_::PointerHelpers; 3512 }; 3513 3514 #if !CAPNP_LITE 3515 class Brand::Scope::Pipeline { 3516 public: 3517 typedef Scope Pipelines; 3518 3519 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3520 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3521 : _typeless(kj::mv(typeless)) {} 3522 3523 private: 3524 ::capnp::AnyPointer::Pipeline _typeless; 3525 friend class ::capnp::PipelineHook; 3526 template <typename, ::capnp::Kind> 3527 friend struct ::capnp::ToDynamic_; 3528 }; 3529 #endif // !CAPNP_LITE 3530 3531 class Brand::Binding::Reader { 3532 public: 3533 typedef Binding Reads; 3534 3535 Reader() = default; 3536 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3537 3538 inline ::capnp::MessageSize totalSize() const { 3539 return _reader.totalSize().asPublic(); 3540 } 3541 3542 #if !CAPNP_LITE 3543 inline ::kj::StringTree toString() const { 3544 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3545 } 3546 #endif // !CAPNP_LITE 3547 3548 inline Which which() const; 3549 inline bool isUnbound() const; 3550 inline ::capnp::Void getUnbound() const; 3551 3552 inline bool isType() const; 3553 inline bool hasType() const; 3554 inline ::capnp::schema::Type::Reader getType() const; 3555 3556 private: 3557 ::capnp::_::StructReader _reader; 3558 template <typename, ::capnp::Kind> 3559 friend struct ::capnp::ToDynamic_; 3560 template <typename, ::capnp::Kind> 3561 friend struct ::capnp::_::PointerHelpers; 3562 template <typename, ::capnp::Kind> 3563 friend struct ::capnp::List; 3564 friend class ::capnp::MessageBuilder; 3565 friend class ::capnp::Orphanage; 3566 }; 3567 3568 class Brand::Binding::Builder { 3569 public: 3570 typedef Binding Builds; 3571 3572 Builder() = delete; // Deleted to discourage incorrect usage. 3573 // You can explicitly initialize to nullptr instead. 3574 inline Builder(decltype(nullptr)) {} 3575 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3576 inline operator Reader() const { return Reader(_builder.asReader()); } 3577 inline Reader asReader() const { return *this; } 3578 3579 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3580 #if !CAPNP_LITE 3581 inline ::kj::StringTree toString() const { return asReader().toString(); } 3582 #endif // !CAPNP_LITE 3583 3584 inline Which which(); 3585 inline bool isUnbound(); 3586 inline ::capnp::Void getUnbound(); 3587 inline void setUnbound( ::capnp::Void value = ::capnp::VOID); 3588 3589 inline bool isType(); 3590 inline bool hasType(); 3591 inline ::capnp::schema::Type::Builder getType(); 3592 inline void setType( ::capnp::schema::Type::Reader value); 3593 inline ::capnp::schema::Type::Builder initType(); 3594 inline void adoptType(::capnp::Orphan< ::capnp::schema::Type>&& value); 3595 inline ::capnp::Orphan< ::capnp::schema::Type> disownType(); 3596 3597 private: 3598 ::capnp::_::StructBuilder _builder; 3599 template <typename, ::capnp::Kind> 3600 friend struct ::capnp::ToDynamic_; 3601 friend class ::capnp::Orphanage; 3602 template <typename, ::capnp::Kind> 3603 friend struct ::capnp::_::PointerHelpers; 3604 }; 3605 3606 #if !CAPNP_LITE 3607 class Brand::Binding::Pipeline { 3608 public: 3609 typedef Binding Pipelines; 3610 3611 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3612 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3613 : _typeless(kj::mv(typeless)) {} 3614 3615 private: 3616 ::capnp::AnyPointer::Pipeline _typeless; 3617 friend class ::capnp::PipelineHook; 3618 template <typename, ::capnp::Kind> 3619 friend struct ::capnp::ToDynamic_; 3620 }; 3621 #endif // !CAPNP_LITE 3622 3623 class Value::Reader { 3624 public: 3625 typedef Value Reads; 3626 3627 Reader() = default; 3628 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3629 3630 inline ::capnp::MessageSize totalSize() const { 3631 return _reader.totalSize().asPublic(); 3632 } 3633 3634 #if !CAPNP_LITE 3635 inline ::kj::StringTree toString() const { 3636 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3637 } 3638 #endif // !CAPNP_LITE 3639 3640 inline Which which() const; 3641 inline bool isVoid() const; 3642 inline ::capnp::Void getVoid() const; 3643 3644 inline bool isBool() const; 3645 inline bool getBool() const; 3646 3647 inline bool isInt8() const; 3648 inline ::int8_t getInt8() const; 3649 3650 inline bool isInt16() const; 3651 inline ::int16_t getInt16() const; 3652 3653 inline bool isInt32() const; 3654 inline ::int32_t getInt32() const; 3655 3656 inline bool isInt64() const; 3657 inline ::int64_t getInt64() const; 3658 3659 inline bool isUint8() const; 3660 inline ::uint8_t getUint8() const; 3661 3662 inline bool isUint16() const; 3663 inline ::uint16_t getUint16() const; 3664 3665 inline bool isUint32() const; 3666 inline ::uint32_t getUint32() const; 3667 3668 inline bool isUint64() const; 3669 inline ::uint64_t getUint64() const; 3670 3671 inline bool isFloat32() const; 3672 inline float getFloat32() const; 3673 3674 inline bool isFloat64() const; 3675 inline double getFloat64() const; 3676 3677 inline bool isText() const; 3678 inline bool hasText() const; 3679 inline ::capnp::Text::Reader getText() const; 3680 3681 inline bool isData() const; 3682 inline bool hasData() const; 3683 inline ::capnp::Data::Reader getData() const; 3684 3685 inline bool isList() const; 3686 inline bool hasList() const; 3687 inline ::capnp::AnyPointer::Reader getList() const; 3688 3689 inline bool isEnum() const; 3690 inline ::uint16_t getEnum() const; 3691 3692 inline bool isStruct() const; 3693 inline bool hasStruct() const; 3694 inline ::capnp::AnyPointer::Reader getStruct() const; 3695 3696 inline bool isInterface() const; 3697 inline ::capnp::Void getInterface() const; 3698 3699 inline bool isAnyPointer() const; 3700 inline bool hasAnyPointer() const; 3701 inline ::capnp::AnyPointer::Reader getAnyPointer() const; 3702 3703 private: 3704 ::capnp::_::StructReader _reader; 3705 template <typename, ::capnp::Kind> 3706 friend struct ::capnp::ToDynamic_; 3707 template <typename, ::capnp::Kind> 3708 friend struct ::capnp::_::PointerHelpers; 3709 template <typename, ::capnp::Kind> 3710 friend struct ::capnp::List; 3711 friend class ::capnp::MessageBuilder; 3712 friend class ::capnp::Orphanage; 3713 }; 3714 3715 class Value::Builder { 3716 public: 3717 typedef Value Builds; 3718 3719 Builder() = delete; // Deleted to discourage incorrect usage. 3720 // You can explicitly initialize to nullptr instead. 3721 inline Builder(decltype(nullptr)) {} 3722 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3723 inline operator Reader() const { return Reader(_builder.asReader()); } 3724 inline Reader asReader() const { return *this; } 3725 3726 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3727 #if !CAPNP_LITE 3728 inline ::kj::StringTree toString() const { return asReader().toString(); } 3729 #endif // !CAPNP_LITE 3730 3731 inline Which which(); 3732 inline bool isVoid(); 3733 inline ::capnp::Void getVoid(); 3734 inline void setVoid( ::capnp::Void value = ::capnp::VOID); 3735 3736 inline bool isBool(); 3737 inline bool getBool(); 3738 inline void setBool(bool value); 3739 3740 inline bool isInt8(); 3741 inline ::int8_t getInt8(); 3742 inline void setInt8( ::int8_t value); 3743 3744 inline bool isInt16(); 3745 inline ::int16_t getInt16(); 3746 inline void setInt16( ::int16_t value); 3747 3748 inline bool isInt32(); 3749 inline ::int32_t getInt32(); 3750 inline void setInt32( ::int32_t value); 3751 3752 inline bool isInt64(); 3753 inline ::int64_t getInt64(); 3754 inline void setInt64( ::int64_t value); 3755 3756 inline bool isUint8(); 3757 inline ::uint8_t getUint8(); 3758 inline void setUint8( ::uint8_t value); 3759 3760 inline bool isUint16(); 3761 inline ::uint16_t getUint16(); 3762 inline void setUint16( ::uint16_t value); 3763 3764 inline bool isUint32(); 3765 inline ::uint32_t getUint32(); 3766 inline void setUint32( ::uint32_t value); 3767 3768 inline bool isUint64(); 3769 inline ::uint64_t getUint64(); 3770 inline void setUint64( ::uint64_t value); 3771 3772 inline bool isFloat32(); 3773 inline float getFloat32(); 3774 inline void setFloat32(float value); 3775 3776 inline bool isFloat64(); 3777 inline double getFloat64(); 3778 inline void setFloat64(double value); 3779 3780 inline bool isText(); 3781 inline bool hasText(); 3782 inline ::capnp::Text::Builder getText(); 3783 inline void setText( ::capnp::Text::Reader value); 3784 inline ::capnp::Text::Builder initText(unsigned int size); 3785 inline void adoptText(::capnp::Orphan< ::capnp::Text>&& value); 3786 inline ::capnp::Orphan< ::capnp::Text> disownText(); 3787 3788 inline bool isData(); 3789 inline bool hasData(); 3790 inline ::capnp::Data::Builder getData(); 3791 inline void setData( ::capnp::Data::Reader value); 3792 inline ::capnp::Data::Builder initData(unsigned int size); 3793 inline void adoptData(::capnp::Orphan< ::capnp::Data>&& value); 3794 inline ::capnp::Orphan< ::capnp::Data> disownData(); 3795 3796 inline bool isList(); 3797 inline bool hasList(); 3798 inline ::capnp::AnyPointer::Builder getList(); 3799 inline ::capnp::AnyPointer::Builder initList(); 3800 3801 inline bool isEnum(); 3802 inline ::uint16_t getEnum(); 3803 inline void setEnum( ::uint16_t value); 3804 3805 inline bool isStruct(); 3806 inline bool hasStruct(); 3807 inline ::capnp::AnyPointer::Builder getStruct(); 3808 inline ::capnp::AnyPointer::Builder initStruct(); 3809 3810 inline bool isInterface(); 3811 inline ::capnp::Void getInterface(); 3812 inline void setInterface( ::capnp::Void value = ::capnp::VOID); 3813 3814 inline bool isAnyPointer(); 3815 inline bool hasAnyPointer(); 3816 inline ::capnp::AnyPointer::Builder getAnyPointer(); 3817 inline ::capnp::AnyPointer::Builder initAnyPointer(); 3818 3819 private: 3820 ::capnp::_::StructBuilder _builder; 3821 template <typename, ::capnp::Kind> 3822 friend struct ::capnp::ToDynamic_; 3823 friend class ::capnp::Orphanage; 3824 template <typename, ::capnp::Kind> 3825 friend struct ::capnp::_::PointerHelpers; 3826 }; 3827 3828 #if !CAPNP_LITE 3829 class Value::Pipeline { 3830 public: 3831 typedef Value Pipelines; 3832 3833 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3834 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3835 : _typeless(kj::mv(typeless)) {} 3836 3837 private: 3838 ::capnp::AnyPointer::Pipeline _typeless; 3839 friend class ::capnp::PipelineHook; 3840 template <typename, ::capnp::Kind> 3841 friend struct ::capnp::ToDynamic_; 3842 }; 3843 #endif // !CAPNP_LITE 3844 3845 class Annotation::Reader { 3846 public: 3847 typedef Annotation Reads; 3848 3849 Reader() = default; 3850 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3851 3852 inline ::capnp::MessageSize totalSize() const { 3853 return _reader.totalSize().asPublic(); 3854 } 3855 3856 #if !CAPNP_LITE 3857 inline ::kj::StringTree toString() const { 3858 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3859 } 3860 #endif // !CAPNP_LITE 3861 3862 inline ::uint64_t getId() const; 3863 3864 inline bool hasValue() const; 3865 inline ::capnp::schema::Value::Reader getValue() const; 3866 3867 inline bool hasBrand() const; 3868 inline ::capnp::schema::Brand::Reader getBrand() const; 3869 3870 private: 3871 ::capnp::_::StructReader _reader; 3872 template <typename, ::capnp::Kind> 3873 friend struct ::capnp::ToDynamic_; 3874 template <typename, ::capnp::Kind> 3875 friend struct ::capnp::_::PointerHelpers; 3876 template <typename, ::capnp::Kind> 3877 friend struct ::capnp::List; 3878 friend class ::capnp::MessageBuilder; 3879 friend class ::capnp::Orphanage; 3880 }; 3881 3882 class Annotation::Builder { 3883 public: 3884 typedef Annotation Builds; 3885 3886 Builder() = delete; // Deleted to discourage incorrect usage. 3887 // You can explicitly initialize to nullptr instead. 3888 inline Builder(decltype(nullptr)) {} 3889 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3890 inline operator Reader() const { return Reader(_builder.asReader()); } 3891 inline Reader asReader() const { return *this; } 3892 3893 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3894 #if !CAPNP_LITE 3895 inline ::kj::StringTree toString() const { return asReader().toString(); } 3896 #endif // !CAPNP_LITE 3897 3898 inline ::uint64_t getId(); 3899 inline void setId( ::uint64_t value); 3900 3901 inline bool hasValue(); 3902 inline ::capnp::schema::Value::Builder getValue(); 3903 inline void setValue( ::capnp::schema::Value::Reader value); 3904 inline ::capnp::schema::Value::Builder initValue(); 3905 inline void adoptValue(::capnp::Orphan< ::capnp::schema::Value>&& value); 3906 inline ::capnp::Orphan< ::capnp::schema::Value> disownValue(); 3907 3908 inline bool hasBrand(); 3909 inline ::capnp::schema::Brand::Builder getBrand(); 3910 inline void setBrand( ::capnp::schema::Brand::Reader value); 3911 inline ::capnp::schema::Brand::Builder initBrand(); 3912 inline void adoptBrand(::capnp::Orphan< ::capnp::schema::Brand>&& value); 3913 inline ::capnp::Orphan< ::capnp::schema::Brand> disownBrand(); 3914 3915 private: 3916 ::capnp::_::StructBuilder _builder; 3917 template <typename, ::capnp::Kind> 3918 friend struct ::capnp::ToDynamic_; 3919 friend class ::capnp::Orphanage; 3920 template <typename, ::capnp::Kind> 3921 friend struct ::capnp::_::PointerHelpers; 3922 }; 3923 3924 #if !CAPNP_LITE 3925 class Annotation::Pipeline { 3926 public: 3927 typedef Annotation Pipelines; 3928 3929 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 3930 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 3931 : _typeless(kj::mv(typeless)) {} 3932 3933 inline ::capnp::schema::Value::Pipeline getValue(); 3934 inline ::capnp::schema::Brand::Pipeline getBrand(); 3935 private: 3936 ::capnp::AnyPointer::Pipeline _typeless; 3937 friend class ::capnp::PipelineHook; 3938 template <typename, ::capnp::Kind> 3939 friend struct ::capnp::ToDynamic_; 3940 }; 3941 #endif // !CAPNP_LITE 3942 3943 class CapnpVersion::Reader { 3944 public: 3945 typedef CapnpVersion Reads; 3946 3947 Reader() = default; 3948 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 3949 3950 inline ::capnp::MessageSize totalSize() const { 3951 return _reader.totalSize().asPublic(); 3952 } 3953 3954 #if !CAPNP_LITE 3955 inline ::kj::StringTree toString() const { 3956 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 3957 } 3958 #endif // !CAPNP_LITE 3959 3960 inline ::uint16_t getMajor() const; 3961 3962 inline ::uint8_t getMinor() const; 3963 3964 inline ::uint8_t getMicro() const; 3965 3966 private: 3967 ::capnp::_::StructReader _reader; 3968 template <typename, ::capnp::Kind> 3969 friend struct ::capnp::ToDynamic_; 3970 template <typename, ::capnp::Kind> 3971 friend struct ::capnp::_::PointerHelpers; 3972 template <typename, ::capnp::Kind> 3973 friend struct ::capnp::List; 3974 friend class ::capnp::MessageBuilder; 3975 friend class ::capnp::Orphanage; 3976 }; 3977 3978 class CapnpVersion::Builder { 3979 public: 3980 typedef CapnpVersion Builds; 3981 3982 Builder() = delete; // Deleted to discourage incorrect usage. 3983 // You can explicitly initialize to nullptr instead. 3984 inline Builder(decltype(nullptr)) {} 3985 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 3986 inline operator Reader() const { return Reader(_builder.asReader()); } 3987 inline Reader asReader() const { return *this; } 3988 3989 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 3990 #if !CAPNP_LITE 3991 inline ::kj::StringTree toString() const { return asReader().toString(); } 3992 #endif // !CAPNP_LITE 3993 3994 inline ::uint16_t getMajor(); 3995 inline void setMajor( ::uint16_t value); 3996 3997 inline ::uint8_t getMinor(); 3998 inline void setMinor( ::uint8_t value); 3999 4000 inline ::uint8_t getMicro(); 4001 inline void setMicro( ::uint8_t value); 4002 4003 private: 4004 ::capnp::_::StructBuilder _builder; 4005 template <typename, ::capnp::Kind> 4006 friend struct ::capnp::ToDynamic_; 4007 friend class ::capnp::Orphanage; 4008 template <typename, ::capnp::Kind> 4009 friend struct ::capnp::_::PointerHelpers; 4010 }; 4011 4012 #if !CAPNP_LITE 4013 class CapnpVersion::Pipeline { 4014 public: 4015 typedef CapnpVersion Pipelines; 4016 4017 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 4018 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 4019 : _typeless(kj::mv(typeless)) {} 4020 4021 private: 4022 ::capnp::AnyPointer::Pipeline _typeless; 4023 friend class ::capnp::PipelineHook; 4024 template <typename, ::capnp::Kind> 4025 friend struct ::capnp::ToDynamic_; 4026 }; 4027 #endif // !CAPNP_LITE 4028 4029 class CodeGeneratorRequest::Reader { 4030 public: 4031 typedef CodeGeneratorRequest Reads; 4032 4033 Reader() = default; 4034 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 4035 4036 inline ::capnp::MessageSize totalSize() const { 4037 return _reader.totalSize().asPublic(); 4038 } 4039 4040 #if !CAPNP_LITE 4041 inline ::kj::StringTree toString() const { 4042 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 4043 } 4044 #endif // !CAPNP_LITE 4045 4046 inline bool hasNodes() const; 4047 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader getNodes() const; 4048 4049 inline bool hasRequestedFiles() const; 4050 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader getRequestedFiles() const; 4051 4052 inline bool hasCapnpVersion() const; 4053 inline ::capnp::schema::CapnpVersion::Reader getCapnpVersion() const; 4054 4055 inline bool hasSourceInfo() const; 4056 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader getSourceInfo() const; 4057 4058 private: 4059 ::capnp::_::StructReader _reader; 4060 template <typename, ::capnp::Kind> 4061 friend struct ::capnp::ToDynamic_; 4062 template <typename, ::capnp::Kind> 4063 friend struct ::capnp::_::PointerHelpers; 4064 template <typename, ::capnp::Kind> 4065 friend struct ::capnp::List; 4066 friend class ::capnp::MessageBuilder; 4067 friend class ::capnp::Orphanage; 4068 }; 4069 4070 class CodeGeneratorRequest::Builder { 4071 public: 4072 typedef CodeGeneratorRequest Builds; 4073 4074 Builder() = delete; // Deleted to discourage incorrect usage. 4075 // You can explicitly initialize to nullptr instead. 4076 inline Builder(decltype(nullptr)) {} 4077 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 4078 inline operator Reader() const { return Reader(_builder.asReader()); } 4079 inline Reader asReader() const { return *this; } 4080 4081 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 4082 #if !CAPNP_LITE 4083 inline ::kj::StringTree toString() const { return asReader().toString(); } 4084 #endif // !CAPNP_LITE 4085 4086 inline bool hasNodes(); 4087 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder getNodes(); 4088 inline void setNodes( ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader value); 4089 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder initNodes(unsigned int size); 4090 inline void adoptNodes(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>&& value); 4091 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>> disownNodes(); 4092 4093 inline bool hasRequestedFiles(); 4094 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder getRequestedFiles(); 4095 inline void setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader value); 4096 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder initRequestedFiles(unsigned int size); 4097 inline void adoptRequestedFiles(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>&& value); 4098 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>> disownRequestedFiles(); 4099 4100 inline bool hasCapnpVersion(); 4101 inline ::capnp::schema::CapnpVersion::Builder getCapnpVersion(); 4102 inline void setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value); 4103 inline ::capnp::schema::CapnpVersion::Builder initCapnpVersion(); 4104 inline void adoptCapnpVersion(::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value); 4105 inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> disownCapnpVersion(); 4106 4107 inline bool hasSourceInfo(); 4108 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder getSourceInfo(); 4109 inline void setSourceInfo( ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader value); 4110 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder initSourceInfo(unsigned int size); 4111 inline void adoptSourceInfo(::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>&& value); 4112 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>> disownSourceInfo(); 4113 4114 private: 4115 ::capnp::_::StructBuilder _builder; 4116 template <typename, ::capnp::Kind> 4117 friend struct ::capnp::ToDynamic_; 4118 friend class ::capnp::Orphanage; 4119 template <typename, ::capnp::Kind> 4120 friend struct ::capnp::_::PointerHelpers; 4121 }; 4122 4123 #if !CAPNP_LITE 4124 class CodeGeneratorRequest::Pipeline { 4125 public: 4126 typedef CodeGeneratorRequest Pipelines; 4127 4128 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 4129 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 4130 : _typeless(kj::mv(typeless)) {} 4131 4132 inline ::capnp::schema::CapnpVersion::Pipeline getCapnpVersion(); 4133 private: 4134 ::capnp::AnyPointer::Pipeline _typeless; 4135 friend class ::capnp::PipelineHook; 4136 template <typename, ::capnp::Kind> 4137 friend struct ::capnp::ToDynamic_; 4138 }; 4139 #endif // !CAPNP_LITE 4140 4141 class CodeGeneratorRequest::RequestedFile::Reader { 4142 public: 4143 typedef RequestedFile Reads; 4144 4145 Reader() = default; 4146 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 4147 4148 inline ::capnp::MessageSize totalSize() const { 4149 return _reader.totalSize().asPublic(); 4150 } 4151 4152 #if !CAPNP_LITE 4153 inline ::kj::StringTree toString() const { 4154 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 4155 } 4156 #endif // !CAPNP_LITE 4157 4158 inline ::uint64_t getId() const; 4159 4160 inline bool hasFilename() const; 4161 inline ::capnp::Text::Reader getFilename() const; 4162 4163 inline bool hasImports() const; 4164 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader getImports() const; 4165 4166 private: 4167 ::capnp::_::StructReader _reader; 4168 template <typename, ::capnp::Kind> 4169 friend struct ::capnp::ToDynamic_; 4170 template <typename, ::capnp::Kind> 4171 friend struct ::capnp::_::PointerHelpers; 4172 template <typename, ::capnp::Kind> 4173 friend struct ::capnp::List; 4174 friend class ::capnp::MessageBuilder; 4175 friend class ::capnp::Orphanage; 4176 }; 4177 4178 class CodeGeneratorRequest::RequestedFile::Builder { 4179 public: 4180 typedef RequestedFile Builds; 4181 4182 Builder() = delete; // Deleted to discourage incorrect usage. 4183 // You can explicitly initialize to nullptr instead. 4184 inline Builder(decltype(nullptr)) {} 4185 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 4186 inline operator Reader() const { return Reader(_builder.asReader()); } 4187 inline Reader asReader() const { return *this; } 4188 4189 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 4190 #if !CAPNP_LITE 4191 inline ::kj::StringTree toString() const { return asReader().toString(); } 4192 #endif // !CAPNP_LITE 4193 4194 inline ::uint64_t getId(); 4195 inline void setId( ::uint64_t value); 4196 4197 inline bool hasFilename(); 4198 inline ::capnp::Text::Builder getFilename(); 4199 inline void setFilename( ::capnp::Text::Reader value); 4200 inline ::capnp::Text::Builder initFilename(unsigned int size); 4201 inline void adoptFilename(::capnp::Orphan< ::capnp::Text>&& value); 4202 inline ::capnp::Orphan< ::capnp::Text> disownFilename(); 4203 4204 inline bool hasImports(); 4205 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder getImports(); 4206 inline void setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader value); 4207 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder initImports(unsigned int size); 4208 inline void adoptImports(::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>&& value); 4209 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>> disownImports(); 4210 4211 private: 4212 ::capnp::_::StructBuilder _builder; 4213 template <typename, ::capnp::Kind> 4214 friend struct ::capnp::ToDynamic_; 4215 friend class ::capnp::Orphanage; 4216 template <typename, ::capnp::Kind> 4217 friend struct ::capnp::_::PointerHelpers; 4218 }; 4219 4220 #if !CAPNP_LITE 4221 class CodeGeneratorRequest::RequestedFile::Pipeline { 4222 public: 4223 typedef RequestedFile Pipelines; 4224 4225 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 4226 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 4227 : _typeless(kj::mv(typeless)) {} 4228 4229 private: 4230 ::capnp::AnyPointer::Pipeline _typeless; 4231 friend class ::capnp::PipelineHook; 4232 template <typename, ::capnp::Kind> 4233 friend struct ::capnp::ToDynamic_; 4234 }; 4235 #endif // !CAPNP_LITE 4236 4237 class CodeGeneratorRequest::RequestedFile::Import::Reader { 4238 public: 4239 typedef Import Reads; 4240 4241 Reader() = default; 4242 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} 4243 4244 inline ::capnp::MessageSize totalSize() const { 4245 return _reader.totalSize().asPublic(); 4246 } 4247 4248 #if !CAPNP_LITE 4249 inline ::kj::StringTree toString() const { 4250 return ::capnp::_::structString(_reader, *_capnpPrivate::brand()); 4251 } 4252 #endif // !CAPNP_LITE 4253 4254 inline ::uint64_t getId() const; 4255 4256 inline bool hasName() const; 4257 inline ::capnp::Text::Reader getName() const; 4258 4259 private: 4260 ::capnp::_::StructReader _reader; 4261 template <typename, ::capnp::Kind> 4262 friend struct ::capnp::ToDynamic_; 4263 template <typename, ::capnp::Kind> 4264 friend struct ::capnp::_::PointerHelpers; 4265 template <typename, ::capnp::Kind> 4266 friend struct ::capnp::List; 4267 friend class ::capnp::MessageBuilder; 4268 friend class ::capnp::Orphanage; 4269 }; 4270 4271 class CodeGeneratorRequest::RequestedFile::Import::Builder { 4272 public: 4273 typedef Import Builds; 4274 4275 Builder() = delete; // Deleted to discourage incorrect usage. 4276 // You can explicitly initialize to nullptr instead. 4277 inline Builder(decltype(nullptr)) {} 4278 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} 4279 inline operator Reader() const { return Reader(_builder.asReader()); } 4280 inline Reader asReader() const { return *this; } 4281 4282 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 4283 #if !CAPNP_LITE 4284 inline ::kj::StringTree toString() const { return asReader().toString(); } 4285 #endif // !CAPNP_LITE 4286 4287 inline ::uint64_t getId(); 4288 inline void setId( ::uint64_t value); 4289 4290 inline bool hasName(); 4291 inline ::capnp::Text::Builder getName(); 4292 inline void setName( ::capnp::Text::Reader value); 4293 inline ::capnp::Text::Builder initName(unsigned int size); 4294 inline void adoptName(::capnp::Orphan< ::capnp::Text>&& value); 4295 inline ::capnp::Orphan< ::capnp::Text> disownName(); 4296 4297 private: 4298 ::capnp::_::StructBuilder _builder; 4299 template <typename, ::capnp::Kind> 4300 friend struct ::capnp::ToDynamic_; 4301 friend class ::capnp::Orphanage; 4302 template <typename, ::capnp::Kind> 4303 friend struct ::capnp::_::PointerHelpers; 4304 }; 4305 4306 #if !CAPNP_LITE 4307 class CodeGeneratorRequest::RequestedFile::Import::Pipeline { 4308 public: 4309 typedef Import Pipelines; 4310 4311 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 4312 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 4313 : _typeless(kj::mv(typeless)) {} 4314 4315 private: 4316 ::capnp::AnyPointer::Pipeline _typeless; 4317 friend class ::capnp::PipelineHook; 4318 template <typename, ::capnp::Kind> 4319 friend struct ::capnp::ToDynamic_; 4320 }; 4321 #endif // !CAPNP_LITE 4322 4323 // ======================================================================================= 4324 4325 inline ::capnp::schema::Node::Which Node::Reader::which() const { 4326 return _reader.getDataField<Which>( 4327 ::capnp::bounded<6>() * ::capnp::ELEMENTS); 4328 } 4329 inline ::capnp::schema::Node::Which Node::Builder::which() { 4330 return _builder.getDataField<Which>( 4331 ::capnp::bounded<6>() * ::capnp::ELEMENTS); 4332 } 4333 4334 inline ::uint64_t Node::Reader::getId() const { 4335 return _reader.getDataField< ::uint64_t>( 4336 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4337 } 4338 4339 inline ::uint64_t Node::Builder::getId() { 4340 return _builder.getDataField< ::uint64_t>( 4341 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4342 } 4343 inline void Node::Builder::setId( ::uint64_t value) { 4344 _builder.setDataField< ::uint64_t>( 4345 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 4346 } 4347 4348 inline bool Node::Reader::hasDisplayName() const { 4349 return !_reader.getPointerField( 4350 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4351 } 4352 inline bool Node::Builder::hasDisplayName() { 4353 return !_builder.getPointerField( 4354 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4355 } 4356 inline ::capnp::Text::Reader Node::Reader::getDisplayName() const { 4357 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 4358 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4359 } 4360 inline ::capnp::Text::Builder Node::Builder::getDisplayName() { 4361 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 4362 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4363 } 4364 inline void Node::Builder::setDisplayName( ::capnp::Text::Reader value) { 4365 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 4366 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 4367 } 4368 inline ::capnp::Text::Builder Node::Builder::initDisplayName(unsigned int size) { 4369 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 4370 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 4371 } 4372 inline void Node::Builder::adoptDisplayName( 4373 ::capnp::Orphan< ::capnp::Text>&& value) { 4374 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 4375 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 4376 } 4377 inline ::capnp::Orphan< ::capnp::Text> Node::Builder::disownDisplayName() { 4378 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 4379 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4380 } 4381 4382 inline ::uint32_t Node::Reader::getDisplayNamePrefixLength() const { 4383 return _reader.getDataField< ::uint32_t>( 4384 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 4385 } 4386 4387 inline ::uint32_t Node::Builder::getDisplayNamePrefixLength() { 4388 return _builder.getDataField< ::uint32_t>( 4389 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 4390 } 4391 inline void Node::Builder::setDisplayNamePrefixLength( ::uint32_t value) { 4392 _builder.setDataField< ::uint32_t>( 4393 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 4394 } 4395 4396 inline ::uint64_t Node::Reader::getScopeId() const { 4397 return _reader.getDataField< ::uint64_t>( 4398 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 4399 } 4400 4401 inline ::uint64_t Node::Builder::getScopeId() { 4402 return _builder.getDataField< ::uint64_t>( 4403 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 4404 } 4405 inline void Node::Builder::setScopeId( ::uint64_t value) { 4406 _builder.setDataField< ::uint64_t>( 4407 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 4408 } 4409 4410 inline bool Node::Reader::hasNestedNodes() const { 4411 return !_reader.getPointerField( 4412 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 4413 } 4414 inline bool Node::Builder::hasNestedNodes() { 4415 return !_builder.getPointerField( 4416 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 4417 } 4418 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader Node::Reader::getNestedNodes() const { 4419 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 4420 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4421 } 4422 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder Node::Builder::getNestedNodes() { 4423 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 4424 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4425 } 4426 inline void Node::Builder::setNestedNodes( ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Reader value) { 4427 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 4428 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 4429 } 4430 inline ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>::Builder Node::Builder::initNestedNodes(unsigned int size) { 4431 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 4432 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 4433 } 4434 inline void Node::Builder::adoptNestedNodes( 4435 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>&& value) { 4436 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 4437 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 4438 } 4439 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>> Node::Builder::disownNestedNodes() { 4440 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::NestedNode, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 4441 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4442 } 4443 4444 inline bool Node::Reader::hasAnnotations() const { 4445 return !_reader.getPointerField( 4446 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 4447 } 4448 inline bool Node::Builder::hasAnnotations() { 4449 return !_builder.getPointerField( 4450 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 4451 } 4452 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Node::Reader::getAnnotations() const { 4453 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 4454 ::capnp::bounded<2>() * ::capnp::POINTERS)); 4455 } 4456 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Node::Builder::getAnnotations() { 4457 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 4458 ::capnp::bounded<2>() * ::capnp::POINTERS)); 4459 } 4460 inline void Node::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { 4461 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 4462 ::capnp::bounded<2>() * ::capnp::POINTERS), value); 4463 } 4464 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Node::Builder::initAnnotations(unsigned int size) { 4465 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 4466 ::capnp::bounded<2>() * ::capnp::POINTERS), size); 4467 } 4468 inline void Node::Builder::adoptAnnotations( 4469 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { 4470 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 4471 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); 4472 } 4473 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Node::Builder::disownAnnotations() { 4474 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 4475 ::capnp::bounded<2>() * ::capnp::POINTERS)); 4476 } 4477 4478 inline bool Node::Reader::isFile() const { 4479 return which() == Node::FILE; 4480 } 4481 inline bool Node::Builder::isFile() { 4482 return which() == Node::FILE; 4483 } 4484 inline ::capnp::Void Node::Reader::getFile() const { 4485 KJ_IREQUIRE((which() == Node::FILE), 4486 "Must check which() before get()ing a union member."); 4487 return _reader.getDataField< ::capnp::Void>( 4488 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4489 } 4490 4491 inline ::capnp::Void Node::Builder::getFile() { 4492 KJ_IREQUIRE((which() == Node::FILE), 4493 "Must check which() before get()ing a union member."); 4494 return _builder.getDataField< ::capnp::Void>( 4495 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4496 } 4497 inline void Node::Builder::setFile( ::capnp::Void value) { 4498 _builder.setDataField<Node::Which>( 4499 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::FILE); 4500 _builder.setDataField< ::capnp::Void>( 4501 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 4502 } 4503 4504 inline bool Node::Reader::isStruct() const { 4505 return which() == Node::STRUCT; 4506 } 4507 inline bool Node::Builder::isStruct() { 4508 return which() == Node::STRUCT; 4509 } 4510 inline typename Node::Struct::Reader Node::Reader::getStruct() const { 4511 KJ_IREQUIRE((which() == Node::STRUCT), 4512 "Must check which() before get()ing a union member."); 4513 return typename Node::Struct::Reader(_reader); 4514 } 4515 inline typename Node::Struct::Builder Node::Builder::getStruct() { 4516 KJ_IREQUIRE((which() == Node::STRUCT), 4517 "Must check which() before get()ing a union member."); 4518 return typename Node::Struct::Builder(_builder); 4519 } 4520 inline typename Node::Struct::Builder Node::Builder::initStruct() { 4521 _builder.setDataField<Node::Which>( 4522 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::STRUCT); 4523 _builder.setDataField< ::uint16_t>(::capnp::bounded<7>() * ::capnp::ELEMENTS, 0); 4524 _builder.setDataField< ::uint16_t>(::capnp::bounded<12>() * ::capnp::ELEMENTS, 0); 4525 _builder.setDataField< ::uint16_t>(::capnp::bounded<13>() * ::capnp::ELEMENTS, 0); 4526 _builder.setDataField<bool>(::capnp::bounded<224>() * ::capnp::ELEMENTS, 0); 4527 _builder.setDataField< ::uint16_t>(::capnp::bounded<15>() * ::capnp::ELEMENTS, 0); 4528 _builder.setDataField< ::uint32_t>(::capnp::bounded<8>() * ::capnp::ELEMENTS, 0); 4529 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 4530 return typename Node::Struct::Builder(_builder); 4531 } 4532 inline bool Node::Reader::isEnum() const { 4533 return which() == Node::ENUM; 4534 } 4535 inline bool Node::Builder::isEnum() { 4536 return which() == Node::ENUM; 4537 } 4538 inline typename Node::Enum::Reader Node::Reader::getEnum() const { 4539 KJ_IREQUIRE((which() == Node::ENUM), 4540 "Must check which() before get()ing a union member."); 4541 return typename Node::Enum::Reader(_reader); 4542 } 4543 inline typename Node::Enum::Builder Node::Builder::getEnum() { 4544 KJ_IREQUIRE((which() == Node::ENUM), 4545 "Must check which() before get()ing a union member."); 4546 return typename Node::Enum::Builder(_builder); 4547 } 4548 inline typename Node::Enum::Builder Node::Builder::initEnum() { 4549 _builder.setDataField<Node::Which>( 4550 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ENUM); 4551 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 4552 return typename Node::Enum::Builder(_builder); 4553 } 4554 inline bool Node::Reader::isInterface() const { 4555 return which() == Node::INTERFACE; 4556 } 4557 inline bool Node::Builder::isInterface() { 4558 return which() == Node::INTERFACE; 4559 } 4560 inline typename Node::Interface::Reader Node::Reader::getInterface() const { 4561 KJ_IREQUIRE((which() == Node::INTERFACE), 4562 "Must check which() before get()ing a union member."); 4563 return typename Node::Interface::Reader(_reader); 4564 } 4565 inline typename Node::Interface::Builder Node::Builder::getInterface() { 4566 KJ_IREQUIRE((which() == Node::INTERFACE), 4567 "Must check which() before get()ing a union member."); 4568 return typename Node::Interface::Builder(_builder); 4569 } 4570 inline typename Node::Interface::Builder Node::Builder::initInterface() { 4571 _builder.setDataField<Node::Which>( 4572 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::INTERFACE); 4573 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 4574 _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); 4575 return typename Node::Interface::Builder(_builder); 4576 } 4577 inline bool Node::Reader::isConst() const { 4578 return which() == Node::CONST; 4579 } 4580 inline bool Node::Builder::isConst() { 4581 return which() == Node::CONST; 4582 } 4583 inline typename Node::Const::Reader Node::Reader::getConst() const { 4584 KJ_IREQUIRE((which() == Node::CONST), 4585 "Must check which() before get()ing a union member."); 4586 return typename Node::Const::Reader(_reader); 4587 } 4588 inline typename Node::Const::Builder Node::Builder::getConst() { 4589 KJ_IREQUIRE((which() == Node::CONST), 4590 "Must check which() before get()ing a union member."); 4591 return typename Node::Const::Builder(_builder); 4592 } 4593 inline typename Node::Const::Builder Node::Builder::initConst() { 4594 _builder.setDataField<Node::Which>( 4595 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::CONST); 4596 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 4597 _builder.getPointerField(::capnp::bounded<4>() * ::capnp::POINTERS).clear(); 4598 return typename Node::Const::Builder(_builder); 4599 } 4600 inline bool Node::Reader::isAnnotation() const { 4601 return which() == Node::ANNOTATION; 4602 } 4603 inline bool Node::Builder::isAnnotation() { 4604 return which() == Node::ANNOTATION; 4605 } 4606 inline typename Node::Annotation::Reader Node::Reader::getAnnotation() const { 4607 KJ_IREQUIRE((which() == Node::ANNOTATION), 4608 "Must check which() before get()ing a union member."); 4609 return typename Node::Annotation::Reader(_reader); 4610 } 4611 inline typename Node::Annotation::Builder Node::Builder::getAnnotation() { 4612 KJ_IREQUIRE((which() == Node::ANNOTATION), 4613 "Must check which() before get()ing a union member."); 4614 return typename Node::Annotation::Builder(_builder); 4615 } 4616 inline typename Node::Annotation::Builder Node::Builder::initAnnotation() { 4617 _builder.setDataField<Node::Which>( 4618 ::capnp::bounded<6>() * ::capnp::ELEMENTS, Node::ANNOTATION); 4619 _builder.setDataField<bool>(::capnp::bounded<112>() * ::capnp::ELEMENTS, 0); 4620 _builder.setDataField<bool>(::capnp::bounded<113>() * ::capnp::ELEMENTS, 0); 4621 _builder.setDataField<bool>(::capnp::bounded<114>() * ::capnp::ELEMENTS, 0); 4622 _builder.setDataField<bool>(::capnp::bounded<115>() * ::capnp::ELEMENTS, 0); 4623 _builder.setDataField<bool>(::capnp::bounded<116>() * ::capnp::ELEMENTS, 0); 4624 _builder.setDataField<bool>(::capnp::bounded<117>() * ::capnp::ELEMENTS, 0); 4625 _builder.setDataField<bool>(::capnp::bounded<118>() * ::capnp::ELEMENTS, 0); 4626 _builder.setDataField<bool>(::capnp::bounded<119>() * ::capnp::ELEMENTS, 0); 4627 _builder.setDataField<bool>(::capnp::bounded<120>() * ::capnp::ELEMENTS, 0); 4628 _builder.setDataField<bool>(::capnp::bounded<121>() * ::capnp::ELEMENTS, 0); 4629 _builder.setDataField<bool>(::capnp::bounded<122>() * ::capnp::ELEMENTS, 0); 4630 _builder.setDataField<bool>(::capnp::bounded<123>() * ::capnp::ELEMENTS, 0); 4631 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 4632 return typename Node::Annotation::Builder(_builder); 4633 } 4634 inline bool Node::Reader::hasParameters() const { 4635 return !_reader.getPointerField( 4636 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); 4637 } 4638 inline bool Node::Builder::hasParameters() { 4639 return !_builder.getPointerField( 4640 ::capnp::bounded<5>() * ::capnp::POINTERS).isNull(); 4641 } 4642 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader Node::Reader::getParameters() const { 4643 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 4644 ::capnp::bounded<5>() * ::capnp::POINTERS)); 4645 } 4646 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Node::Builder::getParameters() { 4647 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 4648 ::capnp::bounded<5>() * ::capnp::POINTERS)); 4649 } 4650 inline void Node::Builder::setParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value) { 4651 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 4652 ::capnp::bounded<5>() * ::capnp::POINTERS), value); 4653 } 4654 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Node::Builder::initParameters(unsigned int size) { 4655 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 4656 ::capnp::bounded<5>() * ::capnp::POINTERS), size); 4657 } 4658 inline void Node::Builder::adoptParameters( 4659 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value) { 4660 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 4661 ::capnp::bounded<5>() * ::capnp::POINTERS), kj::mv(value)); 4662 } 4663 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> Node::Builder::disownParameters() { 4664 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 4665 ::capnp::bounded<5>() * ::capnp::POINTERS)); 4666 } 4667 4668 inline bool Node::Reader::getIsGeneric() const { 4669 return _reader.getDataField<bool>( 4670 ::capnp::bounded<288>() * ::capnp::ELEMENTS); 4671 } 4672 4673 inline bool Node::Builder::getIsGeneric() { 4674 return _builder.getDataField<bool>( 4675 ::capnp::bounded<288>() * ::capnp::ELEMENTS); 4676 } 4677 inline void Node::Builder::setIsGeneric(bool value) { 4678 _builder.setDataField<bool>( 4679 ::capnp::bounded<288>() * ::capnp::ELEMENTS, value); 4680 } 4681 4682 inline bool Node::Parameter::Reader::hasName() const { 4683 return !_reader.getPointerField( 4684 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4685 } 4686 inline bool Node::Parameter::Builder::hasName() { 4687 return !_builder.getPointerField( 4688 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4689 } 4690 inline ::capnp::Text::Reader Node::Parameter::Reader::getName() const { 4691 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 4692 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4693 } 4694 inline ::capnp::Text::Builder Node::Parameter::Builder::getName() { 4695 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 4696 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4697 } 4698 inline void Node::Parameter::Builder::setName( ::capnp::Text::Reader value) { 4699 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 4700 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 4701 } 4702 inline ::capnp::Text::Builder Node::Parameter::Builder::initName(unsigned int size) { 4703 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 4704 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 4705 } 4706 inline void Node::Parameter::Builder::adoptName( 4707 ::capnp::Orphan< ::capnp::Text>&& value) { 4708 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 4709 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 4710 } 4711 inline ::capnp::Orphan< ::capnp::Text> Node::Parameter::Builder::disownName() { 4712 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 4713 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4714 } 4715 4716 inline bool Node::NestedNode::Reader::hasName() const { 4717 return !_reader.getPointerField( 4718 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4719 } 4720 inline bool Node::NestedNode::Builder::hasName() { 4721 return !_builder.getPointerField( 4722 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4723 } 4724 inline ::capnp::Text::Reader Node::NestedNode::Reader::getName() const { 4725 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 4726 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4727 } 4728 inline ::capnp::Text::Builder Node::NestedNode::Builder::getName() { 4729 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 4730 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4731 } 4732 inline void Node::NestedNode::Builder::setName( ::capnp::Text::Reader value) { 4733 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 4734 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 4735 } 4736 inline ::capnp::Text::Builder Node::NestedNode::Builder::initName(unsigned int size) { 4737 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 4738 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 4739 } 4740 inline void Node::NestedNode::Builder::adoptName( 4741 ::capnp::Orphan< ::capnp::Text>&& value) { 4742 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 4743 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 4744 } 4745 inline ::capnp::Orphan< ::capnp::Text> Node::NestedNode::Builder::disownName() { 4746 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 4747 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4748 } 4749 4750 inline ::uint64_t Node::NestedNode::Reader::getId() const { 4751 return _reader.getDataField< ::uint64_t>( 4752 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4753 } 4754 4755 inline ::uint64_t Node::NestedNode::Builder::getId() { 4756 return _builder.getDataField< ::uint64_t>( 4757 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4758 } 4759 inline void Node::NestedNode::Builder::setId( ::uint64_t value) { 4760 _builder.setDataField< ::uint64_t>( 4761 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 4762 } 4763 4764 inline ::uint64_t Node::SourceInfo::Reader::getId() const { 4765 return _reader.getDataField< ::uint64_t>( 4766 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4767 } 4768 4769 inline ::uint64_t Node::SourceInfo::Builder::getId() { 4770 return _builder.getDataField< ::uint64_t>( 4771 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4772 } 4773 inline void Node::SourceInfo::Builder::setId( ::uint64_t value) { 4774 _builder.setDataField< ::uint64_t>( 4775 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 4776 } 4777 4778 inline bool Node::SourceInfo::Reader::hasDocComment() const { 4779 return !_reader.getPointerField( 4780 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4781 } 4782 inline bool Node::SourceInfo::Builder::hasDocComment() { 4783 return !_builder.getPointerField( 4784 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4785 } 4786 inline ::capnp::Text::Reader Node::SourceInfo::Reader::getDocComment() const { 4787 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 4788 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4789 } 4790 inline ::capnp::Text::Builder Node::SourceInfo::Builder::getDocComment() { 4791 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 4792 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4793 } 4794 inline void Node::SourceInfo::Builder::setDocComment( ::capnp::Text::Reader value) { 4795 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 4796 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 4797 } 4798 inline ::capnp::Text::Builder Node::SourceInfo::Builder::initDocComment(unsigned int size) { 4799 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 4800 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 4801 } 4802 inline void Node::SourceInfo::Builder::adoptDocComment( 4803 ::capnp::Orphan< ::capnp::Text>&& value) { 4804 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 4805 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 4806 } 4807 inline ::capnp::Orphan< ::capnp::Text> Node::SourceInfo::Builder::disownDocComment() { 4808 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 4809 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4810 } 4811 4812 inline bool Node::SourceInfo::Reader::hasMembers() const { 4813 return !_reader.getPointerField( 4814 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 4815 } 4816 inline bool Node::SourceInfo::Builder::hasMembers() { 4817 return !_builder.getPointerField( 4818 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 4819 } 4820 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader Node::SourceInfo::Reader::getMembers() const { 4821 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 4822 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4823 } 4824 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder Node::SourceInfo::Builder::getMembers() { 4825 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 4826 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4827 } 4828 inline void Node::SourceInfo::Builder::setMembers( ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Reader value) { 4829 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 4830 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 4831 } 4832 inline ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>::Builder Node::SourceInfo::Builder::initMembers(unsigned int size) { 4833 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 4834 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 4835 } 4836 inline void Node::SourceInfo::Builder::adoptMembers( 4837 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>&& value) { 4838 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 4839 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 4840 } 4841 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>> Node::SourceInfo::Builder::disownMembers() { 4842 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo::Member, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 4843 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4844 } 4845 4846 inline bool Node::SourceInfo::Member::Reader::hasDocComment() const { 4847 return !_reader.getPointerField( 4848 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4849 } 4850 inline bool Node::SourceInfo::Member::Builder::hasDocComment() { 4851 return !_builder.getPointerField( 4852 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4853 } 4854 inline ::capnp::Text::Reader Node::SourceInfo::Member::Reader::getDocComment() const { 4855 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 4856 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4857 } 4858 inline ::capnp::Text::Builder Node::SourceInfo::Member::Builder::getDocComment() { 4859 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 4860 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4861 } 4862 inline void Node::SourceInfo::Member::Builder::setDocComment( ::capnp::Text::Reader value) { 4863 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 4864 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 4865 } 4866 inline ::capnp::Text::Builder Node::SourceInfo::Member::Builder::initDocComment(unsigned int size) { 4867 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 4868 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 4869 } 4870 inline void Node::SourceInfo::Member::Builder::adoptDocComment( 4871 ::capnp::Orphan< ::capnp::Text>&& value) { 4872 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 4873 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 4874 } 4875 inline ::capnp::Orphan< ::capnp::Text> Node::SourceInfo::Member::Builder::disownDocComment() { 4876 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 4877 ::capnp::bounded<0>() * ::capnp::POINTERS)); 4878 } 4879 4880 inline ::uint16_t Node::Struct::Reader::getDataWordCount() const { 4881 return _reader.getDataField< ::uint16_t>( 4882 ::capnp::bounded<7>() * ::capnp::ELEMENTS); 4883 } 4884 4885 inline ::uint16_t Node::Struct::Builder::getDataWordCount() { 4886 return _builder.getDataField< ::uint16_t>( 4887 ::capnp::bounded<7>() * ::capnp::ELEMENTS); 4888 } 4889 inline void Node::Struct::Builder::setDataWordCount( ::uint16_t value) { 4890 _builder.setDataField< ::uint16_t>( 4891 ::capnp::bounded<7>() * ::capnp::ELEMENTS, value); 4892 } 4893 4894 inline ::uint16_t Node::Struct::Reader::getPointerCount() const { 4895 return _reader.getDataField< ::uint16_t>( 4896 ::capnp::bounded<12>() * ::capnp::ELEMENTS); 4897 } 4898 4899 inline ::uint16_t Node::Struct::Builder::getPointerCount() { 4900 return _builder.getDataField< ::uint16_t>( 4901 ::capnp::bounded<12>() * ::capnp::ELEMENTS); 4902 } 4903 inline void Node::Struct::Builder::setPointerCount( ::uint16_t value) { 4904 _builder.setDataField< ::uint16_t>( 4905 ::capnp::bounded<12>() * ::capnp::ELEMENTS, value); 4906 } 4907 4908 inline ::capnp::schema::ElementSize Node::Struct::Reader::getPreferredListEncoding() const { 4909 return _reader.getDataField< ::capnp::schema::ElementSize>( 4910 ::capnp::bounded<13>() * ::capnp::ELEMENTS); 4911 } 4912 4913 inline ::capnp::schema::ElementSize Node::Struct::Builder::getPreferredListEncoding() { 4914 return _builder.getDataField< ::capnp::schema::ElementSize>( 4915 ::capnp::bounded<13>() * ::capnp::ELEMENTS); 4916 } 4917 inline void Node::Struct::Builder::setPreferredListEncoding( ::capnp::schema::ElementSize value) { 4918 _builder.setDataField< ::capnp::schema::ElementSize>( 4919 ::capnp::bounded<13>() * ::capnp::ELEMENTS, value); 4920 } 4921 4922 inline bool Node::Struct::Reader::getIsGroup() const { 4923 return _reader.getDataField<bool>( 4924 ::capnp::bounded<224>() * ::capnp::ELEMENTS); 4925 } 4926 4927 inline bool Node::Struct::Builder::getIsGroup() { 4928 return _builder.getDataField<bool>( 4929 ::capnp::bounded<224>() * ::capnp::ELEMENTS); 4930 } 4931 inline void Node::Struct::Builder::setIsGroup(bool value) { 4932 _builder.setDataField<bool>( 4933 ::capnp::bounded<224>() * ::capnp::ELEMENTS, value); 4934 } 4935 4936 inline ::uint16_t Node::Struct::Reader::getDiscriminantCount() const { 4937 return _reader.getDataField< ::uint16_t>( 4938 ::capnp::bounded<15>() * ::capnp::ELEMENTS); 4939 } 4940 4941 inline ::uint16_t Node::Struct::Builder::getDiscriminantCount() { 4942 return _builder.getDataField< ::uint16_t>( 4943 ::capnp::bounded<15>() * ::capnp::ELEMENTS); 4944 } 4945 inline void Node::Struct::Builder::setDiscriminantCount( ::uint16_t value) { 4946 _builder.setDataField< ::uint16_t>( 4947 ::capnp::bounded<15>() * ::capnp::ELEMENTS, value); 4948 } 4949 4950 inline ::uint32_t Node::Struct::Reader::getDiscriminantOffset() const { 4951 return _reader.getDataField< ::uint32_t>( 4952 ::capnp::bounded<8>() * ::capnp::ELEMENTS); 4953 } 4954 4955 inline ::uint32_t Node::Struct::Builder::getDiscriminantOffset() { 4956 return _builder.getDataField< ::uint32_t>( 4957 ::capnp::bounded<8>() * ::capnp::ELEMENTS); 4958 } 4959 inline void Node::Struct::Builder::setDiscriminantOffset( ::uint32_t value) { 4960 _builder.setDataField< ::uint32_t>( 4961 ::capnp::bounded<8>() * ::capnp::ELEMENTS, value); 4962 } 4963 4964 inline bool Node::Struct::Reader::hasFields() const { 4965 return !_reader.getPointerField( 4966 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 4967 } 4968 inline bool Node::Struct::Builder::hasFields() { 4969 return !_builder.getPointerField( 4970 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 4971 } 4972 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader Node::Struct::Reader::getFields() const { 4973 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 4974 ::capnp::bounded<3>() * ::capnp::POINTERS)); 4975 } 4976 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder Node::Struct::Builder::getFields() { 4977 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 4978 ::capnp::bounded<3>() * ::capnp::POINTERS)); 4979 } 4980 inline void Node::Struct::Builder::setFields( ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Reader value) { 4981 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 4982 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 4983 } 4984 inline ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>::Builder Node::Struct::Builder::initFields(unsigned int size) { 4985 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 4986 ::capnp::bounded<3>() * ::capnp::POINTERS), size); 4987 } 4988 inline void Node::Struct::Builder::adoptFields( 4989 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>&& value) { 4990 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 4991 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 4992 } 4993 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>> Node::Struct::Builder::disownFields() { 4994 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Field, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 4995 ::capnp::bounded<3>() * ::capnp::POINTERS)); 4996 } 4997 4998 inline bool Node::Enum::Reader::hasEnumerants() const { 4999 return !_reader.getPointerField( 5000 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5001 } 5002 inline bool Node::Enum::Builder::hasEnumerants() { 5003 return !_builder.getPointerField( 5004 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5005 } 5006 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader Node::Enum::Reader::getEnumerants() const { 5007 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5008 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5009 } 5010 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder Node::Enum::Builder::getEnumerants() { 5011 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5012 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5013 } 5014 inline void Node::Enum::Builder::setEnumerants( ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Reader value) { 5015 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5016 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 5017 } 5018 inline ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>::Builder Node::Enum::Builder::initEnumerants(unsigned int size) { 5019 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5020 ::capnp::bounded<3>() * ::capnp::POINTERS), size); 5021 } 5022 inline void Node::Enum::Builder::adoptEnumerants( 5023 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>&& value) { 5024 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5025 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 5026 } 5027 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>> Node::Enum::Builder::disownEnumerants() { 5028 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Enumerant, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5029 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5030 } 5031 5032 inline bool Node::Interface::Reader::hasMethods() const { 5033 return !_reader.getPointerField( 5034 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5035 } 5036 inline bool Node::Interface::Builder::hasMethods() { 5037 return !_builder.getPointerField( 5038 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5039 } 5040 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader Node::Interface::Reader::getMethods() const { 5041 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5042 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5043 } 5044 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::getMethods() { 5045 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5046 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5047 } 5048 inline void Node::Interface::Builder::setMethods( ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Reader value) { 5049 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5050 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 5051 } 5052 inline ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::initMethods(unsigned int size) { 5053 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5054 ::capnp::bounded<3>() * ::capnp::POINTERS), size); 5055 } 5056 inline void Node::Interface::Builder::adoptMethods( 5057 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>&& value) { 5058 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5059 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 5060 } 5061 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>> Node::Interface::Builder::disownMethods() { 5062 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Method, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5063 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5064 } 5065 5066 inline bool Node::Interface::Reader::hasSuperclasses() const { 5067 return !_reader.getPointerField( 5068 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 5069 } 5070 inline bool Node::Interface::Builder::hasSuperclasses() { 5071 return !_builder.getPointerField( 5072 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 5073 } 5074 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader Node::Interface::Reader::getSuperclasses() const { 5075 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5076 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5077 } 5078 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::getSuperclasses() { 5079 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5080 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5081 } 5082 inline void Node::Interface::Builder::setSuperclasses( ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Reader value) { 5083 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5084 ::capnp::bounded<4>() * ::capnp::POINTERS), value); 5085 } 5086 inline ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>::Builder Node::Interface::Builder::initSuperclasses(unsigned int size) { 5087 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5088 ::capnp::bounded<4>() * ::capnp::POINTERS), size); 5089 } 5090 inline void Node::Interface::Builder::adoptSuperclasses( 5091 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>&& value) { 5092 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5093 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); 5094 } 5095 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>> Node::Interface::Builder::disownSuperclasses() { 5096 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Superclass, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5097 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5098 } 5099 5100 inline bool Node::Const::Reader::hasType() const { 5101 return !_reader.getPointerField( 5102 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5103 } 5104 inline bool Node::Const::Builder::hasType() { 5105 return !_builder.getPointerField( 5106 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5107 } 5108 inline ::capnp::schema::Type::Reader Node::Const::Reader::getType() const { 5109 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( 5110 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5111 } 5112 inline ::capnp::schema::Type::Builder Node::Const::Builder::getType() { 5113 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( 5114 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5115 } 5116 #if !CAPNP_LITE 5117 inline ::capnp::schema::Type::Pipeline Node::Const::Pipeline::getType() { 5118 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); 5119 } 5120 #endif // !CAPNP_LITE 5121 inline void Node::Const::Builder::setType( ::capnp::schema::Type::Reader value) { 5122 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( 5123 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 5124 } 5125 inline ::capnp::schema::Type::Builder Node::Const::Builder::initType() { 5126 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( 5127 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5128 } 5129 inline void Node::Const::Builder::adoptType( 5130 ::capnp::Orphan< ::capnp::schema::Type>&& value) { 5131 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( 5132 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 5133 } 5134 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Const::Builder::disownType() { 5135 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( 5136 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5137 } 5138 5139 inline bool Node::Const::Reader::hasValue() const { 5140 return !_reader.getPointerField( 5141 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 5142 } 5143 inline bool Node::Const::Builder::hasValue() { 5144 return !_builder.getPointerField( 5145 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 5146 } 5147 inline ::capnp::schema::Value::Reader Node::Const::Reader::getValue() const { 5148 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( 5149 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5150 } 5151 inline ::capnp::schema::Value::Builder Node::Const::Builder::getValue() { 5152 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( 5153 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5154 } 5155 #if !CAPNP_LITE 5156 inline ::capnp::schema::Value::Pipeline Node::Const::Pipeline::getValue() { 5157 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(4)); 5158 } 5159 #endif // !CAPNP_LITE 5160 inline void Node::Const::Builder::setValue( ::capnp::schema::Value::Reader value) { 5161 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( 5162 ::capnp::bounded<4>() * ::capnp::POINTERS), value); 5163 } 5164 inline ::capnp::schema::Value::Builder Node::Const::Builder::initValue() { 5165 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( 5166 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5167 } 5168 inline void Node::Const::Builder::adoptValue( 5169 ::capnp::Orphan< ::capnp::schema::Value>&& value) { 5170 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( 5171 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); 5172 } 5173 inline ::capnp::Orphan< ::capnp::schema::Value> Node::Const::Builder::disownValue() { 5174 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( 5175 ::capnp::bounded<4>() * ::capnp::POINTERS)); 5176 } 5177 5178 inline bool Node::Annotation::Reader::hasType() const { 5179 return !_reader.getPointerField( 5180 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5181 } 5182 inline bool Node::Annotation::Builder::hasType() { 5183 return !_builder.getPointerField( 5184 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5185 } 5186 inline ::capnp::schema::Type::Reader Node::Annotation::Reader::getType() const { 5187 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( 5188 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5189 } 5190 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::getType() { 5191 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( 5192 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5193 } 5194 #if !CAPNP_LITE 5195 inline ::capnp::schema::Type::Pipeline Node::Annotation::Pipeline::getType() { 5196 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(3)); 5197 } 5198 #endif // !CAPNP_LITE 5199 inline void Node::Annotation::Builder::setType( ::capnp::schema::Type::Reader value) { 5200 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( 5201 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 5202 } 5203 inline ::capnp::schema::Type::Builder Node::Annotation::Builder::initType() { 5204 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( 5205 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5206 } 5207 inline void Node::Annotation::Builder::adoptType( 5208 ::capnp::Orphan< ::capnp::schema::Type>&& value) { 5209 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( 5210 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 5211 } 5212 inline ::capnp::Orphan< ::capnp::schema::Type> Node::Annotation::Builder::disownType() { 5213 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( 5214 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5215 } 5216 5217 inline bool Node::Annotation::Reader::getTargetsFile() const { 5218 return _reader.getDataField<bool>( 5219 ::capnp::bounded<112>() * ::capnp::ELEMENTS); 5220 } 5221 5222 inline bool Node::Annotation::Builder::getTargetsFile() { 5223 return _builder.getDataField<bool>( 5224 ::capnp::bounded<112>() * ::capnp::ELEMENTS); 5225 } 5226 inline void Node::Annotation::Builder::setTargetsFile(bool value) { 5227 _builder.setDataField<bool>( 5228 ::capnp::bounded<112>() * ::capnp::ELEMENTS, value); 5229 } 5230 5231 inline bool Node::Annotation::Reader::getTargetsConst() const { 5232 return _reader.getDataField<bool>( 5233 ::capnp::bounded<113>() * ::capnp::ELEMENTS); 5234 } 5235 5236 inline bool Node::Annotation::Builder::getTargetsConst() { 5237 return _builder.getDataField<bool>( 5238 ::capnp::bounded<113>() * ::capnp::ELEMENTS); 5239 } 5240 inline void Node::Annotation::Builder::setTargetsConst(bool value) { 5241 _builder.setDataField<bool>( 5242 ::capnp::bounded<113>() * ::capnp::ELEMENTS, value); 5243 } 5244 5245 inline bool Node::Annotation::Reader::getTargetsEnum() const { 5246 return _reader.getDataField<bool>( 5247 ::capnp::bounded<114>() * ::capnp::ELEMENTS); 5248 } 5249 5250 inline bool Node::Annotation::Builder::getTargetsEnum() { 5251 return _builder.getDataField<bool>( 5252 ::capnp::bounded<114>() * ::capnp::ELEMENTS); 5253 } 5254 inline void Node::Annotation::Builder::setTargetsEnum(bool value) { 5255 _builder.setDataField<bool>( 5256 ::capnp::bounded<114>() * ::capnp::ELEMENTS, value); 5257 } 5258 5259 inline bool Node::Annotation::Reader::getTargetsEnumerant() const { 5260 return _reader.getDataField<bool>( 5261 ::capnp::bounded<115>() * ::capnp::ELEMENTS); 5262 } 5263 5264 inline bool Node::Annotation::Builder::getTargetsEnumerant() { 5265 return _builder.getDataField<bool>( 5266 ::capnp::bounded<115>() * ::capnp::ELEMENTS); 5267 } 5268 inline void Node::Annotation::Builder::setTargetsEnumerant(bool value) { 5269 _builder.setDataField<bool>( 5270 ::capnp::bounded<115>() * ::capnp::ELEMENTS, value); 5271 } 5272 5273 inline bool Node::Annotation::Reader::getTargetsStruct() const { 5274 return _reader.getDataField<bool>( 5275 ::capnp::bounded<116>() * ::capnp::ELEMENTS); 5276 } 5277 5278 inline bool Node::Annotation::Builder::getTargetsStruct() { 5279 return _builder.getDataField<bool>( 5280 ::capnp::bounded<116>() * ::capnp::ELEMENTS); 5281 } 5282 inline void Node::Annotation::Builder::setTargetsStruct(bool value) { 5283 _builder.setDataField<bool>( 5284 ::capnp::bounded<116>() * ::capnp::ELEMENTS, value); 5285 } 5286 5287 inline bool Node::Annotation::Reader::getTargetsField() const { 5288 return _reader.getDataField<bool>( 5289 ::capnp::bounded<117>() * ::capnp::ELEMENTS); 5290 } 5291 5292 inline bool Node::Annotation::Builder::getTargetsField() { 5293 return _builder.getDataField<bool>( 5294 ::capnp::bounded<117>() * ::capnp::ELEMENTS); 5295 } 5296 inline void Node::Annotation::Builder::setTargetsField(bool value) { 5297 _builder.setDataField<bool>( 5298 ::capnp::bounded<117>() * ::capnp::ELEMENTS, value); 5299 } 5300 5301 inline bool Node::Annotation::Reader::getTargetsUnion() const { 5302 return _reader.getDataField<bool>( 5303 ::capnp::bounded<118>() * ::capnp::ELEMENTS); 5304 } 5305 5306 inline bool Node::Annotation::Builder::getTargetsUnion() { 5307 return _builder.getDataField<bool>( 5308 ::capnp::bounded<118>() * ::capnp::ELEMENTS); 5309 } 5310 inline void Node::Annotation::Builder::setTargetsUnion(bool value) { 5311 _builder.setDataField<bool>( 5312 ::capnp::bounded<118>() * ::capnp::ELEMENTS, value); 5313 } 5314 5315 inline bool Node::Annotation::Reader::getTargetsGroup() const { 5316 return _reader.getDataField<bool>( 5317 ::capnp::bounded<119>() * ::capnp::ELEMENTS); 5318 } 5319 5320 inline bool Node::Annotation::Builder::getTargetsGroup() { 5321 return _builder.getDataField<bool>( 5322 ::capnp::bounded<119>() * ::capnp::ELEMENTS); 5323 } 5324 inline void Node::Annotation::Builder::setTargetsGroup(bool value) { 5325 _builder.setDataField<bool>( 5326 ::capnp::bounded<119>() * ::capnp::ELEMENTS, value); 5327 } 5328 5329 inline bool Node::Annotation::Reader::getTargetsInterface() const { 5330 return _reader.getDataField<bool>( 5331 ::capnp::bounded<120>() * ::capnp::ELEMENTS); 5332 } 5333 5334 inline bool Node::Annotation::Builder::getTargetsInterface() { 5335 return _builder.getDataField<bool>( 5336 ::capnp::bounded<120>() * ::capnp::ELEMENTS); 5337 } 5338 inline void Node::Annotation::Builder::setTargetsInterface(bool value) { 5339 _builder.setDataField<bool>( 5340 ::capnp::bounded<120>() * ::capnp::ELEMENTS, value); 5341 } 5342 5343 inline bool Node::Annotation::Reader::getTargetsMethod() const { 5344 return _reader.getDataField<bool>( 5345 ::capnp::bounded<121>() * ::capnp::ELEMENTS); 5346 } 5347 5348 inline bool Node::Annotation::Builder::getTargetsMethod() { 5349 return _builder.getDataField<bool>( 5350 ::capnp::bounded<121>() * ::capnp::ELEMENTS); 5351 } 5352 inline void Node::Annotation::Builder::setTargetsMethod(bool value) { 5353 _builder.setDataField<bool>( 5354 ::capnp::bounded<121>() * ::capnp::ELEMENTS, value); 5355 } 5356 5357 inline bool Node::Annotation::Reader::getTargetsParam() const { 5358 return _reader.getDataField<bool>( 5359 ::capnp::bounded<122>() * ::capnp::ELEMENTS); 5360 } 5361 5362 inline bool Node::Annotation::Builder::getTargetsParam() { 5363 return _builder.getDataField<bool>( 5364 ::capnp::bounded<122>() * ::capnp::ELEMENTS); 5365 } 5366 inline void Node::Annotation::Builder::setTargetsParam(bool value) { 5367 _builder.setDataField<bool>( 5368 ::capnp::bounded<122>() * ::capnp::ELEMENTS, value); 5369 } 5370 5371 inline bool Node::Annotation::Reader::getTargetsAnnotation() const { 5372 return _reader.getDataField<bool>( 5373 ::capnp::bounded<123>() * ::capnp::ELEMENTS); 5374 } 5375 5376 inline bool Node::Annotation::Builder::getTargetsAnnotation() { 5377 return _builder.getDataField<bool>( 5378 ::capnp::bounded<123>() * ::capnp::ELEMENTS); 5379 } 5380 inline void Node::Annotation::Builder::setTargetsAnnotation(bool value) { 5381 _builder.setDataField<bool>( 5382 ::capnp::bounded<123>() * ::capnp::ELEMENTS, value); 5383 } 5384 5385 inline ::capnp::schema::Field::Which Field::Reader::which() const { 5386 return _reader.getDataField<Which>( 5387 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 5388 } 5389 inline ::capnp::schema::Field::Which Field::Builder::which() { 5390 return _builder.getDataField<Which>( 5391 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 5392 } 5393 5394 inline bool Field::Reader::hasName() const { 5395 return !_reader.getPointerField( 5396 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5397 } 5398 inline bool Field::Builder::hasName() { 5399 return !_builder.getPointerField( 5400 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5401 } 5402 inline ::capnp::Text::Reader Field::Reader::getName() const { 5403 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 5404 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5405 } 5406 inline ::capnp::Text::Builder Field::Builder::getName() { 5407 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 5408 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5409 } 5410 inline void Field::Builder::setName( ::capnp::Text::Reader value) { 5411 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 5412 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 5413 } 5414 inline ::capnp::Text::Builder Field::Builder::initName(unsigned int size) { 5415 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 5416 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 5417 } 5418 inline void Field::Builder::adoptName( 5419 ::capnp::Orphan< ::capnp::Text>&& value) { 5420 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 5421 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 5422 } 5423 inline ::capnp::Orphan< ::capnp::Text> Field::Builder::disownName() { 5424 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 5425 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5426 } 5427 5428 inline ::uint16_t Field::Reader::getCodeOrder() const { 5429 return _reader.getDataField< ::uint16_t>( 5430 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5431 } 5432 5433 inline ::uint16_t Field::Builder::getCodeOrder() { 5434 return _builder.getDataField< ::uint16_t>( 5435 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5436 } 5437 inline void Field::Builder::setCodeOrder( ::uint16_t value) { 5438 _builder.setDataField< ::uint16_t>( 5439 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 5440 } 5441 5442 inline bool Field::Reader::hasAnnotations() const { 5443 return !_reader.getPointerField( 5444 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5445 } 5446 inline bool Field::Builder::hasAnnotations() { 5447 return !_builder.getPointerField( 5448 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5449 } 5450 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Field::Reader::getAnnotations() const { 5451 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5452 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5453 } 5454 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Field::Builder::getAnnotations() { 5455 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5456 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5457 } 5458 inline void Field::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { 5459 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5460 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 5461 } 5462 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Field::Builder::initAnnotations(unsigned int size) { 5463 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5464 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 5465 } 5466 inline void Field::Builder::adoptAnnotations( 5467 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { 5468 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5469 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 5470 } 5471 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Field::Builder::disownAnnotations() { 5472 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5473 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5474 } 5475 5476 inline ::uint16_t Field::Reader::getDiscriminantValue() const { 5477 return _reader.getDataField< ::uint16_t>( 5478 ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); 5479 } 5480 5481 inline ::uint16_t Field::Builder::getDiscriminantValue() { 5482 return _builder.getDataField< ::uint16_t>( 5483 ::capnp::bounded<1>() * ::capnp::ELEMENTS, 65535u); 5484 } 5485 inline void Field::Builder::setDiscriminantValue( ::uint16_t value) { 5486 _builder.setDataField< ::uint16_t>( 5487 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value, 65535u); 5488 } 5489 5490 inline bool Field::Reader::isSlot() const { 5491 return which() == Field::SLOT; 5492 } 5493 inline bool Field::Builder::isSlot() { 5494 return which() == Field::SLOT; 5495 } 5496 inline typename Field::Slot::Reader Field::Reader::getSlot() const { 5497 KJ_IREQUIRE((which() == Field::SLOT), 5498 "Must check which() before get()ing a union member."); 5499 return typename Field::Slot::Reader(_reader); 5500 } 5501 inline typename Field::Slot::Builder Field::Builder::getSlot() { 5502 KJ_IREQUIRE((which() == Field::SLOT), 5503 "Must check which() before get()ing a union member."); 5504 return typename Field::Slot::Builder(_builder); 5505 } 5506 inline typename Field::Slot::Builder Field::Builder::initSlot() { 5507 _builder.setDataField<Field::Which>( 5508 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::SLOT); 5509 _builder.setDataField< ::uint32_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); 5510 _builder.setDataField<bool>(::capnp::bounded<128>() * ::capnp::ELEMENTS, 0); 5511 _builder.getPointerField(::capnp::bounded<2>() * ::capnp::POINTERS).clear(); 5512 _builder.getPointerField(::capnp::bounded<3>() * ::capnp::POINTERS).clear(); 5513 return typename Field::Slot::Builder(_builder); 5514 } 5515 inline bool Field::Reader::isGroup() const { 5516 return which() == Field::GROUP; 5517 } 5518 inline bool Field::Builder::isGroup() { 5519 return which() == Field::GROUP; 5520 } 5521 inline typename Field::Group::Reader Field::Reader::getGroup() const { 5522 KJ_IREQUIRE((which() == Field::GROUP), 5523 "Must check which() before get()ing a union member."); 5524 return typename Field::Group::Reader(_reader); 5525 } 5526 inline typename Field::Group::Builder Field::Builder::getGroup() { 5527 KJ_IREQUIRE((which() == Field::GROUP), 5528 "Must check which() before get()ing a union member."); 5529 return typename Field::Group::Builder(_builder); 5530 } 5531 inline typename Field::Group::Builder Field::Builder::initGroup() { 5532 _builder.setDataField<Field::Which>( 5533 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Field::GROUP); 5534 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); 5535 return typename Field::Group::Builder(_builder); 5536 } 5537 inline typename Field::Ordinal::Reader Field::Reader::getOrdinal() const { 5538 return typename Field::Ordinal::Reader(_reader); 5539 } 5540 inline typename Field::Ordinal::Builder Field::Builder::getOrdinal() { 5541 return typename Field::Ordinal::Builder(_builder); 5542 } 5543 #if !CAPNP_LITE 5544 inline typename Field::Ordinal::Pipeline Field::Pipeline::getOrdinal() { 5545 return typename Field::Ordinal::Pipeline(_typeless.noop()); 5546 } 5547 #endif // !CAPNP_LITE 5548 inline typename Field::Ordinal::Builder Field::Builder::initOrdinal() { 5549 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); 5550 _builder.setDataField< ::uint16_t>(::capnp::bounded<6>() * ::capnp::ELEMENTS, 0); 5551 return typename Field::Ordinal::Builder(_builder); 5552 } 5553 inline ::uint32_t Field::Slot::Reader::getOffset() const { 5554 return _reader.getDataField< ::uint32_t>( 5555 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 5556 } 5557 5558 inline ::uint32_t Field::Slot::Builder::getOffset() { 5559 return _builder.getDataField< ::uint32_t>( 5560 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 5561 } 5562 inline void Field::Slot::Builder::setOffset( ::uint32_t value) { 5563 _builder.setDataField< ::uint32_t>( 5564 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 5565 } 5566 5567 inline bool Field::Slot::Reader::hasType() const { 5568 return !_reader.getPointerField( 5569 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 5570 } 5571 inline bool Field::Slot::Builder::hasType() { 5572 return !_builder.getPointerField( 5573 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 5574 } 5575 inline ::capnp::schema::Type::Reader Field::Slot::Reader::getType() const { 5576 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( 5577 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5578 } 5579 inline ::capnp::schema::Type::Builder Field::Slot::Builder::getType() { 5580 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( 5581 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5582 } 5583 #if !CAPNP_LITE 5584 inline ::capnp::schema::Type::Pipeline Field::Slot::Pipeline::getType() { 5585 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(2)); 5586 } 5587 #endif // !CAPNP_LITE 5588 inline void Field::Slot::Builder::setType( ::capnp::schema::Type::Reader value) { 5589 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( 5590 ::capnp::bounded<2>() * ::capnp::POINTERS), value); 5591 } 5592 inline ::capnp::schema::Type::Builder Field::Slot::Builder::initType() { 5593 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( 5594 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5595 } 5596 inline void Field::Slot::Builder::adoptType( 5597 ::capnp::Orphan< ::capnp::schema::Type>&& value) { 5598 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( 5599 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); 5600 } 5601 inline ::capnp::Orphan< ::capnp::schema::Type> Field::Slot::Builder::disownType() { 5602 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( 5603 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5604 } 5605 5606 inline bool Field::Slot::Reader::hasDefaultValue() const { 5607 return !_reader.getPointerField( 5608 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5609 } 5610 inline bool Field::Slot::Builder::hasDefaultValue() { 5611 return !_builder.getPointerField( 5612 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 5613 } 5614 inline ::capnp::schema::Value::Reader Field::Slot::Reader::getDefaultValue() const { 5615 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( 5616 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5617 } 5618 inline ::capnp::schema::Value::Builder Field::Slot::Builder::getDefaultValue() { 5619 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( 5620 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5621 } 5622 #if !CAPNP_LITE 5623 inline ::capnp::schema::Value::Pipeline Field::Slot::Pipeline::getDefaultValue() { 5624 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(3)); 5625 } 5626 #endif // !CAPNP_LITE 5627 inline void Field::Slot::Builder::setDefaultValue( ::capnp::schema::Value::Reader value) { 5628 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( 5629 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 5630 } 5631 inline ::capnp::schema::Value::Builder Field::Slot::Builder::initDefaultValue() { 5632 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( 5633 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5634 } 5635 inline void Field::Slot::Builder::adoptDefaultValue( 5636 ::capnp::Orphan< ::capnp::schema::Value>&& value) { 5637 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( 5638 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 5639 } 5640 inline ::capnp::Orphan< ::capnp::schema::Value> Field::Slot::Builder::disownDefaultValue() { 5641 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( 5642 ::capnp::bounded<3>() * ::capnp::POINTERS)); 5643 } 5644 5645 inline bool Field::Slot::Reader::getHadExplicitDefault() const { 5646 return _reader.getDataField<bool>( 5647 ::capnp::bounded<128>() * ::capnp::ELEMENTS); 5648 } 5649 5650 inline bool Field::Slot::Builder::getHadExplicitDefault() { 5651 return _builder.getDataField<bool>( 5652 ::capnp::bounded<128>() * ::capnp::ELEMENTS); 5653 } 5654 inline void Field::Slot::Builder::setHadExplicitDefault(bool value) { 5655 _builder.setDataField<bool>( 5656 ::capnp::bounded<128>() * ::capnp::ELEMENTS, value); 5657 } 5658 5659 inline ::uint64_t Field::Group::Reader::getTypeId() const { 5660 return _reader.getDataField< ::uint64_t>( 5661 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 5662 } 5663 5664 inline ::uint64_t Field::Group::Builder::getTypeId() { 5665 return _builder.getDataField< ::uint64_t>( 5666 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 5667 } 5668 inline void Field::Group::Builder::setTypeId( ::uint64_t value) { 5669 _builder.setDataField< ::uint64_t>( 5670 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 5671 } 5672 5673 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Reader::which() const { 5674 return _reader.getDataField<Which>( 5675 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 5676 } 5677 inline ::capnp::schema::Field::Ordinal::Which Field::Ordinal::Builder::which() { 5678 return _builder.getDataField<Which>( 5679 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 5680 } 5681 5682 inline bool Field::Ordinal::Reader::isImplicit() const { 5683 return which() == Field::Ordinal::IMPLICIT; 5684 } 5685 inline bool Field::Ordinal::Builder::isImplicit() { 5686 return which() == Field::Ordinal::IMPLICIT; 5687 } 5688 inline ::capnp::Void Field::Ordinal::Reader::getImplicit() const { 5689 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), 5690 "Must check which() before get()ing a union member."); 5691 return _reader.getDataField< ::capnp::Void>( 5692 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5693 } 5694 5695 inline ::capnp::Void Field::Ordinal::Builder::getImplicit() { 5696 KJ_IREQUIRE((which() == Field::Ordinal::IMPLICIT), 5697 "Must check which() before get()ing a union member."); 5698 return _builder.getDataField< ::capnp::Void>( 5699 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5700 } 5701 inline void Field::Ordinal::Builder::setImplicit( ::capnp::Void value) { 5702 _builder.setDataField<Field::Ordinal::Which>( 5703 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::IMPLICIT); 5704 _builder.setDataField< ::capnp::Void>( 5705 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 5706 } 5707 5708 inline bool Field::Ordinal::Reader::isExplicit() const { 5709 return which() == Field::Ordinal::EXPLICIT; 5710 } 5711 inline bool Field::Ordinal::Builder::isExplicit() { 5712 return which() == Field::Ordinal::EXPLICIT; 5713 } 5714 inline ::uint16_t Field::Ordinal::Reader::getExplicit() const { 5715 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), 5716 "Must check which() before get()ing a union member."); 5717 return _reader.getDataField< ::uint16_t>( 5718 ::capnp::bounded<6>() * ::capnp::ELEMENTS); 5719 } 5720 5721 inline ::uint16_t Field::Ordinal::Builder::getExplicit() { 5722 KJ_IREQUIRE((which() == Field::Ordinal::EXPLICIT), 5723 "Must check which() before get()ing a union member."); 5724 return _builder.getDataField< ::uint16_t>( 5725 ::capnp::bounded<6>() * ::capnp::ELEMENTS); 5726 } 5727 inline void Field::Ordinal::Builder::setExplicit( ::uint16_t value) { 5728 _builder.setDataField<Field::Ordinal::Which>( 5729 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Field::Ordinal::EXPLICIT); 5730 _builder.setDataField< ::uint16_t>( 5731 ::capnp::bounded<6>() * ::capnp::ELEMENTS, value); 5732 } 5733 5734 inline bool Enumerant::Reader::hasName() const { 5735 return !_reader.getPointerField( 5736 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5737 } 5738 inline bool Enumerant::Builder::hasName() { 5739 return !_builder.getPointerField( 5740 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5741 } 5742 inline ::capnp::Text::Reader Enumerant::Reader::getName() const { 5743 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 5744 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5745 } 5746 inline ::capnp::Text::Builder Enumerant::Builder::getName() { 5747 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 5748 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5749 } 5750 inline void Enumerant::Builder::setName( ::capnp::Text::Reader value) { 5751 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 5752 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 5753 } 5754 inline ::capnp::Text::Builder Enumerant::Builder::initName(unsigned int size) { 5755 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 5756 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 5757 } 5758 inline void Enumerant::Builder::adoptName( 5759 ::capnp::Orphan< ::capnp::Text>&& value) { 5760 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 5761 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 5762 } 5763 inline ::capnp::Orphan< ::capnp::Text> Enumerant::Builder::disownName() { 5764 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 5765 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5766 } 5767 5768 inline ::uint16_t Enumerant::Reader::getCodeOrder() const { 5769 return _reader.getDataField< ::uint16_t>( 5770 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5771 } 5772 5773 inline ::uint16_t Enumerant::Builder::getCodeOrder() { 5774 return _builder.getDataField< ::uint16_t>( 5775 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5776 } 5777 inline void Enumerant::Builder::setCodeOrder( ::uint16_t value) { 5778 _builder.setDataField< ::uint16_t>( 5779 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 5780 } 5781 5782 inline bool Enumerant::Reader::hasAnnotations() const { 5783 return !_reader.getPointerField( 5784 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5785 } 5786 inline bool Enumerant::Builder::hasAnnotations() { 5787 return !_builder.getPointerField( 5788 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5789 } 5790 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Enumerant::Reader::getAnnotations() const { 5791 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5792 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5793 } 5794 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Enumerant::Builder::getAnnotations() { 5795 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5796 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5797 } 5798 inline void Enumerant::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { 5799 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5800 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 5801 } 5802 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Enumerant::Builder::initAnnotations(unsigned int size) { 5803 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5804 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 5805 } 5806 inline void Enumerant::Builder::adoptAnnotations( 5807 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { 5808 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5809 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 5810 } 5811 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Enumerant::Builder::disownAnnotations() { 5812 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5813 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5814 } 5815 5816 inline ::uint64_t Superclass::Reader::getId() const { 5817 return _reader.getDataField< ::uint64_t>( 5818 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5819 } 5820 5821 inline ::uint64_t Superclass::Builder::getId() { 5822 return _builder.getDataField< ::uint64_t>( 5823 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5824 } 5825 inline void Superclass::Builder::setId( ::uint64_t value) { 5826 _builder.setDataField< ::uint64_t>( 5827 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 5828 } 5829 5830 inline bool Superclass::Reader::hasBrand() const { 5831 return !_reader.getPointerField( 5832 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5833 } 5834 inline bool Superclass::Builder::hasBrand() { 5835 return !_builder.getPointerField( 5836 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5837 } 5838 inline ::capnp::schema::Brand::Reader Superclass::Reader::getBrand() const { 5839 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 5840 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5841 } 5842 inline ::capnp::schema::Brand::Builder Superclass::Builder::getBrand() { 5843 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 5844 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5845 } 5846 #if !CAPNP_LITE 5847 inline ::capnp::schema::Brand::Pipeline Superclass::Pipeline::getBrand() { 5848 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); 5849 } 5850 #endif // !CAPNP_LITE 5851 inline void Superclass::Builder::setBrand( ::capnp::schema::Brand::Reader value) { 5852 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 5853 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 5854 } 5855 inline ::capnp::schema::Brand::Builder Superclass::Builder::initBrand() { 5856 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 5857 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5858 } 5859 inline void Superclass::Builder::adoptBrand( 5860 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 5861 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 5862 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 5863 } 5864 inline ::capnp::Orphan< ::capnp::schema::Brand> Superclass::Builder::disownBrand() { 5865 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 5866 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5867 } 5868 5869 inline bool Method::Reader::hasName() const { 5870 return !_reader.getPointerField( 5871 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5872 } 5873 inline bool Method::Builder::hasName() { 5874 return !_builder.getPointerField( 5875 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 5876 } 5877 inline ::capnp::Text::Reader Method::Reader::getName() const { 5878 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 5879 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5880 } 5881 inline ::capnp::Text::Builder Method::Builder::getName() { 5882 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 5883 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5884 } 5885 inline void Method::Builder::setName( ::capnp::Text::Reader value) { 5886 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 5887 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 5888 } 5889 inline ::capnp::Text::Builder Method::Builder::initName(unsigned int size) { 5890 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 5891 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 5892 } 5893 inline void Method::Builder::adoptName( 5894 ::capnp::Orphan< ::capnp::Text>&& value) { 5895 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 5896 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 5897 } 5898 inline ::capnp::Orphan< ::capnp::Text> Method::Builder::disownName() { 5899 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 5900 ::capnp::bounded<0>() * ::capnp::POINTERS)); 5901 } 5902 5903 inline ::uint16_t Method::Reader::getCodeOrder() const { 5904 return _reader.getDataField< ::uint16_t>( 5905 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5906 } 5907 5908 inline ::uint16_t Method::Builder::getCodeOrder() { 5909 return _builder.getDataField< ::uint16_t>( 5910 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 5911 } 5912 inline void Method::Builder::setCodeOrder( ::uint16_t value) { 5913 _builder.setDataField< ::uint16_t>( 5914 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 5915 } 5916 5917 inline ::uint64_t Method::Reader::getParamStructType() const { 5918 return _reader.getDataField< ::uint64_t>( 5919 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 5920 } 5921 5922 inline ::uint64_t Method::Builder::getParamStructType() { 5923 return _builder.getDataField< ::uint64_t>( 5924 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 5925 } 5926 inline void Method::Builder::setParamStructType( ::uint64_t value) { 5927 _builder.setDataField< ::uint64_t>( 5928 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 5929 } 5930 5931 inline ::uint64_t Method::Reader::getResultStructType() const { 5932 return _reader.getDataField< ::uint64_t>( 5933 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 5934 } 5935 5936 inline ::uint64_t Method::Builder::getResultStructType() { 5937 return _builder.getDataField< ::uint64_t>( 5938 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 5939 } 5940 inline void Method::Builder::setResultStructType( ::uint64_t value) { 5941 _builder.setDataField< ::uint64_t>( 5942 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 5943 } 5944 5945 inline bool Method::Reader::hasAnnotations() const { 5946 return !_reader.getPointerField( 5947 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5948 } 5949 inline bool Method::Builder::hasAnnotations() { 5950 return !_builder.getPointerField( 5951 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 5952 } 5953 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader Method::Reader::getAnnotations() const { 5954 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 5955 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5956 } 5957 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Method::Builder::getAnnotations() { 5958 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 5959 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5960 } 5961 inline void Method::Builder::setAnnotations( ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Reader value) { 5962 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 5963 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 5964 } 5965 inline ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>::Builder Method::Builder::initAnnotations(unsigned int size) { 5966 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 5967 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 5968 } 5969 inline void Method::Builder::adoptAnnotations( 5970 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>&& value) { 5971 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 5972 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 5973 } 5974 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>> Method::Builder::disownAnnotations() { 5975 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Annotation, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 5976 ::capnp::bounded<1>() * ::capnp::POINTERS)); 5977 } 5978 5979 inline bool Method::Reader::hasParamBrand() const { 5980 return !_reader.getPointerField( 5981 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 5982 } 5983 inline bool Method::Builder::hasParamBrand() { 5984 return !_builder.getPointerField( 5985 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 5986 } 5987 inline ::capnp::schema::Brand::Reader Method::Reader::getParamBrand() const { 5988 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 5989 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5990 } 5991 inline ::capnp::schema::Brand::Builder Method::Builder::getParamBrand() { 5992 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 5993 ::capnp::bounded<2>() * ::capnp::POINTERS)); 5994 } 5995 #if !CAPNP_LITE 5996 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getParamBrand() { 5997 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(2)); 5998 } 5999 #endif // !CAPNP_LITE 6000 inline void Method::Builder::setParamBrand( ::capnp::schema::Brand::Reader value) { 6001 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 6002 ::capnp::bounded<2>() * ::capnp::POINTERS), value); 6003 } 6004 inline ::capnp::schema::Brand::Builder Method::Builder::initParamBrand() { 6005 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 6006 ::capnp::bounded<2>() * ::capnp::POINTERS)); 6007 } 6008 inline void Method::Builder::adoptParamBrand( 6009 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 6010 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 6011 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); 6012 } 6013 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownParamBrand() { 6014 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 6015 ::capnp::bounded<2>() * ::capnp::POINTERS)); 6016 } 6017 6018 inline bool Method::Reader::hasResultBrand() const { 6019 return !_reader.getPointerField( 6020 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 6021 } 6022 inline bool Method::Builder::hasResultBrand() { 6023 return !_builder.getPointerField( 6024 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 6025 } 6026 inline ::capnp::schema::Brand::Reader Method::Reader::getResultBrand() const { 6027 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 6028 ::capnp::bounded<3>() * ::capnp::POINTERS)); 6029 } 6030 inline ::capnp::schema::Brand::Builder Method::Builder::getResultBrand() { 6031 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 6032 ::capnp::bounded<3>() * ::capnp::POINTERS)); 6033 } 6034 #if !CAPNP_LITE 6035 inline ::capnp::schema::Brand::Pipeline Method::Pipeline::getResultBrand() { 6036 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(3)); 6037 } 6038 #endif // !CAPNP_LITE 6039 inline void Method::Builder::setResultBrand( ::capnp::schema::Brand::Reader value) { 6040 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 6041 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 6042 } 6043 inline ::capnp::schema::Brand::Builder Method::Builder::initResultBrand() { 6044 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 6045 ::capnp::bounded<3>() * ::capnp::POINTERS)); 6046 } 6047 inline void Method::Builder::adoptResultBrand( 6048 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 6049 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 6050 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 6051 } 6052 inline ::capnp::Orphan< ::capnp::schema::Brand> Method::Builder::disownResultBrand() { 6053 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 6054 ::capnp::bounded<3>() * ::capnp::POINTERS)); 6055 } 6056 6057 inline bool Method::Reader::hasImplicitParameters() const { 6058 return !_reader.getPointerField( 6059 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 6060 } 6061 inline bool Method::Builder::hasImplicitParameters() { 6062 return !_builder.getPointerField( 6063 ::capnp::bounded<4>() * ::capnp::POINTERS).isNull(); 6064 } 6065 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader Method::Reader::getImplicitParameters() const { 6066 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 6067 ::capnp::bounded<4>() * ::capnp::POINTERS)); 6068 } 6069 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Method::Builder::getImplicitParameters() { 6070 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 6071 ::capnp::bounded<4>() * ::capnp::POINTERS)); 6072 } 6073 inline void Method::Builder::setImplicitParameters( ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Reader value) { 6074 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 6075 ::capnp::bounded<4>() * ::capnp::POINTERS), value); 6076 } 6077 inline ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>::Builder Method::Builder::initImplicitParameters(unsigned int size) { 6078 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 6079 ::capnp::bounded<4>() * ::capnp::POINTERS), size); 6080 } 6081 inline void Method::Builder::adoptImplicitParameters( 6082 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>&& value) { 6083 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 6084 ::capnp::bounded<4>() * ::capnp::POINTERS), kj::mv(value)); 6085 } 6086 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>> Method::Builder::disownImplicitParameters() { 6087 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::Parameter, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 6088 ::capnp::bounded<4>() * ::capnp::POINTERS)); 6089 } 6090 6091 inline ::capnp::schema::Type::Which Type::Reader::which() const { 6092 return _reader.getDataField<Which>( 6093 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6094 } 6095 inline ::capnp::schema::Type::Which Type::Builder::which() { 6096 return _builder.getDataField<Which>( 6097 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6098 } 6099 6100 inline bool Type::Reader::isVoid() const { 6101 return which() == Type::VOID; 6102 } 6103 inline bool Type::Builder::isVoid() { 6104 return which() == Type::VOID; 6105 } 6106 inline ::capnp::Void Type::Reader::getVoid() const { 6107 KJ_IREQUIRE((which() == Type::VOID), 6108 "Must check which() before get()ing a union member."); 6109 return _reader.getDataField< ::capnp::Void>( 6110 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6111 } 6112 6113 inline ::capnp::Void Type::Builder::getVoid() { 6114 KJ_IREQUIRE((which() == Type::VOID), 6115 "Must check which() before get()ing a union member."); 6116 return _builder.getDataField< ::capnp::Void>( 6117 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6118 } 6119 inline void Type::Builder::setVoid( ::capnp::Void value) { 6120 _builder.setDataField<Type::Which>( 6121 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::VOID); 6122 _builder.setDataField< ::capnp::Void>( 6123 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6124 } 6125 6126 inline bool Type::Reader::isBool() const { 6127 return which() == Type::BOOL; 6128 } 6129 inline bool Type::Builder::isBool() { 6130 return which() == Type::BOOL; 6131 } 6132 inline ::capnp::Void Type::Reader::getBool() const { 6133 KJ_IREQUIRE((which() == Type::BOOL), 6134 "Must check which() before get()ing a union member."); 6135 return _reader.getDataField< ::capnp::Void>( 6136 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6137 } 6138 6139 inline ::capnp::Void Type::Builder::getBool() { 6140 KJ_IREQUIRE((which() == Type::BOOL), 6141 "Must check which() before get()ing a union member."); 6142 return _builder.getDataField< ::capnp::Void>( 6143 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6144 } 6145 inline void Type::Builder::setBool( ::capnp::Void value) { 6146 _builder.setDataField<Type::Which>( 6147 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::BOOL); 6148 _builder.setDataField< ::capnp::Void>( 6149 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6150 } 6151 6152 inline bool Type::Reader::isInt8() const { 6153 return which() == Type::INT8; 6154 } 6155 inline bool Type::Builder::isInt8() { 6156 return which() == Type::INT8; 6157 } 6158 inline ::capnp::Void Type::Reader::getInt8() const { 6159 KJ_IREQUIRE((which() == Type::INT8), 6160 "Must check which() before get()ing a union member."); 6161 return _reader.getDataField< ::capnp::Void>( 6162 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6163 } 6164 6165 inline ::capnp::Void Type::Builder::getInt8() { 6166 KJ_IREQUIRE((which() == Type::INT8), 6167 "Must check which() before get()ing a union member."); 6168 return _builder.getDataField< ::capnp::Void>( 6169 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6170 } 6171 inline void Type::Builder::setInt8( ::capnp::Void value) { 6172 _builder.setDataField<Type::Which>( 6173 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT8); 6174 _builder.setDataField< ::capnp::Void>( 6175 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6176 } 6177 6178 inline bool Type::Reader::isInt16() const { 6179 return which() == Type::INT16; 6180 } 6181 inline bool Type::Builder::isInt16() { 6182 return which() == Type::INT16; 6183 } 6184 inline ::capnp::Void Type::Reader::getInt16() const { 6185 KJ_IREQUIRE((which() == Type::INT16), 6186 "Must check which() before get()ing a union member."); 6187 return _reader.getDataField< ::capnp::Void>( 6188 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6189 } 6190 6191 inline ::capnp::Void Type::Builder::getInt16() { 6192 KJ_IREQUIRE((which() == Type::INT16), 6193 "Must check which() before get()ing a union member."); 6194 return _builder.getDataField< ::capnp::Void>( 6195 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6196 } 6197 inline void Type::Builder::setInt16( ::capnp::Void value) { 6198 _builder.setDataField<Type::Which>( 6199 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT16); 6200 _builder.setDataField< ::capnp::Void>( 6201 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6202 } 6203 6204 inline bool Type::Reader::isInt32() const { 6205 return which() == Type::INT32; 6206 } 6207 inline bool Type::Builder::isInt32() { 6208 return which() == Type::INT32; 6209 } 6210 inline ::capnp::Void Type::Reader::getInt32() const { 6211 KJ_IREQUIRE((which() == Type::INT32), 6212 "Must check which() before get()ing a union member."); 6213 return _reader.getDataField< ::capnp::Void>( 6214 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6215 } 6216 6217 inline ::capnp::Void Type::Builder::getInt32() { 6218 KJ_IREQUIRE((which() == Type::INT32), 6219 "Must check which() before get()ing a union member."); 6220 return _builder.getDataField< ::capnp::Void>( 6221 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6222 } 6223 inline void Type::Builder::setInt32( ::capnp::Void value) { 6224 _builder.setDataField<Type::Which>( 6225 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT32); 6226 _builder.setDataField< ::capnp::Void>( 6227 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6228 } 6229 6230 inline bool Type::Reader::isInt64() const { 6231 return which() == Type::INT64; 6232 } 6233 inline bool Type::Builder::isInt64() { 6234 return which() == Type::INT64; 6235 } 6236 inline ::capnp::Void Type::Reader::getInt64() const { 6237 KJ_IREQUIRE((which() == Type::INT64), 6238 "Must check which() before get()ing a union member."); 6239 return _reader.getDataField< ::capnp::Void>( 6240 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6241 } 6242 6243 inline ::capnp::Void Type::Builder::getInt64() { 6244 KJ_IREQUIRE((which() == Type::INT64), 6245 "Must check which() before get()ing a union member."); 6246 return _builder.getDataField< ::capnp::Void>( 6247 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6248 } 6249 inline void Type::Builder::setInt64( ::capnp::Void value) { 6250 _builder.setDataField<Type::Which>( 6251 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INT64); 6252 _builder.setDataField< ::capnp::Void>( 6253 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6254 } 6255 6256 inline bool Type::Reader::isUint8() const { 6257 return which() == Type::UINT8; 6258 } 6259 inline bool Type::Builder::isUint8() { 6260 return which() == Type::UINT8; 6261 } 6262 inline ::capnp::Void Type::Reader::getUint8() const { 6263 KJ_IREQUIRE((which() == Type::UINT8), 6264 "Must check which() before get()ing a union member."); 6265 return _reader.getDataField< ::capnp::Void>( 6266 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6267 } 6268 6269 inline ::capnp::Void Type::Builder::getUint8() { 6270 KJ_IREQUIRE((which() == Type::UINT8), 6271 "Must check which() before get()ing a union member."); 6272 return _builder.getDataField< ::capnp::Void>( 6273 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6274 } 6275 inline void Type::Builder::setUint8( ::capnp::Void value) { 6276 _builder.setDataField<Type::Which>( 6277 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT8); 6278 _builder.setDataField< ::capnp::Void>( 6279 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6280 } 6281 6282 inline bool Type::Reader::isUint16() const { 6283 return which() == Type::UINT16; 6284 } 6285 inline bool Type::Builder::isUint16() { 6286 return which() == Type::UINT16; 6287 } 6288 inline ::capnp::Void Type::Reader::getUint16() const { 6289 KJ_IREQUIRE((which() == Type::UINT16), 6290 "Must check which() before get()ing a union member."); 6291 return _reader.getDataField< ::capnp::Void>( 6292 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6293 } 6294 6295 inline ::capnp::Void Type::Builder::getUint16() { 6296 KJ_IREQUIRE((which() == Type::UINT16), 6297 "Must check which() before get()ing a union member."); 6298 return _builder.getDataField< ::capnp::Void>( 6299 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6300 } 6301 inline void Type::Builder::setUint16( ::capnp::Void value) { 6302 _builder.setDataField<Type::Which>( 6303 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT16); 6304 _builder.setDataField< ::capnp::Void>( 6305 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6306 } 6307 6308 inline bool Type::Reader::isUint32() const { 6309 return which() == Type::UINT32; 6310 } 6311 inline bool Type::Builder::isUint32() { 6312 return which() == Type::UINT32; 6313 } 6314 inline ::capnp::Void Type::Reader::getUint32() const { 6315 KJ_IREQUIRE((which() == Type::UINT32), 6316 "Must check which() before get()ing a union member."); 6317 return _reader.getDataField< ::capnp::Void>( 6318 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6319 } 6320 6321 inline ::capnp::Void Type::Builder::getUint32() { 6322 KJ_IREQUIRE((which() == Type::UINT32), 6323 "Must check which() before get()ing a union member."); 6324 return _builder.getDataField< ::capnp::Void>( 6325 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6326 } 6327 inline void Type::Builder::setUint32( ::capnp::Void value) { 6328 _builder.setDataField<Type::Which>( 6329 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT32); 6330 _builder.setDataField< ::capnp::Void>( 6331 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6332 } 6333 6334 inline bool Type::Reader::isUint64() const { 6335 return which() == Type::UINT64; 6336 } 6337 inline bool Type::Builder::isUint64() { 6338 return which() == Type::UINT64; 6339 } 6340 inline ::capnp::Void Type::Reader::getUint64() const { 6341 KJ_IREQUIRE((which() == Type::UINT64), 6342 "Must check which() before get()ing a union member."); 6343 return _reader.getDataField< ::capnp::Void>( 6344 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6345 } 6346 6347 inline ::capnp::Void Type::Builder::getUint64() { 6348 KJ_IREQUIRE((which() == Type::UINT64), 6349 "Must check which() before get()ing a union member."); 6350 return _builder.getDataField< ::capnp::Void>( 6351 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6352 } 6353 inline void Type::Builder::setUint64( ::capnp::Void value) { 6354 _builder.setDataField<Type::Which>( 6355 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::UINT64); 6356 _builder.setDataField< ::capnp::Void>( 6357 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6358 } 6359 6360 inline bool Type::Reader::isFloat32() const { 6361 return which() == Type::FLOAT32; 6362 } 6363 inline bool Type::Builder::isFloat32() { 6364 return which() == Type::FLOAT32; 6365 } 6366 inline ::capnp::Void Type::Reader::getFloat32() const { 6367 KJ_IREQUIRE((which() == Type::FLOAT32), 6368 "Must check which() before get()ing a union member."); 6369 return _reader.getDataField< ::capnp::Void>( 6370 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6371 } 6372 6373 inline ::capnp::Void Type::Builder::getFloat32() { 6374 KJ_IREQUIRE((which() == Type::FLOAT32), 6375 "Must check which() before get()ing a union member."); 6376 return _builder.getDataField< ::capnp::Void>( 6377 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6378 } 6379 inline void Type::Builder::setFloat32( ::capnp::Void value) { 6380 _builder.setDataField<Type::Which>( 6381 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT32); 6382 _builder.setDataField< ::capnp::Void>( 6383 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6384 } 6385 6386 inline bool Type::Reader::isFloat64() const { 6387 return which() == Type::FLOAT64; 6388 } 6389 inline bool Type::Builder::isFloat64() { 6390 return which() == Type::FLOAT64; 6391 } 6392 inline ::capnp::Void Type::Reader::getFloat64() const { 6393 KJ_IREQUIRE((which() == Type::FLOAT64), 6394 "Must check which() before get()ing a union member."); 6395 return _reader.getDataField< ::capnp::Void>( 6396 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6397 } 6398 6399 inline ::capnp::Void Type::Builder::getFloat64() { 6400 KJ_IREQUIRE((which() == Type::FLOAT64), 6401 "Must check which() before get()ing a union member."); 6402 return _builder.getDataField< ::capnp::Void>( 6403 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6404 } 6405 inline void Type::Builder::setFloat64( ::capnp::Void value) { 6406 _builder.setDataField<Type::Which>( 6407 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::FLOAT64); 6408 _builder.setDataField< ::capnp::Void>( 6409 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6410 } 6411 6412 inline bool Type::Reader::isText() const { 6413 return which() == Type::TEXT; 6414 } 6415 inline bool Type::Builder::isText() { 6416 return which() == Type::TEXT; 6417 } 6418 inline ::capnp::Void Type::Reader::getText() const { 6419 KJ_IREQUIRE((which() == Type::TEXT), 6420 "Must check which() before get()ing a union member."); 6421 return _reader.getDataField< ::capnp::Void>( 6422 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6423 } 6424 6425 inline ::capnp::Void Type::Builder::getText() { 6426 KJ_IREQUIRE((which() == Type::TEXT), 6427 "Must check which() before get()ing a union member."); 6428 return _builder.getDataField< ::capnp::Void>( 6429 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6430 } 6431 inline void Type::Builder::setText( ::capnp::Void value) { 6432 _builder.setDataField<Type::Which>( 6433 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::TEXT); 6434 _builder.setDataField< ::capnp::Void>( 6435 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6436 } 6437 6438 inline bool Type::Reader::isData() const { 6439 return which() == Type::DATA; 6440 } 6441 inline bool Type::Builder::isData() { 6442 return which() == Type::DATA; 6443 } 6444 inline ::capnp::Void Type::Reader::getData() const { 6445 KJ_IREQUIRE((which() == Type::DATA), 6446 "Must check which() before get()ing a union member."); 6447 return _reader.getDataField< ::capnp::Void>( 6448 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6449 } 6450 6451 inline ::capnp::Void Type::Builder::getData() { 6452 KJ_IREQUIRE((which() == Type::DATA), 6453 "Must check which() before get()ing a union member."); 6454 return _builder.getDataField< ::capnp::Void>( 6455 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6456 } 6457 inline void Type::Builder::setData( ::capnp::Void value) { 6458 _builder.setDataField<Type::Which>( 6459 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::DATA); 6460 _builder.setDataField< ::capnp::Void>( 6461 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6462 } 6463 6464 inline bool Type::Reader::isList() const { 6465 return which() == Type::LIST; 6466 } 6467 inline bool Type::Builder::isList() { 6468 return which() == Type::LIST; 6469 } 6470 inline typename Type::List::Reader Type::Reader::getList() const { 6471 KJ_IREQUIRE((which() == Type::LIST), 6472 "Must check which() before get()ing a union member."); 6473 return typename Type::List::Reader(_reader); 6474 } 6475 inline typename Type::List::Builder Type::Builder::getList() { 6476 KJ_IREQUIRE((which() == Type::LIST), 6477 "Must check which() before get()ing a union member."); 6478 return typename Type::List::Builder(_builder); 6479 } 6480 inline typename Type::List::Builder Type::Builder::initList() { 6481 _builder.setDataField<Type::Which>( 6482 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::LIST); 6483 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); 6484 return typename Type::List::Builder(_builder); 6485 } 6486 inline bool Type::Reader::isEnum() const { 6487 return which() == Type::ENUM; 6488 } 6489 inline bool Type::Builder::isEnum() { 6490 return which() == Type::ENUM; 6491 } 6492 inline typename Type::Enum::Reader Type::Reader::getEnum() const { 6493 KJ_IREQUIRE((which() == Type::ENUM), 6494 "Must check which() before get()ing a union member."); 6495 return typename Type::Enum::Reader(_reader); 6496 } 6497 inline typename Type::Enum::Builder Type::Builder::getEnum() { 6498 KJ_IREQUIRE((which() == Type::ENUM), 6499 "Must check which() before get()ing a union member."); 6500 return typename Type::Enum::Builder(_builder); 6501 } 6502 inline typename Type::Enum::Builder Type::Builder::initEnum() { 6503 _builder.setDataField<Type::Which>( 6504 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ENUM); 6505 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); 6506 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); 6507 return typename Type::Enum::Builder(_builder); 6508 } 6509 inline bool Type::Reader::isStruct() const { 6510 return which() == Type::STRUCT; 6511 } 6512 inline bool Type::Builder::isStruct() { 6513 return which() == Type::STRUCT; 6514 } 6515 inline typename Type::Struct::Reader Type::Reader::getStruct() const { 6516 KJ_IREQUIRE((which() == Type::STRUCT), 6517 "Must check which() before get()ing a union member."); 6518 return typename Type::Struct::Reader(_reader); 6519 } 6520 inline typename Type::Struct::Builder Type::Builder::getStruct() { 6521 KJ_IREQUIRE((which() == Type::STRUCT), 6522 "Must check which() before get()ing a union member."); 6523 return typename Type::Struct::Builder(_builder); 6524 } 6525 inline typename Type::Struct::Builder Type::Builder::initStruct() { 6526 _builder.setDataField<Type::Which>( 6527 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::STRUCT); 6528 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); 6529 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); 6530 return typename Type::Struct::Builder(_builder); 6531 } 6532 inline bool Type::Reader::isInterface() const { 6533 return which() == Type::INTERFACE; 6534 } 6535 inline bool Type::Builder::isInterface() { 6536 return which() == Type::INTERFACE; 6537 } 6538 inline typename Type::Interface::Reader Type::Reader::getInterface() const { 6539 KJ_IREQUIRE((which() == Type::INTERFACE), 6540 "Must check which() before get()ing a union member."); 6541 return typename Type::Interface::Reader(_reader); 6542 } 6543 inline typename Type::Interface::Builder Type::Builder::getInterface() { 6544 KJ_IREQUIRE((which() == Type::INTERFACE), 6545 "Must check which() before get()ing a union member."); 6546 return typename Type::Interface::Builder(_builder); 6547 } 6548 inline typename Type::Interface::Builder Type::Builder::initInterface() { 6549 _builder.setDataField<Type::Which>( 6550 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::INTERFACE); 6551 _builder.setDataField< ::uint64_t>(::capnp::bounded<1>() * ::capnp::ELEMENTS, 0); 6552 _builder.getPointerField(::capnp::bounded<0>() * ::capnp::POINTERS).clear(); 6553 return typename Type::Interface::Builder(_builder); 6554 } 6555 inline bool Type::Reader::isAnyPointer() const { 6556 return which() == Type::ANY_POINTER; 6557 } 6558 inline bool Type::Builder::isAnyPointer() { 6559 return which() == Type::ANY_POINTER; 6560 } 6561 inline typename Type::AnyPointer::Reader Type::Reader::getAnyPointer() const { 6562 KJ_IREQUIRE((which() == Type::ANY_POINTER), 6563 "Must check which() before get()ing a union member."); 6564 return typename Type::AnyPointer::Reader(_reader); 6565 } 6566 inline typename Type::AnyPointer::Builder Type::Builder::getAnyPointer() { 6567 KJ_IREQUIRE((which() == Type::ANY_POINTER), 6568 "Must check which() before get()ing a union member."); 6569 return typename Type::AnyPointer::Builder(_builder); 6570 } 6571 inline typename Type::AnyPointer::Builder Type::Builder::initAnyPointer() { 6572 _builder.setDataField<Type::Which>( 6573 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Type::ANY_POINTER); 6574 _builder.setDataField< ::uint16_t>(::capnp::bounded<4>() * ::capnp::ELEMENTS, 0); 6575 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); 6576 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); 6577 return typename Type::AnyPointer::Builder(_builder); 6578 } 6579 inline bool Type::List::Reader::hasElementType() const { 6580 return !_reader.getPointerField( 6581 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6582 } 6583 inline bool Type::List::Builder::hasElementType() { 6584 return !_builder.getPointerField( 6585 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6586 } 6587 inline ::capnp::schema::Type::Reader Type::List::Reader::getElementType() const { 6588 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( 6589 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6590 } 6591 inline ::capnp::schema::Type::Builder Type::List::Builder::getElementType() { 6592 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( 6593 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6594 } 6595 #if !CAPNP_LITE 6596 inline ::capnp::schema::Type::Pipeline Type::List::Pipeline::getElementType() { 6597 return ::capnp::schema::Type::Pipeline(_typeless.getPointerField(0)); 6598 } 6599 #endif // !CAPNP_LITE 6600 inline void Type::List::Builder::setElementType( ::capnp::schema::Type::Reader value) { 6601 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( 6602 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 6603 } 6604 inline ::capnp::schema::Type::Builder Type::List::Builder::initElementType() { 6605 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( 6606 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6607 } 6608 inline void Type::List::Builder::adoptElementType( 6609 ::capnp::Orphan< ::capnp::schema::Type>&& value) { 6610 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( 6611 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 6612 } 6613 inline ::capnp::Orphan< ::capnp::schema::Type> Type::List::Builder::disownElementType() { 6614 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( 6615 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6616 } 6617 6618 inline ::uint64_t Type::Enum::Reader::getTypeId() const { 6619 return _reader.getDataField< ::uint64_t>( 6620 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6621 } 6622 6623 inline ::uint64_t Type::Enum::Builder::getTypeId() { 6624 return _builder.getDataField< ::uint64_t>( 6625 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6626 } 6627 inline void Type::Enum::Builder::setTypeId( ::uint64_t value) { 6628 _builder.setDataField< ::uint64_t>( 6629 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 6630 } 6631 6632 inline bool Type::Enum::Reader::hasBrand() const { 6633 return !_reader.getPointerField( 6634 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6635 } 6636 inline bool Type::Enum::Builder::hasBrand() { 6637 return !_builder.getPointerField( 6638 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6639 } 6640 inline ::capnp::schema::Brand::Reader Type::Enum::Reader::getBrand() const { 6641 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 6642 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6643 } 6644 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::getBrand() { 6645 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 6646 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6647 } 6648 #if !CAPNP_LITE 6649 inline ::capnp::schema::Brand::Pipeline Type::Enum::Pipeline::getBrand() { 6650 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); 6651 } 6652 #endif // !CAPNP_LITE 6653 inline void Type::Enum::Builder::setBrand( ::capnp::schema::Brand::Reader value) { 6654 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 6655 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 6656 } 6657 inline ::capnp::schema::Brand::Builder Type::Enum::Builder::initBrand() { 6658 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 6659 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6660 } 6661 inline void Type::Enum::Builder::adoptBrand( 6662 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 6663 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 6664 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 6665 } 6666 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Enum::Builder::disownBrand() { 6667 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 6668 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6669 } 6670 6671 inline ::uint64_t Type::Struct::Reader::getTypeId() const { 6672 return _reader.getDataField< ::uint64_t>( 6673 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6674 } 6675 6676 inline ::uint64_t Type::Struct::Builder::getTypeId() { 6677 return _builder.getDataField< ::uint64_t>( 6678 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6679 } 6680 inline void Type::Struct::Builder::setTypeId( ::uint64_t value) { 6681 _builder.setDataField< ::uint64_t>( 6682 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 6683 } 6684 6685 inline bool Type::Struct::Reader::hasBrand() const { 6686 return !_reader.getPointerField( 6687 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6688 } 6689 inline bool Type::Struct::Builder::hasBrand() { 6690 return !_builder.getPointerField( 6691 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6692 } 6693 inline ::capnp::schema::Brand::Reader Type::Struct::Reader::getBrand() const { 6694 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 6695 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6696 } 6697 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::getBrand() { 6698 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 6699 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6700 } 6701 #if !CAPNP_LITE 6702 inline ::capnp::schema::Brand::Pipeline Type::Struct::Pipeline::getBrand() { 6703 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); 6704 } 6705 #endif // !CAPNP_LITE 6706 inline void Type::Struct::Builder::setBrand( ::capnp::schema::Brand::Reader value) { 6707 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 6708 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 6709 } 6710 inline ::capnp::schema::Brand::Builder Type::Struct::Builder::initBrand() { 6711 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 6712 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6713 } 6714 inline void Type::Struct::Builder::adoptBrand( 6715 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 6716 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 6717 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 6718 } 6719 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Struct::Builder::disownBrand() { 6720 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 6721 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6722 } 6723 6724 inline ::uint64_t Type::Interface::Reader::getTypeId() const { 6725 return _reader.getDataField< ::uint64_t>( 6726 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6727 } 6728 6729 inline ::uint64_t Type::Interface::Builder::getTypeId() { 6730 return _builder.getDataField< ::uint64_t>( 6731 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 6732 } 6733 inline void Type::Interface::Builder::setTypeId( ::uint64_t value) { 6734 _builder.setDataField< ::uint64_t>( 6735 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 6736 } 6737 6738 inline bool Type::Interface::Reader::hasBrand() const { 6739 return !_reader.getPointerField( 6740 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6741 } 6742 inline bool Type::Interface::Builder::hasBrand() { 6743 return !_builder.getPointerField( 6744 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 6745 } 6746 inline ::capnp::schema::Brand::Reader Type::Interface::Reader::getBrand() const { 6747 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 6748 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6749 } 6750 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::getBrand() { 6751 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 6752 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6753 } 6754 #if !CAPNP_LITE 6755 inline ::capnp::schema::Brand::Pipeline Type::Interface::Pipeline::getBrand() { 6756 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(0)); 6757 } 6758 #endif // !CAPNP_LITE 6759 inline void Type::Interface::Builder::setBrand( ::capnp::schema::Brand::Reader value) { 6760 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 6761 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 6762 } 6763 inline ::capnp::schema::Brand::Builder Type::Interface::Builder::initBrand() { 6764 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 6765 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6766 } 6767 inline void Type::Interface::Builder::adoptBrand( 6768 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 6769 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 6770 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 6771 } 6772 inline ::capnp::Orphan< ::capnp::schema::Brand> Type::Interface::Builder::disownBrand() { 6773 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 6774 ::capnp::bounded<0>() * ::capnp::POINTERS)); 6775 } 6776 6777 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Reader::which() const { 6778 return _reader.getDataField<Which>( 6779 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 6780 } 6781 inline ::capnp::schema::Type::AnyPointer::Which Type::AnyPointer::Builder::which() { 6782 return _builder.getDataField<Which>( 6783 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 6784 } 6785 6786 inline bool Type::AnyPointer::Reader::isUnconstrained() const { 6787 return which() == Type::AnyPointer::UNCONSTRAINED; 6788 } 6789 inline bool Type::AnyPointer::Builder::isUnconstrained() { 6790 return which() == Type::AnyPointer::UNCONSTRAINED; 6791 } 6792 inline typename Type::AnyPointer::Unconstrained::Reader Type::AnyPointer::Reader::getUnconstrained() const { 6793 KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), 6794 "Must check which() before get()ing a union member."); 6795 return typename Type::AnyPointer::Unconstrained::Reader(_reader); 6796 } 6797 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::getUnconstrained() { 6798 KJ_IREQUIRE((which() == Type::AnyPointer::UNCONSTRAINED), 6799 "Must check which() before get()ing a union member."); 6800 return typename Type::AnyPointer::Unconstrained::Builder(_builder); 6801 } 6802 inline typename Type::AnyPointer::Unconstrained::Builder Type::AnyPointer::Builder::initUnconstrained() { 6803 _builder.setDataField<Type::AnyPointer::Which>( 6804 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::UNCONSTRAINED); 6805 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); 6806 return typename Type::AnyPointer::Unconstrained::Builder(_builder); 6807 } 6808 inline bool Type::AnyPointer::Reader::isParameter() const { 6809 return which() == Type::AnyPointer::PARAMETER; 6810 } 6811 inline bool Type::AnyPointer::Builder::isParameter() { 6812 return which() == Type::AnyPointer::PARAMETER; 6813 } 6814 inline typename Type::AnyPointer::Parameter::Reader Type::AnyPointer::Reader::getParameter() const { 6815 KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), 6816 "Must check which() before get()ing a union member."); 6817 return typename Type::AnyPointer::Parameter::Reader(_reader); 6818 } 6819 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::getParameter() { 6820 KJ_IREQUIRE((which() == Type::AnyPointer::PARAMETER), 6821 "Must check which() before get()ing a union member."); 6822 return typename Type::AnyPointer::Parameter::Builder(_builder); 6823 } 6824 inline typename Type::AnyPointer::Parameter::Builder Type::AnyPointer::Builder::initParameter() { 6825 _builder.setDataField<Type::AnyPointer::Which>( 6826 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::PARAMETER); 6827 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); 6828 _builder.setDataField< ::uint64_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0); 6829 return typename Type::AnyPointer::Parameter::Builder(_builder); 6830 } 6831 inline bool Type::AnyPointer::Reader::isImplicitMethodParameter() const { 6832 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; 6833 } 6834 inline bool Type::AnyPointer::Builder::isImplicitMethodParameter() { 6835 return which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER; 6836 } 6837 inline typename Type::AnyPointer::ImplicitMethodParameter::Reader Type::AnyPointer::Reader::getImplicitMethodParameter() const { 6838 KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), 6839 "Must check which() before get()ing a union member."); 6840 return typename Type::AnyPointer::ImplicitMethodParameter::Reader(_reader); 6841 } 6842 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::getImplicitMethodParameter() { 6843 KJ_IREQUIRE((which() == Type::AnyPointer::IMPLICIT_METHOD_PARAMETER), 6844 "Must check which() before get()ing a union member."); 6845 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); 6846 } 6847 inline typename Type::AnyPointer::ImplicitMethodParameter::Builder Type::AnyPointer::Builder::initImplicitMethodParameter() { 6848 _builder.setDataField<Type::AnyPointer::Which>( 6849 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Type::AnyPointer::IMPLICIT_METHOD_PARAMETER); 6850 _builder.setDataField< ::uint16_t>(::capnp::bounded<5>() * ::capnp::ELEMENTS, 0); 6851 return typename Type::AnyPointer::ImplicitMethodParameter::Builder(_builder); 6852 } 6853 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Reader::which() const { 6854 return _reader.getDataField<Which>( 6855 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 6856 } 6857 inline ::capnp::schema::Type::AnyPointer::Unconstrained::Which Type::AnyPointer::Unconstrained::Builder::which() { 6858 return _builder.getDataField<Which>( 6859 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 6860 } 6861 6862 inline bool Type::AnyPointer::Unconstrained::Reader::isAnyKind() const { 6863 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; 6864 } 6865 inline bool Type::AnyPointer::Unconstrained::Builder::isAnyKind() { 6866 return which() == Type::AnyPointer::Unconstrained::ANY_KIND; 6867 } 6868 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getAnyKind() const { 6869 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), 6870 "Must check which() before get()ing a union member."); 6871 return _reader.getDataField< ::capnp::Void>( 6872 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6873 } 6874 6875 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getAnyKind() { 6876 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::ANY_KIND), 6877 "Must check which() before get()ing a union member."); 6878 return _builder.getDataField< ::capnp::Void>( 6879 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6880 } 6881 inline void Type::AnyPointer::Unconstrained::Builder::setAnyKind( ::capnp::Void value) { 6882 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( 6883 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::ANY_KIND); 6884 _builder.setDataField< ::capnp::Void>( 6885 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6886 } 6887 6888 inline bool Type::AnyPointer::Unconstrained::Reader::isStruct() const { 6889 return which() == Type::AnyPointer::Unconstrained::STRUCT; 6890 } 6891 inline bool Type::AnyPointer::Unconstrained::Builder::isStruct() { 6892 return which() == Type::AnyPointer::Unconstrained::STRUCT; 6893 } 6894 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getStruct() const { 6895 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), 6896 "Must check which() before get()ing a union member."); 6897 return _reader.getDataField< ::capnp::Void>( 6898 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6899 } 6900 6901 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getStruct() { 6902 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::STRUCT), 6903 "Must check which() before get()ing a union member."); 6904 return _builder.getDataField< ::capnp::Void>( 6905 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6906 } 6907 inline void Type::AnyPointer::Unconstrained::Builder::setStruct( ::capnp::Void value) { 6908 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( 6909 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::STRUCT); 6910 _builder.setDataField< ::capnp::Void>( 6911 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6912 } 6913 6914 inline bool Type::AnyPointer::Unconstrained::Reader::isList() const { 6915 return which() == Type::AnyPointer::Unconstrained::LIST; 6916 } 6917 inline bool Type::AnyPointer::Unconstrained::Builder::isList() { 6918 return which() == Type::AnyPointer::Unconstrained::LIST; 6919 } 6920 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getList() const { 6921 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), 6922 "Must check which() before get()ing a union member."); 6923 return _reader.getDataField< ::capnp::Void>( 6924 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6925 } 6926 6927 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getList() { 6928 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::LIST), 6929 "Must check which() before get()ing a union member."); 6930 return _builder.getDataField< ::capnp::Void>( 6931 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6932 } 6933 inline void Type::AnyPointer::Unconstrained::Builder::setList( ::capnp::Void value) { 6934 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( 6935 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::LIST); 6936 _builder.setDataField< ::capnp::Void>( 6937 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6938 } 6939 6940 inline bool Type::AnyPointer::Unconstrained::Reader::isCapability() const { 6941 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; 6942 } 6943 inline bool Type::AnyPointer::Unconstrained::Builder::isCapability() { 6944 return which() == Type::AnyPointer::Unconstrained::CAPABILITY; 6945 } 6946 inline ::capnp::Void Type::AnyPointer::Unconstrained::Reader::getCapability() const { 6947 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), 6948 "Must check which() before get()ing a union member."); 6949 return _reader.getDataField< ::capnp::Void>( 6950 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6951 } 6952 6953 inline ::capnp::Void Type::AnyPointer::Unconstrained::Builder::getCapability() { 6954 KJ_IREQUIRE((which() == Type::AnyPointer::Unconstrained::CAPABILITY), 6955 "Must check which() before get()ing a union member."); 6956 return _builder.getDataField< ::capnp::Void>( 6957 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 6958 } 6959 inline void Type::AnyPointer::Unconstrained::Builder::setCapability( ::capnp::Void value) { 6960 _builder.setDataField<Type::AnyPointer::Unconstrained::Which>( 6961 ::capnp::bounded<5>() * ::capnp::ELEMENTS, Type::AnyPointer::Unconstrained::CAPABILITY); 6962 _builder.setDataField< ::capnp::Void>( 6963 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 6964 } 6965 6966 inline ::uint64_t Type::AnyPointer::Parameter::Reader::getScopeId() const { 6967 return _reader.getDataField< ::uint64_t>( 6968 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 6969 } 6970 6971 inline ::uint64_t Type::AnyPointer::Parameter::Builder::getScopeId() { 6972 return _builder.getDataField< ::uint64_t>( 6973 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 6974 } 6975 inline void Type::AnyPointer::Parameter::Builder::setScopeId( ::uint64_t value) { 6976 _builder.setDataField< ::uint64_t>( 6977 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 6978 } 6979 6980 inline ::uint16_t Type::AnyPointer::Parameter::Reader::getParameterIndex() const { 6981 return _reader.getDataField< ::uint16_t>( 6982 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 6983 } 6984 6985 inline ::uint16_t Type::AnyPointer::Parameter::Builder::getParameterIndex() { 6986 return _builder.getDataField< ::uint16_t>( 6987 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 6988 } 6989 inline void Type::AnyPointer::Parameter::Builder::setParameterIndex( ::uint16_t value) { 6990 _builder.setDataField< ::uint16_t>( 6991 ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); 6992 } 6993 6994 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Reader::getParameterIndex() const { 6995 return _reader.getDataField< ::uint16_t>( 6996 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 6997 } 6998 6999 inline ::uint16_t Type::AnyPointer::ImplicitMethodParameter::Builder::getParameterIndex() { 7000 return _builder.getDataField< ::uint16_t>( 7001 ::capnp::bounded<5>() * ::capnp::ELEMENTS); 7002 } 7003 inline void Type::AnyPointer::ImplicitMethodParameter::Builder::setParameterIndex( ::uint16_t value) { 7004 _builder.setDataField< ::uint16_t>( 7005 ::capnp::bounded<5>() * ::capnp::ELEMENTS, value); 7006 } 7007 7008 inline bool Brand::Reader::hasScopes() const { 7009 return !_reader.getPointerField( 7010 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7011 } 7012 inline bool Brand::Builder::hasScopes() { 7013 return !_builder.getPointerField( 7014 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7015 } 7016 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader Brand::Reader::getScopes() const { 7017 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 7018 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7019 } 7020 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder Brand::Builder::getScopes() { 7021 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 7022 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7023 } 7024 inline void Brand::Builder::setScopes( ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Reader value) { 7025 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 7026 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7027 } 7028 inline ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>::Builder Brand::Builder::initScopes(unsigned int size) { 7029 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 7030 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 7031 } 7032 inline void Brand::Builder::adoptScopes( 7033 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>&& value) { 7034 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 7035 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7036 } 7037 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>> Brand::Builder::disownScopes() { 7038 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Scope, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 7039 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7040 } 7041 7042 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Reader::which() const { 7043 return _reader.getDataField<Which>( 7044 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 7045 } 7046 inline ::capnp::schema::Brand::Scope::Which Brand::Scope::Builder::which() { 7047 return _builder.getDataField<Which>( 7048 ::capnp::bounded<4>() * ::capnp::ELEMENTS); 7049 } 7050 7051 inline ::uint64_t Brand::Scope::Reader::getScopeId() const { 7052 return _reader.getDataField< ::uint64_t>( 7053 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7054 } 7055 7056 inline ::uint64_t Brand::Scope::Builder::getScopeId() { 7057 return _builder.getDataField< ::uint64_t>( 7058 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7059 } 7060 inline void Brand::Scope::Builder::setScopeId( ::uint64_t value) { 7061 _builder.setDataField< ::uint64_t>( 7062 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7063 } 7064 7065 inline bool Brand::Scope::Reader::isBind() const { 7066 return which() == Brand::Scope::BIND; 7067 } 7068 inline bool Brand::Scope::Builder::isBind() { 7069 return which() == Brand::Scope::BIND; 7070 } 7071 inline bool Brand::Scope::Reader::hasBind() const { 7072 if (which() != Brand::Scope::BIND) return false; 7073 return !_reader.getPointerField( 7074 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7075 } 7076 inline bool Brand::Scope::Builder::hasBind() { 7077 if (which() != Brand::Scope::BIND) return false; 7078 return !_builder.getPointerField( 7079 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7080 } 7081 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader Brand::Scope::Reader::getBind() const { 7082 KJ_IREQUIRE((which() == Brand::Scope::BIND), 7083 "Must check which() before get()ing a union member."); 7084 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 7085 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7086 } 7087 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder Brand::Scope::Builder::getBind() { 7088 KJ_IREQUIRE((which() == Brand::Scope::BIND), 7089 "Must check which() before get()ing a union member."); 7090 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 7091 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7092 } 7093 inline void Brand::Scope::Builder::setBind( ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Reader value) { 7094 _builder.setDataField<Brand::Scope::Which>( 7095 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); 7096 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 7097 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7098 } 7099 inline ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>::Builder Brand::Scope::Builder::initBind(unsigned int size) { 7100 _builder.setDataField<Brand::Scope::Which>( 7101 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); 7102 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 7103 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 7104 } 7105 inline void Brand::Scope::Builder::adoptBind( 7106 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>&& value) { 7107 _builder.setDataField<Brand::Scope::Which>( 7108 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::BIND); 7109 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 7110 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7111 } 7112 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>> Brand::Scope::Builder::disownBind() { 7113 KJ_IREQUIRE((which() == Brand::Scope::BIND), 7114 "Must check which() before get()ing a union member."); 7115 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Brand::Binding, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 7116 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7117 } 7118 7119 inline bool Brand::Scope::Reader::isInherit() const { 7120 return which() == Brand::Scope::INHERIT; 7121 } 7122 inline bool Brand::Scope::Builder::isInherit() { 7123 return which() == Brand::Scope::INHERIT; 7124 } 7125 inline ::capnp::Void Brand::Scope::Reader::getInherit() const { 7126 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), 7127 "Must check which() before get()ing a union member."); 7128 return _reader.getDataField< ::capnp::Void>( 7129 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7130 } 7131 7132 inline ::capnp::Void Brand::Scope::Builder::getInherit() { 7133 KJ_IREQUIRE((which() == Brand::Scope::INHERIT), 7134 "Must check which() before get()ing a union member."); 7135 return _builder.getDataField< ::capnp::Void>( 7136 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7137 } 7138 inline void Brand::Scope::Builder::setInherit( ::capnp::Void value) { 7139 _builder.setDataField<Brand::Scope::Which>( 7140 ::capnp::bounded<4>() * ::capnp::ELEMENTS, Brand::Scope::INHERIT); 7141 _builder.setDataField< ::capnp::Void>( 7142 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7143 } 7144 7145 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Reader::which() const { 7146 return _reader.getDataField<Which>( 7147 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7148 } 7149 inline ::capnp::schema::Brand::Binding::Which Brand::Binding::Builder::which() { 7150 return _builder.getDataField<Which>( 7151 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7152 } 7153 7154 inline bool Brand::Binding::Reader::isUnbound() const { 7155 return which() == Brand::Binding::UNBOUND; 7156 } 7157 inline bool Brand::Binding::Builder::isUnbound() { 7158 return which() == Brand::Binding::UNBOUND; 7159 } 7160 inline ::capnp::Void Brand::Binding::Reader::getUnbound() const { 7161 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), 7162 "Must check which() before get()ing a union member."); 7163 return _reader.getDataField< ::capnp::Void>( 7164 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7165 } 7166 7167 inline ::capnp::Void Brand::Binding::Builder::getUnbound() { 7168 KJ_IREQUIRE((which() == Brand::Binding::UNBOUND), 7169 "Must check which() before get()ing a union member."); 7170 return _builder.getDataField< ::capnp::Void>( 7171 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7172 } 7173 inline void Brand::Binding::Builder::setUnbound( ::capnp::Void value) { 7174 _builder.setDataField<Brand::Binding::Which>( 7175 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::UNBOUND); 7176 _builder.setDataField< ::capnp::Void>( 7177 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7178 } 7179 7180 inline bool Brand::Binding::Reader::isType() const { 7181 return which() == Brand::Binding::TYPE; 7182 } 7183 inline bool Brand::Binding::Builder::isType() { 7184 return which() == Brand::Binding::TYPE; 7185 } 7186 inline bool Brand::Binding::Reader::hasType() const { 7187 if (which() != Brand::Binding::TYPE) return false; 7188 return !_reader.getPointerField( 7189 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7190 } 7191 inline bool Brand::Binding::Builder::hasType() { 7192 if (which() != Brand::Binding::TYPE) return false; 7193 return !_builder.getPointerField( 7194 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7195 } 7196 inline ::capnp::schema::Type::Reader Brand::Binding::Reader::getType() const { 7197 KJ_IREQUIRE((which() == Brand::Binding::TYPE), 7198 "Must check which() before get()ing a union member."); 7199 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_reader.getPointerField( 7200 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7201 } 7202 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::getType() { 7203 KJ_IREQUIRE((which() == Brand::Binding::TYPE), 7204 "Must check which() before get()ing a union member."); 7205 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::get(_builder.getPointerField( 7206 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7207 } 7208 inline void Brand::Binding::Builder::setType( ::capnp::schema::Type::Reader value) { 7209 _builder.setDataField<Brand::Binding::Which>( 7210 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); 7211 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::set(_builder.getPointerField( 7212 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7213 } 7214 inline ::capnp::schema::Type::Builder Brand::Binding::Builder::initType() { 7215 _builder.setDataField<Brand::Binding::Which>( 7216 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); 7217 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::init(_builder.getPointerField( 7218 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7219 } 7220 inline void Brand::Binding::Builder::adoptType( 7221 ::capnp::Orphan< ::capnp::schema::Type>&& value) { 7222 _builder.setDataField<Brand::Binding::Which>( 7223 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Brand::Binding::TYPE); 7224 ::capnp::_::PointerHelpers< ::capnp::schema::Type>::adopt(_builder.getPointerField( 7225 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7226 } 7227 inline ::capnp::Orphan< ::capnp::schema::Type> Brand::Binding::Builder::disownType() { 7228 KJ_IREQUIRE((which() == Brand::Binding::TYPE), 7229 "Must check which() before get()ing a union member."); 7230 return ::capnp::_::PointerHelpers< ::capnp::schema::Type>::disown(_builder.getPointerField( 7231 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7232 } 7233 7234 inline ::capnp::schema::Value::Which Value::Reader::which() const { 7235 return _reader.getDataField<Which>( 7236 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7237 } 7238 inline ::capnp::schema::Value::Which Value::Builder::which() { 7239 return _builder.getDataField<Which>( 7240 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7241 } 7242 7243 inline bool Value::Reader::isVoid() const { 7244 return which() == Value::VOID; 7245 } 7246 inline bool Value::Builder::isVoid() { 7247 return which() == Value::VOID; 7248 } 7249 inline ::capnp::Void Value::Reader::getVoid() const { 7250 KJ_IREQUIRE((which() == Value::VOID), 7251 "Must check which() before get()ing a union member."); 7252 return _reader.getDataField< ::capnp::Void>( 7253 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7254 } 7255 7256 inline ::capnp::Void Value::Builder::getVoid() { 7257 KJ_IREQUIRE((which() == Value::VOID), 7258 "Must check which() before get()ing a union member."); 7259 return _builder.getDataField< ::capnp::Void>( 7260 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7261 } 7262 inline void Value::Builder::setVoid( ::capnp::Void value) { 7263 _builder.setDataField<Value::Which>( 7264 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::VOID); 7265 _builder.setDataField< ::capnp::Void>( 7266 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7267 } 7268 7269 inline bool Value::Reader::isBool() const { 7270 return which() == Value::BOOL; 7271 } 7272 inline bool Value::Builder::isBool() { 7273 return which() == Value::BOOL; 7274 } 7275 inline bool Value::Reader::getBool() const { 7276 KJ_IREQUIRE((which() == Value::BOOL), 7277 "Must check which() before get()ing a union member."); 7278 return _reader.getDataField<bool>( 7279 ::capnp::bounded<16>() * ::capnp::ELEMENTS); 7280 } 7281 7282 inline bool Value::Builder::getBool() { 7283 KJ_IREQUIRE((which() == Value::BOOL), 7284 "Must check which() before get()ing a union member."); 7285 return _builder.getDataField<bool>( 7286 ::capnp::bounded<16>() * ::capnp::ELEMENTS); 7287 } 7288 inline void Value::Builder::setBool(bool value) { 7289 _builder.setDataField<Value::Which>( 7290 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::BOOL); 7291 _builder.setDataField<bool>( 7292 ::capnp::bounded<16>() * ::capnp::ELEMENTS, value); 7293 } 7294 7295 inline bool Value::Reader::isInt8() const { 7296 return which() == Value::INT8; 7297 } 7298 inline bool Value::Builder::isInt8() { 7299 return which() == Value::INT8; 7300 } 7301 inline ::int8_t Value::Reader::getInt8() const { 7302 KJ_IREQUIRE((which() == Value::INT8), 7303 "Must check which() before get()ing a union member."); 7304 return _reader.getDataField< ::int8_t>( 7305 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7306 } 7307 7308 inline ::int8_t Value::Builder::getInt8() { 7309 KJ_IREQUIRE((which() == Value::INT8), 7310 "Must check which() before get()ing a union member."); 7311 return _builder.getDataField< ::int8_t>( 7312 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7313 } 7314 inline void Value::Builder::setInt8( ::int8_t value) { 7315 _builder.setDataField<Value::Which>( 7316 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT8); 7317 _builder.setDataField< ::int8_t>( 7318 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 7319 } 7320 7321 inline bool Value::Reader::isInt16() const { 7322 return which() == Value::INT16; 7323 } 7324 inline bool Value::Builder::isInt16() { 7325 return which() == Value::INT16; 7326 } 7327 inline ::int16_t Value::Reader::getInt16() const { 7328 KJ_IREQUIRE((which() == Value::INT16), 7329 "Must check which() before get()ing a union member."); 7330 return _reader.getDataField< ::int16_t>( 7331 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7332 } 7333 7334 inline ::int16_t Value::Builder::getInt16() { 7335 KJ_IREQUIRE((which() == Value::INT16), 7336 "Must check which() before get()ing a union member."); 7337 return _builder.getDataField< ::int16_t>( 7338 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7339 } 7340 inline void Value::Builder::setInt16( ::int16_t value) { 7341 _builder.setDataField<Value::Which>( 7342 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT16); 7343 _builder.setDataField< ::int16_t>( 7344 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7345 } 7346 7347 inline bool Value::Reader::isInt32() const { 7348 return which() == Value::INT32; 7349 } 7350 inline bool Value::Builder::isInt32() { 7351 return which() == Value::INT32; 7352 } 7353 inline ::int32_t Value::Reader::getInt32() const { 7354 KJ_IREQUIRE((which() == Value::INT32), 7355 "Must check which() before get()ing a union member."); 7356 return _reader.getDataField< ::int32_t>( 7357 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7358 } 7359 7360 inline ::int32_t Value::Builder::getInt32() { 7361 KJ_IREQUIRE((which() == Value::INT32), 7362 "Must check which() before get()ing a union member."); 7363 return _builder.getDataField< ::int32_t>( 7364 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7365 } 7366 inline void Value::Builder::setInt32( ::int32_t value) { 7367 _builder.setDataField<Value::Which>( 7368 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT32); 7369 _builder.setDataField< ::int32_t>( 7370 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7371 } 7372 7373 inline bool Value::Reader::isInt64() const { 7374 return which() == Value::INT64; 7375 } 7376 inline bool Value::Builder::isInt64() { 7377 return which() == Value::INT64; 7378 } 7379 inline ::int64_t Value::Reader::getInt64() const { 7380 KJ_IREQUIRE((which() == Value::INT64), 7381 "Must check which() before get()ing a union member."); 7382 return _reader.getDataField< ::int64_t>( 7383 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7384 } 7385 7386 inline ::int64_t Value::Builder::getInt64() { 7387 KJ_IREQUIRE((which() == Value::INT64), 7388 "Must check which() before get()ing a union member."); 7389 return _builder.getDataField< ::int64_t>( 7390 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7391 } 7392 inline void Value::Builder::setInt64( ::int64_t value) { 7393 _builder.setDataField<Value::Which>( 7394 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INT64); 7395 _builder.setDataField< ::int64_t>( 7396 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7397 } 7398 7399 inline bool Value::Reader::isUint8() const { 7400 return which() == Value::UINT8; 7401 } 7402 inline bool Value::Builder::isUint8() { 7403 return which() == Value::UINT8; 7404 } 7405 inline ::uint8_t Value::Reader::getUint8() const { 7406 KJ_IREQUIRE((which() == Value::UINT8), 7407 "Must check which() before get()ing a union member."); 7408 return _reader.getDataField< ::uint8_t>( 7409 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7410 } 7411 7412 inline ::uint8_t Value::Builder::getUint8() { 7413 KJ_IREQUIRE((which() == Value::UINT8), 7414 "Must check which() before get()ing a union member."); 7415 return _builder.getDataField< ::uint8_t>( 7416 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7417 } 7418 inline void Value::Builder::setUint8( ::uint8_t value) { 7419 _builder.setDataField<Value::Which>( 7420 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT8); 7421 _builder.setDataField< ::uint8_t>( 7422 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 7423 } 7424 7425 inline bool Value::Reader::isUint16() const { 7426 return which() == Value::UINT16; 7427 } 7428 inline bool Value::Builder::isUint16() { 7429 return which() == Value::UINT16; 7430 } 7431 inline ::uint16_t Value::Reader::getUint16() const { 7432 KJ_IREQUIRE((which() == Value::UINT16), 7433 "Must check which() before get()ing a union member."); 7434 return _reader.getDataField< ::uint16_t>( 7435 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7436 } 7437 7438 inline ::uint16_t Value::Builder::getUint16() { 7439 KJ_IREQUIRE((which() == Value::UINT16), 7440 "Must check which() before get()ing a union member."); 7441 return _builder.getDataField< ::uint16_t>( 7442 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7443 } 7444 inline void Value::Builder::setUint16( ::uint16_t value) { 7445 _builder.setDataField<Value::Which>( 7446 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT16); 7447 _builder.setDataField< ::uint16_t>( 7448 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7449 } 7450 7451 inline bool Value::Reader::isUint32() const { 7452 return which() == Value::UINT32; 7453 } 7454 inline bool Value::Builder::isUint32() { 7455 return which() == Value::UINT32; 7456 } 7457 inline ::uint32_t Value::Reader::getUint32() const { 7458 KJ_IREQUIRE((which() == Value::UINT32), 7459 "Must check which() before get()ing a union member."); 7460 return _reader.getDataField< ::uint32_t>( 7461 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7462 } 7463 7464 inline ::uint32_t Value::Builder::getUint32() { 7465 KJ_IREQUIRE((which() == Value::UINT32), 7466 "Must check which() before get()ing a union member."); 7467 return _builder.getDataField< ::uint32_t>( 7468 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7469 } 7470 inline void Value::Builder::setUint32( ::uint32_t value) { 7471 _builder.setDataField<Value::Which>( 7472 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT32); 7473 _builder.setDataField< ::uint32_t>( 7474 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7475 } 7476 7477 inline bool Value::Reader::isUint64() const { 7478 return which() == Value::UINT64; 7479 } 7480 inline bool Value::Builder::isUint64() { 7481 return which() == Value::UINT64; 7482 } 7483 inline ::uint64_t Value::Reader::getUint64() const { 7484 KJ_IREQUIRE((which() == Value::UINT64), 7485 "Must check which() before get()ing a union member."); 7486 return _reader.getDataField< ::uint64_t>( 7487 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7488 } 7489 7490 inline ::uint64_t Value::Builder::getUint64() { 7491 KJ_IREQUIRE((which() == Value::UINT64), 7492 "Must check which() before get()ing a union member."); 7493 return _builder.getDataField< ::uint64_t>( 7494 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7495 } 7496 inline void Value::Builder::setUint64( ::uint64_t value) { 7497 _builder.setDataField<Value::Which>( 7498 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::UINT64); 7499 _builder.setDataField< ::uint64_t>( 7500 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7501 } 7502 7503 inline bool Value::Reader::isFloat32() const { 7504 return which() == Value::FLOAT32; 7505 } 7506 inline bool Value::Builder::isFloat32() { 7507 return which() == Value::FLOAT32; 7508 } 7509 inline float Value::Reader::getFloat32() const { 7510 KJ_IREQUIRE((which() == Value::FLOAT32), 7511 "Must check which() before get()ing a union member."); 7512 return _reader.getDataField<float>( 7513 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7514 } 7515 7516 inline float Value::Builder::getFloat32() { 7517 KJ_IREQUIRE((which() == Value::FLOAT32), 7518 "Must check which() before get()ing a union member."); 7519 return _builder.getDataField<float>( 7520 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7521 } 7522 inline void Value::Builder::setFloat32(float value) { 7523 _builder.setDataField<Value::Which>( 7524 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT32); 7525 _builder.setDataField<float>( 7526 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7527 } 7528 7529 inline bool Value::Reader::isFloat64() const { 7530 return which() == Value::FLOAT64; 7531 } 7532 inline bool Value::Builder::isFloat64() { 7533 return which() == Value::FLOAT64; 7534 } 7535 inline double Value::Reader::getFloat64() const { 7536 KJ_IREQUIRE((which() == Value::FLOAT64), 7537 "Must check which() before get()ing a union member."); 7538 return _reader.getDataField<double>( 7539 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7540 } 7541 7542 inline double Value::Builder::getFloat64() { 7543 KJ_IREQUIRE((which() == Value::FLOAT64), 7544 "Must check which() before get()ing a union member."); 7545 return _builder.getDataField<double>( 7546 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7547 } 7548 inline void Value::Builder::setFloat64(double value) { 7549 _builder.setDataField<Value::Which>( 7550 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::FLOAT64); 7551 _builder.setDataField<double>( 7552 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7553 } 7554 7555 inline bool Value::Reader::isText() const { 7556 return which() == Value::TEXT; 7557 } 7558 inline bool Value::Builder::isText() { 7559 return which() == Value::TEXT; 7560 } 7561 inline bool Value::Reader::hasText() const { 7562 if (which() != Value::TEXT) return false; 7563 return !_reader.getPointerField( 7564 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7565 } 7566 inline bool Value::Builder::hasText() { 7567 if (which() != Value::TEXT) return false; 7568 return !_builder.getPointerField( 7569 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7570 } 7571 inline ::capnp::Text::Reader Value::Reader::getText() const { 7572 KJ_IREQUIRE((which() == Value::TEXT), 7573 "Must check which() before get()ing a union member."); 7574 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 7575 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7576 } 7577 inline ::capnp::Text::Builder Value::Builder::getText() { 7578 KJ_IREQUIRE((which() == Value::TEXT), 7579 "Must check which() before get()ing a union member."); 7580 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 7581 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7582 } 7583 inline void Value::Builder::setText( ::capnp::Text::Reader value) { 7584 _builder.setDataField<Value::Which>( 7585 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); 7586 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 7587 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7588 } 7589 inline ::capnp::Text::Builder Value::Builder::initText(unsigned int size) { 7590 _builder.setDataField<Value::Which>( 7591 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); 7592 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 7593 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 7594 } 7595 inline void Value::Builder::adoptText( 7596 ::capnp::Orphan< ::capnp::Text>&& value) { 7597 _builder.setDataField<Value::Which>( 7598 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::TEXT); 7599 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 7600 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7601 } 7602 inline ::capnp::Orphan< ::capnp::Text> Value::Builder::disownText() { 7603 KJ_IREQUIRE((which() == Value::TEXT), 7604 "Must check which() before get()ing a union member."); 7605 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 7606 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7607 } 7608 7609 inline bool Value::Reader::isData() const { 7610 return which() == Value::DATA; 7611 } 7612 inline bool Value::Builder::isData() { 7613 return which() == Value::DATA; 7614 } 7615 inline bool Value::Reader::hasData() const { 7616 if (which() != Value::DATA) return false; 7617 return !_reader.getPointerField( 7618 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7619 } 7620 inline bool Value::Builder::hasData() { 7621 if (which() != Value::DATA) return false; 7622 return !_builder.getPointerField( 7623 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7624 } 7625 inline ::capnp::Data::Reader Value::Reader::getData() const { 7626 KJ_IREQUIRE((which() == Value::DATA), 7627 "Must check which() before get()ing a union member."); 7628 return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField( 7629 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7630 } 7631 inline ::capnp::Data::Builder Value::Builder::getData() { 7632 KJ_IREQUIRE((which() == Value::DATA), 7633 "Must check which() before get()ing a union member."); 7634 return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField( 7635 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7636 } 7637 inline void Value::Builder::setData( ::capnp::Data::Reader value) { 7638 _builder.setDataField<Value::Which>( 7639 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); 7640 ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField( 7641 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7642 } 7643 inline ::capnp::Data::Builder Value::Builder::initData(unsigned int size) { 7644 _builder.setDataField<Value::Which>( 7645 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); 7646 return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField( 7647 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 7648 } 7649 inline void Value::Builder::adoptData( 7650 ::capnp::Orphan< ::capnp::Data>&& value) { 7651 _builder.setDataField<Value::Which>( 7652 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::DATA); 7653 ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField( 7654 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7655 } 7656 inline ::capnp::Orphan< ::capnp::Data> Value::Builder::disownData() { 7657 KJ_IREQUIRE((which() == Value::DATA), 7658 "Must check which() before get()ing a union member."); 7659 return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField( 7660 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7661 } 7662 7663 inline bool Value::Reader::isList() const { 7664 return which() == Value::LIST; 7665 } 7666 inline bool Value::Builder::isList() { 7667 return which() == Value::LIST; 7668 } 7669 inline bool Value::Reader::hasList() const { 7670 if (which() != Value::LIST) return false; 7671 return !_reader.getPointerField( 7672 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7673 } 7674 inline bool Value::Builder::hasList() { 7675 if (which() != Value::LIST) return false; 7676 return !_builder.getPointerField( 7677 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7678 } 7679 inline ::capnp::AnyPointer::Reader Value::Reader::getList() const { 7680 KJ_IREQUIRE((which() == Value::LIST), 7681 "Must check which() before get()ing a union member."); 7682 return ::capnp::AnyPointer::Reader(_reader.getPointerField( 7683 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7684 } 7685 inline ::capnp::AnyPointer::Builder Value::Builder::getList() { 7686 KJ_IREQUIRE((which() == Value::LIST), 7687 "Must check which() before get()ing a union member."); 7688 return ::capnp::AnyPointer::Builder(_builder.getPointerField( 7689 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7690 } 7691 inline ::capnp::AnyPointer::Builder Value::Builder::initList() { 7692 _builder.setDataField<Value::Which>( 7693 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::LIST); 7694 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( 7695 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7696 result.clear(); 7697 return result; 7698 } 7699 7700 inline bool Value::Reader::isEnum() const { 7701 return which() == Value::ENUM; 7702 } 7703 inline bool Value::Builder::isEnum() { 7704 return which() == Value::ENUM; 7705 } 7706 inline ::uint16_t Value::Reader::getEnum() const { 7707 KJ_IREQUIRE((which() == Value::ENUM), 7708 "Must check which() before get()ing a union member."); 7709 return _reader.getDataField< ::uint16_t>( 7710 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7711 } 7712 7713 inline ::uint16_t Value::Builder::getEnum() { 7714 KJ_IREQUIRE((which() == Value::ENUM), 7715 "Must check which() before get()ing a union member."); 7716 return _builder.getDataField< ::uint16_t>( 7717 ::capnp::bounded<1>() * ::capnp::ELEMENTS); 7718 } 7719 inline void Value::Builder::setEnum( ::uint16_t value) { 7720 _builder.setDataField<Value::Which>( 7721 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ENUM); 7722 _builder.setDataField< ::uint16_t>( 7723 ::capnp::bounded<1>() * ::capnp::ELEMENTS, value); 7724 } 7725 7726 inline bool Value::Reader::isStruct() const { 7727 return which() == Value::STRUCT; 7728 } 7729 inline bool Value::Builder::isStruct() { 7730 return which() == Value::STRUCT; 7731 } 7732 inline bool Value::Reader::hasStruct() const { 7733 if (which() != Value::STRUCT) return false; 7734 return !_reader.getPointerField( 7735 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7736 } 7737 inline bool Value::Builder::hasStruct() { 7738 if (which() != Value::STRUCT) return false; 7739 return !_builder.getPointerField( 7740 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7741 } 7742 inline ::capnp::AnyPointer::Reader Value::Reader::getStruct() const { 7743 KJ_IREQUIRE((which() == Value::STRUCT), 7744 "Must check which() before get()ing a union member."); 7745 return ::capnp::AnyPointer::Reader(_reader.getPointerField( 7746 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7747 } 7748 inline ::capnp::AnyPointer::Builder Value::Builder::getStruct() { 7749 KJ_IREQUIRE((which() == Value::STRUCT), 7750 "Must check which() before get()ing a union member."); 7751 return ::capnp::AnyPointer::Builder(_builder.getPointerField( 7752 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7753 } 7754 inline ::capnp::AnyPointer::Builder Value::Builder::initStruct() { 7755 _builder.setDataField<Value::Which>( 7756 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::STRUCT); 7757 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( 7758 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7759 result.clear(); 7760 return result; 7761 } 7762 7763 inline bool Value::Reader::isInterface() const { 7764 return which() == Value::INTERFACE; 7765 } 7766 inline bool Value::Builder::isInterface() { 7767 return which() == Value::INTERFACE; 7768 } 7769 inline ::capnp::Void Value::Reader::getInterface() const { 7770 KJ_IREQUIRE((which() == Value::INTERFACE), 7771 "Must check which() before get()ing a union member."); 7772 return _reader.getDataField< ::capnp::Void>( 7773 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7774 } 7775 7776 inline ::capnp::Void Value::Builder::getInterface() { 7777 KJ_IREQUIRE((which() == Value::INTERFACE), 7778 "Must check which() before get()ing a union member."); 7779 return _builder.getDataField< ::capnp::Void>( 7780 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7781 } 7782 inline void Value::Builder::setInterface( ::capnp::Void value) { 7783 _builder.setDataField<Value::Which>( 7784 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::INTERFACE); 7785 _builder.setDataField< ::capnp::Void>( 7786 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7787 } 7788 7789 inline bool Value::Reader::isAnyPointer() const { 7790 return which() == Value::ANY_POINTER; 7791 } 7792 inline bool Value::Builder::isAnyPointer() { 7793 return which() == Value::ANY_POINTER; 7794 } 7795 inline bool Value::Reader::hasAnyPointer() const { 7796 if (which() != Value::ANY_POINTER) return false; 7797 return !_reader.getPointerField( 7798 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7799 } 7800 inline bool Value::Builder::hasAnyPointer() { 7801 if (which() != Value::ANY_POINTER) return false; 7802 return !_builder.getPointerField( 7803 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7804 } 7805 inline ::capnp::AnyPointer::Reader Value::Reader::getAnyPointer() const { 7806 KJ_IREQUIRE((which() == Value::ANY_POINTER), 7807 "Must check which() before get()ing a union member."); 7808 return ::capnp::AnyPointer::Reader(_reader.getPointerField( 7809 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7810 } 7811 inline ::capnp::AnyPointer::Builder Value::Builder::getAnyPointer() { 7812 KJ_IREQUIRE((which() == Value::ANY_POINTER), 7813 "Must check which() before get()ing a union member."); 7814 return ::capnp::AnyPointer::Builder(_builder.getPointerField( 7815 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7816 } 7817 inline ::capnp::AnyPointer::Builder Value::Builder::initAnyPointer() { 7818 _builder.setDataField<Value::Which>( 7819 ::capnp::bounded<0>() * ::capnp::ELEMENTS, Value::ANY_POINTER); 7820 auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField( 7821 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7822 result.clear(); 7823 return result; 7824 } 7825 7826 inline ::uint64_t Annotation::Reader::getId() const { 7827 return _reader.getDataField< ::uint64_t>( 7828 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7829 } 7830 7831 inline ::uint64_t Annotation::Builder::getId() { 7832 return _builder.getDataField< ::uint64_t>( 7833 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7834 } 7835 inline void Annotation::Builder::setId( ::uint64_t value) { 7836 _builder.setDataField< ::uint64_t>( 7837 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7838 } 7839 7840 inline bool Annotation::Reader::hasValue() const { 7841 return !_reader.getPointerField( 7842 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7843 } 7844 inline bool Annotation::Builder::hasValue() { 7845 return !_builder.getPointerField( 7846 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7847 } 7848 inline ::capnp::schema::Value::Reader Annotation::Reader::getValue() const { 7849 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_reader.getPointerField( 7850 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7851 } 7852 inline ::capnp::schema::Value::Builder Annotation::Builder::getValue() { 7853 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::get(_builder.getPointerField( 7854 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7855 } 7856 #if !CAPNP_LITE 7857 inline ::capnp::schema::Value::Pipeline Annotation::Pipeline::getValue() { 7858 return ::capnp::schema::Value::Pipeline(_typeless.getPointerField(0)); 7859 } 7860 #endif // !CAPNP_LITE 7861 inline void Annotation::Builder::setValue( ::capnp::schema::Value::Reader value) { 7862 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::set(_builder.getPointerField( 7863 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7864 } 7865 inline ::capnp::schema::Value::Builder Annotation::Builder::initValue() { 7866 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::init(_builder.getPointerField( 7867 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7868 } 7869 inline void Annotation::Builder::adoptValue( 7870 ::capnp::Orphan< ::capnp::schema::Value>&& value) { 7871 ::capnp::_::PointerHelpers< ::capnp::schema::Value>::adopt(_builder.getPointerField( 7872 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7873 } 7874 inline ::capnp::Orphan< ::capnp::schema::Value> Annotation::Builder::disownValue() { 7875 return ::capnp::_::PointerHelpers< ::capnp::schema::Value>::disown(_builder.getPointerField( 7876 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7877 } 7878 7879 inline bool Annotation::Reader::hasBrand() const { 7880 return !_reader.getPointerField( 7881 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 7882 } 7883 inline bool Annotation::Builder::hasBrand() { 7884 return !_builder.getPointerField( 7885 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 7886 } 7887 inline ::capnp::schema::Brand::Reader Annotation::Reader::getBrand() const { 7888 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_reader.getPointerField( 7889 ::capnp::bounded<1>() * ::capnp::POINTERS)); 7890 } 7891 inline ::capnp::schema::Brand::Builder Annotation::Builder::getBrand() { 7892 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::get(_builder.getPointerField( 7893 ::capnp::bounded<1>() * ::capnp::POINTERS)); 7894 } 7895 #if !CAPNP_LITE 7896 inline ::capnp::schema::Brand::Pipeline Annotation::Pipeline::getBrand() { 7897 return ::capnp::schema::Brand::Pipeline(_typeless.getPointerField(1)); 7898 } 7899 #endif // !CAPNP_LITE 7900 inline void Annotation::Builder::setBrand( ::capnp::schema::Brand::Reader value) { 7901 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::set(_builder.getPointerField( 7902 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 7903 } 7904 inline ::capnp::schema::Brand::Builder Annotation::Builder::initBrand() { 7905 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::init(_builder.getPointerField( 7906 ::capnp::bounded<1>() * ::capnp::POINTERS)); 7907 } 7908 inline void Annotation::Builder::adoptBrand( 7909 ::capnp::Orphan< ::capnp::schema::Brand>&& value) { 7910 ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::adopt(_builder.getPointerField( 7911 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 7912 } 7913 inline ::capnp::Orphan< ::capnp::schema::Brand> Annotation::Builder::disownBrand() { 7914 return ::capnp::_::PointerHelpers< ::capnp::schema::Brand>::disown(_builder.getPointerField( 7915 ::capnp::bounded<1>() * ::capnp::POINTERS)); 7916 } 7917 7918 inline ::uint16_t CapnpVersion::Reader::getMajor() const { 7919 return _reader.getDataField< ::uint16_t>( 7920 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7921 } 7922 7923 inline ::uint16_t CapnpVersion::Builder::getMajor() { 7924 return _builder.getDataField< ::uint16_t>( 7925 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 7926 } 7927 inline void CapnpVersion::Builder::setMajor( ::uint16_t value) { 7928 _builder.setDataField< ::uint16_t>( 7929 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 7930 } 7931 7932 inline ::uint8_t CapnpVersion::Reader::getMinor() const { 7933 return _reader.getDataField< ::uint8_t>( 7934 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7935 } 7936 7937 inline ::uint8_t CapnpVersion::Builder::getMinor() { 7938 return _builder.getDataField< ::uint8_t>( 7939 ::capnp::bounded<2>() * ::capnp::ELEMENTS); 7940 } 7941 inline void CapnpVersion::Builder::setMinor( ::uint8_t value) { 7942 _builder.setDataField< ::uint8_t>( 7943 ::capnp::bounded<2>() * ::capnp::ELEMENTS, value); 7944 } 7945 7946 inline ::uint8_t CapnpVersion::Reader::getMicro() const { 7947 return _reader.getDataField< ::uint8_t>( 7948 ::capnp::bounded<3>() * ::capnp::ELEMENTS); 7949 } 7950 7951 inline ::uint8_t CapnpVersion::Builder::getMicro() { 7952 return _builder.getDataField< ::uint8_t>( 7953 ::capnp::bounded<3>() * ::capnp::ELEMENTS); 7954 } 7955 inline void CapnpVersion::Builder::setMicro( ::uint8_t value) { 7956 _builder.setDataField< ::uint8_t>( 7957 ::capnp::bounded<3>() * ::capnp::ELEMENTS, value); 7958 } 7959 7960 inline bool CodeGeneratorRequest::Reader::hasNodes() const { 7961 return !_reader.getPointerField( 7962 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7963 } 7964 inline bool CodeGeneratorRequest::Builder::hasNodes() { 7965 return !_builder.getPointerField( 7966 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 7967 } 7968 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getNodes() const { 7969 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 7970 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7971 } 7972 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getNodes() { 7973 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 7974 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7975 } 7976 inline void CodeGeneratorRequest::Builder::setNodes( ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Reader value) { 7977 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 7978 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 7979 } 7980 inline ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initNodes(unsigned int size) { 7981 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 7982 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 7983 } 7984 inline void CodeGeneratorRequest::Builder::adoptNodes( 7985 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>&& value) { 7986 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 7987 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 7988 } 7989 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownNodes() { 7990 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 7991 ::capnp::bounded<0>() * ::capnp::POINTERS)); 7992 } 7993 7994 inline bool CodeGeneratorRequest::Reader::hasRequestedFiles() const { 7995 return !_reader.getPointerField( 7996 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 7997 } 7998 inline bool CodeGeneratorRequest::Builder::hasRequestedFiles() { 7999 return !_builder.getPointerField( 8000 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 8001 } 8002 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getRequestedFiles() const { 8003 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 8004 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8005 } 8006 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getRequestedFiles() { 8007 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 8008 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8009 } 8010 inline void CodeGeneratorRequest::Builder::setRequestedFiles( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Reader value) { 8011 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 8012 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 8013 } 8014 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initRequestedFiles(unsigned int size) { 8015 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 8016 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 8017 } 8018 inline void CodeGeneratorRequest::Builder::adoptRequestedFiles( 8019 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>&& value) { 8020 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 8021 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 8022 } 8023 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownRequestedFiles() { 8024 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 8025 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8026 } 8027 8028 inline bool CodeGeneratorRequest::Reader::hasCapnpVersion() const { 8029 return !_reader.getPointerField( 8030 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 8031 } 8032 inline bool CodeGeneratorRequest::Builder::hasCapnpVersion() { 8033 return !_builder.getPointerField( 8034 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull(); 8035 } 8036 inline ::capnp::schema::CapnpVersion::Reader CodeGeneratorRequest::Reader::getCapnpVersion() const { 8037 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_reader.getPointerField( 8038 ::capnp::bounded<2>() * ::capnp::POINTERS)); 8039 } 8040 inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::getCapnpVersion() { 8041 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::get(_builder.getPointerField( 8042 ::capnp::bounded<2>() * ::capnp::POINTERS)); 8043 } 8044 #if !CAPNP_LITE 8045 inline ::capnp::schema::CapnpVersion::Pipeline CodeGeneratorRequest::Pipeline::getCapnpVersion() { 8046 return ::capnp::schema::CapnpVersion::Pipeline(_typeless.getPointerField(2)); 8047 } 8048 #endif // !CAPNP_LITE 8049 inline void CodeGeneratorRequest::Builder::setCapnpVersion( ::capnp::schema::CapnpVersion::Reader value) { 8050 ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::set(_builder.getPointerField( 8051 ::capnp::bounded<2>() * ::capnp::POINTERS), value); 8052 } 8053 inline ::capnp::schema::CapnpVersion::Builder CodeGeneratorRequest::Builder::initCapnpVersion() { 8054 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::init(_builder.getPointerField( 8055 ::capnp::bounded<2>() * ::capnp::POINTERS)); 8056 } 8057 inline void CodeGeneratorRequest::Builder::adoptCapnpVersion( 8058 ::capnp::Orphan< ::capnp::schema::CapnpVersion>&& value) { 8059 ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::adopt(_builder.getPointerField( 8060 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value)); 8061 } 8062 inline ::capnp::Orphan< ::capnp::schema::CapnpVersion> CodeGeneratorRequest::Builder::disownCapnpVersion() { 8063 return ::capnp::_::PointerHelpers< ::capnp::schema::CapnpVersion>::disown(_builder.getPointerField( 8064 ::capnp::bounded<2>() * ::capnp::POINTERS)); 8065 } 8066 8067 inline bool CodeGeneratorRequest::Reader::hasSourceInfo() const { 8068 return !_reader.getPointerField( 8069 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 8070 } 8071 inline bool CodeGeneratorRequest::Builder::hasSourceInfo() { 8072 return !_builder.getPointerField( 8073 ::capnp::bounded<3>() * ::capnp::POINTERS).isNull(); 8074 } 8075 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::Reader::getSourceInfo() const { 8076 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 8077 ::capnp::bounded<3>() * ::capnp::POINTERS)); 8078 } 8079 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::getSourceInfo() { 8080 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 8081 ::capnp::bounded<3>() * ::capnp::POINTERS)); 8082 } 8083 inline void CodeGeneratorRequest::Builder::setSourceInfo( ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Reader value) { 8084 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 8085 ::capnp::bounded<3>() * ::capnp::POINTERS), value); 8086 } 8087 inline ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::Builder::initSourceInfo(unsigned int size) { 8088 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 8089 ::capnp::bounded<3>() * ::capnp::POINTERS), size); 8090 } 8091 inline void CodeGeneratorRequest::Builder::adoptSourceInfo( 8092 ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>&& value) { 8093 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 8094 ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value)); 8095 } 8096 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::Builder::disownSourceInfo() { 8097 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::Node::SourceInfo, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 8098 ::capnp::bounded<3>() * ::capnp::POINTERS)); 8099 } 8100 8101 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Reader::getId() const { 8102 return _reader.getDataField< ::uint64_t>( 8103 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 8104 } 8105 8106 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Builder::getId() { 8107 return _builder.getDataField< ::uint64_t>( 8108 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 8109 } 8110 inline void CodeGeneratorRequest::RequestedFile::Builder::setId( ::uint64_t value) { 8111 _builder.setDataField< ::uint64_t>( 8112 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 8113 } 8114 8115 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasFilename() const { 8116 return !_reader.getPointerField( 8117 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 8118 } 8119 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasFilename() { 8120 return !_builder.getPointerField( 8121 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 8122 } 8123 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Reader::getFilename() const { 8124 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 8125 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8126 } 8127 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::getFilename() { 8128 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 8129 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8130 } 8131 inline void CodeGeneratorRequest::RequestedFile::Builder::setFilename( ::capnp::Text::Reader value) { 8132 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 8133 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 8134 } 8135 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Builder::initFilename(unsigned int size) { 8136 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 8137 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 8138 } 8139 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptFilename( 8140 ::capnp::Orphan< ::capnp::Text>&& value) { 8141 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 8142 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 8143 } 8144 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Builder::disownFilename() { 8145 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 8146 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8147 } 8148 8149 inline bool CodeGeneratorRequest::RequestedFile::Reader::hasImports() const { 8150 return !_reader.getPointerField( 8151 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 8152 } 8153 inline bool CodeGeneratorRequest::RequestedFile::Builder::hasImports() { 8154 return !_builder.getPointerField( 8155 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull(); 8156 } 8157 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader CodeGeneratorRequest::RequestedFile::Reader::getImports() const { 8158 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::get(_reader.getPointerField( 8159 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8160 } 8161 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::RequestedFile::Builder::getImports() { 8162 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::get(_builder.getPointerField( 8163 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8164 } 8165 inline void CodeGeneratorRequest::RequestedFile::Builder::setImports( ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Reader value) { 8166 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::set(_builder.getPointerField( 8167 ::capnp::bounded<1>() * ::capnp::POINTERS), value); 8168 } 8169 inline ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>::Builder CodeGeneratorRequest::RequestedFile::Builder::initImports(unsigned int size) { 8170 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::init(_builder.getPointerField( 8171 ::capnp::bounded<1>() * ::capnp::POINTERS), size); 8172 } 8173 inline void CodeGeneratorRequest::RequestedFile::Builder::adoptImports( 8174 ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>&& value) { 8175 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField( 8176 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value)); 8177 } 8178 inline ::capnp::Orphan< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>> CodeGeneratorRequest::RequestedFile::Builder::disownImports() { 8179 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::schema::CodeGeneratorRequest::RequestedFile::Import, ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField( 8180 ::capnp::bounded<1>() * ::capnp::POINTERS)); 8181 } 8182 8183 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Reader::getId() const { 8184 return _reader.getDataField< ::uint64_t>( 8185 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 8186 } 8187 8188 inline ::uint64_t CodeGeneratorRequest::RequestedFile::Import::Builder::getId() { 8189 return _builder.getDataField< ::uint64_t>( 8190 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 8191 } 8192 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setId( ::uint64_t value) { 8193 _builder.setDataField< ::uint64_t>( 8194 ::capnp::bounded<0>() * ::capnp::ELEMENTS, value); 8195 } 8196 8197 inline bool CodeGeneratorRequest::RequestedFile::Import::Reader::hasName() const { 8198 return !_reader.getPointerField( 8199 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 8200 } 8201 inline bool CodeGeneratorRequest::RequestedFile::Import::Builder::hasName() { 8202 return !_builder.getPointerField( 8203 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 8204 } 8205 inline ::capnp::Text::Reader CodeGeneratorRequest::RequestedFile::Import::Reader::getName() const { 8206 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField( 8207 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8208 } 8209 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::getName() { 8210 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField( 8211 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8212 } 8213 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::setName( ::capnp::Text::Reader value) { 8214 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField( 8215 ::capnp::bounded<0>() * ::capnp::POINTERS), value); 8216 } 8217 inline ::capnp::Text::Builder CodeGeneratorRequest::RequestedFile::Import::Builder::initName(unsigned int size) { 8218 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField( 8219 ::capnp::bounded<0>() * ::capnp::POINTERS), size); 8220 } 8221 inline void CodeGeneratorRequest::RequestedFile::Import::Builder::adoptName( 8222 ::capnp::Orphan< ::capnp::Text>&& value) { 8223 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField( 8224 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value)); 8225 } 8226 inline ::capnp::Orphan< ::capnp::Text> CodeGeneratorRequest::RequestedFile::Import::Builder::disownName() { 8227 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField( 8228 ::capnp::bounded<0>() * ::capnp::POINTERS)); 8229 } 8230 8231 } // namespace 8232 } // namespace 8233 8234 CAPNP_END_HEADER 8235