thrift 0.10.0.0 → 0.11.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/benchmark/gen-rb/benchmark_constants.rb +11 -0
- data/benchmark/gen-rb/benchmark_service.rb +80 -0
- data/benchmark/gen-rb/benchmark_types.rb +10 -0
- data/lib/thrift/processor.rb +10 -1
- data/lib/thrift/protocol/json_protocol.rb +1 -1
- data/spec/gen-rb/base/base_service.rb +80 -0
- data/spec/gen-rb/base/base_service_constants.rb +11 -0
- data/spec/gen-rb/base/base_service_types.rb +26 -0
- data/spec/gen-rb/extended/extended_service.rb +78 -0
- data/spec/gen-rb/extended/extended_service_constants.rb +11 -0
- data/spec/gen-rb/extended/extended_service_types.rb +12 -0
- data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +272 -0
- data/spec/gen-rb/flat/referenced_constants.rb +11 -0
- data/spec/gen-rb/flat/referenced_types.rb +17 -0
- data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +11 -0
- data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +28 -0
- data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +272 -0
- data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb +11 -0
- data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb +28 -0
- data/spec/gen-rb/nonblocking_service.rb +272 -0
- data/spec/gen-rb/other_namespace/referenced_constants.rb +11 -0
- data/spec/gen-rb/other_namespace/referenced_types.rb +17 -0
- data/spec/gen-rb/thrift_spec_constants.rb +11 -0
- data/spec/gen-rb/thrift_spec_types.rb +538 -0
- data/spec/server_spec.rb +1 -0
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +278 -0
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +781 -0
- data/test/debug_proto/gen-rb/empty_service.rb +28 -0
- data/test/debug_proto/gen-rb/inherited.rb +83 -0
- data/test/debug_proto/gen-rb/reverse_order_service.rb +86 -0
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +85 -0
- data/test/debug_proto/gen-rb/srv.rb +395 -0
- metadata +132 -75
@@ -0,0 +1,28 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.11.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'debug_proto_test_types'
|
9
|
+
|
10
|
+
module Thrift
|
11
|
+
module Test
|
12
|
+
module EmptyService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
class Processor
|
19
|
+
include ::Thrift::Processor
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.11.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'srv'
|
9
|
+
require 'debug_proto_test_types'
|
10
|
+
|
11
|
+
module Thrift
|
12
|
+
module Test
|
13
|
+
module Inherited
|
14
|
+
class Client < ::Thrift::Test::Srv::Client
|
15
|
+
include ::Thrift::Client
|
16
|
+
|
17
|
+
def identity(arg)
|
18
|
+
send_identity(arg)
|
19
|
+
return recv_identity()
|
20
|
+
end
|
21
|
+
|
22
|
+
def send_identity(arg)
|
23
|
+
send_message('identity', Identity_args, :arg => arg)
|
24
|
+
end
|
25
|
+
|
26
|
+
def recv_identity()
|
27
|
+
result = receive_message(Identity_result)
|
28
|
+
return result.success unless result.success.nil?
|
29
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'identity failed: unknown result')
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
class Processor < ::Thrift::Test::Srv::Processor
|
35
|
+
include ::Thrift::Processor
|
36
|
+
|
37
|
+
def process_identity(seqid, iprot, oprot)
|
38
|
+
args = read_args(iprot, Identity_args)
|
39
|
+
result = Identity_result.new()
|
40
|
+
result.success = @handler.identity(args.arg)
|
41
|
+
write_result(result, oprot, 'identity', seqid)
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
47
|
+
|
48
|
+
class Identity_args
|
49
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
50
|
+
ARG = 1
|
51
|
+
|
52
|
+
FIELDS = {
|
53
|
+
ARG => {:type => ::Thrift::Types::I32, :name => 'arg'}
|
54
|
+
}
|
55
|
+
|
56
|
+
def struct_fields; FIELDS; end
|
57
|
+
|
58
|
+
def validate
|
59
|
+
end
|
60
|
+
|
61
|
+
::Thrift::Struct.generate_accessors self
|
62
|
+
end
|
63
|
+
|
64
|
+
class Identity_result
|
65
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
66
|
+
SUCCESS = 0
|
67
|
+
|
68
|
+
FIELDS = {
|
69
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
|
70
|
+
}
|
71
|
+
|
72
|
+
def struct_fields; FIELDS; end
|
73
|
+
|
74
|
+
def validate
|
75
|
+
end
|
76
|
+
|
77
|
+
::Thrift::Struct.generate_accessors self
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.11.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'debug_proto_test_types'
|
9
|
+
|
10
|
+
module Thrift
|
11
|
+
module Test
|
12
|
+
module ReverseOrderService
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def myMethod(first, second, third, fourth)
|
17
|
+
send_myMethod(first, second, third, fourth)
|
18
|
+
recv_myMethod()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_myMethod(first, second, third, fourth)
|
22
|
+
send_message('myMethod', MyMethod_args, :first => first, :second => second, :third => third, :fourth => fourth)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_myMethod()
|
26
|
+
result = receive_message(MyMethod_result)
|
27
|
+
return
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
class Processor
|
33
|
+
include ::Thrift::Processor
|
34
|
+
|
35
|
+
def process_myMethod(seqid, iprot, oprot)
|
36
|
+
args = read_args(iprot, MyMethod_args)
|
37
|
+
result = MyMethod_result.new()
|
38
|
+
@handler.myMethod(args.first, args.second, args.third, args.fourth)
|
39
|
+
write_result(result, oprot, 'myMethod', seqid)
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
45
|
+
|
46
|
+
class MyMethod_args
|
47
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
48
|
+
FIRST = 4
|
49
|
+
SECOND = 3
|
50
|
+
THIRD = 2
|
51
|
+
FOURTH = 1
|
52
|
+
|
53
|
+
FIELDS = {
|
54
|
+
FIRST => {:type => ::Thrift::Types::STRING, :name => 'first'},
|
55
|
+
SECOND => {:type => ::Thrift::Types::I16, :name => 'second'},
|
56
|
+
THIRD => {:type => ::Thrift::Types::I32, :name => 'third'},
|
57
|
+
FOURTH => {:type => ::Thrift::Types::I64, :name => 'fourth'}
|
58
|
+
}
|
59
|
+
|
60
|
+
def struct_fields; FIELDS; end
|
61
|
+
|
62
|
+
def validate
|
63
|
+
end
|
64
|
+
|
65
|
+
::Thrift::Struct.generate_accessors self
|
66
|
+
end
|
67
|
+
|
68
|
+
class MyMethod_result
|
69
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
70
|
+
|
71
|
+
FIELDS = {
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
def struct_fields; FIELDS; end
|
76
|
+
|
77
|
+
def validate
|
78
|
+
end
|
79
|
+
|
80
|
+
::Thrift::Struct.generate_accessors self
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.11.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'debug_proto_test_types'
|
9
|
+
|
10
|
+
module Thrift
|
11
|
+
module Test
|
12
|
+
module ServiceForExceptionWithAMap
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def methodThatThrowsAnException()
|
17
|
+
send_methodThatThrowsAnException()
|
18
|
+
recv_methodThatThrowsAnException()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_methodThatThrowsAnException()
|
22
|
+
send_message('methodThatThrowsAnException', MethodThatThrowsAnException_args)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_methodThatThrowsAnException()
|
26
|
+
result = receive_message(MethodThatThrowsAnException_result)
|
27
|
+
raise result.xwamap unless result.xwamap.nil?
|
28
|
+
return
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
class Processor
|
34
|
+
include ::Thrift::Processor
|
35
|
+
|
36
|
+
def process_methodThatThrowsAnException(seqid, iprot, oprot)
|
37
|
+
args = read_args(iprot, MethodThatThrowsAnException_args)
|
38
|
+
result = MethodThatThrowsAnException_result.new()
|
39
|
+
begin
|
40
|
+
@handler.methodThatThrowsAnException()
|
41
|
+
rescue ::Thrift::Test::ExceptionWithAMap => xwamap
|
42
|
+
result.xwamap = xwamap
|
43
|
+
end
|
44
|
+
write_result(result, oprot, 'methodThatThrowsAnException', seqid)
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
50
|
+
|
51
|
+
class MethodThatThrowsAnException_args
|
52
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
53
|
+
|
54
|
+
FIELDS = {
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
def struct_fields; FIELDS; end
|
59
|
+
|
60
|
+
def validate
|
61
|
+
end
|
62
|
+
|
63
|
+
::Thrift::Struct.generate_accessors self
|
64
|
+
end
|
65
|
+
|
66
|
+
class MethodThatThrowsAnException_result
|
67
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
68
|
+
XWAMAP = 1
|
69
|
+
|
70
|
+
FIELDS = {
|
71
|
+
XWAMAP => {:type => ::Thrift::Types::STRUCT, :name => 'xwamap', :class => ::Thrift::Test::ExceptionWithAMap}
|
72
|
+
}
|
73
|
+
|
74
|
+
def struct_fields; FIELDS; end
|
75
|
+
|
76
|
+
def validate
|
77
|
+
end
|
78
|
+
|
79
|
+
::Thrift::Struct.generate_accessors self
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,395 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.11.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'debug_proto_test_types'
|
9
|
+
|
10
|
+
module Thrift
|
11
|
+
module Test
|
12
|
+
module Srv
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def Janky(arg)
|
17
|
+
send_Janky(arg)
|
18
|
+
return recv_Janky()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_Janky(arg)
|
22
|
+
send_message('Janky', Janky_args, :arg => arg)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_Janky()
|
26
|
+
result = receive_message(Janky_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'Janky failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
def voidMethod()
|
32
|
+
send_voidMethod()
|
33
|
+
recv_voidMethod()
|
34
|
+
end
|
35
|
+
|
36
|
+
def send_voidMethod()
|
37
|
+
send_message('voidMethod', VoidMethod_args)
|
38
|
+
end
|
39
|
+
|
40
|
+
def recv_voidMethod()
|
41
|
+
result = receive_message(VoidMethod_result)
|
42
|
+
return
|
43
|
+
end
|
44
|
+
|
45
|
+
def primitiveMethod()
|
46
|
+
send_primitiveMethod()
|
47
|
+
return recv_primitiveMethod()
|
48
|
+
end
|
49
|
+
|
50
|
+
def send_primitiveMethod()
|
51
|
+
send_message('primitiveMethod', PrimitiveMethod_args)
|
52
|
+
end
|
53
|
+
|
54
|
+
def recv_primitiveMethod()
|
55
|
+
result = receive_message(PrimitiveMethod_result)
|
56
|
+
return result.success unless result.success.nil?
|
57
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'primitiveMethod failed: unknown result')
|
58
|
+
end
|
59
|
+
|
60
|
+
def structMethod()
|
61
|
+
send_structMethod()
|
62
|
+
return recv_structMethod()
|
63
|
+
end
|
64
|
+
|
65
|
+
def send_structMethod()
|
66
|
+
send_message('structMethod', StructMethod_args)
|
67
|
+
end
|
68
|
+
|
69
|
+
def recv_structMethod()
|
70
|
+
result = receive_message(StructMethod_result)
|
71
|
+
return result.success unless result.success.nil?
|
72
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'structMethod failed: unknown result')
|
73
|
+
end
|
74
|
+
|
75
|
+
def methodWithDefaultArgs(something)
|
76
|
+
send_methodWithDefaultArgs(something)
|
77
|
+
recv_methodWithDefaultArgs()
|
78
|
+
end
|
79
|
+
|
80
|
+
def send_methodWithDefaultArgs(something)
|
81
|
+
send_message('methodWithDefaultArgs', MethodWithDefaultArgs_args, :something => something)
|
82
|
+
end
|
83
|
+
|
84
|
+
def recv_methodWithDefaultArgs()
|
85
|
+
result = receive_message(MethodWithDefaultArgs_result)
|
86
|
+
return
|
87
|
+
end
|
88
|
+
|
89
|
+
def onewayMethod()
|
90
|
+
send_onewayMethod()
|
91
|
+
end
|
92
|
+
|
93
|
+
def send_onewayMethod()
|
94
|
+
send_oneway_message('onewayMethod', OnewayMethod_args)
|
95
|
+
end
|
96
|
+
def declaredExceptionMethod(shouldThrow)
|
97
|
+
send_declaredExceptionMethod(shouldThrow)
|
98
|
+
return recv_declaredExceptionMethod()
|
99
|
+
end
|
100
|
+
|
101
|
+
def send_declaredExceptionMethod(shouldThrow)
|
102
|
+
send_message('declaredExceptionMethod', DeclaredExceptionMethod_args, :shouldThrow => shouldThrow)
|
103
|
+
end
|
104
|
+
|
105
|
+
def recv_declaredExceptionMethod()
|
106
|
+
result = receive_message(DeclaredExceptionMethod_result)
|
107
|
+
return result.success unless result.success.nil?
|
108
|
+
raise result.xwamap unless result.xwamap.nil?
|
109
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'declaredExceptionMethod failed: unknown result')
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
113
|
+
|
114
|
+
class Processor
|
115
|
+
include ::Thrift::Processor
|
116
|
+
|
117
|
+
def process_Janky(seqid, iprot, oprot)
|
118
|
+
args = read_args(iprot, Janky_args)
|
119
|
+
result = Janky_result.new()
|
120
|
+
result.success = @handler.Janky(args.arg)
|
121
|
+
write_result(result, oprot, 'Janky', seqid)
|
122
|
+
end
|
123
|
+
|
124
|
+
def process_voidMethod(seqid, iprot, oprot)
|
125
|
+
args = read_args(iprot, VoidMethod_args)
|
126
|
+
result = VoidMethod_result.new()
|
127
|
+
@handler.voidMethod()
|
128
|
+
write_result(result, oprot, 'voidMethod', seqid)
|
129
|
+
end
|
130
|
+
|
131
|
+
def process_primitiveMethod(seqid, iprot, oprot)
|
132
|
+
args = read_args(iprot, PrimitiveMethod_args)
|
133
|
+
result = PrimitiveMethod_result.new()
|
134
|
+
result.success = @handler.primitiveMethod()
|
135
|
+
write_result(result, oprot, 'primitiveMethod', seqid)
|
136
|
+
end
|
137
|
+
|
138
|
+
def process_structMethod(seqid, iprot, oprot)
|
139
|
+
args = read_args(iprot, StructMethod_args)
|
140
|
+
result = StructMethod_result.new()
|
141
|
+
result.success = @handler.structMethod()
|
142
|
+
write_result(result, oprot, 'structMethod', seqid)
|
143
|
+
end
|
144
|
+
|
145
|
+
def process_methodWithDefaultArgs(seqid, iprot, oprot)
|
146
|
+
args = read_args(iprot, MethodWithDefaultArgs_args)
|
147
|
+
result = MethodWithDefaultArgs_result.new()
|
148
|
+
@handler.methodWithDefaultArgs(args.something)
|
149
|
+
write_result(result, oprot, 'methodWithDefaultArgs', seqid)
|
150
|
+
end
|
151
|
+
|
152
|
+
def process_onewayMethod(seqid, iprot, oprot)
|
153
|
+
args = read_args(iprot, OnewayMethod_args)
|
154
|
+
@handler.onewayMethod()
|
155
|
+
return
|
156
|
+
end
|
157
|
+
|
158
|
+
def process_declaredExceptionMethod(seqid, iprot, oprot)
|
159
|
+
args = read_args(iprot, DeclaredExceptionMethod_args)
|
160
|
+
result = DeclaredExceptionMethod_result.new()
|
161
|
+
begin
|
162
|
+
result.success = @handler.declaredExceptionMethod(args.shouldThrow)
|
163
|
+
rescue ::Thrift::Test::ExceptionWithAMap => xwamap
|
164
|
+
result.xwamap = xwamap
|
165
|
+
end
|
166
|
+
write_result(result, oprot, 'declaredExceptionMethod', seqid)
|
167
|
+
end
|
168
|
+
|
169
|
+
end
|
170
|
+
|
171
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
172
|
+
|
173
|
+
class Janky_args
|
174
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
175
|
+
ARG = 1
|
176
|
+
|
177
|
+
FIELDS = {
|
178
|
+
ARG => {:type => ::Thrift::Types::I32, :name => 'arg'}
|
179
|
+
}
|
180
|
+
|
181
|
+
def struct_fields; FIELDS; end
|
182
|
+
|
183
|
+
def validate
|
184
|
+
end
|
185
|
+
|
186
|
+
::Thrift::Struct.generate_accessors self
|
187
|
+
end
|
188
|
+
|
189
|
+
class Janky_result
|
190
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
191
|
+
SUCCESS = 0
|
192
|
+
|
193
|
+
FIELDS = {
|
194
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
|
195
|
+
}
|
196
|
+
|
197
|
+
def struct_fields; FIELDS; end
|
198
|
+
|
199
|
+
def validate
|
200
|
+
end
|
201
|
+
|
202
|
+
::Thrift::Struct.generate_accessors self
|
203
|
+
end
|
204
|
+
|
205
|
+
class VoidMethod_args
|
206
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
207
|
+
|
208
|
+
FIELDS = {
|
209
|
+
|
210
|
+
}
|
211
|
+
|
212
|
+
def struct_fields; FIELDS; end
|
213
|
+
|
214
|
+
def validate
|
215
|
+
end
|
216
|
+
|
217
|
+
::Thrift::Struct.generate_accessors self
|
218
|
+
end
|
219
|
+
|
220
|
+
class VoidMethod_result
|
221
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
222
|
+
|
223
|
+
FIELDS = {
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
def struct_fields; FIELDS; end
|
228
|
+
|
229
|
+
def validate
|
230
|
+
end
|
231
|
+
|
232
|
+
::Thrift::Struct.generate_accessors self
|
233
|
+
end
|
234
|
+
|
235
|
+
class PrimitiveMethod_args
|
236
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
237
|
+
|
238
|
+
FIELDS = {
|
239
|
+
|
240
|
+
}
|
241
|
+
|
242
|
+
def struct_fields; FIELDS; end
|
243
|
+
|
244
|
+
def validate
|
245
|
+
end
|
246
|
+
|
247
|
+
::Thrift::Struct.generate_accessors self
|
248
|
+
end
|
249
|
+
|
250
|
+
class PrimitiveMethod_result
|
251
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
252
|
+
SUCCESS = 0
|
253
|
+
|
254
|
+
FIELDS = {
|
255
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
|
256
|
+
}
|
257
|
+
|
258
|
+
def struct_fields; FIELDS; end
|
259
|
+
|
260
|
+
def validate
|
261
|
+
end
|
262
|
+
|
263
|
+
::Thrift::Struct.generate_accessors self
|
264
|
+
end
|
265
|
+
|
266
|
+
class StructMethod_args
|
267
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
268
|
+
|
269
|
+
FIELDS = {
|
270
|
+
|
271
|
+
}
|
272
|
+
|
273
|
+
def struct_fields; FIELDS; end
|
274
|
+
|
275
|
+
def validate
|
276
|
+
end
|
277
|
+
|
278
|
+
::Thrift::Struct.generate_accessors self
|
279
|
+
end
|
280
|
+
|
281
|
+
class StructMethod_result
|
282
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
283
|
+
SUCCESS = 0
|
284
|
+
|
285
|
+
FIELDS = {
|
286
|
+
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Thrift::Test::CompactProtoTestStruct}
|
287
|
+
}
|
288
|
+
|
289
|
+
def struct_fields; FIELDS; end
|
290
|
+
|
291
|
+
def validate
|
292
|
+
end
|
293
|
+
|
294
|
+
::Thrift::Struct.generate_accessors self
|
295
|
+
end
|
296
|
+
|
297
|
+
class MethodWithDefaultArgs_args
|
298
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
299
|
+
SOMETHING = 1
|
300
|
+
|
301
|
+
FIELDS = {
|
302
|
+
SOMETHING => {:type => ::Thrift::Types::I32, :name => 'something', :default => 2}
|
303
|
+
}
|
304
|
+
|
305
|
+
def struct_fields; FIELDS; end
|
306
|
+
|
307
|
+
def validate
|
308
|
+
end
|
309
|
+
|
310
|
+
::Thrift::Struct.generate_accessors self
|
311
|
+
end
|
312
|
+
|
313
|
+
class MethodWithDefaultArgs_result
|
314
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
315
|
+
|
316
|
+
FIELDS = {
|
317
|
+
|
318
|
+
}
|
319
|
+
|
320
|
+
def struct_fields; FIELDS; end
|
321
|
+
|
322
|
+
def validate
|
323
|
+
end
|
324
|
+
|
325
|
+
::Thrift::Struct.generate_accessors self
|
326
|
+
end
|
327
|
+
|
328
|
+
class OnewayMethod_args
|
329
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
330
|
+
|
331
|
+
FIELDS = {
|
332
|
+
|
333
|
+
}
|
334
|
+
|
335
|
+
def struct_fields; FIELDS; end
|
336
|
+
|
337
|
+
def validate
|
338
|
+
end
|
339
|
+
|
340
|
+
::Thrift::Struct.generate_accessors self
|
341
|
+
end
|
342
|
+
|
343
|
+
class OnewayMethod_result
|
344
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
345
|
+
|
346
|
+
FIELDS = {
|
347
|
+
|
348
|
+
}
|
349
|
+
|
350
|
+
def struct_fields; FIELDS; end
|
351
|
+
|
352
|
+
def validate
|
353
|
+
end
|
354
|
+
|
355
|
+
::Thrift::Struct.generate_accessors self
|
356
|
+
end
|
357
|
+
|
358
|
+
class DeclaredExceptionMethod_args
|
359
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
360
|
+
SHOULDTHROW = 1
|
361
|
+
|
362
|
+
FIELDS = {
|
363
|
+
SHOULDTHROW => {:type => ::Thrift::Types::BOOL, :name => 'shouldThrow'}
|
364
|
+
}
|
365
|
+
|
366
|
+
def struct_fields; FIELDS; end
|
367
|
+
|
368
|
+
def validate
|
369
|
+
end
|
370
|
+
|
371
|
+
::Thrift::Struct.generate_accessors self
|
372
|
+
end
|
373
|
+
|
374
|
+
class DeclaredExceptionMethod_result
|
375
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
376
|
+
SUCCESS = 0
|
377
|
+
XWAMAP = 1
|
378
|
+
|
379
|
+
FIELDS = {
|
380
|
+
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
|
381
|
+
XWAMAP => {:type => ::Thrift::Types::STRUCT, :name => 'xwamap', :class => ::Thrift::Test::ExceptionWithAMap}
|
382
|
+
}
|
383
|
+
|
384
|
+
def struct_fields; FIELDS; end
|
385
|
+
|
386
|
+
def validate
|
387
|
+
end
|
388
|
+
|
389
|
+
::Thrift::Struct.generate_accessors self
|
390
|
+
end
|
391
|
+
|
392
|
+
end
|
393
|
+
|
394
|
+
end
|
395
|
+
end
|