rpc-twoparty.capnp.h 20 KB
Newer Older
1 2 3 4 5 6 7 8
// Generated by Cap'n Proto compiler, DO NOT EDIT
// source: rpc-twoparty.capnp

#ifndef CAPNP_INCLUDED_a184c7885cdaf2a1_
#define CAPNP_INCLUDED_a184c7885cdaf2a1_

#include <capnp/generated-header-support.h>

Kenton Varda's avatar
Kenton Varda committed
9
#if CAPNP_VERSION != 5000
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
#error "Version mismatch between generated code and library headers.  You must use the same version of the Cap'n Proto compiler and library."
#endif


namespace capnp {
namespace rpc {
namespace twoparty {

enum class Side: uint16_t {
  SERVER,
  CLIENT,
};

struct SturdyRefHostId {
  SturdyRefHostId() = delete;

  class Reader;
  class Builder;
  class Pipeline;
};

struct ProvisionId {
  ProvisionId() = delete;

  class Reader;
  class Builder;
  class Pipeline;
};

struct RecipientId {
  RecipientId() = delete;

  class Reader;
  class Builder;
  class Pipeline;
};

struct ThirdPartyCapId {
  ThirdPartyCapId() = delete;

  class Reader;
  class Builder;
  class Pipeline;
};

struct JoinKeyPart {
  JoinKeyPart() = delete;

  class Reader;
  class Builder;
  class Pipeline;
};

63 64
struct JoinResult {
  JoinResult() = delete;
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

  class Reader;
  class Builder;
  class Pipeline;
};

}  // namespace
}  // namespace
}  // namespace

// =======================================================================================

namespace capnp {
namespace schemas {

extern const ::capnp::_::RawSchema s_9fd69ebc87b9719c;
extern const ::capnp::_::RawSchema s_e615e371b1036508;
extern const ::capnp::_::RawSchema s_b88d09a9c5f39817;
extern const ::capnp::_::RawSchema s_89f389b6fd4082c1;
extern const ::capnp::_::RawSchema s_b47f4979672cb59d;
extern const ::capnp::_::RawSchema s_95b29059097fca83;
86
extern const ::capnp::_::RawSchema s_9d263a3630b7ebee;
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108

}  // namespace schemas
namespace _ {  // private

CAPNP_DECLARE_ENUM(
    ::capnp::rpc::twoparty::Side, 9fd69ebc87b9719c);
CAPNP_DECLARE_STRUCT(
    ::capnp::rpc::twoparty::SturdyRefHostId, e615e371b1036508,
    1, 0, TWO_BYTES);
CAPNP_DECLARE_STRUCT(
    ::capnp::rpc::twoparty::ProvisionId, b88d09a9c5f39817,
    1, 0, FOUR_BYTES);
CAPNP_DECLARE_STRUCT(
    ::capnp::rpc::twoparty::RecipientId, 89f389b6fd4082c1,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::rpc::twoparty::ThirdPartyCapId, b47f4979672cb59d,
    0, 0, VOID);
CAPNP_DECLARE_STRUCT(
    ::capnp::rpc::twoparty::JoinKeyPart, 95b29059097fca83,
    1, 0, EIGHT_BYTES);
CAPNP_DECLARE_STRUCT(
109 110
    ::capnp::rpc::twoparty::JoinResult, 9d263a3630b7ebee,
    1, 1, INLINE_COMPOSITE);
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127

}  // namespace _ (private)
}  // namespace capnp

// =======================================================================================

namespace capnp {
namespace rpc {
namespace twoparty {

class SturdyRefHostId::Reader {
public:
  typedef SturdyRefHostId Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

128 129
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
  }

  inline  ::capnp::rpc::twoparty::Side getSide() const;

private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(SturdyRefHostId::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(SturdyRefHostId::Reader reader) {
  return ::capnp::_::structString<SturdyRefHostId>(reader._reader);
}

class SturdyRefHostId::Builder {
public:
  typedef SturdyRefHostId Builds;

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

162
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183

  inline  ::capnp::rpc::twoparty::Side getSide();
  inline void setSide( ::capnp::rpc::twoparty::Side value);

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(SturdyRefHostId::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(SturdyRefHostId::Builder builder) {
  return ::capnp::_::structString<SturdyRefHostId>(builder._builder.asReader());
}

class SturdyRefHostId::Pipeline {
public:
  typedef SturdyRefHostId Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
184
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
185 186 187
      : _typeless(kj::mv(typeless)) {}

private:
188
  ::capnp::AnyPointer::Pipeline _typeless;
189 190 191 192 193 194 195 196 197 198 199
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

class ProvisionId::Reader {
public:
  typedef ProvisionId Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

200 201
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
  }

  inline  ::uint32_t getJoinId() const;

private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ProvisionId::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(ProvisionId::Reader reader) {
  return ::capnp::_::structString<ProvisionId>(reader._reader);
}

class ProvisionId::Builder {
public:
  typedef ProvisionId Builds;

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

234
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255

  inline  ::uint32_t getJoinId();
  inline void setJoinId( ::uint32_t value);

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ProvisionId::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(ProvisionId::Builder builder) {
  return ::capnp::_::structString<ProvisionId>(builder._builder.asReader());
}

class ProvisionId::Pipeline {
public:
  typedef ProvisionId Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
256
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
257 258 259
      : _typeless(kj::mv(typeless)) {}

private:
260
  ::capnp::AnyPointer::Pipeline _typeless;
261 262 263 264 265 266 267 268 269 270 271
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

class RecipientId::Reader {
public:
  typedef RecipientId Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

272 273
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
  }

private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(RecipientId::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(RecipientId::Reader reader) {
  return ::capnp::_::structString<RecipientId>(reader._reader);
}

class RecipientId::Builder {
public:
  typedef RecipientId Builds;

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

304
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(RecipientId::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(RecipientId::Builder builder) {
  return ::capnp::_::structString<RecipientId>(builder._builder.asReader());
}

class RecipientId::Pipeline {
public:
  typedef RecipientId Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
323
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
324 325 326
      : _typeless(kj::mv(typeless)) {}

private:
327
  ::capnp::AnyPointer::Pipeline _typeless;
328 329 330 331 332 333 334 335 336 337 338
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

class ThirdPartyCapId::Reader {
public:
  typedef ThirdPartyCapId Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

339 340
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
  }

private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ThirdPartyCapId::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(ThirdPartyCapId::Reader reader) {
  return ::capnp::_::structString<ThirdPartyCapId>(reader._reader);
}

class ThirdPartyCapId::Builder {
public:
  typedef ThirdPartyCapId Builds;

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

371
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(ThirdPartyCapId::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(ThirdPartyCapId::Builder builder) {
  return ::capnp::_::structString<ThirdPartyCapId>(builder._builder.asReader());
}

class ThirdPartyCapId::Pipeline {
public:
  typedef ThirdPartyCapId Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
390
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
391 392 393
      : _typeless(kj::mv(typeless)) {}

private:
394
  ::capnp::AnyPointer::Pipeline _typeless;
395 396 397 398 399 400 401 402 403 404 405
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

class JoinKeyPart::Reader {
public:
  typedef JoinKeyPart Reads;

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

406 407
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
  }

  inline  ::uint32_t getJoinId() const;

  inline  ::uint16_t getPartCount() const;

  inline  ::uint16_t getPartNum() const;

private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(JoinKeyPart::Reader reader);
};

inline ::kj::StringTree KJ_STRINGIFY(JoinKeyPart::Reader reader) {
  return ::capnp::_::structString<JoinKeyPart>(reader._reader);
}

class JoinKeyPart::Builder {
public:
  typedef JoinKeyPart Builds;

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

444
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471

  inline  ::uint32_t getJoinId();
  inline void setJoinId( ::uint32_t value);

  inline  ::uint16_t getPartCount();
  inline void setPartCount( ::uint16_t value);

  inline  ::uint16_t getPartNum();
  inline void setPartNum( ::uint16_t value);

private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
  friend ::kj::StringTree KJ_STRINGIFY(JoinKeyPart::Builder builder);
};

inline ::kj::StringTree KJ_STRINGIFY(JoinKeyPart::Builder builder) {
  return ::capnp::_::structString<JoinKeyPart>(builder._builder.asReader());
}

class JoinKeyPart::Pipeline {
public:
  typedef JoinKeyPart Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
472
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
473 474 475
      : _typeless(kj::mv(typeless)) {}

private:
476
  ::capnp::AnyPointer::Pipeline _typeless;
477 478 479 480
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

481
class JoinResult::Reader {
482
public:
483
  typedef JoinResult Reads;
484 485 486 487

  Reader() = default;
  inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}

488 489
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
490 491 492 493 494 495
  }

  inline  ::uint32_t getJoinId() const;

  inline bool getSucceeded() const;

496
  inline bool hasCap() const;
497
  inline ::capnp::AnyPointer::Reader getCap() const;
498

499 500 501 502 503 504 505 506 507 508
private:
  ::capnp::_::StructReader _reader;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::_::PointerHelpers;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
509
  friend ::kj::StringTree KJ_STRINGIFY(JoinResult::Reader reader);
510 511
};

512 513
inline ::kj::StringTree KJ_STRINGIFY(JoinResult::Reader reader) {
  return ::capnp::_::structString<JoinResult>(reader._reader);
514 515
}

516
class JoinResult::Builder {
517
public:
518
  typedef JoinResult Builds;
519 520 521 522 523 524 525 526

  Builder() = delete;  // Deleted to discourage incorrect usage.
                       // You can explicitly initialize to nullptr instead.
  inline Builder(decltype(nullptr)) {}
  inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
  inline operator Reader() const { return Reader(_builder.asReader()); }
  inline Reader asReader() const { return *this; }

527
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
528 529 530 531 532 533 534

  inline  ::uint32_t getJoinId();
  inline void setJoinId( ::uint32_t value);

  inline bool getSucceeded();
  inline void setSucceeded(bool value);

535
  inline bool hasCap();
536 537
  inline ::capnp::AnyPointer::Builder getCap();
  inline ::capnp::AnyPointer::Builder initCap();
538

539 540 541 542 543
private:
  ::capnp::_::StructBuilder _builder;
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
544
  friend ::kj::StringTree KJ_STRINGIFY(JoinResult::Builder builder);
545 546
};

547 548
inline ::kj::StringTree KJ_STRINGIFY(JoinResult::Builder builder) {
  return ::capnp::_::structString<JoinResult>(builder._builder.asReader());
549 550
}

551
class JoinResult::Pipeline {
552
public:
553
  typedef JoinResult Pipelines;
554 555

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
556
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
557 558 559
      : _typeless(kj::mv(typeless)) {}

private:
560
  ::capnp::AnyPointer::Pipeline _typeless;
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636
  template <typename T, ::capnp::Kind k>
  friend struct ::capnp::ToDynamic_;
};

// =======================================================================================

inline  ::capnp::rpc::twoparty::Side SturdyRefHostId::Reader::getSide() const {
  return _reader.getDataField< ::capnp::rpc::twoparty::Side>(
      0 * ::capnp::ELEMENTS);
}

inline  ::capnp::rpc::twoparty::Side SturdyRefHostId::Builder::getSide() {
  return _builder.getDataField< ::capnp::rpc::twoparty::Side>(
      0 * ::capnp::ELEMENTS);
}
inline void SturdyRefHostId::Builder::setSide( ::capnp::rpc::twoparty::Side value) {
  _builder.setDataField< ::capnp::rpc::twoparty::Side>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint32_t ProvisionId::Reader::getJoinId() const {
  return _reader.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}

inline  ::uint32_t ProvisionId::Builder::getJoinId() {
  return _builder.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}
inline void ProvisionId::Builder::setJoinId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint32_t JoinKeyPart::Reader::getJoinId() const {
  return _reader.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}

inline  ::uint32_t JoinKeyPart::Builder::getJoinId() {
  return _builder.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}
inline void JoinKeyPart::Builder::setJoinId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS, value);
}

inline  ::uint16_t JoinKeyPart::Reader::getPartCount() const {
  return _reader.getDataField< ::uint16_t>(
      2 * ::capnp::ELEMENTS);
}

inline  ::uint16_t JoinKeyPart::Builder::getPartCount() {
  return _builder.getDataField< ::uint16_t>(
      2 * ::capnp::ELEMENTS);
}
inline void JoinKeyPart::Builder::setPartCount( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
      2 * ::capnp::ELEMENTS, value);
}

inline  ::uint16_t JoinKeyPart::Reader::getPartNum() const {
  return _reader.getDataField< ::uint16_t>(
      3 * ::capnp::ELEMENTS);
}

inline  ::uint16_t JoinKeyPart::Builder::getPartNum() {
  return _builder.getDataField< ::uint16_t>(
      3 * ::capnp::ELEMENTS);
}
inline void JoinKeyPart::Builder::setPartNum( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
      3 * ::capnp::ELEMENTS, value);
}

637
inline  ::uint32_t JoinResult::Reader::getJoinId() const {
638 639 640 641
  return _reader.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}

642
inline  ::uint32_t JoinResult::Builder::getJoinId() {
643 644 645
  return _builder.getDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS);
}
646
inline void JoinResult::Builder::setJoinId( ::uint32_t value) {
647 648 649 650
  _builder.setDataField< ::uint32_t>(
      0 * ::capnp::ELEMENTS, value);
}

651
inline bool JoinResult::Reader::getSucceeded() const {
652 653 654 655
  return _reader.getDataField<bool>(
      32 * ::capnp::ELEMENTS);
}

656
inline bool JoinResult::Builder::getSucceeded() {
657 658 659
  return _builder.getDataField<bool>(
      32 * ::capnp::ELEMENTS);
}
660
inline void JoinResult::Builder::setSucceeded(bool value) {
661 662 663 664
  _builder.setDataField<bool>(
      32 * ::capnp::ELEMENTS, value);
}

665 666 667 668 669 670
inline bool JoinResult::Reader::hasCap() const {
  return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
}
inline bool JoinResult::Builder::hasCap() {
  return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
}
671 672
inline ::capnp::AnyPointer::Reader JoinResult::Reader::getCap() const {
  return ::capnp::AnyPointer::Reader(
673 674
      _reader.getPointerField(0 * ::capnp::POINTERS));
}
675 676
inline ::capnp::AnyPointer::Builder JoinResult::Builder::getCap() {
  return ::capnp::AnyPointer::Builder(
677 678
      _builder.getPointerField(0 * ::capnp::POINTERS));
}
679 680
inline ::capnp::AnyPointer::Builder JoinResult::Builder::initCap() {
  auto result = ::capnp::AnyPointer::Builder(
681 682 683 684 685
      _builder.getPointerField(0 * ::capnp::POINTERS));
  result.clear();
  return result;
}

686 687 688 689 690
}  // namespace
}  // namespace
}  // namespace

#endif  // CAPNP_INCLUDED_a184c7885cdaf2a1_