| 869 |
rajveer |
1 |
#test
|
| 777 |
rajveer |
2 |
# Autogenerated by Thrift
|
|
|
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
|
|
8 |
from ttypes import *
|
|
|
9 |
from thrift.Thrift import TProcessor
|
|
|
10 |
from thrift.transport import TTransport
|
|
|
11 |
from thrift.protocol import TBinaryProtocol
|
|
|
12 |
try:
|
|
|
13 |
from thrift.protocol import fastbinary
|
|
|
14 |
except:
|
|
|
15 |
fastbinary = None
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
class Iface:
|
|
|
19 |
def sayHello(self, message):
|
|
|
20 |
"""
|
|
|
21 |
Parameters:
|
|
|
22 |
- message
|
|
|
23 |
"""
|
|
|
24 |
pass
|
|
|
25 |
|
|
|
26 |
def getUser(self, id):
|
|
|
27 |
"""
|
|
|
28 |
Parameters:
|
|
|
29 |
- id
|
|
|
30 |
"""
|
|
|
31 |
pass
|
|
|
32 |
|
| 866 |
rajveer |
33 |
def getAddressId(self, ):
|
|
|
34 |
pass
|
|
|
35 |
|
|
|
36 |
def getAddress(self, ):
|
|
|
37 |
pass
|
|
|
38 |
|
| 777 |
rajveer |
39 |
def createUser(self, name):
|
|
|
40 |
"""
|
|
|
41 |
Parameters:
|
|
|
42 |
- name
|
|
|
43 |
"""
|
|
|
44 |
pass
|
|
|
45 |
|
|
|
46 |
def closeSession(self, ):
|
|
|
47 |
pass
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
class Client(Iface):
|
|
|
51 |
def __init__(self, iprot, oprot=None):
|
|
|
52 |
self._iprot = self._oprot = iprot
|
|
|
53 |
if oprot != None:
|
|
|
54 |
self._oprot = oprot
|
|
|
55 |
self._seqid = 0
|
|
|
56 |
|
|
|
57 |
def sayHello(self, message):
|
|
|
58 |
"""
|
|
|
59 |
Parameters:
|
|
|
60 |
- message
|
|
|
61 |
"""
|
|
|
62 |
self.send_sayHello(message)
|
|
|
63 |
self.recv_sayHello()
|
|
|
64 |
|
|
|
65 |
def send_sayHello(self, message):
|
|
|
66 |
self._oprot.writeMessageBegin('sayHello', TMessageType.CALL, self._seqid)
|
|
|
67 |
args = sayHello_args()
|
|
|
68 |
args.message = message
|
|
|
69 |
args.write(self._oprot)
|
|
|
70 |
self._oprot.writeMessageEnd()
|
|
|
71 |
self._oprot.trans.flush()
|
|
|
72 |
|
|
|
73 |
def recv_sayHello(self, ):
|
|
|
74 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
75 |
if mtype == TMessageType.EXCEPTION:
|
|
|
76 |
x = TApplicationException()
|
|
|
77 |
x.read(self._iprot)
|
|
|
78 |
self._iprot.readMessageEnd()
|
|
|
79 |
raise x
|
|
|
80 |
result = sayHello_result()
|
|
|
81 |
result.read(self._iprot)
|
|
|
82 |
self._iprot.readMessageEnd()
|
|
|
83 |
return
|
|
|
84 |
|
|
|
85 |
def getUser(self, id):
|
|
|
86 |
"""
|
|
|
87 |
Parameters:
|
|
|
88 |
- id
|
|
|
89 |
"""
|
|
|
90 |
self.send_getUser(id)
|
|
|
91 |
return self.recv_getUser()
|
|
|
92 |
|
|
|
93 |
def send_getUser(self, id):
|
|
|
94 |
self._oprot.writeMessageBegin('getUser', TMessageType.CALL, self._seqid)
|
|
|
95 |
args = getUser_args()
|
|
|
96 |
args.id = id
|
|
|
97 |
args.write(self._oprot)
|
|
|
98 |
self._oprot.writeMessageEnd()
|
|
|
99 |
self._oprot.trans.flush()
|
|
|
100 |
|
|
|
101 |
def recv_getUser(self, ):
|
|
|
102 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
103 |
if mtype == TMessageType.EXCEPTION:
|
|
|
104 |
x = TApplicationException()
|
|
|
105 |
x.read(self._iprot)
|
|
|
106 |
self._iprot.readMessageEnd()
|
|
|
107 |
raise x
|
|
|
108 |
result = getUser_result()
|
|
|
109 |
result.read(self._iprot)
|
|
|
110 |
self._iprot.readMessageEnd()
|
|
|
111 |
if result.success != None:
|
|
|
112 |
return result.success
|
|
|
113 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getUser failed: unknown result");
|
|
|
114 |
|
| 866 |
rajveer |
115 |
def getAddressId(self, ):
|
|
|
116 |
self.send_getAddressId()
|
|
|
117 |
return self.recv_getAddressId()
|
|
|
118 |
|
|
|
119 |
def send_getAddressId(self, ):
|
|
|
120 |
self._oprot.writeMessageBegin('getAddressId', TMessageType.CALL, self._seqid)
|
|
|
121 |
args = getAddressId_args()
|
|
|
122 |
args.write(self._oprot)
|
|
|
123 |
self._oprot.writeMessageEnd()
|
|
|
124 |
self._oprot.trans.flush()
|
|
|
125 |
|
|
|
126 |
def recv_getAddressId(self, ):
|
|
|
127 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
128 |
if mtype == TMessageType.EXCEPTION:
|
|
|
129 |
x = TApplicationException()
|
|
|
130 |
x.read(self._iprot)
|
|
|
131 |
self._iprot.readMessageEnd()
|
|
|
132 |
raise x
|
|
|
133 |
result = getAddressId_result()
|
|
|
134 |
result.read(self._iprot)
|
|
|
135 |
self._iprot.readMessageEnd()
|
|
|
136 |
if result.success != None:
|
|
|
137 |
return result.success
|
|
|
138 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddressId failed: unknown result");
|
|
|
139 |
|
|
|
140 |
def getAddress(self, ):
|
|
|
141 |
self.send_getAddress()
|
|
|
142 |
return self.recv_getAddress()
|
|
|
143 |
|
|
|
144 |
def send_getAddress(self, ):
|
|
|
145 |
self._oprot.writeMessageBegin('getAddress', TMessageType.CALL, self._seqid)
|
|
|
146 |
args = getAddress_args()
|
|
|
147 |
args.write(self._oprot)
|
|
|
148 |
self._oprot.writeMessageEnd()
|
|
|
149 |
self._oprot.trans.flush()
|
|
|
150 |
|
|
|
151 |
def recv_getAddress(self, ):
|
|
|
152 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
153 |
if mtype == TMessageType.EXCEPTION:
|
|
|
154 |
x = TApplicationException()
|
|
|
155 |
x.read(self._iprot)
|
|
|
156 |
self._iprot.readMessageEnd()
|
|
|
157 |
raise x
|
|
|
158 |
result = getAddress_result()
|
|
|
159 |
result.read(self._iprot)
|
|
|
160 |
self._iprot.readMessageEnd()
|
|
|
161 |
if result.success != None:
|
|
|
162 |
return result.success
|
|
|
163 |
raise TApplicationException(TApplicationException.MISSING_RESULT, "getAddress failed: unknown result");
|
|
|
164 |
|
| 777 |
rajveer |
165 |
def createUser(self, name):
|
|
|
166 |
"""
|
|
|
167 |
Parameters:
|
|
|
168 |
- name
|
|
|
169 |
"""
|
|
|
170 |
self.send_createUser(name)
|
|
|
171 |
self.recv_createUser()
|
|
|
172 |
|
|
|
173 |
def send_createUser(self, name):
|
|
|
174 |
self._oprot.writeMessageBegin('createUser', TMessageType.CALL, self._seqid)
|
|
|
175 |
args = createUser_args()
|
|
|
176 |
args.name = name
|
|
|
177 |
args.write(self._oprot)
|
|
|
178 |
self._oprot.writeMessageEnd()
|
|
|
179 |
self._oprot.trans.flush()
|
|
|
180 |
|
|
|
181 |
def recv_createUser(self, ):
|
|
|
182 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
183 |
if mtype == TMessageType.EXCEPTION:
|
|
|
184 |
x = TApplicationException()
|
|
|
185 |
x.read(self._iprot)
|
|
|
186 |
self._iprot.readMessageEnd()
|
|
|
187 |
raise x
|
|
|
188 |
result = createUser_result()
|
|
|
189 |
result.read(self._iprot)
|
|
|
190 |
self._iprot.readMessageEnd()
|
|
|
191 |
return
|
|
|
192 |
|
|
|
193 |
def closeSession(self, ):
|
|
|
194 |
self.send_closeSession()
|
|
|
195 |
self.recv_closeSession()
|
|
|
196 |
|
|
|
197 |
def send_closeSession(self, ):
|
|
|
198 |
self._oprot.writeMessageBegin('closeSession', TMessageType.CALL, self._seqid)
|
|
|
199 |
args = closeSession_args()
|
|
|
200 |
args.write(self._oprot)
|
|
|
201 |
self._oprot.writeMessageEnd()
|
|
|
202 |
self._oprot.trans.flush()
|
|
|
203 |
|
|
|
204 |
def recv_closeSession(self, ):
|
|
|
205 |
(fname, mtype, rseqid) = self._iprot.readMessageBegin()
|
|
|
206 |
if mtype == TMessageType.EXCEPTION:
|
|
|
207 |
x = TApplicationException()
|
|
|
208 |
x.read(self._iprot)
|
|
|
209 |
self._iprot.readMessageEnd()
|
|
|
210 |
raise x
|
|
|
211 |
result = closeSession_result()
|
|
|
212 |
result.read(self._iprot)
|
|
|
213 |
self._iprot.readMessageEnd()
|
|
|
214 |
return
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
class Processor(Iface, TProcessor):
|
|
|
218 |
def __init__(self, handler):
|
|
|
219 |
self._handler = handler
|
|
|
220 |
self._processMap = {}
|
|
|
221 |
self._processMap["sayHello"] = Processor.process_sayHello
|
|
|
222 |
self._processMap["getUser"] = Processor.process_getUser
|
| 866 |
rajveer |
223 |
self._processMap["getAddressId"] = Processor.process_getAddressId
|
|
|
224 |
self._processMap["getAddress"] = Processor.process_getAddress
|
| 777 |
rajveer |
225 |
self._processMap["createUser"] = Processor.process_createUser
|
|
|
226 |
self._processMap["closeSession"] = Processor.process_closeSession
|
|
|
227 |
|
|
|
228 |
def process(self, iprot, oprot):
|
|
|
229 |
(name, type, seqid) = iprot.readMessageBegin()
|
|
|
230 |
if name not in self._processMap:
|
|
|
231 |
iprot.skip(TType.STRUCT)
|
|
|
232 |
iprot.readMessageEnd()
|
|
|
233 |
x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
|
|
|
234 |
oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
|
|
|
235 |
x.write(oprot)
|
|
|
236 |
oprot.writeMessageEnd()
|
|
|
237 |
oprot.trans.flush()
|
|
|
238 |
return
|
|
|
239 |
else:
|
|
|
240 |
self._processMap[name](self, seqid, iprot, oprot)
|
|
|
241 |
return True
|
|
|
242 |
|
|
|
243 |
def process_sayHello(self, seqid, iprot, oprot):
|
|
|
244 |
args = sayHello_args()
|
|
|
245 |
args.read(iprot)
|
|
|
246 |
iprot.readMessageEnd()
|
|
|
247 |
result = sayHello_result()
|
|
|
248 |
self._handler.sayHello(args.message)
|
|
|
249 |
oprot.writeMessageBegin("sayHello", TMessageType.REPLY, seqid)
|
|
|
250 |
result.write(oprot)
|
|
|
251 |
oprot.writeMessageEnd()
|
|
|
252 |
oprot.trans.flush()
|
|
|
253 |
|
|
|
254 |
def process_getUser(self, seqid, iprot, oprot):
|
|
|
255 |
args = getUser_args()
|
|
|
256 |
args.read(iprot)
|
|
|
257 |
iprot.readMessageEnd()
|
|
|
258 |
result = getUser_result()
|
|
|
259 |
result.success = self._handler.getUser(args.id)
|
|
|
260 |
oprot.writeMessageBegin("getUser", TMessageType.REPLY, seqid)
|
|
|
261 |
result.write(oprot)
|
|
|
262 |
oprot.writeMessageEnd()
|
|
|
263 |
oprot.trans.flush()
|
|
|
264 |
|
| 866 |
rajveer |
265 |
def process_getAddressId(self, seqid, iprot, oprot):
|
|
|
266 |
args = getAddressId_args()
|
|
|
267 |
args.read(iprot)
|
|
|
268 |
iprot.readMessageEnd()
|
|
|
269 |
result = getAddressId_result()
|
|
|
270 |
result.success = self._handler.getAddressId()
|
|
|
271 |
oprot.writeMessageBegin("getAddressId", TMessageType.REPLY, seqid)
|
|
|
272 |
result.write(oprot)
|
|
|
273 |
oprot.writeMessageEnd()
|
|
|
274 |
oprot.trans.flush()
|
|
|
275 |
|
|
|
276 |
def process_getAddress(self, seqid, iprot, oprot):
|
|
|
277 |
args = getAddress_args()
|
|
|
278 |
args.read(iprot)
|
|
|
279 |
iprot.readMessageEnd()
|
|
|
280 |
result = getAddress_result()
|
|
|
281 |
result.success = self._handler.getAddress()
|
|
|
282 |
oprot.writeMessageBegin("getAddress", TMessageType.REPLY, seqid)
|
|
|
283 |
result.write(oprot)
|
|
|
284 |
oprot.writeMessageEnd()
|
|
|
285 |
oprot.trans.flush()
|
|
|
286 |
|
| 777 |
rajveer |
287 |
def process_createUser(self, seqid, iprot, oprot):
|
|
|
288 |
args = createUser_args()
|
|
|
289 |
args.read(iprot)
|
|
|
290 |
iprot.readMessageEnd()
|
|
|
291 |
result = createUser_result()
|
|
|
292 |
self._handler.createUser(args.name)
|
|
|
293 |
oprot.writeMessageBegin("createUser", TMessageType.REPLY, seqid)
|
|
|
294 |
result.write(oprot)
|
|
|
295 |
oprot.writeMessageEnd()
|
|
|
296 |
oprot.trans.flush()
|
|
|
297 |
|
|
|
298 |
def process_closeSession(self, seqid, iprot, oprot):
|
|
|
299 |
args = closeSession_args()
|
|
|
300 |
args.read(iprot)
|
|
|
301 |
iprot.readMessageEnd()
|
|
|
302 |
result = closeSession_result()
|
|
|
303 |
self._handler.closeSession()
|
|
|
304 |
oprot.writeMessageBegin("closeSession", TMessageType.REPLY, seqid)
|
|
|
305 |
result.write(oprot)
|
|
|
306 |
oprot.writeMessageEnd()
|
|
|
307 |
oprot.trans.flush()
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
# HELPER FUNCTIONS AND STRUCTURES
|
|
|
311 |
|
|
|
312 |
class sayHello_args:
|
|
|
313 |
"""
|
|
|
314 |
Attributes:
|
|
|
315 |
- message
|
|
|
316 |
"""
|
|
|
317 |
|
|
|
318 |
thrift_spec = (
|
|
|
319 |
None, # 0
|
|
|
320 |
(1, TType.STRING, 'message', None, None, ), # 1
|
|
|
321 |
)
|
|
|
322 |
|
|
|
323 |
def __init__(self, message=None,):
|
|
|
324 |
self.message = message
|
|
|
325 |
|
|
|
326 |
def read(self, iprot):
|
|
|
327 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
328 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
329 |
return
|
|
|
330 |
iprot.readStructBegin()
|
|
|
331 |
while True:
|
|
|
332 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
333 |
if ftype == TType.STOP:
|
|
|
334 |
break
|
|
|
335 |
if fid == 1:
|
|
|
336 |
if ftype == TType.STRING:
|
|
|
337 |
self.message = iprot.readString();
|
|
|
338 |
else:
|
|
|
339 |
iprot.skip(ftype)
|
|
|
340 |
else:
|
|
|
341 |
iprot.skip(ftype)
|
|
|
342 |
iprot.readFieldEnd()
|
|
|
343 |
iprot.readStructEnd()
|
|
|
344 |
|
|
|
345 |
def write(self, oprot):
|
|
|
346 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
347 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
348 |
return
|
|
|
349 |
oprot.writeStructBegin('sayHello_args')
|
|
|
350 |
if self.message != None:
|
|
|
351 |
oprot.writeFieldBegin('message', TType.STRING, 1)
|
|
|
352 |
oprot.writeString(self.message)
|
|
|
353 |
oprot.writeFieldEnd()
|
|
|
354 |
oprot.writeFieldStop()
|
|
|
355 |
oprot.writeStructEnd()
|
|
|
356 |
|
|
|
357 |
def __repr__(self):
|
|
|
358 |
L = ['%s=%r' % (key, value)
|
|
|
359 |
for key, value in self.__dict__.iteritems()]
|
|
|
360 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
361 |
|
|
|
362 |
def __eq__(self, other):
|
|
|
363 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
364 |
|
|
|
365 |
def __ne__(self, other):
|
|
|
366 |
return not (self == other)
|
|
|
367 |
|
|
|
368 |
class sayHello_result:
|
|
|
369 |
|
|
|
370 |
thrift_spec = (
|
|
|
371 |
)
|
|
|
372 |
|
|
|
373 |
def read(self, iprot):
|
|
|
374 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
375 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
376 |
return
|
|
|
377 |
iprot.readStructBegin()
|
|
|
378 |
while True:
|
|
|
379 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
380 |
if ftype == TType.STOP:
|
|
|
381 |
break
|
|
|
382 |
else:
|
|
|
383 |
iprot.skip(ftype)
|
|
|
384 |
iprot.readFieldEnd()
|
|
|
385 |
iprot.readStructEnd()
|
|
|
386 |
|
|
|
387 |
def write(self, oprot):
|
|
|
388 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
389 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
390 |
return
|
|
|
391 |
oprot.writeStructBegin('sayHello_result')
|
|
|
392 |
oprot.writeFieldStop()
|
|
|
393 |
oprot.writeStructEnd()
|
|
|
394 |
|
|
|
395 |
def __repr__(self):
|
|
|
396 |
L = ['%s=%r' % (key, value)
|
|
|
397 |
for key, value in self.__dict__.iteritems()]
|
|
|
398 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
399 |
|
|
|
400 |
def __eq__(self, other):
|
|
|
401 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
402 |
|
|
|
403 |
def __ne__(self, other):
|
|
|
404 |
return not (self == other)
|
|
|
405 |
|
|
|
406 |
class getUser_args:
|
|
|
407 |
"""
|
|
|
408 |
Attributes:
|
|
|
409 |
- id
|
|
|
410 |
"""
|
|
|
411 |
|
|
|
412 |
thrift_spec = (
|
|
|
413 |
None, # 0
|
|
|
414 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
415 |
)
|
|
|
416 |
|
|
|
417 |
def __init__(self, id=None,):
|
|
|
418 |
self.id = id
|
|
|
419 |
|
|
|
420 |
def read(self, iprot):
|
|
|
421 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
422 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
423 |
return
|
|
|
424 |
iprot.readStructBegin()
|
|
|
425 |
while True:
|
|
|
426 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
427 |
if ftype == TType.STOP:
|
|
|
428 |
break
|
|
|
429 |
if fid == 1:
|
|
|
430 |
if ftype == TType.I64:
|
|
|
431 |
self.id = iprot.readI64();
|
|
|
432 |
else:
|
|
|
433 |
iprot.skip(ftype)
|
|
|
434 |
else:
|
|
|
435 |
iprot.skip(ftype)
|
|
|
436 |
iprot.readFieldEnd()
|
|
|
437 |
iprot.readStructEnd()
|
|
|
438 |
|
|
|
439 |
def write(self, oprot):
|
|
|
440 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
441 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
442 |
return
|
|
|
443 |
oprot.writeStructBegin('getUser_args')
|
|
|
444 |
if self.id != None:
|
|
|
445 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
446 |
oprot.writeI64(self.id)
|
|
|
447 |
oprot.writeFieldEnd()
|
|
|
448 |
oprot.writeFieldStop()
|
|
|
449 |
oprot.writeStructEnd()
|
|
|
450 |
|
|
|
451 |
def __repr__(self):
|
|
|
452 |
L = ['%s=%r' % (key, value)
|
|
|
453 |
for key, value in self.__dict__.iteritems()]
|
|
|
454 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
455 |
|
|
|
456 |
def __eq__(self, other):
|
|
|
457 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
458 |
|
|
|
459 |
def __ne__(self, other):
|
|
|
460 |
return not (self == other)
|
|
|
461 |
|
|
|
462 |
class getUser_result:
|
|
|
463 |
"""
|
|
|
464 |
Attributes:
|
|
|
465 |
- success
|
|
|
466 |
"""
|
|
|
467 |
|
|
|
468 |
thrift_spec = (
|
|
|
469 |
(0, TType.STRING, 'success', None, None, ), # 0
|
|
|
470 |
)
|
|
|
471 |
|
|
|
472 |
def __init__(self, success=None,):
|
|
|
473 |
self.success = success
|
|
|
474 |
|
|
|
475 |
def read(self, iprot):
|
|
|
476 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
477 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
478 |
return
|
|
|
479 |
iprot.readStructBegin()
|
|
|
480 |
while True:
|
|
|
481 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
482 |
if ftype == TType.STOP:
|
|
|
483 |
break
|
|
|
484 |
if fid == 0:
|
|
|
485 |
if ftype == TType.STRING:
|
|
|
486 |
self.success = iprot.readString();
|
|
|
487 |
else:
|
|
|
488 |
iprot.skip(ftype)
|
|
|
489 |
else:
|
|
|
490 |
iprot.skip(ftype)
|
|
|
491 |
iprot.readFieldEnd()
|
|
|
492 |
iprot.readStructEnd()
|
|
|
493 |
|
|
|
494 |
def write(self, oprot):
|
|
|
495 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
496 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
497 |
return
|
|
|
498 |
oprot.writeStructBegin('getUser_result')
|
|
|
499 |
if self.success != None:
|
|
|
500 |
oprot.writeFieldBegin('success', TType.STRING, 0)
|
|
|
501 |
oprot.writeString(self.success)
|
|
|
502 |
oprot.writeFieldEnd()
|
|
|
503 |
oprot.writeFieldStop()
|
|
|
504 |
oprot.writeStructEnd()
|
|
|
505 |
|
|
|
506 |
def __repr__(self):
|
|
|
507 |
L = ['%s=%r' % (key, value)
|
|
|
508 |
for key, value in self.__dict__.iteritems()]
|
|
|
509 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
510 |
|
|
|
511 |
def __eq__(self, other):
|
|
|
512 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
513 |
|
|
|
514 |
def __ne__(self, other):
|
|
|
515 |
return not (self == other)
|
|
|
516 |
|
| 866 |
rajveer |
517 |
class getAddressId_args:
|
|
|
518 |
|
|
|
519 |
thrift_spec = (
|
|
|
520 |
)
|
|
|
521 |
|
|
|
522 |
def read(self, iprot):
|
|
|
523 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
524 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
525 |
return
|
|
|
526 |
iprot.readStructBegin()
|
|
|
527 |
while True:
|
|
|
528 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
529 |
if ftype == TType.STOP:
|
|
|
530 |
break
|
|
|
531 |
else:
|
|
|
532 |
iprot.skip(ftype)
|
|
|
533 |
iprot.readFieldEnd()
|
|
|
534 |
iprot.readStructEnd()
|
|
|
535 |
|
|
|
536 |
def write(self, oprot):
|
|
|
537 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
538 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
539 |
return
|
|
|
540 |
oprot.writeStructBegin('getAddressId_args')
|
|
|
541 |
oprot.writeFieldStop()
|
|
|
542 |
oprot.writeStructEnd()
|
|
|
543 |
|
|
|
544 |
def __repr__(self):
|
|
|
545 |
L = ['%s=%r' % (key, value)
|
|
|
546 |
for key, value in self.__dict__.iteritems()]
|
|
|
547 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
548 |
|
|
|
549 |
def __eq__(self, other):
|
|
|
550 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
551 |
|
|
|
552 |
def __ne__(self, other):
|
|
|
553 |
return not (self == other)
|
|
|
554 |
|
|
|
555 |
class getAddressId_result:
|
|
|
556 |
"""
|
|
|
557 |
Attributes:
|
|
|
558 |
- success
|
|
|
559 |
"""
|
|
|
560 |
|
|
|
561 |
thrift_spec = (
|
|
|
562 |
(0, TType.I64, 'success', None, None, ), # 0
|
|
|
563 |
)
|
|
|
564 |
|
|
|
565 |
def __init__(self, success=None,):
|
|
|
566 |
self.success = success
|
|
|
567 |
|
|
|
568 |
def read(self, iprot):
|
|
|
569 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
570 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
571 |
return
|
|
|
572 |
iprot.readStructBegin()
|
|
|
573 |
while True:
|
|
|
574 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
575 |
if ftype == TType.STOP:
|
|
|
576 |
break
|
|
|
577 |
if fid == 0:
|
|
|
578 |
if ftype == TType.I64:
|
|
|
579 |
self.success = iprot.readI64();
|
|
|
580 |
else:
|
|
|
581 |
iprot.skip(ftype)
|
|
|
582 |
else:
|
|
|
583 |
iprot.skip(ftype)
|
|
|
584 |
iprot.readFieldEnd()
|
|
|
585 |
iprot.readStructEnd()
|
|
|
586 |
|
|
|
587 |
def write(self, oprot):
|
|
|
588 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
589 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
590 |
return
|
|
|
591 |
oprot.writeStructBegin('getAddressId_result')
|
|
|
592 |
if self.success != None:
|
|
|
593 |
oprot.writeFieldBegin('success', TType.I64, 0)
|
|
|
594 |
oprot.writeI64(self.success)
|
|
|
595 |
oprot.writeFieldEnd()
|
|
|
596 |
oprot.writeFieldStop()
|
|
|
597 |
oprot.writeStructEnd()
|
|
|
598 |
|
|
|
599 |
def __repr__(self):
|
|
|
600 |
L = ['%s=%r' % (key, value)
|
|
|
601 |
for key, value in self.__dict__.iteritems()]
|
|
|
602 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
603 |
|
|
|
604 |
def __eq__(self, other):
|
|
|
605 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
606 |
|
|
|
607 |
def __ne__(self, other):
|
|
|
608 |
return not (self == other)
|
|
|
609 |
|
|
|
610 |
class getAddress_args:
|
|
|
611 |
|
|
|
612 |
thrift_spec = (
|
|
|
613 |
)
|
|
|
614 |
|
|
|
615 |
def read(self, iprot):
|
|
|
616 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
617 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
618 |
return
|
|
|
619 |
iprot.readStructBegin()
|
|
|
620 |
while True:
|
|
|
621 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
622 |
if ftype == TType.STOP:
|
|
|
623 |
break
|
|
|
624 |
else:
|
|
|
625 |
iprot.skip(ftype)
|
|
|
626 |
iprot.readFieldEnd()
|
|
|
627 |
iprot.readStructEnd()
|
|
|
628 |
|
|
|
629 |
def write(self, oprot):
|
|
|
630 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
631 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
632 |
return
|
|
|
633 |
oprot.writeStructBegin('getAddress_args')
|
|
|
634 |
oprot.writeFieldStop()
|
|
|
635 |
oprot.writeStructEnd()
|
|
|
636 |
|
|
|
637 |
def __repr__(self):
|
|
|
638 |
L = ['%s=%r' % (key, value)
|
|
|
639 |
for key, value in self.__dict__.iteritems()]
|
|
|
640 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
641 |
|
|
|
642 |
def __eq__(self, other):
|
|
|
643 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
644 |
|
|
|
645 |
def __ne__(self, other):
|
|
|
646 |
return not (self == other)
|
|
|
647 |
|
|
|
648 |
class getAddress_result:
|
|
|
649 |
"""
|
|
|
650 |
Attributes:
|
|
|
651 |
- success
|
|
|
652 |
"""
|
|
|
653 |
|
|
|
654 |
thrift_spec = (
|
|
|
655 |
(0, TType.STRUCT, 'success', (Address, Address.thrift_spec), None, ), # 0
|
|
|
656 |
)
|
|
|
657 |
|
|
|
658 |
def __init__(self, success=None,):
|
|
|
659 |
self.success = success
|
|
|
660 |
|
|
|
661 |
def read(self, iprot):
|
|
|
662 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
663 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
664 |
return
|
|
|
665 |
iprot.readStructBegin()
|
|
|
666 |
while True:
|
|
|
667 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
668 |
if ftype == TType.STOP:
|
|
|
669 |
break
|
|
|
670 |
if fid == 0:
|
|
|
671 |
if ftype == TType.STRUCT:
|
|
|
672 |
self.success = Address()
|
|
|
673 |
self.success.read(iprot)
|
|
|
674 |
else:
|
|
|
675 |
iprot.skip(ftype)
|
|
|
676 |
else:
|
|
|
677 |
iprot.skip(ftype)
|
|
|
678 |
iprot.readFieldEnd()
|
|
|
679 |
iprot.readStructEnd()
|
|
|
680 |
|
|
|
681 |
def write(self, oprot):
|
|
|
682 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
683 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
684 |
return
|
|
|
685 |
oprot.writeStructBegin('getAddress_result')
|
|
|
686 |
if self.success != None:
|
|
|
687 |
oprot.writeFieldBegin('success', TType.STRUCT, 0)
|
|
|
688 |
self.success.write(oprot)
|
|
|
689 |
oprot.writeFieldEnd()
|
|
|
690 |
oprot.writeFieldStop()
|
|
|
691 |
oprot.writeStructEnd()
|
|
|
692 |
|
|
|
693 |
def __repr__(self):
|
|
|
694 |
L = ['%s=%r' % (key, value)
|
|
|
695 |
for key, value in self.__dict__.iteritems()]
|
|
|
696 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
697 |
|
|
|
698 |
def __eq__(self, other):
|
|
|
699 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
700 |
|
|
|
701 |
def __ne__(self, other):
|
|
|
702 |
return not (self == other)
|
|
|
703 |
|
| 777 |
rajveer |
704 |
class createUser_args:
|
|
|
705 |
"""
|
|
|
706 |
Attributes:
|
|
|
707 |
- name
|
|
|
708 |
"""
|
|
|
709 |
|
|
|
710 |
thrift_spec = (
|
|
|
711 |
None, # 0
|
|
|
712 |
(1, TType.STRING, 'name', None, None, ), # 1
|
|
|
713 |
)
|
|
|
714 |
|
|
|
715 |
def __init__(self, name=None,):
|
|
|
716 |
self.name = name
|
|
|
717 |
|
|
|
718 |
def read(self, iprot):
|
|
|
719 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
720 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
721 |
return
|
|
|
722 |
iprot.readStructBegin()
|
|
|
723 |
while True:
|
|
|
724 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
725 |
if ftype == TType.STOP:
|
|
|
726 |
break
|
|
|
727 |
if fid == 1:
|
|
|
728 |
if ftype == TType.STRING:
|
|
|
729 |
self.name = iprot.readString();
|
|
|
730 |
else:
|
|
|
731 |
iprot.skip(ftype)
|
|
|
732 |
else:
|
|
|
733 |
iprot.skip(ftype)
|
|
|
734 |
iprot.readFieldEnd()
|
|
|
735 |
iprot.readStructEnd()
|
|
|
736 |
|
|
|
737 |
def write(self, oprot):
|
|
|
738 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
739 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
740 |
return
|
|
|
741 |
oprot.writeStructBegin('createUser_args')
|
|
|
742 |
if self.name != None:
|
|
|
743 |
oprot.writeFieldBegin('name', TType.STRING, 1)
|
|
|
744 |
oprot.writeString(self.name)
|
|
|
745 |
oprot.writeFieldEnd()
|
|
|
746 |
oprot.writeFieldStop()
|
|
|
747 |
oprot.writeStructEnd()
|
|
|
748 |
|
|
|
749 |
def __repr__(self):
|
|
|
750 |
L = ['%s=%r' % (key, value)
|
|
|
751 |
for key, value in self.__dict__.iteritems()]
|
|
|
752 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
753 |
|
|
|
754 |
def __eq__(self, other):
|
|
|
755 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
756 |
|
|
|
757 |
def __ne__(self, other):
|
|
|
758 |
return not (self == other)
|
|
|
759 |
|
|
|
760 |
class createUser_result:
|
|
|
761 |
|
|
|
762 |
thrift_spec = (
|
|
|
763 |
)
|
|
|
764 |
|
|
|
765 |
def read(self, iprot):
|
|
|
766 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
767 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
768 |
return
|
|
|
769 |
iprot.readStructBegin()
|
|
|
770 |
while True:
|
|
|
771 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
772 |
if ftype == TType.STOP:
|
|
|
773 |
break
|
|
|
774 |
else:
|
|
|
775 |
iprot.skip(ftype)
|
|
|
776 |
iprot.readFieldEnd()
|
|
|
777 |
iprot.readStructEnd()
|
|
|
778 |
|
|
|
779 |
def write(self, oprot):
|
|
|
780 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
781 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
782 |
return
|
|
|
783 |
oprot.writeStructBegin('createUser_result')
|
|
|
784 |
oprot.writeFieldStop()
|
|
|
785 |
oprot.writeStructEnd()
|
|
|
786 |
|
|
|
787 |
def __repr__(self):
|
|
|
788 |
L = ['%s=%r' % (key, value)
|
|
|
789 |
for key, value in self.__dict__.iteritems()]
|
|
|
790 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
791 |
|
|
|
792 |
def __eq__(self, other):
|
|
|
793 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
794 |
|
|
|
795 |
def __ne__(self, other):
|
|
|
796 |
return not (self == other)
|
|
|
797 |
|
|
|
798 |
class closeSession_args:
|
|
|
799 |
|
|
|
800 |
thrift_spec = (
|
|
|
801 |
)
|
|
|
802 |
|
|
|
803 |
def read(self, iprot):
|
|
|
804 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
805 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
806 |
return
|
|
|
807 |
iprot.readStructBegin()
|
|
|
808 |
while True:
|
|
|
809 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
810 |
if ftype == TType.STOP:
|
|
|
811 |
break
|
|
|
812 |
else:
|
|
|
813 |
iprot.skip(ftype)
|
|
|
814 |
iprot.readFieldEnd()
|
|
|
815 |
iprot.readStructEnd()
|
|
|
816 |
|
|
|
817 |
def write(self, oprot):
|
|
|
818 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
819 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
820 |
return
|
|
|
821 |
oprot.writeStructBegin('closeSession_args')
|
|
|
822 |
oprot.writeFieldStop()
|
|
|
823 |
oprot.writeStructEnd()
|
|
|
824 |
|
|
|
825 |
def __repr__(self):
|
|
|
826 |
L = ['%s=%r' % (key, value)
|
|
|
827 |
for key, value in self.__dict__.iteritems()]
|
|
|
828 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
829 |
|
|
|
830 |
def __eq__(self, other):
|
|
|
831 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
832 |
|
|
|
833 |
def __ne__(self, other):
|
|
|
834 |
return not (self == other)
|
|
|
835 |
|
|
|
836 |
class closeSession_result:
|
|
|
837 |
|
|
|
838 |
thrift_spec = (
|
|
|
839 |
)
|
|
|
840 |
|
|
|
841 |
def read(self, iprot):
|
|
|
842 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
843 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
844 |
return
|
|
|
845 |
iprot.readStructBegin()
|
|
|
846 |
while True:
|
|
|
847 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
848 |
if ftype == TType.STOP:
|
|
|
849 |
break
|
|
|
850 |
else:
|
|
|
851 |
iprot.skip(ftype)
|
|
|
852 |
iprot.readFieldEnd()
|
|
|
853 |
iprot.readStructEnd()
|
|
|
854 |
|
|
|
855 |
def write(self, oprot):
|
|
|
856 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
857 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
858 |
return
|
|
|
859 |
oprot.writeStructBegin('closeSession_result')
|
|
|
860 |
oprot.writeFieldStop()
|
|
|
861 |
oprot.writeStructEnd()
|
|
|
862 |
|
|
|
863 |
def __repr__(self):
|
|
|
864 |
L = ['%s=%r' % (key, value)
|
|
|
865 |
for key, value in self.__dict__.iteritems()]
|
|
|
866 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
867 |
|
|
|
868 |
def __eq__(self, other):
|
|
|
869 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
870 |
|
|
|
871 |
def __ne__(self, other):
|
|
|
872 |
return not (self == other)
|
|
|
873 |
|
|
|
874 |
|