Jens Geyer | 944b8e6 | 2022-09-11 12:30:35 +0200 | [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 | |
Anthony F. Molinaro | 3bba214 | 2012-03-22 06:48:33 +0000 | [diff] [blame] | 20 | struct StructB |
| 21 | { |
| 22 | 1: string x |
| 23 | } |
| 24 | |
Anthony F. Molinaro | 3183514 | 2012-03-22 06:23:36 +0000 | [diff] [blame] | 25 | struct StructA |
| 26 | { |
| 27 | 1: string a, |
| 28 | 2: binary b, |
| 29 | 3: optional string c, |
| 30 | 4: optional binary d, |
| 31 | 5: required string e, |
| 32 | 6: required binary f, |
| 33 | 7: string g = "foo", |
| 34 | 8: i32 h, |
| 35 | 9: optional i32 i, |
| 36 | 10: required i32 j, |
| 37 | 11: required i32 k = 5, |
| 38 | 12: double l, |
| 39 | 13: optional double m, |
| 40 | 14: required double n, |
| 41 | 15: double o = 3.14159, |
| 42 | 16: list<string> string_list, |
| 43 | 17: list<byte> byte_list = [1, 2, 3], |
Anthony F. Molinaro | 3bba214 | 2012-03-22 06:48:33 +0000 | [diff] [blame] | 44 | 18: required list<string> rsl, |
| 45 | 19: optional list<string> osl, |
| 46 | 20: set<string> string_set, |
| 47 | 21: required set<string> rss, |
| 48 | 22: optional set<string> oss, |
| 49 | 23: map<string, string> string_map, |
| 50 | 24: required map<string, string> rsm, |
| 51 | 25: optional map<string, string> osm, |
| 52 | 26: StructB structb |
Anthony F. Molinaro | 3183514 | 2012-03-22 06:23:36 +0000 | [diff] [blame] | 53 | } |