upfluence-thrift 2.3.1 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/benchmark/gen-rb/benchmark_constants.rb +11 -0
- data/benchmark/gen-rb/benchmark_service.rb +106 -0
- data/benchmark/gen-rb/benchmark_types.rb +10 -0
- data/lib/thrift/protocol/json_protocol.rb +65 -1
- data/spec/gen-rb/base/base_service.rb +106 -0
- data/spec/gen-rb/base/base_service_constants.rb +11 -0
- data/spec/gen-rb/base/base_service_types.rb +33 -0
- data/spec/gen-rb/extended/extended_service.rb +103 -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 +343 -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 +35 -0
- data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +343 -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 +35 -0
- data/spec/gen-rb/nonblocking_service.rb +343 -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 +699 -0
- data/spec/json_protocol_spec.rb +17 -0
- data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +274 -0
- data/test/debug_proto/gen-rb/debug_proto_test_types.rb +936 -0
- data/test/debug_proto/gen-rb/empty_service.rb +39 -0
- data/test/debug_proto/gen-rb/inherited.rb +105 -0
- data/test/debug_proto/gen-rb/reverse_order_service.rb +107 -0
- data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +106 -0
- data/test/debug_proto/gen-rb/srv.rb +410 -0
- metadata +60 -2
@@ -0,0 +1,343 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (2.4.0-upfluence)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'namespaced_spec_namespace/thrift_namespaced_spec_types'
|
9
|
+
|
10
|
+
module NamespacedSpecNamespace
|
11
|
+
module NamespacedNonblockingService
|
12
|
+
SERVICE = 'NamespacedNonblockingService'.freeze
|
13
|
+
NAMESPACE = ''.freeze
|
14
|
+
|
15
|
+
class Client
|
16
|
+
def initialize(client)
|
17
|
+
@client = ::Thrift.build_client(client)
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.from_provider(provider)
|
21
|
+
Client.new(provider.build(NAMESPACE, SERVICE))
|
22
|
+
end
|
23
|
+
|
24
|
+
def greeting(english)
|
25
|
+
result = @client.call_binary(
|
26
|
+
'greeting',
|
27
|
+
Greeting_args.new(english: english),
|
28
|
+
Greeting_result
|
29
|
+
)
|
30
|
+
|
31
|
+
return result.success unless result.success.nil?
|
32
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'greeting failed: unknown result')
|
33
|
+
result
|
34
|
+
end
|
35
|
+
|
36
|
+
def block()
|
37
|
+
result = @client.call_binary(
|
38
|
+
'block',
|
39
|
+
Block_args.new(),
|
40
|
+
Block_result
|
41
|
+
)
|
42
|
+
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'block failed: unknown result')
|
45
|
+
result
|
46
|
+
end
|
47
|
+
|
48
|
+
def unblock(n)
|
49
|
+
@client.call_unary(
|
50
|
+
'unblock',
|
51
|
+
Unblock_args.new(n: n)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
55
|
+
def shutdown()
|
56
|
+
@client.call_unary(
|
57
|
+
'shutdown',
|
58
|
+
Shutdown_args.new()
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
def sleep(seconds)
|
63
|
+
result = @client.call_binary(
|
64
|
+
'sleep',
|
65
|
+
Sleep_args.new(seconds: seconds),
|
66
|
+
Sleep_result
|
67
|
+
)
|
68
|
+
|
69
|
+
nil
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
class Processor
|
75
|
+
include ::Thrift::Processor
|
76
|
+
|
77
|
+
def self.from_provider(handler, provider)
|
78
|
+
provider.build(NAMESPACE, SERVICE, Processor, handler)
|
79
|
+
end
|
80
|
+
|
81
|
+
def process_greeting(seqid, iprot, oprot)
|
82
|
+
args = read_args(iprot, Greeting_args)
|
83
|
+
result = @middleware.handle_binary('greeting', args) do |args|
|
84
|
+
result = Greeting_result.new()
|
85
|
+
result.success = @handler.greeting(args.english)
|
86
|
+
result
|
87
|
+
end
|
88
|
+
|
89
|
+
write_result(result, oprot, 'greeting', seqid)
|
90
|
+
end
|
91
|
+
|
92
|
+
def process_block(seqid, iprot, oprot)
|
93
|
+
args = read_args(iprot, Block_args)
|
94
|
+
result = @middleware.handle_binary('block', args) do |args|
|
95
|
+
result = Block_result.new()
|
96
|
+
result.success = @handler.block()
|
97
|
+
result
|
98
|
+
end
|
99
|
+
|
100
|
+
write_result(result, oprot, 'block', seqid)
|
101
|
+
end
|
102
|
+
|
103
|
+
def process_unblock(seqid, iprot, oprot)
|
104
|
+
args = read_args(iprot, Unblock_args)
|
105
|
+
@middleware.handle_unary('unblock', args) do |args|
|
106
|
+
@handler.unblock(args.n)
|
107
|
+
nil
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
def process_shutdown(seqid, iprot, oprot)
|
112
|
+
args = read_args(iprot, Shutdown_args)
|
113
|
+
@middleware.handle_unary('shutdown', args) do |args|
|
114
|
+
@handler.shutdown()
|
115
|
+
nil
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
def process_sleep(seqid, iprot, oprot)
|
120
|
+
args = read_args(iprot, Sleep_args)
|
121
|
+
result = @middleware.handle_binary('sleep', args) do |args|
|
122
|
+
result = Sleep_result.new()
|
123
|
+
@handler.sleep(args.seconds)
|
124
|
+
result
|
125
|
+
end
|
126
|
+
|
127
|
+
write_result(result, oprot, 'sleep', seqid)
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
132
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
133
|
+
|
134
|
+
class Greeting_args
|
135
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
136
|
+
|
137
|
+
NAME = 'greeting_args'.freeze
|
138
|
+
NAMESPACE = ''.freeze
|
139
|
+
|
140
|
+
THRIFT_FIELD_INDEX_ENGLISH = 1
|
141
|
+
|
142
|
+
FIELDS = {
|
143
|
+
THRIFT_FIELD_INDEX_ENGLISH => {type: ::Thrift::Types::BOOL, name: 'english'}
|
144
|
+
}
|
145
|
+
|
146
|
+
def struct_fields; FIELDS; end
|
147
|
+
|
148
|
+
def validate
|
149
|
+
end
|
150
|
+
|
151
|
+
::Thrift::Struct.generate_accessors self
|
152
|
+
::Thrift.register_struct_type self
|
153
|
+
end
|
154
|
+
|
155
|
+
class Greeting_result
|
156
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
157
|
+
|
158
|
+
NAME = 'greeting_result'.freeze
|
159
|
+
NAMESPACE = ''.freeze
|
160
|
+
|
161
|
+
THRIFT_FIELD_INDEX_SUCCESS = 0
|
162
|
+
|
163
|
+
FIELDS = {
|
164
|
+
THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::STRUCT, name: 'success', class: ::NamespacedSpecNamespace::Hello}
|
165
|
+
}
|
166
|
+
|
167
|
+
def struct_fields; FIELDS; end
|
168
|
+
|
169
|
+
def validate
|
170
|
+
end
|
171
|
+
|
172
|
+
::Thrift::Struct.generate_accessors self
|
173
|
+
::Thrift.register_struct_type self
|
174
|
+
end
|
175
|
+
|
176
|
+
class Block_args
|
177
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
178
|
+
|
179
|
+
NAME = 'block_args'.freeze
|
180
|
+
NAMESPACE = ''.freeze
|
181
|
+
|
182
|
+
|
183
|
+
FIELDS = {
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
def struct_fields; FIELDS; end
|
188
|
+
|
189
|
+
def validate
|
190
|
+
end
|
191
|
+
|
192
|
+
::Thrift::Struct.generate_accessors self
|
193
|
+
::Thrift.register_struct_type self
|
194
|
+
end
|
195
|
+
|
196
|
+
class Block_result
|
197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
198
|
+
|
199
|
+
NAME = 'block_result'.freeze
|
200
|
+
NAMESPACE = ''.freeze
|
201
|
+
|
202
|
+
THRIFT_FIELD_INDEX_SUCCESS = 0
|
203
|
+
|
204
|
+
FIELDS = {
|
205
|
+
THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::BOOL, name: 'success'}
|
206
|
+
}
|
207
|
+
|
208
|
+
def struct_fields; FIELDS; end
|
209
|
+
|
210
|
+
def validate
|
211
|
+
end
|
212
|
+
|
213
|
+
::Thrift::Struct.generate_accessors self
|
214
|
+
::Thrift.register_struct_type self
|
215
|
+
end
|
216
|
+
|
217
|
+
class Unblock_args
|
218
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
219
|
+
|
220
|
+
NAME = 'unblock_args'.freeze
|
221
|
+
NAMESPACE = ''.freeze
|
222
|
+
|
223
|
+
THRIFT_FIELD_INDEX_N = 1
|
224
|
+
|
225
|
+
FIELDS = {
|
226
|
+
THRIFT_FIELD_INDEX_N => {type: ::Thrift::Types::I32, name: 'n'}
|
227
|
+
}
|
228
|
+
|
229
|
+
def struct_fields; FIELDS; end
|
230
|
+
|
231
|
+
def validate
|
232
|
+
end
|
233
|
+
|
234
|
+
::Thrift::Struct.generate_accessors self
|
235
|
+
::Thrift.register_struct_type self
|
236
|
+
end
|
237
|
+
|
238
|
+
class Unblock_result
|
239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
240
|
+
|
241
|
+
NAME = 'unblock_result'.freeze
|
242
|
+
NAMESPACE = ''.freeze
|
243
|
+
|
244
|
+
|
245
|
+
FIELDS = {
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
def struct_fields; FIELDS; end
|
250
|
+
|
251
|
+
def validate
|
252
|
+
end
|
253
|
+
|
254
|
+
::Thrift::Struct.generate_accessors self
|
255
|
+
::Thrift.register_struct_type self
|
256
|
+
end
|
257
|
+
|
258
|
+
class Shutdown_args
|
259
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
260
|
+
|
261
|
+
NAME = 'shutdown_args'.freeze
|
262
|
+
NAMESPACE = ''.freeze
|
263
|
+
|
264
|
+
|
265
|
+
FIELDS = {
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
def struct_fields; FIELDS; end
|
270
|
+
|
271
|
+
def validate
|
272
|
+
end
|
273
|
+
|
274
|
+
::Thrift::Struct.generate_accessors self
|
275
|
+
::Thrift.register_struct_type self
|
276
|
+
end
|
277
|
+
|
278
|
+
class Shutdown_result
|
279
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
280
|
+
|
281
|
+
NAME = 'shutdown_result'.freeze
|
282
|
+
NAMESPACE = ''.freeze
|
283
|
+
|
284
|
+
|
285
|
+
FIELDS = {
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
def struct_fields; FIELDS; end
|
290
|
+
|
291
|
+
def validate
|
292
|
+
end
|
293
|
+
|
294
|
+
::Thrift::Struct.generate_accessors self
|
295
|
+
::Thrift.register_struct_type self
|
296
|
+
end
|
297
|
+
|
298
|
+
class Sleep_args
|
299
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
300
|
+
|
301
|
+
NAME = 'sleep_args'.freeze
|
302
|
+
NAMESPACE = ''.freeze
|
303
|
+
|
304
|
+
THRIFT_FIELD_INDEX_SECONDS = 1
|
305
|
+
|
306
|
+
FIELDS = {
|
307
|
+
THRIFT_FIELD_INDEX_SECONDS => {type: ::Thrift::Types::DOUBLE, name: 'seconds'}
|
308
|
+
}
|
309
|
+
|
310
|
+
def struct_fields; FIELDS; end
|
311
|
+
|
312
|
+
def validate
|
313
|
+
end
|
314
|
+
|
315
|
+
::Thrift::Struct.generate_accessors self
|
316
|
+
::Thrift.register_struct_type self
|
317
|
+
end
|
318
|
+
|
319
|
+
class Sleep_result
|
320
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
321
|
+
|
322
|
+
NAME = 'sleep_result'.freeze
|
323
|
+
NAMESPACE = ''.freeze
|
324
|
+
|
325
|
+
|
326
|
+
FIELDS = {
|
327
|
+
|
328
|
+
}
|
329
|
+
|
330
|
+
def struct_fields; FIELDS; end
|
331
|
+
|
332
|
+
def validate
|
333
|
+
end
|
334
|
+
|
335
|
+
::Thrift::Struct.generate_accessors self
|
336
|
+
::Thrift.register_struct_type self
|
337
|
+
end
|
338
|
+
|
339
|
+
::Thrift.register_service_type(self)
|
340
|
+
|
341
|
+
end
|
342
|
+
|
343
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (2.4.0-upfluence)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'namespaced_spec_namespace/thrift_namespaced_spec_types'
|
9
|
+
|
10
|
+
module NamespacedSpecNamespace
|
11
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (2.4.0-upfluence)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'other_namespace/referenced_types'
|
9
|
+
|
10
|
+
|
11
|
+
module NamespacedSpecNamespace
|
12
|
+
class Hello; end
|
13
|
+
|
14
|
+
class Hello
|
15
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
16
|
+
|
17
|
+
NAME = 'Hello'.freeze
|
18
|
+
NAMESPACE = ''.freeze
|
19
|
+
|
20
|
+
THRIFT_FIELD_INDEX_GREETING = 1
|
21
|
+
|
22
|
+
FIELDS = {
|
23
|
+
THRIFT_FIELD_INDEX_GREETING => {type: ::Thrift::Types::STRING, name: 'greeting', default: %q"hello world"}
|
24
|
+
}
|
25
|
+
|
26
|
+
def struct_fields; FIELDS; end
|
27
|
+
|
28
|
+
def validate
|
29
|
+
end
|
30
|
+
|
31
|
+
::Thrift::Struct.generate_accessors self
|
32
|
+
::Thrift.register_struct_type self
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,343 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (2.4.0-upfluence)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'thrift_spec_types'
|
9
|
+
|
10
|
+
module SpecNamespace
|
11
|
+
module NonblockingService
|
12
|
+
SERVICE = 'NonblockingService'.freeze
|
13
|
+
NAMESPACE = ''.freeze
|
14
|
+
|
15
|
+
class Client
|
16
|
+
def initialize(client)
|
17
|
+
@client = ::Thrift.build_client(client)
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.from_provider(provider)
|
21
|
+
Client.new(provider.build(NAMESPACE, SERVICE))
|
22
|
+
end
|
23
|
+
|
24
|
+
def greeting(english)
|
25
|
+
result = @client.call_binary(
|
26
|
+
'greeting',
|
27
|
+
Greeting_args.new(english: english),
|
28
|
+
Greeting_result
|
29
|
+
)
|
30
|
+
|
31
|
+
return result.success unless result.success.nil?
|
32
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'greeting failed: unknown result')
|
33
|
+
result
|
34
|
+
end
|
35
|
+
|
36
|
+
def block()
|
37
|
+
result = @client.call_binary(
|
38
|
+
'block',
|
39
|
+
Block_args.new(),
|
40
|
+
Block_result
|
41
|
+
)
|
42
|
+
|
43
|
+
return result.success unless result.success.nil?
|
44
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'block failed: unknown result')
|
45
|
+
result
|
46
|
+
end
|
47
|
+
|
48
|
+
def unblock(n)
|
49
|
+
@client.call_unary(
|
50
|
+
'unblock',
|
51
|
+
Unblock_args.new(n: n)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
55
|
+
def shutdown()
|
56
|
+
@client.call_unary(
|
57
|
+
'shutdown',
|
58
|
+
Shutdown_args.new()
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
def sleep(seconds)
|
63
|
+
result = @client.call_binary(
|
64
|
+
'sleep',
|
65
|
+
Sleep_args.new(seconds: seconds),
|
66
|
+
Sleep_result
|
67
|
+
)
|
68
|
+
|
69
|
+
nil
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
class Processor
|
75
|
+
include ::Thrift::Processor
|
76
|
+
|
77
|
+
def self.from_provider(handler, provider)
|
78
|
+
provider.build(NAMESPACE, SERVICE, Processor, handler)
|
79
|
+
end
|
80
|
+
|
81
|
+
def process_greeting(seqid, iprot, oprot)
|
82
|
+
args = read_args(iprot, Greeting_args)
|
83
|
+
result = @middleware.handle_binary('greeting', args) do |args|
|
84
|
+
result = Greeting_result.new()
|
85
|
+
result.success = @handler.greeting(args.english)
|
86
|
+
result
|
87
|
+
end
|
88
|
+
|
89
|
+
write_result(result, oprot, 'greeting', seqid)
|
90
|
+
end
|
91
|
+
|
92
|
+
def process_block(seqid, iprot, oprot)
|
93
|
+
args = read_args(iprot, Block_args)
|
94
|
+
result = @middleware.handle_binary('block', args) do |args|
|
95
|
+
result = Block_result.new()
|
96
|
+
result.success = @handler.block()
|
97
|
+
result
|
98
|
+
end
|
99
|
+
|
100
|
+
write_result(result, oprot, 'block', seqid)
|
101
|
+
end
|
102
|
+
|
103
|
+
def process_unblock(seqid, iprot, oprot)
|
104
|
+
args = read_args(iprot, Unblock_args)
|
105
|
+
@middleware.handle_unary('unblock', args) do |args|
|
106
|
+
@handler.unblock(args.n)
|
107
|
+
nil
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
def process_shutdown(seqid, iprot, oprot)
|
112
|
+
args = read_args(iprot, Shutdown_args)
|
113
|
+
@middleware.handle_unary('shutdown', args) do |args|
|
114
|
+
@handler.shutdown()
|
115
|
+
nil
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
def process_sleep(seqid, iprot, oprot)
|
120
|
+
args = read_args(iprot, Sleep_args)
|
121
|
+
result = @middleware.handle_binary('sleep', args) do |args|
|
122
|
+
result = Sleep_result.new()
|
123
|
+
@handler.sleep(args.seconds)
|
124
|
+
result
|
125
|
+
end
|
126
|
+
|
127
|
+
write_result(result, oprot, 'sleep', seqid)
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
132
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
133
|
+
|
134
|
+
class Greeting_args
|
135
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
136
|
+
|
137
|
+
NAME = 'greeting_args'.freeze
|
138
|
+
NAMESPACE = ''.freeze
|
139
|
+
|
140
|
+
THRIFT_FIELD_INDEX_ENGLISH = 1
|
141
|
+
|
142
|
+
FIELDS = {
|
143
|
+
THRIFT_FIELD_INDEX_ENGLISH => {type: ::Thrift::Types::BOOL, name: 'english'}
|
144
|
+
}
|
145
|
+
|
146
|
+
def struct_fields; FIELDS; end
|
147
|
+
|
148
|
+
def validate
|
149
|
+
end
|
150
|
+
|
151
|
+
::Thrift::Struct.generate_accessors self
|
152
|
+
::Thrift.register_struct_type self
|
153
|
+
end
|
154
|
+
|
155
|
+
class Greeting_result
|
156
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
157
|
+
|
158
|
+
NAME = 'greeting_result'.freeze
|
159
|
+
NAMESPACE = ''.freeze
|
160
|
+
|
161
|
+
THRIFT_FIELD_INDEX_SUCCESS = 0
|
162
|
+
|
163
|
+
FIELDS = {
|
164
|
+
THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::STRUCT, name: 'success', class: ::SpecNamespace::Hello}
|
165
|
+
}
|
166
|
+
|
167
|
+
def struct_fields; FIELDS; end
|
168
|
+
|
169
|
+
def validate
|
170
|
+
end
|
171
|
+
|
172
|
+
::Thrift::Struct.generate_accessors self
|
173
|
+
::Thrift.register_struct_type self
|
174
|
+
end
|
175
|
+
|
176
|
+
class Block_args
|
177
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
178
|
+
|
179
|
+
NAME = 'block_args'.freeze
|
180
|
+
NAMESPACE = ''.freeze
|
181
|
+
|
182
|
+
|
183
|
+
FIELDS = {
|
184
|
+
|
185
|
+
}
|
186
|
+
|
187
|
+
def struct_fields; FIELDS; end
|
188
|
+
|
189
|
+
def validate
|
190
|
+
end
|
191
|
+
|
192
|
+
::Thrift::Struct.generate_accessors self
|
193
|
+
::Thrift.register_struct_type self
|
194
|
+
end
|
195
|
+
|
196
|
+
class Block_result
|
197
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
198
|
+
|
199
|
+
NAME = 'block_result'.freeze
|
200
|
+
NAMESPACE = ''.freeze
|
201
|
+
|
202
|
+
THRIFT_FIELD_INDEX_SUCCESS = 0
|
203
|
+
|
204
|
+
FIELDS = {
|
205
|
+
THRIFT_FIELD_INDEX_SUCCESS => {type: ::Thrift::Types::BOOL, name: 'success'}
|
206
|
+
}
|
207
|
+
|
208
|
+
def struct_fields; FIELDS; end
|
209
|
+
|
210
|
+
def validate
|
211
|
+
end
|
212
|
+
|
213
|
+
::Thrift::Struct.generate_accessors self
|
214
|
+
::Thrift.register_struct_type self
|
215
|
+
end
|
216
|
+
|
217
|
+
class Unblock_args
|
218
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
219
|
+
|
220
|
+
NAME = 'unblock_args'.freeze
|
221
|
+
NAMESPACE = ''.freeze
|
222
|
+
|
223
|
+
THRIFT_FIELD_INDEX_N = 1
|
224
|
+
|
225
|
+
FIELDS = {
|
226
|
+
THRIFT_FIELD_INDEX_N => {type: ::Thrift::Types::I32, name: 'n'}
|
227
|
+
}
|
228
|
+
|
229
|
+
def struct_fields; FIELDS; end
|
230
|
+
|
231
|
+
def validate
|
232
|
+
end
|
233
|
+
|
234
|
+
::Thrift::Struct.generate_accessors self
|
235
|
+
::Thrift.register_struct_type self
|
236
|
+
end
|
237
|
+
|
238
|
+
class Unblock_result
|
239
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
240
|
+
|
241
|
+
NAME = 'unblock_result'.freeze
|
242
|
+
NAMESPACE = ''.freeze
|
243
|
+
|
244
|
+
|
245
|
+
FIELDS = {
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
def struct_fields; FIELDS; end
|
250
|
+
|
251
|
+
def validate
|
252
|
+
end
|
253
|
+
|
254
|
+
::Thrift::Struct.generate_accessors self
|
255
|
+
::Thrift.register_struct_type self
|
256
|
+
end
|
257
|
+
|
258
|
+
class Shutdown_args
|
259
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
260
|
+
|
261
|
+
NAME = 'shutdown_args'.freeze
|
262
|
+
NAMESPACE = ''.freeze
|
263
|
+
|
264
|
+
|
265
|
+
FIELDS = {
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
def struct_fields; FIELDS; end
|
270
|
+
|
271
|
+
def validate
|
272
|
+
end
|
273
|
+
|
274
|
+
::Thrift::Struct.generate_accessors self
|
275
|
+
::Thrift.register_struct_type self
|
276
|
+
end
|
277
|
+
|
278
|
+
class Shutdown_result
|
279
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
280
|
+
|
281
|
+
NAME = 'shutdown_result'.freeze
|
282
|
+
NAMESPACE = ''.freeze
|
283
|
+
|
284
|
+
|
285
|
+
FIELDS = {
|
286
|
+
|
287
|
+
}
|
288
|
+
|
289
|
+
def struct_fields; FIELDS; end
|
290
|
+
|
291
|
+
def validate
|
292
|
+
end
|
293
|
+
|
294
|
+
::Thrift::Struct.generate_accessors self
|
295
|
+
::Thrift.register_struct_type self
|
296
|
+
end
|
297
|
+
|
298
|
+
class Sleep_args
|
299
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
300
|
+
|
301
|
+
NAME = 'sleep_args'.freeze
|
302
|
+
NAMESPACE = ''.freeze
|
303
|
+
|
304
|
+
THRIFT_FIELD_INDEX_SECONDS = 1
|
305
|
+
|
306
|
+
FIELDS = {
|
307
|
+
THRIFT_FIELD_INDEX_SECONDS => {type: ::Thrift::Types::DOUBLE, name: 'seconds'}
|
308
|
+
}
|
309
|
+
|
310
|
+
def struct_fields; FIELDS; end
|
311
|
+
|
312
|
+
def validate
|
313
|
+
end
|
314
|
+
|
315
|
+
::Thrift::Struct.generate_accessors self
|
316
|
+
::Thrift.register_struct_type self
|
317
|
+
end
|
318
|
+
|
319
|
+
class Sleep_result
|
320
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
321
|
+
|
322
|
+
NAME = 'sleep_result'.freeze
|
323
|
+
NAMESPACE = ''.freeze
|
324
|
+
|
325
|
+
|
326
|
+
FIELDS = {
|
327
|
+
|
328
|
+
}
|
329
|
+
|
330
|
+
def struct_fields; FIELDS; end
|
331
|
+
|
332
|
+
def validate
|
333
|
+
end
|
334
|
+
|
335
|
+
::Thrift::Struct.generate_accessors self
|
336
|
+
::Thrift.register_struct_type self
|
337
|
+
end
|
338
|
+
|
339
|
+
::Thrift.register_service_type(self)
|
340
|
+
|
341
|
+
end
|
342
|
+
|
343
|
+
end
|