Subversion Repositories SmartDukaan

Rev

Rev 30 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ashish 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
 * Contains some contributions under the Thrift Software License.
20
 * Please see doc/old-thrift-license.txt in the Thrift distribution for
21
 * details.
22
 */
23
 
24
namespace cpp thrift.test
25
namespace java thrift.test
26
 
27
struct OldSchool {
28
  1: i16    im_int;
29
  2: string im_str;
30
  3: list<map<i32,string>> im_big;
31
}
32
 
33
struct Simple {
34
  1: /* :) */ i16 im_default;
35
  2: required i16 im_required;
36
  3: optional i16 im_optional;
37
}
38
 
39
struct Tricky1 {
40
  1: /* :) */ i16 im_default;
41
}
42
 
43
struct Tricky2 {
44
  1: optional i16 im_optional;
45
}
46
 
47
struct Tricky3 {
48
  1: required i16 im_required;
49
}
50
 
51
struct Complex {
52
  1:          i16 cp_default;
53
  2: required i16 cp_required;
54
  3: optional i16 cp_optional;
55
  4:          map<i16,Simple> the_map;
56
  5: required Simple req_simp;
57
  6: optional Simple opt_simp;
58
}
59
 
60
struct ManyOpt {
61
  1: optional i32 opt1;
62
  2: optional i32 opt2;
63
  3: optional i32 opt3;
64
  4:          i32 def4;
65
  5: optional i32 opt5;
66
  6: optional i32 opt6;
67
}
68
 
69
struct JavaTestHelper {
70
  1: required i32    req_int;
71
  2: optional i32    opt_int;
72
  3: required string req_obj;
73
  4: optional string opt_obj;
74
  5: required binary req_bin;
75
  6: optional binary opt_bin;
76
}