/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace java org.apache.avro.thrift.test enum E { X = 1, Y = 2, Z = 3, } struct Nested { 1: i32 x } union FooOrBar { 1: string foo; 2: string bar; } // contains each primitive type struct Test { 1: bool boolField 2: byte byteField 16: optional byte byteOptionalField 3: i16 i16Field 15: optional i16 i16OptionalField 4: optional i32 i32Field 5: i64 i64Field 6: double doubleField 7: string stringField 8: optional binary binaryField 9: map mapField 10: list listField 11: set setField 12: E enumField 13: Nested structField 14: FooOrBar fooOrBar } exception Error { 1: string message, } service Foo { void ping(), i32 add(1:i32 num1, 2:i32 num2), oneway void zip(), }