rpc.capnp.h 182 KB
Newer Older
1 2 3
// Generated by Cap'n Proto compiler, DO NOT EDIT
// source: rpc.capnp

4
#pragma once
5 6

#include <capnp/generated-header-support.h>
7
#include <kj/windows-sanity.h>
8

9
#if CAPNP_VERSION != 8000
10 11 12 13
#error "Version mismatch between generated code and library headers.  You must use the same version of the Cap'n Proto compiler and library."
#endif


14 15 16
namespace capnp {
namespace schemas {

17
CAPNP_DECLARE_SCHEMA(91b79f1f808db032);
18
CAPNP_DECLARE_SCHEMA(e94ccf8031176ec4);
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
CAPNP_DECLARE_SCHEMA(836a53ce789d4cd4);
CAPNP_DECLARE_SCHEMA(dae8b0f61aab5f99);
CAPNP_DECLARE_SCHEMA(9e19b28d3db3573a);
CAPNP_DECLARE_SCHEMA(d37d2eb2c2f80e63);
CAPNP_DECLARE_SCHEMA(bbc29655fa89086e);
CAPNP_DECLARE_SCHEMA(ad1a6c0d7dd07497);
CAPNP_DECLARE_SCHEMA(f964368b0fbd3711);
CAPNP_DECLARE_SCHEMA(d562b4df655bdd4d);
CAPNP_DECLARE_SCHEMA(9c6a046bfbc1ac5a);
CAPNP_DECLARE_SCHEMA(d4c9b56290554016);
CAPNP_DECLARE_SCHEMA(fbe1980490e001af);
CAPNP_DECLARE_SCHEMA(95bc14545813fbc1);
CAPNP_DECLARE_SCHEMA(9a0e61223d96743b);
CAPNP_DECLARE_SCHEMA(8523ddc40b86b8b0);
CAPNP_DECLARE_SCHEMA(d800b1d6cd6f1ca0);
CAPNP_DECLARE_SCHEMA(f316944415569081);
CAPNP_DECLARE_SCHEMA(d37007fde1f0027d);
CAPNP_DECLARE_SCHEMA(d625b7063acf691a);
37 38 39
CAPNP_DECLARE_SCHEMA(b28c96e23f4cbd58);
enum class Type_b28c96e23f4cbd58: uint16_t {
  FAILED,
40
  OVERLOADED,
41 42
  DISCONNECTED,
  UNIMPLEMENTED,
43
};
44
CAPNP_DECLARE_ENUM(Type, b28c96e23f4cbd58);
45 46 47 48

}  // namespace schemas
}  // namespace capnp

49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
namespace capnp {
namespace rpc {

struct Message {
  Message() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
    UNIMPLEMENTED,
    ABORT,
    CALL,
    RETURN,
    FINISH,
    RESOLVE,
    RELEASE,
66
    OBSOLETE_SAVE,
67
    BOOTSTRAP,
68
    OBSOLETE_DELETE,
69 70 71
    PROVIDE,
    ACCEPT,
    JOIN,
72
    DISEMBARGO,
73
  };
74

75 76 77
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(91b79f1f808db032, 1, 1)
    #if !CAPNP_LITE
78
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
79 80
    #endif  // !CAPNP_LITE
  };
81 82
};

83 84 85 86 87 88 89
struct Bootstrap {
  Bootstrap() = delete;

  class Reader;
  class Builder;
  class Pipeline;

90 91 92
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(e94ccf8031176ec4, 1, 1)
    #if !CAPNP_LITE
93
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
94 95
    #endif  // !CAPNP_LITE
  };
96 97
};

98 99 100 101 102 103
struct Call {
  Call() = delete;

  class Reader;
  class Builder;
  class Pipeline;
104
  struct SendResultsTo;
105

106 107 108
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(836a53ce789d4cd4, 3, 3)
    #if !CAPNP_LITE
109
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
110 111
    #endif  // !CAPNP_LITE
  };
112 113
};

114 115
struct Call::SendResultsTo {
  SendResultsTo() = delete;
116 117 118 119 120 121 122 123 124

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
    CALLER,
    YOURSELF,
    THIRD_PARTY,
  };
125

126 127 128
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(dae8b0f61aab5f99, 3, 3)
    #if !CAPNP_LITE
129
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
130 131
    #endif  // !CAPNP_LITE
  };
132 133
};

134 135 136 137 138 139 140
struct Return {
  Return() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
141
    RESULTS,
142 143
    EXCEPTION,
    CANCELED,
144
    RESULTS_SENT_ELSEWHERE,
145
    TAKE_FROM_OTHER_QUESTION,
146
    ACCEPT_FROM_THIRD_PARTY,
147
  };
148

149 150 151
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(9e19b28d3db3573a, 2, 1)
    #if !CAPNP_LITE
152
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
153 154
    #endif  // !CAPNP_LITE
  };
155 156 157 158 159 160 161 162
};

struct Finish {
  Finish() = delete;

  class Reader;
  class Builder;
  class Pipeline;
163

164 165 166
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d37d2eb2c2f80e63, 1, 0)
    #if !CAPNP_LITE
167
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
168 169
    #endif  // !CAPNP_LITE
  };
170 171 172 173 174 175 176 177 178 179 180 181
};

struct Resolve {
  Resolve() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
    CAP,
    EXCEPTION,
  };
182

183 184 185
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(bbc29655fa89086e, 1, 1)
    #if !CAPNP_LITE
186
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
187 188
    #endif  // !CAPNP_LITE
  };
189 190 191 192 193 194 195 196
};

struct Release {
  Release() = delete;

  class Reader;
  class Builder;
  class Pipeline;
197

198 199 200
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(ad1a6c0d7dd07497, 1, 0)
    #if !CAPNP_LITE
201
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
202 203
    #endif  // !CAPNP_LITE
  };
204 205
};

206 207 208 209 210 211 212
struct Disembargo {
  Disembargo() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  struct Context;
213

214 215 216
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(f964368b0fbd3711, 1, 1)
    #if !CAPNP_LITE
217
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
218 219
    #endif  // !CAPNP_LITE
  };
220 221 222 223 224 225 226 227 228 229 230 231 232 233
};

struct Disembargo::Context {
  Context() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
    SENDER_LOOPBACK,
    RECEIVER_LOOPBACK,
    ACCEPT,
    PROVIDE,
  };
234

235 236 237
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d562b4df655bdd4d, 1, 1)
    #if !CAPNP_LITE
238
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
239 240
    #endif  // !CAPNP_LITE
  };
241 242
};

243 244 245 246 247 248
struct Provide {
  Provide() = delete;

  class Reader;
  class Builder;
  class Pipeline;
249

250 251 252
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(9c6a046bfbc1ac5a, 1, 2)
    #if !CAPNP_LITE
253
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
254 255
    #endif  // !CAPNP_LITE
  };
256 257
};

Kenton Varda's avatar
Kenton Varda committed
258 259
struct Accept {
  Accept() = delete;
260 261 262 263

  class Reader;
  class Builder;
  class Pipeline;
264

265 266 267
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d4c9b56290554016, 1, 1)
    #if !CAPNP_LITE
268
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
269 270
    #endif  // !CAPNP_LITE
  };
271 272
};

Kenton Varda's avatar
Kenton Varda committed
273 274
struct Join {
  Join() = delete;
275 276 277 278

  class Reader;
  class Builder;
  class Pipeline;
279

280 281 282
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(fbe1980490e001af, 1, 2)
    #if !CAPNP_LITE
283
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
284 285
    #endif  // !CAPNP_LITE
  };
286 287
};

Kenton Varda's avatar
Kenton Varda committed
288 289
struct MessageTarget {
  MessageTarget() = delete;
290 291 292 293

  class Reader;
  class Builder;
  class Pipeline;
Kenton Varda's avatar
Kenton Varda committed
294
  enum Which: uint16_t {
295
    IMPORTED_CAP,
Kenton Varda's avatar
Kenton Varda committed
296 297
    PROMISED_ANSWER,
  };
298

299 300 301
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(95bc14545813fbc1, 1, 1)
    #if !CAPNP_LITE
302
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
303 304
    #endif  // !CAPNP_LITE
  };
305 306
};

307 308 309 310 311 312
struct Payload {
  Payload() = delete;

  class Reader;
  class Builder;
  class Pipeline;
313

314 315 316
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(9a0e61223d96743b, 0, 2)
    #if !CAPNP_LITE
317
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
318 319
    #endif  // !CAPNP_LITE
  };
320 321
};

322 323 324 325 326 327 328
struct CapDescriptor {
  CapDescriptor() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
329
    NONE,
330 331 332 333 334 335
    SENDER_HOSTED,
    SENDER_PROMISE,
    RECEIVER_HOSTED,
    RECEIVER_ANSWER,
    THIRD_PARTY_HOSTED,
  };
336

337 338 339
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(8523ddc40b86b8b0, 1, 1)
    #if !CAPNP_LITE
340
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
341 342
    #endif  // !CAPNP_LITE
  };
343 344 345 346 347 348 349 350 351
};

struct PromisedAnswer {
  PromisedAnswer() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  struct Op;
352

353 354 355
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d800b1d6cd6f1ca0, 1, 1)
    #if !CAPNP_LITE
356
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
357 358
    #endif  // !CAPNP_LITE
  };
359 360 361 362 363 364 365 366 367 368 369 370
};

struct PromisedAnswer::Op {
  Op() = delete;

  class Reader;
  class Builder;
  class Pipeline;
  enum Which: uint16_t {
    NOOP,
    GET_POINTER_FIELD,
  };
371

372 373 374
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(f316944415569081, 1, 0)
    #if !CAPNP_LITE
375
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
376 377
    #endif  // !CAPNP_LITE
  };
378 379 380 381 382 383 384 385
};

struct ThirdPartyCapDescriptor {
  ThirdPartyCapDescriptor() = delete;

  class Reader;
  class Builder;
  class Pipeline;
386

387 388 389
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d37007fde1f0027d, 1, 1)
    #if !CAPNP_LITE
390
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
391 392
    #endif  // !CAPNP_LITE
  };
393 394 395 396 397 398 399 400
};

struct Exception {
  Exception() = delete;

  class Reader;
  class Builder;
  class Pipeline;
401
  typedef ::capnp::schemas::Type_b28c96e23f4cbd58 Type;
402 403


404 405 406
  struct _capnpPrivate {
    CAPNP_DECLARE_STRUCT_HEADER(d625b7063acf691a, 1, 1)
    #if !CAPNP_LITE
407
    static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
408 409
    #endif  // !CAPNP_LITE
  };
410
};
411 412 413 414 415 416 417 418 419 420

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

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

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

421 422
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
423 424
  }

425
#if !CAPNP_LITE
426
  inline ::kj::StringTree toString() const {
427
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
428
  }
429
#endif  // !CAPNP_LITE
430

431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
  inline Which which() const;
  inline bool isUnimplemented() const;
  inline bool hasUnimplemented() const;
  inline  ::capnp::rpc::Message::Reader getUnimplemented() const;

  inline bool isAbort() const;
  inline bool hasAbort() const;
  inline  ::capnp::rpc::Exception::Reader getAbort() const;

  inline bool isCall() const;
  inline bool hasCall() const;
  inline  ::capnp::rpc::Call::Reader getCall() const;

  inline bool isReturn() const;
  inline bool hasReturn() const;
  inline  ::capnp::rpc::Return::Reader getReturn() const;

  inline bool isFinish() const;
  inline bool hasFinish() const;
  inline  ::capnp::rpc::Finish::Reader getFinish() const;

  inline bool isResolve() const;
  inline bool hasResolve() const;
  inline  ::capnp::rpc::Resolve::Reader getResolve() const;

  inline bool isRelease() const;
  inline bool hasRelease() const;
  inline  ::capnp::rpc::Release::Reader getRelease() const;

460 461 462
  inline bool isObsoleteSave() const;
  inline bool hasObsoleteSave() const;
  inline ::capnp::AnyPointer::Reader getObsoleteSave() const;
463

464 465 466
  inline bool isBootstrap() const;
  inline bool hasBootstrap() const;
  inline  ::capnp::rpc::Bootstrap::Reader getBootstrap() const;
467

468 469 470
  inline bool isObsoleteDelete() const;
  inline bool hasObsoleteDelete() const;
  inline ::capnp::AnyPointer::Reader getObsoleteDelete() const;
471 472 473 474 475 476 477 478 479 480 481 482 483

  inline bool isProvide() const;
  inline bool hasProvide() const;
  inline  ::capnp::rpc::Provide::Reader getProvide() const;

  inline bool isAccept() const;
  inline bool hasAccept() const;
  inline  ::capnp::rpc::Accept::Reader getAccept() const;

  inline bool isJoin() const;
  inline bool hasJoin() const;
  inline  ::capnp::rpc::Join::Reader getJoin() const;

484 485 486 487
  inline bool isDisembargo() const;
  inline bool hasDisembargo() const;
  inline  ::capnp::rpc::Disembargo::Reader getDisembargo() const;

488 489
private:
  ::capnp::_::StructReader _reader;
490
  template <typename, ::capnp::Kind>
491
  friend struct ::capnp::ToDynamic_;
492
  template <typename, ::capnp::Kind>
493
  friend struct ::capnp::_::PointerHelpers;
494
  template <typename, ::capnp::Kind>
495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Message::Builder {
public:
  typedef Message 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; }

511
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
512
#if !CAPNP_LITE
513
  inline ::kj::StringTree toString() const { return asReader().toString(); }
514
#endif  // !CAPNP_LITE
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572

  inline Which which();
  inline bool isUnimplemented();
  inline bool hasUnimplemented();
  inline  ::capnp::rpc::Message::Builder getUnimplemented();
  inline void setUnimplemented( ::capnp::rpc::Message::Reader value);
  inline  ::capnp::rpc::Message::Builder initUnimplemented();
  inline void adoptUnimplemented(::capnp::Orphan< ::capnp::rpc::Message>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Message> disownUnimplemented();

  inline bool isAbort();
  inline bool hasAbort();
  inline  ::capnp::rpc::Exception::Builder getAbort();
  inline void setAbort( ::capnp::rpc::Exception::Reader value);
  inline  ::capnp::rpc::Exception::Builder initAbort();
  inline void adoptAbort(::capnp::Orphan< ::capnp::rpc::Exception>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Exception> disownAbort();

  inline bool isCall();
  inline bool hasCall();
  inline  ::capnp::rpc::Call::Builder getCall();
  inline void setCall( ::capnp::rpc::Call::Reader value);
  inline  ::capnp::rpc::Call::Builder initCall();
  inline void adoptCall(::capnp::Orphan< ::capnp::rpc::Call>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Call> disownCall();

  inline bool isReturn();
  inline bool hasReturn();
  inline  ::capnp::rpc::Return::Builder getReturn();
  inline void setReturn( ::capnp::rpc::Return::Reader value);
  inline  ::capnp::rpc::Return::Builder initReturn();
  inline void adoptReturn(::capnp::Orphan< ::capnp::rpc::Return>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Return> disownReturn();

  inline bool isFinish();
  inline bool hasFinish();
  inline  ::capnp::rpc::Finish::Builder getFinish();
  inline void setFinish( ::capnp::rpc::Finish::Reader value);
  inline  ::capnp::rpc::Finish::Builder initFinish();
  inline void adoptFinish(::capnp::Orphan< ::capnp::rpc::Finish>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Finish> disownFinish();

  inline bool isResolve();
  inline bool hasResolve();
  inline  ::capnp::rpc::Resolve::Builder getResolve();
  inline void setResolve( ::capnp::rpc::Resolve::Reader value);
  inline  ::capnp::rpc::Resolve::Builder initResolve();
  inline void adoptResolve(::capnp::Orphan< ::capnp::rpc::Resolve>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Resolve> disownResolve();

  inline bool isRelease();
  inline bool hasRelease();
  inline  ::capnp::rpc::Release::Builder getRelease();
  inline void setRelease( ::capnp::rpc::Release::Reader value);
  inline  ::capnp::rpc::Release::Builder initRelease();
  inline void adoptRelease(::capnp::Orphan< ::capnp::rpc::Release>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Release> disownRelease();

573 574 575 576
  inline bool isObsoleteSave();
  inline bool hasObsoleteSave();
  inline ::capnp::AnyPointer::Builder getObsoleteSave();
  inline ::capnp::AnyPointer::Builder initObsoleteSave();
577

578 579 580 581 582 583 584 585
  inline bool isBootstrap();
  inline bool hasBootstrap();
  inline  ::capnp::rpc::Bootstrap::Builder getBootstrap();
  inline void setBootstrap( ::capnp::rpc::Bootstrap::Reader value);
  inline  ::capnp::rpc::Bootstrap::Builder initBootstrap();
  inline void adoptBootstrap(::capnp::Orphan< ::capnp::rpc::Bootstrap>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Bootstrap> disownBootstrap();

586 587 588 589
  inline bool isObsoleteDelete();
  inline bool hasObsoleteDelete();
  inline ::capnp::AnyPointer::Builder getObsoleteDelete();
  inline ::capnp::AnyPointer::Builder initObsoleteDelete();
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

  inline bool isProvide();
  inline bool hasProvide();
  inline  ::capnp::rpc::Provide::Builder getProvide();
  inline void setProvide( ::capnp::rpc::Provide::Reader value);
  inline  ::capnp::rpc::Provide::Builder initProvide();
  inline void adoptProvide(::capnp::Orphan< ::capnp::rpc::Provide>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Provide> disownProvide();

  inline bool isAccept();
  inline bool hasAccept();
  inline  ::capnp::rpc::Accept::Builder getAccept();
  inline void setAccept( ::capnp::rpc::Accept::Reader value);
  inline  ::capnp::rpc::Accept::Builder initAccept();
  inline void adoptAccept(::capnp::Orphan< ::capnp::rpc::Accept>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Accept> disownAccept();

  inline bool isJoin();
  inline bool hasJoin();
  inline  ::capnp::rpc::Join::Builder getJoin();
  inline void setJoin( ::capnp::rpc::Join::Reader value);
  inline  ::capnp::rpc::Join::Builder initJoin();
  inline void adoptJoin(::capnp::Orphan< ::capnp::rpc::Join>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Join> disownJoin();

615 616 617 618 619 620 621 622
  inline bool isDisembargo();
  inline bool hasDisembargo();
  inline  ::capnp::rpc::Disembargo::Builder getDisembargo();
  inline void setDisembargo( ::capnp::rpc::Disembargo::Reader value);
  inline  ::capnp::rpc::Disembargo::Builder initDisembargo();
  inline void adoptDisembargo(::capnp::Orphan< ::capnp::rpc::Disembargo>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Disembargo> disownDisembargo();

623 624
private:
  ::capnp::_::StructBuilder _builder;
625
  template <typename, ::capnp::Kind>
626 627
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
628 629
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
630 631
};

632
#if !CAPNP_LITE
633 634 635 636 637
class Message::Pipeline {
public:
  typedef Message Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
638
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
639 640 641
      : _typeless(kj::mv(typeless)) {}

private:
642
  ::capnp::AnyPointer::Pipeline _typeless;
643
  friend class ::capnp::PipelineHook;
644
  template <typename, ::capnp::Kind>
645 646
  friend struct ::capnp::ToDynamic_;
};
647
#endif  // !CAPNP_LITE
648

649 650 651 652 653 654 655 656 657 658 659 660 661
class Bootstrap::Reader {
public:
  typedef Bootstrap Reads;

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

  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
  }

#if !CAPNP_LITE
  inline ::kj::StringTree toString() const {
662
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
  }
#endif  // !CAPNP_LITE

  inline  ::uint32_t getQuestionId() const;

  inline bool hasDeprecatedObjectId() const;
  inline ::capnp::AnyPointer::Reader getDeprecatedObjectId() const;

private:
  ::capnp::_::StructReader _reader;
  template <typename, ::capnp::Kind>
  friend struct ::capnp::ToDynamic_;
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
  template <typename, ::capnp::Kind>
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Bootstrap::Builder {
public:
  typedef Bootstrap 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; }

  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
#if !CAPNP_LITE
  inline ::kj::StringTree toString() const { return asReader().toString(); }
#endif  // !CAPNP_LITE

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

  inline bool hasDeprecatedObjectId();
  inline ::capnp::AnyPointer::Builder getDeprecatedObjectId();
  inline ::capnp::AnyPointer::Builder initDeprecatedObjectId();

private:
  ::capnp::_::StructBuilder _builder;
  template <typename, ::capnp::Kind>
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
711 712
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
713 714 715 716 717 718 719 720 721 722 723 724 725
};

#if !CAPNP_LITE
class Bootstrap::Pipeline {
public:
  typedef Bootstrap Pipelines;

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

private:
  ::capnp::AnyPointer::Pipeline _typeless;
726
  friend class ::capnp::PipelineHook;
727 728 729 730 731
  template <typename, ::capnp::Kind>
  friend struct ::capnp::ToDynamic_;
};
#endif  // !CAPNP_LITE

732 733 734 735 736 737 738
class Call::Reader {
public:
  typedef Call Reads;

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

739 740
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
741 742
  }

743
#if !CAPNP_LITE
744
  inline ::kj::StringTree toString() const {
745
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
746
  }
747
#endif  // !CAPNP_LITE
748

749 750
  inline  ::uint32_t getQuestionId() const;

Kenton Varda's avatar
Kenton Varda committed
751 752
  inline bool hasTarget() const;
  inline  ::capnp::rpc::MessageTarget::Reader getTarget() const;
753 754 755 756 757

  inline  ::uint64_t getInterfaceId() const;

  inline  ::uint16_t getMethodId() const;

758
  inline bool hasParams() const;
759
  inline  ::capnp::rpc::Payload::Reader getParams() const;
760

761
  inline typename SendResultsTo::Reader getSendResultsTo() const;
762

763 764
  inline bool getAllowThirdPartyTailCall() const;

765 766
private:
  ::capnp::_::StructReader _reader;
767
  template <typename, ::capnp::Kind>
768
  friend struct ::capnp::ToDynamic_;
769
  template <typename, ::capnp::Kind>
770
  friend struct ::capnp::_::PointerHelpers;
771
  template <typename, ::capnp::Kind>
772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Call::Builder {
public:
  typedef Call 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; }

788
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
789
#if !CAPNP_LITE
790
  inline ::kj::StringTree toString() const { return asReader().toString(); }
791
#endif  // !CAPNP_LITE
792 793 794 795

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

Kenton Varda's avatar
Kenton Varda committed
796 797 798 799 800 801
  inline bool hasTarget();
  inline  ::capnp::rpc::MessageTarget::Builder getTarget();
  inline void setTarget( ::capnp::rpc::MessageTarget::Reader value);
  inline  ::capnp::rpc::MessageTarget::Builder initTarget();
  inline void adoptTarget(::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> disownTarget();
802 803 804 805 806 807 808

  inline  ::uint64_t getInterfaceId();
  inline void setInterfaceId( ::uint64_t value);

  inline  ::uint16_t getMethodId();
  inline void setMethodId( ::uint16_t value);

809
  inline bool hasParams();
810 811 812 813 814
  inline  ::capnp::rpc::Payload::Builder getParams();
  inline void setParams( ::capnp::rpc::Payload::Reader value);
  inline  ::capnp::rpc::Payload::Builder initParams();
  inline void adoptParams(::capnp::Orphan< ::capnp::rpc::Payload>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Payload> disownParams();
815

816 817
  inline typename SendResultsTo::Builder getSendResultsTo();
  inline typename SendResultsTo::Builder initSendResultsTo();
818

819 820 821
  inline bool getAllowThirdPartyTailCall();
  inline void setAllowThirdPartyTailCall(bool value);

822 823
private:
  ::capnp::_::StructBuilder _builder;
824
  template <typename, ::capnp::Kind>
825 826
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
827 828
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
829 830
};

831
#if !CAPNP_LITE
832 833 834 835 836
class Call::Pipeline {
public:
  typedef Call Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
837
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
838 839
      : _typeless(kj::mv(typeless)) {}

840
  inline  ::capnp::rpc::MessageTarget::Pipeline getTarget();
841
  inline  ::capnp::rpc::Payload::Pipeline getParams();
842
  inline typename SendResultsTo::Pipeline getSendResultsTo();
843
private:
844
  ::capnp::AnyPointer::Pipeline _typeless;
845
  friend class ::capnp::PipelineHook;
846
  template <typename, ::capnp::Kind>
847 848
  friend struct ::capnp::ToDynamic_;
};
849
#endif  // !CAPNP_LITE
850

851
class Call::SendResultsTo::Reader {
852
public:
853
  typedef SendResultsTo Reads;
854 855 856 857

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

858 859
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
860 861
  }

862
#if !CAPNP_LITE
863
  inline ::kj::StringTree toString() const {
864
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
865
  }
866
#endif  // !CAPNP_LITE
867

868 869 870 871 872
  inline Which which() const;
  inline bool isCaller() const;
  inline  ::capnp::Void getCaller() const;

  inline bool isYourself() const;
873
  inline  ::capnp::Void getYourself() const;
874 875 876

  inline bool isThirdParty() const;
  inline bool hasThirdParty() const;
877
  inline ::capnp::AnyPointer::Reader getThirdParty() const;
878 879 880

private:
  ::capnp::_::StructReader _reader;
881
  template <typename, ::capnp::Kind>
882
  friend struct ::capnp::ToDynamic_;
883
  template <typename, ::capnp::Kind>
884
  friend struct ::capnp::_::PointerHelpers;
885
  template <typename, ::capnp::Kind>
886 887 888 889 890
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

891
class Call::SendResultsTo::Builder {
892
public:
893
  typedef SendResultsTo Builds;
894 895 896 897 898 899 900 901

  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; }

902
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
903
#if !CAPNP_LITE
904
  inline ::kj::StringTree toString() const { return asReader().toString(); }
905
#endif  // !CAPNP_LITE
906 907 908 909 910 911 912

  inline Which which();
  inline bool isCaller();
  inline  ::capnp::Void getCaller();
  inline void setCaller( ::capnp::Void value = ::capnp::VOID);

  inline bool isYourself();
913 914
  inline  ::capnp::Void getYourself();
  inline void setYourself( ::capnp::Void value = ::capnp::VOID);
915 916 917

  inline bool isThirdParty();
  inline bool hasThirdParty();
918 919
  inline ::capnp::AnyPointer::Builder getThirdParty();
  inline ::capnp::AnyPointer::Builder initThirdParty();
920 921 922

private:
  ::capnp::_::StructBuilder _builder;
923
  template <typename, ::capnp::Kind>
924 925
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
926 927
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
928 929
};

930
#if !CAPNP_LITE
931
class Call::SendResultsTo::Pipeline {
932
public:
933
  typedef SendResultsTo Pipelines;
934 935

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
936
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
937 938 939
      : _typeless(kj::mv(typeless)) {}

private:
940
  ::capnp::AnyPointer::Pipeline _typeless;
941
  friend class ::capnp::PipelineHook;
942
  template <typename, ::capnp::Kind>
943 944
  friend struct ::capnp::ToDynamic_;
};
945
#endif  // !CAPNP_LITE
946

947 948 949 950 951 952 953
class Return::Reader {
public:
  typedef Return Reads;

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

954 955
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
956 957
  }

958
#if !CAPNP_LITE
959
  inline ::kj::StringTree toString() const {
960
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
961
  }
962
#endif  // !CAPNP_LITE
963

964
  inline Which which() const;
965
  inline  ::uint32_t getAnswerId() const;
966

967
  inline bool getReleaseParamCaps() const;
968

969 970
  inline bool isResults() const;
  inline bool hasResults() const;
971
  inline  ::capnp::rpc::Payload::Reader getResults() const;
972 973 974 975 976 977 978 979

  inline bool isException() const;
  inline bool hasException() const;
  inline  ::capnp::rpc::Exception::Reader getException() const;

  inline bool isCanceled() const;
  inline  ::capnp::Void getCanceled() const;

980 981 982
  inline bool isResultsSentElsewhere() const;
  inline  ::capnp::Void getResultsSentElsewhere() const;

983 984
  inline bool isTakeFromOtherQuestion() const;
  inline  ::uint32_t getTakeFromOtherQuestion() const;
985 986 987

  inline bool isAcceptFromThirdParty() const;
  inline bool hasAcceptFromThirdParty() const;
988
  inline ::capnp::AnyPointer::Reader getAcceptFromThirdParty() const;
989

990 991
private:
  ::capnp::_::StructReader _reader;
992
  template <typename, ::capnp::Kind>
993
  friend struct ::capnp::ToDynamic_;
994
  template <typename, ::capnp::Kind>
995
  friend struct ::capnp::_::PointerHelpers;
996
  template <typename, ::capnp::Kind>
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Return::Builder {
public:
  typedef Return 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; }

1013
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1014
#if !CAPNP_LITE
1015
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1016
#endif  // !CAPNP_LITE
1017 1018

  inline Which which();
1019 1020
  inline  ::uint32_t getAnswerId();
  inline void setAnswerId( ::uint32_t value);
1021

1022 1023
  inline bool getReleaseParamCaps();
  inline void setReleaseParamCaps(bool value);
1024

1025 1026
  inline bool isResults();
  inline bool hasResults();
1027 1028 1029 1030 1031
  inline  ::capnp::rpc::Payload::Builder getResults();
  inline void setResults( ::capnp::rpc::Payload::Reader value);
  inline  ::capnp::rpc::Payload::Builder initResults();
  inline void adoptResults(::capnp::Orphan< ::capnp::rpc::Payload>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Payload> disownResults();
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044

  inline bool isException();
  inline bool hasException();
  inline  ::capnp::rpc::Exception::Builder getException();
  inline void setException( ::capnp::rpc::Exception::Reader value);
  inline  ::capnp::rpc::Exception::Builder initException();
  inline void adoptException(::capnp::Orphan< ::capnp::rpc::Exception>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Exception> disownException();

  inline bool isCanceled();
  inline  ::capnp::Void getCanceled();
  inline void setCanceled( ::capnp::Void value = ::capnp::VOID);

1045 1046 1047 1048
  inline bool isResultsSentElsewhere();
  inline  ::capnp::Void getResultsSentElsewhere();
  inline void setResultsSentElsewhere( ::capnp::Void value = ::capnp::VOID);

1049 1050 1051
  inline bool isTakeFromOtherQuestion();
  inline  ::uint32_t getTakeFromOtherQuestion();
  inline void setTakeFromOtherQuestion( ::uint32_t value);
1052 1053 1054

  inline bool isAcceptFromThirdParty();
  inline bool hasAcceptFromThirdParty();
1055 1056
  inline ::capnp::AnyPointer::Builder getAcceptFromThirdParty();
  inline ::capnp::AnyPointer::Builder initAcceptFromThirdParty();
1057

1058 1059
private:
  ::capnp::_::StructBuilder _builder;
1060
  template <typename, ::capnp::Kind>
1061 1062
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1063 1064
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1065 1066
};

1067
#if !CAPNP_LITE
1068 1069 1070 1071 1072
class Return::Pipeline {
public:
  typedef Return Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1073
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1074 1075 1076
      : _typeless(kj::mv(typeless)) {}

private:
1077
  ::capnp::AnyPointer::Pipeline _typeless;
1078
  friend class ::capnp::PipelineHook;
1079
  template <typename, ::capnp::Kind>
1080 1081
  friend struct ::capnp::ToDynamic_;
};
1082
#endif  // !CAPNP_LITE
1083 1084 1085 1086 1087 1088 1089 1090

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

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

1091 1092
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1093 1094
  }

1095
#if !CAPNP_LITE
1096
  inline ::kj::StringTree toString() const {
1097
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1098
  }
1099
#endif  // !CAPNP_LITE
1100

1101 1102
  inline  ::uint32_t getQuestionId() const;

1103
  inline bool getReleaseResultCaps() const;
1104 1105 1106

private:
  ::capnp::_::StructReader _reader;
1107
  template <typename, ::capnp::Kind>
1108
  friend struct ::capnp::ToDynamic_;
1109
  template <typename, ::capnp::Kind>
1110
  friend struct ::capnp::_::PointerHelpers;
1111
  template <typename, ::capnp::Kind>
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Finish::Builder {
public:
  typedef Finish 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; }

1128
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1129
#if !CAPNP_LITE
1130
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1131
#endif  // !CAPNP_LITE
1132 1133 1134 1135

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

1136 1137
  inline bool getReleaseResultCaps();
  inline void setReleaseResultCaps(bool value);
1138 1139 1140

private:
  ::capnp::_::StructBuilder _builder;
1141
  template <typename, ::capnp::Kind>
1142 1143
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1144 1145
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1146 1147
};

1148
#if !CAPNP_LITE
1149 1150 1151 1152 1153
class Finish::Pipeline {
public:
  typedef Finish Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1154
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1155 1156 1157
      : _typeless(kj::mv(typeless)) {}

private:
1158
  ::capnp::AnyPointer::Pipeline _typeless;
1159
  friend class ::capnp::PipelineHook;
1160
  template <typename, ::capnp::Kind>
1161 1162
  friend struct ::capnp::ToDynamic_;
};
1163
#endif  // !CAPNP_LITE
1164 1165 1166 1167 1168 1169 1170 1171

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

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

1172 1173
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1174 1175
  }

1176
#if !CAPNP_LITE
1177
  inline ::kj::StringTree toString() const {
1178
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1179
  }
1180
#endif  // !CAPNP_LITE
1181

1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
  inline Which which() const;
  inline  ::uint32_t getPromiseId() const;

  inline bool isCap() const;
  inline bool hasCap() const;
  inline  ::capnp::rpc::CapDescriptor::Reader getCap() const;

  inline bool isException() const;
  inline bool hasException() const;
  inline  ::capnp::rpc::Exception::Reader getException() const;

private:
  ::capnp::_::StructReader _reader;
1195
  template <typename, ::capnp::Kind>
1196
  friend struct ::capnp::ToDynamic_;
1197
  template <typename, ::capnp::Kind>
1198
  friend struct ::capnp::_::PointerHelpers;
1199
  template <typename, ::capnp::Kind>
1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Resolve::Builder {
public:
  typedef Resolve 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; }

1216
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1217
#if !CAPNP_LITE
1218
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1219
#endif  // !CAPNP_LITE
1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242

  inline Which which();
  inline  ::uint32_t getPromiseId();
  inline void setPromiseId( ::uint32_t value);

  inline bool isCap();
  inline bool hasCap();
  inline  ::capnp::rpc::CapDescriptor::Builder getCap();
  inline void setCap( ::capnp::rpc::CapDescriptor::Reader value);
  inline  ::capnp::rpc::CapDescriptor::Builder initCap();
  inline void adoptCap(::capnp::Orphan< ::capnp::rpc::CapDescriptor>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::CapDescriptor> disownCap();

  inline bool isException();
  inline bool hasException();
  inline  ::capnp::rpc::Exception::Builder getException();
  inline void setException( ::capnp::rpc::Exception::Reader value);
  inline  ::capnp::rpc::Exception::Builder initException();
  inline void adoptException(::capnp::Orphan< ::capnp::rpc::Exception>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::Exception> disownException();

private:
  ::capnp::_::StructBuilder _builder;
1243
  template <typename, ::capnp::Kind>
1244 1245
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1246 1247
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1248 1249
};

1250
#if !CAPNP_LITE
1251 1252 1253 1254 1255
class Resolve::Pipeline {
public:
  typedef Resolve Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1256
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1257 1258 1259
      : _typeless(kj::mv(typeless)) {}

private:
1260
  ::capnp::AnyPointer::Pipeline _typeless;
1261
  friend class ::capnp::PipelineHook;
1262
  template <typename, ::capnp::Kind>
1263 1264
  friend struct ::capnp::ToDynamic_;
};
1265
#endif  // !CAPNP_LITE
1266 1267 1268 1269 1270 1271 1272 1273

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

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

1274 1275
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1276 1277
  }

1278
#if !CAPNP_LITE
1279
  inline ::kj::StringTree toString() const {
1280
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1281
  }
1282
#endif  // !CAPNP_LITE
1283

1284 1285 1286 1287 1288 1289
  inline  ::uint32_t getId() const;

  inline  ::uint32_t getReferenceCount() const;

private:
  ::capnp::_::StructReader _reader;
1290
  template <typename, ::capnp::Kind>
1291
  friend struct ::capnp::ToDynamic_;
1292
  template <typename, ::capnp::Kind>
1293
  friend struct ::capnp::_::PointerHelpers;
1294
  template <typename, ::capnp::Kind>
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Release::Builder {
public:
  typedef Release 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; }

1311
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1312
#if !CAPNP_LITE
1313
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1314
#endif  // !CAPNP_LITE
1315 1316 1317 1318 1319 1320 1321 1322 1323

  inline  ::uint32_t getId();
  inline void setId( ::uint32_t value);

  inline  ::uint32_t getReferenceCount();
  inline void setReferenceCount( ::uint32_t value);

private:
  ::capnp::_::StructBuilder _builder;
1324
  template <typename, ::capnp::Kind>
1325 1326
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1327 1328
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1329 1330
};

1331
#if !CAPNP_LITE
1332 1333 1334 1335 1336
class Release::Pipeline {
public:
  typedef Release Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1337
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1338 1339 1340
      : _typeless(kj::mv(typeless)) {}

private:
1341
  ::capnp::AnyPointer::Pipeline _typeless;
1342
  friend class ::capnp::PipelineHook;
1343
  template <typename, ::capnp::Kind>
1344 1345
  friend struct ::capnp::ToDynamic_;
};
1346
#endif  // !CAPNP_LITE
1347 1348 1349 1350 1351 1352 1353 1354

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

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

1355 1356
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1357 1358
  }

1359
#if !CAPNP_LITE
1360
  inline ::kj::StringTree toString() const {
1361
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1362
  }
1363
#endif  // !CAPNP_LITE
1364

Kenton Varda's avatar
Kenton Varda committed
1365 1366
  inline bool hasTarget() const;
  inline  ::capnp::rpc::MessageTarget::Reader getTarget() const;
1367

1368
  inline typename Context::Reader getContext() const;
1369 1370 1371

private:
  ::capnp::_::StructReader _reader;
1372
  template <typename, ::capnp::Kind>
1373
  friend struct ::capnp::ToDynamic_;
1374
  template <typename, ::capnp::Kind>
1375
  friend struct ::capnp::_::PointerHelpers;
1376
  template <typename, ::capnp::Kind>
1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Disembargo::Builder {
public:
  typedef Disembargo 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; }

1393
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1394
#if !CAPNP_LITE
1395
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1396
#endif  // !CAPNP_LITE
1397

Kenton Varda's avatar
Kenton Varda committed
1398 1399 1400 1401 1402 1403
  inline bool hasTarget();
  inline  ::capnp::rpc::MessageTarget::Builder getTarget();
  inline void setTarget( ::capnp::rpc::MessageTarget::Reader value);
  inline  ::capnp::rpc::MessageTarget::Builder initTarget();
  inline void adoptTarget(::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> disownTarget();
1404

1405 1406
  inline typename Context::Builder getContext();
  inline typename Context::Builder initContext();
1407 1408 1409

private:
  ::capnp::_::StructBuilder _builder;
1410
  template <typename, ::capnp::Kind>
1411 1412
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1413 1414
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1415 1416
};

1417
#if !CAPNP_LITE
1418 1419 1420 1421 1422
class Disembargo::Pipeline {
public:
  typedef Disembargo Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1423
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1424 1425
      : _typeless(kj::mv(typeless)) {}

1426
  inline  ::capnp::rpc::MessageTarget::Pipeline getTarget();
1427
  inline typename Context::Pipeline getContext();
1428
private:
1429
  ::capnp::AnyPointer::Pipeline _typeless;
1430
  friend class ::capnp::PipelineHook;
1431
  template <typename, ::capnp::Kind>
1432 1433
  friend struct ::capnp::ToDynamic_;
};
1434
#endif  // !CAPNP_LITE
1435 1436

class Disembargo::Context::Reader {
1437
public:
1438
  typedef Context Reads;
1439 1440 1441 1442

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

1443 1444
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1445 1446
  }

1447
#if !CAPNP_LITE
1448
  inline ::kj::StringTree toString() const {
1449
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1450
  }
1451
#endif  // !CAPNP_LITE
1452

1453 1454 1455
  inline Which which() const;
  inline bool isSenderLoopback() const;
  inline  ::uint32_t getSenderLoopback() const;
1456

1457 1458 1459 1460 1461 1462 1463 1464
  inline bool isReceiverLoopback() const;
  inline  ::uint32_t getReceiverLoopback() const;

  inline bool isAccept() const;
  inline  ::capnp::Void getAccept() const;

  inline bool isProvide() const;
  inline  ::uint32_t getProvide() const;
1465 1466 1467

private:
  ::capnp::_::StructReader _reader;
1468
  template <typename, ::capnp::Kind>
1469
  friend struct ::capnp::ToDynamic_;
1470
  template <typename, ::capnp::Kind>
1471
  friend struct ::capnp::_::PointerHelpers;
1472
  template <typename, ::capnp::Kind>
1473 1474 1475 1476 1477
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

1478
class Disembargo::Context::Builder {
1479
public:
1480
  typedef Context Builds;
1481 1482 1483 1484 1485 1486 1487 1488

  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; }

1489
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1490
#if !CAPNP_LITE
1491
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1492
#endif  // !CAPNP_LITE
1493

1494 1495 1496 1497
  inline Which which();
  inline bool isSenderLoopback();
  inline  ::uint32_t getSenderLoopback();
  inline void setSenderLoopback( ::uint32_t value);
1498

1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509
  inline bool isReceiverLoopback();
  inline  ::uint32_t getReceiverLoopback();
  inline void setReceiverLoopback( ::uint32_t value);

  inline bool isAccept();
  inline  ::capnp::Void getAccept();
  inline void setAccept( ::capnp::Void value = ::capnp::VOID);

  inline bool isProvide();
  inline  ::uint32_t getProvide();
  inline void setProvide( ::uint32_t value);
1510 1511 1512

private:
  ::capnp::_::StructBuilder _builder;
1513
  template <typename, ::capnp::Kind>
1514 1515
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1516 1517
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1518 1519
};

1520
#if !CAPNP_LITE
1521
class Disembargo::Context::Pipeline {
1522
public:
1523
  typedef Context Pipelines;
1524 1525

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1526
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1527 1528 1529
      : _typeless(kj::mv(typeless)) {}

private:
1530
  ::capnp::AnyPointer::Pipeline _typeless;
1531
  friend class ::capnp::PipelineHook;
1532
  template <typename, ::capnp::Kind>
1533 1534
  friend struct ::capnp::ToDynamic_;
};
1535
#endif  // !CAPNP_LITE
1536 1537 1538 1539 1540 1541 1542 1543

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

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

1544 1545
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1546 1547
  }

1548
#if !CAPNP_LITE
1549
  inline ::kj::StringTree toString() const {
1550
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1551
  }
1552
#endif  // !CAPNP_LITE
1553

1554 1555
  inline  ::uint32_t getQuestionId() const;

Kenton Varda's avatar
Kenton Varda committed
1556 1557
  inline bool hasTarget() const;
  inline  ::capnp::rpc::MessageTarget::Reader getTarget() const;
1558 1559

  inline bool hasRecipient() const;
1560
  inline ::capnp::AnyPointer::Reader getRecipient() const;
1561 1562 1563

private:
  ::capnp::_::StructReader _reader;
1564
  template <typename, ::capnp::Kind>
1565
  friend struct ::capnp::ToDynamic_;
1566
  template <typename, ::capnp::Kind>
1567
  friend struct ::capnp::_::PointerHelpers;
1568
  template <typename, ::capnp::Kind>
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Provide::Builder {
public:
  typedef Provide 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; }

1585
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1586
#if !CAPNP_LITE
1587
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1588
#endif  // !CAPNP_LITE
1589 1590 1591 1592

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

Kenton Varda's avatar
Kenton Varda committed
1593 1594 1595 1596 1597 1598
  inline bool hasTarget();
  inline  ::capnp::rpc::MessageTarget::Builder getTarget();
  inline void setTarget( ::capnp::rpc::MessageTarget::Reader value);
  inline  ::capnp::rpc::MessageTarget::Builder initTarget();
  inline void adoptTarget(::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> disownTarget();
1599 1600

  inline bool hasRecipient();
1601 1602
  inline ::capnp::AnyPointer::Builder getRecipient();
  inline ::capnp::AnyPointer::Builder initRecipient();
1603 1604 1605

private:
  ::capnp::_::StructBuilder _builder;
1606
  template <typename, ::capnp::Kind>
1607 1608
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1609 1610
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1611 1612
};

1613
#if !CAPNP_LITE
1614 1615 1616 1617 1618
class Provide::Pipeline {
public:
  typedef Provide Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1619
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1620 1621
      : _typeless(kj::mv(typeless)) {}

1622
  inline  ::capnp::rpc::MessageTarget::Pipeline getTarget();
1623
private:
1624
  ::capnp::AnyPointer::Pipeline _typeless;
1625
  friend class ::capnp::PipelineHook;
1626
  template <typename, ::capnp::Kind>
1627 1628
  friend struct ::capnp::ToDynamic_;
};
1629
#endif  // !CAPNP_LITE
1630

Kenton Varda's avatar
Kenton Varda committed
1631
class Accept::Reader {
1632
public:
Kenton Varda's avatar
Kenton Varda committed
1633
  typedef Accept Reads;
1634 1635 1636 1637

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

1638 1639
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1640 1641
  }

1642
#if !CAPNP_LITE
1643
  inline ::kj::StringTree toString() const {
1644
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1645
  }
1646
#endif  // !CAPNP_LITE
1647

Kenton Varda's avatar
Kenton Varda committed
1648
  inline  ::uint32_t getQuestionId() const;
1649

Kenton Varda's avatar
Kenton Varda committed
1650
  inline bool hasProvision() const;
1651
  inline ::capnp::AnyPointer::Reader getProvision() const;
Kenton Varda's avatar
Kenton Varda committed
1652 1653

  inline bool getEmbargo() const;
1654 1655 1656

private:
  ::capnp::_::StructReader _reader;
1657
  template <typename, ::capnp::Kind>
1658
  friend struct ::capnp::ToDynamic_;
1659
  template <typename, ::capnp::Kind>
1660
  friend struct ::capnp::_::PointerHelpers;
1661
  template <typename, ::capnp::Kind>
1662 1663 1664 1665 1666
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

Kenton Varda's avatar
Kenton Varda committed
1667
class Accept::Builder {
1668
public:
Kenton Varda's avatar
Kenton Varda committed
1669
  typedef Accept Builds;
1670 1671 1672 1673 1674 1675 1676 1677

  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; }

1678
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1679
#if !CAPNP_LITE
1680
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1681
#endif  // !CAPNP_LITE
1682

Kenton Varda's avatar
Kenton Varda committed
1683 1684
  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);
1685

Kenton Varda's avatar
Kenton Varda committed
1686
  inline bool hasProvision();
1687 1688
  inline ::capnp::AnyPointer::Builder getProvision();
  inline ::capnp::AnyPointer::Builder initProvision();
Kenton Varda's avatar
Kenton Varda committed
1689 1690 1691

  inline bool getEmbargo();
  inline void setEmbargo(bool value);
1692 1693 1694

private:
  ::capnp::_::StructBuilder _builder;
1695
  template <typename, ::capnp::Kind>
1696 1697
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1698 1699
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1700 1701
};

1702
#if !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
1703
class Accept::Pipeline {
1704
public:
Kenton Varda's avatar
Kenton Varda committed
1705
  typedef Accept Pipelines;
1706 1707

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1708
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1709 1710 1711
      : _typeless(kj::mv(typeless)) {}

private:
1712
  ::capnp::AnyPointer::Pipeline _typeless;
1713
  friend class ::capnp::PipelineHook;
1714
  template <typename, ::capnp::Kind>
1715 1716
  friend struct ::capnp::ToDynamic_;
};
1717
#endif  // !CAPNP_LITE
1718

Kenton Varda's avatar
Kenton Varda committed
1719
class Join::Reader {
1720
public:
Kenton Varda's avatar
Kenton Varda committed
1721
  typedef Join Reads;
1722 1723 1724 1725

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

1726 1727
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1728 1729
  }

1730
#if !CAPNP_LITE
1731
  inline ::kj::StringTree toString() const {
1732
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1733
  }
1734
#endif  // !CAPNP_LITE
1735

1736 1737
  inline  ::uint32_t getQuestionId() const;

1738 1739
  inline bool hasTarget() const;
  inline  ::capnp::rpc::MessageTarget::Reader getTarget() const;
1740

Kenton Varda's avatar
Kenton Varda committed
1741
  inline bool hasKeyPart() const;
1742
  inline ::capnp::AnyPointer::Reader getKeyPart() const;
1743

1744 1745
private:
  ::capnp::_::StructReader _reader;
1746
  template <typename, ::capnp::Kind>
1747
  friend struct ::capnp::ToDynamic_;
1748
  template <typename, ::capnp::Kind>
1749
  friend struct ::capnp::_::PointerHelpers;
1750
  template <typename, ::capnp::Kind>
1751 1752 1753 1754 1755
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

Kenton Varda's avatar
Kenton Varda committed
1756
class Join::Builder {
1757
public:
Kenton Varda's avatar
Kenton Varda committed
1758
  typedef Join Builds;
1759 1760 1761 1762 1763 1764 1765 1766

  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; }

1767
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1768
#if !CAPNP_LITE
1769
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1770
#endif  // !CAPNP_LITE
1771 1772 1773 1774

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

1775 1776 1777 1778 1779 1780
  inline bool hasTarget();
  inline  ::capnp::rpc::MessageTarget::Builder getTarget();
  inline void setTarget( ::capnp::rpc::MessageTarget::Reader value);
  inline  ::capnp::rpc::MessageTarget::Builder initTarget();
  inline void adoptTarget(::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> disownTarget();
1781

Kenton Varda's avatar
Kenton Varda committed
1782
  inline bool hasKeyPart();
1783 1784
  inline ::capnp::AnyPointer::Builder getKeyPart();
  inline ::capnp::AnyPointer::Builder initKeyPart();
1785

1786 1787
private:
  ::capnp::_::StructBuilder _builder;
1788
  template <typename, ::capnp::Kind>
1789 1790
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1791 1792
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1793 1794
};

1795
#if !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
1796
class Join::Pipeline {
1797
public:
Kenton Varda's avatar
Kenton Varda committed
1798
  typedef Join Pipelines;
1799 1800

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1801
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1802 1803
      : _typeless(kj::mv(typeless)) {}

1804
  inline  ::capnp::rpc::MessageTarget::Pipeline getTarget();
1805
private:
1806
  ::capnp::AnyPointer::Pipeline _typeless;
1807
  friend class ::capnp::PipelineHook;
1808
  template <typename, ::capnp::Kind>
1809 1810
  friend struct ::capnp::ToDynamic_;
};
1811
#endif  // !CAPNP_LITE
1812

Kenton Varda's avatar
Kenton Varda committed
1813
class MessageTarget::Reader {
1814
public:
Kenton Varda's avatar
Kenton Varda committed
1815
  typedef MessageTarget Reads;
1816 1817 1818 1819

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

1820 1821
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1822 1823
  }

1824
#if !CAPNP_LITE
1825
  inline ::kj::StringTree toString() const {
1826
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1827
  }
1828
#endif  // !CAPNP_LITE
1829

Kenton Varda's avatar
Kenton Varda committed
1830
  inline Which which() const;
1831 1832
  inline bool isImportedCap() const;
  inline  ::uint32_t getImportedCap() const;
1833

Kenton Varda's avatar
Kenton Varda committed
1834 1835 1836
  inline bool isPromisedAnswer() const;
  inline bool hasPromisedAnswer() const;
  inline  ::capnp::rpc::PromisedAnswer::Reader getPromisedAnswer() const;
1837 1838 1839

private:
  ::capnp::_::StructReader _reader;
1840
  template <typename, ::capnp::Kind>
1841
  friend struct ::capnp::ToDynamic_;
1842
  template <typename, ::capnp::Kind>
1843
  friend struct ::capnp::_::PointerHelpers;
1844
  template <typename, ::capnp::Kind>
1845 1846 1847 1848 1849
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

Kenton Varda's avatar
Kenton Varda committed
1850
class MessageTarget::Builder {
1851
public:
Kenton Varda's avatar
Kenton Varda committed
1852
  typedef MessageTarget Builds;
1853 1854 1855 1856 1857 1858 1859 1860

  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; }

1861
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1862
#if !CAPNP_LITE
1863
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1864
#endif  // !CAPNP_LITE
1865

Kenton Varda's avatar
Kenton Varda committed
1866
  inline Which which();
1867 1868 1869
  inline bool isImportedCap();
  inline  ::uint32_t getImportedCap();
  inline void setImportedCap( ::uint32_t value);
1870

Kenton Varda's avatar
Kenton Varda committed
1871 1872 1873 1874 1875 1876 1877
  inline bool isPromisedAnswer();
  inline bool hasPromisedAnswer();
  inline  ::capnp::rpc::PromisedAnswer::Builder getPromisedAnswer();
  inline void setPromisedAnswer( ::capnp::rpc::PromisedAnswer::Reader value);
  inline  ::capnp::rpc::PromisedAnswer::Builder initPromisedAnswer();
  inline void adoptPromisedAnswer(::capnp::Orphan< ::capnp::rpc::PromisedAnswer>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::PromisedAnswer> disownPromisedAnswer();
1878 1879 1880

private:
  ::capnp::_::StructBuilder _builder;
1881
  template <typename, ::capnp::Kind>
1882 1883
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1884 1885
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1886 1887
};

1888
#if !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
1889
class MessageTarget::Pipeline {
1890
public:
Kenton Varda's avatar
Kenton Varda committed
1891
  typedef MessageTarget Pipelines;
1892 1893

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1894
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1895 1896 1897
      : _typeless(kj::mv(typeless)) {}

private:
1898
  ::capnp::AnyPointer::Pipeline _typeless;
1899
  friend class ::capnp::PipelineHook;
1900
  template <typename, ::capnp::Kind>
1901 1902
  friend struct ::capnp::ToDynamic_;
};
1903
#endif  // !CAPNP_LITE
1904

1905 1906 1907 1908 1909 1910 1911
class Payload::Reader {
public:
  typedef Payload Reads;

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

1912 1913
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
1914 1915
  }

1916
#if !CAPNP_LITE
1917
  inline ::kj::StringTree toString() const {
1918
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1919
  }
1920
#endif  // !CAPNP_LITE
1921

1922 1923 1924 1925
  inline bool hasContent() const;
  inline ::capnp::AnyPointer::Reader getContent() const;

  inline bool hasCapTable() const;
1926
  inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Reader getCapTable() const;
1927 1928 1929

private:
  ::capnp::_::StructReader _reader;
1930
  template <typename, ::capnp::Kind>
1931
  friend struct ::capnp::ToDynamic_;
1932
  template <typename, ::capnp::Kind>
1933
  friend struct ::capnp::_::PointerHelpers;
1934
  template <typename, ::capnp::Kind>
1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Payload::Builder {
public:
  typedef Payload 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; }

1951
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1952
#if !CAPNP_LITE
1953
  inline ::kj::StringTree toString() const { return asReader().toString(); }
1954
#endif  // !CAPNP_LITE
1955 1956 1957 1958 1959 1960

  inline bool hasContent();
  inline ::capnp::AnyPointer::Builder getContent();
  inline ::capnp::AnyPointer::Builder initContent();

  inline bool hasCapTable();
1961 1962 1963 1964 1965
  inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Builder getCapTable();
  inline void setCapTable( ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Reader value);
  inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Builder initCapTable(unsigned int size);
  inline void adoptCapTable(::capnp::Orphan< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>> disownCapTable();
1966 1967 1968

private:
  ::capnp::_::StructBuilder _builder;
1969
  template <typename, ::capnp::Kind>
1970 1971
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
1972 1973
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
1974 1975
};

1976
#if !CAPNP_LITE
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986
class Payload::Pipeline {
public:
  typedef Payload Pipelines;

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

private:
  ::capnp::AnyPointer::Pipeline _typeless;
1987
  friend class ::capnp::PipelineHook;
1988
  template <typename, ::capnp::Kind>
1989 1990
  friend struct ::capnp::ToDynamic_;
};
1991
#endif  // !CAPNP_LITE
1992

1993 1994 1995 1996 1997 1998 1999
class CapDescriptor::Reader {
public:
  typedef CapDescriptor Reads;

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

2000 2001
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2002 2003
  }

2004
#if !CAPNP_LITE
2005
  inline ::kj::StringTree toString() const {
2006
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2007
  }
2008
#endif  // !CAPNP_LITE
2009

2010
  inline Which which() const;
2011 2012 2013
  inline bool isNone() const;
  inline  ::capnp::Void getNone() const;

2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032
  inline bool isSenderHosted() const;
  inline  ::uint32_t getSenderHosted() const;

  inline bool isSenderPromise() const;
  inline  ::uint32_t getSenderPromise() const;

  inline bool isReceiverHosted() const;
  inline  ::uint32_t getReceiverHosted() const;

  inline bool isReceiverAnswer() const;
  inline bool hasReceiverAnswer() const;
  inline  ::capnp::rpc::PromisedAnswer::Reader getReceiverAnswer() const;

  inline bool isThirdPartyHosted() const;
  inline bool hasThirdPartyHosted() const;
  inline  ::capnp::rpc::ThirdPartyCapDescriptor::Reader getThirdPartyHosted() const;

private:
  ::capnp::_::StructReader _reader;
2033
  template <typename, ::capnp::Kind>
2034
  friend struct ::capnp::ToDynamic_;
2035
  template <typename, ::capnp::Kind>
2036
  friend struct ::capnp::_::PointerHelpers;
2037
  template <typename, ::capnp::Kind>
2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class CapDescriptor::Builder {
public:
  typedef CapDescriptor 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; }

2054
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2055
#if !CAPNP_LITE
2056
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2057
#endif  // !CAPNP_LITE
2058 2059

  inline Which which();
2060 2061 2062 2063
  inline bool isNone();
  inline  ::capnp::Void getNone();
  inline void setNone( ::capnp::Void value = ::capnp::VOID);

2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093
  inline bool isSenderHosted();
  inline  ::uint32_t getSenderHosted();
  inline void setSenderHosted( ::uint32_t value);

  inline bool isSenderPromise();
  inline  ::uint32_t getSenderPromise();
  inline void setSenderPromise( ::uint32_t value);

  inline bool isReceiverHosted();
  inline  ::uint32_t getReceiverHosted();
  inline void setReceiverHosted( ::uint32_t value);

  inline bool isReceiverAnswer();
  inline bool hasReceiverAnswer();
  inline  ::capnp::rpc::PromisedAnswer::Builder getReceiverAnswer();
  inline void setReceiverAnswer( ::capnp::rpc::PromisedAnswer::Reader value);
  inline  ::capnp::rpc::PromisedAnswer::Builder initReceiverAnswer();
  inline void adoptReceiverAnswer(::capnp::Orphan< ::capnp::rpc::PromisedAnswer>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::PromisedAnswer> disownReceiverAnswer();

  inline bool isThirdPartyHosted();
  inline bool hasThirdPartyHosted();
  inline  ::capnp::rpc::ThirdPartyCapDescriptor::Builder getThirdPartyHosted();
  inline void setThirdPartyHosted( ::capnp::rpc::ThirdPartyCapDescriptor::Reader value);
  inline  ::capnp::rpc::ThirdPartyCapDescriptor::Builder initThirdPartyHosted();
  inline void adoptThirdPartyHosted(::capnp::Orphan< ::capnp::rpc::ThirdPartyCapDescriptor>&& value);
  inline ::capnp::Orphan< ::capnp::rpc::ThirdPartyCapDescriptor> disownThirdPartyHosted();

private:
  ::capnp::_::StructBuilder _builder;
2094
  template <typename, ::capnp::Kind>
2095 2096
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2097 2098
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2099 2100
};

2101
#if !CAPNP_LITE
2102 2103 2104 2105 2106
class CapDescriptor::Pipeline {
public:
  typedef CapDescriptor Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2107
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2108 2109 2110
      : _typeless(kj::mv(typeless)) {}

private:
2111
  ::capnp::AnyPointer::Pipeline _typeless;
2112
  friend class ::capnp::PipelineHook;
2113
  template <typename, ::capnp::Kind>
2114 2115
  friend struct ::capnp::ToDynamic_;
};
2116
#endif  // !CAPNP_LITE
2117 2118 2119 2120 2121 2122 2123 2124

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

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

2125 2126
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2127 2128
  }

2129
#if !CAPNP_LITE
2130
  inline ::kj::StringTree toString() const {
2131
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2132
  }
2133
#endif  // !CAPNP_LITE
2134

2135 2136 2137
  inline  ::uint32_t getQuestionId() const;

  inline bool hasTransform() const;
2138
  inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Reader getTransform() const;
2139 2140 2141

private:
  ::capnp::_::StructReader _reader;
2142
  template <typename, ::capnp::Kind>
2143
  friend struct ::capnp::ToDynamic_;
2144
  template <typename, ::capnp::Kind>
2145
  friend struct ::capnp::_::PointerHelpers;
2146
  template <typename, ::capnp::Kind>
2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class PromisedAnswer::Builder {
public:
  typedef PromisedAnswer 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; }

2163
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2164
#if !CAPNP_LITE
2165
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2166
#endif  // !CAPNP_LITE
2167 2168 2169 2170 2171

  inline  ::uint32_t getQuestionId();
  inline void setQuestionId( ::uint32_t value);

  inline bool hasTransform();
2172 2173 2174 2175 2176
  inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Builder getTransform();
  inline void setTransform( ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Reader value);
  inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Builder initTransform(unsigned int size);
  inline void adoptTransform(::capnp::Orphan< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>&& value);
  inline ::capnp::Orphan< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>> disownTransform();
2177 2178 2179

private:
  ::capnp::_::StructBuilder _builder;
2180
  template <typename, ::capnp::Kind>
2181 2182
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2183 2184
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2185 2186
};

2187
#if !CAPNP_LITE
2188 2189 2190 2191 2192
class PromisedAnswer::Pipeline {
public:
  typedef PromisedAnswer Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2193
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2194 2195 2196
      : _typeless(kj::mv(typeless)) {}

private:
2197
  ::capnp::AnyPointer::Pipeline _typeless;
2198
  friend class ::capnp::PipelineHook;
2199
  template <typename, ::capnp::Kind>
2200 2201
  friend struct ::capnp::ToDynamic_;
};
2202
#endif  // !CAPNP_LITE
2203 2204 2205 2206 2207 2208 2209 2210

class PromisedAnswer::Op::Reader {
public:
  typedef Op Reads;

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

2211 2212
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2213 2214
  }

2215
#if !CAPNP_LITE
2216
  inline ::kj::StringTree toString() const {
2217
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2218
  }
2219
#endif  // !CAPNP_LITE
2220

2221 2222 2223 2224 2225 2226 2227 2228 2229
  inline Which which() const;
  inline bool isNoop() const;
  inline  ::capnp::Void getNoop() const;

  inline bool isGetPointerField() const;
  inline  ::uint16_t getGetPointerField() const;

private:
  ::capnp::_::StructReader _reader;
2230
  template <typename, ::capnp::Kind>
2231
  friend struct ::capnp::ToDynamic_;
2232
  template <typename, ::capnp::Kind>
2233
  friend struct ::capnp::_::PointerHelpers;
2234
  template <typename, ::capnp::Kind>
2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class PromisedAnswer::Op::Builder {
public:
  typedef Op 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; }

2251
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2252
#if !CAPNP_LITE
2253
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2254
#endif  // !CAPNP_LITE
2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266

  inline Which which();
  inline bool isNoop();
  inline  ::capnp::Void getNoop();
  inline void setNoop( ::capnp::Void value = ::capnp::VOID);

  inline bool isGetPointerField();
  inline  ::uint16_t getGetPointerField();
  inline void setGetPointerField( ::uint16_t value);

private:
  ::capnp::_::StructBuilder _builder;
2267
  template <typename, ::capnp::Kind>
2268 2269
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2270 2271
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2272 2273
};

2274
#if !CAPNP_LITE
2275 2276 2277 2278 2279
class PromisedAnswer::Op::Pipeline {
public:
  typedef Op Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2280
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2281 2282 2283
      : _typeless(kj::mv(typeless)) {}

private:
2284
  ::capnp::AnyPointer::Pipeline _typeless;
2285
  friend class ::capnp::PipelineHook;
2286
  template <typename, ::capnp::Kind>
2287 2288
  friend struct ::capnp::ToDynamic_;
};
2289
#endif  // !CAPNP_LITE
2290 2291 2292 2293 2294 2295 2296 2297

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

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

2298 2299
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2300 2301
  }

2302
#if !CAPNP_LITE
2303
  inline ::kj::StringTree toString() const {
2304
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2305
  }
2306
#endif  // !CAPNP_LITE
2307

2308
  inline bool hasId() const;
2309
  inline ::capnp::AnyPointer::Reader getId() const;
2310 2311 2312 2313 2314

  inline  ::uint32_t getVineId() const;

private:
  ::capnp::_::StructReader _reader;
2315
  template <typename, ::capnp::Kind>
2316
  friend struct ::capnp::ToDynamic_;
2317
  template <typename, ::capnp::Kind>
2318
  friend struct ::capnp::_::PointerHelpers;
2319
  template <typename, ::capnp::Kind>
2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class ThirdPartyCapDescriptor::Builder {
public:
  typedef ThirdPartyCapDescriptor 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; }

2336
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2337
#if !CAPNP_LITE
2338
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2339
#endif  // !CAPNP_LITE
2340 2341

  inline bool hasId();
2342 2343
  inline ::capnp::AnyPointer::Builder getId();
  inline ::capnp::AnyPointer::Builder initId();
2344 2345 2346 2347 2348 2349

  inline  ::uint32_t getVineId();
  inline void setVineId( ::uint32_t value);

private:
  ::capnp::_::StructBuilder _builder;
2350
  template <typename, ::capnp::Kind>
2351 2352
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2353 2354
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2355 2356
};

2357
#if !CAPNP_LITE
2358 2359 2360 2361 2362
class ThirdPartyCapDescriptor::Pipeline {
public:
  typedef ThirdPartyCapDescriptor Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2363
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2364 2365 2366
      : _typeless(kj::mv(typeless)) {}

private:
2367
  ::capnp::AnyPointer::Pipeline _typeless;
2368
  friend class ::capnp::PipelineHook;
2369
  template <typename, ::capnp::Kind>
2370 2371
  friend struct ::capnp::ToDynamic_;
};
2372
#endif  // !CAPNP_LITE
2373 2374 2375 2376 2377 2378 2379 2380

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

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

2381 2382
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2383 2384
  }

2385
#if !CAPNP_LITE
2386
  inline ::kj::StringTree toString() const {
2387
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2388
  }
2389
#endif  // !CAPNP_LITE
2390

2391 2392 2393
  inline bool hasReason() const;
  inline  ::capnp::Text::Reader getReason() const;

2394
  inline bool getObsoleteIsCallersFault() const;
2395

2396 2397 2398
  inline  ::uint16_t getObsoleteDurability() const;

  inline  ::capnp::rpc::Exception::Type getType() const;
2399 2400 2401

private:
  ::capnp::_::StructReader _reader;
2402
  template <typename, ::capnp::Kind>
2403
  friend struct ::capnp::ToDynamic_;
2404
  template <typename, ::capnp::Kind>
2405
  friend struct ::capnp::_::PointerHelpers;
2406
  template <typename, ::capnp::Kind>
2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422
  friend struct ::capnp::List;
  friend class ::capnp::MessageBuilder;
  friend class ::capnp::Orphanage;
};

class Exception::Builder {
public:
  typedef Exception 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; }

2423
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2424
#if !CAPNP_LITE
2425
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2426
#endif  // !CAPNP_LITE
2427 2428 2429 2430 2431 2432 2433 2434

  inline bool hasReason();
  inline  ::capnp::Text::Builder getReason();
  inline void setReason( ::capnp::Text::Reader value);
  inline  ::capnp::Text::Builder initReason(unsigned int size);
  inline void adoptReason(::capnp::Orphan< ::capnp::Text>&& value);
  inline ::capnp::Orphan< ::capnp::Text> disownReason();

2435 2436 2437 2438 2439
  inline bool getObsoleteIsCallersFault();
  inline void setObsoleteIsCallersFault(bool value);

  inline  ::uint16_t getObsoleteDurability();
  inline void setObsoleteDurability( ::uint16_t value);
2440

2441 2442
  inline  ::capnp::rpc::Exception::Type getType();
  inline void setType( ::capnp::rpc::Exception::Type value);
2443 2444 2445

private:
  ::capnp::_::StructBuilder _builder;
2446
  template <typename, ::capnp::Kind>
2447 2448
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2449 2450
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2451 2452
};

2453
#if !CAPNP_LITE
2454 2455 2456 2457 2458
class Exception::Pipeline {
public:
  typedef Exception Pipelines;

  inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2459
  inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2460 2461 2462
      : _typeless(kj::mv(typeless)) {}

private:
2463
  ::capnp::AnyPointer::Pipeline _typeless;
2464
  friend class ::capnp::PipelineHook;
2465
  template <typename, ::capnp::Kind>
2466 2467
  friend struct ::capnp::ToDynamic_;
};
2468
#endif  // !CAPNP_LITE
2469 2470 2471

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

2472
inline  ::capnp::rpc::Message::Which Message::Reader::which() const {
2473
  return _reader.getDataField<Which>(
2474
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
2475
}
2476
inline  ::capnp::rpc::Message::Which Message::Builder::which() {
2477
  return _builder.getDataField<Which>(
2478
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
2479 2480 2481 2482 2483 2484 2485 2486 2487 2488
}

inline bool Message::Reader::isUnimplemented() const {
  return which() == Message::UNIMPLEMENTED;
}
inline bool Message::Builder::isUnimplemented() {
  return which() == Message::UNIMPLEMENTED;
}
inline bool Message::Reader::hasUnimplemented() const {
  if (which() != Message::UNIMPLEMENTED) return false;
2489
  return !_reader.getPointerField(
2490
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2491 2492 2493
}
inline bool Message::Builder::hasUnimplemented() {
  if (which() != Message::UNIMPLEMENTED) return false;
2494
  return !_builder.getPointerField(
2495
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2496 2497
}
inline  ::capnp::rpc::Message::Reader Message::Reader::getUnimplemented() const {
2498
  KJ_IREQUIRE((which() == Message::UNIMPLEMENTED),
2499
              "Must check which() before get()ing a union member.");
2500
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::get(_reader.getPointerField(
2501
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2502 2503
}
inline  ::capnp::rpc::Message::Builder Message::Builder::getUnimplemented() {
2504
  KJ_IREQUIRE((which() == Message::UNIMPLEMENTED),
2505
              "Must check which() before get()ing a union member.");
2506
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::get(_builder.getPointerField(
2507
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2508 2509 2510
}
inline void Message::Builder::setUnimplemented( ::capnp::rpc::Message::Reader value) {
  _builder.setDataField<Message::Which>(
2511
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::UNIMPLEMENTED);
2512
  ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::set(_builder.getPointerField(
2513
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2514 2515 2516
}
inline  ::capnp::rpc::Message::Builder Message::Builder::initUnimplemented() {
  _builder.setDataField<Message::Which>(
2517
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::UNIMPLEMENTED);
2518
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::init(_builder.getPointerField(
2519
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2520 2521 2522 2523
}
inline void Message::Builder::adoptUnimplemented(
    ::capnp::Orphan< ::capnp::rpc::Message>&& value) {
  _builder.setDataField<Message::Which>(
2524
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::UNIMPLEMENTED);
2525
  ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::adopt(_builder.getPointerField(
2526
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2527 2528
}
inline ::capnp::Orphan< ::capnp::rpc::Message> Message::Builder::disownUnimplemented() {
2529
  KJ_IREQUIRE((which() == Message::UNIMPLEMENTED),
2530
              "Must check which() before get()ing a union member.");
2531
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Message>::disown(_builder.getPointerField(
2532
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2533 2534 2535 2536 2537 2538 2539 2540 2541 2542
}

inline bool Message::Reader::isAbort() const {
  return which() == Message::ABORT;
}
inline bool Message::Builder::isAbort() {
  return which() == Message::ABORT;
}
inline bool Message::Reader::hasAbort() const {
  if (which() != Message::ABORT) return false;
2543
  return !_reader.getPointerField(
2544
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2545 2546 2547
}
inline bool Message::Builder::hasAbort() {
  if (which() != Message::ABORT) return false;
2548
  return !_builder.getPointerField(
2549
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2550 2551
}
inline  ::capnp::rpc::Exception::Reader Message::Reader::getAbort() const {
2552
  KJ_IREQUIRE((which() == Message::ABORT),
2553
              "Must check which() before get()ing a union member.");
2554
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_reader.getPointerField(
2555
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2556 2557
}
inline  ::capnp::rpc::Exception::Builder Message::Builder::getAbort() {
2558
  KJ_IREQUIRE((which() == Message::ABORT),
2559
              "Must check which() before get()ing a union member.");
2560
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_builder.getPointerField(
2561
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2562 2563 2564
}
inline void Message::Builder::setAbort( ::capnp::rpc::Exception::Reader value) {
  _builder.setDataField<Message::Which>(
2565
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ABORT);
2566
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::set(_builder.getPointerField(
2567
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2568 2569 2570
}
inline  ::capnp::rpc::Exception::Builder Message::Builder::initAbort() {
  _builder.setDataField<Message::Which>(
2571
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ABORT);
2572
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::init(_builder.getPointerField(
2573
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2574 2575 2576 2577
}
inline void Message::Builder::adoptAbort(
    ::capnp::Orphan< ::capnp::rpc::Exception>&& value) {
  _builder.setDataField<Message::Which>(
2578
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ABORT);
2579
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::adopt(_builder.getPointerField(
2580
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2581 2582
}
inline ::capnp::Orphan< ::capnp::rpc::Exception> Message::Builder::disownAbort() {
2583
  KJ_IREQUIRE((which() == Message::ABORT),
2584
              "Must check which() before get()ing a union member.");
2585
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::disown(_builder.getPointerField(
2586
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2587 2588 2589 2590 2591 2592 2593 2594 2595 2596
}

inline bool Message::Reader::isCall() const {
  return which() == Message::CALL;
}
inline bool Message::Builder::isCall() {
  return which() == Message::CALL;
}
inline bool Message::Reader::hasCall() const {
  if (which() != Message::CALL) return false;
2597
  return !_reader.getPointerField(
2598
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2599 2600 2601
}
inline bool Message::Builder::hasCall() {
  if (which() != Message::CALL) return false;
2602
  return !_builder.getPointerField(
2603
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2604 2605
}
inline  ::capnp::rpc::Call::Reader Message::Reader::getCall() const {
2606
  KJ_IREQUIRE((which() == Message::CALL),
2607
              "Must check which() before get()ing a union member.");
2608
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::get(_reader.getPointerField(
2609
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2610 2611
}
inline  ::capnp::rpc::Call::Builder Message::Builder::getCall() {
2612
  KJ_IREQUIRE((which() == Message::CALL),
2613
              "Must check which() before get()ing a union member.");
2614
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::get(_builder.getPointerField(
2615
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2616 2617 2618
}
inline void Message::Builder::setCall( ::capnp::rpc::Call::Reader value) {
  _builder.setDataField<Message::Which>(
2619
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::CALL);
2620
  ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::set(_builder.getPointerField(
2621
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2622 2623 2624
}
inline  ::capnp::rpc::Call::Builder Message::Builder::initCall() {
  _builder.setDataField<Message::Which>(
2625
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::CALL);
2626
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::init(_builder.getPointerField(
2627
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2628 2629 2630 2631
}
inline void Message::Builder::adoptCall(
    ::capnp::Orphan< ::capnp::rpc::Call>&& value) {
  _builder.setDataField<Message::Which>(
2632
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::CALL);
2633
  ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::adopt(_builder.getPointerField(
2634
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2635 2636
}
inline ::capnp::Orphan< ::capnp::rpc::Call> Message::Builder::disownCall() {
2637
  KJ_IREQUIRE((which() == Message::CALL),
2638
              "Must check which() before get()ing a union member.");
2639
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Call>::disown(_builder.getPointerField(
2640
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2641 2642 2643 2644 2645 2646 2647 2648 2649 2650
}

inline bool Message::Reader::isReturn() const {
  return which() == Message::RETURN;
}
inline bool Message::Builder::isReturn() {
  return which() == Message::RETURN;
}
inline bool Message::Reader::hasReturn() const {
  if (which() != Message::RETURN) return false;
2651
  return !_reader.getPointerField(
2652
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2653 2654 2655
}
inline bool Message::Builder::hasReturn() {
  if (which() != Message::RETURN) return false;
2656
  return !_builder.getPointerField(
2657
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2658 2659
}
inline  ::capnp::rpc::Return::Reader Message::Reader::getReturn() const {
2660
  KJ_IREQUIRE((which() == Message::RETURN),
2661
              "Must check which() before get()ing a union member.");
2662
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::get(_reader.getPointerField(
2663
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2664 2665
}
inline  ::capnp::rpc::Return::Builder Message::Builder::getReturn() {
2666
  KJ_IREQUIRE((which() == Message::RETURN),
2667
              "Must check which() before get()ing a union member.");
2668
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::get(_builder.getPointerField(
2669
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2670 2671 2672
}
inline void Message::Builder::setReturn( ::capnp::rpc::Return::Reader value) {
  _builder.setDataField<Message::Which>(
2673
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RETURN);
2674
  ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::set(_builder.getPointerField(
2675
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2676 2677 2678
}
inline  ::capnp::rpc::Return::Builder Message::Builder::initReturn() {
  _builder.setDataField<Message::Which>(
2679
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RETURN);
2680
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::init(_builder.getPointerField(
2681
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2682 2683 2684 2685
}
inline void Message::Builder::adoptReturn(
    ::capnp::Orphan< ::capnp::rpc::Return>&& value) {
  _builder.setDataField<Message::Which>(
2686
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RETURN);
2687
  ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::adopt(_builder.getPointerField(
2688
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2689 2690
}
inline ::capnp::Orphan< ::capnp::rpc::Return> Message::Builder::disownReturn() {
2691
  KJ_IREQUIRE((which() == Message::RETURN),
2692
              "Must check which() before get()ing a union member.");
2693
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Return>::disown(_builder.getPointerField(
2694
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2695 2696 2697 2698 2699 2700 2701 2702 2703 2704
}

inline bool Message::Reader::isFinish() const {
  return which() == Message::FINISH;
}
inline bool Message::Builder::isFinish() {
  return which() == Message::FINISH;
}
inline bool Message::Reader::hasFinish() const {
  if (which() != Message::FINISH) return false;
2705
  return !_reader.getPointerField(
2706
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2707 2708 2709
}
inline bool Message::Builder::hasFinish() {
  if (which() != Message::FINISH) return false;
2710
  return !_builder.getPointerField(
2711
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2712 2713
}
inline  ::capnp::rpc::Finish::Reader Message::Reader::getFinish() const {
2714
  KJ_IREQUIRE((which() == Message::FINISH),
2715
              "Must check which() before get()ing a union member.");
2716
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::get(_reader.getPointerField(
2717
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2718 2719
}
inline  ::capnp::rpc::Finish::Builder Message::Builder::getFinish() {
2720
  KJ_IREQUIRE((which() == Message::FINISH),
2721
              "Must check which() before get()ing a union member.");
2722
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::get(_builder.getPointerField(
2723
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2724 2725 2726
}
inline void Message::Builder::setFinish( ::capnp::rpc::Finish::Reader value) {
  _builder.setDataField<Message::Which>(
2727
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::FINISH);
2728
  ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::set(_builder.getPointerField(
2729
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2730 2731 2732
}
inline  ::capnp::rpc::Finish::Builder Message::Builder::initFinish() {
  _builder.setDataField<Message::Which>(
2733
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::FINISH);
2734
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::init(_builder.getPointerField(
2735
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2736 2737 2738 2739
}
inline void Message::Builder::adoptFinish(
    ::capnp::Orphan< ::capnp::rpc::Finish>&& value) {
  _builder.setDataField<Message::Which>(
2740
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::FINISH);
2741
  ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::adopt(_builder.getPointerField(
2742
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2743 2744
}
inline ::capnp::Orphan< ::capnp::rpc::Finish> Message::Builder::disownFinish() {
2745
  KJ_IREQUIRE((which() == Message::FINISH),
2746
              "Must check which() before get()ing a union member.");
2747
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Finish>::disown(_builder.getPointerField(
2748
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758
}

inline bool Message::Reader::isResolve() const {
  return which() == Message::RESOLVE;
}
inline bool Message::Builder::isResolve() {
  return which() == Message::RESOLVE;
}
inline bool Message::Reader::hasResolve() const {
  if (which() != Message::RESOLVE) return false;
2759
  return !_reader.getPointerField(
2760
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2761 2762 2763
}
inline bool Message::Builder::hasResolve() {
  if (which() != Message::RESOLVE) return false;
2764
  return !_builder.getPointerField(
2765
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2766 2767
}
inline  ::capnp::rpc::Resolve::Reader Message::Reader::getResolve() const {
2768
  KJ_IREQUIRE((which() == Message::RESOLVE),
2769
              "Must check which() before get()ing a union member.");
2770
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::get(_reader.getPointerField(
2771
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2772 2773
}
inline  ::capnp::rpc::Resolve::Builder Message::Builder::getResolve() {
2774
  KJ_IREQUIRE((which() == Message::RESOLVE),
2775
              "Must check which() before get()ing a union member.");
2776
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::get(_builder.getPointerField(
2777
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2778 2779 2780
}
inline void Message::Builder::setResolve( ::capnp::rpc::Resolve::Reader value) {
  _builder.setDataField<Message::Which>(
2781
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RESOLVE);
2782
  ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::set(_builder.getPointerField(
2783
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2784 2785 2786
}
inline  ::capnp::rpc::Resolve::Builder Message::Builder::initResolve() {
  _builder.setDataField<Message::Which>(
2787
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RESOLVE);
2788
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::init(_builder.getPointerField(
2789
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2790 2791 2792 2793
}
inline void Message::Builder::adoptResolve(
    ::capnp::Orphan< ::capnp::rpc::Resolve>&& value) {
  _builder.setDataField<Message::Which>(
2794
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RESOLVE);
2795
  ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::adopt(_builder.getPointerField(
2796
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2797 2798
}
inline ::capnp::Orphan< ::capnp::rpc::Resolve> Message::Builder::disownResolve() {
2799
  KJ_IREQUIRE((which() == Message::RESOLVE),
2800
              "Must check which() before get()ing a union member.");
2801
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Resolve>::disown(_builder.getPointerField(
2802
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2803 2804 2805 2806 2807 2808 2809 2810 2811 2812
}

inline bool Message::Reader::isRelease() const {
  return which() == Message::RELEASE;
}
inline bool Message::Builder::isRelease() {
  return which() == Message::RELEASE;
}
inline bool Message::Reader::hasRelease() const {
  if (which() != Message::RELEASE) return false;
2813
  return !_reader.getPointerField(
2814
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2815 2816 2817
}
inline bool Message::Builder::hasRelease() {
  if (which() != Message::RELEASE) return false;
2818
  return !_builder.getPointerField(
2819
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2820 2821
}
inline  ::capnp::rpc::Release::Reader Message::Reader::getRelease() const {
2822
  KJ_IREQUIRE((which() == Message::RELEASE),
2823
              "Must check which() before get()ing a union member.");
2824
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::get(_reader.getPointerField(
2825
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2826 2827
}
inline  ::capnp::rpc::Release::Builder Message::Builder::getRelease() {
2828
  KJ_IREQUIRE((which() == Message::RELEASE),
2829
              "Must check which() before get()ing a union member.");
2830
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::get(_builder.getPointerField(
2831
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2832 2833 2834
}
inline void Message::Builder::setRelease( ::capnp::rpc::Release::Reader value) {
  _builder.setDataField<Message::Which>(
2835
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RELEASE);
2836
  ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::set(_builder.getPointerField(
2837
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2838 2839 2840
}
inline  ::capnp::rpc::Release::Builder Message::Builder::initRelease() {
  _builder.setDataField<Message::Which>(
2841
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RELEASE);
2842
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::init(_builder.getPointerField(
2843
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2844 2845 2846 2847
}
inline void Message::Builder::adoptRelease(
    ::capnp::Orphan< ::capnp::rpc::Release>&& value) {
  _builder.setDataField<Message::Which>(
2848
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::RELEASE);
2849
  ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::adopt(_builder.getPointerField(
2850
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2851 2852
}
inline ::capnp::Orphan< ::capnp::rpc::Release> Message::Builder::disownRelease() {
2853
  KJ_IREQUIRE((which() == Message::RELEASE),
2854
              "Must check which() before get()ing a union member.");
2855
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Release>::disown(_builder.getPointerField(
2856
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2857 2858
}

2859 2860
inline bool Message::Reader::isObsoleteSave() const {
  return which() == Message::OBSOLETE_SAVE;
2861
}
2862 2863
inline bool Message::Builder::isObsoleteSave() {
  return which() == Message::OBSOLETE_SAVE;
2864
}
2865 2866
inline bool Message::Reader::hasObsoleteSave() const {
  if (which() != Message::OBSOLETE_SAVE) return false;
2867
  return !_reader.getPointerField(
2868
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2869
}
2870 2871
inline bool Message::Builder::hasObsoleteSave() {
  if (which() != Message::OBSOLETE_SAVE) return false;
2872
  return !_builder.getPointerField(
2873
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2874
}
2875
inline ::capnp::AnyPointer::Reader Message::Reader::getObsoleteSave() const {
2876
  KJ_IREQUIRE((which() == Message::OBSOLETE_SAVE),
2877
              "Must check which() before get()ing a union member.");
2878
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
2879
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2880
}
2881
inline ::capnp::AnyPointer::Builder Message::Builder::getObsoleteSave() {
2882
  KJ_IREQUIRE((which() == Message::OBSOLETE_SAVE),
2883
              "Must check which() before get()ing a union member.");
2884
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
2885
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2886
}
2887
inline ::capnp::AnyPointer::Builder Message::Builder::initObsoleteSave() {
2888
  _builder.setDataField<Message::Which>(
2889
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::OBSOLETE_SAVE);
2890
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
2891
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2892 2893
  result.clear();
  return result;
2894 2895
}

2896 2897
inline bool Message::Reader::isBootstrap() const {
  return which() == Message::BOOTSTRAP;
2898
}
2899 2900
inline bool Message::Builder::isBootstrap() {
  return which() == Message::BOOTSTRAP;
2901
}
2902 2903
inline bool Message::Reader::hasBootstrap() const {
  if (which() != Message::BOOTSTRAP) return false;
2904
  return !_reader.getPointerField(
2905
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2906
}
2907 2908
inline bool Message::Builder::hasBootstrap() {
  if (which() != Message::BOOTSTRAP) return false;
2909
  return !_builder.getPointerField(
2910
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2911
}
2912
inline  ::capnp::rpc::Bootstrap::Reader Message::Reader::getBootstrap() const {
2913
  KJ_IREQUIRE((which() == Message::BOOTSTRAP),
2914
              "Must check which() before get()ing a union member.");
2915
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::get(_reader.getPointerField(
2916
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2917
}
2918
inline  ::capnp::rpc::Bootstrap::Builder Message::Builder::getBootstrap() {
2919
  KJ_IREQUIRE((which() == Message::BOOTSTRAP),
2920
              "Must check which() before get()ing a union member.");
2921
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::get(_builder.getPointerField(
2922
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2923
}
2924
inline void Message::Builder::setBootstrap( ::capnp::rpc::Bootstrap::Reader value) {
2925
  _builder.setDataField<Message::Which>(
2926
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::BOOTSTRAP);
2927
  ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::set(_builder.getPointerField(
2928
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
2929
}
2930
inline  ::capnp::rpc::Bootstrap::Builder Message::Builder::initBootstrap() {
2931
  _builder.setDataField<Message::Which>(
2932
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::BOOTSTRAP);
2933
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::init(_builder.getPointerField(
2934
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2935
}
2936 2937
inline void Message::Builder::adoptBootstrap(
    ::capnp::Orphan< ::capnp::rpc::Bootstrap>&& value) {
2938
  _builder.setDataField<Message::Which>(
2939
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::BOOTSTRAP);
2940
  ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::adopt(_builder.getPointerField(
2941
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
2942
}
2943
inline ::capnp::Orphan< ::capnp::rpc::Bootstrap> Message::Builder::disownBootstrap() {
2944
  KJ_IREQUIRE((which() == Message::BOOTSTRAP),
2945
              "Must check which() before get()ing a union member.");
2946
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Bootstrap>::disown(_builder.getPointerField(
2947
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2948 2949
}

2950 2951
inline bool Message::Reader::isObsoleteDelete() const {
  return which() == Message::OBSOLETE_DELETE;
2952
}
2953 2954
inline bool Message::Builder::isObsoleteDelete() {
  return which() == Message::OBSOLETE_DELETE;
2955
}
2956 2957
inline bool Message::Reader::hasObsoleteDelete() const {
  if (which() != Message::OBSOLETE_DELETE) return false;
2958
  return !_reader.getPointerField(
2959
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2960
}
2961 2962
inline bool Message::Builder::hasObsoleteDelete() {
  if (which() != Message::OBSOLETE_DELETE) return false;
2963
  return !_builder.getPointerField(
2964
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2965
}
2966
inline ::capnp::AnyPointer::Reader Message::Reader::getObsoleteDelete() const {
2967
  KJ_IREQUIRE((which() == Message::OBSOLETE_DELETE),
2968
              "Must check which() before get()ing a union member.");
2969
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
2970
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2971
}
2972
inline ::capnp::AnyPointer::Builder Message::Builder::getObsoleteDelete() {
2973
  KJ_IREQUIRE((which() == Message::OBSOLETE_DELETE),
2974
              "Must check which() before get()ing a union member.");
2975
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
2976
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2977
}
2978
inline ::capnp::AnyPointer::Builder Message::Builder::initObsoleteDelete() {
2979
  _builder.setDataField<Message::Which>(
2980
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::OBSOLETE_DELETE);
2981
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
2982
      ::capnp::bounded<0>() * ::capnp::POINTERS));
2983 2984
  result.clear();
  return result;
2985 2986 2987 2988 2989 2990 2991 2992 2993 2994
}

inline bool Message::Reader::isProvide() const {
  return which() == Message::PROVIDE;
}
inline bool Message::Builder::isProvide() {
  return which() == Message::PROVIDE;
}
inline bool Message::Reader::hasProvide() const {
  if (which() != Message::PROVIDE) return false;
2995
  return !_reader.getPointerField(
2996
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
2997 2998 2999
}
inline bool Message::Builder::hasProvide() {
  if (which() != Message::PROVIDE) return false;
3000
  return !_builder.getPointerField(
3001
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3002 3003
}
inline  ::capnp::rpc::Provide::Reader Message::Reader::getProvide() const {
3004
  KJ_IREQUIRE((which() == Message::PROVIDE),
3005
              "Must check which() before get()ing a union member.");
3006
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::get(_reader.getPointerField(
3007
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3008 3009
}
inline  ::capnp::rpc::Provide::Builder Message::Builder::getProvide() {
3010
  KJ_IREQUIRE((which() == Message::PROVIDE),
3011
              "Must check which() before get()ing a union member.");
3012
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::get(_builder.getPointerField(
3013
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3014 3015 3016
}
inline void Message::Builder::setProvide( ::capnp::rpc::Provide::Reader value) {
  _builder.setDataField<Message::Which>(
3017
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::PROVIDE);
3018
  ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::set(_builder.getPointerField(
3019
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3020 3021 3022
}
inline  ::capnp::rpc::Provide::Builder Message::Builder::initProvide() {
  _builder.setDataField<Message::Which>(
3023
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::PROVIDE);
3024
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::init(_builder.getPointerField(
3025
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3026 3027 3028 3029
}
inline void Message::Builder::adoptProvide(
    ::capnp::Orphan< ::capnp::rpc::Provide>&& value) {
  _builder.setDataField<Message::Which>(
3030
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::PROVIDE);
3031
  ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::adopt(_builder.getPointerField(
3032
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3033 3034
}
inline ::capnp::Orphan< ::capnp::rpc::Provide> Message::Builder::disownProvide() {
3035
  KJ_IREQUIRE((which() == Message::PROVIDE),
3036
              "Must check which() before get()ing a union member.");
3037
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Provide>::disown(_builder.getPointerField(
3038
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3039 3040 3041 3042 3043 3044 3045 3046 3047 3048
}

inline bool Message::Reader::isAccept() const {
  return which() == Message::ACCEPT;
}
inline bool Message::Builder::isAccept() {
  return which() == Message::ACCEPT;
}
inline bool Message::Reader::hasAccept() const {
  if (which() != Message::ACCEPT) return false;
3049
  return !_reader.getPointerField(
3050
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3051 3052 3053
}
inline bool Message::Builder::hasAccept() {
  if (which() != Message::ACCEPT) return false;
3054
  return !_builder.getPointerField(
3055
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3056 3057
}
inline  ::capnp::rpc::Accept::Reader Message::Reader::getAccept() const {
3058
  KJ_IREQUIRE((which() == Message::ACCEPT),
3059
              "Must check which() before get()ing a union member.");
3060
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::get(_reader.getPointerField(
3061
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3062 3063
}
inline  ::capnp::rpc::Accept::Builder Message::Builder::getAccept() {
3064
  KJ_IREQUIRE((which() == Message::ACCEPT),
3065
              "Must check which() before get()ing a union member.");
3066
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::get(_builder.getPointerField(
3067
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3068 3069 3070
}
inline void Message::Builder::setAccept( ::capnp::rpc::Accept::Reader value) {
  _builder.setDataField<Message::Which>(
3071
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ACCEPT);
3072
  ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::set(_builder.getPointerField(
3073
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3074 3075 3076
}
inline  ::capnp::rpc::Accept::Builder Message::Builder::initAccept() {
  _builder.setDataField<Message::Which>(
3077
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ACCEPT);
3078
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::init(_builder.getPointerField(
3079
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3080 3081 3082 3083
}
inline void Message::Builder::adoptAccept(
    ::capnp::Orphan< ::capnp::rpc::Accept>&& value) {
  _builder.setDataField<Message::Which>(
3084
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::ACCEPT);
3085
  ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::adopt(_builder.getPointerField(
3086
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3087 3088
}
inline ::capnp::Orphan< ::capnp::rpc::Accept> Message::Builder::disownAccept() {
3089
  KJ_IREQUIRE((which() == Message::ACCEPT),
3090
              "Must check which() before get()ing a union member.");
3091
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Accept>::disown(_builder.getPointerField(
3092
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3093 3094 3095 3096 3097 3098 3099 3100 3101 3102
}

inline bool Message::Reader::isJoin() const {
  return which() == Message::JOIN;
}
inline bool Message::Builder::isJoin() {
  return which() == Message::JOIN;
}
inline bool Message::Reader::hasJoin() const {
  if (which() != Message::JOIN) return false;
3103
  return !_reader.getPointerField(
3104
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3105 3106 3107
}
inline bool Message::Builder::hasJoin() {
  if (which() != Message::JOIN) return false;
3108
  return !_builder.getPointerField(
3109
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3110 3111
}
inline  ::capnp::rpc::Join::Reader Message::Reader::getJoin() const {
3112
  KJ_IREQUIRE((which() == Message::JOIN),
3113
              "Must check which() before get()ing a union member.");
3114
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::get(_reader.getPointerField(
3115
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3116 3117
}
inline  ::capnp::rpc::Join::Builder Message::Builder::getJoin() {
3118
  KJ_IREQUIRE((which() == Message::JOIN),
3119
              "Must check which() before get()ing a union member.");
3120
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::get(_builder.getPointerField(
3121
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3122 3123 3124
}
inline void Message::Builder::setJoin( ::capnp::rpc::Join::Reader value) {
  _builder.setDataField<Message::Which>(
3125
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::JOIN);
3126
  ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::set(_builder.getPointerField(
3127
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3128 3129 3130
}
inline  ::capnp::rpc::Join::Builder Message::Builder::initJoin() {
  _builder.setDataField<Message::Which>(
3131
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::JOIN);
3132
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::init(_builder.getPointerField(
3133
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3134 3135 3136 3137
}
inline void Message::Builder::adoptJoin(
    ::capnp::Orphan< ::capnp::rpc::Join>&& value) {
  _builder.setDataField<Message::Which>(
3138
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::JOIN);
3139
  ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::adopt(_builder.getPointerField(
3140
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3141 3142
}
inline ::capnp::Orphan< ::capnp::rpc::Join> Message::Builder::disownJoin() {
3143
  KJ_IREQUIRE((which() == Message::JOIN),
3144
              "Must check which() before get()ing a union member.");
3145
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Join>::disown(_builder.getPointerField(
3146
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3147 3148
}

3149 3150 3151 3152 3153 3154 3155 3156
inline bool Message::Reader::isDisembargo() const {
  return which() == Message::DISEMBARGO;
}
inline bool Message::Builder::isDisembargo() {
  return which() == Message::DISEMBARGO;
}
inline bool Message::Reader::hasDisembargo() const {
  if (which() != Message::DISEMBARGO) return false;
3157
  return !_reader.getPointerField(
3158
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3159 3160 3161
}
inline bool Message::Builder::hasDisembargo() {
  if (which() != Message::DISEMBARGO) return false;
3162
  return !_builder.getPointerField(
3163
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3164 3165
}
inline  ::capnp::rpc::Disembargo::Reader Message::Reader::getDisembargo() const {
3166
  KJ_IREQUIRE((which() == Message::DISEMBARGO),
3167
              "Must check which() before get()ing a union member.");
3168
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::get(_reader.getPointerField(
3169
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3170 3171
}
inline  ::capnp::rpc::Disembargo::Builder Message::Builder::getDisembargo() {
3172
  KJ_IREQUIRE((which() == Message::DISEMBARGO),
3173
              "Must check which() before get()ing a union member.");
3174
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::get(_builder.getPointerField(
3175
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3176 3177 3178
}
inline void Message::Builder::setDisembargo( ::capnp::rpc::Disembargo::Reader value) {
  _builder.setDataField<Message::Which>(
3179
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::DISEMBARGO);
3180
  ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::set(_builder.getPointerField(
3181
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3182 3183 3184
}
inline  ::capnp::rpc::Disembargo::Builder Message::Builder::initDisembargo() {
  _builder.setDataField<Message::Which>(
3185
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::DISEMBARGO);
3186
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::init(_builder.getPointerField(
3187
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3188 3189 3190 3191
}
inline void Message::Builder::adoptDisembargo(
    ::capnp::Orphan< ::capnp::rpc::Disembargo>&& value) {
  _builder.setDataField<Message::Which>(
3192
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, Message::DISEMBARGO);
3193
  ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::adopt(_builder.getPointerField(
3194
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3195 3196
}
inline ::capnp::Orphan< ::capnp::rpc::Disembargo> Message::Builder::disownDisembargo() {
3197
  KJ_IREQUIRE((which() == Message::DISEMBARGO),
3198
              "Must check which() before get()ing a union member.");
3199
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Disembargo>::disown(_builder.getPointerField(
3200
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3201 3202
}

3203 3204
inline  ::uint32_t Bootstrap::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3205
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3206 3207 3208 3209
}

inline  ::uint32_t Bootstrap::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3210
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3211 3212 3213
}
inline void Bootstrap::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3214
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3215 3216 3217
}

inline bool Bootstrap::Reader::hasDeprecatedObjectId() const {
3218
  return !_reader.getPointerField(
3219
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3220 3221
}
inline bool Bootstrap::Builder::hasDeprecatedObjectId() {
3222
  return !_builder.getPointerField(
3223
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3224 3225
}
inline ::capnp::AnyPointer::Reader Bootstrap::Reader::getDeprecatedObjectId() const {
3226
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
3227
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3228 3229
}
inline ::capnp::AnyPointer::Builder Bootstrap::Builder::getDeprecatedObjectId() {
3230
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
3231
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3232 3233
}
inline ::capnp::AnyPointer::Builder Bootstrap::Builder::initDeprecatedObjectId() {
3234
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
3235
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3236 3237 3238 3239
  result.clear();
  return result;
}

3240 3241
inline  ::uint32_t Call::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3242
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3243 3244 3245 3246
}

inline  ::uint32_t Call::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3247
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3248 3249 3250
}
inline void Call::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3251
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3252 3253
}

Kenton Varda's avatar
Kenton Varda committed
3254
inline bool Call::Reader::hasTarget() const {
3255
  return !_reader.getPointerField(
3256
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
Kenton Varda's avatar
Kenton Varda committed
3257 3258
}
inline bool Call::Builder::hasTarget() {
3259
  return !_builder.getPointerField(
3260
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
Kenton Varda's avatar
Kenton Varda committed
3261 3262
}
inline  ::capnp::rpc::MessageTarget::Reader Call::Reader::getTarget() const {
3263
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_reader.getPointerField(
3264
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
3265 3266
}
inline  ::capnp::rpc::MessageTarget::Builder Call::Builder::getTarget() {
3267
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_builder.getPointerField(
3268
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
3269
}
3270
#if !CAPNP_LITE
3271
inline  ::capnp::rpc::MessageTarget::Pipeline Call::Pipeline::getTarget() {
Kenton Varda's avatar
Kenton Varda committed
3272 3273
  return  ::capnp::rpc::MessageTarget::Pipeline(_typeless.getPointerField(0));
}
3274
#endif  // !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
3275
inline void Call::Builder::setTarget( ::capnp::rpc::MessageTarget::Reader value) {
3276
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::set(_builder.getPointerField(
3277
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3278
}
Kenton Varda's avatar
Kenton Varda committed
3279
inline  ::capnp::rpc::MessageTarget::Builder Call::Builder::initTarget() {
3280
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::init(_builder.getPointerField(
3281
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3282
}
Kenton Varda's avatar
Kenton Varda committed
3283 3284
inline void Call::Builder::adoptTarget(
    ::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value) {
3285
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::adopt(_builder.getPointerField(
3286
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3287
}
Kenton Varda's avatar
Kenton Varda committed
3288
inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> Call::Builder::disownTarget() {
3289
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::disown(_builder.getPointerField(
3290
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3291
}
Kenton Varda's avatar
Kenton Varda committed
3292

3293 3294
inline  ::uint64_t Call::Reader::getInterfaceId() const {
  return _reader.getDataField< ::uint64_t>(
3295
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3296 3297 3298 3299
}

inline  ::uint64_t Call::Builder::getInterfaceId() {
  return _builder.getDataField< ::uint64_t>(
3300
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3301 3302 3303
}
inline void Call::Builder::setInterfaceId( ::uint64_t value) {
  _builder.setDataField< ::uint64_t>(
3304
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
3305 3306 3307 3308
}

inline  ::uint16_t Call::Reader::getMethodId() const {
  return _reader.getDataField< ::uint16_t>(
3309
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3310 3311 3312 3313
}

inline  ::uint16_t Call::Builder::getMethodId() {
  return _builder.getDataField< ::uint16_t>(
3314
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3315 3316 3317
}
inline void Call::Builder::setMethodId( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
3318
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
3319 3320
}

3321
inline bool Call::Reader::hasParams() const {
3322
  return !_reader.getPointerField(
3323
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
3324
}
3325
inline bool Call::Builder::hasParams() {
3326
  return !_builder.getPointerField(
3327
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
3328
}
3329
inline  ::capnp::rpc::Payload::Reader Call::Reader::getParams() const {
3330
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::get(_reader.getPointerField(
3331
      ::capnp::bounded<1>() * ::capnp::POINTERS));
3332
}
3333
inline  ::capnp::rpc::Payload::Builder Call::Builder::getParams() {
3334
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::get(_builder.getPointerField(
3335
      ::capnp::bounded<1>() * ::capnp::POINTERS));
3336
}
3337
#if !CAPNP_LITE
3338 3339 3340
inline  ::capnp::rpc::Payload::Pipeline Call::Pipeline::getParams() {
  return  ::capnp::rpc::Payload::Pipeline(_typeless.getPointerField(1));
}
3341
#endif  // !CAPNP_LITE
3342
inline void Call::Builder::setParams( ::capnp::rpc::Payload::Reader value) {
3343
  ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::set(_builder.getPointerField(
3344
      ::capnp::bounded<1>() * ::capnp::POINTERS), value);
3345 3346
}
inline  ::capnp::rpc::Payload::Builder Call::Builder::initParams() {
3347
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::init(_builder.getPointerField(
3348
      ::capnp::bounded<1>() * ::capnp::POINTERS));
3349 3350 3351
}
inline void Call::Builder::adoptParams(
    ::capnp::Orphan< ::capnp::rpc::Payload>&& value) {
3352
  ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::adopt(_builder.getPointerField(
3353
      ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
3354 3355
}
inline ::capnp::Orphan< ::capnp::rpc::Payload> Call::Builder::disownParams() {
3356
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::disown(_builder.getPointerField(
3357
      ::capnp::bounded<1>() * ::capnp::POINTERS));
3358 3359
}

3360
inline typename Call::SendResultsTo::Reader Call::Reader::getSendResultsTo() const {
3361
  return typename Call::SendResultsTo::Reader(_reader);
3362
}
3363
inline typename Call::SendResultsTo::Builder Call::Builder::getSendResultsTo() {
3364
  return typename Call::SendResultsTo::Builder(_builder);
3365
}
3366
#if !CAPNP_LITE
3367
inline typename Call::SendResultsTo::Pipeline Call::Pipeline::getSendResultsTo() {
3368
  return typename Call::SendResultsTo::Pipeline(_typeless.noop());
3369
}
3370
#endif  // !CAPNP_LITE
3371
inline typename Call::SendResultsTo::Builder Call::Builder::initSendResultsTo() {
3372 3373
  _builder.setDataField< ::uint16_t>(::capnp::bounded<3>() * ::capnp::ELEMENTS, 0);
  _builder.getPointerField(::capnp::bounded<2>() * ::capnp::POINTERS).clear();
3374
  return typename Call::SendResultsTo::Builder(_builder);
3375
}
3376 3377
inline bool Call::Reader::getAllowThirdPartyTailCall() const {
  return _reader.getDataField<bool>(
3378
      ::capnp::bounded<128>() * ::capnp::ELEMENTS);
3379 3380 3381 3382
}

inline bool Call::Builder::getAllowThirdPartyTailCall() {
  return _builder.getDataField<bool>(
3383
      ::capnp::bounded<128>() * ::capnp::ELEMENTS);
3384 3385 3386
}
inline void Call::Builder::setAllowThirdPartyTailCall(bool value) {
  _builder.setDataField<bool>(
3387
      ::capnp::bounded<128>() * ::capnp::ELEMENTS, value);
3388 3389
}

3390
inline  ::capnp::rpc::Call::SendResultsTo::Which Call::SendResultsTo::Reader::which() const {
3391
  return _reader.getDataField<Which>(
3392
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3393
}
3394
inline  ::capnp::rpc::Call::SendResultsTo::Which Call::SendResultsTo::Builder::which() {
3395
  return _builder.getDataField<Which>(
3396
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3397 3398
}

3399 3400
inline bool Call::SendResultsTo::Reader::isCaller() const {
  return which() == Call::SendResultsTo::CALLER;
3401
}
3402 3403
inline bool Call::SendResultsTo::Builder::isCaller() {
  return which() == Call::SendResultsTo::CALLER;
3404
}
3405
inline  ::capnp::Void Call::SendResultsTo::Reader::getCaller() const {
3406
  KJ_IREQUIRE((which() == Call::SendResultsTo::CALLER),
3407
              "Must check which() before get()ing a union member.");
Kenton Varda's avatar
Kenton Varda committed
3408
  return _reader.getDataField< ::capnp::Void>(
3409
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3410 3411
}

3412
inline  ::capnp::Void Call::SendResultsTo::Builder::getCaller() {
3413
  KJ_IREQUIRE((which() == Call::SendResultsTo::CALLER),
3414
              "Must check which() before get()ing a union member.");
Kenton Varda's avatar
Kenton Varda committed
3415
  return _builder.getDataField< ::capnp::Void>(
3416
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3417
}
3418 3419
inline void Call::SendResultsTo::Builder::setCaller( ::capnp::Void value) {
  _builder.setDataField<Call::SendResultsTo::Which>(
3420
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Call::SendResultsTo::CALLER);
Kenton Varda's avatar
Kenton Varda committed
3421
  _builder.setDataField< ::capnp::Void>(
3422
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3423 3424
}

3425 3426
inline bool Call::SendResultsTo::Reader::isYourself() const {
  return which() == Call::SendResultsTo::YOURSELF;
3427
}
3428 3429
inline bool Call::SendResultsTo::Builder::isYourself() {
  return which() == Call::SendResultsTo::YOURSELF;
3430
}
3431
inline  ::capnp::Void Call::SendResultsTo::Reader::getYourself() const {
3432
  KJ_IREQUIRE((which() == Call::SendResultsTo::YOURSELF),
3433
              "Must check which() before get()ing a union member.");
3434
  return _reader.getDataField< ::capnp::Void>(
3435
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3436 3437
}

3438
inline  ::capnp::Void Call::SendResultsTo::Builder::getYourself() {
3439
  KJ_IREQUIRE((which() == Call::SendResultsTo::YOURSELF),
3440
              "Must check which() before get()ing a union member.");
3441
  return _builder.getDataField< ::capnp::Void>(
3442
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3443
}
3444 3445
inline void Call::SendResultsTo::Builder::setYourself( ::capnp::Void value) {
  _builder.setDataField<Call::SendResultsTo::Which>(
3446
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Call::SendResultsTo::YOURSELF);
3447
  _builder.setDataField< ::capnp::Void>(
3448
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3449 3450
}

3451 3452
inline bool Call::SendResultsTo::Reader::isThirdParty() const {
  return which() == Call::SendResultsTo::THIRD_PARTY;
3453
}
3454 3455
inline bool Call::SendResultsTo::Builder::isThirdParty() {
  return which() == Call::SendResultsTo::THIRD_PARTY;
3456
}
3457 3458
inline bool Call::SendResultsTo::Reader::hasThirdParty() const {
  if (which() != Call::SendResultsTo::THIRD_PARTY) return false;
3459
  return !_reader.getPointerField(
3460
      ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
3461
}
3462 3463
inline bool Call::SendResultsTo::Builder::hasThirdParty() {
  if (which() != Call::SendResultsTo::THIRD_PARTY) return false;
3464
  return !_builder.getPointerField(
3465
      ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
3466
}
3467
inline ::capnp::AnyPointer::Reader Call::SendResultsTo::Reader::getThirdParty() const {
3468
  KJ_IREQUIRE((which() == Call::SendResultsTo::THIRD_PARTY),
3469
              "Must check which() before get()ing a union member.");
3470
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
3471
      ::capnp::bounded<2>() * ::capnp::POINTERS));
3472
}
3473
inline ::capnp::AnyPointer::Builder Call::SendResultsTo::Builder::getThirdParty() {
3474
  KJ_IREQUIRE((which() == Call::SendResultsTo::THIRD_PARTY),
3475
              "Must check which() before get()ing a union member.");
3476
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
3477
      ::capnp::bounded<2>() * ::capnp::POINTERS));
3478
}
3479
inline ::capnp::AnyPointer::Builder Call::SendResultsTo::Builder::initThirdParty() {
3480
  _builder.setDataField<Call::SendResultsTo::Which>(
3481
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Call::SendResultsTo::THIRD_PARTY);
3482
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
3483
      ::capnp::bounded<2>() * ::capnp::POINTERS));
3484 3485 3486 3487
  result.clear();
  return result;
}

3488
inline  ::capnp::rpc::Return::Which Return::Reader::which() const {
3489
  return _reader.getDataField<Which>(
3490
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3491
}
3492
inline  ::capnp::rpc::Return::Which Return::Builder::which() {
3493
  return _builder.getDataField<Which>(
3494
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3495 3496
}

3497
inline  ::uint32_t Return::Reader::getAnswerId() const {
3498
  return _reader.getDataField< ::uint32_t>(
3499
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3500 3501
}

3502
inline  ::uint32_t Return::Builder::getAnswerId() {
3503
  return _builder.getDataField< ::uint32_t>(
3504
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3505
}
3506
inline void Return::Builder::setAnswerId( ::uint32_t value) {
3507
  _builder.setDataField< ::uint32_t>(
3508
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3509 3510
}

3511 3512
inline bool Return::Reader::getReleaseParamCaps() const {
  return _reader.getDataField<bool>(
3513
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3514
}
3515 3516 3517

inline bool Return::Builder::getReleaseParamCaps() {
  return _builder.getDataField<bool>(
3518
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3519
}
3520 3521
inline void Return::Builder::setReleaseParamCaps(bool value) {
  _builder.setDataField<bool>(
3522
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value, true);
3523 3524
}

3525 3526
inline bool Return::Reader::isResults() const {
  return which() == Return::RESULTS;
3527
}
3528 3529
inline bool Return::Builder::isResults() {
  return which() == Return::RESULTS;
3530
}
3531 3532
inline bool Return::Reader::hasResults() const {
  if (which() != Return::RESULTS) return false;
3533
  return !_reader.getPointerField(
3534
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3535
}
3536 3537
inline bool Return::Builder::hasResults() {
  if (which() != Return::RESULTS) return false;
3538
  return !_builder.getPointerField(
3539
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3540
}
3541
inline  ::capnp::rpc::Payload::Reader Return::Reader::getResults() const {
3542
  KJ_IREQUIRE((which() == Return::RESULTS),
3543
              "Must check which() before get()ing a union member.");
3544
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::get(_reader.getPointerField(
3545
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3546
}
3547
inline  ::capnp::rpc::Payload::Builder Return::Builder::getResults() {
3548
  KJ_IREQUIRE((which() == Return::RESULTS),
3549
              "Must check which() before get()ing a union member.");
3550
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::get(_builder.getPointerField(
3551
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3552
}
3553
inline void Return::Builder::setResults( ::capnp::rpc::Payload::Reader value) {
3554
  _builder.setDataField<Return::Which>(
3555
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::RESULTS);
3556
  ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::set(_builder.getPointerField(
3557
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3558 3559 3560
}
inline  ::capnp::rpc::Payload::Builder Return::Builder::initResults() {
  _builder.setDataField<Return::Which>(
3561
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::RESULTS);
3562
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::init(_builder.getPointerField(
3563
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3564 3565 3566 3567
}
inline void Return::Builder::adoptResults(
    ::capnp::Orphan< ::capnp::rpc::Payload>&& value) {
  _builder.setDataField<Return::Which>(
3568
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::RESULTS);
3569
  ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::adopt(_builder.getPointerField(
3570
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3571 3572
}
inline ::capnp::Orphan< ::capnp::rpc::Payload> Return::Builder::disownResults() {
3573
  KJ_IREQUIRE((which() == Return::RESULTS),
3574
              "Must check which() before get()ing a union member.");
3575
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Payload>::disown(_builder.getPointerField(
3576
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3577 3578 3579 3580 3581 3582 3583 3584 3585 3586
}

inline bool Return::Reader::isException() const {
  return which() == Return::EXCEPTION;
}
inline bool Return::Builder::isException() {
  return which() == Return::EXCEPTION;
}
inline bool Return::Reader::hasException() const {
  if (which() != Return::EXCEPTION) return false;
3587
  return !_reader.getPointerField(
3588
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3589 3590 3591
}
inline bool Return::Builder::hasException() {
  if (which() != Return::EXCEPTION) return false;
3592
  return !_builder.getPointerField(
3593
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3594 3595
}
inline  ::capnp::rpc::Exception::Reader Return::Reader::getException() const {
3596
  KJ_IREQUIRE((which() == Return::EXCEPTION),
3597
              "Must check which() before get()ing a union member.");
3598
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_reader.getPointerField(
3599
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3600 3601
}
inline  ::capnp::rpc::Exception::Builder Return::Builder::getException() {
3602
  KJ_IREQUIRE((which() == Return::EXCEPTION),
3603
              "Must check which() before get()ing a union member.");
3604
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_builder.getPointerField(
3605
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3606 3607 3608
}
inline void Return::Builder::setException( ::capnp::rpc::Exception::Reader value) {
  _builder.setDataField<Return::Which>(
3609
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::EXCEPTION);
3610
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::set(_builder.getPointerField(
3611
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3612 3613 3614
}
inline  ::capnp::rpc::Exception::Builder Return::Builder::initException() {
  _builder.setDataField<Return::Which>(
3615
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::EXCEPTION);
3616
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::init(_builder.getPointerField(
3617
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3618 3619 3620 3621
}
inline void Return::Builder::adoptException(
    ::capnp::Orphan< ::capnp::rpc::Exception>&& value) {
  _builder.setDataField<Return::Which>(
3622
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::EXCEPTION);
3623
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::adopt(_builder.getPointerField(
3624
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3625 3626
}
inline ::capnp::Orphan< ::capnp::rpc::Exception> Return::Builder::disownException() {
3627
  KJ_IREQUIRE((which() == Return::EXCEPTION),
3628
              "Must check which() before get()ing a union member.");
3629
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::disown(_builder.getPointerField(
3630
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3631 3632 3633 3634 3635 3636 3637 3638 3639
}

inline bool Return::Reader::isCanceled() const {
  return which() == Return::CANCELED;
}
inline bool Return::Builder::isCanceled() {
  return which() == Return::CANCELED;
}
inline  ::capnp::Void Return::Reader::getCanceled() const {
3640
  KJ_IREQUIRE((which() == Return::CANCELED),
3641 3642
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
3643
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3644 3645 3646
}

inline  ::capnp::Void Return::Builder::getCanceled() {
3647
  KJ_IREQUIRE((which() == Return::CANCELED),
3648 3649
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
3650
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3651 3652 3653
}
inline void Return::Builder::setCanceled( ::capnp::Void value) {
  _builder.setDataField<Return::Which>(
3654
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::CANCELED);
3655
  _builder.setDataField< ::capnp::Void>(
3656
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3657 3658
}

3659 3660 3661 3662 3663 3664 3665
inline bool Return::Reader::isResultsSentElsewhere() const {
  return which() == Return::RESULTS_SENT_ELSEWHERE;
}
inline bool Return::Builder::isResultsSentElsewhere() {
  return which() == Return::RESULTS_SENT_ELSEWHERE;
}
inline  ::capnp::Void Return::Reader::getResultsSentElsewhere() const {
3666
  KJ_IREQUIRE((which() == Return::RESULTS_SENT_ELSEWHERE),
3667 3668
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
3669
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3670 3671 3672
}

inline  ::capnp::Void Return::Builder::getResultsSentElsewhere() {
3673
  KJ_IREQUIRE((which() == Return::RESULTS_SENT_ELSEWHERE),
3674 3675
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
3676
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3677 3678 3679
}
inline void Return::Builder::setResultsSentElsewhere( ::capnp::Void value) {
  _builder.setDataField<Return::Which>(
3680
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::RESULTS_SENT_ELSEWHERE);
3681
  _builder.setDataField< ::capnp::Void>(
3682
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3683 3684
}

3685 3686
inline bool Return::Reader::isTakeFromOtherQuestion() const {
  return which() == Return::TAKE_FROM_OTHER_QUESTION;
3687
}
3688 3689
inline bool Return::Builder::isTakeFromOtherQuestion() {
  return which() == Return::TAKE_FROM_OTHER_QUESTION;
3690
}
3691
inline  ::uint32_t Return::Reader::getTakeFromOtherQuestion() const {
3692
  KJ_IREQUIRE((which() == Return::TAKE_FROM_OTHER_QUESTION),
3693 3694
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
3695
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3696 3697
}

3698
inline  ::uint32_t Return::Builder::getTakeFromOtherQuestion() {
3699
  KJ_IREQUIRE((which() == Return::TAKE_FROM_OTHER_QUESTION),
3700 3701
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
3702
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3703
}
3704
inline void Return::Builder::setTakeFromOtherQuestion( ::uint32_t value) {
3705
  _builder.setDataField<Return::Which>(
3706
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::TAKE_FROM_OTHER_QUESTION);
3707
  _builder.setDataField< ::uint32_t>(
3708
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
3709 3710 3711 3712
}

inline bool Return::Reader::isAcceptFromThirdParty() const {
  return which() == Return::ACCEPT_FROM_THIRD_PARTY;
3713
}
3714 3715
inline bool Return::Builder::isAcceptFromThirdParty() {
  return which() == Return::ACCEPT_FROM_THIRD_PARTY;
3716
}
3717 3718
inline bool Return::Reader::hasAcceptFromThirdParty() const {
  if (which() != Return::ACCEPT_FROM_THIRD_PARTY) return false;
3719
  return !_reader.getPointerField(
3720
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3721
}
3722 3723
inline bool Return::Builder::hasAcceptFromThirdParty() {
  if (which() != Return::ACCEPT_FROM_THIRD_PARTY) return false;
3724
  return !_builder.getPointerField(
3725
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3726
}
3727
inline ::capnp::AnyPointer::Reader Return::Reader::getAcceptFromThirdParty() const {
3728
  KJ_IREQUIRE((which() == Return::ACCEPT_FROM_THIRD_PARTY),
3729
              "Must check which() before get()ing a union member.");
3730
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
3731
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3732
}
3733
inline ::capnp::AnyPointer::Builder Return::Builder::getAcceptFromThirdParty() {
3734
  KJ_IREQUIRE((which() == Return::ACCEPT_FROM_THIRD_PARTY),
3735
              "Must check which() before get()ing a union member.");
3736
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
3737
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3738
}
3739
inline ::capnp::AnyPointer::Builder Return::Builder::initAcceptFromThirdParty() {
3740
  _builder.setDataField<Return::Which>(
3741
      ::capnp::bounded<3>() * ::capnp::ELEMENTS, Return::ACCEPT_FROM_THIRD_PARTY);
3742
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
3743
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3744 3745 3746 3747
  result.clear();
  return result;
}

3748 3749
inline  ::uint32_t Finish::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3750
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3751 3752 3753 3754
}

inline  ::uint32_t Finish::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3755
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3756 3757 3758
}
inline void Finish::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3759
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3760 3761
}

3762 3763
inline bool Finish::Reader::getReleaseResultCaps() const {
  return _reader.getDataField<bool>(
3764
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3765
}
3766 3767 3768

inline bool Finish::Builder::getReleaseResultCaps() {
  return _builder.getDataField<bool>(
3769
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3770
}
3771 3772
inline void Finish::Builder::setReleaseResultCaps(bool value) {
  _builder.setDataField<bool>(
3773
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value, true);
3774 3775
}

3776
inline  ::capnp::rpc::Resolve::Which Resolve::Reader::which() const {
3777
  return _reader.getDataField<Which>(
3778
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3779
}
3780
inline  ::capnp::rpc::Resolve::Which Resolve::Builder::which() {
3781
  return _builder.getDataField<Which>(
3782
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3783 3784 3785 3786
}

inline  ::uint32_t Resolve::Reader::getPromiseId() const {
  return _reader.getDataField< ::uint32_t>(
3787
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3788 3789 3790 3791
}

inline  ::uint32_t Resolve::Builder::getPromiseId() {
  return _builder.getDataField< ::uint32_t>(
3792
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3793 3794 3795
}
inline void Resolve::Builder::setPromiseId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3796
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3797 3798 3799 3800 3801 3802 3803 3804 3805 3806
}

inline bool Resolve::Reader::isCap() const {
  return which() == Resolve::CAP;
}
inline bool Resolve::Builder::isCap() {
  return which() == Resolve::CAP;
}
inline bool Resolve::Reader::hasCap() const {
  if (which() != Resolve::CAP) return false;
3807
  return !_reader.getPointerField(
3808
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3809 3810 3811
}
inline bool Resolve::Builder::hasCap() {
  if (which() != Resolve::CAP) return false;
3812
  return !_builder.getPointerField(
3813
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3814 3815
}
inline  ::capnp::rpc::CapDescriptor::Reader Resolve::Reader::getCap() const {
3816
  KJ_IREQUIRE((which() == Resolve::CAP),
3817
              "Must check which() before get()ing a union member.");
3818
  return ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::get(_reader.getPointerField(
3819
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3820 3821
}
inline  ::capnp::rpc::CapDescriptor::Builder Resolve::Builder::getCap() {
3822
  KJ_IREQUIRE((which() == Resolve::CAP),
3823
              "Must check which() before get()ing a union member.");
3824
  return ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::get(_builder.getPointerField(
3825
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3826 3827 3828
}
inline void Resolve::Builder::setCap( ::capnp::rpc::CapDescriptor::Reader value) {
  _builder.setDataField<Resolve::Which>(
3829
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::CAP);
3830
  ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::set(_builder.getPointerField(
3831
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3832 3833 3834
}
inline  ::capnp::rpc::CapDescriptor::Builder Resolve::Builder::initCap() {
  _builder.setDataField<Resolve::Which>(
3835
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::CAP);
3836
  return ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::init(_builder.getPointerField(
3837
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3838 3839 3840 3841
}
inline void Resolve::Builder::adoptCap(
    ::capnp::Orphan< ::capnp::rpc::CapDescriptor>&& value) {
  _builder.setDataField<Resolve::Which>(
3842
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::CAP);
3843
  ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::adopt(_builder.getPointerField(
3844
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3845 3846
}
inline ::capnp::Orphan< ::capnp::rpc::CapDescriptor> Resolve::Builder::disownCap() {
3847
  KJ_IREQUIRE((which() == Resolve::CAP),
3848
              "Must check which() before get()ing a union member.");
3849
  return ::capnp::_::PointerHelpers< ::capnp::rpc::CapDescriptor>::disown(_builder.getPointerField(
3850
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3851 3852 3853 3854 3855 3856 3857 3858 3859 3860
}

inline bool Resolve::Reader::isException() const {
  return which() == Resolve::EXCEPTION;
}
inline bool Resolve::Builder::isException() {
  return which() == Resolve::EXCEPTION;
}
inline bool Resolve::Reader::hasException() const {
  if (which() != Resolve::EXCEPTION) return false;
3861
  return !_reader.getPointerField(
3862
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3863 3864 3865
}
inline bool Resolve::Builder::hasException() {
  if (which() != Resolve::EXCEPTION) return false;
3866
  return !_builder.getPointerField(
3867
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3868 3869
}
inline  ::capnp::rpc::Exception::Reader Resolve::Reader::getException() const {
3870
  KJ_IREQUIRE((which() == Resolve::EXCEPTION),
3871
              "Must check which() before get()ing a union member.");
3872
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_reader.getPointerField(
3873
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3874 3875
}
inline  ::capnp::rpc::Exception::Builder Resolve::Builder::getException() {
3876
  KJ_IREQUIRE((which() == Resolve::EXCEPTION),
3877
              "Must check which() before get()ing a union member.");
3878
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::get(_builder.getPointerField(
3879
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3880 3881 3882
}
inline void Resolve::Builder::setException( ::capnp::rpc::Exception::Reader value) {
  _builder.setDataField<Resolve::Which>(
3883
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::EXCEPTION);
3884
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::set(_builder.getPointerField(
3885
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3886 3887 3888
}
inline  ::capnp::rpc::Exception::Builder Resolve::Builder::initException() {
  _builder.setDataField<Resolve::Which>(
3889
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::EXCEPTION);
3890
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::init(_builder.getPointerField(
3891
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3892 3893 3894 3895
}
inline void Resolve::Builder::adoptException(
    ::capnp::Orphan< ::capnp::rpc::Exception>&& value) {
  _builder.setDataField<Resolve::Which>(
3896
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Resolve::EXCEPTION);
3897
  ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::adopt(_builder.getPointerField(
3898
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3899 3900
}
inline ::capnp::Orphan< ::capnp::rpc::Exception> Resolve::Builder::disownException() {
3901
  KJ_IREQUIRE((which() == Resolve::EXCEPTION),
3902
              "Must check which() before get()ing a union member.");
3903
  return ::capnp::_::PointerHelpers< ::capnp::rpc::Exception>::disown(_builder.getPointerField(
3904
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3905 3906 3907 3908
}

inline  ::uint32_t Release::Reader::getId() const {
  return _reader.getDataField< ::uint32_t>(
3909
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3910 3911 3912 3913
}

inline  ::uint32_t Release::Builder::getId() {
  return _builder.getDataField< ::uint32_t>(
3914
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3915 3916 3917
}
inline void Release::Builder::setId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3918
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3919 3920 3921 3922
}

inline  ::uint32_t Release::Reader::getReferenceCount() const {
  return _reader.getDataField< ::uint32_t>(
3923
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3924 3925 3926 3927
}

inline  ::uint32_t Release::Builder::getReferenceCount() {
  return _builder.getDataField< ::uint32_t>(
3928
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3929 3930 3931
}
inline void Release::Builder::setReferenceCount( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3932
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
3933 3934
}

Kenton Varda's avatar
Kenton Varda committed
3935
inline bool Disembargo::Reader::hasTarget() const {
3936
  return !_reader.getPointerField(
3937
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3938
}
Kenton Varda's avatar
Kenton Varda committed
3939
inline bool Disembargo::Builder::hasTarget() {
3940
  return !_builder.getPointerField(
3941
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3942
}
Kenton Varda's avatar
Kenton Varda committed
3943
inline  ::capnp::rpc::MessageTarget::Reader Disembargo::Reader::getTarget() const {
3944
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_reader.getPointerField(
3945
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3946
}
Kenton Varda's avatar
Kenton Varda committed
3947
inline  ::capnp::rpc::MessageTarget::Builder Disembargo::Builder::getTarget() {
3948
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_builder.getPointerField(
3949
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3950
}
3951
#if !CAPNP_LITE
3952
inline  ::capnp::rpc::MessageTarget::Pipeline Disembargo::Pipeline::getTarget() {
Kenton Varda's avatar
Kenton Varda committed
3953 3954
  return  ::capnp::rpc::MessageTarget::Pipeline(_typeless.getPointerField(0));
}
3955
#endif  // !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
3956
inline void Disembargo::Builder::setTarget( ::capnp::rpc::MessageTarget::Reader value) {
3957
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::set(_builder.getPointerField(
3958
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
3959
}
Kenton Varda's avatar
Kenton Varda committed
3960
inline  ::capnp::rpc::MessageTarget::Builder Disembargo::Builder::initTarget() {
3961
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::init(_builder.getPointerField(
3962
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3963
}
Kenton Varda's avatar
Kenton Varda committed
3964 3965
inline void Disembargo::Builder::adoptTarget(
    ::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value) {
3966
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::adopt(_builder.getPointerField(
3967
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
3968
}
Kenton Varda's avatar
Kenton Varda committed
3969
inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> Disembargo::Builder::disownTarget() {
3970
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::disown(_builder.getPointerField(
3971
      ::capnp::bounded<0>() * ::capnp::POINTERS));
3972 3973
}

3974
inline typename Disembargo::Context::Reader Disembargo::Reader::getContext() const {
3975
  return typename Disembargo::Context::Reader(_reader);
Kenton Varda's avatar
Kenton Varda committed
3976
}
3977
inline typename Disembargo::Context::Builder Disembargo::Builder::getContext() {
3978
  return typename Disembargo::Context::Builder(_builder);
Kenton Varda's avatar
Kenton Varda committed
3979
}
3980
#if !CAPNP_LITE
3981
inline typename Disembargo::Context::Pipeline Disembargo::Pipeline::getContext() {
3982
  return typename Disembargo::Context::Pipeline(_typeless.noop());
Kenton Varda's avatar
Kenton Varda committed
3983
}
3984
#endif  // !CAPNP_LITE
3985
inline typename Disembargo::Context::Builder Disembargo::Builder::initContext() {
3986 3987
  _builder.setDataField< ::uint32_t>(::capnp::bounded<0>() * ::capnp::ELEMENTS, 0);
  _builder.setDataField< ::uint16_t>(::capnp::bounded<2>() * ::capnp::ELEMENTS, 0);
3988
  return typename Disembargo::Context::Builder(_builder);
Kenton Varda's avatar
Kenton Varda committed
3989
}
3990
inline  ::capnp::rpc::Disembargo::Context::Which Disembargo::Context::Reader::which() const {
3991
  return _reader.getDataField<Which>(
3992
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3993
}
3994
inline  ::capnp::rpc::Disembargo::Context::Which Disembargo::Context::Builder::which() {
3995
  return _builder.getDataField<Which>(
3996
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3997 3998 3999 4000 4001 4002 4003 4004 4005
}

inline bool Disembargo::Context::Reader::isSenderLoopback() const {
  return which() == Disembargo::Context::SENDER_LOOPBACK;
}
inline bool Disembargo::Context::Builder::isSenderLoopback() {
  return which() == Disembargo::Context::SENDER_LOOPBACK;
}
inline  ::uint32_t Disembargo::Context::Reader::getSenderLoopback() const {
4006
  KJ_IREQUIRE((which() == Disembargo::Context::SENDER_LOOPBACK),
4007 4008
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4009
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4010 4011 4012
}

inline  ::uint32_t Disembargo::Context::Builder::getSenderLoopback() {
4013
  KJ_IREQUIRE((which() == Disembargo::Context::SENDER_LOOPBACK),
4014 4015
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4016
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4017 4018 4019
}
inline void Disembargo::Context::Builder::setSenderLoopback( ::uint32_t value) {
  _builder.setDataField<Disembargo::Context::Which>(
4020
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Disembargo::Context::SENDER_LOOPBACK);
4021
  _builder.setDataField< ::uint32_t>(
4022
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4023 4024 4025 4026 4027 4028 4029 4030 4031
}

inline bool Disembargo::Context::Reader::isReceiverLoopback() const {
  return which() == Disembargo::Context::RECEIVER_LOOPBACK;
}
inline bool Disembargo::Context::Builder::isReceiverLoopback() {
  return which() == Disembargo::Context::RECEIVER_LOOPBACK;
}
inline  ::uint32_t Disembargo::Context::Reader::getReceiverLoopback() const {
4032
  KJ_IREQUIRE((which() == Disembargo::Context::RECEIVER_LOOPBACK),
4033 4034
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4035
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4036 4037 4038
}

inline  ::uint32_t Disembargo::Context::Builder::getReceiverLoopback() {
4039
  KJ_IREQUIRE((which() == Disembargo::Context::RECEIVER_LOOPBACK),
4040 4041
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4042
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4043 4044 4045
}
inline void Disembargo::Context::Builder::setReceiverLoopback( ::uint32_t value) {
  _builder.setDataField<Disembargo::Context::Which>(
4046
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Disembargo::Context::RECEIVER_LOOPBACK);
4047
  _builder.setDataField< ::uint32_t>(
4048
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4049 4050 4051 4052 4053 4054 4055 4056 4057
}

inline bool Disembargo::Context::Reader::isAccept() const {
  return which() == Disembargo::Context::ACCEPT;
}
inline bool Disembargo::Context::Builder::isAccept() {
  return which() == Disembargo::Context::ACCEPT;
}
inline  ::capnp::Void Disembargo::Context::Reader::getAccept() const {
4058
  KJ_IREQUIRE((which() == Disembargo::Context::ACCEPT),
4059 4060
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4061
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4062 4063 4064
}

inline  ::capnp::Void Disembargo::Context::Builder::getAccept() {
4065
  KJ_IREQUIRE((which() == Disembargo::Context::ACCEPT),
4066 4067
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
4068
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4069 4070 4071
}
inline void Disembargo::Context::Builder::setAccept( ::capnp::Void value) {
  _builder.setDataField<Disembargo::Context::Which>(
4072
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Disembargo::Context::ACCEPT);
4073
  _builder.setDataField< ::capnp::Void>(
4074
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4075 4076 4077 4078 4079 4080 4081 4082 4083
}

inline bool Disembargo::Context::Reader::isProvide() const {
  return which() == Disembargo::Context::PROVIDE;
}
inline bool Disembargo::Context::Builder::isProvide() {
  return which() == Disembargo::Context::PROVIDE;
}
inline  ::uint32_t Disembargo::Context::Reader::getProvide() const {
4084
  KJ_IREQUIRE((which() == Disembargo::Context::PROVIDE),
4085 4086
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4087
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4088 4089 4090
}

inline  ::uint32_t Disembargo::Context::Builder::getProvide() {
4091
  KJ_IREQUIRE((which() == Disembargo::Context::PROVIDE),
4092 4093
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4094
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4095 4096 4097
}
inline void Disembargo::Context::Builder::setProvide( ::uint32_t value) {
  _builder.setDataField<Disembargo::Context::Which>(
4098
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, Disembargo::Context::PROVIDE);
4099
  _builder.setDataField< ::uint32_t>(
4100
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4101 4102
}

4103 4104
inline  ::uint32_t Provide::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4105
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4106 4107 4108 4109
}

inline  ::uint32_t Provide::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4110
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4111 4112 4113
}
inline void Provide::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4114
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4115 4116
}

Kenton Varda's avatar
Kenton Varda committed
4117
inline bool Provide::Reader::hasTarget() const {
4118
  return !_reader.getPointerField(
4119
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
Kenton Varda's avatar
Kenton Varda committed
4120 4121
}
inline bool Provide::Builder::hasTarget() {
4122
  return !_builder.getPointerField(
4123
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4124
}
Kenton Varda's avatar
Kenton Varda committed
4125
inline  ::capnp::rpc::MessageTarget::Reader Provide::Reader::getTarget() const {
4126
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_reader.getPointerField(
4127
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4128 4129
}
inline  ::capnp::rpc::MessageTarget::Builder Provide::Builder::getTarget() {
4130
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_builder.getPointerField(
4131
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4132
}
4133
#if !CAPNP_LITE
4134
inline  ::capnp::rpc::MessageTarget::Pipeline Provide::Pipeline::getTarget() {
Kenton Varda's avatar
Kenton Varda committed
4135 4136
  return  ::capnp::rpc::MessageTarget::Pipeline(_typeless.getPointerField(0));
}
4137
#endif  // !CAPNP_LITE
Kenton Varda's avatar
Kenton Varda committed
4138
inline void Provide::Builder::setTarget( ::capnp::rpc::MessageTarget::Reader value) {
4139
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::set(_builder.getPointerField(
4140
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4141
}
Kenton Varda's avatar
Kenton Varda committed
4142
inline  ::capnp::rpc::MessageTarget::Builder Provide::Builder::initTarget() {
4143
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::init(_builder.getPointerField(
4144
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4145
}
Kenton Varda's avatar
Kenton Varda committed
4146 4147
inline void Provide::Builder::adoptTarget(
    ::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value) {
4148
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::adopt(_builder.getPointerField(
4149
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
Kenton Varda's avatar
Kenton Varda committed
4150 4151
}
inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> Provide::Builder::disownTarget() {
4152
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::disown(_builder.getPointerField(
4153
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4154
}
Kenton Varda's avatar
Kenton Varda committed
4155

4156
inline bool Provide::Reader::hasRecipient() const {
4157
  return !_reader.getPointerField(
4158
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4159 4160
}
inline bool Provide::Builder::hasRecipient() {
4161
  return !_builder.getPointerField(
4162
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4163
}
4164
inline ::capnp::AnyPointer::Reader Provide::Reader::getRecipient() const {
4165
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4166
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4167
}
4168
inline ::capnp::AnyPointer::Builder Provide::Builder::getRecipient() {
4169
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4170
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4171
}
4172
inline ::capnp::AnyPointer::Builder Provide::Builder::initRecipient() {
4173
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4174
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4175 4176 4177 4178 4179 4180
  result.clear();
  return result;
}

inline  ::uint32_t Accept::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4181
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4182 4183 4184 4185
}

inline  ::uint32_t Accept::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4186
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4187 4188 4189
}
inline void Accept::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4190
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4191 4192 4193
}

inline bool Accept::Reader::hasProvision() const {
4194
  return !_reader.getPointerField(
4195
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4196 4197
}
inline bool Accept::Builder::hasProvision() {
4198
  return !_builder.getPointerField(
4199
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4200
}
4201
inline ::capnp::AnyPointer::Reader Accept::Reader::getProvision() const {
4202
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4203
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4204
}
4205
inline ::capnp::AnyPointer::Builder Accept::Builder::getProvision() {
4206
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4207
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4208
}
4209
inline ::capnp::AnyPointer::Builder Accept::Builder::initProvision() {
4210
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4211
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4212 4213 4214 4215
  result.clear();
  return result;
}

4216 4217
inline bool Accept::Reader::getEmbargo() const {
  return _reader.getDataField<bool>(
4218
      ::capnp::bounded<32>() * ::capnp::ELEMENTS);
4219 4220 4221 4222
}

inline bool Accept::Builder::getEmbargo() {
  return _builder.getDataField<bool>(
4223
      ::capnp::bounded<32>() * ::capnp::ELEMENTS);
4224 4225 4226
}
inline void Accept::Builder::setEmbargo(bool value) {
  _builder.setDataField<bool>(
4227
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value);
4228 4229
}

4230 4231
inline  ::uint32_t Join::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4232
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4233 4234 4235 4236
}

inline  ::uint32_t Join::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4237
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4238 4239 4240
}
inline void Join::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4241
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4242 4243
}

4244
inline bool Join::Reader::hasTarget() const {
4245
  return !_reader.getPointerField(
4246
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4247
}
4248
inline bool Join::Builder::hasTarget() {
4249
  return !_builder.getPointerField(
4250
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4251
}
4252
inline  ::capnp::rpc::MessageTarget::Reader Join::Reader::getTarget() const {
4253
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_reader.getPointerField(
4254
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4255 4256
}
inline  ::capnp::rpc::MessageTarget::Builder Join::Builder::getTarget() {
4257
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::get(_builder.getPointerField(
4258
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4259
}
4260
#if !CAPNP_LITE
4261 4262 4263
inline  ::capnp::rpc::MessageTarget::Pipeline Join::Pipeline::getTarget() {
  return  ::capnp::rpc::MessageTarget::Pipeline(_typeless.getPointerField(0));
}
4264
#endif  // !CAPNP_LITE
4265
inline void Join::Builder::setTarget( ::capnp::rpc::MessageTarget::Reader value) {
4266
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::set(_builder.getPointerField(
4267
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4268 4269
}
inline  ::capnp::rpc::MessageTarget::Builder Join::Builder::initTarget() {
4270
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::init(_builder.getPointerField(
4271
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4272 4273 4274
}
inline void Join::Builder::adoptTarget(
    ::capnp::Orphan< ::capnp::rpc::MessageTarget>&& value) {
4275
  ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::adopt(_builder.getPointerField(
4276
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4277 4278
}
inline ::capnp::Orphan< ::capnp::rpc::MessageTarget> Join::Builder::disownTarget() {
4279
  return ::capnp::_::PointerHelpers< ::capnp::rpc::MessageTarget>::disown(_builder.getPointerField(
4280
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4281 4282 4283
}

inline bool Join::Reader::hasKeyPart() const {
4284
  return !_reader.getPointerField(
4285
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4286 4287
}
inline bool Join::Builder::hasKeyPart() {
4288
  return !_builder.getPointerField(
4289
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4290
}
4291
inline ::capnp::AnyPointer::Reader Join::Reader::getKeyPart() const {
4292
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4293
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4294
}
4295
inline ::capnp::AnyPointer::Builder Join::Builder::getKeyPart() {
4296
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4297
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4298
}
4299
inline ::capnp::AnyPointer::Builder Join::Builder::initKeyPart() {
4300
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4301
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4302 4303 4304 4305
  result.clear();
  return result;
}

4306
inline  ::capnp::rpc::MessageTarget::Which MessageTarget::Reader::which() const {
4307
  return _reader.getDataField<Which>(
4308
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4309
}
4310
inline  ::capnp::rpc::MessageTarget::Which MessageTarget::Builder::which() {
4311
  return _builder.getDataField<Which>(
4312
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4313 4314
}

4315 4316
inline bool MessageTarget::Reader::isImportedCap() const {
  return which() == MessageTarget::IMPORTED_CAP;
Kenton Varda's avatar
Kenton Varda committed
4317
}
4318 4319
inline bool MessageTarget::Builder::isImportedCap() {
  return which() == MessageTarget::IMPORTED_CAP;
Kenton Varda's avatar
Kenton Varda committed
4320
}
4321
inline  ::uint32_t MessageTarget::Reader::getImportedCap() const {
4322
  KJ_IREQUIRE((which() == MessageTarget::IMPORTED_CAP),
Kenton Varda's avatar
Kenton Varda committed
4323 4324
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4325
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4326 4327
}

4328
inline  ::uint32_t MessageTarget::Builder::getImportedCap() {
4329
  KJ_IREQUIRE((which() == MessageTarget::IMPORTED_CAP),
Kenton Varda's avatar
Kenton Varda committed
4330 4331
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4332
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4333
}
4334
inline void MessageTarget::Builder::setImportedCap( ::uint32_t value) {
Kenton Varda's avatar
Kenton Varda committed
4335
  _builder.setDataField<MessageTarget::Which>(
4336
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, MessageTarget::IMPORTED_CAP);
Kenton Varda's avatar
Kenton Varda committed
4337
  _builder.setDataField< ::uint32_t>(
4338
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
Kenton Varda's avatar
Kenton Varda committed
4339 4340 4341 4342 4343 4344 4345 4346 4347 4348
}

inline bool MessageTarget::Reader::isPromisedAnswer() const {
  return which() == MessageTarget::PROMISED_ANSWER;
}
inline bool MessageTarget::Builder::isPromisedAnswer() {
  return which() == MessageTarget::PROMISED_ANSWER;
}
inline bool MessageTarget::Reader::hasPromisedAnswer() const {
  if (which() != MessageTarget::PROMISED_ANSWER) return false;
4349
  return !_reader.getPointerField(
4350
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
Kenton Varda's avatar
Kenton Varda committed
4351 4352 4353
}
inline bool MessageTarget::Builder::hasPromisedAnswer() {
  if (which() != MessageTarget::PROMISED_ANSWER) return false;
4354
  return !_builder.getPointerField(
4355
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
Kenton Varda's avatar
Kenton Varda committed
4356 4357
}
inline  ::capnp::rpc::PromisedAnswer::Reader MessageTarget::Reader::getPromisedAnswer() const {
4358
  KJ_IREQUIRE((which() == MessageTarget::PROMISED_ANSWER),
Kenton Varda's avatar
Kenton Varda committed
4359
              "Must check which() before get()ing a union member.");
4360
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::get(_reader.getPointerField(
4361
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4362 4363
}
inline  ::capnp::rpc::PromisedAnswer::Builder MessageTarget::Builder::getPromisedAnswer() {
4364
  KJ_IREQUIRE((which() == MessageTarget::PROMISED_ANSWER),
Kenton Varda's avatar
Kenton Varda committed
4365
              "Must check which() before get()ing a union member.");
4366
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::get(_builder.getPointerField(
4367
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4368 4369 4370
}
inline void MessageTarget::Builder::setPromisedAnswer( ::capnp::rpc::PromisedAnswer::Reader value) {
  _builder.setDataField<MessageTarget::Which>(
4371
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, MessageTarget::PROMISED_ANSWER);
4372
  ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::set(_builder.getPointerField(
4373
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
Kenton Varda's avatar
Kenton Varda committed
4374 4375 4376
}
inline  ::capnp::rpc::PromisedAnswer::Builder MessageTarget::Builder::initPromisedAnswer() {
  _builder.setDataField<MessageTarget::Which>(
4377
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, MessageTarget::PROMISED_ANSWER);
4378
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::init(_builder.getPointerField(
4379
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4380 4381 4382 4383
}
inline void MessageTarget::Builder::adoptPromisedAnswer(
    ::capnp::Orphan< ::capnp::rpc::PromisedAnswer>&& value) {
  _builder.setDataField<MessageTarget::Which>(
4384
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, MessageTarget::PROMISED_ANSWER);
4385
  ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::adopt(_builder.getPointerField(
4386
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
Kenton Varda's avatar
Kenton Varda committed
4387 4388
}
inline ::capnp::Orphan< ::capnp::rpc::PromisedAnswer> MessageTarget::Builder::disownPromisedAnswer() {
4389
  KJ_IREQUIRE((which() == MessageTarget::PROMISED_ANSWER),
Kenton Varda's avatar
Kenton Varda committed
4390
              "Must check which() before get()ing a union member.");
4391
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::disown(_builder.getPointerField(
4392
      ::capnp::bounded<0>() * ::capnp::POINTERS));
Kenton Varda's avatar
Kenton Varda committed
4393 4394
}

4395
inline bool Payload::Reader::hasContent() const {
4396
  return !_reader.getPointerField(
4397
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4398 4399
}
inline bool Payload::Builder::hasContent() {
4400
  return !_builder.getPointerField(
4401
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4402 4403
}
inline ::capnp::AnyPointer::Reader Payload::Reader::getContent() const {
4404
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4405
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4406 4407
}
inline ::capnp::AnyPointer::Builder Payload::Builder::getContent() {
4408
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4409
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4410 4411
}
inline ::capnp::AnyPointer::Builder Payload::Builder::initContent() {
4412
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4413
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4414 4415 4416 4417 4418
  result.clear();
  return result;
}

inline bool Payload::Reader::hasCapTable() const {
4419
  return !_reader.getPointerField(
4420
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4421 4422
}
inline bool Payload::Builder::hasCapTable() {
4423
  return !_builder.getPointerField(
4424
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4425
}
4426 4427
inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Reader Payload::Reader::getCapTable() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::get(_reader.getPointerField(
4428
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4429
}
4430 4431
inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Builder Payload::Builder::getCapTable() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::get(_builder.getPointerField(
4432
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4433
}
4434 4435
inline void Payload::Builder::setCapTable( ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::set(_builder.getPointerField(
4436
      ::capnp::bounded<1>() * ::capnp::POINTERS), value);
4437
}
4438 4439
inline  ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>::Builder Payload::Builder::initCapTable(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::init(_builder.getPointerField(
4440
      ::capnp::bounded<1>() * ::capnp::POINTERS), size);
4441 4442
}
inline void Payload::Builder::adoptCapTable(
4443 4444
    ::capnp::Orphan< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField(
4445
      ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
4446
}
4447 4448
inline ::capnp::Orphan< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>> Payload::Builder::disownCapTable() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField(
4449
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4450 4451
}

4452
inline  ::capnp::rpc::CapDescriptor::Which CapDescriptor::Reader::which() const {
4453
  return _reader.getDataField<Which>(
4454
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4455
}
4456
inline  ::capnp::rpc::CapDescriptor::Which CapDescriptor::Builder::which() {
4457
  return _builder.getDataField<Which>(
4458
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4459 4460 4461 4462 4463 4464 4465 4466 4467
}

inline bool CapDescriptor::Reader::isNone() const {
  return which() == CapDescriptor::NONE;
}
inline bool CapDescriptor::Builder::isNone() {
  return which() == CapDescriptor::NONE;
}
inline  ::capnp::Void CapDescriptor::Reader::getNone() const {
4468
  KJ_IREQUIRE((which() == CapDescriptor::NONE),
4469 4470
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4471
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4472 4473 4474
}

inline  ::capnp::Void CapDescriptor::Builder::getNone() {
4475
  KJ_IREQUIRE((which() == CapDescriptor::NONE),
4476 4477
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
4478
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4479 4480 4481
}
inline void CapDescriptor::Builder::setNone( ::capnp::Void value) {
  _builder.setDataField<CapDescriptor::Which>(
4482
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::NONE);
4483
  _builder.setDataField< ::capnp::Void>(
4484
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4485 4486 4487 4488 4489 4490 4491 4492 4493
}

inline bool CapDescriptor::Reader::isSenderHosted() const {
  return which() == CapDescriptor::SENDER_HOSTED;
}
inline bool CapDescriptor::Builder::isSenderHosted() {
  return which() == CapDescriptor::SENDER_HOSTED;
}
inline  ::uint32_t CapDescriptor::Reader::getSenderHosted() const {
4494
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_HOSTED),
4495 4496
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4497
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4498 4499 4500
}

inline  ::uint32_t CapDescriptor::Builder::getSenderHosted() {
4501
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_HOSTED),
4502 4503
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4504
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4505 4506 4507
}
inline void CapDescriptor::Builder::setSenderHosted( ::uint32_t value) {
  _builder.setDataField<CapDescriptor::Which>(
4508
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::SENDER_HOSTED);
4509
  _builder.setDataField< ::uint32_t>(
4510
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4511 4512 4513 4514 4515 4516 4517 4518 4519
}

inline bool CapDescriptor::Reader::isSenderPromise() const {
  return which() == CapDescriptor::SENDER_PROMISE;
}
inline bool CapDescriptor::Builder::isSenderPromise() {
  return which() == CapDescriptor::SENDER_PROMISE;
}
inline  ::uint32_t CapDescriptor::Reader::getSenderPromise() const {
4520
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_PROMISE),
4521 4522
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4523
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4524 4525 4526
}

inline  ::uint32_t CapDescriptor::Builder::getSenderPromise() {
4527
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_PROMISE),
4528 4529
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4530
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4531 4532 4533
}
inline void CapDescriptor::Builder::setSenderPromise( ::uint32_t value) {
  _builder.setDataField<CapDescriptor::Which>(
4534
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::SENDER_PROMISE);
4535
  _builder.setDataField< ::uint32_t>(
4536
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4537 4538 4539 4540 4541 4542 4543 4544 4545
}

inline bool CapDescriptor::Reader::isReceiverHosted() const {
  return which() == CapDescriptor::RECEIVER_HOSTED;
}
inline bool CapDescriptor::Builder::isReceiverHosted() {
  return which() == CapDescriptor::RECEIVER_HOSTED;
}
inline  ::uint32_t CapDescriptor::Reader::getReceiverHosted() const {
4546
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_HOSTED),
4547 4548
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4549
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4550 4551 4552
}

inline  ::uint32_t CapDescriptor::Builder::getReceiverHosted() {
4553
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_HOSTED),
4554 4555
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint32_t>(
4556
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4557 4558 4559
}
inline void CapDescriptor::Builder::setReceiverHosted( ::uint32_t value) {
  _builder.setDataField<CapDescriptor::Which>(
4560
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::RECEIVER_HOSTED);
4561
  _builder.setDataField< ::uint32_t>(
4562
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4563 4564 4565 4566 4567 4568 4569 4570 4571 4572
}

inline bool CapDescriptor::Reader::isReceiverAnswer() const {
  return which() == CapDescriptor::RECEIVER_ANSWER;
}
inline bool CapDescriptor::Builder::isReceiverAnswer() {
  return which() == CapDescriptor::RECEIVER_ANSWER;
}
inline bool CapDescriptor::Reader::hasReceiverAnswer() const {
  if (which() != CapDescriptor::RECEIVER_ANSWER) return false;
4573
  return !_reader.getPointerField(
4574
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4575 4576 4577
}
inline bool CapDescriptor::Builder::hasReceiverAnswer() {
  if (which() != CapDescriptor::RECEIVER_ANSWER) return false;
4578
  return !_builder.getPointerField(
4579
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4580 4581
}
inline  ::capnp::rpc::PromisedAnswer::Reader CapDescriptor::Reader::getReceiverAnswer() const {
4582
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_ANSWER),
4583
              "Must check which() before get()ing a union member.");
4584
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::get(_reader.getPointerField(
4585
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4586 4587
}
inline  ::capnp::rpc::PromisedAnswer::Builder CapDescriptor::Builder::getReceiverAnswer() {
4588
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_ANSWER),
4589
              "Must check which() before get()ing a union member.");
4590
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::get(_builder.getPointerField(
4591
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4592 4593 4594
}
inline void CapDescriptor::Builder::setReceiverAnswer( ::capnp::rpc::PromisedAnswer::Reader value) {
  _builder.setDataField<CapDescriptor::Which>(
4595
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::RECEIVER_ANSWER);
4596
  ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::set(_builder.getPointerField(
4597
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4598 4599 4600
}
inline  ::capnp::rpc::PromisedAnswer::Builder CapDescriptor::Builder::initReceiverAnswer() {
  _builder.setDataField<CapDescriptor::Which>(
4601
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::RECEIVER_ANSWER);
4602
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::init(_builder.getPointerField(
4603
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4604 4605 4606 4607
}
inline void CapDescriptor::Builder::adoptReceiverAnswer(
    ::capnp::Orphan< ::capnp::rpc::PromisedAnswer>&& value) {
  _builder.setDataField<CapDescriptor::Which>(
4608
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::RECEIVER_ANSWER);
4609
  ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::adopt(_builder.getPointerField(
4610
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4611 4612
}
inline ::capnp::Orphan< ::capnp::rpc::PromisedAnswer> CapDescriptor::Builder::disownReceiverAnswer() {
4613
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_ANSWER),
4614
              "Must check which() before get()ing a union member.");
4615
  return ::capnp::_::PointerHelpers< ::capnp::rpc::PromisedAnswer>::disown(_builder.getPointerField(
4616
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4617 4618 4619 4620 4621 4622 4623 4624 4625 4626
}

inline bool CapDescriptor::Reader::isThirdPartyHosted() const {
  return which() == CapDescriptor::THIRD_PARTY_HOSTED;
}
inline bool CapDescriptor::Builder::isThirdPartyHosted() {
  return which() == CapDescriptor::THIRD_PARTY_HOSTED;
}
inline bool CapDescriptor::Reader::hasThirdPartyHosted() const {
  if (which() != CapDescriptor::THIRD_PARTY_HOSTED) return false;
4627
  return !_reader.getPointerField(
4628
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4629 4630 4631
}
inline bool CapDescriptor::Builder::hasThirdPartyHosted() {
  if (which() != CapDescriptor::THIRD_PARTY_HOSTED) return false;
4632
  return !_builder.getPointerField(
4633
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4634 4635
}
inline  ::capnp::rpc::ThirdPartyCapDescriptor::Reader CapDescriptor::Reader::getThirdPartyHosted() const {
4636
  KJ_IREQUIRE((which() == CapDescriptor::THIRD_PARTY_HOSTED),
4637
              "Must check which() before get()ing a union member.");
4638
  return ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::get(_reader.getPointerField(
4639
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4640 4641
}
inline  ::capnp::rpc::ThirdPartyCapDescriptor::Builder CapDescriptor::Builder::getThirdPartyHosted() {
4642
  KJ_IREQUIRE((which() == CapDescriptor::THIRD_PARTY_HOSTED),
4643
              "Must check which() before get()ing a union member.");
4644
  return ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::get(_builder.getPointerField(
4645
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4646 4647 4648
}
inline void CapDescriptor::Builder::setThirdPartyHosted( ::capnp::rpc::ThirdPartyCapDescriptor::Reader value) {
  _builder.setDataField<CapDescriptor::Which>(
4649
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::THIRD_PARTY_HOSTED);
4650
  ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::set(_builder.getPointerField(
4651
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4652 4653 4654
}
inline  ::capnp::rpc::ThirdPartyCapDescriptor::Builder CapDescriptor::Builder::initThirdPartyHosted() {
  _builder.setDataField<CapDescriptor::Which>(
4655
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::THIRD_PARTY_HOSTED);
4656
  return ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::init(_builder.getPointerField(
4657
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4658 4659 4660 4661
}
inline void CapDescriptor::Builder::adoptThirdPartyHosted(
    ::capnp::Orphan< ::capnp::rpc::ThirdPartyCapDescriptor>&& value) {
  _builder.setDataField<CapDescriptor::Which>(
4662
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, CapDescriptor::THIRD_PARTY_HOSTED);
4663
  ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::adopt(_builder.getPointerField(
4664
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4665 4666
}
inline ::capnp::Orphan< ::capnp::rpc::ThirdPartyCapDescriptor> CapDescriptor::Builder::disownThirdPartyHosted() {
4667
  KJ_IREQUIRE((which() == CapDescriptor::THIRD_PARTY_HOSTED),
4668
              "Must check which() before get()ing a union member.");
4669
  return ::capnp::_::PointerHelpers< ::capnp::rpc::ThirdPartyCapDescriptor>::disown(_builder.getPointerField(
4670
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4671 4672 4673 4674
}

inline  ::uint32_t PromisedAnswer::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4675
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4676 4677 4678 4679
}

inline  ::uint32_t PromisedAnswer::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4680
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4681 4682 4683
}
inline void PromisedAnswer::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4684
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4685 4686 4687
}

inline bool PromisedAnswer::Reader::hasTransform() const {
4688
  return !_reader.getPointerField(
4689
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4690 4691
}
inline bool PromisedAnswer::Builder::hasTransform() {
4692
  return !_builder.getPointerField(
4693
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4694
}
4695 4696
inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Reader PromisedAnswer::Reader::getTransform() const {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::get(_reader.getPointerField(
4697
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4698
}
4699 4700
inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Builder PromisedAnswer::Builder::getTransform() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::get(_builder.getPointerField(
4701
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4702
}
4703 4704
inline void PromisedAnswer::Builder::setTransform( ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Reader value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::set(_builder.getPointerField(
4705
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4706
}
4707 4708
inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Builder PromisedAnswer::Builder::initTransform(unsigned int size) {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::init(_builder.getPointerField(
4709
      ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4710 4711
}
inline void PromisedAnswer::Builder::adoptTransform(
4712 4713
    ::capnp::Orphan< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField(
4714
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4715
}
4716 4717
inline ::capnp::Orphan< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>> PromisedAnswer::Builder::disownTransform() {
  return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>>::disown(_builder.getPointerField(
4718
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4719 4720
}

4721
inline  ::capnp::rpc::PromisedAnswer::Op::Which PromisedAnswer::Op::Reader::which() const {
4722
  return _reader.getDataField<Which>(
4723
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4724
}
4725
inline  ::capnp::rpc::PromisedAnswer::Op::Which PromisedAnswer::Op::Builder::which() {
4726
  return _builder.getDataField<Which>(
4727
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4728 4729 4730 4731 4732 4733 4734 4735 4736
}

inline bool PromisedAnswer::Op::Reader::isNoop() const {
  return which() == PromisedAnswer::Op::NOOP;
}
inline bool PromisedAnswer::Op::Builder::isNoop() {
  return which() == PromisedAnswer::Op::NOOP;
}
inline  ::capnp::Void PromisedAnswer::Op::Reader::getNoop() const {
4737
  KJ_IREQUIRE((which() == PromisedAnswer::Op::NOOP),
4738 4739
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4740
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4741 4742 4743
}

inline  ::capnp::Void PromisedAnswer::Op::Builder::getNoop() {
4744
  KJ_IREQUIRE((which() == PromisedAnswer::Op::NOOP),
4745 4746
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
4747
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4748 4749 4750
}
inline void PromisedAnswer::Op::Builder::setNoop( ::capnp::Void value) {
  _builder.setDataField<PromisedAnswer::Op::Which>(
4751
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, PromisedAnswer::Op::NOOP);
4752
  _builder.setDataField< ::capnp::Void>(
4753
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4754 4755 4756 4757 4758 4759 4760 4761 4762
}

inline bool PromisedAnswer::Op::Reader::isGetPointerField() const {
  return which() == PromisedAnswer::Op::GET_POINTER_FIELD;
}
inline bool PromisedAnswer::Op::Builder::isGetPointerField() {
  return which() == PromisedAnswer::Op::GET_POINTER_FIELD;
}
inline  ::uint16_t PromisedAnswer::Op::Reader::getGetPointerField() const {
4763
  KJ_IREQUIRE((which() == PromisedAnswer::Op::GET_POINTER_FIELD),
4764 4765
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint16_t>(
4766
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4767 4768 4769
}

inline  ::uint16_t PromisedAnswer::Op::Builder::getGetPointerField() {
4770
  KJ_IREQUIRE((which() == PromisedAnswer::Op::GET_POINTER_FIELD),
4771 4772
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint16_t>(
4773
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4774 4775 4776
}
inline void PromisedAnswer::Op::Builder::setGetPointerField( ::uint16_t value) {
  _builder.setDataField<PromisedAnswer::Op::Which>(
4777
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, PromisedAnswer::Op::GET_POINTER_FIELD);
4778
  _builder.setDataField< ::uint16_t>(
4779
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4780 4781 4782
}

inline bool ThirdPartyCapDescriptor::Reader::hasId() const {
4783
  return !_reader.getPointerField(
4784
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4785 4786
}
inline bool ThirdPartyCapDescriptor::Builder::hasId() {
4787
  return !_builder.getPointerField(
4788
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4789
}
4790
inline ::capnp::AnyPointer::Reader ThirdPartyCapDescriptor::Reader::getId() const {
4791
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4792
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4793
}
4794
inline ::capnp::AnyPointer::Builder ThirdPartyCapDescriptor::Builder::getId() {
4795
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4796
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4797
}
4798
inline ::capnp::AnyPointer::Builder ThirdPartyCapDescriptor::Builder::initId() {
4799
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4800
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4801 4802 4803 4804 4805 4806
  result.clear();
  return result;
}

inline  ::uint32_t ThirdPartyCapDescriptor::Reader::getVineId() const {
  return _reader.getDataField< ::uint32_t>(
4807
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4808 4809 4810 4811
}

inline  ::uint32_t ThirdPartyCapDescriptor::Builder::getVineId() {
  return _builder.getDataField< ::uint32_t>(
4812
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4813 4814 4815
}
inline void ThirdPartyCapDescriptor::Builder::setVineId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4816
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4817 4818 4819
}

inline bool Exception::Reader::hasReason() const {
4820
  return !_reader.getPointerField(
4821
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4822 4823
}
inline bool Exception::Builder::hasReason() {
4824
  return !_builder.getPointerField(
4825
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4826 4827
}
inline  ::capnp::Text::Reader Exception::Reader::getReason() const {
4828
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
4829
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4830 4831
}
inline  ::capnp::Text::Builder Exception::Builder::getReason() {
4832
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
4833
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4834 4835
}
inline void Exception::Builder::setReason( ::capnp::Text::Reader value) {
4836
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
4837
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4838 4839
}
inline  ::capnp::Text::Builder Exception::Builder::initReason(unsigned int size) {
4840
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
4841
      ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4842 4843 4844
}
inline void Exception::Builder::adoptReason(
    ::capnp::Orphan< ::capnp::Text>&& value) {
4845
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
4846
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4847 4848
}
inline ::capnp::Orphan< ::capnp::Text> Exception::Builder::disownReason() {
4849
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
4850
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4851 4852
}

4853
inline bool Exception::Reader::getObsoleteIsCallersFault() const {
4854
  return _reader.getDataField<bool>(
4855
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4856 4857
}

4858
inline bool Exception::Builder::getObsoleteIsCallersFault() {
4859
  return _builder.getDataField<bool>(
4860
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4861
}
4862
inline void Exception::Builder::setObsoleteIsCallersFault(bool value) {
4863
  _builder.setDataField<bool>(
4864
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4865 4866
}

4867 4868
inline  ::uint16_t Exception::Reader::getObsoleteDurability() const {
  return _reader.getDataField< ::uint16_t>(
4869
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4870 4871
}

4872 4873
inline  ::uint16_t Exception::Builder::getObsoleteDurability() {
  return _builder.getDataField< ::uint16_t>(
4874
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4875
}
4876 4877
inline void Exception::Builder::setObsoleteDurability( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
4878
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4879 4880
}

4881 4882
inline  ::capnp::rpc::Exception::Type Exception::Reader::getType() const {
  return _reader.getDataField< ::capnp::rpc::Exception::Type>(
4883
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
4884 4885 4886 4887
}

inline  ::capnp::rpc::Exception::Type Exception::Builder::getType() {
  return _builder.getDataField< ::capnp::rpc::Exception::Type>(
4888
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
4889 4890 4891
}
inline void Exception::Builder::setType( ::capnp::rpc::Exception::Type value) {
  _builder.setDataField< ::capnp::rpc::Exception::Type>(
4892
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
4893 4894
}

4895 4896 4897
}  // namespace
}  // namespace