1 /**
2 * Autogenerated by Thrift for src/module.thrift
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated @nocommit
6 */
7 #pragma once
8
9 #include <thrift/lib/cpp2/gen/module_types_h.h>
10
11
12
13 namespace apache {
14 namespace thrift {
15 namespace tag {
16 struct content;
17 struct content;
18 struct content;
19 struct sink;
20 struct reason;
21 struct reason;
22 struct reason;
23 } // namespace tag
24 namespace detail {
25 #ifndef APACHE_THRIFT_ACCESSOR_content
26 #define APACHE_THRIFT_ACCESSOR_content
27 APACHE_THRIFT_DEFINE_ACCESSOR(content);
28 #endif
29 #ifndef APACHE_THRIFT_ACCESSOR_content
30 #define APACHE_THRIFT_ACCESSOR_content
31 APACHE_THRIFT_DEFINE_ACCESSOR(content);
32 #endif
33 #ifndef APACHE_THRIFT_ACCESSOR_content
34 #define APACHE_THRIFT_ACCESSOR_content
35 APACHE_THRIFT_DEFINE_ACCESSOR(content);
36 #endif
37 #ifndef APACHE_THRIFT_ACCESSOR_sink
38 #define APACHE_THRIFT_ACCESSOR_sink
39 APACHE_THRIFT_DEFINE_ACCESSOR(sink);
40 #endif
41 #ifndef APACHE_THRIFT_ACCESSOR_reason
42 #define APACHE_THRIFT_ACCESSOR_reason
43 APACHE_THRIFT_DEFINE_ACCESSOR(reason);
44 #endif
45 #ifndef APACHE_THRIFT_ACCESSOR_reason
46 #define APACHE_THRIFT_ACCESSOR_reason
47 APACHE_THRIFT_DEFINE_ACCESSOR(reason);
48 #endif
49 #ifndef APACHE_THRIFT_ACCESSOR_reason
50 #define APACHE_THRIFT_ACCESSOR_reason
51 APACHE_THRIFT_DEFINE_ACCESSOR(reason);
52 #endif
53 } // namespace detail
54 } // namespace thrift
55 } // namespace apache
56
57 // BEGIN declare_enums
58
59 // END declare_enums
60 // BEGIN forward_declare
61 namespace cpp2 {
62 class InitialResponse;
63 class FinalResponse;
64 class SinkPayload;
65 class CompatibleWithKeywordSink;
66 class InitialException;
67 class SinkException1;
68 class SinkException2;
69 } // cpp2
70 // END forward_declare
71 // BEGIN typedefs
72
73 // END typedefs
74 // BEGIN hash_and_equal_to
75 // END hash_and_equal_to
76 namespace cpp2 {
77 using ::apache::thrift::detail::operator!=;
78 using ::apache::thrift::detail::operator>;
79 using ::apache::thrift::detail::operator<=;
80 using ::apache::thrift::detail::operator>=;
81 } // cpp2
82 namespace cpp2 {
83 class InitialResponse final {
84 private:
85 friend struct ::apache::thrift::detail::st::struct_private_access;
86
87 // used by a static_assert in the corresponding source
88 static constexpr bool __fbthrift_cpp2_gen_json = false;
89 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
90 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
91
92 void __fbthrift_clear();
93
94 public:
95 using __fbthrift_cpp2_type = InitialResponse;
96 static constexpr bool __fbthrift_cpp2_is_union =
97 false;
98
99
100 public:
101
InitialResponse()102 InitialResponse() {
103 }
104 // FragileConstructor for use in initialization lists only.
105 [[deprecated("This constructor is deprecated")]]
106 InitialResponse(apache::thrift::FragileConstructor, ::std::string content__arg);
107
108 InitialResponse(InitialResponse&&) noexcept;
109
110 InitialResponse(const InitialResponse& src);
111
112
113 InitialResponse& operator=(InitialResponse&&) noexcept;
114 InitialResponse& operator=(const InitialResponse& src);
115 private:
116 ::std::string __fbthrift_field_content;
117 private:
118 apache::thrift::detail::isset_bitset<1, false> __isset;
119
120 public:
121
122 bool operator==(const InitialResponse&) const;
123 bool operator<(const InitialResponse&) const;
124
125 template <typename..., typename T = ::std::string>
content_ref()126 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content_ref() const& {
127 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
128 }
129
130 template <typename..., typename T = ::std::string>
content_ref()131 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content_ref() const&& {
132 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
133 }
134
135 template <typename..., typename T = ::std::string>
content_ref()136 FOLLY_ERASE ::apache::thrift::field_ref<T&> content_ref() & {
137 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
138 }
139
140 template <typename..., typename T = ::std::string>
content_ref()141 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content_ref() && {
142 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
143 }
144
145 template <typename..., typename T = ::std::string>
content()146 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content() const& {
147 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
148 }
149
150 template <typename..., typename T = ::std::string>
content()151 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content() const&& {
152 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
153 }
154
155 template <typename..., typename T = ::std::string>
content()156 FOLLY_ERASE ::apache::thrift::field_ref<T&> content() & {
157 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
158 }
159
160 template <typename..., typename T = ::std::string>
content()161 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content() && {
162 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
163 }
164
get_content()165 const ::std::string& get_content() const& {
166 return __fbthrift_field_content;
167 }
168
get_content()169 ::std::string get_content() && {
170 return std::move(__fbthrift_field_content);
171 }
172
173 template <typename T_InitialResponse_content_struct_setter = ::std::string>
174 [[deprecated("Use `FOO.content_ref() = BAR;` instead of `FOO.set_content(BAR);`")]]
set_content(T_InitialResponse_content_struct_setter && content_)175 ::std::string& set_content(T_InitialResponse_content_struct_setter&& content_) {
176 content_ref() = std::forward<T_InitialResponse_content_struct_setter>(content_);
177 return __fbthrift_field_content;
178 }
179
180 template <class Protocol_>
181 uint32_t read(Protocol_* iprot);
182 template <class Protocol_>
183 uint32_t serializedSize(Protocol_ const* prot_) const;
184 template <class Protocol_>
185 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
186 template <class Protocol_>
187 uint32_t write(Protocol_* prot_) const;
188
189 private:
190 template <class Protocol_>
191 void readNoXfer(Protocol_* iprot);
192
193 friend class ::apache::thrift::Cpp2Ops<InitialResponse>;
194 friend void swap(InitialResponse& a, InitialResponse& b);
195 };
196
197 template <class Protocol_>
read(Protocol_ * iprot)198 uint32_t InitialResponse::read(Protocol_* iprot) {
199 auto _xferStart = iprot->getCursorPosition();
200 readNoXfer(iprot);
201 return iprot->getCursorPosition() - _xferStart;
202 }
203
204 } // cpp2
205 namespace cpp2 {
206 class FinalResponse final {
207 private:
208 friend struct ::apache::thrift::detail::st::struct_private_access;
209
210 // used by a static_assert in the corresponding source
211 static constexpr bool __fbthrift_cpp2_gen_json = false;
212 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
213 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
214
215 void __fbthrift_clear();
216
217 public:
218 using __fbthrift_cpp2_type = FinalResponse;
219 static constexpr bool __fbthrift_cpp2_is_union =
220 false;
221
222
223 public:
224
FinalResponse()225 FinalResponse() {
226 }
227 // FragileConstructor for use in initialization lists only.
228 [[deprecated("This constructor is deprecated")]]
229 FinalResponse(apache::thrift::FragileConstructor, ::std::string content__arg);
230
231 FinalResponse(FinalResponse&&) noexcept;
232
233 FinalResponse(const FinalResponse& src);
234
235
236 FinalResponse& operator=(FinalResponse&&) noexcept;
237 FinalResponse& operator=(const FinalResponse& src);
238 private:
239 ::std::string __fbthrift_field_content;
240 private:
241 apache::thrift::detail::isset_bitset<1, false> __isset;
242
243 public:
244
245 bool operator==(const FinalResponse&) const;
246 bool operator<(const FinalResponse&) const;
247
248 template <typename..., typename T = ::std::string>
content_ref()249 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content_ref() const& {
250 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
251 }
252
253 template <typename..., typename T = ::std::string>
content_ref()254 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content_ref() const&& {
255 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
256 }
257
258 template <typename..., typename T = ::std::string>
content_ref()259 FOLLY_ERASE ::apache::thrift::field_ref<T&> content_ref() & {
260 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
261 }
262
263 template <typename..., typename T = ::std::string>
content_ref()264 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content_ref() && {
265 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
266 }
267
268 template <typename..., typename T = ::std::string>
content()269 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content() const& {
270 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
271 }
272
273 template <typename..., typename T = ::std::string>
content()274 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content() const&& {
275 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
276 }
277
278 template <typename..., typename T = ::std::string>
content()279 FOLLY_ERASE ::apache::thrift::field_ref<T&> content() & {
280 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
281 }
282
283 template <typename..., typename T = ::std::string>
content()284 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content() && {
285 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
286 }
287
get_content()288 const ::std::string& get_content() const& {
289 return __fbthrift_field_content;
290 }
291
get_content()292 ::std::string get_content() && {
293 return std::move(__fbthrift_field_content);
294 }
295
296 template <typename T_FinalResponse_content_struct_setter = ::std::string>
297 [[deprecated("Use `FOO.content_ref() = BAR;` instead of `FOO.set_content(BAR);`")]]
set_content(T_FinalResponse_content_struct_setter && content_)298 ::std::string& set_content(T_FinalResponse_content_struct_setter&& content_) {
299 content_ref() = std::forward<T_FinalResponse_content_struct_setter>(content_);
300 return __fbthrift_field_content;
301 }
302
303 template <class Protocol_>
304 uint32_t read(Protocol_* iprot);
305 template <class Protocol_>
306 uint32_t serializedSize(Protocol_ const* prot_) const;
307 template <class Protocol_>
308 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
309 template <class Protocol_>
310 uint32_t write(Protocol_* prot_) const;
311
312 private:
313 template <class Protocol_>
314 void readNoXfer(Protocol_* iprot);
315
316 friend class ::apache::thrift::Cpp2Ops<FinalResponse>;
317 friend void swap(FinalResponse& a, FinalResponse& b);
318 };
319
320 template <class Protocol_>
read(Protocol_ * iprot)321 uint32_t FinalResponse::read(Protocol_* iprot) {
322 auto _xferStart = iprot->getCursorPosition();
323 readNoXfer(iprot);
324 return iprot->getCursorPosition() - _xferStart;
325 }
326
327 } // cpp2
328 namespace cpp2 {
329 class SinkPayload final {
330 private:
331 friend struct ::apache::thrift::detail::st::struct_private_access;
332
333 // used by a static_assert in the corresponding source
334 static constexpr bool __fbthrift_cpp2_gen_json = false;
335 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
336 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
337
338 void __fbthrift_clear();
339
340 public:
341 using __fbthrift_cpp2_type = SinkPayload;
342 static constexpr bool __fbthrift_cpp2_is_union =
343 false;
344
345
346 public:
347
SinkPayload()348 SinkPayload() {
349 }
350 // FragileConstructor for use in initialization lists only.
351 [[deprecated("This constructor is deprecated")]]
352 SinkPayload(apache::thrift::FragileConstructor, ::std::string content__arg);
353
354 SinkPayload(SinkPayload&&) noexcept;
355
356 SinkPayload(const SinkPayload& src);
357
358
359 SinkPayload& operator=(SinkPayload&&) noexcept;
360 SinkPayload& operator=(const SinkPayload& src);
361 private:
362 ::std::string __fbthrift_field_content;
363 private:
364 apache::thrift::detail::isset_bitset<1, false> __isset;
365
366 public:
367
368 bool operator==(const SinkPayload&) const;
369 bool operator<(const SinkPayload&) const;
370
371 template <typename..., typename T = ::std::string>
content_ref()372 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content_ref() const& {
373 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
374 }
375
376 template <typename..., typename T = ::std::string>
content_ref()377 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content_ref() const&& {
378 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
379 }
380
381 template <typename..., typename T = ::std::string>
content_ref()382 FOLLY_ERASE ::apache::thrift::field_ref<T&> content_ref() & {
383 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
384 }
385
386 template <typename..., typename T = ::std::string>
content_ref()387 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content_ref() && {
388 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
389 }
390
391 template <typename..., typename T = ::std::string>
content()392 FOLLY_ERASE ::apache::thrift::field_ref<const T&> content() const& {
393 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
394 }
395
396 template <typename..., typename T = ::std::string>
content()397 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> content() const&& {
398 return {static_cast<const T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
399 }
400
401 template <typename..., typename T = ::std::string>
content()402 FOLLY_ERASE ::apache::thrift::field_ref<T&> content() & {
403 return {this->__fbthrift_field_content, __isset.at(0), __isset.bit(0)};
404 }
405
406 template <typename..., typename T = ::std::string>
content()407 FOLLY_ERASE ::apache::thrift::field_ref<T&&> content() && {
408 return {static_cast<T&&>(this->__fbthrift_field_content), __isset.at(0), __isset.bit(0)};
409 }
410
get_content()411 const ::std::string& get_content() const& {
412 return __fbthrift_field_content;
413 }
414
get_content()415 ::std::string get_content() && {
416 return std::move(__fbthrift_field_content);
417 }
418
419 template <typename T_SinkPayload_content_struct_setter = ::std::string>
420 [[deprecated("Use `FOO.content_ref() = BAR;` instead of `FOO.set_content(BAR);`")]]
set_content(T_SinkPayload_content_struct_setter && content_)421 ::std::string& set_content(T_SinkPayload_content_struct_setter&& content_) {
422 content_ref() = std::forward<T_SinkPayload_content_struct_setter>(content_);
423 return __fbthrift_field_content;
424 }
425
426 template <class Protocol_>
427 uint32_t read(Protocol_* iprot);
428 template <class Protocol_>
429 uint32_t serializedSize(Protocol_ const* prot_) const;
430 template <class Protocol_>
431 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
432 template <class Protocol_>
433 uint32_t write(Protocol_* prot_) const;
434
435 private:
436 template <class Protocol_>
437 void readNoXfer(Protocol_* iprot);
438
439 friend class ::apache::thrift::Cpp2Ops<SinkPayload>;
440 friend void swap(SinkPayload& a, SinkPayload& b);
441 };
442
443 template <class Protocol_>
read(Protocol_ * iprot)444 uint32_t SinkPayload::read(Protocol_* iprot) {
445 auto _xferStart = iprot->getCursorPosition();
446 readNoXfer(iprot);
447 return iprot->getCursorPosition() - _xferStart;
448 }
449
450 } // cpp2
451 namespace cpp2 {
452 class CompatibleWithKeywordSink final {
453 private:
454 friend struct ::apache::thrift::detail::st::struct_private_access;
455
456 // used by a static_assert in the corresponding source
457 static constexpr bool __fbthrift_cpp2_gen_json = false;
458 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
459 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
460
461 void __fbthrift_clear();
462
463 public:
464 using __fbthrift_cpp2_type = CompatibleWithKeywordSink;
465 static constexpr bool __fbthrift_cpp2_is_union =
466 false;
467
468
469 public:
470
CompatibleWithKeywordSink()471 CompatibleWithKeywordSink() {
472 }
473 // FragileConstructor for use in initialization lists only.
474 [[deprecated("This constructor is deprecated")]]
475 CompatibleWithKeywordSink(apache::thrift::FragileConstructor, ::std::string sink__arg);
476
477 CompatibleWithKeywordSink(CompatibleWithKeywordSink&&) noexcept;
478
479 CompatibleWithKeywordSink(const CompatibleWithKeywordSink& src);
480
481
482 CompatibleWithKeywordSink& operator=(CompatibleWithKeywordSink&&) noexcept;
483 CompatibleWithKeywordSink& operator=(const CompatibleWithKeywordSink& src);
484 private:
485 ::std::string __fbthrift_field_sink;
486 private:
487 apache::thrift::detail::isset_bitset<1, false> __isset;
488
489 public:
490
491 bool operator==(const CompatibleWithKeywordSink&) const;
492 bool operator<(const CompatibleWithKeywordSink&) const;
493
494 template <typename..., typename T = ::std::string>
sink_ref()495 FOLLY_ERASE ::apache::thrift::field_ref<const T&> sink_ref() const& {
496 return {this->__fbthrift_field_sink, __isset.at(0), __isset.bit(0)};
497 }
498
499 template <typename..., typename T = ::std::string>
sink_ref()500 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> sink_ref() const&& {
501 return {static_cast<const T&&>(this->__fbthrift_field_sink), __isset.at(0), __isset.bit(0)};
502 }
503
504 template <typename..., typename T = ::std::string>
sink_ref()505 FOLLY_ERASE ::apache::thrift::field_ref<T&> sink_ref() & {
506 return {this->__fbthrift_field_sink, __isset.at(0), __isset.bit(0)};
507 }
508
509 template <typename..., typename T = ::std::string>
sink_ref()510 FOLLY_ERASE ::apache::thrift::field_ref<T&&> sink_ref() && {
511 return {static_cast<T&&>(this->__fbthrift_field_sink), __isset.at(0), __isset.bit(0)};
512 }
513
514 template <typename..., typename T = ::std::string>
sink()515 FOLLY_ERASE ::apache::thrift::field_ref<const T&> sink() const& {
516 return {this->__fbthrift_field_sink, __isset.at(0), __isset.bit(0)};
517 }
518
519 template <typename..., typename T = ::std::string>
sink()520 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> sink() const&& {
521 return {static_cast<const T&&>(this->__fbthrift_field_sink), __isset.at(0), __isset.bit(0)};
522 }
523
524 template <typename..., typename T = ::std::string>
sink()525 FOLLY_ERASE ::apache::thrift::field_ref<T&> sink() & {
526 return {this->__fbthrift_field_sink, __isset.at(0), __isset.bit(0)};
527 }
528
529 template <typename..., typename T = ::std::string>
sink()530 FOLLY_ERASE ::apache::thrift::field_ref<T&&> sink() && {
531 return {static_cast<T&&>(this->__fbthrift_field_sink), __isset.at(0), __isset.bit(0)};
532 }
533
get_sink()534 const ::std::string& get_sink() const& {
535 return __fbthrift_field_sink;
536 }
537
get_sink()538 ::std::string get_sink() && {
539 return std::move(__fbthrift_field_sink);
540 }
541
542 template <typename T_CompatibleWithKeywordSink_sink_struct_setter = ::std::string>
543 [[deprecated("Use `FOO.sink_ref() = BAR;` instead of `FOO.set_sink(BAR);`")]]
set_sink(T_CompatibleWithKeywordSink_sink_struct_setter && sink_)544 ::std::string& set_sink(T_CompatibleWithKeywordSink_sink_struct_setter&& sink_) {
545 sink_ref() = std::forward<T_CompatibleWithKeywordSink_sink_struct_setter>(sink_);
546 return __fbthrift_field_sink;
547 }
548
549 template <class Protocol_>
550 uint32_t read(Protocol_* iprot);
551 template <class Protocol_>
552 uint32_t serializedSize(Protocol_ const* prot_) const;
553 template <class Protocol_>
554 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
555 template <class Protocol_>
556 uint32_t write(Protocol_* prot_) const;
557
558 private:
559 template <class Protocol_>
560 void readNoXfer(Protocol_* iprot);
561
562 friend class ::apache::thrift::Cpp2Ops<CompatibleWithKeywordSink>;
563 friend void swap(CompatibleWithKeywordSink& a, CompatibleWithKeywordSink& b);
564 };
565
566 template <class Protocol_>
read(Protocol_ * iprot)567 uint32_t CompatibleWithKeywordSink::read(Protocol_* iprot) {
568 auto _xferStart = iprot->getCursorPosition();
569 readNoXfer(iprot);
570 return iprot->getCursorPosition() - _xferStart;
571 }
572
573 } // cpp2
574 namespace cpp2 {
575 class FOLLY_EXPORT InitialException : public apache::thrift::TException {
576 private:
577 friend struct ::apache::thrift::detail::st::struct_private_access;
578
579 // used by a static_assert in the corresponding source
580 static constexpr bool __fbthrift_cpp2_gen_json = false;
581 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
582 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
583
584 void __fbthrift_clear();
585 static constexpr ::apache::thrift::ExceptionKind __fbthrift_cpp2_gen_exception_kind =
586 ::apache::thrift::ExceptionKind::UNSPECIFIED;
587 static constexpr ::apache::thrift::ExceptionSafety __fbthrift_cpp2_gen_exception_safety =
588 ::apache::thrift::ExceptionSafety::UNSPECIFIED;
589 static constexpr ::apache::thrift::ExceptionBlame __fbthrift_cpp2_gen_exception_blame =
590 ::apache::thrift::ExceptionBlame::UNSPECIFIED;
591
592 public:
593 using __fbthrift_cpp2_type = InitialException;
594 static constexpr bool __fbthrift_cpp2_is_union =
595 false;
596
597
598 public:
599
600 InitialException();
601
602 // FragileConstructor for use in initialization lists only.
603 [[deprecated("This constructor is deprecated")]]
604 InitialException(apache::thrift::FragileConstructor, ::std::string reason__arg);
605
606 InitialException(InitialException&&) noexcept;
607
608 InitialException(const InitialException& src);
609
610
611 InitialException& operator=(InitialException&&) noexcept;
612 InitialException& operator=(const InitialException& src);
613
614 ~InitialException() override;
615
616 private:
617 ::std::string reason;
618 private:
619 apache::thrift::detail::isset_bitset<1, false> __isset;
620
621 public:
622
623 bool operator==(const InitialException&) const;
624 bool operator<(const InitialException&) const;
625
626 template <typename..., typename T = ::std::string>
reason_ref()627 FOLLY_ERASE ::apache::thrift::field_ref<const T&> reason_ref() const& {
628 return {this->reason, __isset.at(0), __isset.bit(0)};
629 }
630
631 template <typename..., typename T = ::std::string>
reason_ref()632 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> reason_ref() const&& {
633 return {static_cast<const T&&>(this->reason), __isset.at(0), __isset.bit(0)};
634 }
635
636 template <typename..., typename T = ::std::string>
reason_ref()637 FOLLY_ERASE ::apache::thrift::field_ref<T&> reason_ref() & {
638 return {this->reason, __isset.at(0), __isset.bit(0)};
639 }
640
641 template <typename..., typename T = ::std::string>
reason_ref()642 FOLLY_ERASE ::apache::thrift::field_ref<T&&> reason_ref() && {
643 return {static_cast<T&&>(this->reason), __isset.at(0), __isset.bit(0)};
644 }
645
get_reason()646 const ::std::string& get_reason() const& {
647 return reason;
648 }
649
get_reason()650 ::std::string get_reason() && {
651 return std::move(reason);
652 }
653
654 template <typename T_InitialException_reason_struct_setter = ::std::string>
655 [[deprecated("Use `FOO.reason_ref() = BAR;` instead of `FOO.set_reason(BAR);`")]]
set_reason(T_InitialException_reason_struct_setter && reason_)656 ::std::string& set_reason(T_InitialException_reason_struct_setter&& reason_) {
657 reason_ref() = std::forward<T_InitialException_reason_struct_setter>(reason_);
658 return reason;
659 }
660
661 template <class Protocol_>
662 uint32_t read(Protocol_* iprot);
663 template <class Protocol_>
664 uint32_t serializedSize(Protocol_ const* prot_) const;
665 template <class Protocol_>
666 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
667 template <class Protocol_>
668 uint32_t write(Protocol_* prot_) const;
669
what()670 const char* what() const noexcept override {
671 return "::cpp2::InitialException";
672 }
673
674 private:
675 template <class Protocol_>
676 void readNoXfer(Protocol_* iprot);
677
678 friend class ::apache::thrift::Cpp2Ops<InitialException>;
679 friend void swap(InitialException& a, InitialException& b);
680 };
681
682 template <class Protocol_>
read(Protocol_ * iprot)683 uint32_t InitialException::read(Protocol_* iprot) {
684 auto _xferStart = iprot->getCursorPosition();
685 readNoXfer(iprot);
686 return iprot->getCursorPosition() - _xferStart;
687 }
688
689 } // cpp2
690 namespace cpp2 {
691 class FOLLY_EXPORT SinkException1 : public apache::thrift::TException {
692 private:
693 friend struct ::apache::thrift::detail::st::struct_private_access;
694
695 // used by a static_assert in the corresponding source
696 static constexpr bool __fbthrift_cpp2_gen_json = false;
697 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
698 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
699
700 void __fbthrift_clear();
701 static constexpr ::apache::thrift::ExceptionKind __fbthrift_cpp2_gen_exception_kind =
702 ::apache::thrift::ExceptionKind::UNSPECIFIED;
703 static constexpr ::apache::thrift::ExceptionSafety __fbthrift_cpp2_gen_exception_safety =
704 ::apache::thrift::ExceptionSafety::UNSPECIFIED;
705 static constexpr ::apache::thrift::ExceptionBlame __fbthrift_cpp2_gen_exception_blame =
706 ::apache::thrift::ExceptionBlame::UNSPECIFIED;
707
708 public:
709 using __fbthrift_cpp2_type = SinkException1;
710 static constexpr bool __fbthrift_cpp2_is_union =
711 false;
712
713
714 public:
715
716 SinkException1();
717
718 // FragileConstructor for use in initialization lists only.
719 [[deprecated("This constructor is deprecated")]]
720 SinkException1(apache::thrift::FragileConstructor, ::std::string reason__arg);
721
722 SinkException1(SinkException1&&) noexcept;
723
724 SinkException1(const SinkException1& src);
725
726
727 SinkException1& operator=(SinkException1&&) noexcept;
728 SinkException1& operator=(const SinkException1& src);
729
730 ~SinkException1() override;
731
732 private:
733 ::std::string reason;
734 private:
735 apache::thrift::detail::isset_bitset<1, false> __isset;
736
737 public:
738
739 bool operator==(const SinkException1&) const;
740 bool operator<(const SinkException1&) const;
741
742 template <typename..., typename T = ::std::string>
reason_ref()743 FOLLY_ERASE ::apache::thrift::field_ref<const T&> reason_ref() const& {
744 return {this->reason, __isset.at(0), __isset.bit(0)};
745 }
746
747 template <typename..., typename T = ::std::string>
reason_ref()748 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> reason_ref() const&& {
749 return {static_cast<const T&&>(this->reason), __isset.at(0), __isset.bit(0)};
750 }
751
752 template <typename..., typename T = ::std::string>
reason_ref()753 FOLLY_ERASE ::apache::thrift::field_ref<T&> reason_ref() & {
754 return {this->reason, __isset.at(0), __isset.bit(0)};
755 }
756
757 template <typename..., typename T = ::std::string>
reason_ref()758 FOLLY_ERASE ::apache::thrift::field_ref<T&&> reason_ref() && {
759 return {static_cast<T&&>(this->reason), __isset.at(0), __isset.bit(0)};
760 }
761
get_reason()762 const ::std::string& get_reason() const& {
763 return reason;
764 }
765
get_reason()766 ::std::string get_reason() && {
767 return std::move(reason);
768 }
769
770 template <typename T_SinkException1_reason_struct_setter = ::std::string>
771 [[deprecated("Use `FOO.reason_ref() = BAR;` instead of `FOO.set_reason(BAR);`")]]
set_reason(T_SinkException1_reason_struct_setter && reason_)772 ::std::string& set_reason(T_SinkException1_reason_struct_setter&& reason_) {
773 reason_ref() = std::forward<T_SinkException1_reason_struct_setter>(reason_);
774 return reason;
775 }
776
777 template <class Protocol_>
778 uint32_t read(Protocol_* iprot);
779 template <class Protocol_>
780 uint32_t serializedSize(Protocol_ const* prot_) const;
781 template <class Protocol_>
782 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
783 template <class Protocol_>
784 uint32_t write(Protocol_* prot_) const;
785
what()786 const char* what() const noexcept override {
787 return "::cpp2::SinkException1";
788 }
789
790 private:
791 template <class Protocol_>
792 void readNoXfer(Protocol_* iprot);
793
794 friend class ::apache::thrift::Cpp2Ops<SinkException1>;
795 friend void swap(SinkException1& a, SinkException1& b);
796 };
797
798 template <class Protocol_>
read(Protocol_ * iprot)799 uint32_t SinkException1::read(Protocol_* iprot) {
800 auto _xferStart = iprot->getCursorPosition();
801 readNoXfer(iprot);
802 return iprot->getCursorPosition() - _xferStart;
803 }
804
805 } // cpp2
806 namespace cpp2 {
807 class FOLLY_EXPORT SinkException2 : public apache::thrift::TException {
808 private:
809 friend struct ::apache::thrift::detail::st::struct_private_access;
810
811 // used by a static_assert in the corresponding source
812 static constexpr bool __fbthrift_cpp2_gen_json = false;
813 static constexpr bool __fbthrift_cpp2_gen_nimble = false;
814 static constexpr bool __fbthrift_cpp2_gen_has_thrift_uri = false;
815
816 void __fbthrift_clear();
817 static constexpr ::apache::thrift::ExceptionKind __fbthrift_cpp2_gen_exception_kind =
818 ::apache::thrift::ExceptionKind::UNSPECIFIED;
819 static constexpr ::apache::thrift::ExceptionSafety __fbthrift_cpp2_gen_exception_safety =
820 ::apache::thrift::ExceptionSafety::UNSPECIFIED;
821 static constexpr ::apache::thrift::ExceptionBlame __fbthrift_cpp2_gen_exception_blame =
822 ::apache::thrift::ExceptionBlame::UNSPECIFIED;
823
824 public:
825 using __fbthrift_cpp2_type = SinkException2;
826 static constexpr bool __fbthrift_cpp2_is_union =
827 false;
828
829
830 public:
831
832 SinkException2();
833
834 // FragileConstructor for use in initialization lists only.
835 [[deprecated("This constructor is deprecated")]]
836 SinkException2(apache::thrift::FragileConstructor, ::std::int64_t reason__arg);
837
838 SinkException2(SinkException2&&) noexcept;
839
840 SinkException2(const SinkException2& src);
841
842
843 SinkException2& operator=(SinkException2&&) noexcept;
844 SinkException2& operator=(const SinkException2& src);
845
846 ~SinkException2() override;
847
848 private:
849 ::std::int64_t reason;
850 private:
851 apache::thrift::detail::isset_bitset<1, false> __isset;
852
853 public:
854
855 bool operator==(const SinkException2&) const;
856 bool operator<(const SinkException2&) const;
857
858 template <typename..., typename T = ::std::int64_t>
reason_ref()859 FOLLY_ERASE ::apache::thrift::field_ref<const T&> reason_ref() const& {
860 return {this->reason, __isset.at(0), __isset.bit(0)};
861 }
862
863 template <typename..., typename T = ::std::int64_t>
reason_ref()864 FOLLY_ERASE ::apache::thrift::field_ref<const T&&> reason_ref() const&& {
865 return {static_cast<const T&&>(this->reason), __isset.at(0), __isset.bit(0)};
866 }
867
868 template <typename..., typename T = ::std::int64_t>
reason_ref()869 FOLLY_ERASE ::apache::thrift::field_ref<T&> reason_ref() & {
870 return {this->reason, __isset.at(0), __isset.bit(0)};
871 }
872
873 template <typename..., typename T = ::std::int64_t>
reason_ref()874 FOLLY_ERASE ::apache::thrift::field_ref<T&&> reason_ref() && {
875 return {static_cast<T&&>(this->reason), __isset.at(0), __isset.bit(0)};
876 }
877
get_reason()878 ::std::int64_t get_reason() const {
879 return reason;
880 }
881
882 [[deprecated("Use `FOO.reason_ref() = BAR;` instead of `FOO.set_reason(BAR);`")]]
set_reason(::std::int64_t reason_)883 ::std::int64_t& set_reason(::std::int64_t reason_) {
884 reason_ref() = reason_;
885 return reason;
886 }
887
888 template <class Protocol_>
889 uint32_t read(Protocol_* iprot);
890 template <class Protocol_>
891 uint32_t serializedSize(Protocol_ const* prot_) const;
892 template <class Protocol_>
893 uint32_t serializedSizeZC(Protocol_ const* prot_) const;
894 template <class Protocol_>
895 uint32_t write(Protocol_* prot_) const;
896
what()897 const char* what() const noexcept override {
898 return "::cpp2::SinkException2";
899 }
900
901 private:
902 template <class Protocol_>
903 void readNoXfer(Protocol_* iprot);
904
905 friend class ::apache::thrift::Cpp2Ops<SinkException2>;
906 friend void swap(SinkException2& a, SinkException2& b);
907 };
908
909 template <class Protocol_>
read(Protocol_ * iprot)910 uint32_t SinkException2::read(Protocol_* iprot) {
911 auto _xferStart = iprot->getCursorPosition();
912 readNoXfer(iprot);
913 return iprot->getCursorPosition() - _xferStart;
914 }
915
916 } // cpp2
917