Yuxuan 'fishy' Wang | f695535 | 2021-07-29 15:59:10 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
| 20 | namespace go constoptionalfieldb |
| 21 | |
| 22 | include "ConstOptionalFieldImport.thrift" |
| 23 | |
| 24 | typedef ConstOptionalFieldImport.Foo TypedefBFoo |
| 25 | |
| 26 | typedef bool TypedefBBool |
| 27 | typedef i8 TypedefBI8 |
| 28 | typedef i16 TypedefBI16 |
| 29 | typedef i32 TypedefBI32 |
| 30 | typedef i64 TypedefBI64 |
| 31 | typedef double TypedefBDouble |
| 32 | typedef string TypedefBString |
| 33 | typedef binary TypedefBBinary |
| 34 | |
| 35 | struct Bar { |
| 36 | 1: optional ConstOptionalFieldImport.Foo optFoo, |
| 37 | 2: optional ConstOptionalFieldImport.TypedefAFoo aFoo, |
| 38 | 3: optional TypedefBFoo bFoo, |
| 39 | |
| 40 | 4: optional bool optBool, |
| 41 | 5: optional ConstOptionalFieldImport.TypedefABool aBool, |
| 42 | 6: optional TypedefBBool bBool, |
| 43 | |
| 44 | 7: optional i8 optI8, |
| 45 | 8: optional ConstOptionalFieldImport.TypedefAI8 aI8, |
| 46 | 9: optional TypedefBI8 bI8, |
| 47 | |
| 48 | 10: optional i16 optI16, |
| 49 | 11: optional ConstOptionalFieldImport.TypedefAI16 aI16, |
| 50 | 12: optional TypedefBI16 bI16, |
| 51 | |
| 52 | 13: optional i32 optI32, |
| 53 | 14: optional ConstOptionalFieldImport.TypedefAI32 aI32, |
| 54 | 15: optional TypedefBI32 bI32, |
| 55 | |
| 56 | 16: optional i64 optI64, |
| 57 | 17: optional ConstOptionalFieldImport.TypedefAI64 aI64, |
| 58 | 18: optional TypedefBI64 bI64, |
| 59 | |
| 60 | 19: optional double optDouble, |
| 61 | 20: optional ConstOptionalFieldImport.TypedefADouble aDouble, |
| 62 | 21: optional TypedefBDouble bDouble, |
| 63 | |
| 64 | 22: optional string optString, |
| 65 | 23: optional ConstOptionalFieldImport.TypedefAString aString, |
| 66 | 24: optional TypedefBString bString, |
| 67 | |
| 68 | 25: optional binary optBinary, |
| 69 | 26: optional ConstOptionalFieldImport.TypedefABinary aBinary, |
| 70 | 27: optional TypedefBBinary bBinary, |
| 71 | } |
| 72 | |
| 73 | const list<Bar> CONSTANTS = [ |
| 74 | { |
| 75 | "optFoo": ConstOptionalFieldImport.Foo.One, |
| 76 | "aFoo": ConstOptionalFieldImport.Foo.One, |
| 77 | "bFoo": ConstOptionalFieldImport.Foo.One, |
| 78 | |
| 79 | "optBool": true, |
| 80 | "aBool": true, |
| 81 | "bBool": true, |
| 82 | |
| 83 | "optI8": 8, |
| 84 | "aI8": 8, |
| 85 | "bI8": 8, |
| 86 | |
| 87 | "optI16": 16, |
| 88 | "aI16": 16, |
| 89 | "bI16": 16, |
| 90 | |
| 91 | "optI32": 32, |
| 92 | "aI32": 32, |
| 93 | "bI32": 32, |
| 94 | |
| 95 | "optI64": 64, |
| 96 | "aI64": 64, |
| 97 | "bI64": 64, |
| 98 | |
| 99 | "optDouble": 1234, |
| 100 | "aDouble": 1234, |
| 101 | "bDouble": 1234, |
| 102 | |
| 103 | "optString": "string", |
| 104 | "aString": "string", |
| 105 | "bString": "string", |
| 106 | |
| 107 | "optBinary": "binary", |
| 108 | "aBinary": "binary", |
| 109 | "bBinary": "binary", |
| 110 | }, |
| 111 | ] |