wangtieju | 4aaef75 | 2021-02-04 11:26:44 +0800 | [diff] [blame^] | 1 | typedef i8 mybyte |
| 2 | typedef string mystr |
| 3 | typedef binary mybin |
| 4 | |
| 5 | enum EnumFoo { |
| 6 | e1 |
| 7 | e2 |
| 8 | } |
| 9 | |
| 10 | struct BasicEqualsFoo { |
| 11 | 1: bool BoolFoo, |
| 12 | 2: optional bool OptBoolFoo, |
| 13 | 3: i8 I8Foo, |
| 14 | 4: optional i8 OptI8Foo, |
| 15 | 5: i16 I16Foo, |
| 16 | 6: optional i16 OptI16Foo, |
| 17 | 7: i32 I32Foo, |
| 18 | 8: optional i32 OptI32Foo, |
| 19 | 9: i64 I64Foo, |
| 20 | 10: optional i64 OptI64Foo, |
| 21 | 11: double DoubleFoo, |
| 22 | 12: optional double OptDoubleFoo, |
| 23 | 13: string StrFoo, |
| 24 | 14: optional string OptStrFoo, |
| 25 | 15: binary BinFoo, |
| 26 | 16: optional binary OptBinFoo, |
| 27 | 17: EnumFoo EnumFoo, |
| 28 | 18: optional EnumFoo OptEnumFoo, |
| 29 | 19: mybyte MyByteFoo, |
| 30 | 20: optional mybyte OptMyByteFoo, |
| 31 | 21: mystr MyStrFoo, |
| 32 | 22: optional mystr OptMyStrFoo, |
| 33 | 23: mybin MyBinFoo, |
| 34 | 24: optional mybin OptMyBinFoo, |
| 35 | } |
| 36 | |
| 37 | struct StructEqualsFoo { |
| 38 | 1: BasicEqualsFoo StructFoo, |
| 39 | 2: optional BasicEqualsFoo OptStructFoo, |
| 40 | } |
| 41 | |
| 42 | struct ListEqualsFoo { |
| 43 | 1: list<i64> I64ListFoo, |
| 44 | 2: optional list<i64> OptI64ListFoo, |
| 45 | 3: list<string> StrListFoo, |
| 46 | 4: optional list<string> OptStrListFoo, |
| 47 | 5: list<binary> BinListFoo, |
| 48 | 6: optional list<binary> OptBinListFoo, |
| 49 | 7: list<BasicEqualsFoo> StructListFoo, |
| 50 | 8: optional list<BasicEqualsFoo> OptStructListFoo, |
| 51 | 9: list<list<i64>> I64ListListFoo, |
| 52 | 10: optional list<list<i64>> OptI64ListListFoo, |
| 53 | 11: list<set<i64>> I64SetListFoo, |
| 54 | 12: optional list<set<i64>> OptI64SetListFoo, |
| 55 | 13: list<map<i64, string>> I64StringMapListFoo, |
| 56 | 14: optional list<map<i64, string>> OptI64StringMapListFoo, |
| 57 | 15: list<mybyte> MyByteListFoo, |
| 58 | 16: optional list<mybyte> OptMyByteListFoo, |
| 59 | 17: list<mystr> MyStrListFoo, |
| 60 | 18: optional list<mystr> OptMyStrListFoo, |
| 61 | 19: list<mybin> MyBinListFoo, |
| 62 | 20: optional list<mybin> OptMyBinListFoo, |
| 63 | } |
| 64 | |
| 65 | struct SetEqualsFoo { |
| 66 | 1: set<i64> I64SetFoo, |
| 67 | 2: optional set<i64> OptI64SetFoo, |
| 68 | 3: set<string> StrSetFoo, |
| 69 | 4: optional set<string> OptStrSetFoo, |
| 70 | 5: set<binary> BinSetFoo, |
| 71 | 6: optional set<binary> OptBinSetFoo, |
| 72 | 7: set<BasicEqualsFoo> StructSetFoo, |
| 73 | 8: optional set<BasicEqualsFoo> OptStructSetFoo, |
| 74 | 9: set<list<i64>> I64ListSetFoo, |
| 75 | 10: optional set<list<i64>> OptI64ListSetFoo, |
| 76 | 11: set<set<i64>> I64SetSetFoo, |
| 77 | 12: optional set<set<i64>> OptI64SetSetFoo, |
| 78 | 13: set<map<i64, string>> I64StringMapSetFoo, |
| 79 | 14: optional set<map<i64, string>> OptI64StringMapSetFoo, |
| 80 | 15: set<mybyte> MyByteSetFoo, |
| 81 | 16: optional set<mybyte> OptMyByteSetFoo, |
| 82 | 17: set<mystr> MyStrSetFoo, |
| 83 | 18: optional set<mystr> OptMyStrSetFoo, |
| 84 | 19: set<mybin> MyBinSetFoo, |
| 85 | 20: optional set<mybin> OptMyBinSetFoo, |
| 86 | } |
| 87 | |
| 88 | struct MapEqualsFoo { |
| 89 | 1: map<i64, string> I64StrMapFoo, |
| 90 | 2: optional map<i64, string> OptI64StrMapFoo, |
| 91 | 3: map<string, i64> StrI64MapFoo, |
| 92 | 4: optional map<string, i64> OptStrI64MapFoo, |
| 93 | 5: map<BasicEqualsFoo, binary> StructBinMapFoo, |
| 94 | 6: optional map<BasicEqualsFoo, binary> OptStructBinMapFoo, |
| 95 | 7: map<binary, BasicEqualsFoo> BinStructMapFoo, |
| 96 | 8: optional map<binary, BasicEqualsFoo> OptBinStructMapFoo, |
| 97 | 9: map<i64, list<i64>> I64I64ListMapFoo, |
| 98 | 10: optional map<i64, list<i64>> OptI64I64ListMapFoo, |
| 99 | 11: map<i64, set<i64>> I64I64SetMapFoo, |
| 100 | 12: optional map<i64, set<i64>> OptI64I64SetMapFoo, |
| 101 | 13: map<i64, map<i64, string>> I64I64StringMapMapFoo, |
| 102 | 14: optional map<i64, map<i64, string>> OptI64I64StringMapMapFoo, |
| 103 | 15: map<mystr, mybin> MyStrMyBinMapFoo, |
| 104 | 16: optional map<mystr, mybin> OptMyStrMyBinMapFoo, |
| 105 | 17: map<i64, mybyte> Int64MyByteMapFoo, |
| 106 | 18: optional map<i64, mybyte> OptInt64MyByteMapFoo, |
| 107 | 19: map<mybyte, i64> MyByteInt64MapFoo, |
| 108 | 20: optional map<mybyte, i64> OptMyByteInt64MapFoo, |
| 109 | } |