Branch data Line data Source code
1 : : // Generated by Cap'n Proto compiler, DO NOT EDIT
2 : : // source: echo.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 : :
20 : : CAPNP_BEGIN_HEADER
21 : :
22 : : namespace capnp {
23 : : namespace schemas {
24 : :
25 : : CAPNP_DECLARE_SCHEMA(d36b89640dc94399);
26 : : CAPNP_DECLARE_SCHEMA(b96f2f4cb65dfb85);
27 : : CAPNP_DECLARE_SCHEMA(b43ed7d38d868aff);
28 : : CAPNP_DECLARE_SCHEMA(c6b88006c24cbd0e);
29 : : CAPNP_DECLARE_SCHEMA(9d6bbfd9d85b1331);
30 : :
31 : : } // namespace schemas
32 : : } // namespace capnp
33 : :
34 : : namespace ipc {
35 : : namespace capnp {
36 : : namespace messages {
37 : :
38 : : struct Echo {
39 : : Echo() = delete;
40 : :
41 : : #if !CAPNP_LITE
42 : : class Client;
43 : : class Server;
44 : : #endif // !CAPNP_LITE
45 : :
46 : : struct DestroyParams;
47 : : struct DestroyResults;
48 : : struct EchoParams;
49 : : struct EchoResults;
50 : :
51 : : #if !CAPNP_LITE
52 : : struct _capnpPrivate {
53 : : CAPNP_DECLARE_INTERFACE_HEADER(d36b89640dc94399)
54 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
55 : : };
56 : : #endif // !CAPNP_LITE
57 : : };
58 : :
59 : : struct Echo::DestroyParams {
60 : : DestroyParams() = delete;
61 : :
62 : : class Reader;
63 : : class Builder;
64 : : class Pipeline;
65 : :
66 : : struct _capnpPrivate {
67 : : CAPNP_DECLARE_STRUCT_HEADER(b96f2f4cb65dfb85, 0, 1)
68 : : #if !CAPNP_LITE
69 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
70 : : #endif // !CAPNP_LITE
71 : : };
72 : : };
73 : :
74 : : struct Echo::DestroyResults {
75 : : DestroyResults() = delete;
76 : :
77 : : class Reader;
78 : : class Builder;
79 : : class Pipeline;
80 : :
81 : : struct _capnpPrivate {
82 : : CAPNP_DECLARE_STRUCT_HEADER(b43ed7d38d868aff, 0, 0)
83 : : #if !CAPNP_LITE
84 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
85 : : #endif // !CAPNP_LITE
86 : : };
87 : : };
88 : :
89 : : struct Echo::EchoParams {
90 : : EchoParams() = delete;
91 : :
92 : : class Reader;
93 : : class Builder;
94 : : class Pipeline;
95 : :
96 : : struct _capnpPrivate {
97 : : CAPNP_DECLARE_STRUCT_HEADER(c6b88006c24cbd0e, 0, 2)
98 : : #if !CAPNP_LITE
99 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
100 : : #endif // !CAPNP_LITE
101 : : };
102 : : };
103 : :
104 : : struct Echo::EchoResults {
105 : : EchoResults() = delete;
106 : :
107 : : class Reader;
108 : : class Builder;
109 : : class Pipeline;
110 : :
111 : : struct _capnpPrivate {
112 : : CAPNP_DECLARE_STRUCT_HEADER(9d6bbfd9d85b1331, 0, 1)
113 : : #if !CAPNP_LITE
114 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
115 : : #endif // !CAPNP_LITE
116 : : };
117 : : };
118 : :
119 : : // =======================================================================================
120 : :
121 : : #if !CAPNP_LITE
122 [ - + + - ]: 30 : class Echo::Client
123 : : : public virtual ::capnp::Capability::Client {
124 : : public:
125 : : typedef Echo Calls;
126 : : typedef Echo Reads;
127 : :
128 : : Client(decltype(nullptr));
129 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
130 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
131 : : Client(::kj::Own<_t>&& server);
132 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
133 : : Client(::kj::Promise<_t>&& promise);
134 : : Client(::kj::Exception&& exception);
135 : : Client(Client&) = default;
136 [ + - + - ]: 18 : Client(Client&&) = default;
137 : : Client& operator=(Client& other);
138 : : Client& operator=(Client&& other);
139 : :
140 : : ::capnp::Request< ::ipc::capnp::messages::Echo::DestroyParams, ::ipc::capnp::messages::Echo::DestroyResults> destroyRequest(
141 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
142 : : ::capnp::Request< ::ipc::capnp::messages::Echo::EchoParams, ::ipc::capnp::messages::Echo::EchoResults> echoRequest(
143 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
144 : :
145 : : protected:
146 : : Client() = default;
147 : : };
148 : :
149 : : class Echo::Server
150 : : : public virtual ::capnp::Capability::Server {
151 : : public:
152 : : typedef Echo Serves;
153 : :
154 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
155 : : uint64_t interfaceId, uint16_t methodId,
156 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
157 : : override;
158 : :
159 : : protected:
160 : : typedef ::ipc::capnp::messages::Echo::DestroyParams DestroyParams;
161 : : typedef ::ipc::capnp::messages::Echo::DestroyResults DestroyResults;
162 : : typedef ::capnp::CallContext<DestroyParams, DestroyResults> DestroyContext;
163 : : virtual ::kj::Promise<void> destroy(DestroyContext context);
164 : : typedef ::ipc::capnp::messages::Echo::EchoParams EchoParams;
165 : : typedef ::ipc::capnp::messages::Echo::EchoResults EchoResults;
166 : : typedef ::capnp::CallContext<EchoParams, EchoResults> EchoContext;
167 : : virtual ::kj::Promise<void> echo(EchoContext context);
168 : :
169 : : inline ::ipc::capnp::messages::Echo::Client thisCap() {
170 : : return ::capnp::Capability::Server::thisCap()
171 : : .template castAs< ::ipc::capnp::messages::Echo>();
172 : : }
173 : :
174 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
175 : : uint16_t methodId,
176 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
177 : : };
178 : : #endif // !CAPNP_LITE
179 : :
180 : : class Echo::DestroyParams::Reader {
181 : : public:
182 : : typedef DestroyParams Reads;
183 : :
184 : : Reader() = default;
185 : 24 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
186 : :
187 : : inline ::capnp::MessageSize totalSize() const {
188 : : return _reader.totalSize().asPublic();
189 : : }
190 : :
191 : : #if !CAPNP_LITE
192 : 12 : inline ::kj::StringTree toString() const {
193 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
194 : : }
195 : : #endif // !CAPNP_LITE
196 : :
197 : : inline bool hasContext() const;
198 : : inline ::mp::Context::Reader getContext() const;
199 : :
200 : : private:
201 : : ::capnp::_::StructReader _reader;
202 : : template <typename, ::capnp::Kind>
203 : : friend struct ::capnp::ToDynamic_;
204 : : template <typename, ::capnp::Kind>
205 : : friend struct ::capnp::_::PointerHelpers;
206 : : template <typename, ::capnp::Kind>
207 : : friend struct ::capnp::List;
208 : : friend class ::capnp::MessageBuilder;
209 : : friend class ::capnp::Orphanage;
210 : : };
211 : :
212 : : class Echo::DestroyParams::Builder {
213 : : public:
214 : : typedef DestroyParams Builds;
215 : :
216 : : Builder() = delete; // Deleted to discourage incorrect usage.
217 : : // You can explicitly initialize to nullptr instead.
218 : : inline Builder(decltype(nullptr)) {}
219 : 6 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
220 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
221 : 6 : inline Reader asReader() const { return *this; }
222 : :
223 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
224 : : #if !CAPNP_LITE
225 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
226 : : #endif // !CAPNP_LITE
227 : :
228 : : inline bool hasContext();
229 : : inline ::mp::Context::Builder getContext();
230 : : inline void setContext( ::mp::Context::Reader value);
231 : : inline ::mp::Context::Builder initContext();
232 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
233 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
234 : :
235 : : private:
236 : : ::capnp::_::StructBuilder _builder;
237 : : template <typename, ::capnp::Kind>
238 : : friend struct ::capnp::ToDynamic_;
239 : : friend class ::capnp::Orphanage;
240 : : template <typename, ::capnp::Kind>
241 : : friend struct ::capnp::_::PointerHelpers;
242 : : };
243 : :
244 : : #if !CAPNP_LITE
245 : : class Echo::DestroyParams::Pipeline {
246 : : public:
247 : : typedef DestroyParams Pipelines;
248 : :
249 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
250 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
251 : : : _typeless(kj::mv(typeless)) {}
252 : :
253 : : inline ::mp::Context::Pipeline getContext();
254 : : private:
255 : : ::capnp::AnyPointer::Pipeline _typeless;
256 : : friend class ::capnp::PipelineHook;
257 : : template <typename, ::capnp::Kind>
258 : : friend struct ::capnp::ToDynamic_;
259 : : };
260 : : #endif // !CAPNP_LITE
261 : :
262 : : class Echo::DestroyResults::Reader {
263 : : public:
264 : : typedef DestroyResults Reads;
265 : :
266 : : Reader() = default;
267 : 12 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
268 : :
269 : : inline ::capnp::MessageSize totalSize() const {
270 : : return _reader.totalSize().asPublic();
271 : : }
272 : :
273 : : #if !CAPNP_LITE
274 : 12 : inline ::kj::StringTree toString() const {
275 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
276 : : }
277 : : #endif // !CAPNP_LITE
278 : :
279 : : private:
280 : : ::capnp::_::StructReader _reader;
281 : : template <typename, ::capnp::Kind>
282 : : friend struct ::capnp::ToDynamic_;
283 : : template <typename, ::capnp::Kind>
284 : : friend struct ::capnp::_::PointerHelpers;
285 : : template <typename, ::capnp::Kind>
286 : : friend struct ::capnp::List;
287 : : friend class ::capnp::MessageBuilder;
288 : : friend class ::capnp::Orphanage;
289 : : };
290 : :
291 : : class Echo::DestroyResults::Builder {
292 : : public:
293 : : typedef DestroyResults Builds;
294 : :
295 : : Builder() = delete; // Deleted to discourage incorrect usage.
296 : : // You can explicitly initialize to nullptr instead.
297 : : inline Builder(decltype(nullptr)) {}
298 : 6 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
299 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
300 : 6 : inline Reader asReader() const { return *this; }
301 : :
302 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
303 : : #if !CAPNP_LITE
304 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
305 : : #endif // !CAPNP_LITE
306 : :
307 : : private:
308 : : ::capnp::_::StructBuilder _builder;
309 : : template <typename, ::capnp::Kind>
310 : : friend struct ::capnp::ToDynamic_;
311 : : friend class ::capnp::Orphanage;
312 : : template <typename, ::capnp::Kind>
313 : : friend struct ::capnp::_::PointerHelpers;
314 : : };
315 : :
316 : : #if !CAPNP_LITE
317 [ - + ]: 12 : class Echo::DestroyResults::Pipeline {
318 : : public:
319 : : typedef DestroyResults Pipelines;
320 : :
321 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
322 : 6 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
323 : 6 : : _typeless(kj::mv(typeless)) {}
324 : :
325 : : private:
326 : : ::capnp::AnyPointer::Pipeline _typeless;
327 : : friend class ::capnp::PipelineHook;
328 : : template <typename, ::capnp::Kind>
329 : : friend struct ::capnp::ToDynamic_;
330 : : };
331 : : #endif // !CAPNP_LITE
332 : :
333 : : class Echo::EchoParams::Reader {
334 : : public:
335 : : typedef EchoParams Reads;
336 : :
337 : : Reader() = default;
338 : 30 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
339 : :
340 : : inline ::capnp::MessageSize totalSize() const {
341 : : return _reader.totalSize().asPublic();
342 : : }
343 : :
344 : : #if !CAPNP_LITE
345 : 12 : inline ::kj::StringTree toString() const {
346 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
347 : : }
348 : : #endif // !CAPNP_LITE
349 : :
350 : : inline bool hasContext() const;
351 : : inline ::mp::Context::Reader getContext() const;
352 : :
353 : : inline bool hasEcho() const;
354 : : inline ::capnp::Text::Reader getEcho() const;
355 : :
356 : : private:
357 : : ::capnp::_::StructReader _reader;
358 : : template <typename, ::capnp::Kind>
359 : : friend struct ::capnp::ToDynamic_;
360 : : template <typename, ::capnp::Kind>
361 : : friend struct ::capnp::_::PointerHelpers;
362 : : template <typename, ::capnp::Kind>
363 : : friend struct ::capnp::List;
364 : : friend class ::capnp::MessageBuilder;
365 : : friend class ::capnp::Orphanage;
366 : : };
367 : :
368 : : class Echo::EchoParams::Builder {
369 : : public:
370 : : typedef EchoParams Builds;
371 : :
372 : : Builder() = delete; // Deleted to discourage incorrect usage.
373 : : // You can explicitly initialize to nullptr instead.
374 : : inline Builder(decltype(nullptr)) {}
375 : 6 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
376 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
377 : 6 : inline Reader asReader() const { return *this; }
378 : :
379 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
380 : : #if !CAPNP_LITE
381 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
382 : : #endif // !CAPNP_LITE
383 : :
384 : : inline bool hasContext();
385 : : inline ::mp::Context::Builder getContext();
386 : : inline void setContext( ::mp::Context::Reader value);
387 : : inline ::mp::Context::Builder initContext();
388 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
389 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
390 : :
391 : : inline bool hasEcho();
392 : : inline ::capnp::Text::Builder getEcho();
393 : : inline void setEcho( ::capnp::Text::Reader value);
394 : : inline ::capnp::Text::Builder initEcho(unsigned int size);
395 : : inline void adoptEcho(::capnp::Orphan< ::capnp::Text>&& value);
396 : : inline ::capnp::Orphan< ::capnp::Text> disownEcho();
397 : :
398 : : private:
399 : : ::capnp::_::StructBuilder _builder;
400 : : template <typename, ::capnp::Kind>
401 : : friend struct ::capnp::ToDynamic_;
402 : : friend class ::capnp::Orphanage;
403 : : template <typename, ::capnp::Kind>
404 : : friend struct ::capnp::_::PointerHelpers;
405 : : };
406 : :
407 : : #if !CAPNP_LITE
408 : : class Echo::EchoParams::Pipeline {
409 : : public:
410 : : typedef EchoParams Pipelines;
411 : :
412 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
413 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
414 : : : _typeless(kj::mv(typeless)) {}
415 : :
416 : : inline ::mp::Context::Pipeline getContext();
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 Echo::EchoResults::Reader {
426 : : public:
427 : : typedef EchoResults Reads;
428 : :
429 : : Reader() = default;
430 : 12 : 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 : 12 : inline ::kj::StringTree toString() const {
438 [ + - ]: 12 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
439 : : }
440 : : #endif // !CAPNP_LITE
441 : :
442 : : inline bool hasResult() const;
443 : : inline ::capnp::Text::Reader getResult() const;
444 : :
445 : : private:
446 : : ::capnp::_::StructReader _reader;
447 : : template <typename, ::capnp::Kind>
448 : : friend struct ::capnp::ToDynamic_;
449 : : template <typename, ::capnp::Kind>
450 : : friend struct ::capnp::_::PointerHelpers;
451 : : template <typename, ::capnp::Kind>
452 : : friend struct ::capnp::List;
453 : : friend class ::capnp::MessageBuilder;
454 : : friend class ::capnp::Orphanage;
455 : : };
456 : :
457 : : class Echo::EchoResults::Builder {
458 : : public:
459 : : typedef EchoResults Builds;
460 : :
461 : : Builder() = delete; // Deleted to discourage incorrect usage.
462 : : // You can explicitly initialize to nullptr instead.
463 : : inline Builder(decltype(nullptr)) {}
464 : 18 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
465 : 6 : inline operator Reader() const { return Reader(_builder.asReader()); }
466 : 6 : inline Reader asReader() const { return *this; }
467 : :
468 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
469 : : #if !CAPNP_LITE
470 : 6 : inline ::kj::StringTree toString() const { return asReader().toString(); }
471 : : #endif // !CAPNP_LITE
472 : :
473 : : inline bool hasResult();
474 : : inline ::capnp::Text::Builder getResult();
475 : : inline void setResult( ::capnp::Text::Reader value);
476 : : inline ::capnp::Text::Builder initResult(unsigned int size);
477 : : inline void adoptResult(::capnp::Orphan< ::capnp::Text>&& value);
478 : : inline ::capnp::Orphan< ::capnp::Text> disownResult();
479 : :
480 : : private:
481 : : ::capnp::_::StructBuilder _builder;
482 : : template <typename, ::capnp::Kind>
483 : : friend struct ::capnp::ToDynamic_;
484 : : friend class ::capnp::Orphanage;
485 : : template <typename, ::capnp::Kind>
486 : : friend struct ::capnp::_::PointerHelpers;
487 : : };
488 : :
489 : : #if !CAPNP_LITE
490 [ - + ]: 12 : class Echo::EchoResults::Pipeline {
491 : : public:
492 : : typedef EchoResults Pipelines;
493 : :
494 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
495 : 6 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
496 : 6 : : _typeless(kj::mv(typeless)) {}
497 : :
498 : : private:
499 : : ::capnp::AnyPointer::Pipeline _typeless;
500 : : friend class ::capnp::PipelineHook;
501 : : template <typename, ::capnp::Kind>
502 : : friend struct ::capnp::ToDynamic_;
503 : : };
504 : : #endif // !CAPNP_LITE
505 : :
506 : : // =======================================================================================
507 : :
508 : : #if !CAPNP_LITE
509 : : inline Echo::Client::Client(decltype(nullptr))
510 : : : ::capnp::Capability::Client(nullptr) {}
511 : 6 : inline Echo::Client::Client(
512 : : ::kj::Own< ::capnp::ClientHook>&& hook)
513 [ + - ]: 6 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
514 : : template <typename _t, typename>
515 : 6 : inline Echo::Client::Client(::kj::Own<_t>&& server)
516 [ + - ]: 6 : : ::capnp::Capability::Client(::kj::mv(server)) {}
517 : : template <typename _t, typename>
518 : : inline Echo::Client::Client(::kj::Promise<_t>&& promise)
519 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
520 : : inline Echo::Client::Client(::kj::Exception&& exception)
521 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
522 : : inline ::ipc::capnp::messages::Echo::Client& Echo::Client::operator=(Client& other) {
523 : : ::capnp::Capability::Client::operator=(other);
524 : : return *this;
525 : : }
526 : : inline ::ipc::capnp::messages::Echo::Client& Echo::Client::operator=(Client&& other) {
527 : : ::capnp::Capability::Client::operator=(kj::mv(other));
528 : : return *this;
529 : : }
530 : :
531 : : #endif // !CAPNP_LITE
532 : : inline bool Echo::DestroyParams::Reader::hasContext() const {
533 : : return !_reader.getPointerField(
534 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
535 : : }
536 : : inline bool Echo::DestroyParams::Builder::hasContext() {
537 : : return !_builder.getPointerField(
538 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
539 : : }
540 : 12 : inline ::mp::Context::Reader Echo::DestroyParams::Reader::getContext() const {
541 [ + - ]: 24 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
542 : 12 : ::capnp::bounded<0>() * ::capnp::POINTERS));
543 : : }
544 : : inline ::mp::Context::Builder Echo::DestroyParams::Builder::getContext() {
545 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
546 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
547 : : }
548 : : #if !CAPNP_LITE
549 : : inline ::mp::Context::Pipeline Echo::DestroyParams::Pipeline::getContext() {
550 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
551 : : }
552 : : #endif // !CAPNP_LITE
553 : : inline void Echo::DestroyParams::Builder::setContext( ::mp::Context::Reader value) {
554 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
555 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
556 : : }
557 : 6 : inline ::mp::Context::Builder Echo::DestroyParams::Builder::initContext() {
558 : 6 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
559 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS));
560 : : }
561 : : inline void Echo::DestroyParams::Builder::adoptContext(
562 : : ::capnp::Orphan< ::mp::Context>&& value) {
563 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
564 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
565 : : }
566 : : inline ::capnp::Orphan< ::mp::Context> Echo::DestroyParams::Builder::disownContext() {
567 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
568 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
569 : : }
570 : :
571 : : inline bool Echo::EchoParams::Reader::hasContext() const {
572 : : return !_reader.getPointerField(
573 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
574 : : }
575 : : inline bool Echo::EchoParams::Builder::hasContext() {
576 : : return !_builder.getPointerField(
577 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
578 : : }
579 : 12 : inline ::mp::Context::Reader Echo::EchoParams::Reader::getContext() const {
580 [ + - ]: 24 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
581 : 12 : ::capnp::bounded<0>() * ::capnp::POINTERS));
582 : : }
583 : : inline ::mp::Context::Builder Echo::EchoParams::Builder::getContext() {
584 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
585 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
586 : : }
587 : : #if !CAPNP_LITE
588 : : inline ::mp::Context::Pipeline Echo::EchoParams::Pipeline::getContext() {
589 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
590 : : }
591 : : #endif // !CAPNP_LITE
592 : : inline void Echo::EchoParams::Builder::setContext( ::mp::Context::Reader value) {
593 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
594 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
595 : : }
596 : 6 : inline ::mp::Context::Builder Echo::EchoParams::Builder::initContext() {
597 : 6 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
598 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS));
599 : : }
600 : : inline void Echo::EchoParams::Builder::adoptContext(
601 : : ::capnp::Orphan< ::mp::Context>&& value) {
602 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
603 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
604 : : }
605 : : inline ::capnp::Orphan< ::mp::Context> Echo::EchoParams::Builder::disownContext() {
606 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
607 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
608 : : }
609 : :
610 : : inline bool Echo::EchoParams::Reader::hasEcho() const {
611 : : return !_reader.getPointerField(
612 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
613 : : }
614 : : inline bool Echo::EchoParams::Builder::hasEcho() {
615 : : return !_builder.getPointerField(
616 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
617 : : }
618 : 6 : inline ::capnp::Text::Reader Echo::EchoParams::Reader::getEcho() const {
619 [ + - ]: 12 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
620 : 6 : ::capnp::bounded<1>() * ::capnp::POINTERS));
621 : : }
622 : : inline ::capnp::Text::Builder Echo::EchoParams::Builder::getEcho() {
623 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
624 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
625 : : }
626 : : inline void Echo::EchoParams::Builder::setEcho( ::capnp::Text::Reader value) {
627 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
628 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
629 : : }
630 : 6 : inline ::capnp::Text::Builder Echo::EchoParams::Builder::initEcho(unsigned int size) {
631 : 6 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
632 : 6 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
633 : : }
634 : : inline void Echo::EchoParams::Builder::adoptEcho(
635 : : ::capnp::Orphan< ::capnp::Text>&& value) {
636 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
637 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
638 : : }
639 : : inline ::capnp::Orphan< ::capnp::Text> Echo::EchoParams::Builder::disownEcho() {
640 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
641 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
642 : : }
643 : :
644 : : inline bool Echo::EchoResults::Reader::hasResult() const {
645 : : return !_reader.getPointerField(
646 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
647 : : }
648 : : inline bool Echo::EchoResults::Builder::hasResult() {
649 : : return !_builder.getPointerField(
650 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
651 : : }
652 : 6 : inline ::capnp::Text::Reader Echo::EchoResults::Reader::getResult() const {
653 [ + - ]: 12 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
654 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS));
655 : : }
656 : : inline ::capnp::Text::Builder Echo::EchoResults::Builder::getResult() {
657 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
658 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
659 : : }
660 : : inline void Echo::EchoResults::Builder::setResult( ::capnp::Text::Reader value) {
661 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
662 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
663 : : }
664 : 6 : inline ::capnp::Text::Builder Echo::EchoResults::Builder::initResult(unsigned int size) {
665 : 6 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
666 : 6 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
667 : : }
668 : : inline void Echo::EchoResults::Builder::adoptResult(
669 : : ::capnp::Orphan< ::capnp::Text>&& value) {
670 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
671 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
672 : : }
673 : : inline ::capnp::Orphan< ::capnp::Text> Echo::EchoResults::Builder::disownResult() {
674 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
675 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
676 : : }
677 : :
678 : : } // namespace
679 : : } // namespace
680 : : } // namespace
681 : :
682 : : CAPNP_END_HEADER
683 : :
|