Subversion Repositories SmartDukaan

Rev

Rev 1013 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
779 rajveer 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
779 rajveer 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.test;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
779 rajveer 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class TestService {
24
 
25
  public interface Iface {
26
 
3430 rajveer 27
    public void sayHello(String message) throws org.apache.thrift.TException;
779 rajveer 28
 
3430 rajveer 29
    public String getUser(long id) throws org.apache.thrift.TException;
779 rajveer 30
 
3430 rajveer 31
    public long getAddressId() throws org.apache.thrift.TException;
896 rajveer 32
 
3430 rajveer 33
    public Address getAddress() throws org.apache.thrift.TException;
896 rajveer 34
 
3430 rajveer 35
    public void createUser(String name) throws org.apache.thrift.TException;
779 rajveer 36
 
3430 rajveer 37
    public void closeSession() throws org.apache.thrift.TException;
779 rajveer 38
 
39
  }
40
 
3430 rajveer 41
  public interface AsyncIface {
779 rajveer 42
 
3430 rajveer 43
    public void sayHello(String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sayHello_call> resultHandler) throws org.apache.thrift.TException;
779 rajveer 44
 
3430 rajveer 45
    public void getUser(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUser_call> resultHandler) throws org.apache.thrift.TException;
779 rajveer 46
 
3430 rajveer 47
    public void getAddressId(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddressId_call> resultHandler) throws org.apache.thrift.TException;
779 rajveer 48
 
3430 rajveer 49
    public void getAddress(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddress_call> resultHandler) throws org.apache.thrift.TException;
50
 
51
    public void createUser(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
52
 
53
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeSession_call> resultHandler) throws org.apache.thrift.TException;
54
 
55
  }
56
 
57
  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
58
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
59
      public Factory() {}
60
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
61
        return new Client(prot);
62
      }
63
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
64
        return new Client(iprot, oprot);
65
      }
779 rajveer 66
    }
67
 
3430 rajveer 68
    public Client(org.apache.thrift.protocol.TProtocol prot)
779 rajveer 69
    {
3430 rajveer 70
      super(prot, prot);
779 rajveer 71
    }
72
 
3430 rajveer 73
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
74
      super(iprot, oprot);
75
    }
76
 
77
    public void sayHello(String message) throws org.apache.thrift.TException
779 rajveer 78
    {
79
      send_sayHello(message);
80
      recv_sayHello();
81
    }
82
 
3430 rajveer 83
    public void send_sayHello(String message) throws org.apache.thrift.TException
779 rajveer 84
    {
85
      sayHello_args args = new sayHello_args();
3430 rajveer 86
      args.setMessage(message);
87
      sendBase("sayHello", args);
779 rajveer 88
    }
89
 
3430 rajveer 90
    public void recv_sayHello() throws org.apache.thrift.TException
779 rajveer 91
    {
92
      sayHello_result result = new sayHello_result();
3430 rajveer 93
      receiveBase(result, "sayHello");
779 rajveer 94
      return;
95
    }
96
 
3430 rajveer 97
    public String getUser(long id) throws org.apache.thrift.TException
779 rajveer 98
    {
99
      send_getUser(id);
100
      return recv_getUser();
101
    }
102
 
3430 rajveer 103
    public void send_getUser(long id) throws org.apache.thrift.TException
779 rajveer 104
    {
105
      getUser_args args = new getUser_args();
3430 rajveer 106
      args.setId(id);
107
      sendBase("getUser", args);
779 rajveer 108
    }
109
 
3430 rajveer 110
    public String recv_getUser() throws org.apache.thrift.TException
779 rajveer 111
    {
112
      getUser_result result = new getUser_result();
3430 rajveer 113
      receiveBase(result, "getUser");
779 rajveer 114
      if (result.isSetSuccess()) {
115
        return result.success;
116
      }
3430 rajveer 117
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUser failed: unknown result");
779 rajveer 118
    }
119
 
3430 rajveer 120
    public long getAddressId() throws org.apache.thrift.TException
896 rajveer 121
    {
122
      send_getAddressId();
123
      return recv_getAddressId();
124
    }
125
 
3430 rajveer 126
    public void send_getAddressId() throws org.apache.thrift.TException
896 rajveer 127
    {
128
      getAddressId_args args = new getAddressId_args();
3430 rajveer 129
      sendBase("getAddressId", args);
896 rajveer 130
    }
131
 
3430 rajveer 132
    public long recv_getAddressId() throws org.apache.thrift.TException
896 rajveer 133
    {
134
      getAddressId_result result = new getAddressId_result();
3430 rajveer 135
      receiveBase(result, "getAddressId");
896 rajveer 136
      if (result.isSetSuccess()) {
137
        return result.success;
138
      }
3430 rajveer 139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddressId failed: unknown result");
896 rajveer 140
    }
141
 
3430 rajveer 142
    public Address getAddress() throws org.apache.thrift.TException
896 rajveer 143
    {
144
      send_getAddress();
145
      return recv_getAddress();
146
    }
147
 
3430 rajveer 148
    public void send_getAddress() throws org.apache.thrift.TException
896 rajveer 149
    {
150
      getAddress_args args = new getAddress_args();
3430 rajveer 151
      sendBase("getAddress", args);
896 rajveer 152
    }
153
 
3430 rajveer 154
    public Address recv_getAddress() throws org.apache.thrift.TException
896 rajveer 155
    {
156
      getAddress_result result = new getAddress_result();
3430 rajveer 157
      receiveBase(result, "getAddress");
896 rajveer 158
      if (result.isSetSuccess()) {
159
        return result.success;
160
      }
3430 rajveer 161
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddress failed: unknown result");
896 rajveer 162
    }
163
 
3430 rajveer 164
    public void createUser(String name) throws org.apache.thrift.TException
779 rajveer 165
    {
166
      send_createUser(name);
167
      recv_createUser();
168
    }
169
 
3430 rajveer 170
    public void send_createUser(String name) throws org.apache.thrift.TException
779 rajveer 171
    {
172
      createUser_args args = new createUser_args();
3430 rajveer 173
      args.setName(name);
174
      sendBase("createUser", args);
779 rajveer 175
    }
176
 
3430 rajveer 177
    public void recv_createUser() throws org.apache.thrift.TException
779 rajveer 178
    {
179
      createUser_result result = new createUser_result();
3430 rajveer 180
      receiveBase(result, "createUser");
779 rajveer 181
      return;
182
    }
183
 
3430 rajveer 184
    public void closeSession() throws org.apache.thrift.TException
779 rajveer 185
    {
186
      send_closeSession();
187
      recv_closeSession();
188
    }
189
 
3430 rajveer 190
    public void send_closeSession() throws org.apache.thrift.TException
779 rajveer 191
    {
192
      closeSession_args args = new closeSession_args();
3430 rajveer 193
      sendBase("closeSession", args);
779 rajveer 194
    }
195
 
3430 rajveer 196
    public void recv_closeSession() throws org.apache.thrift.TException
779 rajveer 197
    {
198
      closeSession_result result = new closeSession_result();
3430 rajveer 199
      receiveBase(result, "closeSession");
779 rajveer 200
      return;
201
    }
202
 
203
  }
3430 rajveer 204
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
205
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
206
      private org.apache.thrift.async.TAsyncClientManager clientManager;
207
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
208
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
209
        this.clientManager = clientManager;
210
        this.protocolFactory = protocolFactory;
211
      }
212
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
213
        return new AsyncClient(protocolFactory, clientManager, transport);
214
      }
779 rajveer 215
    }
216
 
3430 rajveer 217
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
218
      super(protocolFactory, clientManager, transport);
779 rajveer 219
    }
220
 
3430 rajveer 221
    public void sayHello(String message, org.apache.thrift.async.AsyncMethodCallback<sayHello_call> resultHandler) throws org.apache.thrift.TException {
222
      checkReady();
223
      sayHello_call method_call = new sayHello_call(message, resultHandler, this, ___protocolFactory, ___transport);
224
      this.___currentMethod = method_call;
225
      ___manager.call(method_call);
226
    }
779 rajveer 227
 
3430 rajveer 228
    public static class sayHello_call extends org.apache.thrift.async.TAsyncMethodCall {
229
      private String message;
230
      public sayHello_call(String message, org.apache.thrift.async.AsyncMethodCallback<sayHello_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
231
        super(client, protocolFactory, transport, resultHandler, false);
232
        this.message = message;
779 rajveer 233
      }
234
 
3430 rajveer 235
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
236
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sayHello", org.apache.thrift.protocol.TMessageType.CALL, 0));
779 rajveer 237
        sayHello_args args = new sayHello_args();
3430 rajveer 238
        args.setMessage(message);
239
        args.write(prot);
240
        prot.writeMessageEnd();
779 rajveer 241
      }
242
 
3430 rajveer 243
      public void getResult() throws org.apache.thrift.TException {
244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
245
          throw new IllegalStateException("Method call not finished!");
246
        }
247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
249
        (new Client(prot)).recv_sayHello();
250
      }
779 rajveer 251
    }
252
 
3430 rajveer 253
    public void getUser(long id, org.apache.thrift.async.AsyncMethodCallback<getUser_call> resultHandler) throws org.apache.thrift.TException {
254
      checkReady();
255
      getUser_call method_call = new getUser_call(id, resultHandler, this, ___protocolFactory, ___transport);
256
      this.___currentMethod = method_call;
257
      ___manager.call(method_call);
258
    }
259
 
260
    public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall {
261
      private long id;
262
      public getUser_call(long id, org.apache.thrift.async.AsyncMethodCallback<getUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
263
        super(client, protocolFactory, transport, resultHandler, false);
264
        this.id = id;
265
      }
266
 
267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
779 rajveer 269
        getUser_args args = new getUser_args();
3430 rajveer 270
        args.setId(id);
271
        args.write(prot);
272
        prot.writeMessageEnd();
779 rajveer 273
      }
274
 
3430 rajveer 275
      public String getResult() throws org.apache.thrift.TException {
276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
277
          throw new IllegalStateException("Method call not finished!");
278
        }
279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
281
        return (new Client(prot)).recv_getUser();
282
      }
779 rajveer 283
    }
284
 
3430 rajveer 285
    public void getAddressId(org.apache.thrift.async.AsyncMethodCallback<getAddressId_call> resultHandler) throws org.apache.thrift.TException {
286
      checkReady();
287
      getAddressId_call method_call = new getAddressId_call(resultHandler, this, ___protocolFactory, ___transport);
288
      this.___currentMethod = method_call;
289
      ___manager.call(method_call);
290
    }
291
 
292
    public static class getAddressId_call extends org.apache.thrift.async.TAsyncMethodCall {
293
      public getAddressId_call(org.apache.thrift.async.AsyncMethodCallback<getAddressId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
294
        super(client, protocolFactory, transport, resultHandler, false);
295
      }
296
 
297
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
298
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddressId", org.apache.thrift.protocol.TMessageType.CALL, 0));
896 rajveer 299
        getAddressId_args args = new getAddressId_args();
3430 rajveer 300
        args.write(prot);
301
        prot.writeMessageEnd();
896 rajveer 302
      }
303
 
3430 rajveer 304
      public long getResult() throws org.apache.thrift.TException {
305
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
306
          throw new IllegalStateException("Method call not finished!");
307
        }
308
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
309
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
310
        return (new Client(prot)).recv_getAddressId();
311
      }
896 rajveer 312
    }
313
 
3430 rajveer 314
    public void getAddress(org.apache.thrift.async.AsyncMethodCallback<getAddress_call> resultHandler) throws org.apache.thrift.TException {
315
      checkReady();
316
      getAddress_call method_call = new getAddress_call(resultHandler, this, ___protocolFactory, ___transport);
317
      this.___currentMethod = method_call;
318
      ___manager.call(method_call);
319
    }
320
 
321
    public static class getAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
322
      public getAddress_call(org.apache.thrift.async.AsyncMethodCallback<getAddress_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
323
        super(client, protocolFactory, transport, resultHandler, false);
324
      }
325
 
326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
896 rajveer 328
        getAddress_args args = new getAddress_args();
3430 rajveer 329
        args.write(prot);
330
        prot.writeMessageEnd();
896 rajveer 331
      }
332
 
3430 rajveer 333
      public Address getResult() throws org.apache.thrift.TException {
334
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
335
          throw new IllegalStateException("Method call not finished!");
336
        }
337
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
338
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
339
        return (new Client(prot)).recv_getAddress();
340
      }
896 rajveer 341
    }
342
 
3430 rajveer 343
    public void createUser(String name, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler) throws org.apache.thrift.TException {
344
      checkReady();
345
      createUser_call method_call = new createUser_call(name, resultHandler, this, ___protocolFactory, ___transport);
346
      this.___currentMethod = method_call;
347
      ___manager.call(method_call);
348
    }
349
 
350
    public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall {
351
      private String name;
352
      public createUser_call(String name, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
353
        super(client, protocolFactory, transport, resultHandler, false);
354
        this.name = name;
355
      }
356
 
357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
779 rajveer 359
        createUser_args args = new createUser_args();
3430 rajveer 360
        args.setName(name);
361
        args.write(prot);
362
        prot.writeMessageEnd();
779 rajveer 363
      }
364
 
3430 rajveer 365
      public void getResult() throws org.apache.thrift.TException {
366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
367
          throw new IllegalStateException("Method call not finished!");
368
        }
369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
371
        (new Client(prot)).recv_createUser();
372
      }
779 rajveer 373
    }
374
 
3430 rajveer 375
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler) throws org.apache.thrift.TException {
376
      checkReady();
377
      closeSession_call method_call = new closeSession_call(resultHandler, this, ___protocolFactory, ___transport);
378
      this.___currentMethod = method_call;
379
      ___manager.call(method_call);
380
    }
381
 
382
    public static class closeSession_call extends org.apache.thrift.async.TAsyncMethodCall {
383
      public closeSession_call(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
384
        super(client, protocolFactory, transport, resultHandler, false);
385
      }
386
 
387
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
388
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
779 rajveer 389
        closeSession_args args = new closeSession_args();
3430 rajveer 390
        args.write(prot);
391
        prot.writeMessageEnd();
779 rajveer 392
      }
393
 
3430 rajveer 394
      public void getResult() throws org.apache.thrift.TException {
395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
396
          throw new IllegalStateException("Method call not finished!");
397
        }
398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
400
        (new Client(prot)).recv_closeSession();
401
      }
779 rajveer 402
    }
403
 
404
  }
405
 
3430 rajveer 406
  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
407
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
408
    public Processor(I iface) {
409
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
410
    }
779 rajveer 411
 
3430 rajveer 412
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
413
      super(iface, getProcessMap(processMap));
414
    }
779 rajveer 415
 
3430 rajveer 416
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
417
      processMap.put("sayHello", new sayHello());
418
      processMap.put("getUser", new getUser());
419
      processMap.put("getAddressId", new getAddressId());
420
      processMap.put("getAddress", new getAddress());
421
      processMap.put("createUser", new createUser());
422
      processMap.put("closeSession", new closeSession());
423
      return processMap;
424
    }
779 rajveer 425
 
3430 rajveer 426
    private static class sayHello<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sayHello_args> {
427
      public sayHello() {
428
        super("sayHello");
429
      }
430
 
431
      protected sayHello_args getEmptyArgsInstance() {
432
        return new sayHello_args();
433
      }
434
 
435
      protected sayHello_result getResult(I iface, sayHello_args args) throws org.apache.thrift.TException {
436
        sayHello_result result = new sayHello_result();
437
        iface.sayHello(args.message);
438
        return result;
439
      }
440
    }
441
 
442
    private static class getUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUser_args> {
443
      public getUser() {
444
        super("getUser");
445
      }
446
 
447
      protected getUser_args getEmptyArgsInstance() {
448
        return new getUser_args();
449
      }
450
 
451
      protected getUser_result getResult(I iface, getUser_args args) throws org.apache.thrift.TException {
452
        getUser_result result = new getUser_result();
453
        result.success = iface.getUser(args.id);
454
        return result;
455
      }
456
    }
457
 
458
    private static class getAddressId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddressId_args> {
459
      public getAddressId() {
460
        super("getAddressId");
461
      }
462
 
463
      protected getAddressId_args getEmptyArgsInstance() {
464
        return new getAddressId_args();
465
      }
466
 
467
      protected getAddressId_result getResult(I iface, getAddressId_args args) throws org.apache.thrift.TException {
468
        getAddressId_result result = new getAddressId_result();
469
        result.success = iface.getAddressId();
470
        result.setSuccessIsSet(true);
471
        return result;
472
      }
473
    }
474
 
475
    private static class getAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddress_args> {
476
      public getAddress() {
477
        super("getAddress");
478
      }
479
 
480
      protected getAddress_args getEmptyArgsInstance() {
481
        return new getAddress_args();
482
      }
483
 
484
      protected getAddress_result getResult(I iface, getAddress_args args) throws org.apache.thrift.TException {
485
        getAddress_result result = new getAddress_result();
486
        result.success = iface.getAddress();
487
        return result;
488
      }
489
    }
490
 
491
    private static class createUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createUser_args> {
492
      public createUser() {
493
        super("createUser");
494
      }
495
 
496
      protected createUser_args getEmptyArgsInstance() {
497
        return new createUser_args();
498
      }
499
 
500
      protected createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException {
501
        createUser_result result = new createUser_result();
502
        iface.createUser(args.name);
503
        return result;
504
      }
505
    }
506
 
507
    private static class closeSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeSession_args> {
508
      public closeSession() {
509
        super("closeSession");
510
      }
511
 
512
      protected closeSession_args getEmptyArgsInstance() {
513
        return new closeSession_args();
514
      }
515
 
516
      protected closeSession_result getResult(I iface, closeSession_args args) throws org.apache.thrift.TException {
517
        closeSession_result result = new closeSession_result();
518
        iface.closeSession();
519
        return result;
520
      }
521
    }
522
 
523
  }
524
 
525
  public static class sayHello_args implements org.apache.thrift.TBase<sayHello_args, sayHello_args._Fields>, java.io.Serializable, Cloneable   {
526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sayHello_args");
527
 
528
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
529
 
530
    private String message; // required
531
 
779 rajveer 532
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 533
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 534
      MESSAGE((short)1, "message");
535
 
536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
537
 
538
      static {
539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
540
          byName.put(field.getFieldName(), field);
541
        }
542
      }
543
 
544
      /**
545
       * Find the _Fields constant that matches fieldId, or null if its not found.
546
       */
547
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 548
        switch(fieldId) {
549
          case 1: // MESSAGE
550
            return MESSAGE;
551
          default:
552
            return null;
553
        }
779 rajveer 554
      }
555
 
556
      /**
557
       * Find the _Fields constant that matches fieldId, throwing an exception
558
       * if it is not found.
559
       */
560
      public static _Fields findByThriftIdOrThrow(int fieldId) {
561
        _Fields fields = findByThriftId(fieldId);
562
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
563
        return fields;
564
      }
565
 
566
      /**
567
       * Find the _Fields constant that matches name, or null if its not found.
568
       */
569
      public static _Fields findByName(String name) {
570
        return byName.get(name);
571
      }
572
 
573
      private final short _thriftId;
574
      private final String _fieldName;
575
 
576
      _Fields(short thriftId, String fieldName) {
577
        _thriftId = thriftId;
578
        _fieldName = fieldName;
579
      }
580
 
581
      public short getThriftFieldId() {
582
        return _thriftId;
583
      }
584
 
585
      public String getFieldName() {
586
        return _fieldName;
587
      }
588
    }
589
 
590
    // isset id assignments
591
 
3430 rajveer 592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 593
    static {
3430 rajveer 594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
595
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sayHello_args.class, metaDataMap);
779 rajveer 599
    }
600
 
601
    public sayHello_args() {
602
    }
603
 
604
    public sayHello_args(
605
      String message)
606
    {
607
      this();
608
      this.message = message;
609
    }
610
 
611
    /**
612
     * Performs a deep copy on <i>other</i>.
613
     */
614
    public sayHello_args(sayHello_args other) {
615
      if (other.isSetMessage()) {
616
        this.message = other.message;
617
      }
618
    }
619
 
620
    public sayHello_args deepCopy() {
621
      return new sayHello_args(this);
622
    }
623
 
3430 rajveer 624
    @Override
625
    public void clear() {
626
      this.message = null;
779 rajveer 627
    }
628
 
629
    public String getMessage() {
630
      return this.message;
631
    }
632
 
3430 rajveer 633
    public void setMessage(String message) {
779 rajveer 634
      this.message = message;
635
    }
636
 
637
    public void unsetMessage() {
638
      this.message = null;
639
    }
640
 
3430 rajveer 641
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
779 rajveer 642
    public boolean isSetMessage() {
643
      return this.message != null;
644
    }
645
 
646
    public void setMessageIsSet(boolean value) {
647
      if (!value) {
648
        this.message = null;
649
      }
650
    }
651
 
652
    public void setFieldValue(_Fields field, Object value) {
653
      switch (field) {
654
      case MESSAGE:
655
        if (value == null) {
656
          unsetMessage();
657
        } else {
658
          setMessage((String)value);
659
        }
660
        break;
661
 
662
      }
663
    }
664
 
665
    public Object getFieldValue(_Fields field) {
666
      switch (field) {
667
      case MESSAGE:
668
        return getMessage();
669
 
670
      }
671
      throw new IllegalStateException();
672
    }
673
 
3430 rajveer 674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
675
    public boolean isSet(_Fields field) {
676
      if (field == null) {
677
        throw new IllegalArgumentException();
678
      }
779 rajveer 679
 
680
      switch (field) {
681
      case MESSAGE:
682
        return isSetMessage();
683
      }
684
      throw new IllegalStateException();
685
    }
686
 
687
    @Override
688
    public boolean equals(Object that) {
689
      if (that == null)
690
        return false;
691
      if (that instanceof sayHello_args)
692
        return this.equals((sayHello_args)that);
693
      return false;
694
    }
695
 
696
    public boolean equals(sayHello_args that) {
697
      if (that == null)
698
        return false;
699
 
700
      boolean this_present_message = true && this.isSetMessage();
701
      boolean that_present_message = true && that.isSetMessage();
702
      if (this_present_message || that_present_message) {
703
        if (!(this_present_message && that_present_message))
704
          return false;
705
        if (!this.message.equals(that.message))
706
          return false;
707
      }
708
 
709
      return true;
710
    }
711
 
712
    @Override
713
    public int hashCode() {
714
      return 0;
715
    }
716
 
717
    public int compareTo(sayHello_args other) {
718
      if (!getClass().equals(other.getClass())) {
719
        return getClass().getName().compareTo(other.getClass().getName());
720
      }
721
 
722
      int lastComparison = 0;
723
      sayHello_args typedOther = (sayHello_args)other;
724
 
3430 rajveer 725
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
779 rajveer 726
      if (lastComparison != 0) {
727
        return lastComparison;
728
      }
3430 rajveer 729
      if (isSetMessage()) {
730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
731
        if (lastComparison != 0) {
732
          return lastComparison;
733
        }
779 rajveer 734
      }
735
      return 0;
736
    }
737
 
3430 rajveer 738
    public _Fields fieldForId(int fieldId) {
739
      return _Fields.findByThriftId(fieldId);
740
    }
741
 
742
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
743
      org.apache.thrift.protocol.TField field;
779 rajveer 744
      iprot.readStructBegin();
745
      while (true)
746
      {
747
        field = iprot.readFieldBegin();
3430 rajveer 748
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 749
          break;
750
        }
3430 rajveer 751
        switch (field.id) {
752
          case 1: // MESSAGE
753
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
754
              this.message = iprot.readString();
755
            } else { 
756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
757
            }
758
            break;
759
          default:
760
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 761
        }
3430 rajveer 762
        iprot.readFieldEnd();
779 rajveer 763
      }
764
      iprot.readStructEnd();
765
      validate();
766
    }
767
 
3430 rajveer 768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 769
      validate();
770
 
771
      oprot.writeStructBegin(STRUCT_DESC);
772
      if (this.message != null) {
773
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
774
        oprot.writeString(this.message);
775
        oprot.writeFieldEnd();
776
      }
777
      oprot.writeFieldStop();
778
      oprot.writeStructEnd();
779
    }
780
 
781
    @Override
782
    public String toString() {
783
      StringBuilder sb = new StringBuilder("sayHello_args(");
784
      boolean first = true;
785
 
786
      sb.append("message:");
787
      if (this.message == null) {
788
        sb.append("null");
789
      } else {
790
        sb.append(this.message);
791
      }
792
      first = false;
793
      sb.append(")");
794
      return sb.toString();
795
    }
796
 
3430 rajveer 797
    public void validate() throws org.apache.thrift.TException {
779 rajveer 798
      // check for required fields
799
    }
800
 
3430 rajveer 801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
802
      try {
803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
804
      } catch (org.apache.thrift.TException te) {
805
        throw new java.io.IOException(te);
806
      }
807
    }
808
 
809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
810
      try {
811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
812
      } catch (org.apache.thrift.TException te) {
813
        throw new java.io.IOException(te);
814
      }
815
    }
816
 
779 rajveer 817
  }
818
 
3430 rajveer 819
  public static class sayHello_result implements org.apache.thrift.TBase<sayHello_result, sayHello_result._Fields>, java.io.Serializable, Cloneable   {
820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sayHello_result");
779 rajveer 821
 
822
 
823
 
824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 826
;
827
 
828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
829
 
830
      static {
831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
832
          byName.put(field.getFieldName(), field);
833
        }
834
      }
835
 
836
      /**
837
       * Find the _Fields constant that matches fieldId, or null if its not found.
838
       */
839
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 840
        switch(fieldId) {
841
          default:
842
            return null;
843
        }
779 rajveer 844
      }
845
 
846
      /**
847
       * Find the _Fields constant that matches fieldId, throwing an exception
848
       * if it is not found.
849
       */
850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
851
        _Fields fields = findByThriftId(fieldId);
852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
853
        return fields;
854
      }
855
 
856
      /**
857
       * Find the _Fields constant that matches name, or null if its not found.
858
       */
859
      public static _Fields findByName(String name) {
860
        return byName.get(name);
861
      }
862
 
863
      private final short _thriftId;
864
      private final String _fieldName;
865
 
866
      _Fields(short thriftId, String fieldName) {
867
        _thriftId = thriftId;
868
        _fieldName = fieldName;
869
      }
870
 
871
      public short getThriftFieldId() {
872
        return _thriftId;
873
      }
874
 
875
      public String getFieldName() {
876
        return _fieldName;
877
      }
878
    }
3430 rajveer 879
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 880
    static {
3430 rajveer 881
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sayHello_result.class, metaDataMap);
779 rajveer 884
    }
885
 
886
    public sayHello_result() {
887
    }
888
 
889
    /**
890
     * Performs a deep copy on <i>other</i>.
891
     */
892
    public sayHello_result(sayHello_result other) {
893
    }
894
 
895
    public sayHello_result deepCopy() {
896
      return new sayHello_result(this);
897
    }
898
 
3430 rajveer 899
    @Override
900
    public void clear() {
779 rajveer 901
    }
902
 
903
    public void setFieldValue(_Fields field, Object value) {
904
      switch (field) {
905
      }
906
    }
907
 
908
    public Object getFieldValue(_Fields field) {
909
      switch (field) {
910
      }
911
      throw new IllegalStateException();
912
    }
913
 
3430 rajveer 914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
915
    public boolean isSet(_Fields field) {
916
      if (field == null) {
917
        throw new IllegalArgumentException();
918
      }
779 rajveer 919
 
920
      switch (field) {
921
      }
922
      throw new IllegalStateException();
923
    }
924
 
925
    @Override
926
    public boolean equals(Object that) {
927
      if (that == null)
928
        return false;
929
      if (that instanceof sayHello_result)
930
        return this.equals((sayHello_result)that);
931
      return false;
932
    }
933
 
934
    public boolean equals(sayHello_result that) {
935
      if (that == null)
936
        return false;
937
 
938
      return true;
939
    }
940
 
941
    @Override
942
    public int hashCode() {
943
      return 0;
944
    }
945
 
946
    public int compareTo(sayHello_result other) {
947
      if (!getClass().equals(other.getClass())) {
948
        return getClass().getName().compareTo(other.getClass().getName());
949
      }
950
 
951
      int lastComparison = 0;
952
      sayHello_result typedOther = (sayHello_result)other;
953
 
954
      return 0;
955
    }
956
 
3430 rajveer 957
    public _Fields fieldForId(int fieldId) {
958
      return _Fields.findByThriftId(fieldId);
959
    }
960
 
961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
962
      org.apache.thrift.protocol.TField field;
779 rajveer 963
      iprot.readStructBegin();
964
      while (true)
965
      {
966
        field = iprot.readFieldBegin();
3430 rajveer 967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 968
          break;
969
        }
3430 rajveer 970
        switch (field.id) {
971
          default:
972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 973
        }
3430 rajveer 974
        iprot.readFieldEnd();
779 rajveer 975
      }
976
      iprot.readStructEnd();
977
      validate();
978
    }
979
 
3430 rajveer 980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 981
      oprot.writeStructBegin(STRUCT_DESC);
982
 
983
      oprot.writeFieldStop();
984
      oprot.writeStructEnd();
985
    }
986
 
987
    @Override
988
    public String toString() {
989
      StringBuilder sb = new StringBuilder("sayHello_result(");
990
      boolean first = true;
991
 
992
      sb.append(")");
993
      return sb.toString();
994
    }
995
 
3430 rajveer 996
    public void validate() throws org.apache.thrift.TException {
779 rajveer 997
      // check for required fields
998
    }
999
 
3430 rajveer 1000
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1001
      try {
1002
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1003
      } catch (org.apache.thrift.TException te) {
1004
        throw new java.io.IOException(te);
1005
      }
1006
    }
1007
 
1008
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1009
      try {
1010
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1011
      } catch (org.apache.thrift.TException te) {
1012
        throw new java.io.IOException(te);
1013
      }
1014
    }
1015
 
779 rajveer 1016
  }
1017
 
3430 rajveer 1018
  public static class getUser_args implements org.apache.thrift.TBase<getUser_args, getUser_args._Fields>, java.io.Serializable, Cloneable   {
1019
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_args");
779 rajveer 1020
 
3430 rajveer 1021
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
779 rajveer 1022
 
3430 rajveer 1023
    private long id; // required
779 rajveer 1024
 
1025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 1027
      ID((short)1, "id");
1028
 
1029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1030
 
1031
      static {
1032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1033
          byName.put(field.getFieldName(), field);
1034
        }
1035
      }
1036
 
1037
      /**
1038
       * Find the _Fields constant that matches fieldId, or null if its not found.
1039
       */
1040
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1041
        switch(fieldId) {
1042
          case 1: // ID
1043
            return ID;
1044
          default:
1045
            return null;
1046
        }
779 rajveer 1047
      }
1048
 
1049
      /**
1050
       * Find the _Fields constant that matches fieldId, throwing an exception
1051
       * if it is not found.
1052
       */
1053
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1054
        _Fields fields = findByThriftId(fieldId);
1055
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1056
        return fields;
1057
      }
1058
 
1059
      /**
1060
       * Find the _Fields constant that matches name, or null if its not found.
1061
       */
1062
      public static _Fields findByName(String name) {
1063
        return byName.get(name);
1064
      }
1065
 
1066
      private final short _thriftId;
1067
      private final String _fieldName;
1068
 
1069
      _Fields(short thriftId, String fieldName) {
1070
        _thriftId = thriftId;
1071
        _fieldName = fieldName;
1072
      }
1073
 
1074
      public short getThriftFieldId() {
1075
        return _thriftId;
1076
      }
1077
 
1078
      public String getFieldName() {
1079
        return _fieldName;
1080
      }
1081
    }
1082
 
1083
    // isset id assignments
1084
    private static final int __ID_ISSET_ID = 0;
1085
    private BitSet __isset_bit_vector = new BitSet(1);
1086
 
3430 rajveer 1087
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 1088
    static {
3430 rajveer 1089
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1090
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap);
779 rajveer 1094
    }
1095
 
1096
    public getUser_args() {
1097
    }
1098
 
1099
    public getUser_args(
1100
      long id)
1101
    {
1102
      this();
1103
      this.id = id;
1104
      setIdIsSet(true);
1105
    }
1106
 
1107
    /**
1108
     * Performs a deep copy on <i>other</i>.
1109
     */
1110
    public getUser_args(getUser_args other) {
1111
      __isset_bit_vector.clear();
1112
      __isset_bit_vector.or(other.__isset_bit_vector);
1113
      this.id = other.id;
1114
    }
1115
 
1116
    public getUser_args deepCopy() {
1117
      return new getUser_args(this);
1118
    }
1119
 
3430 rajveer 1120
    @Override
1121
    public void clear() {
1122
      setIdIsSet(false);
1123
      this.id = 0;
779 rajveer 1124
    }
1125
 
1126
    public long getId() {
1127
      return this.id;
1128
    }
1129
 
3430 rajveer 1130
    public void setId(long id) {
779 rajveer 1131
      this.id = id;
1132
      setIdIsSet(true);
1133
    }
1134
 
1135
    public void unsetId() {
1136
      __isset_bit_vector.clear(__ID_ISSET_ID);
1137
    }
1138
 
3430 rajveer 1139
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
779 rajveer 1140
    public boolean isSetId() {
1141
      return __isset_bit_vector.get(__ID_ISSET_ID);
1142
    }
1143
 
1144
    public void setIdIsSet(boolean value) {
1145
      __isset_bit_vector.set(__ID_ISSET_ID, value);
1146
    }
1147
 
1148
    public void setFieldValue(_Fields field, Object value) {
1149
      switch (field) {
1150
      case ID:
1151
        if (value == null) {
1152
          unsetId();
1153
        } else {
1154
          setId((Long)value);
1155
        }
1156
        break;
1157
 
1158
      }
1159
    }
1160
 
1161
    public Object getFieldValue(_Fields field) {
1162
      switch (field) {
1163
      case ID:
3430 rajveer 1164
        return Long.valueOf(getId());
779 rajveer 1165
 
1166
      }
1167
      throw new IllegalStateException();
1168
    }
1169
 
3430 rajveer 1170
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1171
    public boolean isSet(_Fields field) {
1172
      if (field == null) {
1173
        throw new IllegalArgumentException();
1174
      }
779 rajveer 1175
 
1176
      switch (field) {
1177
      case ID:
1178
        return isSetId();
1179
      }
1180
      throw new IllegalStateException();
1181
    }
1182
 
1183
    @Override
1184
    public boolean equals(Object that) {
1185
      if (that == null)
1186
        return false;
1187
      if (that instanceof getUser_args)
1188
        return this.equals((getUser_args)that);
1189
      return false;
1190
    }
1191
 
1192
    public boolean equals(getUser_args that) {
1193
      if (that == null)
1194
        return false;
1195
 
1196
      boolean this_present_id = true;
1197
      boolean that_present_id = true;
1198
      if (this_present_id || that_present_id) {
1199
        if (!(this_present_id && that_present_id))
1200
          return false;
1201
        if (this.id != that.id)
1202
          return false;
1203
      }
1204
 
1205
      return true;
1206
    }
1207
 
1208
    @Override
1209
    public int hashCode() {
1210
      return 0;
1211
    }
1212
 
1213
    public int compareTo(getUser_args other) {
1214
      if (!getClass().equals(other.getClass())) {
1215
        return getClass().getName().compareTo(other.getClass().getName());
1216
      }
1217
 
1218
      int lastComparison = 0;
1219
      getUser_args typedOther = (getUser_args)other;
1220
 
3430 rajveer 1221
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
779 rajveer 1222
      if (lastComparison != 0) {
1223
        return lastComparison;
1224
      }
3430 rajveer 1225
      if (isSetId()) {
1226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1227
        if (lastComparison != 0) {
1228
          return lastComparison;
1229
        }
779 rajveer 1230
      }
1231
      return 0;
1232
    }
1233
 
3430 rajveer 1234
    public _Fields fieldForId(int fieldId) {
1235
      return _Fields.findByThriftId(fieldId);
1236
    }
1237
 
1238
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1239
      org.apache.thrift.protocol.TField field;
779 rajveer 1240
      iprot.readStructBegin();
1241
      while (true)
1242
      {
1243
        field = iprot.readFieldBegin();
3430 rajveer 1244
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 1245
          break;
1246
        }
3430 rajveer 1247
        switch (field.id) {
1248
          case 1: // ID
1249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1250
              this.id = iprot.readI64();
1251
              setIdIsSet(true);
1252
            } else { 
1253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1254
            }
1255
            break;
1256
          default:
1257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 1258
        }
3430 rajveer 1259
        iprot.readFieldEnd();
779 rajveer 1260
      }
1261
      iprot.readStructEnd();
1262
      validate();
1263
    }
1264
 
3430 rajveer 1265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 1266
      validate();
1267
 
1268
      oprot.writeStructBegin(STRUCT_DESC);
1269
      oprot.writeFieldBegin(ID_FIELD_DESC);
1270
      oprot.writeI64(this.id);
1271
      oprot.writeFieldEnd();
1272
      oprot.writeFieldStop();
1273
      oprot.writeStructEnd();
1274
    }
1275
 
1276
    @Override
1277
    public String toString() {
1278
      StringBuilder sb = new StringBuilder("getUser_args(");
1279
      boolean first = true;
1280
 
1281
      sb.append("id:");
1282
      sb.append(this.id);
1283
      first = false;
1284
      sb.append(")");
1285
      return sb.toString();
1286
    }
1287
 
3430 rajveer 1288
    public void validate() throws org.apache.thrift.TException {
779 rajveer 1289
      // check for required fields
1290
    }
1291
 
3430 rajveer 1292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1293
      try {
1294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1295
      } catch (org.apache.thrift.TException te) {
1296
        throw new java.io.IOException(te);
1297
      }
1298
    }
1299
 
1300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1301
      try {
1302
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1303
        __isset_bit_vector = new BitSet(1);
1304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1305
      } catch (org.apache.thrift.TException te) {
1306
        throw new java.io.IOException(te);
1307
      }
1308
    }
1309
 
779 rajveer 1310
  }
1311
 
3430 rajveer 1312
  public static class getUser_result implements org.apache.thrift.TBase<getUser_result, getUser_result._Fields>, java.io.Serializable, Cloneable   {
1313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_result");
779 rajveer 1314
 
3430 rajveer 1315
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
779 rajveer 1316
 
3430 rajveer 1317
    private String success; // required
779 rajveer 1318
 
1319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 1321
      SUCCESS((short)0, "success");
1322
 
1323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1324
 
1325
      static {
1326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1327
          byName.put(field.getFieldName(), field);
1328
        }
1329
      }
1330
 
1331
      /**
1332
       * Find the _Fields constant that matches fieldId, or null if its not found.
1333
       */
1334
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1335
        switch(fieldId) {
1336
          case 0: // SUCCESS
1337
            return SUCCESS;
1338
          default:
1339
            return null;
1340
        }
779 rajveer 1341
      }
1342
 
1343
      /**
1344
       * Find the _Fields constant that matches fieldId, throwing an exception
1345
       * if it is not found.
1346
       */
1347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1348
        _Fields fields = findByThriftId(fieldId);
1349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1350
        return fields;
1351
      }
1352
 
1353
      /**
1354
       * Find the _Fields constant that matches name, or null if its not found.
1355
       */
1356
      public static _Fields findByName(String name) {
1357
        return byName.get(name);
1358
      }
1359
 
1360
      private final short _thriftId;
1361
      private final String _fieldName;
1362
 
1363
      _Fields(short thriftId, String fieldName) {
1364
        _thriftId = thriftId;
1365
        _fieldName = fieldName;
1366
      }
1367
 
1368
      public short getThriftFieldId() {
1369
        return _thriftId;
1370
      }
1371
 
1372
      public String getFieldName() {
1373
        return _fieldName;
1374
      }
1375
    }
1376
 
1377
    // isset id assignments
1378
 
3430 rajveer 1379
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 1380
    static {
3430 rajveer 1381
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1382
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1384
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1385
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap);
779 rajveer 1386
    }
1387
 
1388
    public getUser_result() {
1389
    }
1390
 
1391
    public getUser_result(
1392
      String success)
1393
    {
1394
      this();
1395
      this.success = success;
1396
    }
1397
 
1398
    /**
1399
     * Performs a deep copy on <i>other</i>.
1400
     */
1401
    public getUser_result(getUser_result other) {
1402
      if (other.isSetSuccess()) {
1403
        this.success = other.success;
1404
      }
1405
    }
1406
 
1407
    public getUser_result deepCopy() {
1408
      return new getUser_result(this);
1409
    }
1410
 
3430 rajveer 1411
    @Override
1412
    public void clear() {
1413
      this.success = null;
779 rajveer 1414
    }
1415
 
1416
    public String getSuccess() {
1417
      return this.success;
1418
    }
1419
 
3430 rajveer 1420
    public void setSuccess(String success) {
779 rajveer 1421
      this.success = success;
1422
    }
1423
 
1424
    public void unsetSuccess() {
1425
      this.success = null;
1426
    }
1427
 
3430 rajveer 1428
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
779 rajveer 1429
    public boolean isSetSuccess() {
1430
      return this.success != null;
1431
    }
1432
 
1433
    public void setSuccessIsSet(boolean value) {
1434
      if (!value) {
1435
        this.success = null;
1436
      }
1437
    }
1438
 
1439
    public void setFieldValue(_Fields field, Object value) {
1440
      switch (field) {
1441
      case SUCCESS:
1442
        if (value == null) {
1443
          unsetSuccess();
1444
        } else {
1445
          setSuccess((String)value);
1446
        }
1447
        break;
1448
 
1449
      }
1450
    }
1451
 
1452
    public Object getFieldValue(_Fields field) {
1453
      switch (field) {
1454
      case SUCCESS:
1455
        return getSuccess();
1456
 
1457
      }
1458
      throw new IllegalStateException();
1459
    }
1460
 
3430 rajveer 1461
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1462
    public boolean isSet(_Fields field) {
1463
      if (field == null) {
1464
        throw new IllegalArgumentException();
1465
      }
779 rajveer 1466
 
1467
      switch (field) {
1468
      case SUCCESS:
1469
        return isSetSuccess();
1470
      }
1471
      throw new IllegalStateException();
1472
    }
1473
 
1474
    @Override
1475
    public boolean equals(Object that) {
1476
      if (that == null)
1477
        return false;
1478
      if (that instanceof getUser_result)
1479
        return this.equals((getUser_result)that);
1480
      return false;
1481
    }
1482
 
1483
    public boolean equals(getUser_result that) {
1484
      if (that == null)
1485
        return false;
1486
 
1487
      boolean this_present_success = true && this.isSetSuccess();
1488
      boolean that_present_success = true && that.isSetSuccess();
1489
      if (this_present_success || that_present_success) {
1490
        if (!(this_present_success && that_present_success))
1491
          return false;
1492
        if (!this.success.equals(that.success))
1493
          return false;
1494
      }
1495
 
1496
      return true;
1497
    }
1498
 
1499
    @Override
1500
    public int hashCode() {
1501
      return 0;
1502
    }
1503
 
1504
    public int compareTo(getUser_result other) {
1505
      if (!getClass().equals(other.getClass())) {
1506
        return getClass().getName().compareTo(other.getClass().getName());
1507
      }
1508
 
1509
      int lastComparison = 0;
1510
      getUser_result typedOther = (getUser_result)other;
1511
 
3430 rajveer 1512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
779 rajveer 1513
      if (lastComparison != 0) {
1514
        return lastComparison;
1515
      }
3430 rajveer 1516
      if (isSetSuccess()) {
1517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1518
        if (lastComparison != 0) {
1519
          return lastComparison;
1520
        }
779 rajveer 1521
      }
1522
      return 0;
1523
    }
1524
 
3430 rajveer 1525
    public _Fields fieldForId(int fieldId) {
1526
      return _Fields.findByThriftId(fieldId);
1527
    }
1528
 
1529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1530
      org.apache.thrift.protocol.TField field;
779 rajveer 1531
      iprot.readStructBegin();
1532
      while (true)
1533
      {
1534
        field = iprot.readFieldBegin();
3430 rajveer 1535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 1536
          break;
1537
        }
3430 rajveer 1538
        switch (field.id) {
1539
          case 0: // SUCCESS
1540
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1541
              this.success = iprot.readString();
1542
            } else { 
1543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1544
            }
1545
            break;
1546
          default:
1547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 1548
        }
3430 rajveer 1549
        iprot.readFieldEnd();
779 rajveer 1550
      }
1551
      iprot.readStructEnd();
1552
      validate();
1553
    }
1554
 
3430 rajveer 1555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 1556
      oprot.writeStructBegin(STRUCT_DESC);
1557
 
1558
      if (this.isSetSuccess()) {
1559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1560
        oprot.writeString(this.success);
1561
        oprot.writeFieldEnd();
1562
      }
1563
      oprot.writeFieldStop();
1564
      oprot.writeStructEnd();
1565
    }
1566
 
1567
    @Override
1568
    public String toString() {
1569
      StringBuilder sb = new StringBuilder("getUser_result(");
1570
      boolean first = true;
1571
 
1572
      sb.append("success:");
1573
      if (this.success == null) {
1574
        sb.append("null");
1575
      } else {
1576
        sb.append(this.success);
1577
      }
1578
      first = false;
1579
      sb.append(")");
1580
      return sb.toString();
1581
    }
1582
 
3430 rajveer 1583
    public void validate() throws org.apache.thrift.TException {
779 rajveer 1584
      // check for required fields
1585
    }
1586
 
3430 rajveer 1587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1588
      try {
1589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1590
      } catch (org.apache.thrift.TException te) {
1591
        throw new java.io.IOException(te);
1592
      }
1593
    }
1594
 
1595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1596
      try {
1597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1598
      } catch (org.apache.thrift.TException te) {
1599
        throw new java.io.IOException(te);
1600
      }
1601
    }
1602
 
779 rajveer 1603
  }
1604
 
3430 rajveer 1605
  public static class getAddressId_args implements org.apache.thrift.TBase<getAddressId_args, getAddressId_args._Fields>, java.io.Serializable, Cloneable   {
1606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_args");
896 rajveer 1607
 
1608
 
1609
 
1610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 1612
;
1613
 
1614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1615
 
1616
      static {
1617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1618
          byName.put(field.getFieldName(), field);
1619
        }
1620
      }
1621
 
1622
      /**
1623
       * Find the _Fields constant that matches fieldId, or null if its not found.
1624
       */
1625
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1626
        switch(fieldId) {
1627
          default:
1628
            return null;
1629
        }
896 rajveer 1630
      }
1631
 
1632
      /**
1633
       * Find the _Fields constant that matches fieldId, throwing an exception
1634
       * if it is not found.
1635
       */
1636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1637
        _Fields fields = findByThriftId(fieldId);
1638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1639
        return fields;
1640
      }
1641
 
1642
      /**
1643
       * Find the _Fields constant that matches name, or null if its not found.
1644
       */
1645
      public static _Fields findByName(String name) {
1646
        return byName.get(name);
1647
      }
1648
 
1649
      private final short _thriftId;
1650
      private final String _fieldName;
1651
 
1652
      _Fields(short thriftId, String fieldName) {
1653
        _thriftId = thriftId;
1654
        _fieldName = fieldName;
1655
      }
1656
 
1657
      public short getThriftFieldId() {
1658
        return _thriftId;
1659
      }
1660
 
1661
      public String getFieldName() {
1662
        return _fieldName;
1663
      }
1664
    }
3430 rajveer 1665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 1666
    static {
3430 rajveer 1667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_args.class, metaDataMap);
896 rajveer 1670
    }
1671
 
1672
    public getAddressId_args() {
1673
    }
1674
 
1675
    /**
1676
     * Performs a deep copy on <i>other</i>.
1677
     */
1678
    public getAddressId_args(getAddressId_args other) {
1679
    }
1680
 
1681
    public getAddressId_args deepCopy() {
1682
      return new getAddressId_args(this);
1683
    }
1684
 
3430 rajveer 1685
    @Override
1686
    public void clear() {
896 rajveer 1687
    }
1688
 
1689
    public void setFieldValue(_Fields field, Object value) {
1690
      switch (field) {
1691
      }
1692
    }
1693
 
1694
    public Object getFieldValue(_Fields field) {
1695
      switch (field) {
1696
      }
1697
      throw new IllegalStateException();
1698
    }
1699
 
3430 rajveer 1700
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1701
    public boolean isSet(_Fields field) {
1702
      if (field == null) {
1703
        throw new IllegalArgumentException();
1704
      }
896 rajveer 1705
 
1706
      switch (field) {
1707
      }
1708
      throw new IllegalStateException();
1709
    }
1710
 
1711
    @Override
1712
    public boolean equals(Object that) {
1713
      if (that == null)
1714
        return false;
1715
      if (that instanceof getAddressId_args)
1716
        return this.equals((getAddressId_args)that);
1717
      return false;
1718
    }
1719
 
1720
    public boolean equals(getAddressId_args that) {
1721
      if (that == null)
1722
        return false;
1723
 
1724
      return true;
1725
    }
1726
 
1727
    @Override
1728
    public int hashCode() {
1729
      return 0;
1730
    }
1731
 
1732
    public int compareTo(getAddressId_args other) {
1733
      if (!getClass().equals(other.getClass())) {
1734
        return getClass().getName().compareTo(other.getClass().getName());
1735
      }
1736
 
1737
      int lastComparison = 0;
1738
      getAddressId_args typedOther = (getAddressId_args)other;
1739
 
1740
      return 0;
1741
    }
1742
 
3430 rajveer 1743
    public _Fields fieldForId(int fieldId) {
1744
      return _Fields.findByThriftId(fieldId);
1745
    }
1746
 
1747
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1748
      org.apache.thrift.protocol.TField field;
896 rajveer 1749
      iprot.readStructBegin();
1750
      while (true)
1751
      {
1752
        field = iprot.readFieldBegin();
3430 rajveer 1753
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 1754
          break;
1755
        }
3430 rajveer 1756
        switch (field.id) {
1757
          default:
1758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 1759
        }
3430 rajveer 1760
        iprot.readFieldEnd();
896 rajveer 1761
      }
1762
      iprot.readStructEnd();
1763
      validate();
1764
    }
1765
 
3430 rajveer 1766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 1767
      validate();
1768
 
1769
      oprot.writeStructBegin(STRUCT_DESC);
1770
      oprot.writeFieldStop();
1771
      oprot.writeStructEnd();
1772
    }
1773
 
1774
    @Override
1775
    public String toString() {
1776
      StringBuilder sb = new StringBuilder("getAddressId_args(");
1777
      boolean first = true;
1778
 
1779
      sb.append(")");
1780
      return sb.toString();
1781
    }
1782
 
3430 rajveer 1783
    public void validate() throws org.apache.thrift.TException {
896 rajveer 1784
      // check for required fields
1785
    }
1786
 
3430 rajveer 1787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1788
      try {
1789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1790
      } catch (org.apache.thrift.TException te) {
1791
        throw new java.io.IOException(te);
1792
      }
1793
    }
1794
 
1795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1796
      try {
1797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1798
      } catch (org.apache.thrift.TException te) {
1799
        throw new java.io.IOException(te);
1800
      }
1801
    }
1802
 
896 rajveer 1803
  }
1804
 
3430 rajveer 1805
  public static class getAddressId_result implements org.apache.thrift.TBase<getAddressId_result, getAddressId_result._Fields>, java.io.Serializable, Cloneable   {
1806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_result");
896 rajveer 1807
 
3430 rajveer 1808
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
896 rajveer 1809
 
3430 rajveer 1810
    private long success; // required
896 rajveer 1811
 
1812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 1814
      SUCCESS((short)0, "success");
1815
 
1816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1817
 
1818
      static {
1819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1820
          byName.put(field.getFieldName(), field);
1821
        }
1822
      }
1823
 
1824
      /**
1825
       * Find the _Fields constant that matches fieldId, or null if its not found.
1826
       */
1827
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1828
        switch(fieldId) {
1829
          case 0: // SUCCESS
1830
            return SUCCESS;
1831
          default:
1832
            return null;
1833
        }
896 rajveer 1834
      }
1835
 
1836
      /**
1837
       * Find the _Fields constant that matches fieldId, throwing an exception
1838
       * if it is not found.
1839
       */
1840
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1841
        _Fields fields = findByThriftId(fieldId);
1842
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1843
        return fields;
1844
      }
1845
 
1846
      /**
1847
       * Find the _Fields constant that matches name, or null if its not found.
1848
       */
1849
      public static _Fields findByName(String name) {
1850
        return byName.get(name);
1851
      }
1852
 
1853
      private final short _thriftId;
1854
      private final String _fieldName;
1855
 
1856
      _Fields(short thriftId, String fieldName) {
1857
        _thriftId = thriftId;
1858
        _fieldName = fieldName;
1859
      }
1860
 
1861
      public short getThriftFieldId() {
1862
        return _thriftId;
1863
      }
1864
 
1865
      public String getFieldName() {
1866
        return _fieldName;
1867
      }
1868
    }
1869
 
1870
    // isset id assignments
1871
    private static final int __SUCCESS_ISSET_ID = 0;
1872
    private BitSet __isset_bit_vector = new BitSet(1);
1873
 
3430 rajveer 1874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 1875
    static {
3430 rajveer 1876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1877
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1878
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_result.class, metaDataMap);
896 rajveer 1881
    }
1882
 
1883
    public getAddressId_result() {
1884
    }
1885
 
1886
    public getAddressId_result(
1887
      long success)
1888
    {
1889
      this();
1890
      this.success = success;
1891
      setSuccessIsSet(true);
1892
    }
1893
 
1894
    /**
1895
     * Performs a deep copy on <i>other</i>.
1896
     */
1897
    public getAddressId_result(getAddressId_result other) {
1898
      __isset_bit_vector.clear();
1899
      __isset_bit_vector.or(other.__isset_bit_vector);
1900
      this.success = other.success;
1901
    }
1902
 
1903
    public getAddressId_result deepCopy() {
1904
      return new getAddressId_result(this);
1905
    }
1906
 
3430 rajveer 1907
    @Override
1908
    public void clear() {
1909
      setSuccessIsSet(false);
1910
      this.success = 0;
896 rajveer 1911
    }
1912
 
1913
    public long getSuccess() {
1914
      return this.success;
1915
    }
1916
 
3430 rajveer 1917
    public void setSuccess(long success) {
896 rajveer 1918
      this.success = success;
1919
      setSuccessIsSet(true);
1920
    }
1921
 
1922
    public void unsetSuccess() {
1923
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1924
    }
1925
 
3430 rajveer 1926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
896 rajveer 1927
    public boolean isSetSuccess() {
1928
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1929
    }
1930
 
1931
    public void setSuccessIsSet(boolean value) {
1932
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1933
    }
1934
 
1935
    public void setFieldValue(_Fields field, Object value) {
1936
      switch (field) {
1937
      case SUCCESS:
1938
        if (value == null) {
1939
          unsetSuccess();
1940
        } else {
1941
          setSuccess((Long)value);
1942
        }
1943
        break;
1944
 
1945
      }
1946
    }
1947
 
1948
    public Object getFieldValue(_Fields field) {
1949
      switch (field) {
1950
      case SUCCESS:
3430 rajveer 1951
        return Long.valueOf(getSuccess());
896 rajveer 1952
 
1953
      }
1954
      throw new IllegalStateException();
1955
    }
1956
 
3430 rajveer 1957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1958
    public boolean isSet(_Fields field) {
1959
      if (field == null) {
1960
        throw new IllegalArgumentException();
1961
      }
896 rajveer 1962
 
1963
      switch (field) {
1964
      case SUCCESS:
1965
        return isSetSuccess();
1966
      }
1967
      throw new IllegalStateException();
1968
    }
1969
 
1970
    @Override
1971
    public boolean equals(Object that) {
1972
      if (that == null)
1973
        return false;
1974
      if (that instanceof getAddressId_result)
1975
        return this.equals((getAddressId_result)that);
1976
      return false;
1977
    }
1978
 
1979
    public boolean equals(getAddressId_result that) {
1980
      if (that == null)
1981
        return false;
1982
 
1983
      boolean this_present_success = true;
1984
      boolean that_present_success = true;
1985
      if (this_present_success || that_present_success) {
1986
        if (!(this_present_success && that_present_success))
1987
          return false;
1988
        if (this.success != that.success)
1989
          return false;
1990
      }
1991
 
1992
      return true;
1993
    }
1994
 
1995
    @Override
1996
    public int hashCode() {
1997
      return 0;
1998
    }
1999
 
2000
    public int compareTo(getAddressId_result other) {
2001
      if (!getClass().equals(other.getClass())) {
2002
        return getClass().getName().compareTo(other.getClass().getName());
2003
      }
2004
 
2005
      int lastComparison = 0;
2006
      getAddressId_result typedOther = (getAddressId_result)other;
2007
 
3430 rajveer 2008
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
896 rajveer 2009
      if (lastComparison != 0) {
2010
        return lastComparison;
2011
      }
3430 rajveer 2012
      if (isSetSuccess()) {
2013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2014
        if (lastComparison != 0) {
2015
          return lastComparison;
2016
        }
896 rajveer 2017
      }
2018
      return 0;
2019
    }
2020
 
3430 rajveer 2021
    public _Fields fieldForId(int fieldId) {
2022
      return _Fields.findByThriftId(fieldId);
2023
    }
2024
 
2025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2026
      org.apache.thrift.protocol.TField field;
896 rajveer 2027
      iprot.readStructBegin();
2028
      while (true)
2029
      {
2030
        field = iprot.readFieldBegin();
3430 rajveer 2031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2032
          break;
2033
        }
3430 rajveer 2034
        switch (field.id) {
2035
          case 0: // SUCCESS
2036
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2037
              this.success = iprot.readI64();
2038
              setSuccessIsSet(true);
2039
            } else { 
2040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2041
            }
2042
            break;
2043
          default:
2044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2045
        }
3430 rajveer 2046
        iprot.readFieldEnd();
896 rajveer 2047
      }
2048
      iprot.readStructEnd();
2049
      validate();
2050
    }
2051
 
3430 rajveer 2052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2053
      oprot.writeStructBegin(STRUCT_DESC);
2054
 
2055
      if (this.isSetSuccess()) {
2056
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2057
        oprot.writeI64(this.success);
2058
        oprot.writeFieldEnd();
2059
      }
2060
      oprot.writeFieldStop();
2061
      oprot.writeStructEnd();
2062
    }
2063
 
2064
    @Override
2065
    public String toString() {
2066
      StringBuilder sb = new StringBuilder("getAddressId_result(");
2067
      boolean first = true;
2068
 
2069
      sb.append("success:");
2070
      sb.append(this.success);
2071
      first = false;
2072
      sb.append(")");
2073
      return sb.toString();
2074
    }
2075
 
3430 rajveer 2076
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2077
      // check for required fields
2078
    }
2079
 
3430 rajveer 2080
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2081
      try {
2082
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2083
      } catch (org.apache.thrift.TException te) {
2084
        throw new java.io.IOException(te);
2085
      }
2086
    }
2087
 
2088
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2089
      try {
2090
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2091
      } catch (org.apache.thrift.TException te) {
2092
        throw new java.io.IOException(te);
2093
      }
2094
    }
2095
 
896 rajveer 2096
  }
2097
 
3430 rajveer 2098
  public static class getAddress_args implements org.apache.thrift.TBase<getAddress_args, getAddress_args._Fields>, java.io.Serializable, Cloneable   {
2099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_args");
896 rajveer 2100
 
2101
 
2102
 
2103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 2105
;
2106
 
2107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2108
 
2109
      static {
2110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2111
          byName.put(field.getFieldName(), field);
2112
        }
2113
      }
2114
 
2115
      /**
2116
       * Find the _Fields constant that matches fieldId, or null if its not found.
2117
       */
2118
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2119
        switch(fieldId) {
2120
          default:
2121
            return null;
2122
        }
896 rajveer 2123
      }
2124
 
2125
      /**
2126
       * Find the _Fields constant that matches fieldId, throwing an exception
2127
       * if it is not found.
2128
       */
2129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2130
        _Fields fields = findByThriftId(fieldId);
2131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2132
        return fields;
2133
      }
2134
 
2135
      /**
2136
       * Find the _Fields constant that matches name, or null if its not found.
2137
       */
2138
      public static _Fields findByName(String name) {
2139
        return byName.get(name);
2140
      }
2141
 
2142
      private final short _thriftId;
2143
      private final String _fieldName;
2144
 
2145
      _Fields(short thriftId, String fieldName) {
2146
        _thriftId = thriftId;
2147
        _fieldName = fieldName;
2148
      }
2149
 
2150
      public short getThriftFieldId() {
2151
        return _thriftId;
2152
      }
2153
 
2154
      public String getFieldName() {
2155
        return _fieldName;
2156
      }
2157
    }
3430 rajveer 2158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 2159
    static {
3430 rajveer 2160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_args.class, metaDataMap);
896 rajveer 2163
    }
2164
 
2165
    public getAddress_args() {
2166
    }
2167
 
2168
    /**
2169
     * Performs a deep copy on <i>other</i>.
2170
     */
2171
    public getAddress_args(getAddress_args other) {
2172
    }
2173
 
2174
    public getAddress_args deepCopy() {
2175
      return new getAddress_args(this);
2176
    }
2177
 
3430 rajveer 2178
    @Override
2179
    public void clear() {
896 rajveer 2180
    }
2181
 
2182
    public void setFieldValue(_Fields field, Object value) {
2183
      switch (field) {
2184
      }
2185
    }
2186
 
2187
    public Object getFieldValue(_Fields field) {
2188
      switch (field) {
2189
      }
2190
      throw new IllegalStateException();
2191
    }
2192
 
3430 rajveer 2193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2194
    public boolean isSet(_Fields field) {
2195
      if (field == null) {
2196
        throw new IllegalArgumentException();
2197
      }
896 rajveer 2198
 
2199
      switch (field) {
2200
      }
2201
      throw new IllegalStateException();
2202
    }
2203
 
2204
    @Override
2205
    public boolean equals(Object that) {
2206
      if (that == null)
2207
        return false;
2208
      if (that instanceof getAddress_args)
2209
        return this.equals((getAddress_args)that);
2210
      return false;
2211
    }
2212
 
2213
    public boolean equals(getAddress_args that) {
2214
      if (that == null)
2215
        return false;
2216
 
2217
      return true;
2218
    }
2219
 
2220
    @Override
2221
    public int hashCode() {
2222
      return 0;
2223
    }
2224
 
2225
    public int compareTo(getAddress_args other) {
2226
      if (!getClass().equals(other.getClass())) {
2227
        return getClass().getName().compareTo(other.getClass().getName());
2228
      }
2229
 
2230
      int lastComparison = 0;
2231
      getAddress_args typedOther = (getAddress_args)other;
2232
 
2233
      return 0;
2234
    }
2235
 
3430 rajveer 2236
    public _Fields fieldForId(int fieldId) {
2237
      return _Fields.findByThriftId(fieldId);
2238
    }
2239
 
2240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2241
      org.apache.thrift.protocol.TField field;
896 rajveer 2242
      iprot.readStructBegin();
2243
      while (true)
2244
      {
2245
        field = iprot.readFieldBegin();
3430 rajveer 2246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2247
          break;
2248
        }
3430 rajveer 2249
        switch (field.id) {
2250
          default:
2251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2252
        }
3430 rajveer 2253
        iprot.readFieldEnd();
896 rajveer 2254
      }
2255
      iprot.readStructEnd();
2256
      validate();
2257
    }
2258
 
3430 rajveer 2259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2260
      validate();
2261
 
2262
      oprot.writeStructBegin(STRUCT_DESC);
2263
      oprot.writeFieldStop();
2264
      oprot.writeStructEnd();
2265
    }
2266
 
2267
    @Override
2268
    public String toString() {
2269
      StringBuilder sb = new StringBuilder("getAddress_args(");
2270
      boolean first = true;
2271
 
2272
      sb.append(")");
2273
      return sb.toString();
2274
    }
2275
 
3430 rajveer 2276
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2277
      // check for required fields
2278
    }
2279
 
3430 rajveer 2280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2281
      try {
2282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2283
      } catch (org.apache.thrift.TException te) {
2284
        throw new java.io.IOException(te);
2285
      }
2286
    }
2287
 
2288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2289
      try {
2290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2291
      } catch (org.apache.thrift.TException te) {
2292
        throw new java.io.IOException(te);
2293
      }
2294
    }
2295
 
896 rajveer 2296
  }
2297
 
3430 rajveer 2298
  public static class getAddress_result implements org.apache.thrift.TBase<getAddress_result, getAddress_result._Fields>, java.io.Serializable, Cloneable   {
2299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_result");
896 rajveer 2300
 
3430 rajveer 2301
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
896 rajveer 2302
 
3430 rajveer 2303
    private Address success; // required
896 rajveer 2304
 
2305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 2307
      SUCCESS((short)0, "success");
2308
 
2309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2310
 
2311
      static {
2312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2313
          byName.put(field.getFieldName(), field);
2314
        }
2315
      }
2316
 
2317
      /**
2318
       * Find the _Fields constant that matches fieldId, or null if its not found.
2319
       */
2320
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2321
        switch(fieldId) {
2322
          case 0: // SUCCESS
2323
            return SUCCESS;
2324
          default:
2325
            return null;
2326
        }
896 rajveer 2327
      }
2328
 
2329
      /**
2330
       * Find the _Fields constant that matches fieldId, throwing an exception
2331
       * if it is not found.
2332
       */
2333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2334
        _Fields fields = findByThriftId(fieldId);
2335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2336
        return fields;
2337
      }
2338
 
2339
      /**
2340
       * Find the _Fields constant that matches name, or null if its not found.
2341
       */
2342
      public static _Fields findByName(String name) {
2343
        return byName.get(name);
2344
      }
2345
 
2346
      private final short _thriftId;
2347
      private final String _fieldName;
2348
 
2349
      _Fields(short thriftId, String fieldName) {
2350
        _thriftId = thriftId;
2351
        _fieldName = fieldName;
2352
      }
2353
 
2354
      public short getThriftFieldId() {
2355
        return _thriftId;
2356
      }
2357
 
2358
      public String getFieldName() {
2359
        return _fieldName;
2360
      }
2361
    }
2362
 
2363
    // isset id assignments
2364
 
3430 rajveer 2365
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 2366
    static {
3430 rajveer 2367
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2368
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2369
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
2370
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2371
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_result.class, metaDataMap);
896 rajveer 2372
    }
2373
 
2374
    public getAddress_result() {
2375
    }
2376
 
2377
    public getAddress_result(
2378
      Address success)
2379
    {
2380
      this();
2381
      this.success = success;
2382
    }
2383
 
2384
    /**
2385
     * Performs a deep copy on <i>other</i>.
2386
     */
2387
    public getAddress_result(getAddress_result other) {
2388
      if (other.isSetSuccess()) {
2389
        this.success = new Address(other.success);
2390
      }
2391
    }
2392
 
2393
    public getAddress_result deepCopy() {
2394
      return new getAddress_result(this);
2395
    }
2396
 
3430 rajveer 2397
    @Override
2398
    public void clear() {
2399
      this.success = null;
896 rajveer 2400
    }
2401
 
2402
    public Address getSuccess() {
2403
      return this.success;
2404
    }
2405
 
3430 rajveer 2406
    public void setSuccess(Address success) {
896 rajveer 2407
      this.success = success;
2408
    }
2409
 
2410
    public void unsetSuccess() {
2411
      this.success = null;
2412
    }
2413
 
3430 rajveer 2414
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
896 rajveer 2415
    public boolean isSetSuccess() {
2416
      return this.success != null;
2417
    }
2418
 
2419
    public void setSuccessIsSet(boolean value) {
2420
      if (!value) {
2421
        this.success = null;
2422
      }
2423
    }
2424
 
2425
    public void setFieldValue(_Fields field, Object value) {
2426
      switch (field) {
2427
      case SUCCESS:
2428
        if (value == null) {
2429
          unsetSuccess();
2430
        } else {
2431
          setSuccess((Address)value);
2432
        }
2433
        break;
2434
 
2435
      }
2436
    }
2437
 
2438
    public Object getFieldValue(_Fields field) {
2439
      switch (field) {
2440
      case SUCCESS:
2441
        return getSuccess();
2442
 
2443
      }
2444
      throw new IllegalStateException();
2445
    }
2446
 
3430 rajveer 2447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2448
    public boolean isSet(_Fields field) {
2449
      if (field == null) {
2450
        throw new IllegalArgumentException();
2451
      }
896 rajveer 2452
 
2453
      switch (field) {
2454
      case SUCCESS:
2455
        return isSetSuccess();
2456
      }
2457
      throw new IllegalStateException();
2458
    }
2459
 
2460
    @Override
2461
    public boolean equals(Object that) {
2462
      if (that == null)
2463
        return false;
2464
      if (that instanceof getAddress_result)
2465
        return this.equals((getAddress_result)that);
2466
      return false;
2467
    }
2468
 
2469
    public boolean equals(getAddress_result that) {
2470
      if (that == null)
2471
        return false;
2472
 
2473
      boolean this_present_success = true && this.isSetSuccess();
2474
      boolean that_present_success = true && that.isSetSuccess();
2475
      if (this_present_success || that_present_success) {
2476
        if (!(this_present_success && that_present_success))
2477
          return false;
2478
        if (!this.success.equals(that.success))
2479
          return false;
2480
      }
2481
 
2482
      return true;
2483
    }
2484
 
2485
    @Override
2486
    public int hashCode() {
2487
      return 0;
2488
    }
2489
 
2490
    public int compareTo(getAddress_result other) {
2491
      if (!getClass().equals(other.getClass())) {
2492
        return getClass().getName().compareTo(other.getClass().getName());
2493
      }
2494
 
2495
      int lastComparison = 0;
2496
      getAddress_result typedOther = (getAddress_result)other;
2497
 
3430 rajveer 2498
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
896 rajveer 2499
      if (lastComparison != 0) {
2500
        return lastComparison;
2501
      }
3430 rajveer 2502
      if (isSetSuccess()) {
2503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2504
        if (lastComparison != 0) {
2505
          return lastComparison;
2506
        }
896 rajveer 2507
      }
2508
      return 0;
2509
    }
2510
 
3430 rajveer 2511
    public _Fields fieldForId(int fieldId) {
2512
      return _Fields.findByThriftId(fieldId);
2513
    }
2514
 
2515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2516
      org.apache.thrift.protocol.TField field;
896 rajveer 2517
      iprot.readStructBegin();
2518
      while (true)
2519
      {
2520
        field = iprot.readFieldBegin();
3430 rajveer 2521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2522
          break;
2523
        }
3430 rajveer 2524
        switch (field.id) {
2525
          case 0: // SUCCESS
2526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2527
              this.success = new Address();
2528
              this.success.read(iprot);
2529
            } else { 
2530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2531
            }
2532
            break;
2533
          default:
2534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2535
        }
3430 rajveer 2536
        iprot.readFieldEnd();
896 rajveer 2537
      }
2538
      iprot.readStructEnd();
2539
      validate();
2540
    }
2541
 
3430 rajveer 2542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2543
      oprot.writeStructBegin(STRUCT_DESC);
2544
 
2545
      if (this.isSetSuccess()) {
2546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2547
        this.success.write(oprot);
2548
        oprot.writeFieldEnd();
2549
      }
2550
      oprot.writeFieldStop();
2551
      oprot.writeStructEnd();
2552
    }
2553
 
2554
    @Override
2555
    public String toString() {
2556
      StringBuilder sb = new StringBuilder("getAddress_result(");
2557
      boolean first = true;
2558
 
2559
      sb.append("success:");
2560
      if (this.success == null) {
2561
        sb.append("null");
2562
      } else {
2563
        sb.append(this.success);
2564
      }
2565
      first = false;
2566
      sb.append(")");
2567
      return sb.toString();
2568
    }
2569
 
3430 rajveer 2570
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2571
      // check for required fields
2572
    }
2573
 
3430 rajveer 2574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2575
      try {
2576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2577
      } catch (org.apache.thrift.TException te) {
2578
        throw new java.io.IOException(te);
2579
      }
2580
    }
2581
 
2582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2583
      try {
2584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2585
      } catch (org.apache.thrift.TException te) {
2586
        throw new java.io.IOException(te);
2587
      }
2588
    }
2589
 
896 rajveer 2590
  }
2591
 
3430 rajveer 2592
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
2593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
779 rajveer 2594
 
3430 rajveer 2595
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
779 rajveer 2596
 
3430 rajveer 2597
    private String name; // required
779 rajveer 2598
 
2599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 2601
      NAME((short)1, "name");
2602
 
2603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2604
 
2605
      static {
2606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2607
          byName.put(field.getFieldName(), field);
2608
        }
2609
      }
2610
 
2611
      /**
2612
       * Find the _Fields constant that matches fieldId, or null if its not found.
2613
       */
2614
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2615
        switch(fieldId) {
2616
          case 1: // NAME
2617
            return NAME;
2618
          default:
2619
            return null;
2620
        }
779 rajveer 2621
      }
2622
 
2623
      /**
2624
       * Find the _Fields constant that matches fieldId, throwing an exception
2625
       * if it is not found.
2626
       */
2627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2628
        _Fields fields = findByThriftId(fieldId);
2629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2630
        return fields;
2631
      }
2632
 
2633
      /**
2634
       * Find the _Fields constant that matches name, or null if its not found.
2635
       */
2636
      public static _Fields findByName(String name) {
2637
        return byName.get(name);
2638
      }
2639
 
2640
      private final short _thriftId;
2641
      private final String _fieldName;
2642
 
2643
      _Fields(short thriftId, String fieldName) {
2644
        _thriftId = thriftId;
2645
        _fieldName = fieldName;
2646
      }
2647
 
2648
      public short getThriftFieldId() {
2649
        return _thriftId;
2650
      }
2651
 
2652
      public String getFieldName() {
2653
        return _fieldName;
2654
      }
2655
    }
2656
 
2657
    // isset id assignments
2658
 
3430 rajveer 2659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 2660
    static {
3430 rajveer 2661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2662
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2663
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
779 rajveer 2666
    }
2667
 
2668
    public createUser_args() {
2669
    }
2670
 
2671
    public createUser_args(
2672
      String name)
2673
    {
2674
      this();
2675
      this.name = name;
2676
    }
2677
 
2678
    /**
2679
     * Performs a deep copy on <i>other</i>.
2680
     */
2681
    public createUser_args(createUser_args other) {
2682
      if (other.isSetName()) {
2683
        this.name = other.name;
2684
      }
2685
    }
2686
 
2687
    public createUser_args deepCopy() {
2688
      return new createUser_args(this);
2689
    }
2690
 
3430 rajveer 2691
    @Override
2692
    public void clear() {
2693
      this.name = null;
779 rajveer 2694
    }
2695
 
2696
    public String getName() {
2697
      return this.name;
2698
    }
2699
 
3430 rajveer 2700
    public void setName(String name) {
779 rajveer 2701
      this.name = name;
2702
    }
2703
 
2704
    public void unsetName() {
2705
      this.name = null;
2706
    }
2707
 
3430 rajveer 2708
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
779 rajveer 2709
    public boolean isSetName() {
2710
      return this.name != null;
2711
    }
2712
 
2713
    public void setNameIsSet(boolean value) {
2714
      if (!value) {
2715
        this.name = null;
2716
      }
2717
    }
2718
 
2719
    public void setFieldValue(_Fields field, Object value) {
2720
      switch (field) {
2721
      case NAME:
2722
        if (value == null) {
2723
          unsetName();
2724
        } else {
2725
          setName((String)value);
2726
        }
2727
        break;
2728
 
2729
      }
2730
    }
2731
 
2732
    public Object getFieldValue(_Fields field) {
2733
      switch (field) {
2734
      case NAME:
2735
        return getName();
2736
 
2737
      }
2738
      throw new IllegalStateException();
2739
    }
2740
 
3430 rajveer 2741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2742
    public boolean isSet(_Fields field) {
2743
      if (field == null) {
2744
        throw new IllegalArgumentException();
2745
      }
779 rajveer 2746
 
2747
      switch (field) {
2748
      case NAME:
2749
        return isSetName();
2750
      }
2751
      throw new IllegalStateException();
2752
    }
2753
 
2754
    @Override
2755
    public boolean equals(Object that) {
2756
      if (that == null)
2757
        return false;
2758
      if (that instanceof createUser_args)
2759
        return this.equals((createUser_args)that);
2760
      return false;
2761
    }
2762
 
2763
    public boolean equals(createUser_args that) {
2764
      if (that == null)
2765
        return false;
2766
 
2767
      boolean this_present_name = true && this.isSetName();
2768
      boolean that_present_name = true && that.isSetName();
2769
      if (this_present_name || that_present_name) {
2770
        if (!(this_present_name && that_present_name))
2771
          return false;
2772
        if (!this.name.equals(that.name))
2773
          return false;
2774
      }
2775
 
2776
      return true;
2777
    }
2778
 
2779
    @Override
2780
    public int hashCode() {
2781
      return 0;
2782
    }
2783
 
2784
    public int compareTo(createUser_args other) {
2785
      if (!getClass().equals(other.getClass())) {
2786
        return getClass().getName().compareTo(other.getClass().getName());
2787
      }
2788
 
2789
      int lastComparison = 0;
2790
      createUser_args typedOther = (createUser_args)other;
2791
 
3430 rajveer 2792
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
779 rajveer 2793
      if (lastComparison != 0) {
2794
        return lastComparison;
2795
      }
3430 rajveer 2796
      if (isSetName()) {
2797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
2798
        if (lastComparison != 0) {
2799
          return lastComparison;
2800
        }
779 rajveer 2801
      }
2802
      return 0;
2803
    }
2804
 
3430 rajveer 2805
    public _Fields fieldForId(int fieldId) {
2806
      return _Fields.findByThriftId(fieldId);
2807
    }
2808
 
2809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2810
      org.apache.thrift.protocol.TField field;
779 rajveer 2811
      iprot.readStructBegin();
2812
      while (true)
2813
      {
2814
        field = iprot.readFieldBegin();
3430 rajveer 2815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 2816
          break;
2817
        }
3430 rajveer 2818
        switch (field.id) {
2819
          case 1: // NAME
2820
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2821
              this.name = iprot.readString();
2822
            } else { 
2823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2824
            }
2825
            break;
2826
          default:
2827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 2828
        }
3430 rajveer 2829
        iprot.readFieldEnd();
779 rajveer 2830
      }
2831
      iprot.readStructEnd();
2832
      validate();
2833
    }
2834
 
3430 rajveer 2835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 2836
      validate();
2837
 
2838
      oprot.writeStructBegin(STRUCT_DESC);
2839
      if (this.name != null) {
2840
        oprot.writeFieldBegin(NAME_FIELD_DESC);
2841
        oprot.writeString(this.name);
2842
        oprot.writeFieldEnd();
2843
      }
2844
      oprot.writeFieldStop();
2845
      oprot.writeStructEnd();
2846
    }
2847
 
2848
    @Override
2849
    public String toString() {
2850
      StringBuilder sb = new StringBuilder("createUser_args(");
2851
      boolean first = true;
2852
 
2853
      sb.append("name:");
2854
      if (this.name == null) {
2855
        sb.append("null");
2856
      } else {
2857
        sb.append(this.name);
2858
      }
2859
      first = false;
2860
      sb.append(")");
2861
      return sb.toString();
2862
    }
2863
 
3430 rajveer 2864
    public void validate() throws org.apache.thrift.TException {
779 rajveer 2865
      // check for required fields
2866
    }
2867
 
3430 rajveer 2868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2869
      try {
2870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2871
      } catch (org.apache.thrift.TException te) {
2872
        throw new java.io.IOException(te);
2873
      }
2874
    }
2875
 
2876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2877
      try {
2878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2879
      } catch (org.apache.thrift.TException te) {
2880
        throw new java.io.IOException(te);
2881
      }
2882
    }
2883
 
779 rajveer 2884
  }
2885
 
3430 rajveer 2886
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
2887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
779 rajveer 2888
 
2889
 
2890
 
2891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 2893
;
2894
 
2895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2896
 
2897
      static {
2898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2899
          byName.put(field.getFieldName(), field);
2900
        }
2901
      }
2902
 
2903
      /**
2904
       * Find the _Fields constant that matches fieldId, or null if its not found.
2905
       */
2906
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2907
        switch(fieldId) {
2908
          default:
2909
            return null;
2910
        }
779 rajveer 2911
      }
2912
 
2913
      /**
2914
       * Find the _Fields constant that matches fieldId, throwing an exception
2915
       * if it is not found.
2916
       */
2917
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2918
        _Fields fields = findByThriftId(fieldId);
2919
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2920
        return fields;
2921
      }
2922
 
2923
      /**
2924
       * Find the _Fields constant that matches name, or null if its not found.
2925
       */
2926
      public static _Fields findByName(String name) {
2927
        return byName.get(name);
2928
      }
2929
 
2930
      private final short _thriftId;
2931
      private final String _fieldName;
2932
 
2933
      _Fields(short thriftId, String fieldName) {
2934
        _thriftId = thriftId;
2935
        _fieldName = fieldName;
2936
      }
2937
 
2938
      public short getThriftFieldId() {
2939
        return _thriftId;
2940
      }
2941
 
2942
      public String getFieldName() {
2943
        return _fieldName;
2944
      }
2945
    }
3430 rajveer 2946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 2947
    static {
3430 rajveer 2948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
779 rajveer 2951
    }
2952
 
2953
    public createUser_result() {
2954
    }
2955
 
2956
    /**
2957
     * Performs a deep copy on <i>other</i>.
2958
     */
2959
    public createUser_result(createUser_result other) {
2960
    }
2961
 
2962
    public createUser_result deepCopy() {
2963
      return new createUser_result(this);
2964
    }
2965
 
3430 rajveer 2966
    @Override
2967
    public void clear() {
779 rajveer 2968
    }
2969
 
2970
    public void setFieldValue(_Fields field, Object value) {
2971
      switch (field) {
2972
      }
2973
    }
2974
 
2975
    public Object getFieldValue(_Fields field) {
2976
      switch (field) {
2977
      }
2978
      throw new IllegalStateException();
2979
    }
2980
 
3430 rajveer 2981
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2982
    public boolean isSet(_Fields field) {
2983
      if (field == null) {
2984
        throw new IllegalArgumentException();
2985
      }
779 rajveer 2986
 
2987
      switch (field) {
2988
      }
2989
      throw new IllegalStateException();
2990
    }
2991
 
2992
    @Override
2993
    public boolean equals(Object that) {
2994
      if (that == null)
2995
        return false;
2996
      if (that instanceof createUser_result)
2997
        return this.equals((createUser_result)that);
2998
      return false;
2999
    }
3000
 
3001
    public boolean equals(createUser_result that) {
3002
      if (that == null)
3003
        return false;
3004
 
3005
      return true;
3006
    }
3007
 
3008
    @Override
3009
    public int hashCode() {
3010
      return 0;
3011
    }
3012
 
3013
    public int compareTo(createUser_result other) {
3014
      if (!getClass().equals(other.getClass())) {
3015
        return getClass().getName().compareTo(other.getClass().getName());
3016
      }
3017
 
3018
      int lastComparison = 0;
3019
      createUser_result typedOther = (createUser_result)other;
3020
 
3021
      return 0;
3022
    }
3023
 
3430 rajveer 3024
    public _Fields fieldForId(int fieldId) {
3025
      return _Fields.findByThriftId(fieldId);
3026
    }
3027
 
3028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3029
      org.apache.thrift.protocol.TField field;
779 rajveer 3030
      iprot.readStructBegin();
3031
      while (true)
3032
      {
3033
        field = iprot.readFieldBegin();
3430 rajveer 3034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3035
          break;
3036
        }
3430 rajveer 3037
        switch (field.id) {
3038
          default:
3039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3040
        }
3430 rajveer 3041
        iprot.readFieldEnd();
779 rajveer 3042
      }
3043
      iprot.readStructEnd();
3044
      validate();
3045
    }
3046
 
3430 rajveer 3047
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3048
      oprot.writeStructBegin(STRUCT_DESC);
3049
 
3050
      oprot.writeFieldStop();
3051
      oprot.writeStructEnd();
3052
    }
3053
 
3054
    @Override
3055
    public String toString() {
3056
      StringBuilder sb = new StringBuilder("createUser_result(");
3057
      boolean first = true;
3058
 
3059
      sb.append(")");
3060
      return sb.toString();
3061
    }
3062
 
3430 rajveer 3063
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3064
      // check for required fields
3065
    }
3066
 
3430 rajveer 3067
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3068
      try {
3069
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3070
      } catch (org.apache.thrift.TException te) {
3071
        throw new java.io.IOException(te);
3072
      }
3073
    }
3074
 
3075
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3076
      try {
3077
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3078
      } catch (org.apache.thrift.TException te) {
3079
        throw new java.io.IOException(te);
3080
      }
3081
    }
3082
 
779 rajveer 3083
  }
3084
 
3430 rajveer 3085
  public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable   {
3086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
779 rajveer 3087
 
3088
 
3089
 
3090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 3092
;
3093
 
3094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3095
 
3096
      static {
3097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3098
          byName.put(field.getFieldName(), field);
3099
        }
3100
      }
3101
 
3102
      /**
3103
       * Find the _Fields constant that matches fieldId, or null if its not found.
3104
       */
3105
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3106
        switch(fieldId) {
3107
          default:
3108
            return null;
3109
        }
779 rajveer 3110
      }
3111
 
3112
      /**
3113
       * Find the _Fields constant that matches fieldId, throwing an exception
3114
       * if it is not found.
3115
       */
3116
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3117
        _Fields fields = findByThriftId(fieldId);
3118
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3119
        return fields;
3120
      }
3121
 
3122
      /**
3123
       * Find the _Fields constant that matches name, or null if its not found.
3124
       */
3125
      public static _Fields findByName(String name) {
3126
        return byName.get(name);
3127
      }
3128
 
3129
      private final short _thriftId;
3130
      private final String _fieldName;
3131
 
3132
      _Fields(short thriftId, String fieldName) {
3133
        _thriftId = thriftId;
3134
        _fieldName = fieldName;
3135
      }
3136
 
3137
      public short getThriftFieldId() {
3138
        return _thriftId;
3139
      }
3140
 
3141
      public String getFieldName() {
3142
        return _fieldName;
3143
      }
3144
    }
3430 rajveer 3145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 3146
    static {
3430 rajveer 3147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
779 rajveer 3150
    }
3151
 
3152
    public closeSession_args() {
3153
    }
3154
 
3155
    /**
3156
     * Performs a deep copy on <i>other</i>.
3157
     */
3158
    public closeSession_args(closeSession_args other) {
3159
    }
3160
 
3161
    public closeSession_args deepCopy() {
3162
      return new closeSession_args(this);
3163
    }
3164
 
3430 rajveer 3165
    @Override
3166
    public void clear() {
779 rajveer 3167
    }
3168
 
3169
    public void setFieldValue(_Fields field, Object value) {
3170
      switch (field) {
3171
      }
3172
    }
3173
 
3174
    public Object getFieldValue(_Fields field) {
3175
      switch (field) {
3176
      }
3177
      throw new IllegalStateException();
3178
    }
3179
 
3430 rajveer 3180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3181
    public boolean isSet(_Fields field) {
3182
      if (field == null) {
3183
        throw new IllegalArgumentException();
3184
      }
779 rajveer 3185
 
3186
      switch (field) {
3187
      }
3188
      throw new IllegalStateException();
3189
    }
3190
 
3191
    @Override
3192
    public boolean equals(Object that) {
3193
      if (that == null)
3194
        return false;
3195
      if (that instanceof closeSession_args)
3196
        return this.equals((closeSession_args)that);
3197
      return false;
3198
    }
3199
 
3200
    public boolean equals(closeSession_args that) {
3201
      if (that == null)
3202
        return false;
3203
 
3204
      return true;
3205
    }
3206
 
3207
    @Override
3208
    public int hashCode() {
3209
      return 0;
3210
    }
3211
 
3212
    public int compareTo(closeSession_args other) {
3213
      if (!getClass().equals(other.getClass())) {
3214
        return getClass().getName().compareTo(other.getClass().getName());
3215
      }
3216
 
3217
      int lastComparison = 0;
3218
      closeSession_args typedOther = (closeSession_args)other;
3219
 
3220
      return 0;
3221
    }
3222
 
3430 rajveer 3223
    public _Fields fieldForId(int fieldId) {
3224
      return _Fields.findByThriftId(fieldId);
3225
    }
3226
 
3227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3228
      org.apache.thrift.protocol.TField field;
779 rajveer 3229
      iprot.readStructBegin();
3230
      while (true)
3231
      {
3232
        field = iprot.readFieldBegin();
3430 rajveer 3233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3234
          break;
3235
        }
3430 rajveer 3236
        switch (field.id) {
3237
          default:
3238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3239
        }
3430 rajveer 3240
        iprot.readFieldEnd();
779 rajveer 3241
      }
3242
      iprot.readStructEnd();
3243
      validate();
3244
    }
3245
 
3430 rajveer 3246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3247
      validate();
3248
 
3249
      oprot.writeStructBegin(STRUCT_DESC);
3250
      oprot.writeFieldStop();
3251
      oprot.writeStructEnd();
3252
    }
3253
 
3254
    @Override
3255
    public String toString() {
3256
      StringBuilder sb = new StringBuilder("closeSession_args(");
3257
      boolean first = true;
3258
 
3259
      sb.append(")");
3260
      return sb.toString();
3261
    }
3262
 
3430 rajveer 3263
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3264
      // check for required fields
3265
    }
3266
 
3430 rajveer 3267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3268
      try {
3269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3270
      } catch (org.apache.thrift.TException te) {
3271
        throw new java.io.IOException(te);
3272
      }
3273
    }
3274
 
3275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3276
      try {
3277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3278
      } catch (org.apache.thrift.TException te) {
3279
        throw new java.io.IOException(te);
3280
      }
3281
    }
3282
 
779 rajveer 3283
  }
3284
 
3430 rajveer 3285
  public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable   {
3286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
779 rajveer 3287
 
3288
 
3289
 
3290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 3292
;
3293
 
3294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3295
 
3296
      static {
3297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3298
          byName.put(field.getFieldName(), field);
3299
        }
3300
      }
3301
 
3302
      /**
3303
       * Find the _Fields constant that matches fieldId, or null if its not found.
3304
       */
3305
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3306
        switch(fieldId) {
3307
          default:
3308
            return null;
3309
        }
779 rajveer 3310
      }
3311
 
3312
      /**
3313
       * Find the _Fields constant that matches fieldId, throwing an exception
3314
       * if it is not found.
3315
       */
3316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3317
        _Fields fields = findByThriftId(fieldId);
3318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3319
        return fields;
3320
      }
3321
 
3322
      /**
3323
       * Find the _Fields constant that matches name, or null if its not found.
3324
       */
3325
      public static _Fields findByName(String name) {
3326
        return byName.get(name);
3327
      }
3328
 
3329
      private final short _thriftId;
3330
      private final String _fieldName;
3331
 
3332
      _Fields(short thriftId, String fieldName) {
3333
        _thriftId = thriftId;
3334
        _fieldName = fieldName;
3335
      }
3336
 
3337
      public short getThriftFieldId() {
3338
        return _thriftId;
3339
      }
3340
 
3341
      public String getFieldName() {
3342
        return _fieldName;
3343
      }
3344
    }
3430 rajveer 3345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 3346
    static {
3430 rajveer 3347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
779 rajveer 3350
    }
3351
 
3352
    public closeSession_result() {
3353
    }
3354
 
3355
    /**
3356
     * Performs a deep copy on <i>other</i>.
3357
     */
3358
    public closeSession_result(closeSession_result other) {
3359
    }
3360
 
3361
    public closeSession_result deepCopy() {
3362
      return new closeSession_result(this);
3363
    }
3364
 
3430 rajveer 3365
    @Override
3366
    public void clear() {
779 rajveer 3367
    }
3368
 
3369
    public void setFieldValue(_Fields field, Object value) {
3370
      switch (field) {
3371
      }
3372
    }
3373
 
3374
    public Object getFieldValue(_Fields field) {
3375
      switch (field) {
3376
      }
3377
      throw new IllegalStateException();
3378
    }
3379
 
3430 rajveer 3380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3381
    public boolean isSet(_Fields field) {
3382
      if (field == null) {
3383
        throw new IllegalArgumentException();
3384
      }
779 rajveer 3385
 
3386
      switch (field) {
3387
      }
3388
      throw new IllegalStateException();
3389
    }
3390
 
3391
    @Override
3392
    public boolean equals(Object that) {
3393
      if (that == null)
3394
        return false;
3395
      if (that instanceof closeSession_result)
3396
        return this.equals((closeSession_result)that);
3397
      return false;
3398
    }
3399
 
3400
    public boolean equals(closeSession_result that) {
3401
      if (that == null)
3402
        return false;
3403
 
3404
      return true;
3405
    }
3406
 
3407
    @Override
3408
    public int hashCode() {
3409
      return 0;
3410
    }
3411
 
3412
    public int compareTo(closeSession_result other) {
3413
      if (!getClass().equals(other.getClass())) {
3414
        return getClass().getName().compareTo(other.getClass().getName());
3415
      }
3416
 
3417
      int lastComparison = 0;
3418
      closeSession_result typedOther = (closeSession_result)other;
3419
 
3420
      return 0;
3421
    }
3422
 
3430 rajveer 3423
    public _Fields fieldForId(int fieldId) {
3424
      return _Fields.findByThriftId(fieldId);
3425
    }
3426
 
3427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3428
      org.apache.thrift.protocol.TField field;
779 rajveer 3429
      iprot.readStructBegin();
3430
      while (true)
3431
      {
3432
        field = iprot.readFieldBegin();
3430 rajveer 3433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3434
          break;
3435
        }
3430 rajveer 3436
        switch (field.id) {
3437
          default:
3438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3439
        }
3430 rajveer 3440
        iprot.readFieldEnd();
779 rajveer 3441
      }
3442
      iprot.readStructEnd();
3443
      validate();
3444
    }
3445
 
3430 rajveer 3446
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3447
      oprot.writeStructBegin(STRUCT_DESC);
3448
 
3449
      oprot.writeFieldStop();
3450
      oprot.writeStructEnd();
3451
    }
3452
 
3453
    @Override
3454
    public String toString() {
3455
      StringBuilder sb = new StringBuilder("closeSession_result(");
3456
      boolean first = true;
3457
 
3458
      sb.append(")");
3459
      return sb.toString();
3460
    }
3461
 
3430 rajveer 3462
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3463
      // check for required fields
3464
    }
3465
 
3430 rajveer 3466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3467
      try {
3468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3469
      } catch (org.apache.thrift.TException te) {
3470
        throw new java.io.IOException(te);
3471
      }
3472
    }
3473
 
3474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3475
      try {
3476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3477
      } catch (org.apache.thrift.TException te) {
3478
        throw new java.io.IOException(te);
3479
      }
3480
    }
3481
 
779 rajveer 3482
  }
3483
 
3484
}