Branch data Line data Source code
1 : : // Generated by Cap'n Proto compiler, DO NOT EDIT
2 : : // source: rpc.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(acb1d37f0a713129);
26 : : CAPNP_DECLARE_SCHEMA(94dcbf9f62fea914);
27 : : CAPNP_DECLARE_SCHEMA(a09ae0e7ef3d34d5);
28 : :
29 : : } // namespace schemas
30 : : } // namespace capnp
31 : :
32 : : namespace ipc {
33 : : namespace capnp {
34 : : namespace messages {
35 : :
36 : : struct Rpc {
37 : : Rpc() = delete;
38 : :
39 : : #if !CAPNP_LITE
40 : : class Client;
41 : : class Server;
42 : : #endif // !CAPNP_LITE
43 : :
44 : : struct ExecuteRpcParams;
45 : : struct ExecuteRpcResults;
46 : :
47 : : #if !CAPNP_LITE
48 : : struct _capnpPrivate {
49 : : CAPNP_DECLARE_INTERFACE_HEADER(acb1d37f0a713129)
50 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
51 : : };
52 : : #endif // !CAPNP_LITE
53 : : };
54 : :
55 : : struct Rpc::ExecuteRpcParams {
56 : : ExecuteRpcParams() = delete;
57 : :
58 : : class Reader;
59 : : class Builder;
60 : : class Pipeline;
61 : :
62 : : struct _capnpPrivate {
63 : : CAPNP_DECLARE_STRUCT_HEADER(94dcbf9f62fea914, 0, 4)
64 : : #if !CAPNP_LITE
65 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
66 : : #endif // !CAPNP_LITE
67 : : };
68 : : };
69 : :
70 : : struct Rpc::ExecuteRpcResults {
71 : : ExecuteRpcResults() = delete;
72 : :
73 : : class Reader;
74 : : class Builder;
75 : : class Pipeline;
76 : :
77 : : struct _capnpPrivate {
78 : : CAPNP_DECLARE_STRUCT_HEADER(a09ae0e7ef3d34d5, 0, 1)
79 : : #if !CAPNP_LITE
80 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
81 : : #endif // !CAPNP_LITE
82 : : };
83 : : };
84 : :
85 : : // =======================================================================================
86 : :
87 : : #if !CAPNP_LITE
88 [ + - + - : 36 : class Rpc::Client
- + + - +
- ]
[ - + + - ]
89 : : : public virtual ::capnp::Capability::Client {
90 : : public:
91 : : typedef Rpc Calls;
92 : : typedef Rpc Reads;
93 : :
94 : : Client(decltype(nullptr));
95 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
96 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
97 : : Client(::kj::Own<_t>&& server);
98 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
99 : : Client(::kj::Promise<_t>&& promise);
100 : : Client(::kj::Exception&& exception);
101 : : Client(Client&) = default;
102 [ + - + - ]: 20 : Client(Client&&) = default;
103 : : Client& operator=(Client& other);
104 : : Client& operator=(Client&& other);
105 : :
106 : : ::capnp::Request< ::ipc::capnp::messages::Rpc::ExecuteRpcParams, ::ipc::capnp::messages::Rpc::ExecuteRpcResults> executeRpcRequest(
107 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
108 : :
109 : : protected:
110 : : Client() = default;
111 : : };
112 : :
113 : : class Rpc::Server
114 : : : public virtual ::capnp::Capability::Server {
115 : : public:
116 : : typedef Rpc Serves;
117 : :
118 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
119 : : uint64_t interfaceId, uint16_t methodId,
120 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
121 : : override;
122 : :
123 : : protected:
124 : : typedef ::ipc::capnp::messages::Rpc::ExecuteRpcParams ExecuteRpcParams;
125 : : typedef ::ipc::capnp::messages::Rpc::ExecuteRpcResults ExecuteRpcResults;
126 : : typedef ::capnp::CallContext<ExecuteRpcParams, ExecuteRpcResults> ExecuteRpcContext;
127 : : virtual ::kj::Promise<void> executeRpc(ExecuteRpcContext context);
128 : :
129 : 4 : inline ::ipc::capnp::messages::Rpc::Client thisCap() {
130 : 4 : return ::capnp::Capability::Server::thisCap()
131 [ + - + - ]: 4 : .template castAs< ::ipc::capnp::messages::Rpc>();
132 : 0 : }
133 : :
134 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
135 : : uint16_t methodId,
136 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
137 : : };
138 : : #endif // !CAPNP_LITE
139 : :
140 : : class Rpc::ExecuteRpcParams::Reader {
141 : : public:
142 : : typedef ExecuteRpcParams Reads;
143 : :
144 : : Reader() = default;
145 : 24 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
146 : :
147 : : inline ::capnp::MessageSize totalSize() const {
148 : : return _reader.totalSize().asPublic();
149 : : }
150 : :
151 : : #if !CAPNP_LITE
152 : 4 : inline ::kj::StringTree toString() const {
153 [ + - ]: 4 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
154 : : }
155 : : #endif // !CAPNP_LITE
156 : :
157 : : inline bool hasContext() const;
158 : : inline ::mp::Context::Reader getContext() const;
159 : :
160 : : inline bool hasRequest() const;
161 : : inline ::capnp::Text::Reader getRequest() const;
162 : :
163 : : inline bool hasUri() const;
164 : : inline ::capnp::Text::Reader getUri() const;
165 : :
166 : : inline bool hasUser() const;
167 : : inline ::capnp::Text::Reader getUser() const;
168 : :
169 : : private:
170 : : ::capnp::_::StructReader _reader;
171 : : template <typename, ::capnp::Kind>
172 : : friend struct ::capnp::ToDynamic_;
173 : : template <typename, ::capnp::Kind>
174 : : friend struct ::capnp::_::PointerHelpers;
175 : : template <typename, ::capnp::Kind>
176 : : friend struct ::capnp::List;
177 : : friend class ::capnp::MessageBuilder;
178 : : friend class ::capnp::Orphanage;
179 : : };
180 : :
181 : : class Rpc::ExecuteRpcParams::Builder {
182 : : public:
183 : : typedef ExecuteRpcParams Builds;
184 : :
185 : : Builder() = delete; // Deleted to discourage incorrect usage.
186 : : // You can explicitly initialize to nullptr instead.
187 : : inline Builder(decltype(nullptr)) {}
188 : 4 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
189 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
190 : 0 : inline Reader asReader() const { return *this; }
191 : :
192 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
193 : : #if !CAPNP_LITE
194 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
195 : : #endif // !CAPNP_LITE
196 : :
197 : : inline bool hasContext();
198 : : inline ::mp::Context::Builder getContext();
199 : : inline void setContext( ::mp::Context::Reader value);
200 : : inline ::mp::Context::Builder initContext();
201 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
202 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
203 : :
204 : : inline bool hasRequest();
205 : : inline ::capnp::Text::Builder getRequest();
206 : : inline void setRequest( ::capnp::Text::Reader value);
207 : : inline ::capnp::Text::Builder initRequest(unsigned int size);
208 : : inline void adoptRequest(::capnp::Orphan< ::capnp::Text>&& value);
209 : : inline ::capnp::Orphan< ::capnp::Text> disownRequest();
210 : :
211 : : inline bool hasUri();
212 : : inline ::capnp::Text::Builder getUri();
213 : : inline void setUri( ::capnp::Text::Reader value);
214 : : inline ::capnp::Text::Builder initUri(unsigned int size);
215 : : inline void adoptUri(::capnp::Orphan< ::capnp::Text>&& value);
216 : : inline ::capnp::Orphan< ::capnp::Text> disownUri();
217 : :
218 : : inline bool hasUser();
219 : : inline ::capnp::Text::Builder getUser();
220 : : inline void setUser( ::capnp::Text::Reader value);
221 : : inline ::capnp::Text::Builder initUser(unsigned int size);
222 : : inline void adoptUser(::capnp::Orphan< ::capnp::Text>&& value);
223 : : inline ::capnp::Orphan< ::capnp::Text> disownUser();
224 : :
225 : : private:
226 : : ::capnp::_::StructBuilder _builder;
227 : : template <typename, ::capnp::Kind>
228 : : friend struct ::capnp::ToDynamic_;
229 : : friend class ::capnp::Orphanage;
230 : : template <typename, ::capnp::Kind>
231 : : friend struct ::capnp::_::PointerHelpers;
232 : : };
233 : :
234 : : #if !CAPNP_LITE
235 : : class Rpc::ExecuteRpcParams::Pipeline {
236 : : public:
237 : : typedef ExecuteRpcParams Pipelines;
238 : :
239 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
240 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
241 : : : _typeless(kj::mv(typeless)) {}
242 : :
243 : : inline ::mp::Context::Pipeline getContext();
244 : : private:
245 : : ::capnp::AnyPointer::Pipeline _typeless;
246 : : friend class ::capnp::PipelineHook;
247 : : template <typename, ::capnp::Kind>
248 : : friend struct ::capnp::ToDynamic_;
249 : : };
250 : : #endif // !CAPNP_LITE
251 : :
252 : : class Rpc::ExecuteRpcResults::Reader {
253 : : public:
254 : : typedef ExecuteRpcResults Reads;
255 : :
256 : : Reader() = default;
257 : 8 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
258 : :
259 : : inline ::capnp::MessageSize totalSize() const {
260 : : return _reader.totalSize().asPublic();
261 : : }
262 : :
263 : : #if !CAPNP_LITE
264 : 4 : inline ::kj::StringTree toString() const {
265 [ # # ]: 4 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
266 : : }
267 : : #endif // !CAPNP_LITE
268 : :
269 : : inline bool hasResult() const;
270 : : inline ::capnp::Text::Reader getResult() const;
271 : :
272 : : private:
273 : : ::capnp::_::StructReader _reader;
274 : : template <typename, ::capnp::Kind>
275 : : friend struct ::capnp::ToDynamic_;
276 : : template <typename, ::capnp::Kind>
277 : : friend struct ::capnp::_::PointerHelpers;
278 : : template <typename, ::capnp::Kind>
279 : : friend struct ::capnp::List;
280 : : friend class ::capnp::MessageBuilder;
281 : : friend class ::capnp::Orphanage;
282 : : };
283 : :
284 : : class Rpc::ExecuteRpcResults::Builder {
285 : : public:
286 : : typedef ExecuteRpcResults Builds;
287 : :
288 : : Builder() = delete; // Deleted to discourage incorrect usage.
289 : : // You can explicitly initialize to nullptr instead.
290 : : inline Builder(decltype(nullptr)) {}
291 : 20 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
292 : 4 : inline operator Reader() const { return Reader(_builder.asReader()); }
293 : 4 : inline Reader asReader() const { return *this; }
294 : :
295 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
296 : : #if !CAPNP_LITE
297 : 4 : inline ::kj::StringTree toString() const { return asReader().toString(); }
298 : : #endif // !CAPNP_LITE
299 : :
300 : : inline bool hasResult();
301 : : inline ::capnp::Text::Builder getResult();
302 : : inline void setResult( ::capnp::Text::Reader value);
303 : : inline ::capnp::Text::Builder initResult(unsigned int size);
304 : : inline void adoptResult(::capnp::Orphan< ::capnp::Text>&& value);
305 : : inline ::capnp::Orphan< ::capnp::Text> disownResult();
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 [ - + ]: 8 : class Rpc::ExecuteRpcResults::Pipeline {
318 : : public:
319 : : typedef ExecuteRpcResults Pipelines;
320 : :
321 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
322 : 4 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
323 : 4 : : _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 : : // =======================================================================================
334 : :
335 : : #if !CAPNP_LITE
336 : : inline Rpc::Client::Client(decltype(nullptr))
337 : : : ::capnp::Capability::Client(nullptr) {}
338 : 8 : inline Rpc::Client::Client(
339 : : ::kj::Own< ::capnp::ClientHook>&& hook)
340 [ + - ]: 8 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
341 : : template <typename _t, typename>
342 : 4 : inline Rpc::Client::Client(::kj::Own<_t>&& server)
343 [ + - ]: 4 : : ::capnp::Capability::Client(::kj::mv(server)) {}
344 : : template <typename _t, typename>
345 : : inline Rpc::Client::Client(::kj::Promise<_t>&& promise)
346 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
347 : : inline Rpc::Client::Client(::kj::Exception&& exception)
348 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
349 : : inline ::ipc::capnp::messages::Rpc::Client& Rpc::Client::operator=(Client& other) {
350 : : ::capnp::Capability::Client::operator=(other);
351 : : return *this;
352 : : }
353 : : inline ::ipc::capnp::messages::Rpc::Client& Rpc::Client::operator=(Client&& other) {
354 : : ::capnp::Capability::Client::operator=(kj::mv(other));
355 : : return *this;
356 : : }
357 : :
358 : : #endif // !CAPNP_LITE
359 : : inline bool Rpc::ExecuteRpcParams::Reader::hasContext() const {
360 : : return !_reader.getPointerField(
361 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
362 : : }
363 : : inline bool Rpc::ExecuteRpcParams::Builder::hasContext() {
364 : : return !_builder.getPointerField(
365 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
366 : : }
367 : 8 : inline ::mp::Context::Reader Rpc::ExecuteRpcParams::Reader::getContext() const {
368 [ + - ]: 16 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
369 : 8 : ::capnp::bounded<0>() * ::capnp::POINTERS));
370 : : }
371 : : inline ::mp::Context::Builder Rpc::ExecuteRpcParams::Builder::getContext() {
372 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
373 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
374 : : }
375 : : #if !CAPNP_LITE
376 : : inline ::mp::Context::Pipeline Rpc::ExecuteRpcParams::Pipeline::getContext() {
377 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
378 : : }
379 : : #endif // !CAPNP_LITE
380 : : inline void Rpc::ExecuteRpcParams::Builder::setContext( ::mp::Context::Reader value) {
381 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
382 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
383 : : }
384 : 4 : inline ::mp::Context::Builder Rpc::ExecuteRpcParams::Builder::initContext() {
385 : 4 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
386 : 4 : ::capnp::bounded<0>() * ::capnp::POINTERS));
387 : : }
388 : : inline void Rpc::ExecuteRpcParams::Builder::adoptContext(
389 : : ::capnp::Orphan< ::mp::Context>&& value) {
390 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
391 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
392 : : }
393 : : inline ::capnp::Orphan< ::mp::Context> Rpc::ExecuteRpcParams::Builder::disownContext() {
394 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
395 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
396 : : }
397 : :
398 : : inline bool Rpc::ExecuteRpcParams::Reader::hasRequest() const {
399 : : return !_reader.getPointerField(
400 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
401 : : }
402 : : inline bool Rpc::ExecuteRpcParams::Builder::hasRequest() {
403 : : return !_builder.getPointerField(
404 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
405 : : }
406 : 4 : inline ::capnp::Text::Reader Rpc::ExecuteRpcParams::Reader::getRequest() const {
407 [ + - ]: 8 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
408 : 4 : ::capnp::bounded<1>() * ::capnp::POINTERS));
409 : : }
410 : : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::getRequest() {
411 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
412 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
413 : : }
414 : : inline void Rpc::ExecuteRpcParams::Builder::setRequest( ::capnp::Text::Reader value) {
415 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
416 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
417 : : }
418 : 4 : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::initRequest(unsigned int size) {
419 : 4 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
420 : 4 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
421 : : }
422 : : inline void Rpc::ExecuteRpcParams::Builder::adoptRequest(
423 : : ::capnp::Orphan< ::capnp::Text>&& value) {
424 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
425 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
426 : : }
427 : : inline ::capnp::Orphan< ::capnp::Text> Rpc::ExecuteRpcParams::Builder::disownRequest() {
428 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
429 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
430 : : }
431 : :
432 : : inline bool Rpc::ExecuteRpcParams::Reader::hasUri() const {
433 : : return !_reader.getPointerField(
434 : : ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
435 : : }
436 : : inline bool Rpc::ExecuteRpcParams::Builder::hasUri() {
437 : : return !_builder.getPointerField(
438 : : ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
439 : : }
440 : 4 : inline ::capnp::Text::Reader Rpc::ExecuteRpcParams::Reader::getUri() const {
441 [ + - ]: 8 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
442 : 4 : ::capnp::bounded<2>() * ::capnp::POINTERS));
443 : : }
444 : : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::getUri() {
445 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
446 : : ::capnp::bounded<2>() * ::capnp::POINTERS));
447 : : }
448 : : inline void Rpc::ExecuteRpcParams::Builder::setUri( ::capnp::Text::Reader value) {
449 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
450 : : ::capnp::bounded<2>() * ::capnp::POINTERS), value);
451 : : }
452 : 4 : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::initUri(unsigned int size) {
453 : 4 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
454 : 4 : ::capnp::bounded<2>() * ::capnp::POINTERS), size);
455 : : }
456 : : inline void Rpc::ExecuteRpcParams::Builder::adoptUri(
457 : : ::capnp::Orphan< ::capnp::Text>&& value) {
458 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
459 : : ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value));
460 : : }
461 : : inline ::capnp::Orphan< ::capnp::Text> Rpc::ExecuteRpcParams::Builder::disownUri() {
462 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
463 : : ::capnp::bounded<2>() * ::capnp::POINTERS));
464 : : }
465 : :
466 : : inline bool Rpc::ExecuteRpcParams::Reader::hasUser() const {
467 : : return !_reader.getPointerField(
468 : : ::capnp::bounded<3>() * ::capnp::POINTERS).isNull();
469 : : }
470 : : inline bool Rpc::ExecuteRpcParams::Builder::hasUser() {
471 : : return !_builder.getPointerField(
472 : : ::capnp::bounded<3>() * ::capnp::POINTERS).isNull();
473 : : }
474 : 4 : inline ::capnp::Text::Reader Rpc::ExecuteRpcParams::Reader::getUser() const {
475 [ + - ]: 8 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
476 : 4 : ::capnp::bounded<3>() * ::capnp::POINTERS));
477 : : }
478 : : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::getUser() {
479 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
480 : : ::capnp::bounded<3>() * ::capnp::POINTERS));
481 : : }
482 : : inline void Rpc::ExecuteRpcParams::Builder::setUser( ::capnp::Text::Reader value) {
483 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
484 : : ::capnp::bounded<3>() * ::capnp::POINTERS), value);
485 : : }
486 : 4 : inline ::capnp::Text::Builder Rpc::ExecuteRpcParams::Builder::initUser(unsigned int size) {
487 : 4 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
488 : 4 : ::capnp::bounded<3>() * ::capnp::POINTERS), size);
489 : : }
490 : : inline void Rpc::ExecuteRpcParams::Builder::adoptUser(
491 : : ::capnp::Orphan< ::capnp::Text>&& value) {
492 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
493 : : ::capnp::bounded<3>() * ::capnp::POINTERS), kj::mv(value));
494 : : }
495 : : inline ::capnp::Orphan< ::capnp::Text> Rpc::ExecuteRpcParams::Builder::disownUser() {
496 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
497 : : ::capnp::bounded<3>() * ::capnp::POINTERS));
498 : : }
499 : :
500 : : inline bool Rpc::ExecuteRpcResults::Reader::hasResult() const {
501 : : return !_reader.getPointerField(
502 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
503 : : }
504 : : inline bool Rpc::ExecuteRpcResults::Builder::hasResult() {
505 : : return !_builder.getPointerField(
506 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
507 : : }
508 : 4 : inline ::capnp::Text::Reader Rpc::ExecuteRpcResults::Reader::getResult() const {
509 [ + - ]: 8 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
510 : 4 : ::capnp::bounded<0>() * ::capnp::POINTERS));
511 : : }
512 : : inline ::capnp::Text::Builder Rpc::ExecuteRpcResults::Builder::getResult() {
513 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
514 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
515 : : }
516 : : inline void Rpc::ExecuteRpcResults::Builder::setResult( ::capnp::Text::Reader value) {
517 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
518 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
519 : : }
520 : 4 : inline ::capnp::Text::Builder Rpc::ExecuteRpcResults::Builder::initResult(unsigned int size) {
521 : 4 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
522 : 4 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
523 : : }
524 : : inline void Rpc::ExecuteRpcResults::Builder::adoptResult(
525 : : ::capnp::Orphan< ::capnp::Text>&& value) {
526 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
527 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
528 : : }
529 : : inline ::capnp::Orphan< ::capnp::Text> Rpc::ExecuteRpcResults::Builder::disownResult() {
530 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
531 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
532 : : }
533 : :
534 : : } // namespace
535 : : } // namespace
536 : : } // namespace
537 : :
538 : : CAPNP_END_HEADER
539 : :
|