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

2031 2032
  inline  ::uint8_t getAttachedFd() const;

2033 2034
private:
  ::capnp::_::StructReader _reader;
2035
  template <typename, ::capnp::Kind>
2036
  friend struct ::capnp::ToDynamic_;
2037
  template <typename, ::capnp::Kind>
2038
  friend struct ::capnp::_::PointerHelpers;
2039
  template <typename, ::capnp::Kind>
2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055
  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; }

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

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

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();

2094 2095 2096
  inline  ::uint8_t getAttachedFd();
  inline void setAttachedFd( ::uint8_t value);

2097 2098
private:
  ::capnp::_::StructBuilder _builder;
2099
  template <typename, ::capnp::Kind>
2100 2101
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2102 2103
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2104 2105
};

2106
#if !CAPNP_LITE
2107 2108 2109 2110 2111
class CapDescriptor::Pipeline {
public:
  typedef CapDescriptor Pipelines;

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

private:
2116
  ::capnp::AnyPointer::Pipeline _typeless;
2117
  friend class ::capnp::PipelineHook;
2118
  template <typename, ::capnp::Kind>
2119 2120
  friend struct ::capnp::ToDynamic_;
};
2121
#endif  // !CAPNP_LITE
2122 2123 2124 2125 2126 2127 2128 2129

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

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

2130 2131
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2132 2133
  }

2134
#if !CAPNP_LITE
2135
  inline ::kj::StringTree toString() const {
2136
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2137
  }
2138
#endif  // !CAPNP_LITE
2139

2140 2141 2142
  inline  ::uint32_t getQuestionId() const;

  inline bool hasTransform() const;
2143
  inline  ::capnp::List< ::capnp::rpc::PromisedAnswer::Op,  ::capnp::Kind::STRUCT>::Reader getTransform() const;
2144 2145 2146

private:
  ::capnp::_::StructReader _reader;
2147
  template <typename, ::capnp::Kind>
2148
  friend struct ::capnp::ToDynamic_;
2149
  template <typename, ::capnp::Kind>
2150
  friend struct ::capnp::_::PointerHelpers;
2151
  template <typename, ::capnp::Kind>
2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167
  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; }

2168
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2169
#if !CAPNP_LITE
2170
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2171
#endif  // !CAPNP_LITE
2172 2173 2174 2175 2176

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

  inline bool hasTransform();
2177 2178 2179 2180 2181
  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();
2182 2183 2184

private:
  ::capnp::_::StructBuilder _builder;
2185
  template <typename, ::capnp::Kind>
2186 2187
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2188 2189
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2190 2191
};

2192
#if !CAPNP_LITE
2193 2194 2195 2196 2197
class PromisedAnswer::Pipeline {
public:
  typedef PromisedAnswer Pipelines;

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

private:
2202
  ::capnp::AnyPointer::Pipeline _typeless;
2203
  friend class ::capnp::PipelineHook;
2204
  template <typename, ::capnp::Kind>
2205 2206
  friend struct ::capnp::ToDynamic_;
};
2207
#endif  // !CAPNP_LITE
2208 2209 2210 2211 2212 2213 2214 2215

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

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

2216 2217
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2218 2219
  }

2220
#if !CAPNP_LITE
2221
  inline ::kj::StringTree toString() const {
2222
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2223
  }
2224
#endif  // !CAPNP_LITE
2225

2226 2227 2228 2229 2230 2231 2232 2233 2234
  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;
2235
  template <typename, ::capnp::Kind>
2236
  friend struct ::capnp::ToDynamic_;
2237
  template <typename, ::capnp::Kind>
2238
  friend struct ::capnp::_::PointerHelpers;
2239
  template <typename, ::capnp::Kind>
2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255
  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; }

2256
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2257
#if !CAPNP_LITE
2258
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2259
#endif  // !CAPNP_LITE
2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271

  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;
2272
  template <typename, ::capnp::Kind>
2273 2274
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2275 2276
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2277 2278
};

2279
#if !CAPNP_LITE
2280 2281 2282 2283 2284
class PromisedAnswer::Op::Pipeline {
public:
  typedef Op Pipelines;

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

private:
2289
  ::capnp::AnyPointer::Pipeline _typeless;
2290
  friend class ::capnp::PipelineHook;
2291
  template <typename, ::capnp::Kind>
2292 2293
  friend struct ::capnp::ToDynamic_;
};
2294
#endif  // !CAPNP_LITE
2295 2296 2297 2298 2299 2300 2301 2302

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

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

2303 2304
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2305 2306
  }

2307
#if !CAPNP_LITE
2308
  inline ::kj::StringTree toString() const {
2309
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2310
  }
2311
#endif  // !CAPNP_LITE
2312

2313
  inline bool hasId() const;
2314
  inline ::capnp::AnyPointer::Reader getId() const;
2315 2316 2317 2318 2319

  inline  ::uint32_t getVineId() const;

private:
  ::capnp::_::StructReader _reader;
2320
  template <typename, ::capnp::Kind>
2321
  friend struct ::capnp::ToDynamic_;
2322
  template <typename, ::capnp::Kind>
2323
  friend struct ::capnp::_::PointerHelpers;
2324
  template <typename, ::capnp::Kind>
2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340
  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; }

2341
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2342
#if !CAPNP_LITE
2343
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2344
#endif  // !CAPNP_LITE
2345 2346

  inline bool hasId();
2347 2348
  inline ::capnp::AnyPointer::Builder getId();
  inline ::capnp::AnyPointer::Builder initId();
2349 2350 2351 2352 2353 2354

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

private:
  ::capnp::_::StructBuilder _builder;
2355
  template <typename, ::capnp::Kind>
2356 2357
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2358 2359
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2360 2361
};

2362
#if !CAPNP_LITE
2363 2364 2365 2366 2367
class ThirdPartyCapDescriptor::Pipeline {
public:
  typedef ThirdPartyCapDescriptor Pipelines;

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

private:
2372
  ::capnp::AnyPointer::Pipeline _typeless;
2373
  friend class ::capnp::PipelineHook;
2374
  template <typename, ::capnp::Kind>
2375 2376
  friend struct ::capnp::ToDynamic_;
};
2377
#endif  // !CAPNP_LITE
2378 2379 2380 2381 2382 2383 2384 2385

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

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

2386 2387
  inline ::capnp::MessageSize totalSize() const {
    return _reader.totalSize().asPublic();
2388 2389
  }

2390
#if !CAPNP_LITE
2391
  inline ::kj::StringTree toString() const {
2392
    return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2393
  }
2394
#endif  // !CAPNP_LITE
2395

2396 2397 2398
  inline bool hasReason() const;
  inline  ::capnp::Text::Reader getReason() const;

2399
  inline bool getObsoleteIsCallersFault() const;
2400

2401 2402 2403
  inline  ::uint16_t getObsoleteDurability() const;

  inline  ::capnp::rpc::Exception::Type getType() const;
2404 2405 2406

private:
  ::capnp::_::StructReader _reader;
2407
  template <typename, ::capnp::Kind>
2408
  friend struct ::capnp::ToDynamic_;
2409
  template <typename, ::capnp::Kind>
2410
  friend struct ::capnp::_::PointerHelpers;
2411
  template <typename, ::capnp::Kind>
2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427
  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; }

2428
  inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2429
#if !CAPNP_LITE
2430
  inline ::kj::StringTree toString() const { return asReader().toString(); }
2431
#endif  // !CAPNP_LITE
2432 2433 2434 2435 2436 2437 2438 2439

  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();

2440 2441 2442 2443 2444
  inline bool getObsoleteIsCallersFault();
  inline void setObsoleteIsCallersFault(bool value);

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

2446 2447
  inline  ::capnp::rpc::Exception::Type getType();
  inline void setType( ::capnp::rpc::Exception::Type value);
2448 2449 2450

private:
  ::capnp::_::StructBuilder _builder;
2451
  template <typename, ::capnp::Kind>
2452 2453
  friend struct ::capnp::ToDynamic_;
  friend class ::capnp::Orphanage;
2454 2455
  template <typename, ::capnp::Kind>
  friend struct ::capnp::_::PointerHelpers;
2456 2457
};

2458
#if !CAPNP_LITE
2459 2460 2461 2462 2463
class Exception::Pipeline {
public:
  typedef Exception Pipelines;

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

private:
2468
  ::capnp::AnyPointer::Pipeline _typeless;
2469
  friend class ::capnp::PipelineHook;
2470
  template <typename, ::capnp::Kind>
2471 2472
  friend struct ::capnp::ToDynamic_;
};
2473
#endif  // !CAPNP_LITE
2474 2475 2476

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

2477
inline  ::capnp::rpc::Message::Which Message::Reader::which() const {
2478
  return _reader.getDataField<Which>(
2479
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
2480
}
2481
inline  ::capnp::rpc::Message::Which Message::Builder::which() {
2482
  return _builder.getDataField<Which>(
2483
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
2484 2485 2486 2487 2488 2489 2490 2491 2492 2493
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3208 3209
inline  ::uint32_t Bootstrap::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3210
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3211 3212 3213 3214
}

inline  ::uint32_t Bootstrap::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3215
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3216 3217 3218
}
inline void Bootstrap::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3219
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3220 3221 3222
}

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

3245 3246
inline  ::uint32_t Call::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3247
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3248 3249 3250 3251
}

inline  ::uint32_t Call::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3252
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3253 3254 3255
}
inline void Call::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3256
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3257 3258
}

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

3298 3299
inline  ::uint64_t Call::Reader::getInterfaceId() const {
  return _reader.getDataField< ::uint64_t>(
3300
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3301 3302 3303 3304
}

inline  ::uint64_t Call::Builder::getInterfaceId() {
  return _builder.getDataField< ::uint64_t>(
3305
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3306 3307 3308
}
inline void Call::Builder::setInterfaceId( ::uint64_t value) {
  _builder.setDataField< ::uint64_t>(
3309
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
3310 3311 3312 3313
}

inline  ::uint16_t Call::Reader::getMethodId() const {
  return _reader.getDataField< ::uint16_t>(
3314
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3315 3316 3317 3318
}

inline  ::uint16_t Call::Builder::getMethodId() {
  return _builder.getDataField< ::uint16_t>(
3319
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3320 3321 3322
}
inline void Call::Builder::setMethodId( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
3323
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
3324 3325
}

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

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

inline bool Call::Builder::getAllowThirdPartyTailCall() {
  return _builder.getDataField<bool>(
3388
      ::capnp::bounded<128>() * ::capnp::ELEMENTS);
3389 3390 3391
}
inline void Call::Builder::setAllowThirdPartyTailCall(bool value) {
  _builder.setDataField<bool>(
3392
      ::capnp::bounded<128>() * ::capnp::ELEMENTS, value);
3393 3394
}

3395
inline  ::capnp::rpc::Call::SendResultsTo::Which Call::SendResultsTo::Reader::which() const {
3396
  return _reader.getDataField<Which>(
3397
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3398
}
3399
inline  ::capnp::rpc::Call::SendResultsTo::Which Call::SendResultsTo::Builder::which() {
3400
  return _builder.getDataField<Which>(
3401
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3402 3403
}

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

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

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

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

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

3493
inline  ::capnp::rpc::Return::Which Return::Reader::which() const {
3494
  return _reader.getDataField<Which>(
3495
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3496
}
3497
inline  ::capnp::rpc::Return::Which Return::Builder::which() {
3498
  return _builder.getDataField<Which>(
3499
      ::capnp::bounded<3>() * ::capnp::ELEMENTS);
3500 3501
}

3502
inline  ::uint32_t Return::Reader::getAnswerId() const {
3503
  return _reader.getDataField< ::uint32_t>(
3504
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3505 3506
}

3507
inline  ::uint32_t Return::Builder::getAnswerId() {
3508
  return _builder.getDataField< ::uint32_t>(
3509
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3510
}
3511
inline void Return::Builder::setAnswerId( ::uint32_t value) {
3512
  _builder.setDataField< ::uint32_t>(
3513
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3514 3515
}

3516 3517
inline bool Return::Reader::getReleaseParamCaps() const {
  return _reader.getDataField<bool>(
3518
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3519
}
3520 3521 3522

inline bool Return::Builder::getReleaseParamCaps() {
  return _builder.getDataField<bool>(
3523
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3524
}
3525 3526
inline void Return::Builder::setReleaseParamCaps(bool value) {
  _builder.setDataField<bool>(
3527
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value, true);
3528 3529
}

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

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

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 {
3645
  KJ_IREQUIRE((which() == Return::CANCELED),
3646 3647
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
3648
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3649 3650 3651
}

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

3664 3665 3666 3667 3668 3669 3670
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 {
3671
  KJ_IREQUIRE((which() == Return::RESULTS_SENT_ELSEWHERE),
3672 3673
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
3674
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3675 3676 3677
}

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

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

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

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

3753 3754
inline  ::uint32_t Finish::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
3755
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3756 3757 3758 3759
}

inline  ::uint32_t Finish::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
3760
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3761 3762 3763
}
inline void Finish::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3764
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3765 3766
}

3767 3768
inline bool Finish::Reader::getReleaseResultCaps() const {
  return _reader.getDataField<bool>(
3769
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3770
}
3771 3772 3773

inline bool Finish::Builder::getReleaseResultCaps() {
  return _builder.getDataField<bool>(
3774
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, true);
3775
}
3776 3777
inline void Finish::Builder::setReleaseResultCaps(bool value) {
  _builder.setDataField<bool>(
3778
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value, true);
3779 3780
}

3781
inline  ::capnp::rpc::Resolve::Which Resolve::Reader::which() const {
3782
  return _reader.getDataField<Which>(
3783
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3784
}
3785
inline  ::capnp::rpc::Resolve::Which Resolve::Builder::which() {
3786
  return _builder.getDataField<Which>(
3787
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
3788 3789 3790 3791
}

inline  ::uint32_t Resolve::Reader::getPromiseId() const {
  return _reader.getDataField< ::uint32_t>(
3792
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3793 3794 3795 3796
}

inline  ::uint32_t Resolve::Builder::getPromiseId() {
  return _builder.getDataField< ::uint32_t>(
3797
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3798 3799 3800
}
inline void Resolve::Builder::setPromiseId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3801
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3802 3803 3804 3805 3806 3807 3808 3809 3810 3811
}

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

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

inline  ::uint32_t Release::Reader::getId() const {
  return _reader.getDataField< ::uint32_t>(
3914
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3915 3916 3917 3918
}

inline  ::uint32_t Release::Builder::getId() {
  return _builder.getDataField< ::uint32_t>(
3919
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
3920 3921 3922
}
inline void Release::Builder::setId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3923
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
3924 3925 3926 3927
}

inline  ::uint32_t Release::Reader::getReferenceCount() const {
  return _reader.getDataField< ::uint32_t>(
3928
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3929 3930 3931 3932
}

inline  ::uint32_t Release::Builder::getReferenceCount() {
  return _builder.getDataField< ::uint32_t>(
3933
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
3934 3935 3936
}
inline void Release::Builder::setReferenceCount( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
3937
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
3938 3939
}

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

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

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 {
4011
  KJ_IREQUIRE((which() == Disembargo::Context::SENDER_LOOPBACK),
4012 4013
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4014
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4015 4016 4017
}

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

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 {
4037
  KJ_IREQUIRE((which() == Disembargo::Context::RECEIVER_LOOPBACK),
4038 4039
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4040
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4041 4042 4043
}

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

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 {
4063
  KJ_IREQUIRE((which() == Disembargo::Context::ACCEPT),
4064 4065
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4066
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4067 4068 4069
}

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

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 {
4089
  KJ_IREQUIRE((which() == Disembargo::Context::PROVIDE),
4090 4091
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4092
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4093 4094 4095
}

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

4108 4109
inline  ::uint32_t Provide::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4110
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4111 4112 4113 4114
}

inline  ::uint32_t Provide::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4115
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4116 4117 4118
}
inline void Provide::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4119
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4120 4121
}

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

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

inline  ::uint32_t Accept::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4186
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4187 4188 4189 4190
}

inline  ::uint32_t Accept::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4191
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4192 4193 4194
}
inline void Accept::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4195
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4196 4197 4198
}

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

4221 4222
inline bool Accept::Reader::getEmbargo() const {
  return _reader.getDataField<bool>(
4223
      ::capnp::bounded<32>() * ::capnp::ELEMENTS);
4224 4225 4226 4227
}

inline bool Accept::Builder::getEmbargo() {
  return _builder.getDataField<bool>(
4228
      ::capnp::bounded<32>() * ::capnp::ELEMENTS);
4229 4230 4231
}
inline void Accept::Builder::setEmbargo(bool value) {
  _builder.setDataField<bool>(
4232
      ::capnp::bounded<32>() * ::capnp::ELEMENTS, value);
4233 4234
}

4235 4236
inline  ::uint32_t Join::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4237
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4238 4239 4240 4241
}

inline  ::uint32_t Join::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4242
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4243 4244 4245
}
inline void Join::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4246
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4247 4248
}

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

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

4311
inline  ::capnp::rpc::MessageTarget::Which MessageTarget::Reader::which() const {
4312
  return _reader.getDataField<Which>(
4313
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4314
}
4315
inline  ::capnp::rpc::MessageTarget::Which MessageTarget::Builder::which() {
4316
  return _builder.getDataField<Which>(
4317
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
Kenton Varda's avatar
Kenton Varda committed
4318 4319
}

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

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

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

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

inline bool Payload::Reader::hasCapTable() const {
4424
  return !_reader.getPointerField(
4425
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4426 4427
}
inline bool Payload::Builder::hasCapTable() {
4428
  return !_builder.getPointerField(
4429
      ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4430
}
4431 4432
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(
4433
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4434
}
4435 4436
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(
4437
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4438
}
4439 4440
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(
4441
      ::capnp::bounded<1>() * ::capnp::POINTERS), value);
4442
}
4443 4444
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(
4445
      ::capnp::bounded<1>() * ::capnp::POINTERS), size);
4446 4447
}
inline void Payload::Builder::adoptCapTable(
4448 4449
    ::capnp::Orphan< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>&& value) {
  ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::rpc::CapDescriptor,  ::capnp::Kind::STRUCT>>::adopt(_builder.getPointerField(
4450
      ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
4451
}
4452 4453
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(
4454
      ::capnp::bounded<1>() * ::capnp::POINTERS));
4455 4456
}

4457
inline  ::capnp::rpc::CapDescriptor::Which CapDescriptor::Reader::which() const {
4458
  return _reader.getDataField<Which>(
4459
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4460
}
4461
inline  ::capnp::rpc::CapDescriptor::Which CapDescriptor::Builder::which() {
4462
  return _builder.getDataField<Which>(
4463
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4464 4465 4466 4467 4468 4469 4470 4471 4472
}

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 {
4473
  KJ_IREQUIRE((which() == CapDescriptor::NONE),
4474 4475
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4476
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4477 4478 4479
}

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

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 {
4499
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_HOSTED),
4500 4501
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4502
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4503 4504 4505
}

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

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 {
4525
  KJ_IREQUIRE((which() == CapDescriptor::SENDER_PROMISE),
4526 4527
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4528
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4529 4530 4531
}

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

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 {
4551
  KJ_IREQUIRE((which() == CapDescriptor::RECEIVER_HOSTED),
4552 4553
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint32_t>(
4554
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4555 4556 4557
}

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

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

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

4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691
inline  ::uint8_t CapDescriptor::Reader::getAttachedFd() const {
  return _reader.getDataField< ::uint8_t>(
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, 255u);
}

inline  ::uint8_t CapDescriptor::Builder::getAttachedFd() {
  return _builder.getDataField< ::uint8_t>(
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, 255u);
}
inline void CapDescriptor::Builder::setAttachedFd( ::uint8_t value) {
  _builder.setDataField< ::uint8_t>(
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value, 255u);
}

4692 4693
inline  ::uint32_t PromisedAnswer::Reader::getQuestionId() const {
  return _reader.getDataField< ::uint32_t>(
4694
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4695 4696 4697 4698
}

inline  ::uint32_t PromisedAnswer::Builder::getQuestionId() {
  return _builder.getDataField< ::uint32_t>(
4699
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4700 4701 4702
}
inline void PromisedAnswer::Builder::setQuestionId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4703
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4704 4705 4706
}

inline bool PromisedAnswer::Reader::hasTransform() const {
4707
  return !_reader.getPointerField(
4708
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4709 4710
}
inline bool PromisedAnswer::Builder::hasTransform() {
4711
  return !_builder.getPointerField(
4712
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4713
}
4714 4715
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(
4716
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4717
}
4718 4719
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(
4720
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4721
}
4722 4723
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(
4724
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4725
}
4726 4727
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(
4728
      ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4729 4730
}
inline void PromisedAnswer::Builder::adoptTransform(
4731 4732
    ::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(
4733
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4734
}
4735 4736
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(
4737
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4738 4739
}

4740
inline  ::capnp::rpc::PromisedAnswer::Op::Which PromisedAnswer::Op::Reader::which() const {
4741
  return _reader.getDataField<Which>(
4742
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4743
}
4744
inline  ::capnp::rpc::PromisedAnswer::Op::Which PromisedAnswer::Op::Builder::which() {
4745
  return _builder.getDataField<Which>(
4746
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4747 4748 4749 4750 4751 4752 4753 4754 4755
}

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 {
4756
  KJ_IREQUIRE((which() == PromisedAnswer::Op::NOOP),
4757 4758
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::capnp::Void>(
4759
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4760 4761 4762
}

inline  ::capnp::Void PromisedAnswer::Op::Builder::getNoop() {
4763
  KJ_IREQUIRE((which() == PromisedAnswer::Op::NOOP),
4764 4765
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::capnp::Void>(
4766
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4767 4768 4769
}
inline void PromisedAnswer::Op::Builder::setNoop( ::capnp::Void value) {
  _builder.setDataField<PromisedAnswer::Op::Which>(
4770
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, PromisedAnswer::Op::NOOP);
4771
  _builder.setDataField< ::capnp::Void>(
4772
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4773 4774 4775 4776 4777 4778 4779 4780 4781
}

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 {
4782
  KJ_IREQUIRE((which() == PromisedAnswer::Op::GET_POINTER_FIELD),
4783 4784
              "Must check which() before get()ing a union member.");
  return _reader.getDataField< ::uint16_t>(
4785
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4786 4787 4788
}

inline  ::uint16_t PromisedAnswer::Op::Builder::getGetPointerField() {
4789
  KJ_IREQUIRE((which() == PromisedAnswer::Op::GET_POINTER_FIELD),
4790 4791
              "Must check which() before get()ing a union member.");
  return _builder.getDataField< ::uint16_t>(
4792
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4793 4794 4795
}
inline void PromisedAnswer::Op::Builder::setGetPointerField( ::uint16_t value) {
  _builder.setDataField<PromisedAnswer::Op::Which>(
4796
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, PromisedAnswer::Op::GET_POINTER_FIELD);
4797
  _builder.setDataField< ::uint16_t>(
4798
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4799 4800 4801
}

inline bool ThirdPartyCapDescriptor::Reader::hasId() const {
4802
  return !_reader.getPointerField(
4803
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4804 4805
}
inline bool ThirdPartyCapDescriptor::Builder::hasId() {
4806
  return !_builder.getPointerField(
4807
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4808
}
4809
inline ::capnp::AnyPointer::Reader ThirdPartyCapDescriptor::Reader::getId() const {
4810
  return ::capnp::AnyPointer::Reader(_reader.getPointerField(
4811
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4812
}
4813
inline ::capnp::AnyPointer::Builder ThirdPartyCapDescriptor::Builder::getId() {
4814
  return ::capnp::AnyPointer::Builder(_builder.getPointerField(
4815
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4816
}
4817
inline ::capnp::AnyPointer::Builder ThirdPartyCapDescriptor::Builder::initId() {
4818
  auto result = ::capnp::AnyPointer::Builder(_builder.getPointerField(
4819
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4820 4821 4822 4823 4824 4825
  result.clear();
  return result;
}

inline  ::uint32_t ThirdPartyCapDescriptor::Reader::getVineId() const {
  return _reader.getDataField< ::uint32_t>(
4826
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4827 4828 4829 4830
}

inline  ::uint32_t ThirdPartyCapDescriptor::Builder::getVineId() {
  return _builder.getDataField< ::uint32_t>(
4831
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4832 4833 4834
}
inline void ThirdPartyCapDescriptor::Builder::setVineId( ::uint32_t value) {
  _builder.setDataField< ::uint32_t>(
4835
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4836 4837 4838
}

inline bool Exception::Reader::hasReason() const {
4839
  return !_reader.getPointerField(
4840
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4841 4842
}
inline bool Exception::Builder::hasReason() {
4843
  return !_builder.getPointerField(
4844
      ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4845 4846
}
inline  ::capnp::Text::Reader Exception::Reader::getReason() const {
4847
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
4848
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4849 4850
}
inline  ::capnp::Text::Builder Exception::Builder::getReason() {
4851
  return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
4852
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4853 4854
}
inline void Exception::Builder::setReason( ::capnp::Text::Reader value) {
4855
  ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
4856
      ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4857 4858
}
inline  ::capnp::Text::Builder Exception::Builder::initReason(unsigned int size) {
4859
  return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
4860
      ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4861 4862 4863
}
inline void Exception::Builder::adoptReason(
    ::capnp::Orphan< ::capnp::Text>&& value) {
4864
  ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
4865
      ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4866 4867
}
inline ::capnp::Orphan< ::capnp::Text> Exception::Builder::disownReason() {
4868
  return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
4869
      ::capnp::bounded<0>() * ::capnp::POINTERS));
4870 4871
}

4872
inline bool Exception::Reader::getObsoleteIsCallersFault() const {
4873
  return _reader.getDataField<bool>(
4874
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4875 4876
}

4877
inline bool Exception::Builder::getObsoleteIsCallersFault() {
4878
  return _builder.getDataField<bool>(
4879
      ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4880
}
4881
inline void Exception::Builder::setObsoleteIsCallersFault(bool value) {
4882
  _builder.setDataField<bool>(
4883
      ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4884 4885
}

4886 4887
inline  ::uint16_t Exception::Reader::getObsoleteDurability() const {
  return _reader.getDataField< ::uint16_t>(
4888
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4889 4890
}

4891 4892
inline  ::uint16_t Exception::Builder::getObsoleteDurability() {
  return _builder.getDataField< ::uint16_t>(
4893
      ::capnp::bounded<1>() * ::capnp::ELEMENTS);
4894
}
4895 4896
inline void Exception::Builder::setObsoleteDurability( ::uint16_t value) {
  _builder.setDataField< ::uint16_t>(
4897
      ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
4898 4899
}

4900 4901
inline  ::capnp::rpc::Exception::Type Exception::Reader::getType() const {
  return _reader.getDataField< ::capnp::rpc::Exception::Type>(
4902
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
4903 4904 4905 4906
}

inline  ::capnp::rpc::Exception::Type Exception::Builder::getType() {
  return _builder.getDataField< ::capnp::rpc::Exception::Type>(
4907
      ::capnp::bounded<2>() * ::capnp::ELEMENTS);
4908 4909 4910
}
inline void Exception::Builder::setType( ::capnp::rpc::Exception::Type value) {
  _builder.setDataField< ::capnp::rpc::Exception::Type>(
4911
      ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
4912 4913
}

4914 4915 4916
}  // namespace
}  // namespace