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 20struct structA { 21 1: required i64 sa_i 22} 23 24struct all_referenced { 25 1: optional string s = "DEFAULT" (cpp.ref = ""), 26 2: optional i64 i = 42 (cpp.ref = ""), 27 3: optional bool b = false (cpp.ref = ""), 28 4: optional string s2 (cpp.ref = ""), 29 5: optional i64 i2 (cpp.ref = ""), 30 6: optional bool b2 (cpp.ref = ""), 31 7: optional structA aa (cpp.ref = ""), 32 9: optional list<i64> l (cpp.ref = ""), 33 10: optional list<i64> l2 = [1, 2] (cpp.ref = ""), 34 11: optional map<i64, i64> m (cpp.ref = ""), 35 12: optional map<i64, i64> m2 = {1:2, 3:4} (cpp.ref = ""), 36 13: optional binary bin (cpp.ref = ""), 37 14: optional binary bin2 = "asdf" (cpp.ref = ""), 38 39 15: required string ref_s = "DEFAULT" (cpp.ref = ""), 40 16: required i64 ref_i = 42 (cpp.ref = ""), 41 17: required bool ref_b = false (cpp.ref = ""), 42 18: required string ref_s2 (cpp.ref = ""), 43 19: required i64 ref_i2 (cpp.ref = ""), 44 20: required bool ref_b2 (cpp.ref = ""), 45 21: required structA ref_aa (cpp.ref = ""), 46 22: required list<i64> ref_l (cpp.ref = ""), 47 23: required list<i64> ref_l2 = [1, 2] (cpp.ref = ""), 48 24: required map<i64, i64> ref_m (cpp.ref = ""), 49 25: required map<i64, i64> ref_m2 = {1:2, 3:4} (cpp.ref = ""), 50 26: required binary ref_bin (cpp.ref = ""), 51 27: required binary ref_bin2 = "asdf" (cpp.ref = ""), 52 53} 54 55struct structB { 56 1: required structA required_struct_thing 57 2: optional structA optional_struct_thing 58} 59