Mercurial > hg > sv-dependency-builds
comparison win64-msvc/include/capnp/rpc-twoparty.capnp.h @ 47:d93140aac40b
Current Capnp libs and headers from git
author | Chris Cannam |
---|---|
date | Thu, 20 Oct 2016 18:15:38 +0100 |
parents | |
children | 0f2d93caa50c |
comparison
equal
deleted
inserted
replaced
46:efe5b9f38b13 | 47:d93140aac40b |
---|---|
1 // Generated by Cap'n Proto compiler, DO NOT EDIT | |
2 // source: rpc-twoparty.capnp | |
3 | |
4 #ifndef CAPNP_INCLUDED_a184c7885cdaf2a1_ | |
5 #define CAPNP_INCLUDED_a184c7885cdaf2a1_ | |
6 | |
7 #include <capnp/generated-header-support.h> | |
8 | |
9 #if CAPNP_VERSION != 6000 | |
10 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." | |
11 #endif | |
12 | |
13 | |
14 namespace capnp { | |
15 namespace schemas { | |
16 | |
17 CAPNP_DECLARE_SCHEMA(9fd69ebc87b9719c); | |
18 enum class Side_9fd69ebc87b9719c: uint16_t { | |
19 SERVER, | |
20 CLIENT, | |
21 }; | |
22 CAPNP_DECLARE_ENUM(Side, 9fd69ebc87b9719c); | |
23 CAPNP_DECLARE_SCHEMA(d20b909fee733a8e); | |
24 CAPNP_DECLARE_SCHEMA(b88d09a9c5f39817); | |
25 CAPNP_DECLARE_SCHEMA(89f389b6fd4082c1); | |
26 CAPNP_DECLARE_SCHEMA(b47f4979672cb59d); | |
27 CAPNP_DECLARE_SCHEMA(95b29059097fca83); | |
28 CAPNP_DECLARE_SCHEMA(9d263a3630b7ebee); | |
29 | |
30 } // namespace schemas | |
31 } // namespace capnp | |
32 | |
33 namespace capnp { | |
34 namespace rpc { | |
35 namespace twoparty { | |
36 | |
37 typedef ::capnp::schemas::Side_9fd69ebc87b9719c Side; | |
38 | |
39 struct VatId { | |
40 VatId() = delete; | |
41 | |
42 class Reader; | |
43 class Builder; | |
44 class Pipeline; | |
45 | |
46 struct _capnpPrivate { | |
47 CAPNP_DECLARE_STRUCT_HEADER(d20b909fee733a8e, 1, 0) | |
48 #if !CAPNP_LITE | |
49 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
50 #endif // !CAPNP_LITE | |
51 }; | |
52 }; | |
53 | |
54 struct ProvisionId { | |
55 ProvisionId() = delete; | |
56 | |
57 class Reader; | |
58 class Builder; | |
59 class Pipeline; | |
60 | |
61 struct _capnpPrivate { | |
62 CAPNP_DECLARE_STRUCT_HEADER(b88d09a9c5f39817, 1, 0) | |
63 #if !CAPNP_LITE | |
64 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
65 #endif // !CAPNP_LITE | |
66 }; | |
67 }; | |
68 | |
69 struct RecipientId { | |
70 RecipientId() = delete; | |
71 | |
72 class Reader; | |
73 class Builder; | |
74 class Pipeline; | |
75 | |
76 struct _capnpPrivate { | |
77 CAPNP_DECLARE_STRUCT_HEADER(89f389b6fd4082c1, 0, 0) | |
78 #if !CAPNP_LITE | |
79 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
80 #endif // !CAPNP_LITE | |
81 }; | |
82 }; | |
83 | |
84 struct ThirdPartyCapId { | |
85 ThirdPartyCapId() = delete; | |
86 | |
87 class Reader; | |
88 class Builder; | |
89 class Pipeline; | |
90 | |
91 struct _capnpPrivate { | |
92 CAPNP_DECLARE_STRUCT_HEADER(b47f4979672cb59d, 0, 0) | |
93 #if !CAPNP_LITE | |
94 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
95 #endif // !CAPNP_LITE | |
96 }; | |
97 }; | |
98 | |
99 struct JoinKeyPart { | |
100 JoinKeyPart() = delete; | |
101 | |
102 class Reader; | |
103 class Builder; | |
104 class Pipeline; | |
105 | |
106 struct _capnpPrivate { | |
107 CAPNP_DECLARE_STRUCT_HEADER(95b29059097fca83, 1, 0) | |
108 #if !CAPNP_LITE | |
109 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
110 #endif // !CAPNP_LITE | |
111 }; | |
112 }; | |
113 | |
114 struct JoinResult { | |
115 JoinResult() = delete; | |
116 | |
117 class Reader; | |
118 class Builder; | |
119 class Pipeline; | |
120 | |
121 struct _capnpPrivate { | |
122 CAPNP_DECLARE_STRUCT_HEADER(9d263a3630b7ebee, 1, 1) | |
123 #if !CAPNP_LITE | |
124 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; | |
125 #endif // !CAPNP_LITE | |
126 }; | |
127 }; | |
128 | |
129 // ======================================================================================= | |
130 | |
131 class VatId::Reader { | |
132 public: | |
133 typedef VatId Reads; | |
134 | |
135 Reader() = default; | |
136 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
137 | |
138 inline ::capnp::MessageSize totalSize() const { | |
139 return _reader.totalSize().asPublic(); | |
140 } | |
141 | |
142 #if !CAPNP_LITE | |
143 inline ::kj::StringTree toString() const { | |
144 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
145 } | |
146 #endif // !CAPNP_LITE | |
147 | |
148 inline ::capnp::rpc::twoparty::Side getSide() const; | |
149 | |
150 private: | |
151 ::capnp::_::StructReader _reader; | |
152 template <typename, ::capnp::Kind> | |
153 friend struct ::capnp::ToDynamic_; | |
154 template <typename, ::capnp::Kind> | |
155 friend struct ::capnp::_::PointerHelpers; | |
156 template <typename, ::capnp::Kind> | |
157 friend struct ::capnp::List; | |
158 friend class ::capnp::MessageBuilder; | |
159 friend class ::capnp::Orphanage; | |
160 }; | |
161 | |
162 class VatId::Builder { | |
163 public: | |
164 typedef VatId Builds; | |
165 | |
166 Builder() = delete; // Deleted to discourage incorrect usage. | |
167 // You can explicitly initialize to nullptr instead. | |
168 inline Builder(decltype(nullptr)) {} | |
169 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
170 inline operator Reader() const { return Reader(_builder.asReader()); } | |
171 inline Reader asReader() const { return *this; } | |
172 | |
173 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
174 #if !CAPNP_LITE | |
175 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
176 #endif // !CAPNP_LITE | |
177 | |
178 inline ::capnp::rpc::twoparty::Side getSide(); | |
179 inline void setSide( ::capnp::rpc::twoparty::Side value); | |
180 | |
181 private: | |
182 ::capnp::_::StructBuilder _builder; | |
183 template <typename, ::capnp::Kind> | |
184 friend struct ::capnp::ToDynamic_; | |
185 friend class ::capnp::Orphanage; | |
186 template <typename, ::capnp::Kind> | |
187 friend struct ::capnp::_::PointerHelpers; | |
188 }; | |
189 | |
190 #if !CAPNP_LITE | |
191 class VatId::Pipeline { | |
192 public: | |
193 typedef VatId Pipelines; | |
194 | |
195 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
196 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
197 : _typeless(kj::mv(typeless)) {} | |
198 | |
199 private: | |
200 ::capnp::AnyPointer::Pipeline _typeless; | |
201 friend class ::capnp::PipelineHook; | |
202 template <typename, ::capnp::Kind> | |
203 friend struct ::capnp::ToDynamic_; | |
204 }; | |
205 #endif // !CAPNP_LITE | |
206 | |
207 class ProvisionId::Reader { | |
208 public: | |
209 typedef ProvisionId Reads; | |
210 | |
211 Reader() = default; | |
212 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
213 | |
214 inline ::capnp::MessageSize totalSize() const { | |
215 return _reader.totalSize().asPublic(); | |
216 } | |
217 | |
218 #if !CAPNP_LITE | |
219 inline ::kj::StringTree toString() const { | |
220 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
221 } | |
222 #endif // !CAPNP_LITE | |
223 | |
224 inline ::uint32_t getJoinId() const; | |
225 | |
226 private: | |
227 ::capnp::_::StructReader _reader; | |
228 template <typename, ::capnp::Kind> | |
229 friend struct ::capnp::ToDynamic_; | |
230 template <typename, ::capnp::Kind> | |
231 friend struct ::capnp::_::PointerHelpers; | |
232 template <typename, ::capnp::Kind> | |
233 friend struct ::capnp::List; | |
234 friend class ::capnp::MessageBuilder; | |
235 friend class ::capnp::Orphanage; | |
236 }; | |
237 | |
238 class ProvisionId::Builder { | |
239 public: | |
240 typedef ProvisionId Builds; | |
241 | |
242 Builder() = delete; // Deleted to discourage incorrect usage. | |
243 // You can explicitly initialize to nullptr instead. | |
244 inline Builder(decltype(nullptr)) {} | |
245 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
246 inline operator Reader() const { return Reader(_builder.asReader()); } | |
247 inline Reader asReader() const { return *this; } | |
248 | |
249 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
250 #if !CAPNP_LITE | |
251 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
252 #endif // !CAPNP_LITE | |
253 | |
254 inline ::uint32_t getJoinId(); | |
255 inline void setJoinId( ::uint32_t value); | |
256 | |
257 private: | |
258 ::capnp::_::StructBuilder _builder; | |
259 template <typename, ::capnp::Kind> | |
260 friend struct ::capnp::ToDynamic_; | |
261 friend class ::capnp::Orphanage; | |
262 template <typename, ::capnp::Kind> | |
263 friend struct ::capnp::_::PointerHelpers; | |
264 }; | |
265 | |
266 #if !CAPNP_LITE | |
267 class ProvisionId::Pipeline { | |
268 public: | |
269 typedef ProvisionId Pipelines; | |
270 | |
271 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
272 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
273 : _typeless(kj::mv(typeless)) {} | |
274 | |
275 private: | |
276 ::capnp::AnyPointer::Pipeline _typeless; | |
277 friend class ::capnp::PipelineHook; | |
278 template <typename, ::capnp::Kind> | |
279 friend struct ::capnp::ToDynamic_; | |
280 }; | |
281 #endif // !CAPNP_LITE | |
282 | |
283 class RecipientId::Reader { | |
284 public: | |
285 typedef RecipientId Reads; | |
286 | |
287 Reader() = default; | |
288 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
289 | |
290 inline ::capnp::MessageSize totalSize() const { | |
291 return _reader.totalSize().asPublic(); | |
292 } | |
293 | |
294 #if !CAPNP_LITE | |
295 inline ::kj::StringTree toString() const { | |
296 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
297 } | |
298 #endif // !CAPNP_LITE | |
299 | |
300 private: | |
301 ::capnp::_::StructReader _reader; | |
302 template <typename, ::capnp::Kind> | |
303 friend struct ::capnp::ToDynamic_; | |
304 template <typename, ::capnp::Kind> | |
305 friend struct ::capnp::_::PointerHelpers; | |
306 template <typename, ::capnp::Kind> | |
307 friend struct ::capnp::List; | |
308 friend class ::capnp::MessageBuilder; | |
309 friend class ::capnp::Orphanage; | |
310 }; | |
311 | |
312 class RecipientId::Builder { | |
313 public: | |
314 typedef RecipientId Builds; | |
315 | |
316 Builder() = delete; // Deleted to discourage incorrect usage. | |
317 // You can explicitly initialize to nullptr instead. | |
318 inline Builder(decltype(nullptr)) {} | |
319 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
320 inline operator Reader() const { return Reader(_builder.asReader()); } | |
321 inline Reader asReader() const { return *this; } | |
322 | |
323 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
324 #if !CAPNP_LITE | |
325 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
326 #endif // !CAPNP_LITE | |
327 | |
328 private: | |
329 ::capnp::_::StructBuilder _builder; | |
330 template <typename, ::capnp::Kind> | |
331 friend struct ::capnp::ToDynamic_; | |
332 friend class ::capnp::Orphanage; | |
333 template <typename, ::capnp::Kind> | |
334 friend struct ::capnp::_::PointerHelpers; | |
335 }; | |
336 | |
337 #if !CAPNP_LITE | |
338 class RecipientId::Pipeline { | |
339 public: | |
340 typedef RecipientId Pipelines; | |
341 | |
342 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
343 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
344 : _typeless(kj::mv(typeless)) {} | |
345 | |
346 private: | |
347 ::capnp::AnyPointer::Pipeline _typeless; | |
348 friend class ::capnp::PipelineHook; | |
349 template <typename, ::capnp::Kind> | |
350 friend struct ::capnp::ToDynamic_; | |
351 }; | |
352 #endif // !CAPNP_LITE | |
353 | |
354 class ThirdPartyCapId::Reader { | |
355 public: | |
356 typedef ThirdPartyCapId Reads; | |
357 | |
358 Reader() = default; | |
359 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
360 | |
361 inline ::capnp::MessageSize totalSize() const { | |
362 return _reader.totalSize().asPublic(); | |
363 } | |
364 | |
365 #if !CAPNP_LITE | |
366 inline ::kj::StringTree toString() const { | |
367 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
368 } | |
369 #endif // !CAPNP_LITE | |
370 | |
371 private: | |
372 ::capnp::_::StructReader _reader; | |
373 template <typename, ::capnp::Kind> | |
374 friend struct ::capnp::ToDynamic_; | |
375 template <typename, ::capnp::Kind> | |
376 friend struct ::capnp::_::PointerHelpers; | |
377 template <typename, ::capnp::Kind> | |
378 friend struct ::capnp::List; | |
379 friend class ::capnp::MessageBuilder; | |
380 friend class ::capnp::Orphanage; | |
381 }; | |
382 | |
383 class ThirdPartyCapId::Builder { | |
384 public: | |
385 typedef ThirdPartyCapId Builds; | |
386 | |
387 Builder() = delete; // Deleted to discourage incorrect usage. | |
388 // You can explicitly initialize to nullptr instead. | |
389 inline Builder(decltype(nullptr)) {} | |
390 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
391 inline operator Reader() const { return Reader(_builder.asReader()); } | |
392 inline Reader asReader() const { return *this; } | |
393 | |
394 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
395 #if !CAPNP_LITE | |
396 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
397 #endif // !CAPNP_LITE | |
398 | |
399 private: | |
400 ::capnp::_::StructBuilder _builder; | |
401 template <typename, ::capnp::Kind> | |
402 friend struct ::capnp::ToDynamic_; | |
403 friend class ::capnp::Orphanage; | |
404 template <typename, ::capnp::Kind> | |
405 friend struct ::capnp::_::PointerHelpers; | |
406 }; | |
407 | |
408 #if !CAPNP_LITE | |
409 class ThirdPartyCapId::Pipeline { | |
410 public: | |
411 typedef ThirdPartyCapId Pipelines; | |
412 | |
413 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
414 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
415 : _typeless(kj::mv(typeless)) {} | |
416 | |
417 private: | |
418 ::capnp::AnyPointer::Pipeline _typeless; | |
419 friend class ::capnp::PipelineHook; | |
420 template <typename, ::capnp::Kind> | |
421 friend struct ::capnp::ToDynamic_; | |
422 }; | |
423 #endif // !CAPNP_LITE | |
424 | |
425 class JoinKeyPart::Reader { | |
426 public: | |
427 typedef JoinKeyPart Reads; | |
428 | |
429 Reader() = default; | |
430 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
431 | |
432 inline ::capnp::MessageSize totalSize() const { | |
433 return _reader.totalSize().asPublic(); | |
434 } | |
435 | |
436 #if !CAPNP_LITE | |
437 inline ::kj::StringTree toString() const { | |
438 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
439 } | |
440 #endif // !CAPNP_LITE | |
441 | |
442 inline ::uint32_t getJoinId() const; | |
443 | |
444 inline ::uint16_t getPartCount() const; | |
445 | |
446 inline ::uint16_t getPartNum() const; | |
447 | |
448 private: | |
449 ::capnp::_::StructReader _reader; | |
450 template <typename, ::capnp::Kind> | |
451 friend struct ::capnp::ToDynamic_; | |
452 template <typename, ::capnp::Kind> | |
453 friend struct ::capnp::_::PointerHelpers; | |
454 template <typename, ::capnp::Kind> | |
455 friend struct ::capnp::List; | |
456 friend class ::capnp::MessageBuilder; | |
457 friend class ::capnp::Orphanage; | |
458 }; | |
459 | |
460 class JoinKeyPart::Builder { | |
461 public: | |
462 typedef JoinKeyPart Builds; | |
463 | |
464 Builder() = delete; // Deleted to discourage incorrect usage. | |
465 // You can explicitly initialize to nullptr instead. | |
466 inline Builder(decltype(nullptr)) {} | |
467 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
468 inline operator Reader() const { return Reader(_builder.asReader()); } | |
469 inline Reader asReader() const { return *this; } | |
470 | |
471 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
472 #if !CAPNP_LITE | |
473 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
474 #endif // !CAPNP_LITE | |
475 | |
476 inline ::uint32_t getJoinId(); | |
477 inline void setJoinId( ::uint32_t value); | |
478 | |
479 inline ::uint16_t getPartCount(); | |
480 inline void setPartCount( ::uint16_t value); | |
481 | |
482 inline ::uint16_t getPartNum(); | |
483 inline void setPartNum( ::uint16_t value); | |
484 | |
485 private: | |
486 ::capnp::_::StructBuilder _builder; | |
487 template <typename, ::capnp::Kind> | |
488 friend struct ::capnp::ToDynamic_; | |
489 friend class ::capnp::Orphanage; | |
490 template <typename, ::capnp::Kind> | |
491 friend struct ::capnp::_::PointerHelpers; | |
492 }; | |
493 | |
494 #if !CAPNP_LITE | |
495 class JoinKeyPart::Pipeline { | |
496 public: | |
497 typedef JoinKeyPart Pipelines; | |
498 | |
499 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
500 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
501 : _typeless(kj::mv(typeless)) {} | |
502 | |
503 private: | |
504 ::capnp::AnyPointer::Pipeline _typeless; | |
505 friend class ::capnp::PipelineHook; | |
506 template <typename, ::capnp::Kind> | |
507 friend struct ::capnp::ToDynamic_; | |
508 }; | |
509 #endif // !CAPNP_LITE | |
510 | |
511 class JoinResult::Reader { | |
512 public: | |
513 typedef JoinResult Reads; | |
514 | |
515 Reader() = default; | |
516 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {} | |
517 | |
518 inline ::capnp::MessageSize totalSize() const { | |
519 return _reader.totalSize().asPublic(); | |
520 } | |
521 | |
522 #if !CAPNP_LITE | |
523 inline ::kj::StringTree toString() const { | |
524 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | |
525 } | |
526 #endif // !CAPNP_LITE | |
527 | |
528 inline ::uint32_t getJoinId() const; | |
529 | |
530 inline bool getSucceeded() const; | |
531 | |
532 inline bool hasCap() const; | |
533 inline ::capnp::AnyPointer::Reader getCap() const; | |
534 | |
535 private: | |
536 ::capnp::_::StructReader _reader; | |
537 template <typename, ::capnp::Kind> | |
538 friend struct ::capnp::ToDynamic_; | |
539 template <typename, ::capnp::Kind> | |
540 friend struct ::capnp::_::PointerHelpers; | |
541 template <typename, ::capnp::Kind> | |
542 friend struct ::capnp::List; | |
543 friend class ::capnp::MessageBuilder; | |
544 friend class ::capnp::Orphanage; | |
545 }; | |
546 | |
547 class JoinResult::Builder { | |
548 public: | |
549 typedef JoinResult Builds; | |
550 | |
551 Builder() = delete; // Deleted to discourage incorrect usage. | |
552 // You can explicitly initialize to nullptr instead. | |
553 inline Builder(decltype(nullptr)) {} | |
554 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {} | |
555 inline operator Reader() const { return Reader(_builder.asReader()); } | |
556 inline Reader asReader() const { return *this; } | |
557 | |
558 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | |
559 #if !CAPNP_LITE | |
560 inline ::kj::StringTree toString() const { return asReader().toString(); } | |
561 #endif // !CAPNP_LITE | |
562 | |
563 inline ::uint32_t getJoinId(); | |
564 inline void setJoinId( ::uint32_t value); | |
565 | |
566 inline bool getSucceeded(); | |
567 inline void setSucceeded(bool value); | |
568 | |
569 inline bool hasCap(); | |
570 inline ::capnp::AnyPointer::Builder getCap(); | |
571 inline ::capnp::AnyPointer::Builder initCap(); | |
572 | |
573 private: | |
574 ::capnp::_::StructBuilder _builder; | |
575 template <typename, ::capnp::Kind> | |
576 friend struct ::capnp::ToDynamic_; | |
577 friend class ::capnp::Orphanage; | |
578 template <typename, ::capnp::Kind> | |
579 friend struct ::capnp::_::PointerHelpers; | |
580 }; | |
581 | |
582 #if !CAPNP_LITE | |
583 class JoinResult::Pipeline { | |
584 public: | |
585 typedef JoinResult Pipelines; | |
586 | |
587 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} | |
588 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) | |
589 : _typeless(kj::mv(typeless)) {} | |
590 | |
591 private: | |
592 ::capnp::AnyPointer::Pipeline _typeless; | |
593 friend class ::capnp::PipelineHook; | |
594 template <typename, ::capnp::Kind> | |
595 friend struct ::capnp::ToDynamic_; | |
596 }; | |
597 #endif // !CAPNP_LITE | |
598 | |
599 // ======================================================================================= | |
600 | |
601 inline ::capnp::rpc::twoparty::Side VatId::Reader::getSide() const { | |
602 return _reader.getDataField< ::capnp::rpc::twoparty::Side>( | |
603 0 * ::capnp::ELEMENTS); | |
604 } | |
605 | |
606 inline ::capnp::rpc::twoparty::Side VatId::Builder::getSide() { | |
607 return _builder.getDataField< ::capnp::rpc::twoparty::Side>( | |
608 0 * ::capnp::ELEMENTS); | |
609 } | |
610 inline void VatId::Builder::setSide( ::capnp::rpc::twoparty::Side value) { | |
611 _builder.setDataField< ::capnp::rpc::twoparty::Side>( | |
612 0 * ::capnp::ELEMENTS, value); | |
613 } | |
614 | |
615 inline ::uint32_t ProvisionId::Reader::getJoinId() const { | |
616 return _reader.getDataField< ::uint32_t>( | |
617 0 * ::capnp::ELEMENTS); | |
618 } | |
619 | |
620 inline ::uint32_t ProvisionId::Builder::getJoinId() { | |
621 return _builder.getDataField< ::uint32_t>( | |
622 0 * ::capnp::ELEMENTS); | |
623 } | |
624 inline void ProvisionId::Builder::setJoinId( ::uint32_t value) { | |
625 _builder.setDataField< ::uint32_t>( | |
626 0 * ::capnp::ELEMENTS, value); | |
627 } | |
628 | |
629 inline ::uint32_t JoinKeyPart::Reader::getJoinId() const { | |
630 return _reader.getDataField< ::uint32_t>( | |
631 0 * ::capnp::ELEMENTS); | |
632 } | |
633 | |
634 inline ::uint32_t JoinKeyPart::Builder::getJoinId() { | |
635 return _builder.getDataField< ::uint32_t>( | |
636 0 * ::capnp::ELEMENTS); | |
637 } | |
638 inline void JoinKeyPart::Builder::setJoinId( ::uint32_t value) { | |
639 _builder.setDataField< ::uint32_t>( | |
640 0 * ::capnp::ELEMENTS, value); | |
641 } | |
642 | |
643 inline ::uint16_t JoinKeyPart::Reader::getPartCount() const { | |
644 return _reader.getDataField< ::uint16_t>( | |
645 2 * ::capnp::ELEMENTS); | |
646 } | |
647 | |
648 inline ::uint16_t JoinKeyPart::Builder::getPartCount() { | |
649 return _builder.getDataField< ::uint16_t>( | |
650 2 * ::capnp::ELEMENTS); | |
651 } | |
652 inline void JoinKeyPart::Builder::setPartCount( ::uint16_t value) { | |
653 _builder.setDataField< ::uint16_t>( | |
654 2 * ::capnp::ELEMENTS, value); | |
655 } | |
656 | |
657 inline ::uint16_t JoinKeyPart::Reader::getPartNum() const { | |
658 return _reader.getDataField< ::uint16_t>( | |
659 3 * ::capnp::ELEMENTS); | |
660 } | |
661 | |
662 inline ::uint16_t JoinKeyPart::Builder::getPartNum() { | |
663 return _builder.getDataField< ::uint16_t>( | |
664 3 * ::capnp::ELEMENTS); | |
665 } | |
666 inline void JoinKeyPart::Builder::setPartNum( ::uint16_t value) { | |
667 _builder.setDataField< ::uint16_t>( | |
668 3 * ::capnp::ELEMENTS, value); | |
669 } | |
670 | |
671 inline ::uint32_t JoinResult::Reader::getJoinId() const { | |
672 return _reader.getDataField< ::uint32_t>( | |
673 0 * ::capnp::ELEMENTS); | |
674 } | |
675 | |
676 inline ::uint32_t JoinResult::Builder::getJoinId() { | |
677 return _builder.getDataField< ::uint32_t>( | |
678 0 * ::capnp::ELEMENTS); | |
679 } | |
680 inline void JoinResult::Builder::setJoinId( ::uint32_t value) { | |
681 _builder.setDataField< ::uint32_t>( | |
682 0 * ::capnp::ELEMENTS, value); | |
683 } | |
684 | |
685 inline bool JoinResult::Reader::getSucceeded() const { | |
686 return _reader.getDataField<bool>( | |
687 32 * ::capnp::ELEMENTS); | |
688 } | |
689 | |
690 inline bool JoinResult::Builder::getSucceeded() { | |
691 return _builder.getDataField<bool>( | |
692 32 * ::capnp::ELEMENTS); | |
693 } | |
694 inline void JoinResult::Builder::setSucceeded(bool value) { | |
695 _builder.setDataField<bool>( | |
696 32 * ::capnp::ELEMENTS, value); | |
697 } | |
698 | |
699 inline bool JoinResult::Reader::hasCap() const { | |
700 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
701 } | |
702 inline bool JoinResult::Builder::hasCap() { | |
703 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); | |
704 } | |
705 inline ::capnp::AnyPointer::Reader JoinResult::Reader::getCap() const { | |
706 return ::capnp::AnyPointer::Reader( | |
707 _reader.getPointerField(0 * ::capnp::POINTERS)); | |
708 } | |
709 inline ::capnp::AnyPointer::Builder JoinResult::Builder::getCap() { | |
710 return ::capnp::AnyPointer::Builder( | |
711 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
712 } | |
713 inline ::capnp::AnyPointer::Builder JoinResult::Builder::initCap() { | |
714 auto result = ::capnp::AnyPointer::Builder( | |
715 _builder.getPointerField(0 * ::capnp::POINTERS)); | |
716 result.clear(); | |
717 return result; | |
718 } | |
719 | |
720 } // namespace | |
721 } // namespace | |
722 } // namespace | |
723 | |
724 #endif // CAPNP_INCLUDED_a184c7885cdaf2a1_ |