]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/test/JavaTypes.thrift
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / test / JavaTypes.thrift
CommitLineData
f67539c2
TL
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
20namespace java thrift.test
21
22struct Integer {
23 1: i32 val
24}
25
26struct String {
27 1: string val
28}
29
30struct Binary {
31 1: binary val
32}
33
34struct Boolean {
35 1: bool val
36}
37
38struct Double {
39 1: double val
40}
41
42struct Long {
43 1: i64 val
44}
45
46struct Byte {
47 1: byte val
48}
49
50struct Float {
51 1: double val
52}
53
54struct List {
55 1: list<string> vals
56}
57
58struct ArrayList {
59 1: list<string> vals
60}
61
62struct SortedMap {
63 1: map<string, string> vals
64}
65
66struct TreeMap {
67 1: map<string, string> vals
68}
69
70struct HashMap {
71 1: map<string, String> vals
72}
73
74struct Map {
75 1: map<double, Double> vals
76}
77
78struct Object {
79 1: Integer integer,
80 2: String str,
81 3: Boolean boolean_field,
82 4: Double dbl,
83 5: Byte bite,
84 6: map<i32, Integer> intmap,
85 7: Map somemap,
86}
87
88exception Exception {
89 1: string msg
90}
91
92service AsyncNonblockingService {
93 Object mymethod(
94 1: Integer integer,
95 2: String str,
96 3: Boolean boolean_field,
97 4: Double dbl,
98 5: Byte bite,
99 6: map<i32, Integer> intmap,
100 7: Map somemap,
101 ) throws (1:Exception ex);
102}
103
104struct SafeBytes {
105 1: binary bytes;
106}
107