Subversion Repositories SmartDukaan

Rev

Rev 3430 | 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);
3557 rajveer 595
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.REQUIRED, 
3430 rajveer 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
3557 rajveer 799
      if (!isSetMessage()) {
800
        throw new org.apache.thrift.protocol.TProtocolException("Required field 'message' is unset! Struct:" + toString());
801
      }
802
 
779 rajveer 803
    }
804
 
3430 rajveer 805
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
806
      try {
807
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
808
      } catch (org.apache.thrift.TException te) {
809
        throw new java.io.IOException(te);
810
      }
811
    }
812
 
813
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
814
      try {
815
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
816
      } catch (org.apache.thrift.TException te) {
817
        throw new java.io.IOException(te);
818
      }
819
    }
820
 
779 rajveer 821
  }
822
 
3430 rajveer 823
  public static class sayHello_result implements org.apache.thrift.TBase<sayHello_result, sayHello_result._Fields>, java.io.Serializable, Cloneable   {
824
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sayHello_result");
779 rajveer 825
 
826
 
827
 
828
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 829
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 830
;
831
 
832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
833
 
834
      static {
835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
836
          byName.put(field.getFieldName(), field);
837
        }
838
      }
839
 
840
      /**
841
       * Find the _Fields constant that matches fieldId, or null if its not found.
842
       */
843
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 844
        switch(fieldId) {
845
          default:
846
            return null;
847
        }
779 rajveer 848
      }
849
 
850
      /**
851
       * Find the _Fields constant that matches fieldId, throwing an exception
852
       * if it is not found.
853
       */
854
      public static _Fields findByThriftIdOrThrow(int fieldId) {
855
        _Fields fields = findByThriftId(fieldId);
856
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
857
        return fields;
858
      }
859
 
860
      /**
861
       * Find the _Fields constant that matches name, or null if its not found.
862
       */
863
      public static _Fields findByName(String name) {
864
        return byName.get(name);
865
      }
866
 
867
      private final short _thriftId;
868
      private final String _fieldName;
869
 
870
      _Fields(short thriftId, String fieldName) {
871
        _thriftId = thriftId;
872
        _fieldName = fieldName;
873
      }
874
 
875
      public short getThriftFieldId() {
876
        return _thriftId;
877
      }
878
 
879
      public String getFieldName() {
880
        return _fieldName;
881
      }
882
    }
3430 rajveer 883
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 884
    static {
3430 rajveer 885
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
886
      metaDataMap = Collections.unmodifiableMap(tmpMap);
887
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sayHello_result.class, metaDataMap);
779 rajveer 888
    }
889
 
890
    public sayHello_result() {
891
    }
892
 
893
    /**
894
     * Performs a deep copy on <i>other</i>.
895
     */
896
    public sayHello_result(sayHello_result other) {
897
    }
898
 
899
    public sayHello_result deepCopy() {
900
      return new sayHello_result(this);
901
    }
902
 
3430 rajveer 903
    @Override
904
    public void clear() {
779 rajveer 905
    }
906
 
907
    public void setFieldValue(_Fields field, Object value) {
908
      switch (field) {
909
      }
910
    }
911
 
912
    public Object getFieldValue(_Fields field) {
913
      switch (field) {
914
      }
915
      throw new IllegalStateException();
916
    }
917
 
3430 rajveer 918
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
919
    public boolean isSet(_Fields field) {
920
      if (field == null) {
921
        throw new IllegalArgumentException();
922
      }
779 rajveer 923
 
924
      switch (field) {
925
      }
926
      throw new IllegalStateException();
927
    }
928
 
929
    @Override
930
    public boolean equals(Object that) {
931
      if (that == null)
932
        return false;
933
      if (that instanceof sayHello_result)
934
        return this.equals((sayHello_result)that);
935
      return false;
936
    }
937
 
938
    public boolean equals(sayHello_result that) {
939
      if (that == null)
940
        return false;
941
 
942
      return true;
943
    }
944
 
945
    @Override
946
    public int hashCode() {
947
      return 0;
948
    }
949
 
950
    public int compareTo(sayHello_result other) {
951
      if (!getClass().equals(other.getClass())) {
952
        return getClass().getName().compareTo(other.getClass().getName());
953
      }
954
 
955
      int lastComparison = 0;
956
      sayHello_result typedOther = (sayHello_result)other;
957
 
958
      return 0;
959
    }
960
 
3430 rajveer 961
    public _Fields fieldForId(int fieldId) {
962
      return _Fields.findByThriftId(fieldId);
963
    }
964
 
965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
966
      org.apache.thrift.protocol.TField field;
779 rajveer 967
      iprot.readStructBegin();
968
      while (true)
969
      {
970
        field = iprot.readFieldBegin();
3430 rajveer 971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 972
          break;
973
        }
3430 rajveer 974
        switch (field.id) {
975
          default:
976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 977
        }
3430 rajveer 978
        iprot.readFieldEnd();
779 rajveer 979
      }
980
      iprot.readStructEnd();
981
      validate();
982
    }
983
 
3430 rajveer 984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 985
      oprot.writeStructBegin(STRUCT_DESC);
986
 
987
      oprot.writeFieldStop();
988
      oprot.writeStructEnd();
989
    }
990
 
991
    @Override
992
    public String toString() {
993
      StringBuilder sb = new StringBuilder("sayHello_result(");
994
      boolean first = true;
995
 
996
      sb.append(")");
997
      return sb.toString();
998
    }
999
 
3430 rajveer 1000
    public void validate() throws org.apache.thrift.TException {
779 rajveer 1001
      // check for required fields
1002
    }
1003
 
3430 rajveer 1004
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1005
      try {
1006
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1007
      } catch (org.apache.thrift.TException te) {
1008
        throw new java.io.IOException(te);
1009
      }
1010
    }
1011
 
1012
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1013
      try {
1014
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1015
      } catch (org.apache.thrift.TException te) {
1016
        throw new java.io.IOException(te);
1017
      }
1018
    }
1019
 
779 rajveer 1020
  }
1021
 
3430 rajveer 1022
  public static class getUser_args implements org.apache.thrift.TBase<getUser_args, getUser_args._Fields>, java.io.Serializable, Cloneable   {
1023
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_args");
779 rajveer 1024
 
3430 rajveer 1025
    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 1026
 
3430 rajveer 1027
    private long id; // required
779 rajveer 1028
 
1029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 1031
      ID((short)1, "id");
1032
 
1033
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1034
 
1035
      static {
1036
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1037
          byName.put(field.getFieldName(), field);
1038
        }
1039
      }
1040
 
1041
      /**
1042
       * Find the _Fields constant that matches fieldId, or null if its not found.
1043
       */
1044
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1045
        switch(fieldId) {
1046
          case 1: // ID
1047
            return ID;
1048
          default:
1049
            return null;
1050
        }
779 rajveer 1051
      }
1052
 
1053
      /**
1054
       * Find the _Fields constant that matches fieldId, throwing an exception
1055
       * if it is not found.
1056
       */
1057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1058
        _Fields fields = findByThriftId(fieldId);
1059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1060
        return fields;
1061
      }
1062
 
1063
      /**
1064
       * Find the _Fields constant that matches name, or null if its not found.
1065
       */
1066
      public static _Fields findByName(String name) {
1067
        return byName.get(name);
1068
      }
1069
 
1070
      private final short _thriftId;
1071
      private final String _fieldName;
1072
 
1073
      _Fields(short thriftId, String fieldName) {
1074
        _thriftId = thriftId;
1075
        _fieldName = fieldName;
1076
      }
1077
 
1078
      public short getThriftFieldId() {
1079
        return _thriftId;
1080
      }
1081
 
1082
      public String getFieldName() {
1083
        return _fieldName;
1084
      }
1085
    }
1086
 
1087
    // isset id assignments
1088
    private static final int __ID_ISSET_ID = 0;
1089
    private BitSet __isset_bit_vector = new BitSet(1);
1090
 
3430 rajveer 1091
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 1092
    static {
3430 rajveer 1093
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1094
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1096
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1097
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap);
779 rajveer 1098
    }
1099
 
1100
    public getUser_args() {
1101
    }
1102
 
1103
    public getUser_args(
1104
      long id)
1105
    {
1106
      this();
1107
      this.id = id;
1108
      setIdIsSet(true);
1109
    }
1110
 
1111
    /**
1112
     * Performs a deep copy on <i>other</i>.
1113
     */
1114
    public getUser_args(getUser_args other) {
1115
      __isset_bit_vector.clear();
1116
      __isset_bit_vector.or(other.__isset_bit_vector);
1117
      this.id = other.id;
1118
    }
1119
 
1120
    public getUser_args deepCopy() {
1121
      return new getUser_args(this);
1122
    }
1123
 
3430 rajveer 1124
    @Override
1125
    public void clear() {
1126
      setIdIsSet(false);
1127
      this.id = 0;
779 rajveer 1128
    }
1129
 
1130
    public long getId() {
1131
      return this.id;
1132
    }
1133
 
3430 rajveer 1134
    public void setId(long id) {
779 rajveer 1135
      this.id = id;
1136
      setIdIsSet(true);
1137
    }
1138
 
1139
    public void unsetId() {
1140
      __isset_bit_vector.clear(__ID_ISSET_ID);
1141
    }
1142
 
3430 rajveer 1143
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
779 rajveer 1144
    public boolean isSetId() {
1145
      return __isset_bit_vector.get(__ID_ISSET_ID);
1146
    }
1147
 
1148
    public void setIdIsSet(boolean value) {
1149
      __isset_bit_vector.set(__ID_ISSET_ID, value);
1150
    }
1151
 
1152
    public void setFieldValue(_Fields field, Object value) {
1153
      switch (field) {
1154
      case ID:
1155
        if (value == null) {
1156
          unsetId();
1157
        } else {
1158
          setId((Long)value);
1159
        }
1160
        break;
1161
 
1162
      }
1163
    }
1164
 
1165
    public Object getFieldValue(_Fields field) {
1166
      switch (field) {
1167
      case ID:
3430 rajveer 1168
        return Long.valueOf(getId());
779 rajveer 1169
 
1170
      }
1171
      throw new IllegalStateException();
1172
    }
1173
 
3430 rajveer 1174
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1175
    public boolean isSet(_Fields field) {
1176
      if (field == null) {
1177
        throw new IllegalArgumentException();
1178
      }
779 rajveer 1179
 
1180
      switch (field) {
1181
      case ID:
1182
        return isSetId();
1183
      }
1184
      throw new IllegalStateException();
1185
    }
1186
 
1187
    @Override
1188
    public boolean equals(Object that) {
1189
      if (that == null)
1190
        return false;
1191
      if (that instanceof getUser_args)
1192
        return this.equals((getUser_args)that);
1193
      return false;
1194
    }
1195
 
1196
    public boolean equals(getUser_args that) {
1197
      if (that == null)
1198
        return false;
1199
 
1200
      boolean this_present_id = true;
1201
      boolean that_present_id = true;
1202
      if (this_present_id || that_present_id) {
1203
        if (!(this_present_id && that_present_id))
1204
          return false;
1205
        if (this.id != that.id)
1206
          return false;
1207
      }
1208
 
1209
      return true;
1210
    }
1211
 
1212
    @Override
1213
    public int hashCode() {
1214
      return 0;
1215
    }
1216
 
1217
    public int compareTo(getUser_args other) {
1218
      if (!getClass().equals(other.getClass())) {
1219
        return getClass().getName().compareTo(other.getClass().getName());
1220
      }
1221
 
1222
      int lastComparison = 0;
1223
      getUser_args typedOther = (getUser_args)other;
1224
 
3430 rajveer 1225
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
779 rajveer 1226
      if (lastComparison != 0) {
1227
        return lastComparison;
1228
      }
3430 rajveer 1229
      if (isSetId()) {
1230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1231
        if (lastComparison != 0) {
1232
          return lastComparison;
1233
        }
779 rajveer 1234
      }
1235
      return 0;
1236
    }
1237
 
3430 rajveer 1238
    public _Fields fieldForId(int fieldId) {
1239
      return _Fields.findByThriftId(fieldId);
1240
    }
1241
 
1242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1243
      org.apache.thrift.protocol.TField field;
779 rajveer 1244
      iprot.readStructBegin();
1245
      while (true)
1246
      {
1247
        field = iprot.readFieldBegin();
3430 rajveer 1248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 1249
          break;
1250
        }
3430 rajveer 1251
        switch (field.id) {
1252
          case 1: // ID
1253
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1254
              this.id = iprot.readI64();
1255
              setIdIsSet(true);
1256
            } else { 
1257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1258
            }
1259
            break;
1260
          default:
1261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 1262
        }
3430 rajveer 1263
        iprot.readFieldEnd();
779 rajveer 1264
      }
1265
      iprot.readStructEnd();
1266
      validate();
1267
    }
1268
 
3430 rajveer 1269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 1270
      validate();
1271
 
1272
      oprot.writeStructBegin(STRUCT_DESC);
1273
      oprot.writeFieldBegin(ID_FIELD_DESC);
1274
      oprot.writeI64(this.id);
1275
      oprot.writeFieldEnd();
1276
      oprot.writeFieldStop();
1277
      oprot.writeStructEnd();
1278
    }
1279
 
1280
    @Override
1281
    public String toString() {
1282
      StringBuilder sb = new StringBuilder("getUser_args(");
1283
      boolean first = true;
1284
 
1285
      sb.append("id:");
1286
      sb.append(this.id);
1287
      first = false;
1288
      sb.append(")");
1289
      return sb.toString();
1290
    }
1291
 
3430 rajveer 1292
    public void validate() throws org.apache.thrift.TException {
779 rajveer 1293
      // check for required fields
1294
    }
1295
 
3430 rajveer 1296
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1297
      try {
1298
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1299
      } catch (org.apache.thrift.TException te) {
1300
        throw new java.io.IOException(te);
1301
      }
1302
    }
1303
 
1304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1305
      try {
1306
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1307
        __isset_bit_vector = new BitSet(1);
1308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1309
      } catch (org.apache.thrift.TException te) {
1310
        throw new java.io.IOException(te);
1311
      }
1312
    }
1313
 
779 rajveer 1314
  }
1315
 
3430 rajveer 1316
  public static class getUser_result implements org.apache.thrift.TBase<getUser_result, getUser_result._Fields>, java.io.Serializable, Cloneable   {
1317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_result");
779 rajveer 1318
 
3430 rajveer 1319
    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 1320
 
3430 rajveer 1321
    private String success; // required
779 rajveer 1322
 
1323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 1325
      SUCCESS((short)0, "success");
1326
 
1327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1328
 
1329
      static {
1330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1331
          byName.put(field.getFieldName(), field);
1332
        }
1333
      }
1334
 
1335
      /**
1336
       * Find the _Fields constant that matches fieldId, or null if its not found.
1337
       */
1338
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1339
        switch(fieldId) {
1340
          case 0: // SUCCESS
1341
            return SUCCESS;
1342
          default:
1343
            return null;
1344
        }
779 rajveer 1345
      }
1346
 
1347
      /**
1348
       * Find the _Fields constant that matches fieldId, throwing an exception
1349
       * if it is not found.
1350
       */
1351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1352
        _Fields fields = findByThriftId(fieldId);
1353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1354
        return fields;
1355
      }
1356
 
1357
      /**
1358
       * Find the _Fields constant that matches name, or null if its not found.
1359
       */
1360
      public static _Fields findByName(String name) {
1361
        return byName.get(name);
1362
      }
1363
 
1364
      private final short _thriftId;
1365
      private final String _fieldName;
1366
 
1367
      _Fields(short thriftId, String fieldName) {
1368
        _thriftId = thriftId;
1369
        _fieldName = fieldName;
1370
      }
1371
 
1372
      public short getThriftFieldId() {
1373
        return _thriftId;
1374
      }
1375
 
1376
      public String getFieldName() {
1377
        return _fieldName;
1378
      }
1379
    }
1380
 
1381
    // isset id assignments
1382
 
3430 rajveer 1383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 1384
    static {
3430 rajveer 1385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1386
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1388
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1389
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap);
779 rajveer 1390
    }
1391
 
1392
    public getUser_result() {
1393
    }
1394
 
1395
    public getUser_result(
1396
      String success)
1397
    {
1398
      this();
1399
      this.success = success;
1400
    }
1401
 
1402
    /**
1403
     * Performs a deep copy on <i>other</i>.
1404
     */
1405
    public getUser_result(getUser_result other) {
1406
      if (other.isSetSuccess()) {
1407
        this.success = other.success;
1408
      }
1409
    }
1410
 
1411
    public getUser_result deepCopy() {
1412
      return new getUser_result(this);
1413
    }
1414
 
3430 rajveer 1415
    @Override
1416
    public void clear() {
1417
      this.success = null;
779 rajveer 1418
    }
1419
 
1420
    public String getSuccess() {
1421
      return this.success;
1422
    }
1423
 
3430 rajveer 1424
    public void setSuccess(String success) {
779 rajveer 1425
      this.success = success;
1426
    }
1427
 
1428
    public void unsetSuccess() {
1429
      this.success = null;
1430
    }
1431
 
3430 rajveer 1432
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
779 rajveer 1433
    public boolean isSetSuccess() {
1434
      return this.success != null;
1435
    }
1436
 
1437
    public void setSuccessIsSet(boolean value) {
1438
      if (!value) {
1439
        this.success = null;
1440
      }
1441
    }
1442
 
1443
    public void setFieldValue(_Fields field, Object value) {
1444
      switch (field) {
1445
      case SUCCESS:
1446
        if (value == null) {
1447
          unsetSuccess();
1448
        } else {
1449
          setSuccess((String)value);
1450
        }
1451
        break;
1452
 
1453
      }
1454
    }
1455
 
1456
    public Object getFieldValue(_Fields field) {
1457
      switch (field) {
1458
      case SUCCESS:
1459
        return getSuccess();
1460
 
1461
      }
1462
      throw new IllegalStateException();
1463
    }
1464
 
3430 rajveer 1465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1466
    public boolean isSet(_Fields field) {
1467
      if (field == null) {
1468
        throw new IllegalArgumentException();
1469
      }
779 rajveer 1470
 
1471
      switch (field) {
1472
      case SUCCESS:
1473
        return isSetSuccess();
1474
      }
1475
      throw new IllegalStateException();
1476
    }
1477
 
1478
    @Override
1479
    public boolean equals(Object that) {
1480
      if (that == null)
1481
        return false;
1482
      if (that instanceof getUser_result)
1483
        return this.equals((getUser_result)that);
1484
      return false;
1485
    }
1486
 
1487
    public boolean equals(getUser_result that) {
1488
      if (that == null)
1489
        return false;
1490
 
1491
      boolean this_present_success = true && this.isSetSuccess();
1492
      boolean that_present_success = true && that.isSetSuccess();
1493
      if (this_present_success || that_present_success) {
1494
        if (!(this_present_success && that_present_success))
1495
          return false;
1496
        if (!this.success.equals(that.success))
1497
          return false;
1498
      }
1499
 
1500
      return true;
1501
    }
1502
 
1503
    @Override
1504
    public int hashCode() {
1505
      return 0;
1506
    }
1507
 
1508
    public int compareTo(getUser_result other) {
1509
      if (!getClass().equals(other.getClass())) {
1510
        return getClass().getName().compareTo(other.getClass().getName());
1511
      }
1512
 
1513
      int lastComparison = 0;
1514
      getUser_result typedOther = (getUser_result)other;
1515
 
3430 rajveer 1516
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
779 rajveer 1517
      if (lastComparison != 0) {
1518
        return lastComparison;
1519
      }
3430 rajveer 1520
      if (isSetSuccess()) {
1521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1522
        if (lastComparison != 0) {
1523
          return lastComparison;
1524
        }
779 rajveer 1525
      }
1526
      return 0;
1527
    }
1528
 
3430 rajveer 1529
    public _Fields fieldForId(int fieldId) {
1530
      return _Fields.findByThriftId(fieldId);
1531
    }
1532
 
1533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1534
      org.apache.thrift.protocol.TField field;
779 rajveer 1535
      iprot.readStructBegin();
1536
      while (true)
1537
      {
1538
        field = iprot.readFieldBegin();
3430 rajveer 1539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 1540
          break;
1541
        }
3430 rajveer 1542
        switch (field.id) {
1543
          case 0: // SUCCESS
1544
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1545
              this.success = iprot.readString();
1546
            } else { 
1547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1548
            }
1549
            break;
1550
          default:
1551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 1552
        }
3430 rajveer 1553
        iprot.readFieldEnd();
779 rajveer 1554
      }
1555
      iprot.readStructEnd();
1556
      validate();
1557
    }
1558
 
3430 rajveer 1559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 1560
      oprot.writeStructBegin(STRUCT_DESC);
1561
 
1562
      if (this.isSetSuccess()) {
1563
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1564
        oprot.writeString(this.success);
1565
        oprot.writeFieldEnd();
1566
      }
1567
      oprot.writeFieldStop();
1568
      oprot.writeStructEnd();
1569
    }
1570
 
1571
    @Override
1572
    public String toString() {
1573
      StringBuilder sb = new StringBuilder("getUser_result(");
1574
      boolean first = true;
1575
 
1576
      sb.append("success:");
1577
      if (this.success == null) {
1578
        sb.append("null");
1579
      } else {
1580
        sb.append(this.success);
1581
      }
1582
      first = false;
1583
      sb.append(")");
1584
      return sb.toString();
1585
    }
1586
 
3430 rajveer 1587
    public void validate() throws org.apache.thrift.TException {
779 rajveer 1588
      // check for required fields
1589
    }
1590
 
3430 rajveer 1591
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1592
      try {
1593
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1594
      } catch (org.apache.thrift.TException te) {
1595
        throw new java.io.IOException(te);
1596
      }
1597
    }
1598
 
1599
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1600
      try {
1601
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1602
      } catch (org.apache.thrift.TException te) {
1603
        throw new java.io.IOException(te);
1604
      }
1605
    }
1606
 
779 rajveer 1607
  }
1608
 
3430 rajveer 1609
  public static class getAddressId_args implements org.apache.thrift.TBase<getAddressId_args, getAddressId_args._Fields>, java.io.Serializable, Cloneable   {
1610
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_args");
896 rajveer 1611
 
1612
 
1613
 
1614
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1615
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 1616
;
1617
 
1618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1619
 
1620
      static {
1621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1622
          byName.put(field.getFieldName(), field);
1623
        }
1624
      }
1625
 
1626
      /**
1627
       * Find the _Fields constant that matches fieldId, or null if its not found.
1628
       */
1629
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1630
        switch(fieldId) {
1631
          default:
1632
            return null;
1633
        }
896 rajveer 1634
      }
1635
 
1636
      /**
1637
       * Find the _Fields constant that matches fieldId, throwing an exception
1638
       * if it is not found.
1639
       */
1640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1641
        _Fields fields = findByThriftId(fieldId);
1642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1643
        return fields;
1644
      }
1645
 
1646
      /**
1647
       * Find the _Fields constant that matches name, or null if its not found.
1648
       */
1649
      public static _Fields findByName(String name) {
1650
        return byName.get(name);
1651
      }
1652
 
1653
      private final short _thriftId;
1654
      private final String _fieldName;
1655
 
1656
      _Fields(short thriftId, String fieldName) {
1657
        _thriftId = thriftId;
1658
        _fieldName = fieldName;
1659
      }
1660
 
1661
      public short getThriftFieldId() {
1662
        return _thriftId;
1663
      }
1664
 
1665
      public String getFieldName() {
1666
        return _fieldName;
1667
      }
1668
    }
3430 rajveer 1669
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 1670
    static {
3430 rajveer 1671
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_args.class, metaDataMap);
896 rajveer 1674
    }
1675
 
1676
    public getAddressId_args() {
1677
    }
1678
 
1679
    /**
1680
     * Performs a deep copy on <i>other</i>.
1681
     */
1682
    public getAddressId_args(getAddressId_args other) {
1683
    }
1684
 
1685
    public getAddressId_args deepCopy() {
1686
      return new getAddressId_args(this);
1687
    }
1688
 
3430 rajveer 1689
    @Override
1690
    public void clear() {
896 rajveer 1691
    }
1692
 
1693
    public void setFieldValue(_Fields field, Object value) {
1694
      switch (field) {
1695
      }
1696
    }
1697
 
1698
    public Object getFieldValue(_Fields field) {
1699
      switch (field) {
1700
      }
1701
      throw new IllegalStateException();
1702
    }
1703
 
3430 rajveer 1704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1705
    public boolean isSet(_Fields field) {
1706
      if (field == null) {
1707
        throw new IllegalArgumentException();
1708
      }
896 rajveer 1709
 
1710
      switch (field) {
1711
      }
1712
      throw new IllegalStateException();
1713
    }
1714
 
1715
    @Override
1716
    public boolean equals(Object that) {
1717
      if (that == null)
1718
        return false;
1719
      if (that instanceof getAddressId_args)
1720
        return this.equals((getAddressId_args)that);
1721
      return false;
1722
    }
1723
 
1724
    public boolean equals(getAddressId_args that) {
1725
      if (that == null)
1726
        return false;
1727
 
1728
      return true;
1729
    }
1730
 
1731
    @Override
1732
    public int hashCode() {
1733
      return 0;
1734
    }
1735
 
1736
    public int compareTo(getAddressId_args other) {
1737
      if (!getClass().equals(other.getClass())) {
1738
        return getClass().getName().compareTo(other.getClass().getName());
1739
      }
1740
 
1741
      int lastComparison = 0;
1742
      getAddressId_args typedOther = (getAddressId_args)other;
1743
 
1744
      return 0;
1745
    }
1746
 
3430 rajveer 1747
    public _Fields fieldForId(int fieldId) {
1748
      return _Fields.findByThriftId(fieldId);
1749
    }
1750
 
1751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1752
      org.apache.thrift.protocol.TField field;
896 rajveer 1753
      iprot.readStructBegin();
1754
      while (true)
1755
      {
1756
        field = iprot.readFieldBegin();
3430 rajveer 1757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 1758
          break;
1759
        }
3430 rajveer 1760
        switch (field.id) {
1761
          default:
1762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 1763
        }
3430 rajveer 1764
        iprot.readFieldEnd();
896 rajveer 1765
      }
1766
      iprot.readStructEnd();
1767
      validate();
1768
    }
1769
 
3430 rajveer 1770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 1771
      validate();
1772
 
1773
      oprot.writeStructBegin(STRUCT_DESC);
1774
      oprot.writeFieldStop();
1775
      oprot.writeStructEnd();
1776
    }
1777
 
1778
    @Override
1779
    public String toString() {
1780
      StringBuilder sb = new StringBuilder("getAddressId_args(");
1781
      boolean first = true;
1782
 
1783
      sb.append(")");
1784
      return sb.toString();
1785
    }
1786
 
3430 rajveer 1787
    public void validate() throws org.apache.thrift.TException {
896 rajveer 1788
      // check for required fields
1789
    }
1790
 
3430 rajveer 1791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1792
      try {
1793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1794
      } catch (org.apache.thrift.TException te) {
1795
        throw new java.io.IOException(te);
1796
      }
1797
    }
1798
 
1799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1800
      try {
1801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1802
      } catch (org.apache.thrift.TException te) {
1803
        throw new java.io.IOException(te);
1804
      }
1805
    }
1806
 
896 rajveer 1807
  }
1808
 
3430 rajveer 1809
  public static class getAddressId_result implements org.apache.thrift.TBase<getAddressId_result, getAddressId_result._Fields>, java.io.Serializable, Cloneable   {
1810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_result");
896 rajveer 1811
 
3430 rajveer 1812
    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 1813
 
3430 rajveer 1814
    private long success; // required
896 rajveer 1815
 
1816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 1818
      SUCCESS((short)0, "success");
1819
 
1820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1821
 
1822
      static {
1823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1824
          byName.put(field.getFieldName(), field);
1825
        }
1826
      }
1827
 
1828
      /**
1829
       * Find the _Fields constant that matches fieldId, or null if its not found.
1830
       */
1831
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1832
        switch(fieldId) {
1833
          case 0: // SUCCESS
1834
            return SUCCESS;
1835
          default:
1836
            return null;
1837
        }
896 rajveer 1838
      }
1839
 
1840
      /**
1841
       * Find the _Fields constant that matches fieldId, throwing an exception
1842
       * if it is not found.
1843
       */
1844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1845
        _Fields fields = findByThriftId(fieldId);
1846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1847
        return fields;
1848
      }
1849
 
1850
      /**
1851
       * Find the _Fields constant that matches name, or null if its not found.
1852
       */
1853
      public static _Fields findByName(String name) {
1854
        return byName.get(name);
1855
      }
1856
 
1857
      private final short _thriftId;
1858
      private final String _fieldName;
1859
 
1860
      _Fields(short thriftId, String fieldName) {
1861
        _thriftId = thriftId;
1862
        _fieldName = fieldName;
1863
      }
1864
 
1865
      public short getThriftFieldId() {
1866
        return _thriftId;
1867
      }
1868
 
1869
      public String getFieldName() {
1870
        return _fieldName;
1871
      }
1872
    }
1873
 
1874
    // isset id assignments
1875
    private static final int __SUCCESS_ISSET_ID = 0;
1876
    private BitSet __isset_bit_vector = new BitSet(1);
1877
 
3430 rajveer 1878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 1879
    static {
3430 rajveer 1880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1881
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_result.class, metaDataMap);
896 rajveer 1885
    }
1886
 
1887
    public getAddressId_result() {
1888
    }
1889
 
1890
    public getAddressId_result(
1891
      long success)
1892
    {
1893
      this();
1894
      this.success = success;
1895
      setSuccessIsSet(true);
1896
    }
1897
 
1898
    /**
1899
     * Performs a deep copy on <i>other</i>.
1900
     */
1901
    public getAddressId_result(getAddressId_result other) {
1902
      __isset_bit_vector.clear();
1903
      __isset_bit_vector.or(other.__isset_bit_vector);
1904
      this.success = other.success;
1905
    }
1906
 
1907
    public getAddressId_result deepCopy() {
1908
      return new getAddressId_result(this);
1909
    }
1910
 
3430 rajveer 1911
    @Override
1912
    public void clear() {
1913
      setSuccessIsSet(false);
1914
      this.success = 0;
896 rajveer 1915
    }
1916
 
1917
    public long getSuccess() {
1918
      return this.success;
1919
    }
1920
 
3430 rajveer 1921
    public void setSuccess(long success) {
896 rajveer 1922
      this.success = success;
1923
      setSuccessIsSet(true);
1924
    }
1925
 
1926
    public void unsetSuccess() {
1927
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1928
    }
1929
 
3430 rajveer 1930
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
896 rajveer 1931
    public boolean isSetSuccess() {
1932
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1933
    }
1934
 
1935
    public void setSuccessIsSet(boolean value) {
1936
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
1937
    }
1938
 
1939
    public void setFieldValue(_Fields field, Object value) {
1940
      switch (field) {
1941
      case SUCCESS:
1942
        if (value == null) {
1943
          unsetSuccess();
1944
        } else {
1945
          setSuccess((Long)value);
1946
        }
1947
        break;
1948
 
1949
      }
1950
    }
1951
 
1952
    public Object getFieldValue(_Fields field) {
1953
      switch (field) {
1954
      case SUCCESS:
3430 rajveer 1955
        return Long.valueOf(getSuccess());
896 rajveer 1956
 
1957
      }
1958
      throw new IllegalStateException();
1959
    }
1960
 
3430 rajveer 1961
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1962
    public boolean isSet(_Fields field) {
1963
      if (field == null) {
1964
        throw new IllegalArgumentException();
1965
      }
896 rajveer 1966
 
1967
      switch (field) {
1968
      case SUCCESS:
1969
        return isSetSuccess();
1970
      }
1971
      throw new IllegalStateException();
1972
    }
1973
 
1974
    @Override
1975
    public boolean equals(Object that) {
1976
      if (that == null)
1977
        return false;
1978
      if (that instanceof getAddressId_result)
1979
        return this.equals((getAddressId_result)that);
1980
      return false;
1981
    }
1982
 
1983
    public boolean equals(getAddressId_result that) {
1984
      if (that == null)
1985
        return false;
1986
 
1987
      boolean this_present_success = true;
1988
      boolean that_present_success = true;
1989
      if (this_present_success || that_present_success) {
1990
        if (!(this_present_success && that_present_success))
1991
          return false;
1992
        if (this.success != that.success)
1993
          return false;
1994
      }
1995
 
1996
      return true;
1997
    }
1998
 
1999
    @Override
2000
    public int hashCode() {
2001
      return 0;
2002
    }
2003
 
2004
    public int compareTo(getAddressId_result other) {
2005
      if (!getClass().equals(other.getClass())) {
2006
        return getClass().getName().compareTo(other.getClass().getName());
2007
      }
2008
 
2009
      int lastComparison = 0;
2010
      getAddressId_result typedOther = (getAddressId_result)other;
2011
 
3430 rajveer 2012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
896 rajveer 2013
      if (lastComparison != 0) {
2014
        return lastComparison;
2015
      }
3430 rajveer 2016
      if (isSetSuccess()) {
2017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2018
        if (lastComparison != 0) {
2019
          return lastComparison;
2020
        }
896 rajveer 2021
      }
2022
      return 0;
2023
    }
2024
 
3430 rajveer 2025
    public _Fields fieldForId(int fieldId) {
2026
      return _Fields.findByThriftId(fieldId);
2027
    }
2028
 
2029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2030
      org.apache.thrift.protocol.TField field;
896 rajveer 2031
      iprot.readStructBegin();
2032
      while (true)
2033
      {
2034
        field = iprot.readFieldBegin();
3430 rajveer 2035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2036
          break;
2037
        }
3430 rajveer 2038
        switch (field.id) {
2039
          case 0: // SUCCESS
2040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2041
              this.success = iprot.readI64();
2042
              setSuccessIsSet(true);
2043
            } else { 
2044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2045
            }
2046
            break;
2047
          default:
2048
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2049
        }
3430 rajveer 2050
        iprot.readFieldEnd();
896 rajveer 2051
      }
2052
      iprot.readStructEnd();
2053
      validate();
2054
    }
2055
 
3430 rajveer 2056
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2057
      oprot.writeStructBegin(STRUCT_DESC);
2058
 
2059
      if (this.isSetSuccess()) {
2060
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2061
        oprot.writeI64(this.success);
2062
        oprot.writeFieldEnd();
2063
      }
2064
      oprot.writeFieldStop();
2065
      oprot.writeStructEnd();
2066
    }
2067
 
2068
    @Override
2069
    public String toString() {
2070
      StringBuilder sb = new StringBuilder("getAddressId_result(");
2071
      boolean first = true;
2072
 
2073
      sb.append("success:");
2074
      sb.append(this.success);
2075
      first = false;
2076
      sb.append(")");
2077
      return sb.toString();
2078
    }
2079
 
3430 rajveer 2080
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2081
      // check for required fields
2082
    }
2083
 
3430 rajveer 2084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2085
      try {
2086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2087
      } catch (org.apache.thrift.TException te) {
2088
        throw new java.io.IOException(te);
2089
      }
2090
    }
2091
 
2092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2093
      try {
2094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2095
      } catch (org.apache.thrift.TException te) {
2096
        throw new java.io.IOException(te);
2097
      }
2098
    }
2099
 
896 rajveer 2100
  }
2101
 
3430 rajveer 2102
  public static class getAddress_args implements org.apache.thrift.TBase<getAddress_args, getAddress_args._Fields>, java.io.Serializable, Cloneable   {
2103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_args");
896 rajveer 2104
 
2105
 
2106
 
2107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2108
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 2109
;
2110
 
2111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2112
 
2113
      static {
2114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2115
          byName.put(field.getFieldName(), field);
2116
        }
2117
      }
2118
 
2119
      /**
2120
       * Find the _Fields constant that matches fieldId, or null if its not found.
2121
       */
2122
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2123
        switch(fieldId) {
2124
          default:
2125
            return null;
2126
        }
896 rajveer 2127
      }
2128
 
2129
      /**
2130
       * Find the _Fields constant that matches fieldId, throwing an exception
2131
       * if it is not found.
2132
       */
2133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2134
        _Fields fields = findByThriftId(fieldId);
2135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2136
        return fields;
2137
      }
2138
 
2139
      /**
2140
       * Find the _Fields constant that matches name, or null if its not found.
2141
       */
2142
      public static _Fields findByName(String name) {
2143
        return byName.get(name);
2144
      }
2145
 
2146
      private final short _thriftId;
2147
      private final String _fieldName;
2148
 
2149
      _Fields(short thriftId, String fieldName) {
2150
        _thriftId = thriftId;
2151
        _fieldName = fieldName;
2152
      }
2153
 
2154
      public short getThriftFieldId() {
2155
        return _thriftId;
2156
      }
2157
 
2158
      public String getFieldName() {
2159
        return _fieldName;
2160
      }
2161
    }
3430 rajveer 2162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 2163
    static {
3430 rajveer 2164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_args.class, metaDataMap);
896 rajveer 2167
    }
2168
 
2169
    public getAddress_args() {
2170
    }
2171
 
2172
    /**
2173
     * Performs a deep copy on <i>other</i>.
2174
     */
2175
    public getAddress_args(getAddress_args other) {
2176
    }
2177
 
2178
    public getAddress_args deepCopy() {
2179
      return new getAddress_args(this);
2180
    }
2181
 
3430 rajveer 2182
    @Override
2183
    public void clear() {
896 rajveer 2184
    }
2185
 
2186
    public void setFieldValue(_Fields field, Object value) {
2187
      switch (field) {
2188
      }
2189
    }
2190
 
2191
    public Object getFieldValue(_Fields field) {
2192
      switch (field) {
2193
      }
2194
      throw new IllegalStateException();
2195
    }
2196
 
3430 rajveer 2197
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2198
    public boolean isSet(_Fields field) {
2199
      if (field == null) {
2200
        throw new IllegalArgumentException();
2201
      }
896 rajveer 2202
 
2203
      switch (field) {
2204
      }
2205
      throw new IllegalStateException();
2206
    }
2207
 
2208
    @Override
2209
    public boolean equals(Object that) {
2210
      if (that == null)
2211
        return false;
2212
      if (that instanceof getAddress_args)
2213
        return this.equals((getAddress_args)that);
2214
      return false;
2215
    }
2216
 
2217
    public boolean equals(getAddress_args that) {
2218
      if (that == null)
2219
        return false;
2220
 
2221
      return true;
2222
    }
2223
 
2224
    @Override
2225
    public int hashCode() {
2226
      return 0;
2227
    }
2228
 
2229
    public int compareTo(getAddress_args other) {
2230
      if (!getClass().equals(other.getClass())) {
2231
        return getClass().getName().compareTo(other.getClass().getName());
2232
      }
2233
 
2234
      int lastComparison = 0;
2235
      getAddress_args typedOther = (getAddress_args)other;
2236
 
2237
      return 0;
2238
    }
2239
 
3430 rajveer 2240
    public _Fields fieldForId(int fieldId) {
2241
      return _Fields.findByThriftId(fieldId);
2242
    }
2243
 
2244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2245
      org.apache.thrift.protocol.TField field;
896 rajveer 2246
      iprot.readStructBegin();
2247
      while (true)
2248
      {
2249
        field = iprot.readFieldBegin();
3430 rajveer 2250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2251
          break;
2252
        }
3430 rajveer 2253
        switch (field.id) {
2254
          default:
2255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2256
        }
3430 rajveer 2257
        iprot.readFieldEnd();
896 rajveer 2258
      }
2259
      iprot.readStructEnd();
2260
      validate();
2261
    }
2262
 
3430 rajveer 2263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2264
      validate();
2265
 
2266
      oprot.writeStructBegin(STRUCT_DESC);
2267
      oprot.writeFieldStop();
2268
      oprot.writeStructEnd();
2269
    }
2270
 
2271
    @Override
2272
    public String toString() {
2273
      StringBuilder sb = new StringBuilder("getAddress_args(");
2274
      boolean first = true;
2275
 
2276
      sb.append(")");
2277
      return sb.toString();
2278
    }
2279
 
3430 rajveer 2280
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2281
      // check for required fields
2282
    }
2283
 
3430 rajveer 2284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2285
      try {
2286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2287
      } catch (org.apache.thrift.TException te) {
2288
        throw new java.io.IOException(te);
2289
      }
2290
    }
2291
 
2292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2293
      try {
2294
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2295
      } catch (org.apache.thrift.TException te) {
2296
        throw new java.io.IOException(te);
2297
      }
2298
    }
2299
 
896 rajveer 2300
  }
2301
 
3430 rajveer 2302
  public static class getAddress_result implements org.apache.thrift.TBase<getAddress_result, getAddress_result._Fields>, java.io.Serializable, Cloneable   {
2303
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_result");
896 rajveer 2304
 
3430 rajveer 2305
    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 2306
 
3430 rajveer 2307
    private Address success; // required
896 rajveer 2308
 
2309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
896 rajveer 2311
      SUCCESS((short)0, "success");
2312
 
2313
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2314
 
2315
      static {
2316
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2317
          byName.put(field.getFieldName(), field);
2318
        }
2319
      }
2320
 
2321
      /**
2322
       * Find the _Fields constant that matches fieldId, or null if its not found.
2323
       */
2324
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2325
        switch(fieldId) {
2326
          case 0: // SUCCESS
2327
            return SUCCESS;
2328
          default:
2329
            return null;
2330
        }
896 rajveer 2331
      }
2332
 
2333
      /**
2334
       * Find the _Fields constant that matches fieldId, throwing an exception
2335
       * if it is not found.
2336
       */
2337
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2338
        _Fields fields = findByThriftId(fieldId);
2339
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2340
        return fields;
2341
      }
2342
 
2343
      /**
2344
       * Find the _Fields constant that matches name, or null if its not found.
2345
       */
2346
      public static _Fields findByName(String name) {
2347
        return byName.get(name);
2348
      }
2349
 
2350
      private final short _thriftId;
2351
      private final String _fieldName;
2352
 
2353
      _Fields(short thriftId, String fieldName) {
2354
        _thriftId = thriftId;
2355
        _fieldName = fieldName;
2356
      }
2357
 
2358
      public short getThriftFieldId() {
2359
        return _thriftId;
2360
      }
2361
 
2362
      public String getFieldName() {
2363
        return _fieldName;
2364
      }
2365
    }
2366
 
2367
    // isset id assignments
2368
 
3430 rajveer 2369
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
896 rajveer 2370
    static {
3430 rajveer 2371
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2372
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2373
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
2374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_result.class, metaDataMap);
896 rajveer 2376
    }
2377
 
2378
    public getAddress_result() {
2379
    }
2380
 
2381
    public getAddress_result(
2382
      Address success)
2383
    {
2384
      this();
2385
      this.success = success;
2386
    }
2387
 
2388
    /**
2389
     * Performs a deep copy on <i>other</i>.
2390
     */
2391
    public getAddress_result(getAddress_result other) {
2392
      if (other.isSetSuccess()) {
2393
        this.success = new Address(other.success);
2394
      }
2395
    }
2396
 
2397
    public getAddress_result deepCopy() {
2398
      return new getAddress_result(this);
2399
    }
2400
 
3430 rajveer 2401
    @Override
2402
    public void clear() {
2403
      this.success = null;
896 rajveer 2404
    }
2405
 
2406
    public Address getSuccess() {
2407
      return this.success;
2408
    }
2409
 
3430 rajveer 2410
    public void setSuccess(Address success) {
896 rajveer 2411
      this.success = success;
2412
    }
2413
 
2414
    public void unsetSuccess() {
2415
      this.success = null;
2416
    }
2417
 
3430 rajveer 2418
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
896 rajveer 2419
    public boolean isSetSuccess() {
2420
      return this.success != null;
2421
    }
2422
 
2423
    public void setSuccessIsSet(boolean value) {
2424
      if (!value) {
2425
        this.success = null;
2426
      }
2427
    }
2428
 
2429
    public void setFieldValue(_Fields field, Object value) {
2430
      switch (field) {
2431
      case SUCCESS:
2432
        if (value == null) {
2433
          unsetSuccess();
2434
        } else {
2435
          setSuccess((Address)value);
2436
        }
2437
        break;
2438
 
2439
      }
2440
    }
2441
 
2442
    public Object getFieldValue(_Fields field) {
2443
      switch (field) {
2444
      case SUCCESS:
2445
        return getSuccess();
2446
 
2447
      }
2448
      throw new IllegalStateException();
2449
    }
2450
 
3430 rajveer 2451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2452
    public boolean isSet(_Fields field) {
2453
      if (field == null) {
2454
        throw new IllegalArgumentException();
2455
      }
896 rajveer 2456
 
2457
      switch (field) {
2458
      case SUCCESS:
2459
        return isSetSuccess();
2460
      }
2461
      throw new IllegalStateException();
2462
    }
2463
 
2464
    @Override
2465
    public boolean equals(Object that) {
2466
      if (that == null)
2467
        return false;
2468
      if (that instanceof getAddress_result)
2469
        return this.equals((getAddress_result)that);
2470
      return false;
2471
    }
2472
 
2473
    public boolean equals(getAddress_result that) {
2474
      if (that == null)
2475
        return false;
2476
 
2477
      boolean this_present_success = true && this.isSetSuccess();
2478
      boolean that_present_success = true && that.isSetSuccess();
2479
      if (this_present_success || that_present_success) {
2480
        if (!(this_present_success && that_present_success))
2481
          return false;
2482
        if (!this.success.equals(that.success))
2483
          return false;
2484
      }
2485
 
2486
      return true;
2487
    }
2488
 
2489
    @Override
2490
    public int hashCode() {
2491
      return 0;
2492
    }
2493
 
2494
    public int compareTo(getAddress_result other) {
2495
      if (!getClass().equals(other.getClass())) {
2496
        return getClass().getName().compareTo(other.getClass().getName());
2497
      }
2498
 
2499
      int lastComparison = 0;
2500
      getAddress_result typedOther = (getAddress_result)other;
2501
 
3430 rajveer 2502
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
896 rajveer 2503
      if (lastComparison != 0) {
2504
        return lastComparison;
2505
      }
3430 rajveer 2506
      if (isSetSuccess()) {
2507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2508
        if (lastComparison != 0) {
2509
          return lastComparison;
2510
        }
896 rajveer 2511
      }
2512
      return 0;
2513
    }
2514
 
3430 rajveer 2515
    public _Fields fieldForId(int fieldId) {
2516
      return _Fields.findByThriftId(fieldId);
2517
    }
2518
 
2519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2520
      org.apache.thrift.protocol.TField field;
896 rajveer 2521
      iprot.readStructBegin();
2522
      while (true)
2523
      {
2524
        field = iprot.readFieldBegin();
3430 rajveer 2525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
896 rajveer 2526
          break;
2527
        }
3430 rajveer 2528
        switch (field.id) {
2529
          case 0: // SUCCESS
2530
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2531
              this.success = new Address();
2532
              this.success.read(iprot);
2533
            } else { 
2534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2535
            }
2536
            break;
2537
          default:
2538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
896 rajveer 2539
        }
3430 rajveer 2540
        iprot.readFieldEnd();
896 rajveer 2541
      }
2542
      iprot.readStructEnd();
2543
      validate();
2544
    }
2545
 
3430 rajveer 2546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
896 rajveer 2547
      oprot.writeStructBegin(STRUCT_DESC);
2548
 
2549
      if (this.isSetSuccess()) {
2550
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2551
        this.success.write(oprot);
2552
        oprot.writeFieldEnd();
2553
      }
2554
      oprot.writeFieldStop();
2555
      oprot.writeStructEnd();
2556
    }
2557
 
2558
    @Override
2559
    public String toString() {
2560
      StringBuilder sb = new StringBuilder("getAddress_result(");
2561
      boolean first = true;
2562
 
2563
      sb.append("success:");
2564
      if (this.success == null) {
2565
        sb.append("null");
2566
      } else {
2567
        sb.append(this.success);
2568
      }
2569
      first = false;
2570
      sb.append(")");
2571
      return sb.toString();
2572
    }
2573
 
3430 rajveer 2574
    public void validate() throws org.apache.thrift.TException {
896 rajveer 2575
      // check for required fields
2576
    }
2577
 
3430 rajveer 2578
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2579
      try {
2580
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2581
      } catch (org.apache.thrift.TException te) {
2582
        throw new java.io.IOException(te);
2583
      }
2584
    }
2585
 
2586
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2587
      try {
2588
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2589
      } catch (org.apache.thrift.TException te) {
2590
        throw new java.io.IOException(te);
2591
      }
2592
    }
2593
 
896 rajveer 2594
  }
2595
 
3430 rajveer 2596
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
2597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
779 rajveer 2598
 
3430 rajveer 2599
    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 2600
 
3430 rajveer 2601
    private String name; // required
779 rajveer 2602
 
2603
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2604
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 2605
      NAME((short)1, "name");
2606
 
2607
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2608
 
2609
      static {
2610
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2611
          byName.put(field.getFieldName(), field);
2612
        }
2613
      }
2614
 
2615
      /**
2616
       * Find the _Fields constant that matches fieldId, or null if its not found.
2617
       */
2618
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2619
        switch(fieldId) {
2620
          case 1: // NAME
2621
            return NAME;
2622
          default:
2623
            return null;
2624
        }
779 rajveer 2625
      }
2626
 
2627
      /**
2628
       * Find the _Fields constant that matches fieldId, throwing an exception
2629
       * if it is not found.
2630
       */
2631
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2632
        _Fields fields = findByThriftId(fieldId);
2633
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2634
        return fields;
2635
      }
2636
 
2637
      /**
2638
       * Find the _Fields constant that matches name, or null if its not found.
2639
       */
2640
      public static _Fields findByName(String name) {
2641
        return byName.get(name);
2642
      }
2643
 
2644
      private final short _thriftId;
2645
      private final String _fieldName;
2646
 
2647
      _Fields(short thriftId, String fieldName) {
2648
        _thriftId = thriftId;
2649
        _fieldName = fieldName;
2650
      }
2651
 
2652
      public short getThriftFieldId() {
2653
        return _thriftId;
2654
      }
2655
 
2656
      public String getFieldName() {
2657
        return _fieldName;
2658
      }
2659
    }
2660
 
2661
    // isset id assignments
2662
 
3430 rajveer 2663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 2664
    static {
3430 rajveer 2665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2666
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
779 rajveer 2670
    }
2671
 
2672
    public createUser_args() {
2673
    }
2674
 
2675
    public createUser_args(
2676
      String name)
2677
    {
2678
      this();
2679
      this.name = name;
2680
    }
2681
 
2682
    /**
2683
     * Performs a deep copy on <i>other</i>.
2684
     */
2685
    public createUser_args(createUser_args other) {
2686
      if (other.isSetName()) {
2687
        this.name = other.name;
2688
      }
2689
    }
2690
 
2691
    public createUser_args deepCopy() {
2692
      return new createUser_args(this);
2693
    }
2694
 
3430 rajveer 2695
    @Override
2696
    public void clear() {
2697
      this.name = null;
779 rajveer 2698
    }
2699
 
2700
    public String getName() {
2701
      return this.name;
2702
    }
2703
 
3430 rajveer 2704
    public void setName(String name) {
779 rajveer 2705
      this.name = name;
2706
    }
2707
 
2708
    public void unsetName() {
2709
      this.name = null;
2710
    }
2711
 
3430 rajveer 2712
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
779 rajveer 2713
    public boolean isSetName() {
2714
      return this.name != null;
2715
    }
2716
 
2717
    public void setNameIsSet(boolean value) {
2718
      if (!value) {
2719
        this.name = null;
2720
      }
2721
    }
2722
 
2723
    public void setFieldValue(_Fields field, Object value) {
2724
      switch (field) {
2725
      case NAME:
2726
        if (value == null) {
2727
          unsetName();
2728
        } else {
2729
          setName((String)value);
2730
        }
2731
        break;
2732
 
2733
      }
2734
    }
2735
 
2736
    public Object getFieldValue(_Fields field) {
2737
      switch (field) {
2738
      case NAME:
2739
        return getName();
2740
 
2741
      }
2742
      throw new IllegalStateException();
2743
    }
2744
 
3430 rajveer 2745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2746
    public boolean isSet(_Fields field) {
2747
      if (field == null) {
2748
        throw new IllegalArgumentException();
2749
      }
779 rajveer 2750
 
2751
      switch (field) {
2752
      case NAME:
2753
        return isSetName();
2754
      }
2755
      throw new IllegalStateException();
2756
    }
2757
 
2758
    @Override
2759
    public boolean equals(Object that) {
2760
      if (that == null)
2761
        return false;
2762
      if (that instanceof createUser_args)
2763
        return this.equals((createUser_args)that);
2764
      return false;
2765
    }
2766
 
2767
    public boolean equals(createUser_args that) {
2768
      if (that == null)
2769
        return false;
2770
 
2771
      boolean this_present_name = true && this.isSetName();
2772
      boolean that_present_name = true && that.isSetName();
2773
      if (this_present_name || that_present_name) {
2774
        if (!(this_present_name && that_present_name))
2775
          return false;
2776
        if (!this.name.equals(that.name))
2777
          return false;
2778
      }
2779
 
2780
      return true;
2781
    }
2782
 
2783
    @Override
2784
    public int hashCode() {
2785
      return 0;
2786
    }
2787
 
2788
    public int compareTo(createUser_args other) {
2789
      if (!getClass().equals(other.getClass())) {
2790
        return getClass().getName().compareTo(other.getClass().getName());
2791
      }
2792
 
2793
      int lastComparison = 0;
2794
      createUser_args typedOther = (createUser_args)other;
2795
 
3430 rajveer 2796
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
779 rajveer 2797
      if (lastComparison != 0) {
2798
        return lastComparison;
2799
      }
3430 rajveer 2800
      if (isSetName()) {
2801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
2802
        if (lastComparison != 0) {
2803
          return lastComparison;
2804
        }
779 rajveer 2805
      }
2806
      return 0;
2807
    }
2808
 
3430 rajveer 2809
    public _Fields fieldForId(int fieldId) {
2810
      return _Fields.findByThriftId(fieldId);
2811
    }
2812
 
2813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2814
      org.apache.thrift.protocol.TField field;
779 rajveer 2815
      iprot.readStructBegin();
2816
      while (true)
2817
      {
2818
        field = iprot.readFieldBegin();
3430 rajveer 2819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 2820
          break;
2821
        }
3430 rajveer 2822
        switch (field.id) {
2823
          case 1: // NAME
2824
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2825
              this.name = iprot.readString();
2826
            } else { 
2827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2828
            }
2829
            break;
2830
          default:
2831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 2832
        }
3430 rajveer 2833
        iprot.readFieldEnd();
779 rajveer 2834
      }
2835
      iprot.readStructEnd();
2836
      validate();
2837
    }
2838
 
3430 rajveer 2839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 2840
      validate();
2841
 
2842
      oprot.writeStructBegin(STRUCT_DESC);
2843
      if (this.name != null) {
2844
        oprot.writeFieldBegin(NAME_FIELD_DESC);
2845
        oprot.writeString(this.name);
2846
        oprot.writeFieldEnd();
2847
      }
2848
      oprot.writeFieldStop();
2849
      oprot.writeStructEnd();
2850
    }
2851
 
2852
    @Override
2853
    public String toString() {
2854
      StringBuilder sb = new StringBuilder("createUser_args(");
2855
      boolean first = true;
2856
 
2857
      sb.append("name:");
2858
      if (this.name == null) {
2859
        sb.append("null");
2860
      } else {
2861
        sb.append(this.name);
2862
      }
2863
      first = false;
2864
      sb.append(")");
2865
      return sb.toString();
2866
    }
2867
 
3430 rajveer 2868
    public void validate() throws org.apache.thrift.TException {
779 rajveer 2869
      // check for required fields
2870
    }
2871
 
3430 rajveer 2872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2873
      try {
2874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2875
      } catch (org.apache.thrift.TException te) {
2876
        throw new java.io.IOException(te);
2877
      }
2878
    }
2879
 
2880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2881
      try {
2882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2883
      } catch (org.apache.thrift.TException te) {
2884
        throw new java.io.IOException(te);
2885
      }
2886
    }
2887
 
779 rajveer 2888
  }
2889
 
3430 rajveer 2890
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
2891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
779 rajveer 2892
 
2893
 
2894
 
2895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 2897
;
2898
 
2899
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2900
 
2901
      static {
2902
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2903
          byName.put(field.getFieldName(), field);
2904
        }
2905
      }
2906
 
2907
      /**
2908
       * Find the _Fields constant that matches fieldId, or null if its not found.
2909
       */
2910
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2911
        switch(fieldId) {
2912
          default:
2913
            return null;
2914
        }
779 rajveer 2915
      }
2916
 
2917
      /**
2918
       * Find the _Fields constant that matches fieldId, throwing an exception
2919
       * if it is not found.
2920
       */
2921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2922
        _Fields fields = findByThriftId(fieldId);
2923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2924
        return fields;
2925
      }
2926
 
2927
      /**
2928
       * Find the _Fields constant that matches name, or null if its not found.
2929
       */
2930
      public static _Fields findByName(String name) {
2931
        return byName.get(name);
2932
      }
2933
 
2934
      private final short _thriftId;
2935
      private final String _fieldName;
2936
 
2937
      _Fields(short thriftId, String fieldName) {
2938
        _thriftId = thriftId;
2939
        _fieldName = fieldName;
2940
      }
2941
 
2942
      public short getThriftFieldId() {
2943
        return _thriftId;
2944
      }
2945
 
2946
      public String getFieldName() {
2947
        return _fieldName;
2948
      }
2949
    }
3430 rajveer 2950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 2951
    static {
3430 rajveer 2952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
779 rajveer 2955
    }
2956
 
2957
    public createUser_result() {
2958
    }
2959
 
2960
    /**
2961
     * Performs a deep copy on <i>other</i>.
2962
     */
2963
    public createUser_result(createUser_result other) {
2964
    }
2965
 
2966
    public createUser_result deepCopy() {
2967
      return new createUser_result(this);
2968
    }
2969
 
3430 rajveer 2970
    @Override
2971
    public void clear() {
779 rajveer 2972
    }
2973
 
2974
    public void setFieldValue(_Fields field, Object value) {
2975
      switch (field) {
2976
      }
2977
    }
2978
 
2979
    public Object getFieldValue(_Fields field) {
2980
      switch (field) {
2981
      }
2982
      throw new IllegalStateException();
2983
    }
2984
 
3430 rajveer 2985
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2986
    public boolean isSet(_Fields field) {
2987
      if (field == null) {
2988
        throw new IllegalArgumentException();
2989
      }
779 rajveer 2990
 
2991
      switch (field) {
2992
      }
2993
      throw new IllegalStateException();
2994
    }
2995
 
2996
    @Override
2997
    public boolean equals(Object that) {
2998
      if (that == null)
2999
        return false;
3000
      if (that instanceof createUser_result)
3001
        return this.equals((createUser_result)that);
3002
      return false;
3003
    }
3004
 
3005
    public boolean equals(createUser_result that) {
3006
      if (that == null)
3007
        return false;
3008
 
3009
      return true;
3010
    }
3011
 
3012
    @Override
3013
    public int hashCode() {
3014
      return 0;
3015
    }
3016
 
3017
    public int compareTo(createUser_result other) {
3018
      if (!getClass().equals(other.getClass())) {
3019
        return getClass().getName().compareTo(other.getClass().getName());
3020
      }
3021
 
3022
      int lastComparison = 0;
3023
      createUser_result typedOther = (createUser_result)other;
3024
 
3025
      return 0;
3026
    }
3027
 
3430 rajveer 3028
    public _Fields fieldForId(int fieldId) {
3029
      return _Fields.findByThriftId(fieldId);
3030
    }
3031
 
3032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3033
      org.apache.thrift.protocol.TField field;
779 rajveer 3034
      iprot.readStructBegin();
3035
      while (true)
3036
      {
3037
        field = iprot.readFieldBegin();
3430 rajveer 3038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3039
          break;
3040
        }
3430 rajveer 3041
        switch (field.id) {
3042
          default:
3043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3044
        }
3430 rajveer 3045
        iprot.readFieldEnd();
779 rajveer 3046
      }
3047
      iprot.readStructEnd();
3048
      validate();
3049
    }
3050
 
3430 rajveer 3051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3052
      oprot.writeStructBegin(STRUCT_DESC);
3053
 
3054
      oprot.writeFieldStop();
3055
      oprot.writeStructEnd();
3056
    }
3057
 
3058
    @Override
3059
    public String toString() {
3060
      StringBuilder sb = new StringBuilder("createUser_result(");
3061
      boolean first = true;
3062
 
3063
      sb.append(")");
3064
      return sb.toString();
3065
    }
3066
 
3430 rajveer 3067
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3068
      // check for required fields
3069
    }
3070
 
3430 rajveer 3071
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3072
      try {
3073
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3074
      } catch (org.apache.thrift.TException te) {
3075
        throw new java.io.IOException(te);
3076
      }
3077
    }
3078
 
3079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3080
      try {
3081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3082
      } catch (org.apache.thrift.TException te) {
3083
        throw new java.io.IOException(te);
3084
      }
3085
    }
3086
 
779 rajveer 3087
  }
3088
 
3430 rajveer 3089
  public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable   {
3090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
779 rajveer 3091
 
3092
 
3093
 
3094
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3095
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 3096
;
3097
 
3098
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3099
 
3100
      static {
3101
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3102
          byName.put(field.getFieldName(), field);
3103
        }
3104
      }
3105
 
3106
      /**
3107
       * Find the _Fields constant that matches fieldId, or null if its not found.
3108
       */
3109
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3110
        switch(fieldId) {
3111
          default:
3112
            return null;
3113
        }
779 rajveer 3114
      }
3115
 
3116
      /**
3117
       * Find the _Fields constant that matches fieldId, throwing an exception
3118
       * if it is not found.
3119
       */
3120
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3121
        _Fields fields = findByThriftId(fieldId);
3122
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3123
        return fields;
3124
      }
3125
 
3126
      /**
3127
       * Find the _Fields constant that matches name, or null if its not found.
3128
       */
3129
      public static _Fields findByName(String name) {
3130
        return byName.get(name);
3131
      }
3132
 
3133
      private final short _thriftId;
3134
      private final String _fieldName;
3135
 
3136
      _Fields(short thriftId, String fieldName) {
3137
        _thriftId = thriftId;
3138
        _fieldName = fieldName;
3139
      }
3140
 
3141
      public short getThriftFieldId() {
3142
        return _thriftId;
3143
      }
3144
 
3145
      public String getFieldName() {
3146
        return _fieldName;
3147
      }
3148
    }
3430 rajveer 3149
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 3150
    static {
3430 rajveer 3151
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3152
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3153
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
779 rajveer 3154
    }
3155
 
3156
    public closeSession_args() {
3157
    }
3158
 
3159
    /**
3160
     * Performs a deep copy on <i>other</i>.
3161
     */
3162
    public closeSession_args(closeSession_args other) {
3163
    }
3164
 
3165
    public closeSession_args deepCopy() {
3166
      return new closeSession_args(this);
3167
    }
3168
 
3430 rajveer 3169
    @Override
3170
    public void clear() {
779 rajveer 3171
    }
3172
 
3173
    public void setFieldValue(_Fields field, Object value) {
3174
      switch (field) {
3175
      }
3176
    }
3177
 
3178
    public Object getFieldValue(_Fields field) {
3179
      switch (field) {
3180
      }
3181
      throw new IllegalStateException();
3182
    }
3183
 
3430 rajveer 3184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3185
    public boolean isSet(_Fields field) {
3186
      if (field == null) {
3187
        throw new IllegalArgumentException();
3188
      }
779 rajveer 3189
 
3190
      switch (field) {
3191
      }
3192
      throw new IllegalStateException();
3193
    }
3194
 
3195
    @Override
3196
    public boolean equals(Object that) {
3197
      if (that == null)
3198
        return false;
3199
      if (that instanceof closeSession_args)
3200
        return this.equals((closeSession_args)that);
3201
      return false;
3202
    }
3203
 
3204
    public boolean equals(closeSession_args that) {
3205
      if (that == null)
3206
        return false;
3207
 
3208
      return true;
3209
    }
3210
 
3211
    @Override
3212
    public int hashCode() {
3213
      return 0;
3214
    }
3215
 
3216
    public int compareTo(closeSession_args other) {
3217
      if (!getClass().equals(other.getClass())) {
3218
        return getClass().getName().compareTo(other.getClass().getName());
3219
      }
3220
 
3221
      int lastComparison = 0;
3222
      closeSession_args typedOther = (closeSession_args)other;
3223
 
3224
      return 0;
3225
    }
3226
 
3430 rajveer 3227
    public _Fields fieldForId(int fieldId) {
3228
      return _Fields.findByThriftId(fieldId);
3229
    }
3230
 
3231
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3232
      org.apache.thrift.protocol.TField field;
779 rajveer 3233
      iprot.readStructBegin();
3234
      while (true)
3235
      {
3236
        field = iprot.readFieldBegin();
3430 rajveer 3237
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3238
          break;
3239
        }
3430 rajveer 3240
        switch (field.id) {
3241
          default:
3242
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3243
        }
3430 rajveer 3244
        iprot.readFieldEnd();
779 rajveer 3245
      }
3246
      iprot.readStructEnd();
3247
      validate();
3248
    }
3249
 
3430 rajveer 3250
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3251
      validate();
3252
 
3253
      oprot.writeStructBegin(STRUCT_DESC);
3254
      oprot.writeFieldStop();
3255
      oprot.writeStructEnd();
3256
    }
3257
 
3258
    @Override
3259
    public String toString() {
3260
      StringBuilder sb = new StringBuilder("closeSession_args(");
3261
      boolean first = true;
3262
 
3263
      sb.append(")");
3264
      return sb.toString();
3265
    }
3266
 
3430 rajveer 3267
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3268
      // check for required fields
3269
    }
3270
 
3430 rajveer 3271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3272
      try {
3273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3274
      } catch (org.apache.thrift.TException te) {
3275
        throw new java.io.IOException(te);
3276
      }
3277
    }
3278
 
3279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3280
      try {
3281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3282
      } catch (org.apache.thrift.TException te) {
3283
        throw new java.io.IOException(te);
3284
      }
3285
    }
3286
 
779 rajveer 3287
  }
3288
 
3430 rajveer 3289
  public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable   {
3290
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
779 rajveer 3291
 
3292
 
3293
 
3294
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3295
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
779 rajveer 3296
;
3297
 
3298
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3299
 
3300
      static {
3301
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3302
          byName.put(field.getFieldName(), field);
3303
        }
3304
      }
3305
 
3306
      /**
3307
       * Find the _Fields constant that matches fieldId, or null if its not found.
3308
       */
3309
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3310
        switch(fieldId) {
3311
          default:
3312
            return null;
3313
        }
779 rajveer 3314
      }
3315
 
3316
      /**
3317
       * Find the _Fields constant that matches fieldId, throwing an exception
3318
       * if it is not found.
3319
       */
3320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3321
        _Fields fields = findByThriftId(fieldId);
3322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3323
        return fields;
3324
      }
3325
 
3326
      /**
3327
       * Find the _Fields constant that matches name, or null if its not found.
3328
       */
3329
      public static _Fields findByName(String name) {
3330
        return byName.get(name);
3331
      }
3332
 
3333
      private final short _thriftId;
3334
      private final String _fieldName;
3335
 
3336
      _Fields(short thriftId, String fieldName) {
3337
        _thriftId = thriftId;
3338
        _fieldName = fieldName;
3339
      }
3340
 
3341
      public short getThriftFieldId() {
3342
        return _thriftId;
3343
      }
3344
 
3345
      public String getFieldName() {
3346
        return _fieldName;
3347
      }
3348
    }
3430 rajveer 3349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
779 rajveer 3350
    static {
3430 rajveer 3351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
779 rajveer 3354
    }
3355
 
3356
    public closeSession_result() {
3357
    }
3358
 
3359
    /**
3360
     * Performs a deep copy on <i>other</i>.
3361
     */
3362
    public closeSession_result(closeSession_result other) {
3363
    }
3364
 
3365
    public closeSession_result deepCopy() {
3366
      return new closeSession_result(this);
3367
    }
3368
 
3430 rajveer 3369
    @Override
3370
    public void clear() {
779 rajveer 3371
    }
3372
 
3373
    public void setFieldValue(_Fields field, Object value) {
3374
      switch (field) {
3375
      }
3376
    }
3377
 
3378
    public Object getFieldValue(_Fields field) {
3379
      switch (field) {
3380
      }
3381
      throw new IllegalStateException();
3382
    }
3383
 
3430 rajveer 3384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3385
    public boolean isSet(_Fields field) {
3386
      if (field == null) {
3387
        throw new IllegalArgumentException();
3388
      }
779 rajveer 3389
 
3390
      switch (field) {
3391
      }
3392
      throw new IllegalStateException();
3393
    }
3394
 
3395
    @Override
3396
    public boolean equals(Object that) {
3397
      if (that == null)
3398
        return false;
3399
      if (that instanceof closeSession_result)
3400
        return this.equals((closeSession_result)that);
3401
      return false;
3402
    }
3403
 
3404
    public boolean equals(closeSession_result that) {
3405
      if (that == null)
3406
        return false;
3407
 
3408
      return true;
3409
    }
3410
 
3411
    @Override
3412
    public int hashCode() {
3413
      return 0;
3414
    }
3415
 
3416
    public int compareTo(closeSession_result other) {
3417
      if (!getClass().equals(other.getClass())) {
3418
        return getClass().getName().compareTo(other.getClass().getName());
3419
      }
3420
 
3421
      int lastComparison = 0;
3422
      closeSession_result typedOther = (closeSession_result)other;
3423
 
3424
      return 0;
3425
    }
3426
 
3430 rajveer 3427
    public _Fields fieldForId(int fieldId) {
3428
      return _Fields.findByThriftId(fieldId);
3429
    }
3430
 
3431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3432
      org.apache.thrift.protocol.TField field;
779 rajveer 3433
      iprot.readStructBegin();
3434
      while (true)
3435
      {
3436
        field = iprot.readFieldBegin();
3430 rajveer 3437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
779 rajveer 3438
          break;
3439
        }
3430 rajveer 3440
        switch (field.id) {
3441
          default:
3442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
779 rajveer 3443
        }
3430 rajveer 3444
        iprot.readFieldEnd();
779 rajveer 3445
      }
3446
      iprot.readStructEnd();
3447
      validate();
3448
    }
3449
 
3430 rajveer 3450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
779 rajveer 3451
      oprot.writeStructBegin(STRUCT_DESC);
3452
 
3453
      oprot.writeFieldStop();
3454
      oprot.writeStructEnd();
3455
    }
3456
 
3457
    @Override
3458
    public String toString() {
3459
      StringBuilder sb = new StringBuilder("closeSession_result(");
3460
      boolean first = true;
3461
 
3462
      sb.append(")");
3463
      return sb.toString();
3464
    }
3465
 
3430 rajveer 3466
    public void validate() throws org.apache.thrift.TException {
779 rajveer 3467
      // check for required fields
3468
    }
3469
 
3430 rajveer 3470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3471
      try {
3472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3473
      } catch (org.apache.thrift.TException te) {
3474
        throw new java.io.IOException(te);
3475
      }
3476
    }
3477
 
3478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3479
      try {
3480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3481
      } catch (org.apache.thrift.TException te) {
3482
        throw new java.io.IOException(te);
3483
      }
3484
    }
3485
 
779 rajveer 3486
  }
3487
 
3488
}