Branch data Line data Source code
1 : : // Generated by Cap'n Proto compiler, DO NOT EDIT
2 : : // source: init.capnp
3 : :
4 : : #pragma once
5 : :
6 : : #include <capnp/generated-header-support.h>
7 : : #include <kj/windows-sanity.h>
8 : : #if !CAPNP_LITE
9 : : #include <capnp/capability.h>
10 : : #endif // !CAPNP_LITE
11 : :
12 : : #ifndef CAPNP_VERSION
13 : : #error "CAPNP_VERSION is not defined, is capnp/generated-header-support.h missing?"
14 : : #elif CAPNP_VERSION != 1001000
15 : : #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
16 : : #endif
17 : :
18 : : #include <mp/proxy.capnp.h>
19 : : #include "echo.capnp.h"
20 : : #include "mining.capnp.h"
21 : : #include "rpc.capnp.h"
22 : :
23 : : CAPNP_BEGIN_HEADER
24 : :
25 : : namespace capnp {
26 : : namespace schemas {
27 : :
28 : : CAPNP_DECLARE_SCHEMA(8838c700ba5cba65);
29 : : CAPNP_DECLARE_SCHEMA(d0094f43e65f70fa);
30 : : CAPNP_DECLARE_SCHEMA(cff59c9cb0856a9d);
31 : : CAPNP_DECLARE_SCHEMA(d1eaffd3f12b7a9a);
32 : : CAPNP_DECLARE_SCHEMA(c6b83de56dc761c7);
33 : : CAPNP_DECLARE_SCHEMA(ecc9a12bacbb6a49);
34 : : CAPNP_DECLARE_SCHEMA(b40b3d0b48ea1c10);
35 : : CAPNP_DECLARE_SCHEMA(f0919d79a695b715);
36 : : CAPNP_DECLARE_SCHEMA(9b5015dfcf3b9509);
37 : : CAPNP_DECLARE_SCHEMA(f11dc73bbf0383aa);
38 : : CAPNP_DECLARE_SCHEMA(d8c71cdcfdae2edb);
39 : :
40 : : } // namespace schemas
41 : : } // namespace capnp
42 : :
43 : : namespace ipc {
44 : : namespace capnp {
45 : : namespace messages {
46 : :
47 : : struct Init {
48 : : Init() = delete;
49 : :
50 : : #if !CAPNP_LITE
51 : : class Client;
52 : : class Server;
53 : : #endif // !CAPNP_LITE
54 : :
55 : : struct ConstructParams;
56 : : struct ConstructResults;
57 : : struct MakeEchoParams;
58 : : struct MakeEchoResults;
59 : : struct MakeMiningOld2Params;
60 : : struct MakeMiningOld2Results;
61 : : struct MakeMiningParams;
62 : : struct MakeMiningResults;
63 : : struct MakeRpcParams;
64 : : struct MakeRpcResults;
65 : :
66 : : #if !CAPNP_LITE
67 : : struct _capnpPrivate {
68 : : CAPNP_DECLARE_INTERFACE_HEADER(8838c700ba5cba65)
69 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
70 : : };
71 : : #endif // !CAPNP_LITE
72 : : };
73 : :
74 : : struct Init::ConstructParams {
75 : : ConstructParams() = delete;
76 : :
77 : : class Reader;
78 : : class Builder;
79 : : class Pipeline;
80 : :
81 : : struct _capnpPrivate {
82 : : CAPNP_DECLARE_STRUCT_HEADER(d0094f43e65f70fa, 0, 1)
83 : : #if !CAPNP_LITE
84 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
85 : : #endif // !CAPNP_LITE
86 : : };
87 : : };
88 : :
89 : : struct Init::ConstructResults {
90 : : ConstructResults() = delete;
91 : :
92 : : class Reader;
93 : : class Builder;
94 : : class Pipeline;
95 : :
96 : : struct _capnpPrivate {
97 : : CAPNP_DECLARE_STRUCT_HEADER(cff59c9cb0856a9d, 0, 1)
98 : : #if !CAPNP_LITE
99 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
100 : : #endif // !CAPNP_LITE
101 : : };
102 : : };
103 : :
104 : : struct Init::MakeEchoParams {
105 : : MakeEchoParams() = delete;
106 : :
107 : : class Reader;
108 : : class Builder;
109 : : class Pipeline;
110 : :
111 : : struct _capnpPrivate {
112 : : CAPNP_DECLARE_STRUCT_HEADER(d1eaffd3f12b7a9a, 0, 1)
113 : : #if !CAPNP_LITE
114 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
115 : : #endif // !CAPNP_LITE
116 : : };
117 : : };
118 : :
119 : : struct Init::MakeEchoResults {
120 : : MakeEchoResults() = delete;
121 : :
122 : : class Reader;
123 : : class Builder;
124 : : class Pipeline;
125 : :
126 : : struct _capnpPrivate {
127 : : CAPNP_DECLARE_STRUCT_HEADER(c6b83de56dc761c7, 0, 1)
128 : : #if !CAPNP_LITE
129 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
130 : : #endif // !CAPNP_LITE
131 : : };
132 : : };
133 : :
134 : : struct Init::MakeMiningOld2Params {
135 : : MakeMiningOld2Params() = delete;
136 : :
137 : : class Reader;
138 : : class Builder;
139 : : class Pipeline;
140 : :
141 : : struct _capnpPrivate {
142 : : CAPNP_DECLARE_STRUCT_HEADER(ecc9a12bacbb6a49, 0, 0)
143 : : #if !CAPNP_LITE
144 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
145 : : #endif // !CAPNP_LITE
146 : : };
147 : : };
148 : :
149 : : struct Init::MakeMiningOld2Results {
150 : : MakeMiningOld2Results() = delete;
151 : :
152 : : class Reader;
153 : : class Builder;
154 : : class Pipeline;
155 : :
156 : : struct _capnpPrivate {
157 : : CAPNP_DECLARE_STRUCT_HEADER(b40b3d0b48ea1c10, 0, 0)
158 : : #if !CAPNP_LITE
159 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
160 : : #endif // !CAPNP_LITE
161 : : };
162 : : };
163 : :
164 : : struct Init::MakeMiningParams {
165 : : MakeMiningParams() = delete;
166 : :
167 : : class Reader;
168 : : class Builder;
169 : : class Pipeline;
170 : :
171 : : struct _capnpPrivate {
172 : : CAPNP_DECLARE_STRUCT_HEADER(f0919d79a695b715, 0, 1)
173 : : #if !CAPNP_LITE
174 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
175 : : #endif // !CAPNP_LITE
176 : : };
177 : : };
178 : :
179 : : struct Init::MakeMiningResults {
180 : : MakeMiningResults() = delete;
181 : :
182 : : class Reader;
183 : : class Builder;
184 : : class Pipeline;
185 : :
186 : : struct _capnpPrivate {
187 : : CAPNP_DECLARE_STRUCT_HEADER(9b5015dfcf3b9509, 0, 1)
188 : : #if !CAPNP_LITE
189 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
190 : : #endif // !CAPNP_LITE
191 : : };
192 : : };
193 : :
194 : : struct Init::MakeRpcParams {
195 : : MakeRpcParams() = delete;
196 : :
197 : : class Reader;
198 : : class Builder;
199 : : class Pipeline;
200 : :
201 : : struct _capnpPrivate {
202 : : CAPNP_DECLARE_STRUCT_HEADER(f11dc73bbf0383aa, 0, 1)
203 : : #if !CAPNP_LITE
204 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
205 : : #endif // !CAPNP_LITE
206 : : };
207 : : };
208 : :
209 : : struct Init::MakeRpcResults {
210 : : MakeRpcResults() = delete;
211 : :
212 : : class Reader;
213 : : class Builder;
214 : : class Pipeline;
215 : :
216 : : struct _capnpPrivate {
217 : : CAPNP_DECLARE_STRUCT_HEADER(d8c71cdcfdae2edb, 0, 1)
218 : : #if !CAPNP_LITE
219 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
220 : : #endif // !CAPNP_LITE
221 : : };
222 : : };
223 : :
224 : : // =======================================================================================
225 : :
226 : : #if !CAPNP_LITE
227 [ + - - - : 90 : class Init::Client
+ - + - -
+ + - + -
- - - - -
- - - + -
- + + - +
- ][ + - +
- + - + -
+ - # # #
# # # # #
# # # # #
# # # # #
# # ]
228 : : : public virtual ::capnp::Capability::Client {
229 : : public:
230 : : typedef Init Calls;
231 : : typedef Init Reads;
232 : :
233 : : Client(decltype(nullptr));
234 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
235 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
236 : : Client(::kj::Own<_t>&& server);
237 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
238 : : Client(::kj::Promise<_t>&& promise);
239 : : Client(::kj::Exception&& exception);
240 : : Client(Client&) = default;
241 [ + - + - : 50 : Client(Client&&) = default;
- - - - +
- + - ][ +
- + - # #
# # # # #
# ]
242 : : Client& operator=(Client& other);
243 : : Client& operator=(Client&& other);
244 : :
245 : : ::capnp::Request< ::ipc::capnp::messages::Init::ConstructParams, ::ipc::capnp::messages::Init::ConstructResults> constructRequest(
246 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
247 : : ::capnp::Request< ::ipc::capnp::messages::Init::MakeEchoParams, ::ipc::capnp::messages::Init::MakeEchoResults> makeEchoRequest(
248 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
249 : : ::capnp::Request< ::ipc::capnp::messages::Init::MakeMiningOld2Params, ::ipc::capnp::messages::Init::MakeMiningOld2Results> makeMiningOld2Request(
250 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
251 : : ::capnp::Request< ::ipc::capnp::messages::Init::MakeMiningParams, ::ipc::capnp::messages::Init::MakeMiningResults> makeMiningRequest(
252 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
253 : : ::capnp::Request< ::ipc::capnp::messages::Init::MakeRpcParams, ::ipc::capnp::messages::Init::MakeRpcResults> makeRpcRequest(
254 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
255 : :
256 : : protected:
257 : : Client() = default;
258 : : };
259 : :
260 : : class Init::Server
261 : : : public virtual ::capnp::Capability::Server {
262 : : public:
263 : : typedef Init Serves;
264 : :
265 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
266 : : uint64_t interfaceId, uint16_t methodId,
267 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
268 : : override;
269 : :
270 : : protected:
271 : : typedef ::ipc::capnp::messages::Init::ConstructParams ConstructParams;
272 : : typedef ::ipc::capnp::messages::Init::ConstructResults ConstructResults;
273 : : typedef ::capnp::CallContext<ConstructParams, ConstructResults> ConstructContext;
274 : : virtual ::kj::Promise<void> construct(ConstructContext context);
275 : : typedef ::ipc::capnp::messages::Init::MakeEchoParams MakeEchoParams;
276 : : typedef ::ipc::capnp::messages::Init::MakeEchoResults MakeEchoResults;
277 : : typedef ::capnp::CallContext<MakeEchoParams, MakeEchoResults> MakeEchoContext;
278 : : virtual ::kj::Promise<void> makeEcho(MakeEchoContext context);
279 : : typedef ::ipc::capnp::messages::Init::MakeMiningOld2Params MakeMiningOld2Params;
280 : : typedef ::ipc::capnp::messages::Init::MakeMiningOld2Results MakeMiningOld2Results;
281 : : typedef ::capnp::CallContext<MakeMiningOld2Params, MakeMiningOld2Results> MakeMiningOld2Context;
282 : : virtual ::kj::Promise<void> makeMiningOld2(MakeMiningOld2Context context);
283 : : typedef ::ipc::capnp::messages::Init::MakeMiningParams MakeMiningParams;
284 : : typedef ::ipc::capnp::messages::Init::MakeMiningResults MakeMiningResults;
285 : : typedef ::capnp::CallContext<MakeMiningParams, MakeMiningResults> MakeMiningContext;
286 : : virtual ::kj::Promise<void> makeMining(MakeMiningContext context);
287 : : typedef ::ipc::capnp::messages::Init::MakeRpcParams MakeRpcParams;
288 : : typedef ::ipc::capnp::messages::Init::MakeRpcResults MakeRpcResults;
289 : : typedef ::capnp::CallContext<MakeRpcParams, MakeRpcResults> MakeRpcContext;
290 : : virtual ::kj::Promise<void> makeRpc(MakeRpcContext context);
291 : :
292 : 10 : inline ::ipc::capnp::messages::Init::Client thisCap() {
293 : 10 : return ::capnp::Capability::Server::thisCap()
294 [ + - + - ]: 10 : .template castAs< ::ipc::capnp::messages::Init>();
295 : 0 : }
296 : :
297 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
298 : : uint16_t methodId,
299 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
300 : : };
301 : : #endif // !CAPNP_LITE
302 : :
303 : : class Init::ConstructParams::Reader {
304 : : public:
305 : : typedef ConstructParams Reads;
306 : :
307 : : Reader() = default;
308 : 26 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
309 : :
310 : : inline ::capnp::MessageSize totalSize() const {
311 : : return _reader.totalSize().asPublic();
312 : : }
313 : :
314 : : #if !CAPNP_LITE
315 : 16 : inline ::kj::StringTree toString() const {
316 [ + - ]: 16 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
317 : : }
318 : : #endif // !CAPNP_LITE
319 : :
320 : : inline bool hasThreadMap() const;
321 : : #if !CAPNP_LITE
322 : : inline ::mp::ThreadMap::Client getThreadMap() const;
323 : : #endif // !CAPNP_LITE
324 : :
325 : : private:
326 : : ::capnp::_::StructReader _reader;
327 : : template <typename, ::capnp::Kind>
328 : : friend struct ::capnp::ToDynamic_;
329 : : template <typename, ::capnp::Kind>
330 : : friend struct ::capnp::_::PointerHelpers;
331 : : template <typename, ::capnp::Kind>
332 : : friend struct ::capnp::List;
333 : : friend class ::capnp::MessageBuilder;
334 : : friend class ::capnp::Orphanage;
335 : : };
336 : :
337 : : class Init::ConstructParams::Builder {
338 : : public:
339 : : typedef ConstructParams Builds;
340 : :
341 : : Builder() = delete; // Deleted to discourage incorrect usage.
342 : : // You can explicitly initialize to nullptr instead.
343 : : inline Builder(decltype(nullptr)) {}
344 : 10 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
345 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
346 : 6 : inline Reader asReader() const { return *this; }
347 : :
348 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
349 : : #if !CAPNP_LITE
350 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
351 : : #endif // !CAPNP_LITE
352 : :
353 : : inline bool hasThreadMap();
354 : : #if !CAPNP_LITE
355 : : inline ::mp::ThreadMap::Client getThreadMap();
356 : : inline void setThreadMap( ::mp::ThreadMap::Client&& value);
357 : : inline void setThreadMap( ::mp::ThreadMap::Client& value);
358 : : inline void adoptThreadMap(::capnp::Orphan< ::mp::ThreadMap>&& value);
359 : : inline ::capnp::Orphan< ::mp::ThreadMap> disownThreadMap();
360 : : #endif // !CAPNP_LITE
361 : :
362 : : private:
363 : : ::capnp::_::StructBuilder _builder;
364 : : template <typename, ::capnp::Kind>
365 : : friend struct ::capnp::ToDynamic_;
366 : : friend class ::capnp::Orphanage;
367 : : template <typename, ::capnp::Kind>
368 : : friend struct ::capnp::_::PointerHelpers;
369 : : };
370 : :
371 : : #if !CAPNP_LITE
372 : : class Init::ConstructParams::Pipeline {
373 : : public:
374 : : typedef ConstructParams Pipelines;
375 : :
376 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
377 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
378 : : : _typeless(kj::mv(typeless)) {}
379 : :
380 : : inline ::mp::ThreadMap::Client getThreadMap();
381 : : private:
382 : : ::capnp::AnyPointer::Pipeline _typeless;
383 : : friend class ::capnp::PipelineHook;
384 : : template <typename, ::capnp::Kind>
385 : : friend struct ::capnp::ToDynamic_;
386 : : };
387 : : #endif // !CAPNP_LITE
388 : :
389 : : class Init::ConstructResults::Reader {
390 : : public:
391 : : typedef ConstructResults Reads;
392 : :
393 : : Reader() = default;
394 : 20 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
395 : :
396 : : inline ::capnp::MessageSize totalSize() const {
397 : : return _reader.totalSize().asPublic();
398 : : }
399 : :
400 : : #if !CAPNP_LITE
401 : 16 : inline ::kj::StringTree toString() const {
402 [ + - ]: 16 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
403 : : }
404 : : #endif // !CAPNP_LITE
405 : :
406 : : inline bool hasThreadMap() const;
407 : : #if !CAPNP_LITE
408 : : inline ::mp::ThreadMap::Client getThreadMap() const;
409 : : #endif // !CAPNP_LITE
410 : :
411 : : private:
412 : : ::capnp::_::StructReader _reader;
413 : : template <typename, ::capnp::Kind>
414 : : friend struct ::capnp::ToDynamic_;
415 : : template <typename, ::capnp::Kind>
416 : : friend struct ::capnp::_::PointerHelpers;
417 : : template <typename, ::capnp::Kind>
418 : : friend struct ::capnp::List;
419 : : friend class ::capnp::MessageBuilder;
420 : : friend class ::capnp::Orphanage;
421 : : };
422 : :
423 : : class Init::ConstructResults::Builder {
424 : : public:
425 : : typedef ConstructResults Builds;
426 : :
427 : : Builder() = delete; // Deleted to discourage incorrect usage.
428 : : // You can explicitly initialize to nullptr instead.
429 : : inline Builder(decltype(nullptr)) {}
430 : 20 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
431 : 10 : inline operator Reader() const { return Reader(_builder.asReader()); }
432 : 10 : inline Reader asReader() const { return *this; }
433 : :
434 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
435 : : #if !CAPNP_LITE
436 : 10 : inline ::kj::StringTree toString() const { return asReader().toString(); }
437 : : #endif // !CAPNP_LITE
438 : :
439 : : inline bool hasThreadMap();
440 : : #if !CAPNP_LITE
441 : : inline ::mp::ThreadMap::Client getThreadMap();
442 : : inline void setThreadMap( ::mp::ThreadMap::Client&& value);
443 : : inline void setThreadMap( ::mp::ThreadMap::Client& value);
444 : : inline void adoptThreadMap(::capnp::Orphan< ::mp::ThreadMap>&& value);
445 : : inline ::capnp::Orphan< ::mp::ThreadMap> disownThreadMap();
446 : : #endif // !CAPNP_LITE
447 : :
448 : : private:
449 : : ::capnp::_::StructBuilder _builder;
450 : : template <typename, ::capnp::Kind>
451 : : friend struct ::capnp::ToDynamic_;
452 : : friend class ::capnp::Orphanage;
453 : : template <typename, ::capnp::Kind>
454 : : friend struct ::capnp::_::PointerHelpers;
455 : : };
456 : :
457 : : #if !CAPNP_LITE
458 [ - + ]: 20 : class Init::ConstructResults::Pipeline {
459 : : public:
460 : : typedef ConstructResults Pipelines;
461 : :
462 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
463 : 10 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
464 : 10 : : _typeless(kj::mv(typeless)) {}
465 : :
466 : : inline ::mp::ThreadMap::Client getThreadMap();
467 : : private:
468 : : ::capnp::AnyPointer::Pipeline _typeless;
469 : : friend class ::capnp::PipelineHook;
470 : : template <typename, ::capnp::Kind>
471 : : friend struct ::capnp::ToDynamic_;
472 : : };
473 : : #endif // !CAPNP_LITE
474 : :
475 : : class Init::MakeEchoParams::Reader {
476 : : public:
477 : : typedef MakeEchoParams Reads;
478 : :
479 : : Reader() = default;
480 : 24 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
481 : :
482 : : inline ::capnp::MessageSize totalSize() const {
483 : : return _reader.totalSize().asPublic();
484 : : }
485 : :
486 : : #if !CAPNP_LITE
487 : 12 : inline ::kj::StringTree toString() const {
488 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
489 : : }
490 : : #endif // !CAPNP_LITE
491 : :
492 : : inline bool hasContext() const;
493 : : inline ::mp::Context::Reader getContext() const;
494 : :
495 : : private:
496 : : ::capnp::_::StructReader _reader;
497 : : template <typename, ::capnp::Kind>
498 : : friend struct ::capnp::ToDynamic_;
499 : : template <typename, ::capnp::Kind>
500 : : friend struct ::capnp::_::PointerHelpers;
501 : : template <typename, ::capnp::Kind>
502 : : friend struct ::capnp::List;
503 : : friend class ::capnp::MessageBuilder;
504 : : friend class ::capnp::Orphanage;
505 : : };
506 : :
507 : : class Init::MakeEchoParams::Builder {
508 : : public:
509 : : typedef MakeEchoParams Builds;
510 : :
511 : : Builder() = delete; // Deleted to discourage incorrect usage.
512 : : // You can explicitly initialize to nullptr instead.
513 : : inline Builder(decltype(nullptr)) {}
514 : 6 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
515 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
516 : 6 : inline Reader asReader() const { return *this; }
517 : :
518 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
519 : : #if !CAPNP_LITE
520 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
521 : : #endif // !CAPNP_LITE
522 : :
523 : : inline bool hasContext();
524 : : inline ::mp::Context::Builder getContext();
525 : : inline void setContext( ::mp::Context::Reader value);
526 : : inline ::mp::Context::Builder initContext();
527 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
528 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
529 : :
530 : : private:
531 : : ::capnp::_::StructBuilder _builder;
532 : : template <typename, ::capnp::Kind>
533 : : friend struct ::capnp::ToDynamic_;
534 : : friend class ::capnp::Orphanage;
535 : : template <typename, ::capnp::Kind>
536 : : friend struct ::capnp::_::PointerHelpers;
537 : : };
538 : :
539 : : #if !CAPNP_LITE
540 : : class Init::MakeEchoParams::Pipeline {
541 : : public:
542 : : typedef MakeEchoParams Pipelines;
543 : :
544 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
545 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
546 : : : _typeless(kj::mv(typeless)) {}
547 : :
548 : : inline ::mp::Context::Pipeline getContext();
549 : : private:
550 : : ::capnp::AnyPointer::Pipeline _typeless;
551 : : friend class ::capnp::PipelineHook;
552 : : template <typename, ::capnp::Kind>
553 : : friend struct ::capnp::ToDynamic_;
554 : : };
555 : : #endif // !CAPNP_LITE
556 : :
557 : : class Init::MakeEchoResults::Reader {
558 : : public:
559 : : typedef MakeEchoResults Reads;
560 : :
561 : : Reader() = default;
562 : 12 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
563 : :
564 : : inline ::capnp::MessageSize totalSize() const {
565 : : return _reader.totalSize().asPublic();
566 : : }
567 : :
568 : : #if !CAPNP_LITE
569 : 12 : inline ::kj::StringTree toString() const {
570 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
571 : : }
572 : : #endif // !CAPNP_LITE
573 : :
574 : : inline bool hasResult() const;
575 : : #if !CAPNP_LITE
576 : : inline ::ipc::capnp::messages::Echo::Client getResult() const;
577 : : #endif // !CAPNP_LITE
578 : :
579 : : private:
580 : : ::capnp::_::StructReader _reader;
581 : : template <typename, ::capnp::Kind>
582 : : friend struct ::capnp::ToDynamic_;
583 : : template <typename, ::capnp::Kind>
584 : : friend struct ::capnp::_::PointerHelpers;
585 : : template <typename, ::capnp::Kind>
586 : : friend struct ::capnp::List;
587 : : friend class ::capnp::MessageBuilder;
588 : : friend class ::capnp::Orphanage;
589 : : };
590 : :
591 : : class Init::MakeEchoResults::Builder {
592 : : public:
593 : : typedef MakeEchoResults Builds;
594 : :
595 : : Builder() = delete; // Deleted to discourage incorrect usage.
596 : : // You can explicitly initialize to nullptr instead.
597 : : inline Builder(decltype(nullptr)) {}
598 : 12 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
599 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
600 : 6 : inline Reader asReader() const { return *this; }
601 : :
602 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
603 : : #if !CAPNP_LITE
604 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
605 : : #endif // !CAPNP_LITE
606 : :
607 : : inline bool hasResult();
608 : : #if !CAPNP_LITE
609 : : inline ::ipc::capnp::messages::Echo::Client getResult();
610 : : inline void setResult( ::ipc::capnp::messages::Echo::Client&& value);
611 : : inline void setResult( ::ipc::capnp::messages::Echo::Client& value);
612 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::Echo>&& value);
613 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Echo> disownResult();
614 : : #endif // !CAPNP_LITE
615 : :
616 : : private:
617 : : ::capnp::_::StructBuilder _builder;
618 : : template <typename, ::capnp::Kind>
619 : : friend struct ::capnp::ToDynamic_;
620 : : friend class ::capnp::Orphanage;
621 : : template <typename, ::capnp::Kind>
622 : : friend struct ::capnp::_::PointerHelpers;
623 : : };
624 : :
625 : : #if !CAPNP_LITE
626 [ - + ]: 12 : class Init::MakeEchoResults::Pipeline {
627 : : public:
628 : : typedef MakeEchoResults Pipelines;
629 : :
630 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
631 : 6 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
632 : 6 : : _typeless(kj::mv(typeless)) {}
633 : :
634 : : inline ::ipc::capnp::messages::Echo::Client getResult();
635 : : private:
636 : : ::capnp::AnyPointer::Pipeline _typeless;
637 : : friend class ::capnp::PipelineHook;
638 : : template <typename, ::capnp::Kind>
639 : : friend struct ::capnp::ToDynamic_;
640 : : };
641 : : #endif // !CAPNP_LITE
642 : :
643 : : class Init::MakeMiningOld2Params::Reader {
644 : : public:
645 : : typedef MakeMiningOld2Params Reads;
646 : :
647 : : Reader() = default;
648 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
649 : :
650 : : inline ::capnp::MessageSize totalSize() const {
651 : : return _reader.totalSize().asPublic();
652 : : }
653 : :
654 : : #if !CAPNP_LITE
655 : 0 : inline ::kj::StringTree toString() const {
656 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
657 : : }
658 : : #endif // !CAPNP_LITE
659 : :
660 : : private:
661 : : ::capnp::_::StructReader _reader;
662 : : template <typename, ::capnp::Kind>
663 : : friend struct ::capnp::ToDynamic_;
664 : : template <typename, ::capnp::Kind>
665 : : friend struct ::capnp::_::PointerHelpers;
666 : : template <typename, ::capnp::Kind>
667 : : friend struct ::capnp::List;
668 : : friend class ::capnp::MessageBuilder;
669 : : friend class ::capnp::Orphanage;
670 : : };
671 : :
672 : : class Init::MakeMiningOld2Params::Builder {
673 : : public:
674 : : typedef MakeMiningOld2Params Builds;
675 : :
676 : : Builder() = delete; // Deleted to discourage incorrect usage.
677 : : // You can explicitly initialize to nullptr instead.
678 : : inline Builder(decltype(nullptr)) {}
679 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
680 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
681 : 0 : inline Reader asReader() const { return *this; }
682 : :
683 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
684 : : #if !CAPNP_LITE
685 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
686 : : #endif // !CAPNP_LITE
687 : :
688 : : private:
689 : : ::capnp::_::StructBuilder _builder;
690 : : template <typename, ::capnp::Kind>
691 : : friend struct ::capnp::ToDynamic_;
692 : : friend class ::capnp::Orphanage;
693 : : template <typename, ::capnp::Kind>
694 : : friend struct ::capnp::_::PointerHelpers;
695 : : };
696 : :
697 : : #if !CAPNP_LITE
698 : : class Init::MakeMiningOld2Params::Pipeline {
699 : : public:
700 : : typedef MakeMiningOld2Params Pipelines;
701 : :
702 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
703 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
704 : : : _typeless(kj::mv(typeless)) {}
705 : :
706 : : private:
707 : : ::capnp::AnyPointer::Pipeline _typeless;
708 : : friend class ::capnp::PipelineHook;
709 : : template <typename, ::capnp::Kind>
710 : : friend struct ::capnp::ToDynamic_;
711 : : };
712 : : #endif // !CAPNP_LITE
713 : :
714 : : class Init::MakeMiningOld2Results::Reader {
715 : : public:
716 : : typedef MakeMiningOld2Results Reads;
717 : :
718 : : Reader() = default;
719 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
720 : :
721 : : inline ::capnp::MessageSize totalSize() const {
722 : : return _reader.totalSize().asPublic();
723 : : }
724 : :
725 : : #if !CAPNP_LITE
726 : 0 : inline ::kj::StringTree toString() const {
727 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
728 : : }
729 : : #endif // !CAPNP_LITE
730 : :
731 : : private:
732 : : ::capnp::_::StructReader _reader;
733 : : template <typename, ::capnp::Kind>
734 : : friend struct ::capnp::ToDynamic_;
735 : : template <typename, ::capnp::Kind>
736 : : friend struct ::capnp::_::PointerHelpers;
737 : : template <typename, ::capnp::Kind>
738 : : friend struct ::capnp::List;
739 : : friend class ::capnp::MessageBuilder;
740 : : friend class ::capnp::Orphanage;
741 : : };
742 : :
743 : : class Init::MakeMiningOld2Results::Builder {
744 : : public:
745 : : typedef MakeMiningOld2Results Builds;
746 : :
747 : : Builder() = delete; // Deleted to discourage incorrect usage.
748 : : // You can explicitly initialize to nullptr instead.
749 : : inline Builder(decltype(nullptr)) {}
750 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
751 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
752 : 0 : inline Reader asReader() const { return *this; }
753 : :
754 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
755 : : #if !CAPNP_LITE
756 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
757 : : #endif // !CAPNP_LITE
758 : :
759 : : private:
760 : : ::capnp::_::StructBuilder _builder;
761 : : template <typename, ::capnp::Kind>
762 : : friend struct ::capnp::ToDynamic_;
763 : : friend class ::capnp::Orphanage;
764 : : template <typename, ::capnp::Kind>
765 : : friend struct ::capnp::_::PointerHelpers;
766 : : };
767 : :
768 : : #if !CAPNP_LITE
769 [ # # ]: 0 : class Init::MakeMiningOld2Results::Pipeline {
770 : : public:
771 : : typedef MakeMiningOld2Results Pipelines;
772 : :
773 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
774 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
775 : 0 : : _typeless(kj::mv(typeless)) {}
776 : :
777 : : private:
778 : : ::capnp::AnyPointer::Pipeline _typeless;
779 : : friend class ::capnp::PipelineHook;
780 : : template <typename, ::capnp::Kind>
781 : : friend struct ::capnp::ToDynamic_;
782 : : };
783 : : #endif // !CAPNP_LITE
784 : :
785 : : class Init::MakeMiningParams::Reader {
786 : : public:
787 : : typedef MakeMiningParams Reads;
788 : :
789 : : Reader() = default;
790 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
791 : :
792 : : inline ::capnp::MessageSize totalSize() const {
793 : : return _reader.totalSize().asPublic();
794 : : }
795 : :
796 : : #if !CAPNP_LITE
797 : 0 : inline ::kj::StringTree toString() const {
798 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
799 : : }
800 : : #endif // !CAPNP_LITE
801 : :
802 : : inline bool hasContext() const;
803 : : inline ::mp::Context::Reader getContext() const;
804 : :
805 : : private:
806 : : ::capnp::_::StructReader _reader;
807 : : template <typename, ::capnp::Kind>
808 : : friend struct ::capnp::ToDynamic_;
809 : : template <typename, ::capnp::Kind>
810 : : friend struct ::capnp::_::PointerHelpers;
811 : : template <typename, ::capnp::Kind>
812 : : friend struct ::capnp::List;
813 : : friend class ::capnp::MessageBuilder;
814 : : friend class ::capnp::Orphanage;
815 : : };
816 : :
817 : : class Init::MakeMiningParams::Builder {
818 : : public:
819 : : typedef MakeMiningParams Builds;
820 : :
821 : : Builder() = delete; // Deleted to discourage incorrect usage.
822 : : // You can explicitly initialize to nullptr instead.
823 : : inline Builder(decltype(nullptr)) {}
824 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
825 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
826 : 0 : inline Reader asReader() const { return *this; }
827 : :
828 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
829 : : #if !CAPNP_LITE
830 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
831 : : #endif // !CAPNP_LITE
832 : :
833 : : inline bool hasContext();
834 : : inline ::mp::Context::Builder getContext();
835 : : inline void setContext( ::mp::Context::Reader value);
836 : : inline ::mp::Context::Builder initContext();
837 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
838 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
839 : :
840 : : private:
841 : : ::capnp::_::StructBuilder _builder;
842 : : template <typename, ::capnp::Kind>
843 : : friend struct ::capnp::ToDynamic_;
844 : : friend class ::capnp::Orphanage;
845 : : template <typename, ::capnp::Kind>
846 : : friend struct ::capnp::_::PointerHelpers;
847 : : };
848 : :
849 : : #if !CAPNP_LITE
850 : : class Init::MakeMiningParams::Pipeline {
851 : : public:
852 : : typedef MakeMiningParams Pipelines;
853 : :
854 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
855 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
856 : : : _typeless(kj::mv(typeless)) {}
857 : :
858 : : inline ::mp::Context::Pipeline getContext();
859 : : private:
860 : : ::capnp::AnyPointer::Pipeline _typeless;
861 : : friend class ::capnp::PipelineHook;
862 : : template <typename, ::capnp::Kind>
863 : : friend struct ::capnp::ToDynamic_;
864 : : };
865 : : #endif // !CAPNP_LITE
866 : :
867 : : class Init::MakeMiningResults::Reader {
868 : : public:
869 : : typedef MakeMiningResults Reads;
870 : :
871 : : Reader() = default;
872 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
873 : :
874 : : inline ::capnp::MessageSize totalSize() const {
875 : : return _reader.totalSize().asPublic();
876 : : }
877 : :
878 : : #if !CAPNP_LITE
879 : 0 : inline ::kj::StringTree toString() const {
880 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
881 : : }
882 : : #endif // !CAPNP_LITE
883 : :
884 : : inline bool hasResult() const;
885 : : #if !CAPNP_LITE
886 : : inline ::ipc::capnp::messages::Mining::Client getResult() const;
887 : : #endif // !CAPNP_LITE
888 : :
889 : : private:
890 : : ::capnp::_::StructReader _reader;
891 : : template <typename, ::capnp::Kind>
892 : : friend struct ::capnp::ToDynamic_;
893 : : template <typename, ::capnp::Kind>
894 : : friend struct ::capnp::_::PointerHelpers;
895 : : template <typename, ::capnp::Kind>
896 : : friend struct ::capnp::List;
897 : : friend class ::capnp::MessageBuilder;
898 : : friend class ::capnp::Orphanage;
899 : : };
900 : :
901 : : class Init::MakeMiningResults::Builder {
902 : : public:
903 : : typedef MakeMiningResults Builds;
904 : :
905 : : Builder() = delete; // Deleted to discourage incorrect usage.
906 : : // You can explicitly initialize to nullptr instead.
907 : : inline Builder(decltype(nullptr)) {}
908 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
909 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
910 : 0 : inline Reader asReader() const { return *this; }
911 : :
912 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
913 : : #if !CAPNP_LITE
914 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
915 : : #endif // !CAPNP_LITE
916 : :
917 : : inline bool hasResult();
918 : : #if !CAPNP_LITE
919 : : inline ::ipc::capnp::messages::Mining::Client getResult();
920 : : inline void setResult( ::ipc::capnp::messages::Mining::Client&& value);
921 : : inline void setResult( ::ipc::capnp::messages::Mining::Client& value);
922 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::Mining>&& value);
923 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Mining> disownResult();
924 : : #endif // !CAPNP_LITE
925 : :
926 : : private:
927 : : ::capnp::_::StructBuilder _builder;
928 : : template <typename, ::capnp::Kind>
929 : : friend struct ::capnp::ToDynamic_;
930 : : friend class ::capnp::Orphanage;
931 : : template <typename, ::capnp::Kind>
932 : : friend struct ::capnp::_::PointerHelpers;
933 : : };
934 : :
935 : : #if !CAPNP_LITE
936 [ # # ]: 0 : class Init::MakeMiningResults::Pipeline {
937 : : public:
938 : : typedef MakeMiningResults Pipelines;
939 : :
940 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
941 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
942 : 0 : : _typeless(kj::mv(typeless)) {}
943 : :
944 : : inline ::ipc::capnp::messages::Mining::Client getResult();
945 : : private:
946 : : ::capnp::AnyPointer::Pipeline _typeless;
947 : : friend class ::capnp::PipelineHook;
948 : : template <typename, ::capnp::Kind>
949 : : friend struct ::capnp::ToDynamic_;
950 : : };
951 : : #endif // !CAPNP_LITE
952 : :
953 : : class Init::MakeRpcParams::Reader {
954 : : public:
955 : : typedef MakeRpcParams Reads;
956 : :
957 : : Reader() = default;
958 : 12 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
959 : :
960 : : inline ::capnp::MessageSize totalSize() const {
961 : : return _reader.totalSize().asPublic();
962 : : }
963 : :
964 : : #if !CAPNP_LITE
965 : 4 : inline ::kj::StringTree toString() const {
966 [ + - ]: 4 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
967 : : }
968 : : #endif // !CAPNP_LITE
969 : :
970 : : inline bool hasContext() const;
971 : : inline ::mp::Context::Reader getContext() const;
972 : :
973 : : private:
974 : : ::capnp::_::StructReader _reader;
975 : : template <typename, ::capnp::Kind>
976 : : friend struct ::capnp::ToDynamic_;
977 : : template <typename, ::capnp::Kind>
978 : : friend struct ::capnp::_::PointerHelpers;
979 : : template <typename, ::capnp::Kind>
980 : : friend struct ::capnp::List;
981 : : friend class ::capnp::MessageBuilder;
982 : : friend class ::capnp::Orphanage;
983 : : };
984 : :
985 : : class Init::MakeRpcParams::Builder {
986 : : public:
987 : : typedef MakeRpcParams Builds;
988 : :
989 : : Builder() = delete; // Deleted to discourage incorrect usage.
990 : : // You can explicitly initialize to nullptr instead.
991 : : inline Builder(decltype(nullptr)) {}
992 : 4 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
993 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
994 : 0 : inline Reader asReader() const { return *this; }
995 : :
996 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
997 : : #if !CAPNP_LITE
998 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
999 : : #endif // !CAPNP_LITE
1000 : :
1001 : : inline bool hasContext();
1002 : : inline ::mp::Context::Builder getContext();
1003 : : inline void setContext( ::mp::Context::Reader value);
1004 : : inline ::mp::Context::Builder initContext();
1005 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
1006 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
1007 : :
1008 : : private:
1009 : : ::capnp::_::StructBuilder _builder;
1010 : : template <typename, ::capnp::Kind>
1011 : : friend struct ::capnp::ToDynamic_;
1012 : : friend class ::capnp::Orphanage;
1013 : : template <typename, ::capnp::Kind>
1014 : : friend struct ::capnp::_::PointerHelpers;
1015 : : };
1016 : :
1017 : : #if !CAPNP_LITE
1018 : : class Init::MakeRpcParams::Pipeline {
1019 : : public:
1020 : : typedef MakeRpcParams Pipelines;
1021 : :
1022 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1023 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1024 : : : _typeless(kj::mv(typeless)) {}
1025 : :
1026 : : inline ::mp::Context::Pipeline getContext();
1027 : : private:
1028 : : ::capnp::AnyPointer::Pipeline _typeless;
1029 : : friend class ::capnp::PipelineHook;
1030 : : template <typename, ::capnp::Kind>
1031 : : friend struct ::capnp::ToDynamic_;
1032 : : };
1033 : : #endif // !CAPNP_LITE
1034 : :
1035 : : class Init::MakeRpcResults::Reader {
1036 : : public:
1037 : : typedef MakeRpcResults Reads;
1038 : :
1039 : : Reader() = default;
1040 : 8 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1041 : :
1042 : : inline ::capnp::MessageSize totalSize() const {
1043 : : return _reader.totalSize().asPublic();
1044 : : }
1045 : :
1046 : : #if !CAPNP_LITE
1047 : 4 : inline ::kj::StringTree toString() const {
1048 [ # # ]: 4 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1049 : : }
1050 : : #endif // !CAPNP_LITE
1051 : :
1052 : : inline bool hasResult() const;
1053 : : #if !CAPNP_LITE
1054 : : inline ::ipc::capnp::messages::Rpc::Client getResult() const;
1055 : : #endif // !CAPNP_LITE
1056 : :
1057 : : private:
1058 : : ::capnp::_::StructReader _reader;
1059 : : template <typename, ::capnp::Kind>
1060 : : friend struct ::capnp::ToDynamic_;
1061 : : template <typename, ::capnp::Kind>
1062 : : friend struct ::capnp::_::PointerHelpers;
1063 : : template <typename, ::capnp::Kind>
1064 : : friend struct ::capnp::List;
1065 : : friend class ::capnp::MessageBuilder;
1066 : : friend class ::capnp::Orphanage;
1067 : : };
1068 : :
1069 : : class Init::MakeRpcResults::Builder {
1070 : : public:
1071 : : typedef MakeRpcResults Builds;
1072 : :
1073 : : Builder() = delete; // Deleted to discourage incorrect usage.
1074 : : // You can explicitly initialize to nullptr instead.
1075 : : inline Builder(decltype(nullptr)) {}
1076 : 8 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1077 : 4 : inline operator Reader() const { return Reader(_builder.asReader()); }
1078 : 4 : inline Reader asReader() const { return *this; }
1079 : :
1080 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1081 : : #if !CAPNP_LITE
1082 : 4 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1083 : : #endif // !CAPNP_LITE
1084 : :
1085 : : inline bool hasResult();
1086 : : #if !CAPNP_LITE
1087 : : inline ::ipc::capnp::messages::Rpc::Client getResult();
1088 : : inline void setResult( ::ipc::capnp::messages::Rpc::Client&& value);
1089 : : inline void setResult( ::ipc::capnp::messages::Rpc::Client& value);
1090 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::Rpc>&& value);
1091 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Rpc> disownResult();
1092 : : #endif // !CAPNP_LITE
1093 : :
1094 : : private:
1095 : : ::capnp::_::StructBuilder _builder;
1096 : : template <typename, ::capnp::Kind>
1097 : : friend struct ::capnp::ToDynamic_;
1098 : : friend class ::capnp::Orphanage;
1099 : : template <typename, ::capnp::Kind>
1100 : : friend struct ::capnp::_::PointerHelpers;
1101 : : };
1102 : :
1103 : : #if !CAPNP_LITE
1104 [ - + ]: 8 : class Init::MakeRpcResults::Pipeline {
1105 : : public:
1106 : : typedef MakeRpcResults Pipelines;
1107 : :
1108 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1109 : 4 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1110 : 4 : : _typeless(kj::mv(typeless)) {}
1111 : :
1112 : : inline ::ipc::capnp::messages::Rpc::Client getResult();
1113 : : private:
1114 : : ::capnp::AnyPointer::Pipeline _typeless;
1115 : : friend class ::capnp::PipelineHook;
1116 : : template <typename, ::capnp::Kind>
1117 : : friend struct ::capnp::ToDynamic_;
1118 : : };
1119 : : #endif // !CAPNP_LITE
1120 : :
1121 : : // =======================================================================================
1122 : :
1123 : : #if !CAPNP_LITE
1124 : 10 : inline Init::Client::Client(decltype(nullptr))
1125 [ + - ]: 10 : : ::capnp::Capability::Client(nullptr) {}
1126 : 20 : inline Init::Client::Client(
1127 : : ::kj::Own< ::capnp::ClientHook>&& hook)
1128 [ + - ]: 20 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
1129 : : template <typename _t, typename>
1130 : : inline Init::Client::Client(::kj::Own<_t>&& server)
1131 : : : ::capnp::Capability::Client(::kj::mv(server)) {}
1132 : : template <typename _t, typename>
1133 : : inline Init::Client::Client(::kj::Promise<_t>&& promise)
1134 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
1135 : : inline Init::Client::Client(::kj::Exception&& exception)
1136 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
1137 : : inline ::ipc::capnp::messages::Init::Client& Init::Client::operator=(Client& other) {
1138 : : ::capnp::Capability::Client::operator=(other);
1139 : : return *this;
1140 : : }
1141 : 10 : inline ::ipc::capnp::messages::Init::Client& Init::Client::operator=(Client&& other) {
1142 : 10 : ::capnp::Capability::Client::operator=(kj::mv(other));
1143 : 10 : return *this;
1144 : : }
1145 : :
1146 : : #endif // !CAPNP_LITE
1147 : : inline bool Init::ConstructParams::Reader::hasThreadMap() const {
1148 : : return !_reader.getPointerField(
1149 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1150 : : }
1151 : : inline bool Init::ConstructParams::Builder::hasThreadMap() {
1152 : : return !_builder.getPointerField(
1153 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1154 : : }
1155 : : #if !CAPNP_LITE
1156 : 10 : inline ::mp::ThreadMap::Client Init::ConstructParams::Reader::getThreadMap() const {
1157 : 10 : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::get(_reader.getPointerField(
1158 [ + - ]: 20 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1159 : : }
1160 : : inline ::mp::ThreadMap::Client Init::ConstructParams::Builder::getThreadMap() {
1161 : : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::get(_builder.getPointerField(
1162 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1163 : : }
1164 : : inline ::mp::ThreadMap::Client Init::ConstructParams::Pipeline::getThreadMap() {
1165 : : return ::mp::ThreadMap::Client(_typeless.getPointerField(0).asCap());
1166 : : }
1167 : 10 : inline void Init::ConstructParams::Builder::setThreadMap( ::mp::ThreadMap::Client&& cap) {
1168 : 10 : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::set(_builder.getPointerField(
1169 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
1170 : 10 : }
1171 : : inline void Init::ConstructParams::Builder::setThreadMap( ::mp::ThreadMap::Client& cap) {
1172 : : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::set(_builder.getPointerField(
1173 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
1174 : : }
1175 : : inline void Init::ConstructParams::Builder::adoptThreadMap(
1176 : : ::capnp::Orphan< ::mp::ThreadMap>&& value) {
1177 : : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::adopt(_builder.getPointerField(
1178 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1179 : : }
1180 : : inline ::capnp::Orphan< ::mp::ThreadMap> Init::ConstructParams::Builder::disownThreadMap() {
1181 : : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::disown(_builder.getPointerField(
1182 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1183 : : }
1184 : : #endif // !CAPNP_LITE
1185 : :
1186 : : inline bool Init::ConstructResults::Reader::hasThreadMap() const {
1187 : : return !_reader.getPointerField(
1188 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1189 : : }
1190 : : inline bool Init::ConstructResults::Builder::hasThreadMap() {
1191 : : return !_builder.getPointerField(
1192 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1193 : : }
1194 : : #if !CAPNP_LITE
1195 : 10 : inline ::mp::ThreadMap::Client Init::ConstructResults::Reader::getThreadMap() const {
1196 : 10 : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::get(_reader.getPointerField(
1197 [ + - ]: 20 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1198 : : }
1199 : : inline ::mp::ThreadMap::Client Init::ConstructResults::Builder::getThreadMap() {
1200 : : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::get(_builder.getPointerField(
1201 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1202 : : }
1203 : : inline ::mp::ThreadMap::Client Init::ConstructResults::Pipeline::getThreadMap() {
1204 : : return ::mp::ThreadMap::Client(_typeless.getPointerField(0).asCap());
1205 : : }
1206 : 10 : inline void Init::ConstructResults::Builder::setThreadMap( ::mp::ThreadMap::Client&& cap) {
1207 : 10 : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::set(_builder.getPointerField(
1208 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
1209 : 10 : }
1210 : : inline void Init::ConstructResults::Builder::setThreadMap( ::mp::ThreadMap::Client& cap) {
1211 : : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::set(_builder.getPointerField(
1212 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
1213 : : }
1214 : : inline void Init::ConstructResults::Builder::adoptThreadMap(
1215 : : ::capnp::Orphan< ::mp::ThreadMap>&& value) {
1216 : : ::capnp::_::PointerHelpers< ::mp::ThreadMap>::adopt(_builder.getPointerField(
1217 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1218 : : }
1219 : : inline ::capnp::Orphan< ::mp::ThreadMap> Init::ConstructResults::Builder::disownThreadMap() {
1220 : : return ::capnp::_::PointerHelpers< ::mp::ThreadMap>::disown(_builder.getPointerField(
1221 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1222 : : }
1223 : : #endif // !CAPNP_LITE
1224 : :
1225 : : inline bool Init::MakeEchoParams::Reader::hasContext() const {
1226 : : return !_reader.getPointerField(
1227 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1228 : : }
1229 : : inline bool Init::MakeEchoParams::Builder::hasContext() {
1230 : : return !_builder.getPointerField(
1231 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1232 : : }
1233 : 12 : inline ::mp::Context::Reader Init::MakeEchoParams::Reader::getContext() const {
1234 [ + - ]: 24 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
1235 : 12 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1236 : : }
1237 : : inline ::mp::Context::Builder Init::MakeEchoParams::Builder::getContext() {
1238 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
1239 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1240 : : }
1241 : : #if !CAPNP_LITE
1242 : : inline ::mp::Context::Pipeline Init::MakeEchoParams::Pipeline::getContext() {
1243 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
1244 : : }
1245 : : #endif // !CAPNP_LITE
1246 : : inline void Init::MakeEchoParams::Builder::setContext( ::mp::Context::Reader value) {
1247 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
1248 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1249 : : }
1250 : 6 : inline ::mp::Context::Builder Init::MakeEchoParams::Builder::initContext() {
1251 : 6 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
1252 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1253 : : }
1254 : : inline void Init::MakeEchoParams::Builder::adoptContext(
1255 : : ::capnp::Orphan< ::mp::Context>&& value) {
1256 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
1257 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1258 : : }
1259 : : inline ::capnp::Orphan< ::mp::Context> Init::MakeEchoParams::Builder::disownContext() {
1260 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
1261 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1262 : : }
1263 : :
1264 : 6 : inline bool Init::MakeEchoResults::Reader::hasResult() const {
1265 [ + - ]: 12 : return !_reader.getPointerField(
1266 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1267 : : }
1268 : : inline bool Init::MakeEchoResults::Builder::hasResult() {
1269 : : return !_builder.getPointerField(
1270 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1271 : : }
1272 : : #if !CAPNP_LITE
1273 : 6 : inline ::ipc::capnp::messages::Echo::Client Init::MakeEchoResults::Reader::getResult() const {
1274 : 6 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::get(_reader.getPointerField(
1275 [ + - ]: 12 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1276 : : }
1277 : : inline ::ipc::capnp::messages::Echo::Client Init::MakeEchoResults::Builder::getResult() {
1278 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::get(_builder.getPointerField(
1279 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1280 : : }
1281 : : inline ::ipc::capnp::messages::Echo::Client Init::MakeEchoResults::Pipeline::getResult() {
1282 : : return ::ipc::capnp::messages::Echo::Client(_typeless.getPointerField(0).asCap());
1283 : : }
1284 : 6 : inline void Init::MakeEchoResults::Builder::setResult( ::ipc::capnp::messages::Echo::Client&& cap) {
1285 : 6 : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::set(_builder.getPointerField(
1286 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
1287 : 6 : }
1288 : : inline void Init::MakeEchoResults::Builder::setResult( ::ipc::capnp::messages::Echo::Client& cap) {
1289 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::set(_builder.getPointerField(
1290 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
1291 : : }
1292 : : inline void Init::MakeEchoResults::Builder::adoptResult(
1293 : : ::capnp::Orphan< ::ipc::capnp::messages::Echo>&& value) {
1294 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::adopt(_builder.getPointerField(
1295 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1296 : : }
1297 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Echo> Init::MakeEchoResults::Builder::disownResult() {
1298 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Echo>::disown(_builder.getPointerField(
1299 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1300 : : }
1301 : : #endif // !CAPNP_LITE
1302 : :
1303 : : inline bool Init::MakeMiningParams::Reader::hasContext() const {
1304 : : return !_reader.getPointerField(
1305 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1306 : : }
1307 : : inline bool Init::MakeMiningParams::Builder::hasContext() {
1308 : : return !_builder.getPointerField(
1309 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1310 : : }
1311 : 0 : inline ::mp::Context::Reader Init::MakeMiningParams::Reader::getContext() const {
1312 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
1313 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1314 : : }
1315 : : inline ::mp::Context::Builder Init::MakeMiningParams::Builder::getContext() {
1316 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
1317 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1318 : : }
1319 : : #if !CAPNP_LITE
1320 : : inline ::mp::Context::Pipeline Init::MakeMiningParams::Pipeline::getContext() {
1321 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
1322 : : }
1323 : : #endif // !CAPNP_LITE
1324 : : inline void Init::MakeMiningParams::Builder::setContext( ::mp::Context::Reader value) {
1325 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
1326 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1327 : : }
1328 : 0 : inline ::mp::Context::Builder Init::MakeMiningParams::Builder::initContext() {
1329 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
1330 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1331 : : }
1332 : : inline void Init::MakeMiningParams::Builder::adoptContext(
1333 : : ::capnp::Orphan< ::mp::Context>&& value) {
1334 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
1335 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1336 : : }
1337 : : inline ::capnp::Orphan< ::mp::Context> Init::MakeMiningParams::Builder::disownContext() {
1338 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
1339 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1340 : : }
1341 : :
1342 : 0 : inline bool Init::MakeMiningResults::Reader::hasResult() const {
1343 [ # # ]: 0 : return !_reader.getPointerField(
1344 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1345 : : }
1346 : : inline bool Init::MakeMiningResults::Builder::hasResult() {
1347 : : return !_builder.getPointerField(
1348 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1349 : : }
1350 : : #if !CAPNP_LITE
1351 : 0 : inline ::ipc::capnp::messages::Mining::Client Init::MakeMiningResults::Reader::getResult() const {
1352 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::get(_reader.getPointerField(
1353 [ # # ]: 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1354 : : }
1355 : : inline ::ipc::capnp::messages::Mining::Client Init::MakeMiningResults::Builder::getResult() {
1356 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::get(_builder.getPointerField(
1357 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1358 : : }
1359 : : inline ::ipc::capnp::messages::Mining::Client Init::MakeMiningResults::Pipeline::getResult() {
1360 : : return ::ipc::capnp::messages::Mining::Client(_typeless.getPointerField(0).asCap());
1361 : : }
1362 : 0 : inline void Init::MakeMiningResults::Builder::setResult( ::ipc::capnp::messages::Mining::Client&& cap) {
1363 : 0 : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::set(_builder.getPointerField(
1364 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
1365 : 0 : }
1366 : : inline void Init::MakeMiningResults::Builder::setResult( ::ipc::capnp::messages::Mining::Client& cap) {
1367 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::set(_builder.getPointerField(
1368 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
1369 : : }
1370 : : inline void Init::MakeMiningResults::Builder::adoptResult(
1371 : : ::capnp::Orphan< ::ipc::capnp::messages::Mining>&& value) {
1372 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::adopt(_builder.getPointerField(
1373 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1374 : : }
1375 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Mining> Init::MakeMiningResults::Builder::disownResult() {
1376 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Mining>::disown(_builder.getPointerField(
1377 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1378 : : }
1379 : : #endif // !CAPNP_LITE
1380 : :
1381 : : inline bool Init::MakeRpcParams::Reader::hasContext() const {
1382 : : return !_reader.getPointerField(
1383 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1384 : : }
1385 : : inline bool Init::MakeRpcParams::Builder::hasContext() {
1386 : : return !_builder.getPointerField(
1387 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1388 : : }
1389 : 8 : inline ::mp::Context::Reader Init::MakeRpcParams::Reader::getContext() const {
1390 [ + - ]: 16 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
1391 : 8 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1392 : : }
1393 : : inline ::mp::Context::Builder Init::MakeRpcParams::Builder::getContext() {
1394 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
1395 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1396 : : }
1397 : : #if !CAPNP_LITE
1398 : : inline ::mp::Context::Pipeline Init::MakeRpcParams::Pipeline::getContext() {
1399 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
1400 : : }
1401 : : #endif // !CAPNP_LITE
1402 : : inline void Init::MakeRpcParams::Builder::setContext( ::mp::Context::Reader value) {
1403 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
1404 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1405 : : }
1406 : 4 : inline ::mp::Context::Builder Init::MakeRpcParams::Builder::initContext() {
1407 : 4 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
1408 : 4 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1409 : : }
1410 : : inline void Init::MakeRpcParams::Builder::adoptContext(
1411 : : ::capnp::Orphan< ::mp::Context>&& value) {
1412 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
1413 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1414 : : }
1415 : : inline ::capnp::Orphan< ::mp::Context> Init::MakeRpcParams::Builder::disownContext() {
1416 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
1417 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1418 : : }
1419 : :
1420 : 4 : inline bool Init::MakeRpcResults::Reader::hasResult() const {
1421 [ + - ]: 8 : return !_reader.getPointerField(
1422 : 4 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1423 : : }
1424 : : inline bool Init::MakeRpcResults::Builder::hasResult() {
1425 : : return !_builder.getPointerField(
1426 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1427 : : }
1428 : : #if !CAPNP_LITE
1429 : 4 : inline ::ipc::capnp::messages::Rpc::Client Init::MakeRpcResults::Reader::getResult() const {
1430 : 4 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::get(_reader.getPointerField(
1431 [ + - ]: 8 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1432 : : }
1433 : : inline ::ipc::capnp::messages::Rpc::Client Init::MakeRpcResults::Builder::getResult() {
1434 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::get(_builder.getPointerField(
1435 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1436 : : }
1437 : : inline ::ipc::capnp::messages::Rpc::Client Init::MakeRpcResults::Pipeline::getResult() {
1438 : : return ::ipc::capnp::messages::Rpc::Client(_typeless.getPointerField(0).asCap());
1439 : : }
1440 : 4 : inline void Init::MakeRpcResults::Builder::setResult( ::ipc::capnp::messages::Rpc::Client&& cap) {
1441 : 4 : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::set(_builder.getPointerField(
1442 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
1443 : 4 : }
1444 : : inline void Init::MakeRpcResults::Builder::setResult( ::ipc::capnp::messages::Rpc::Client& cap) {
1445 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::set(_builder.getPointerField(
1446 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
1447 : : }
1448 : : inline void Init::MakeRpcResults::Builder::adoptResult(
1449 : : ::capnp::Orphan< ::ipc::capnp::messages::Rpc>&& value) {
1450 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::adopt(_builder.getPointerField(
1451 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1452 : : }
1453 : : inline ::capnp::Orphan< ::ipc::capnp::messages::Rpc> Init::MakeRpcResults::Builder::disownResult() {
1454 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::Rpc>::disown(_builder.getPointerField(
1455 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1456 : : }
1457 : : #endif // !CAPNP_LITE
1458 : :
1459 : : } // namespace
1460 : : } // namespace
1461 : : } // namespace
1462 : :
1463 : : CAPNP_END_HEADER
1464 : :
|