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 
8 #include "thrift/compiler/test/fixtures/fatal/gen-cpp2/module_data.h"
9 
10 #include <thrift/lib/cpp2/gen/module_data_cpp.h>
11 
12 namespace apache {
13 namespace thrift {
14 
15 const std::array<::test_cpp2::cpp_reflection::enum1, 3> TEnumDataStorage<::test_cpp2::cpp_reflection::enum1>::values = {{
16   type::field0,
17   type::field1,
18   type::field2,
19 }};
20 const std::array<folly::StringPiece, 3> TEnumDataStorage<::test_cpp2::cpp_reflection::enum1>::names = {{
21   "field0",
22   "field1",
23   "field2",
24 }};
25 
26 const std::array<::test_cpp2::cpp_reflection::enum2, 3> TEnumDataStorage<::test_cpp2::cpp_reflection::enum2>::values = {{
27   type::field0_2,
28   type::field1_2,
29   type::field2_2,
30 }};
31 const std::array<folly::StringPiece, 3> TEnumDataStorage<::test_cpp2::cpp_reflection::enum2>::names = {{
32   "field0_2",
33   "field1_2",
34   "field2_2",
35 }};
36 
37 const std::array<::test_cpp2::cpp_reflection::enum3, 2> TEnumDataStorage<::test_cpp2::cpp_reflection::enum3>::values = {{
38   type::field0_3,
39   type::field1_3,
40 }};
41 const std::array<folly::StringPiece, 2> TEnumDataStorage<::test_cpp2::cpp_reflection::enum3>::names = {{
42   "field0_3",
43   "field1_3",
44 }};
45 
46 const std::array<::test_cpp2::cpp_reflection::enum_with_special_names, 28> TEnumDataStorage<::test_cpp2::cpp_reflection::enum_with_special_names>::values = {{
47   type::get,
48   type::getter,
49   type::lists,
50   type::maps,
51   type::name,
52   type::name_to_value,
53   type::names,
54   type::prefix_tree,
55   type::sets,
56   type::setter,
57   type::str,
58   type::strings,
59   type::type,
60   type::value,
61   type::value_to_name,
62   type::values,
63   type::id,
64   type::ids,
65   type::descriptor,
66   type::descriptors,
67   type::key,
68   type::keys,
69   type::annotation,
70   type::annotations,
71   type::member,
72   type::members,
73   type::field,
74   type::fields,
75 }};
76 const std::array<folly::StringPiece, 28> TEnumDataStorage<::test_cpp2::cpp_reflection::enum_with_special_names>::names = {{
77   "get",
78   "getter",
79   "lists",
80   "maps",
81   "name",
82   "name_to_value",
83   "names",
84   "prefix_tree",
85   "sets",
86   "setter",
87   "str",
88   "strings",
89   "type",
90   "value",
91   "value_to_name",
92   "values",
93   "id",
94   "ids",
95   "descriptor",
96   "descriptors",
97   "key",
98   "keys",
99   "annotation",
100   "annotations",
101   "member",
102   "members",
103   "field",
104   "fields",
105 }};
106 
107 const std::array<::test_cpp2::cpp_reflection::union1::Type, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union1::Type>::values = {{
108   type::ui,
109   type::ud,
110   type::us,
111   type::ue,
112 }};
113 const std::array<folly::StringPiece, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union1::Type>::names = {{
114   "ui",
115   "ud",
116   "us",
117   "ue",
118 }};
119 
120 const std::array<::test_cpp2::cpp_reflection::union2::Type, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union2::Type>::values = {{
121   type::ui_2,
122   type::ud_2,
123   type::us_2,
124   type::ue_2,
125 }};
126 const std::array<folly::StringPiece, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union2::Type>::names = {{
127   "ui_2",
128   "ud_2",
129   "us_2",
130   "ue_2",
131 }};
132 
133 const std::array<::test_cpp2::cpp_reflection::union3::Type, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union3::Type>::values = {{
134   type::ui_3,
135   type::ud_3,
136   type::us_3,
137   type::ue_3,
138 }};
139 const std::array<folly::StringPiece, 4> TEnumDataStorage<::test_cpp2::cpp_reflection::union3::Type>::names = {{
140   "ui_3",
141   "ud_3",
142   "us_3",
143   "ue_3",
144 }};
145 
146 const std::array<::test_cpp2::cpp_reflection::unionA::Type, 5> TEnumDataStorage<::test_cpp2::cpp_reflection::unionA::Type>::values = {{
147   type::i,
148   type::d,
149   type::s,
150   type::e,
151   type::a,
152 }};
153 const std::array<folly::StringPiece, 5> TEnumDataStorage<::test_cpp2::cpp_reflection::unionA::Type>::names = {{
154   "i",
155   "d",
156   "s",
157   "e",
158   "a",
159 }};
160 
161 const std::array<::test_cpp2::cpp_reflection::union_with_special_names::Type, 28> TEnumDataStorage<::test_cpp2::cpp_reflection::union_with_special_names::Type>::values = {{
162   type::get,
163   type::getter,
164   type::lists,
165   type::maps,
166   type::name,
167   type::name_to_value,
168   type::names,
169   type::prefix_tree,
170   type::sets,
171   type::setter,
172   type::str,
173   type::strings,
174   type::type,
175   type::value,
176   type::value_to_name,
177   type::values,
178   type::id,
179   type::ids,
180   type::descriptor,
181   type::descriptors,
182   type::key,
183   type::keys,
184   type::annotation,
185   type::annotations,
186   type::member,
187   type::members,
188   type::field,
189   type::fields,
190 }};
191 const std::array<folly::StringPiece, 28> TEnumDataStorage<::test_cpp2::cpp_reflection::union_with_special_names::Type>::names = {{
192   "get",
193   "getter",
194   "lists",
195   "maps",
196   "name",
197   "name_to_value",
198   "names",
199   "prefix_tree",
200   "sets",
201   "setter",
202   "str",
203   "strings",
204   "type",
205   "value",
206   "value_to_name",
207   "values",
208   "id",
209   "ids",
210   "descriptor",
211   "descriptors",
212   "key",
213   "keys",
214   "annotation",
215   "annotations",
216   "member",
217   "members",
218   "field",
219   "fields",
220 }};
221 
222 const std::array<folly::StringPiece, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union1>::fields_names = {{
223   "ui",
224   "ud",
225   "us",
226   "ue",
227 }};
228 const std::array<int16_t, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union1>::fields_ids = {{
229   1,
230   3,
231   5,
232   7,
233 }};
234 const std::array<protocol::TType, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union1>::fields_types = {{
235   TType::T_I32,
236   TType::T_DOUBLE,
237   TType::T_STRING,
238   TType::T_I32,
239 }};
240 
241 const std::array<folly::StringPiece, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union2>::fields_names = {{
242   "ui_2",
243   "ud_2",
244   "us_2",
245   "ue_2",
246 }};
247 const std::array<int16_t, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union2>::fields_ids = {{
248   1,
249   2,
250   3,
251   4,
252 }};
253 const std::array<protocol::TType, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union2>::fields_types = {{
254   TType::T_I32,
255   TType::T_DOUBLE,
256   TType::T_STRING,
257   TType::T_I32,
258 }};
259 
260 const std::array<folly::StringPiece, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union3>::fields_names = {{
261   "ui_3",
262   "ud_3",
263   "us_3",
264   "ue_3",
265 }};
266 const std::array<int16_t, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union3>::fields_ids = {{
267   1,
268   2,
269   3,
270   4,
271 }};
272 const std::array<protocol::TType, 4> TStructDataStorage<::test_cpp2::cpp_reflection::union3>::fields_types = {{
273   TType::T_I32,
274   TType::T_DOUBLE,
275   TType::T_STRING,
276   TType::T_I32,
277 }};
278 
279 const std::array<folly::StringPiece, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structA>::fields_names = {{
280   "a",
281   "b",
282 }};
283 const std::array<int16_t, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structA>::fields_ids = {{
284   1,
285   2,
286 }};
287 const std::array<protocol::TType, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structA>::fields_types = {{
288   TType::T_I32,
289   TType::T_STRING,
290 }};
291 
292 const std::array<folly::StringPiece, 5> TStructDataStorage<::test_cpp2::cpp_reflection::unionA>::fields_names = {{
293   "i",
294   "d",
295   "s",
296   "e",
297   "a",
298 }};
299 const std::array<int16_t, 5> TStructDataStorage<::test_cpp2::cpp_reflection::unionA>::fields_ids = {{
300   1,
301   2,
302   3,
303   4,
304   5,
305 }};
306 const std::array<protocol::TType, 5> TStructDataStorage<::test_cpp2::cpp_reflection::unionA>::fields_types = {{
307   TType::T_I32,
308   TType::T_DOUBLE,
309   TType::T_STRING,
310   TType::T_I32,
311   TType::T_STRUCT,
312 }};
313 
314 const std::array<folly::StringPiece, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structB>::fields_names = {{
315   "c",
316   "d",
317 }};
318 const std::array<int16_t, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structB>::fields_ids = {{
319   1,
320   2,
321 }};
322 const std::array<protocol::TType, 2> TStructDataStorage<::test_cpp2::cpp_reflection::structB>::fields_types = {{
323   TType::T_DOUBLE,
324   TType::T_BOOL,
325 }};
326 
327 const std::array<folly::StringPiece, 30> TStructDataStorage<::test_cpp2::cpp_reflection::structC>::fields_names = {{
328   "a",
329   "b",
330   "c",
331   "d",
332   "e",
333   "f",
334   "g",
335   "h",
336   "i",
337   "j",
338   "j1",
339   "j2",
340   "j3",
341   "k",
342   "k1",
343   "k2",
344   "k3",
345   "l",
346   "l1",
347   "l2",
348   "l3",
349   "m1",
350   "m2",
351   "m3",
352   "n1",
353   "n2",
354   "n3",
355   "o1",
356   "o2",
357   "o3",
358 }};
359 const std::array<int16_t, 30> TStructDataStorage<::test_cpp2::cpp_reflection::structC>::fields_ids = {{
360   1,
361   2,
362   3,
363   4,
364   5,
365   6,
366   7,
367   8,
368   9,
369   10,
370   11,
371   12,
372   13,
373   14,
374   15,
375   16,
376   17,
377   18,
378   19,
379   20,
380   21,
381   22,
382   23,
383   24,
384   25,
385   26,
386   27,
387   28,
388   29,
389   30,
390 }};
391 const std::array<protocol::TType, 30> TStructDataStorage<::test_cpp2::cpp_reflection::structC>::fields_types = {{
392   TType::T_I32,
393   TType::T_STRING,
394   TType::T_DOUBLE,
395   TType::T_BOOL,
396   TType::T_I32,
397   TType::T_I32,
398   TType::T_STRUCT,
399   TType::T_STRUCT,
400   TType::T_STRUCT,
401   TType::T_LIST,
402   TType::T_LIST,
403   TType::T_LIST,
404   TType::T_LIST,
405   TType::T_SET,
406   TType::T_SET,
407   TType::T_SET,
408   TType::T_SET,
409   TType::T_MAP,
410   TType::T_MAP,
411   TType::T_MAP,
412   TType::T_MAP,
413   TType::T_MAP,
414   TType::T_MAP,
415   TType::T_MAP,
416   TType::T_MAP,
417   TType::T_MAP,
418   TType::T_MAP,
419   TType::T_MAP,
420   TType::T_MAP,
421   TType::T_MAP,
422 }};
423 
424 const std::array<folly::StringPiece, 6> TStructDataStorage<::test_cpp2::cpp_reflection::struct1>::fields_names = {{
425   "field0",
426   "field1",
427   "field2",
428   "field3",
429   "field4",
430   "field5",
431 }};
432 const std::array<int16_t, 6> TStructDataStorage<::test_cpp2::cpp_reflection::struct1>::fields_ids = {{
433   1,
434   2,
435   3,
436   4,
437   5,
438   6,
439 }};
440 const std::array<protocol::TType, 6> TStructDataStorage<::test_cpp2::cpp_reflection::struct1>::fields_types = {{
441   TType::T_I32,
442   TType::T_STRING,
443   TType::T_I32,
444   TType::T_I32,
445   TType::T_STRUCT,
446   TType::T_STRUCT,
447 }};
448 
449 const std::array<folly::StringPiece, 7> TStructDataStorage<::test_cpp2::cpp_reflection::struct2>::fields_names = {{
450   "fieldA",
451   "fieldB",
452   "fieldC",
453   "fieldD",
454   "fieldE",
455   "fieldF",
456   "fieldG",
457 }};
458 const std::array<int16_t, 7> TStructDataStorage<::test_cpp2::cpp_reflection::struct2>::fields_ids = {{
459   1,
460   2,
461   3,
462   4,
463   5,
464   6,
465   7,
466 }};
467 const std::array<protocol::TType, 7> TStructDataStorage<::test_cpp2::cpp_reflection::struct2>::fields_types = {{
468   TType::T_I32,
469   TType::T_STRING,
470   TType::T_I32,
471   TType::T_I32,
472   TType::T_STRUCT,
473   TType::T_STRUCT,
474   TType::T_STRUCT,
475 }};
476 
477 const std::array<folly::StringPiece, 18> TStructDataStorage<::test_cpp2::cpp_reflection::struct3>::fields_names = {{
478   "fieldA",
479   "fieldB",
480   "fieldC",
481   "fieldD",
482   "fieldE",
483   "fieldF",
484   "fieldG",
485   "fieldH",
486   "fieldI",
487   "fieldJ",
488   "fieldK",
489   "fieldL",
490   "fieldM",
491   "fieldN",
492   "fieldO",
493   "fieldP",
494   "fieldQ",
495   "fieldR",
496 }};
497 const std::array<int16_t, 18> TStructDataStorage<::test_cpp2::cpp_reflection::struct3>::fields_ids = {{
498   1,
499   2,
500   3,
501   4,
502   5,
503   6,
504   7,
505   8,
506   9,
507   10,
508   11,
509   12,
510   13,
511   14,
512   15,
513   16,
514   17,
515   18,
516 }};
517 const std::array<protocol::TType, 18> TStructDataStorage<::test_cpp2::cpp_reflection::struct3>::fields_types = {{
518   TType::T_I32,
519   TType::T_STRING,
520   TType::T_I32,
521   TType::T_I32,
522   TType::T_STRUCT,
523   TType::T_STRUCT,
524   TType::T_STRUCT,
525   TType::T_STRUCT,
526   TType::T_LIST,
527   TType::T_LIST,
528   TType::T_LIST,
529   TType::T_LIST,
530   TType::T_SET,
531   TType::T_SET,
532   TType::T_SET,
533   TType::T_SET,
534   TType::T_MAP,
535   TType::T_MAP,
536 }};
537 
538 const std::array<folly::StringPiece, 4> TStructDataStorage<::test_cpp2::cpp_reflection::struct4>::fields_names = {{
539   "field0",
540   "field1",
541   "field2",
542   "field3",
543 }};
544 const std::array<int16_t, 4> TStructDataStorage<::test_cpp2::cpp_reflection::struct4>::fields_ids = {{
545   1,
546   2,
547   3,
548   6,
549 }};
550 const std::array<protocol::TType, 4> TStructDataStorage<::test_cpp2::cpp_reflection::struct4>::fields_types = {{
551   TType::T_I32,
552   TType::T_STRING,
553   TType::T_I32,
554   TType::T_STRUCT,
555 }};
556 
557 const std::array<folly::StringPiece, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct5>::fields_names = {{
558   "field0",
559   "field1",
560   "field2",
561   "field3",
562   "field4",
563 }};
564 const std::array<int16_t, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct5>::fields_ids = {{
565   1,
566   2,
567   3,
568   4,
569   5,
570 }};
571 const std::array<protocol::TType, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct5>::fields_types = {{
572   TType::T_I32,
573   TType::T_STRING,
574   TType::T_I32,
575   TType::T_STRUCT,
576   TType::T_STRUCT,
577 }};
578 
579 const std::array<folly::StringPiece, 1> TStructDataStorage<::test_cpp2::cpp_reflection::struct_binary>::fields_names = {{
580   "bi",
581 }};
582 const std::array<int16_t, 1> TStructDataStorage<::test_cpp2::cpp_reflection::struct_binary>::fields_ids = {{
583   1,
584 }};
585 const std::array<protocol::TType, 1> TStructDataStorage<::test_cpp2::cpp_reflection::struct_binary>::fields_types = {{
586   TType::T_STRING,
587 }};
588 
589 const std::array<folly::StringPiece, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_A_struct>::fields_names = {{
590   "b",
591   "c",
592   "i_a",
593 }};
594 const std::array<int16_t, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_A_struct>::fields_ids = {{
595   1,
596   2,
597   3,
598 }};
599 const std::array<protocol::TType, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_A_struct>::fields_types = {{
600   TType::T_STRUCT,
601   TType::T_STRUCT,
602   TType::T_I32,
603 }};
604 
605 const std::array<folly::StringPiece, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_B_struct>::fields_names = {{
606   "b",
607   "c",
608   "i_a",
609 }};
610 const std::array<int16_t, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_B_struct>::fields_ids = {{
611   1,
612   2,
613   3,
614 }};
615 const std::array<protocol::TType, 3> TStructDataStorage<::test_cpp2::cpp_reflection::dep_B_struct>::fields_types = {{
616   TType::T_STRUCT,
617   TType::T_STRUCT,
618   TType::T_I32,
619 }};
620 
621 const std::array<folly::StringPiece, 1> TStructDataStorage<::test_cpp2::cpp_reflection::annotated>::fields_names = {{
622   "a",
623 }};
624 const std::array<int16_t, 1> TStructDataStorage<::test_cpp2::cpp_reflection::annotated>::fields_ids = {{
625   1,
626 }};
627 const std::array<protocol::TType, 1> TStructDataStorage<::test_cpp2::cpp_reflection::annotated>::fields_types = {{
628   TType::T_I32,
629 }};
630 
631 const std::array<folly::StringPiece, 28> TStructDataStorage<::test_cpp2::cpp_reflection::union_with_special_names>::fields_names = {{
632   "get",
633   "getter",
634   "lists",
635   "maps",
636   "name",
637   "name_to_value",
638   "names",
639   "prefix_tree",
640   "sets",
641   "setter",
642   "str",
643   "strings",
644   "type",
645   "value",
646   "value_to_name",
647   "values",
648   "id",
649   "ids",
650   "descriptor",
651   "descriptors",
652   "key",
653   "keys",
654   "annotation",
655   "annotations",
656   "member",
657   "members",
658   "field",
659   "fields",
660 }};
661 const std::array<int16_t, 28> TStructDataStorage<::test_cpp2::cpp_reflection::union_with_special_names>::fields_ids = {{
662   1,
663   2,
664   3,
665   4,
666   5,
667   6,
668   7,
669   8,
670   9,
671   10,
672   11,
673   12,
674   13,
675   14,
676   15,
677   16,
678   17,
679   18,
680   19,
681   20,
682   21,
683   22,
684   23,
685   24,
686   25,
687   26,
688   27,
689   28,
690 }};
691 const std::array<protocol::TType, 28> TStructDataStorage<::test_cpp2::cpp_reflection::union_with_special_names>::fields_types = {{
692   TType::T_I32,
693   TType::T_I32,
694   TType::T_I32,
695   TType::T_I32,
696   TType::T_I32,
697   TType::T_I32,
698   TType::T_I32,
699   TType::T_I32,
700   TType::T_I32,
701   TType::T_I32,
702   TType::T_I32,
703   TType::T_I32,
704   TType::T_I32,
705   TType::T_I32,
706   TType::T_I32,
707   TType::T_I32,
708   TType::T_I32,
709   TType::T_I32,
710   TType::T_I32,
711   TType::T_I32,
712   TType::T_I32,
713   TType::T_I32,
714   TType::T_I32,
715   TType::T_I32,
716   TType::T_I32,
717   TType::T_I32,
718   TType::T_I32,
719   TType::T_I32,
720 }};
721 
722 const std::array<folly::StringPiece, 28> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_special_names>::fields_names = {{
723   "get",
724   "getter",
725   "lists",
726   "maps",
727   "name",
728   "name_to_value",
729   "names",
730   "prefix_tree",
731   "sets",
732   "setter",
733   "str",
734   "strings",
735   "type",
736   "value",
737   "value_to_name",
738   "values",
739   "id",
740   "ids",
741   "descriptor",
742   "descriptors",
743   "key",
744   "keys",
745   "annotation",
746   "annotations",
747   "member",
748   "members",
749   "field",
750   "fields",
751 }};
752 const std::array<int16_t, 28> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_special_names>::fields_ids = {{
753   1,
754   2,
755   3,
756   4,
757   5,
758   6,
759   7,
760   8,
761   9,
762   10,
763   11,
764   12,
765   13,
766   14,
767   15,
768   16,
769   17,
770   18,
771   19,
772   20,
773   21,
774   22,
775   23,
776   24,
777   25,
778   26,
779   27,
780   28,
781 }};
782 const std::array<protocol::TType, 28> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_special_names>::fields_types = {{
783   TType::T_I32,
784   TType::T_I32,
785   TType::T_I32,
786   TType::T_I32,
787   TType::T_I32,
788   TType::T_I32,
789   TType::T_I32,
790   TType::T_I32,
791   TType::T_I32,
792   TType::T_I32,
793   TType::T_I32,
794   TType::T_I32,
795   TType::T_I32,
796   TType::T_I32,
797   TType::T_I32,
798   TType::T_I32,
799   TType::T_I32,
800   TType::T_I32,
801   TType::T_I32,
802   TType::T_I32,
803   TType::T_I32,
804   TType::T_I32,
805   TType::T_I32,
806   TType::T_I32,
807   TType::T_I32,
808   TType::T_I32,
809   TType::T_I32,
810   TType::T_I32,
811 }};
812 
813 const std::array<folly::StringPiece, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_indirections>::fields_names = {{
814   "real",
815   "fake",
816   "number",
817   "result",
818   "phrase",
819 }};
820 const std::array<int16_t, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_indirections>::fields_ids = {{
821   1,
822   2,
823   3,
824   4,
825   5,
826 }};
827 const std::array<protocol::TType, 5> TStructDataStorage<::test_cpp2::cpp_reflection::struct_with_indirections>::fields_types = {{
828   TType::T_I32,
829   TType::T_I32,
830   TType::T_I32,
831   TType::T_I32,
832   TType::T_STRING,
833 }};
834 
835 } // namespace thrift
836 } // namespace apache
837