Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
412 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
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;
412 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
412 ashish 26
 
648 chandransh 27
    /**
668 chandransh 28
     * Returns a provider for a given provider ID. Throws an exception if none found.
29
     * 
30
     * @param providerId
31
     */
3430 rajveer 32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
668 chandransh 33
 
34
    /**
674 chandransh 35
     * Returns a list containing all the providers.
36
     */
3430 rajveer 37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
674 chandransh 38
 
39
    /**
648 chandransh 40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
43
     * 
44
     * @param itemId
45
     * @param destination_pin
46
     */
3430 rajveer 47
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException;
483 rajveer 48
 
648 chandransh 49
    /**
50
     * Same as above excpet that an airway bill number is also allocated and returned.
51
     * 
52
     * @param destination_pincode
53
     * @param item_id
3044 chandransh 54
     * @param type
648 chandransh 55
     */
3430 rajveer 56
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 57
 
648 chandransh 58
    /**
59
     * Returns an unused AWB number for the given provider.
60
     * 
61
     * @param providerId
62
     */
3430 rajveer 63
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 64
 
648 chandransh 65
    /**
66
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
67
     * 
68
     * @param awb
69
     * @param providerId
70
     */
3430 rajveer 71
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 72
 
730 chandransh 73
    /**
74
     * Returns the short three letter code of a pincode for the given provider.
75
     *    Raises an exception if the pin code is not serviced by the given provider.
76
     * 
77
     * @param providerId
78
     * @param pinCode
79
     */
3430 rajveer 80
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 81
 
1139 chandransh 82
    /**
3103 chandransh 83
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 84
     * 
85
     * @param providerId
3103 chandransh 86
     * @param type
1139 chandransh 87
     */
3430 rajveer 88
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 89
 
1730 ankur.sing 90
    /**
91
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
92
     * fromDate should be passed as milliseconds corresponding to the start of the day.
93
     * If fromDate is passed as -1, fromDate is not considered for filtering
94
     * If toDate is passed as -1, toDate is not considered for filtering
95
     * 
96
     * @param fromDate
97
     * @param toDate
98
     */
3430 rajveer 99
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 100
 
3061 chandransh 101
    /**
102
     * Returns true if COD is allowed for this destination pincode
103
     * 
104
     * @param destination_pincode
105
     */
3430 rajveer 106
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException;
3061 chandransh 107
 
4386 anupam.sin 108
    /**
109
     * Returns AWB object identified by its AWB number
110
     * 
111
     * @param awbNumber
112
     */
113
    public Awb getAwbForNumber(String awbNumber) throws org.apache.thrift.TException;
114
 
412 ashish 115
  }
116
 
3430 rajveer 117
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
118
 
119
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
120
 
121
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
122
 
123
    public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
124
 
125
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
126
 
127
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
128
 
129
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
130
 
131
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
132
 
133
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
134
 
135
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
136
 
137
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCodAllowed_call> resultHandler) throws org.apache.thrift.TException;
138
 
4386 anupam.sin 139
    public void getAwbForNumber(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAwbForNumber_call> resultHandler) throws org.apache.thrift.TException;
140
 
3430 rajveer 141
  }
142
 
3374 rajveer 143
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 144
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
145
      public Factory() {}
146
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
147
        return new Client(prot);
148
      }
149
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
150
        return new Client(iprot, oprot);
151
      }
152
    }
153
 
154
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 155
    {
3430 rajveer 156
      super(prot, prot);
412 ashish 157
    }
158
 
3430 rajveer 159
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 160
      super(iprot, oprot);
412 ashish 161
    }
162
 
3430 rajveer 163
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 164
    {
165
      send_getProvider(providerId);
166
      return recv_getProvider();
167
    }
168
 
3430 rajveer 169
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 170
    {
171
      getProvider_args args = new getProvider_args();
3430 rajveer 172
      args.setProviderId(providerId);
173
      sendBase("getProvider", args);
668 chandransh 174
    }
175
 
3430 rajveer 176
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 177
    {
178
      getProvider_result result = new getProvider_result();
3430 rajveer 179
      receiveBase(result, "getProvider");
668 chandransh 180
      if (result.isSetSuccess()) {
181
        return result.success;
182
      }
183
      if (result.lse != null) {
184
        throw result.lse;
185
      }
3430 rajveer 186
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 187
    }
188
 
3430 rajveer 189
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 190
    {
191
      send_getAllProviders();
192
      return recv_getAllProviders();
193
    }
194
 
3430 rajveer 195
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 196
    {
197
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 198
      sendBase("getAllProviders", args);
674 chandransh 199
    }
200
 
3430 rajveer 201
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 202
    {
203
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 204
      receiveBase(result, "getAllProviders");
674 chandransh 205
      if (result.isSetSuccess()) {
206
        return result.success;
207
      }
208
      if (result.lse != null) {
209
        throw result.lse;
210
      }
3430 rajveer 211
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 212
    }
213
 
3430 rajveer 214
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 215
    {
648 chandransh 216
      send_getLogisticsEstimation(itemId, destination_pin);
471 rajveer 217
      return recv_getLogisticsEstimation();
218
    }
219
 
3430 rajveer 220
    public void send_getLogisticsEstimation(long itemId, String destination_pin) throws org.apache.thrift.TException
471 rajveer 221
    {
222
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 223
      args.setItemId(itemId);
224
      args.setDestination_pin(destination_pin);
225
      sendBase("getLogisticsEstimation", args);
471 rajveer 226
    }
227
 
3430 rajveer 228
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 229
    {
230
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 231
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 232
      if (result.isSetSuccess()) {
233
        return result.success;
234
      }
235
      if (result.se != null) {
236
        throw result.se;
237
      }
3430 rajveer 238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 239
    }
240
 
3430 rajveer 241
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 242
    {
3044 chandransh 243
      send_getLogisticsInfo(destination_pincode, item_id, type);
648 chandransh 244
      return recv_getLogisticsInfo();
471 rajveer 245
    }
246
 
3430 rajveer 247
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 248
    {
648 chandransh 249
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 250
      args.setDestination_pincode(destination_pincode);
251
      args.setItem_id(item_id);
252
      args.setType(type);
253
      sendBase("getLogisticsInfo", args);
471 rajveer 254
    }
255
 
3430 rajveer 256
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 257
    {
648 chandransh 258
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 259
      receiveBase(result, "getLogisticsInfo");
648 chandransh 260
      if (result.isSetSuccess()) {
261
        return result.success;
477 rajveer 262
      }
648 chandransh 263
      if (result.se != null) {
264
        throw result.se;
412 ashish 265
      }
3430 rajveer 266
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 267
    }
268
 
3430 rajveer 269
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 270
    {
648 chandransh 271
      send_getEmptyAWB(providerId);
412 ashish 272
      return recv_getEmptyAWB();
273
    }
274
 
3430 rajveer 275
    public void send_getEmptyAWB(long providerId) throws org.apache.thrift.TException
412 ashish 276
    {
277
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 278
      args.setProviderId(providerId);
279
      sendBase("getEmptyAWB", args);
412 ashish 280
    }
281
 
3430 rajveer 282
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 283
    {
284
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 285
      receiveBase(result, "getEmptyAWB");
412 ashish 286
      if (result.isSetSuccess()) {
287
        return result.success;
288
      }
648 chandransh 289
      if (result.se != null) {
290
        throw result.se;
291
      }
3430 rajveer 292
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 293
    }
294
 
3430 rajveer 295
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 296
    {
648 chandransh 297
      send_getShipmentInfo(awb, providerId);
412 ashish 298
      return recv_getShipmentInfo();
299
    }
300
 
3430 rajveer 301
    public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
412 ashish 302
    {
303
      getShipmentInfo_args args = new getShipmentInfo_args();
3430 rajveer 304
      args.setAwb(awb);
305
      args.setProviderId(providerId);
306
      sendBase("getShipmentInfo", args);
412 ashish 307
    }
308
 
3430 rajveer 309
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 310
    {
311
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 312
      receiveBase(result, "getShipmentInfo");
412 ashish 313
      if (result.isSetSuccess()) {
314
        return result.success;
315
      }
648 chandransh 316
      if (result.se != null) {
317
        throw result.se;
318
      }
3430 rajveer 319
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 320
    }
321
 
3430 rajveer 322
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 323
    {
324
      send_getDestinationCode(providerId, pinCode);
325
      return recv_getDestinationCode();
326
    }
327
 
3430 rajveer 328
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 329
    {
330
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 331
      args.setProviderId(providerId);
332
      args.setPinCode(pinCode);
333
      sendBase("getDestinationCode", args);
730 chandransh 334
    }
335
 
3430 rajveer 336
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 337
    {
338
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 339
      receiveBase(result, "getDestinationCode");
730 chandransh 340
      if (result.isSetSuccess()) {
341
        return result.success;
342
      }
343
      if (result.se != null) {
344
        throw result.se;
345
      }
3430 rajveer 346
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 347
    }
348
 
3430 rajveer 349
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 350
    {
3103 chandransh 351
      send_getFreeAwbCount(providerId, type);
1139 chandransh 352
      return recv_getFreeAwbCount();
353
    }
354
 
3430 rajveer 355
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 356
    {
357
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 358
      args.setProviderId(providerId);
359
      args.setType(type);
360
      sendBase("getFreeAwbCount", args);
1139 chandransh 361
    }
362
 
3430 rajveer 363
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 364
    {
365
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 366
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 367
      if (result.isSetSuccess()) {
368
        return result.success;
369
      }
3430 rajveer 370
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 371
    }
372
 
3430 rajveer 373
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 374
    {
375
      send_getHolidays(fromDate, toDate);
376
      return recv_getHolidays();
377
    }
378
 
3430 rajveer 379
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 380
    {
381
      getHolidays_args args = new getHolidays_args();
3430 rajveer 382
      args.setFromDate(fromDate);
383
      args.setToDate(toDate);
384
      sendBase("getHolidays", args);
1730 ankur.sing 385
    }
386
 
3430 rajveer 387
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 388
    {
389
      getHolidays_result result = new getHolidays_result();
3430 rajveer 390
      receiveBase(result, "getHolidays");
1730 ankur.sing 391
      if (result.isSetSuccess()) {
392
        return result.success;
393
      }
3430 rajveer 394
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 395
    }
396
 
3430 rajveer 397
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException
3061 chandransh 398
    {
399
      send_isCodAllowed(destination_pincode);
400
      return recv_isCodAllowed();
401
    }
402
 
3430 rajveer 403
    public void send_isCodAllowed(String destination_pincode) throws org.apache.thrift.TException
3061 chandransh 404
    {
405
      isCodAllowed_args args = new isCodAllowed_args();
3430 rajveer 406
      args.setDestination_pincode(destination_pincode);
407
      sendBase("isCodAllowed", args);
3061 chandransh 408
    }
409
 
3430 rajveer 410
    public boolean recv_isCodAllowed() throws org.apache.thrift.TException
3061 chandransh 411
    {
412
      isCodAllowed_result result = new isCodAllowed_result();
3430 rajveer 413
      receiveBase(result, "isCodAllowed");
3061 chandransh 414
      if (result.isSetSuccess()) {
415
        return result.success;
416
      }
3430 rajveer 417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
3061 chandransh 418
    }
419
 
4386 anupam.sin 420
    public Awb getAwbForNumber(String awbNumber) throws org.apache.thrift.TException
421
    {
422
      send_getAwbForNumber(awbNumber);
423
      return recv_getAwbForNumber();
424
    }
425
 
426
    public void send_getAwbForNumber(String awbNumber) throws org.apache.thrift.TException
427
    {
428
      getAwbForNumber_args args = new getAwbForNumber_args();
429
      args.setAwbNumber(awbNumber);
430
      sendBase("getAwbForNumber", args);
431
    }
432
 
433
    public Awb recv_getAwbForNumber() throws org.apache.thrift.TException
434
    {
435
      getAwbForNumber_result result = new getAwbForNumber_result();
436
      receiveBase(result, "getAwbForNumber");
437
      if (result.isSetSuccess()) {
438
        return result.success;
439
      }
440
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAwbForNumber failed: unknown result");
441
    }
442
 
412 ashish 443
  }
3430 rajveer 444
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
445
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
446
      private org.apache.thrift.async.TAsyncClientManager clientManager;
447
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
448
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
449
        this.clientManager = clientManager;
450
        this.protocolFactory = protocolFactory;
451
      }
452
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
453
        return new AsyncClient(protocolFactory, clientManager, transport);
454
      }
412 ashish 455
    }
456
 
3430 rajveer 457
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
458
      super(protocolFactory, clientManager, transport);
459
    }
412 ashish 460
 
3430 rajveer 461
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
462
      checkReady();
463
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
464
      this.___currentMethod = method_call;
465
      ___manager.call(method_call);
466
    }
467
 
468
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
469
      private long providerId;
470
      public getProvider_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_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 {
471
        super(client, protocolFactory, transport, resultHandler, false);
472
        this.providerId = providerId;
412 ashish 473
      }
3430 rajveer 474
 
475
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
476
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
477
        getProvider_args args = new getProvider_args();
478
        args.setProviderId(providerId);
479
        args.write(prot);
480
        prot.writeMessageEnd();
481
      }
482
 
483
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
484
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
485
          throw new IllegalStateException("Method call not finished!");
486
        }
487
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
488
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
489
        return (new Client(prot)).recv_getProvider();
490
      }
412 ashish 491
    }
492
 
3430 rajveer 493
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
494
      checkReady();
495
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
496
      this.___currentMethod = method_call;
497
      ___manager.call(method_call);
498
    }
499
 
500
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
501
      public getAllProviders_call(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_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 {
502
        super(client, protocolFactory, transport, resultHandler, false);
503
      }
504
 
505
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
506
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
507
        getAllProviders_args args = new getAllProviders_args();
508
        args.write(prot);
509
        prot.writeMessageEnd();
510
      }
511
 
512
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
513
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
514
          throw new IllegalStateException("Method call not finished!");
515
        }
516
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
517
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
518
        return (new Client(prot)).recv_getAllProviders();
519
      }
520
    }
521
 
522
    public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
523
      checkReady();
524
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, resultHandler, this, ___protocolFactory, ___transport);
525
      this.___currentMethod = method_call;
526
      ___manager.call(method_call);
527
    }
528
 
529
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
530
      private long itemId;
531
      private String destination_pin;
532
      public getLogisticsEstimation_call(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_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 {
533
        super(client, protocolFactory, transport, resultHandler, false);
534
        this.itemId = itemId;
535
        this.destination_pin = destination_pin;
536
      }
537
 
538
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
539
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
540
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
541
        args.setItemId(itemId);
542
        args.setDestination_pin(destination_pin);
543
        args.write(prot);
544
        prot.writeMessageEnd();
545
      }
546
 
547
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
548
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
549
          throw new IllegalStateException("Method call not finished!");
550
        }
551
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
553
        return (new Client(prot)).recv_getLogisticsEstimation();
554
      }
555
    }
556
 
557
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
558
      checkReady();
559
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, resultHandler, this, ___protocolFactory, ___transport);
560
      this.___currentMethod = method_call;
561
      ___manager.call(method_call);
562
    }
563
 
564
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
565
      private String destination_pincode;
566
      private long item_id;
567
      private DeliveryType type;
568
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_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 {
569
        super(client, protocolFactory, transport, resultHandler, false);
570
        this.destination_pincode = destination_pincode;
571
        this.item_id = item_id;
572
        this.type = type;
573
      }
574
 
575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
577
        getLogisticsInfo_args args = new getLogisticsInfo_args();
578
        args.setDestination_pincode(destination_pincode);
579
        args.setItem_id(item_id);
580
        args.setType(type);
581
        args.write(prot);
582
        prot.writeMessageEnd();
583
      }
584
 
585
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
586
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
587
          throw new IllegalStateException("Method call not finished!");
588
        }
589
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
590
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
591
        return (new Client(prot)).recv_getLogisticsInfo();
592
      }
593
    }
594
 
595
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
596
      checkReady();
597
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
598
      this.___currentMethod = method_call;
599
      ___manager.call(method_call);
600
    }
601
 
602
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
603
      private long providerId;
604
      public getEmptyAWB_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_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 {
605
        super(client, protocolFactory, transport, resultHandler, false);
606
        this.providerId = providerId;
607
      }
608
 
609
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
610
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
611
        getEmptyAWB_args args = new getEmptyAWB_args();
612
        args.setProviderId(providerId);
613
        args.write(prot);
614
        prot.writeMessageEnd();
615
      }
616
 
617
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
618
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
619
          throw new IllegalStateException("Method call not finished!");
620
        }
621
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
622
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
623
        return (new Client(prot)).recv_getEmptyAWB();
624
      }
625
    }
626
 
627
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
628
      checkReady();
629
      getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
630
      this.___currentMethod = method_call;
631
      ___manager.call(method_call);
632
    }
633
 
634
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
635
      private String awb;
636
      private long providerId;
637
      public getShipmentInfo_call(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_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 {
638
        super(client, protocolFactory, transport, resultHandler, false);
639
        this.awb = awb;
640
        this.providerId = providerId;
641
      }
642
 
643
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
644
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
645
        getShipmentInfo_args args = new getShipmentInfo_args();
646
        args.setAwb(awb);
647
        args.setProviderId(providerId);
648
        args.write(prot);
649
        prot.writeMessageEnd();
650
      }
651
 
652
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
653
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
654
          throw new IllegalStateException("Method call not finished!");
655
        }
656
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
657
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
658
        return (new Client(prot)).recv_getShipmentInfo();
659
      }
660
    }
661
 
662
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
663
      checkReady();
664
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
665
      this.___currentMethod = method_call;
666
      ___manager.call(method_call);
667
    }
668
 
669
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
670
      private long providerId;
671
      private String pinCode;
672
      public getDestinationCode_call(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_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 {
673
        super(client, protocolFactory, transport, resultHandler, false);
674
        this.providerId = providerId;
675
        this.pinCode = pinCode;
676
      }
677
 
678
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
679
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
680
        getDestinationCode_args args = new getDestinationCode_args();
681
        args.setProviderId(providerId);
682
        args.setPinCode(pinCode);
683
        args.write(prot);
684
        prot.writeMessageEnd();
685
      }
686
 
687
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
688
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
689
          throw new IllegalStateException("Method call not finished!");
690
        }
691
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
692
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
693
        return (new Client(prot)).recv_getDestinationCode();
694
      }
695
    }
696
 
697
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
698
      checkReady();
699
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
700
      this.___currentMethod = method_call;
701
      ___manager.call(method_call);
702
    }
703
 
704
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
705
      private long providerId;
706
      private String type;
707
      public getFreeAwbCount_call(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_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 {
708
        super(client, protocolFactory, transport, resultHandler, false);
709
        this.providerId = providerId;
710
        this.type = type;
711
      }
712
 
713
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
714
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
715
        getFreeAwbCount_args args = new getFreeAwbCount_args();
716
        args.setProviderId(providerId);
717
        args.setType(type);
718
        args.write(prot);
719
        prot.writeMessageEnd();
720
      }
721
 
722
      public long getResult() throws org.apache.thrift.TException {
723
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
724
          throw new IllegalStateException("Method call not finished!");
725
        }
726
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
727
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
728
        return (new Client(prot)).recv_getFreeAwbCount();
729
      }
730
    }
731
 
732
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
733
      checkReady();
734
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
735
      this.___currentMethod = method_call;
736
      ___manager.call(method_call);
737
    }
738
 
739
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
740
      private long fromDate;
741
      private long toDate;
742
      public getHolidays_call(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_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 {
743
        super(client, protocolFactory, transport, resultHandler, false);
744
        this.fromDate = fromDate;
745
        this.toDate = toDate;
746
      }
747
 
748
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
749
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
750
        getHolidays_args args = new getHolidays_args();
751
        args.setFromDate(fromDate);
752
        args.setToDate(toDate);
753
        args.write(prot);
754
        prot.writeMessageEnd();
755
      }
756
 
757
      public List<Long> getResult() throws org.apache.thrift.TException {
758
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
759
          throw new IllegalStateException("Method call not finished!");
760
        }
761
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
762
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
763
        return (new Client(prot)).recv_getHolidays();
764
      }
765
    }
766
 
767
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<isCodAllowed_call> resultHandler) throws org.apache.thrift.TException {
768
      checkReady();
769
      isCodAllowed_call method_call = new isCodAllowed_call(destination_pincode, resultHandler, this, ___protocolFactory, ___transport);
770
      this.___currentMethod = method_call;
771
      ___manager.call(method_call);
772
    }
773
 
774
    public static class isCodAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
775
      private String destination_pincode;
776
      public isCodAllowed_call(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<isCodAllowed_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 {
777
        super(client, protocolFactory, transport, resultHandler, false);
778
        this.destination_pincode = destination_pincode;
779
      }
780
 
781
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
782
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isCodAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
783
        isCodAllowed_args args = new isCodAllowed_args();
784
        args.setDestination_pincode(destination_pincode);
785
        args.write(prot);
786
        prot.writeMessageEnd();
787
      }
788
 
789
      public boolean getResult() throws org.apache.thrift.TException {
790
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
791
          throw new IllegalStateException("Method call not finished!");
792
        }
793
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
794
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
795
        return (new Client(prot)).recv_isCodAllowed();
796
      }
797
    }
798
 
4386 anupam.sin 799
    public void getAwbForNumber(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<getAwbForNumber_call> resultHandler) throws org.apache.thrift.TException {
800
      checkReady();
801
      getAwbForNumber_call method_call = new getAwbForNumber_call(awbNumber, resultHandler, this, ___protocolFactory, ___transport);
802
      this.___currentMethod = method_call;
803
      ___manager.call(method_call);
804
    }
805
 
806
    public static class getAwbForNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
807
      private String awbNumber;
808
      public getAwbForNumber_call(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<getAwbForNumber_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 {
809
        super(client, protocolFactory, transport, resultHandler, false);
810
        this.awbNumber = awbNumber;
811
      }
812
 
813
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
814
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAwbForNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
815
        getAwbForNumber_args args = new getAwbForNumber_args();
816
        args.setAwbNumber(awbNumber);
817
        args.write(prot);
818
        prot.writeMessageEnd();
819
      }
820
 
821
      public Awb getResult() throws org.apache.thrift.TException {
822
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
823
          throw new IllegalStateException("Method call not finished!");
824
        }
825
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
826
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
827
        return (new Client(prot)).recv_getAwbForNumber();
828
      }
829
    }
830
 
3430 rajveer 831
  }
832
 
833
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
834
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
835
    public Processor(I iface) {
836
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
837
    }
838
 
839
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
840
      super(iface, getProcessMap(processMap));
841
    }
842
 
843
    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) {
844
      processMap.put("getProvider", new getProvider());
845
      processMap.put("getAllProviders", new getAllProviders());
846
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
847
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
848
      processMap.put("getEmptyAWB", new getEmptyAWB());
849
      processMap.put("getShipmentInfo", new getShipmentInfo());
850
      processMap.put("getDestinationCode", new getDestinationCode());
851
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
852
      processMap.put("getHolidays", new getHolidays());
853
      processMap.put("isCodAllowed", new isCodAllowed());
4386 anupam.sin 854
      processMap.put("getAwbForNumber", new getAwbForNumber());
3430 rajveer 855
      return processMap;
856
    }
857
 
858
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
859
      public getProvider() {
860
        super("getProvider");
861
      }
862
 
863
      protected getProvider_args getEmptyArgsInstance() {
864
        return new getProvider_args();
865
      }
866
 
867
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 868
        getProvider_result result = new getProvider_result();
869
        try {
3430 rajveer 870
          result.success = iface.getProvider(args.providerId);
668 chandransh 871
        } catch (LogisticsServiceException lse) {
872
          result.lse = lse;
873
        }
3430 rajveer 874
        return result;
668 chandransh 875
      }
876
    }
877
 
3430 rajveer 878
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
879
      public getAllProviders() {
880
        super("getAllProviders");
881
      }
882
 
883
      protected getAllProviders_args getEmptyArgsInstance() {
884
        return new getAllProviders_args();
885
      }
886
 
887
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 888
        getAllProviders_result result = new getAllProviders_result();
889
        try {
3430 rajveer 890
          result.success = iface.getAllProviders();
674 chandransh 891
        } catch (LogisticsServiceException lse) {
892
          result.lse = lse;
893
        }
3430 rajveer 894
        return result;
674 chandransh 895
      }
896
    }
897
 
3430 rajveer 898
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
899
      public getLogisticsEstimation() {
900
        super("getLogisticsEstimation");
901
      }
902
 
903
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
904
        return new getLogisticsEstimation_args();
905
      }
906
 
907
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 908
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 909
        try {
3430 rajveer 910
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin);
483 rajveer 911
        } catch (LogisticsServiceException se) {
912
          result.se = se;
913
        }
3430 rajveer 914
        return result;
483 rajveer 915
      }
916
    }
917
 
3430 rajveer 918
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
919
      public getLogisticsInfo() {
920
        super("getLogisticsInfo");
921
      }
922
 
923
      protected getLogisticsInfo_args getEmptyArgsInstance() {
924
        return new getLogisticsInfo_args();
925
      }
926
 
927
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 928
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 929
        try {
3430 rajveer 930
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
471 rajveer 931
        } catch (LogisticsServiceException se) {
932
          result.se = se;
933
        }
3430 rajveer 934
        return result;
471 rajveer 935
      }
936
    }
937
 
3430 rajveer 938
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
939
      public getEmptyAWB() {
940
        super("getEmptyAWB");
941
      }
942
 
943
      protected getEmptyAWB_args getEmptyArgsInstance() {
944
        return new getEmptyAWB_args();
945
      }
946
 
947
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 948
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 949
        try {
3430 rajveer 950
          result.success = iface.getEmptyAWB(args.providerId);
648 chandransh 951
        } catch (LogisticsServiceException se) {
952
          result.se = se;
953
        }
3430 rajveer 954
        return result;
412 ashish 955
      }
956
    }
957
 
3430 rajveer 958
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
959
      public getShipmentInfo() {
960
        super("getShipmentInfo");
961
      }
962
 
963
      protected getShipmentInfo_args getEmptyArgsInstance() {
964
        return new getShipmentInfo_args();
965
      }
966
 
967
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 968
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 969
        try {
3430 rajveer 970
          result.success = iface.getShipmentInfo(args.awb, args.providerId);
648 chandransh 971
        } catch (LogisticsServiceException se) {
972
          result.se = se;
973
        }
3430 rajveer 974
        return result;
412 ashish 975
      }
976
    }
977
 
3430 rajveer 978
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
979
      public getDestinationCode() {
980
        super("getDestinationCode");
981
      }
982
 
983
      protected getDestinationCode_args getEmptyArgsInstance() {
984
        return new getDestinationCode_args();
985
      }
986
 
987
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 988
        getDestinationCode_result result = new getDestinationCode_result();
989
        try {
3430 rajveer 990
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 991
        } catch (LogisticsServiceException se) {
992
          result.se = se;
993
        }
3430 rajveer 994
        return result;
730 chandransh 995
      }
996
    }
997
 
3430 rajveer 998
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
999
      public getFreeAwbCount() {
1000
        super("getFreeAwbCount");
1001
      }
1002
 
1003
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1004
        return new getFreeAwbCount_args();
1005
      }
1006
 
1007
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1008
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1009
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1010
        result.setSuccessIsSet(true);
3430 rajveer 1011
        return result;
1139 chandransh 1012
      }
1013
    }
1014
 
3430 rajveer 1015
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1016
      public getHolidays() {
1017
        super("getHolidays");
1018
      }
1019
 
1020
      protected getHolidays_args getEmptyArgsInstance() {
1021
        return new getHolidays_args();
1022
      }
1023
 
1024
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1025
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1026
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1027
        return result;
1730 ankur.sing 1028
      }
1029
    }
1030
 
3430 rajveer 1031
    private static class isCodAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isCodAllowed_args> {
1032
      public isCodAllowed() {
1033
        super("isCodAllowed");
1034
      }
1035
 
1036
      protected isCodAllowed_args getEmptyArgsInstance() {
1037
        return new isCodAllowed_args();
1038
      }
1039
 
1040
      protected isCodAllowed_result getResult(I iface, isCodAllowed_args args) throws org.apache.thrift.TException {
3061 chandransh 1041
        isCodAllowed_result result = new isCodAllowed_result();
3430 rajveer 1042
        result.success = iface.isCodAllowed(args.destination_pincode);
3061 chandransh 1043
        result.setSuccessIsSet(true);
3430 rajveer 1044
        return result;
3061 chandransh 1045
      }
1046
    }
1047
 
4386 anupam.sin 1048
    private static class getAwbForNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAwbForNumber_args> {
1049
      public getAwbForNumber() {
1050
        super("getAwbForNumber");
1051
      }
1052
 
1053
      protected getAwbForNumber_args getEmptyArgsInstance() {
1054
        return new getAwbForNumber_args();
1055
      }
1056
 
1057
      protected getAwbForNumber_result getResult(I iface, getAwbForNumber_args args) throws org.apache.thrift.TException {
1058
        getAwbForNumber_result result = new getAwbForNumber_result();
1059
        result.success = iface.getAwbForNumber(args.awbNumber);
1060
        return result;
1061
      }
1062
    }
1063
 
412 ashish 1064
  }
1065
 
3430 rajveer 1066
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1068
 
3430 rajveer 1069
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
668 chandransh 1070
 
3430 rajveer 1071
    private long providerId; // required
668 chandransh 1072
 
1073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1075
      PROVIDER_ID((short)1, "providerId");
1076
 
1077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1078
 
1079
      static {
1080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1081
          byName.put(field.getFieldName(), field);
1082
        }
1083
      }
1084
 
1085
      /**
1086
       * Find the _Fields constant that matches fieldId, or null if its not found.
1087
       */
1088
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1089
        switch(fieldId) {
1090
          case 1: // PROVIDER_ID
1091
            return PROVIDER_ID;
1092
          default:
1093
            return null;
1094
        }
668 chandransh 1095
      }
1096
 
1097
      /**
1098
       * Find the _Fields constant that matches fieldId, throwing an exception
1099
       * if it is not found.
1100
       */
1101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1102
        _Fields fields = findByThriftId(fieldId);
1103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1104
        return fields;
1105
      }
1106
 
1107
      /**
1108
       * Find the _Fields constant that matches name, or null if its not found.
1109
       */
1110
      public static _Fields findByName(String name) {
1111
        return byName.get(name);
1112
      }
1113
 
1114
      private final short _thriftId;
1115
      private final String _fieldName;
1116
 
1117
      _Fields(short thriftId, String fieldName) {
1118
        _thriftId = thriftId;
1119
        _fieldName = fieldName;
1120
      }
1121
 
1122
      public short getThriftFieldId() {
1123
        return _thriftId;
1124
      }
1125
 
1126
      public String getFieldName() {
1127
        return _fieldName;
1128
      }
1129
    }
1130
 
1131
    // isset id assignments
1132
    private static final int __PROVIDERID_ISSET_ID = 0;
1133
    private BitSet __isset_bit_vector = new BitSet(1);
1134
 
3430 rajveer 1135
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1136
    static {
3430 rajveer 1137
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1138
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1140
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1141
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 1142
    }
1143
 
1144
    public getProvider_args() {
1145
    }
1146
 
1147
    public getProvider_args(
1148
      long providerId)
1149
    {
1150
      this();
1151
      this.providerId = providerId;
1152
      setProviderIdIsSet(true);
1153
    }
1154
 
1155
    /**
1156
     * Performs a deep copy on <i>other</i>.
1157
     */
1158
    public getProvider_args(getProvider_args other) {
1159
      __isset_bit_vector.clear();
1160
      __isset_bit_vector.or(other.__isset_bit_vector);
1161
      this.providerId = other.providerId;
1162
    }
1163
 
1164
    public getProvider_args deepCopy() {
1165
      return new getProvider_args(this);
1166
    }
1167
 
3430 rajveer 1168
    @Override
1169
    public void clear() {
1170
      setProviderIdIsSet(false);
1171
      this.providerId = 0;
668 chandransh 1172
    }
1173
 
1174
    public long getProviderId() {
1175
      return this.providerId;
1176
    }
1177
 
3430 rajveer 1178
    public void setProviderId(long providerId) {
668 chandransh 1179
      this.providerId = providerId;
1180
      setProviderIdIsSet(true);
1181
    }
1182
 
1183
    public void unsetProviderId() {
1184
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1185
    }
1186
 
3430 rajveer 1187
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 1188
    public boolean isSetProviderId() {
1189
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1190
    }
1191
 
1192
    public void setProviderIdIsSet(boolean value) {
1193
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
1194
    }
1195
 
1196
    public void setFieldValue(_Fields field, Object value) {
1197
      switch (field) {
1198
      case PROVIDER_ID:
1199
        if (value == null) {
1200
          unsetProviderId();
1201
        } else {
1202
          setProviderId((Long)value);
1203
        }
1204
        break;
1205
 
1206
      }
1207
    }
1208
 
1209
    public Object getFieldValue(_Fields field) {
1210
      switch (field) {
1211
      case PROVIDER_ID:
3430 rajveer 1212
        return Long.valueOf(getProviderId());
668 chandransh 1213
 
1214
      }
1215
      throw new IllegalStateException();
1216
    }
1217
 
3430 rajveer 1218
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1219
    public boolean isSet(_Fields field) {
1220
      if (field == null) {
1221
        throw new IllegalArgumentException();
1222
      }
668 chandransh 1223
 
1224
      switch (field) {
1225
      case PROVIDER_ID:
1226
        return isSetProviderId();
1227
      }
1228
      throw new IllegalStateException();
1229
    }
1230
 
1231
    @Override
1232
    public boolean equals(Object that) {
1233
      if (that == null)
1234
        return false;
1235
      if (that instanceof getProvider_args)
1236
        return this.equals((getProvider_args)that);
1237
      return false;
1238
    }
1239
 
1240
    public boolean equals(getProvider_args that) {
1241
      if (that == null)
1242
        return false;
1243
 
1244
      boolean this_present_providerId = true;
1245
      boolean that_present_providerId = true;
1246
      if (this_present_providerId || that_present_providerId) {
1247
        if (!(this_present_providerId && that_present_providerId))
1248
          return false;
1249
        if (this.providerId != that.providerId)
1250
          return false;
1251
      }
1252
 
1253
      return true;
1254
    }
1255
 
1256
    @Override
1257
    public int hashCode() {
1258
      return 0;
1259
    }
1260
 
1261
    public int compareTo(getProvider_args other) {
1262
      if (!getClass().equals(other.getClass())) {
1263
        return getClass().getName().compareTo(other.getClass().getName());
1264
      }
1265
 
1266
      int lastComparison = 0;
1267
      getProvider_args typedOther = (getProvider_args)other;
1268
 
3430 rajveer 1269
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 1270
      if (lastComparison != 0) {
1271
        return lastComparison;
1272
      }
3430 rajveer 1273
      if (isSetProviderId()) {
1274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
1275
        if (lastComparison != 0) {
1276
          return lastComparison;
1277
        }
668 chandransh 1278
      }
1279
      return 0;
1280
    }
1281
 
3430 rajveer 1282
    public _Fields fieldForId(int fieldId) {
1283
      return _Fields.findByThriftId(fieldId);
1284
    }
1285
 
1286
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1287
      org.apache.thrift.protocol.TField field;
668 chandransh 1288
      iprot.readStructBegin();
1289
      while (true)
1290
      {
1291
        field = iprot.readFieldBegin();
3430 rajveer 1292
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1293
          break;
1294
        }
3430 rajveer 1295
        switch (field.id) {
1296
          case 1: // PROVIDER_ID
1297
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1298
              this.providerId = iprot.readI64();
1299
              setProviderIdIsSet(true);
1300
            } else { 
1301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1302
            }
1303
            break;
1304
          default:
1305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1306
        }
3430 rajveer 1307
        iprot.readFieldEnd();
668 chandransh 1308
      }
1309
      iprot.readStructEnd();
1310
      validate();
1311
    }
1312
 
3430 rajveer 1313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1314
      validate();
1315
 
1316
      oprot.writeStructBegin(STRUCT_DESC);
1317
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1318
      oprot.writeI64(this.providerId);
1319
      oprot.writeFieldEnd();
1320
      oprot.writeFieldStop();
1321
      oprot.writeStructEnd();
1322
    }
1323
 
1324
    @Override
1325
    public String toString() {
1326
      StringBuilder sb = new StringBuilder("getProvider_args(");
1327
      boolean first = true;
1328
 
1329
      sb.append("providerId:");
1330
      sb.append(this.providerId);
1331
      first = false;
1332
      sb.append(")");
1333
      return sb.toString();
1334
    }
1335
 
3430 rajveer 1336
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1337
      // check for required fields
1338
    }
1339
 
3430 rajveer 1340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1341
      try {
1342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1343
      } catch (org.apache.thrift.TException te) {
1344
        throw new java.io.IOException(te);
1345
      }
1346
    }
1347
 
1348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1349
      try {
1350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1351
      } catch (org.apache.thrift.TException te) {
1352
        throw new java.io.IOException(te);
1353
      }
1354
    }
1355
 
668 chandransh 1356
  }
1357
 
3430 rajveer 1358
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 1360
 
3430 rajveer 1361
    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);
1362
    private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
668 chandransh 1363
 
3430 rajveer 1364
    private Provider success; // required
1365
    private LogisticsServiceException lse; // required
668 chandransh 1366
 
1367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1369
      SUCCESS((short)0, "success"),
1370
      LSE((short)1, "lse");
1371
 
1372
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1373
 
1374
      static {
1375
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1376
          byName.put(field.getFieldName(), field);
1377
        }
1378
      }
1379
 
1380
      /**
1381
       * Find the _Fields constant that matches fieldId, or null if its not found.
1382
       */
1383
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1384
        switch(fieldId) {
1385
          case 0: // SUCCESS
1386
            return SUCCESS;
1387
          case 1: // LSE
1388
            return LSE;
1389
          default:
1390
            return null;
1391
        }
668 chandransh 1392
      }
1393
 
1394
      /**
1395
       * Find the _Fields constant that matches fieldId, throwing an exception
1396
       * if it is not found.
1397
       */
1398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1399
        _Fields fields = findByThriftId(fieldId);
1400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1401
        return fields;
1402
      }
1403
 
1404
      /**
1405
       * Find the _Fields constant that matches name, or null if its not found.
1406
       */
1407
      public static _Fields findByName(String name) {
1408
        return byName.get(name);
1409
      }
1410
 
1411
      private final short _thriftId;
1412
      private final String _fieldName;
1413
 
1414
      _Fields(short thriftId, String fieldName) {
1415
        _thriftId = thriftId;
1416
        _fieldName = fieldName;
1417
      }
1418
 
1419
      public short getThriftFieldId() {
1420
        return _thriftId;
1421
      }
1422
 
1423
      public String getFieldName() {
1424
        return _fieldName;
1425
      }
1426
    }
1427
 
1428
    // isset id assignments
1429
 
3430 rajveer 1430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1431
    static {
3430 rajveer 1432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1433
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1434
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
1435
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
1437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 1439
    }
1440
 
1441
    public getProvider_result() {
1442
    }
1443
 
1444
    public getProvider_result(
1445
      Provider success,
1446
      LogisticsServiceException lse)
1447
    {
1448
      this();
1449
      this.success = success;
1450
      this.lse = lse;
1451
    }
1452
 
1453
    /**
1454
     * Performs a deep copy on <i>other</i>.
1455
     */
1456
    public getProvider_result(getProvider_result other) {
1457
      if (other.isSetSuccess()) {
1458
        this.success = new Provider(other.success);
1459
      }
1460
      if (other.isSetLse()) {
1461
        this.lse = new LogisticsServiceException(other.lse);
1462
      }
1463
    }
1464
 
1465
    public getProvider_result deepCopy() {
1466
      return new getProvider_result(this);
1467
    }
1468
 
3430 rajveer 1469
    @Override
1470
    public void clear() {
1471
      this.success = null;
1472
      this.lse = null;
668 chandransh 1473
    }
1474
 
1475
    public Provider getSuccess() {
1476
      return this.success;
1477
    }
1478
 
3430 rajveer 1479
    public void setSuccess(Provider success) {
668 chandransh 1480
      this.success = success;
1481
    }
1482
 
1483
    public void unsetSuccess() {
1484
      this.success = null;
1485
    }
1486
 
3430 rajveer 1487
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 1488
    public boolean isSetSuccess() {
1489
      return this.success != null;
1490
    }
1491
 
1492
    public void setSuccessIsSet(boolean value) {
1493
      if (!value) {
1494
        this.success = null;
1495
      }
1496
    }
1497
 
1498
    public LogisticsServiceException getLse() {
1499
      return this.lse;
1500
    }
1501
 
3430 rajveer 1502
    public void setLse(LogisticsServiceException lse) {
668 chandransh 1503
      this.lse = lse;
1504
    }
1505
 
1506
    public void unsetLse() {
1507
      this.lse = null;
1508
    }
1509
 
3430 rajveer 1510
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 1511
    public boolean isSetLse() {
1512
      return this.lse != null;
1513
    }
1514
 
1515
    public void setLseIsSet(boolean value) {
1516
      if (!value) {
1517
        this.lse = null;
1518
      }
1519
    }
1520
 
1521
    public void setFieldValue(_Fields field, Object value) {
1522
      switch (field) {
1523
      case SUCCESS:
1524
        if (value == null) {
1525
          unsetSuccess();
1526
        } else {
1527
          setSuccess((Provider)value);
1528
        }
1529
        break;
1530
 
1531
      case LSE:
1532
        if (value == null) {
1533
          unsetLse();
1534
        } else {
1535
          setLse((LogisticsServiceException)value);
1536
        }
1537
        break;
1538
 
1539
      }
1540
    }
1541
 
1542
    public Object getFieldValue(_Fields field) {
1543
      switch (field) {
1544
      case SUCCESS:
1545
        return getSuccess();
1546
 
1547
      case LSE:
1548
        return getLse();
1549
 
1550
      }
1551
      throw new IllegalStateException();
1552
    }
1553
 
3430 rajveer 1554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1555
    public boolean isSet(_Fields field) {
1556
      if (field == null) {
1557
        throw new IllegalArgumentException();
1558
      }
668 chandransh 1559
 
1560
      switch (field) {
1561
      case SUCCESS:
1562
        return isSetSuccess();
1563
      case LSE:
1564
        return isSetLse();
1565
      }
1566
      throw new IllegalStateException();
1567
    }
1568
 
1569
    @Override
1570
    public boolean equals(Object that) {
1571
      if (that == null)
1572
        return false;
1573
      if (that instanceof getProvider_result)
1574
        return this.equals((getProvider_result)that);
1575
      return false;
1576
    }
1577
 
1578
    public boolean equals(getProvider_result that) {
1579
      if (that == null)
1580
        return false;
1581
 
1582
      boolean this_present_success = true && this.isSetSuccess();
1583
      boolean that_present_success = true && that.isSetSuccess();
1584
      if (this_present_success || that_present_success) {
1585
        if (!(this_present_success && that_present_success))
1586
          return false;
1587
        if (!this.success.equals(that.success))
1588
          return false;
1589
      }
1590
 
1591
      boolean this_present_lse = true && this.isSetLse();
1592
      boolean that_present_lse = true && that.isSetLse();
1593
      if (this_present_lse || that_present_lse) {
1594
        if (!(this_present_lse && that_present_lse))
1595
          return false;
1596
        if (!this.lse.equals(that.lse))
1597
          return false;
1598
      }
1599
 
1600
      return true;
1601
    }
1602
 
1603
    @Override
1604
    public int hashCode() {
1605
      return 0;
1606
    }
1607
 
3430 rajveer 1608
    public int compareTo(getProvider_result other) {
1609
      if (!getClass().equals(other.getClass())) {
1610
        return getClass().getName().compareTo(other.getClass().getName());
1611
      }
1612
 
1613
      int lastComparison = 0;
1614
      getProvider_result typedOther = (getProvider_result)other;
1615
 
1616
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1617
      if (lastComparison != 0) {
1618
        return lastComparison;
1619
      }
1620
      if (isSetSuccess()) {
1621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1622
        if (lastComparison != 0) {
1623
          return lastComparison;
1624
        }
1625
      }
1626
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
1627
      if (lastComparison != 0) {
1628
        return lastComparison;
1629
      }
1630
      if (isSetLse()) {
1631
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
1632
        if (lastComparison != 0) {
1633
          return lastComparison;
1634
        }
1635
      }
1636
      return 0;
1637
    }
1638
 
1639
    public _Fields fieldForId(int fieldId) {
1640
      return _Fields.findByThriftId(fieldId);
1641
    }
1642
 
1643
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1644
      org.apache.thrift.protocol.TField field;
668 chandransh 1645
      iprot.readStructBegin();
1646
      while (true)
1647
      {
1648
        field = iprot.readFieldBegin();
3430 rajveer 1649
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 1650
          break;
1651
        }
3430 rajveer 1652
        switch (field.id) {
1653
          case 0: // SUCCESS
1654
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1655
              this.success = new Provider();
1656
              this.success.read(iprot);
1657
            } else { 
1658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1659
            }
1660
            break;
1661
          case 1: // LSE
1662
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1663
              this.lse = new LogisticsServiceException();
1664
              this.lse.read(iprot);
1665
            } else { 
1666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1667
            }
1668
            break;
1669
          default:
1670
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 1671
        }
3430 rajveer 1672
        iprot.readFieldEnd();
668 chandransh 1673
      }
1674
      iprot.readStructEnd();
1675
      validate();
1676
    }
1677
 
3430 rajveer 1678
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 1679
      oprot.writeStructBegin(STRUCT_DESC);
1680
 
1681
      if (this.isSetSuccess()) {
1682
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1683
        this.success.write(oprot);
1684
        oprot.writeFieldEnd();
1685
      } else if (this.isSetLse()) {
1686
        oprot.writeFieldBegin(LSE_FIELD_DESC);
1687
        this.lse.write(oprot);
1688
        oprot.writeFieldEnd();
1689
      }
1690
      oprot.writeFieldStop();
1691
      oprot.writeStructEnd();
1692
    }
1693
 
1694
    @Override
1695
    public String toString() {
1696
      StringBuilder sb = new StringBuilder("getProvider_result(");
1697
      boolean first = true;
1698
 
1699
      sb.append("success:");
1700
      if (this.success == null) {
1701
        sb.append("null");
1702
      } else {
1703
        sb.append(this.success);
1704
      }
1705
      first = false;
1706
      if (!first) sb.append(", ");
1707
      sb.append("lse:");
1708
      if (this.lse == null) {
1709
        sb.append("null");
1710
      } else {
1711
        sb.append(this.lse);
1712
      }
1713
      first = false;
1714
      sb.append(")");
1715
      return sb.toString();
1716
    }
1717
 
3430 rajveer 1718
    public void validate() throws org.apache.thrift.TException {
668 chandransh 1719
      // check for required fields
1720
    }
1721
 
3430 rajveer 1722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1723
      try {
1724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1725
      } catch (org.apache.thrift.TException te) {
1726
        throw new java.io.IOException(te);
1727
      }
1728
    }
1729
 
1730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1731
      try {
1732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1733
      } catch (org.apache.thrift.TException te) {
1734
        throw new java.io.IOException(te);
1735
      }
1736
    }
1737
 
668 chandransh 1738
  }
1739
 
3430 rajveer 1740
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
1741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 1742
 
1743
 
1744
 
1745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 1747
;
1748
 
1749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1750
 
1751
      static {
1752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1753
          byName.put(field.getFieldName(), field);
1754
        }
1755
      }
1756
 
1757
      /**
1758
       * Find the _Fields constant that matches fieldId, or null if its not found.
1759
       */
1760
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1761
        switch(fieldId) {
1762
          default:
1763
            return null;
1764
        }
674 chandransh 1765
      }
1766
 
1767
      /**
1768
       * Find the _Fields constant that matches fieldId, throwing an exception
1769
       * if it is not found.
1770
       */
1771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1772
        _Fields fields = findByThriftId(fieldId);
1773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1774
        return fields;
1775
      }
1776
 
1777
      /**
1778
       * Find the _Fields constant that matches name, or null if its not found.
1779
       */
1780
      public static _Fields findByName(String name) {
1781
        return byName.get(name);
1782
      }
1783
 
1784
      private final short _thriftId;
1785
      private final String _fieldName;
1786
 
1787
      _Fields(short thriftId, String fieldName) {
1788
        _thriftId = thriftId;
1789
        _fieldName = fieldName;
1790
      }
1791
 
1792
      public short getThriftFieldId() {
1793
        return _thriftId;
1794
      }
1795
 
1796
      public String getFieldName() {
1797
        return _fieldName;
1798
      }
1799
    }
3430 rajveer 1800
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 1801
    static {
3430 rajveer 1802
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1803
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1804
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 1805
    }
1806
 
1807
    public getAllProviders_args() {
1808
    }
1809
 
1810
    /**
1811
     * Performs a deep copy on <i>other</i>.
1812
     */
1813
    public getAllProviders_args(getAllProviders_args other) {
1814
    }
1815
 
1816
    public getAllProviders_args deepCopy() {
1817
      return new getAllProviders_args(this);
1818
    }
1819
 
3430 rajveer 1820
    @Override
1821
    public void clear() {
674 chandransh 1822
    }
1823
 
1824
    public void setFieldValue(_Fields field, Object value) {
1825
      switch (field) {
1826
      }
1827
    }
1828
 
1829
    public Object getFieldValue(_Fields field) {
1830
      switch (field) {
1831
      }
1832
      throw new IllegalStateException();
1833
    }
1834
 
3430 rajveer 1835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1836
    public boolean isSet(_Fields field) {
1837
      if (field == null) {
1838
        throw new IllegalArgumentException();
1839
      }
674 chandransh 1840
 
1841
      switch (field) {
1842
      }
1843
      throw new IllegalStateException();
1844
    }
1845
 
1846
    @Override
1847
    public boolean equals(Object that) {
1848
      if (that == null)
1849
        return false;
1850
      if (that instanceof getAllProviders_args)
1851
        return this.equals((getAllProviders_args)that);
1852
      return false;
1853
    }
1854
 
1855
    public boolean equals(getAllProviders_args that) {
1856
      if (that == null)
1857
        return false;
1858
 
1859
      return true;
1860
    }
1861
 
1862
    @Override
1863
    public int hashCode() {
1864
      return 0;
1865
    }
1866
 
1867
    public int compareTo(getAllProviders_args other) {
1868
      if (!getClass().equals(other.getClass())) {
1869
        return getClass().getName().compareTo(other.getClass().getName());
1870
      }
1871
 
1872
      int lastComparison = 0;
1873
      getAllProviders_args typedOther = (getAllProviders_args)other;
1874
 
1875
      return 0;
1876
    }
1877
 
3430 rajveer 1878
    public _Fields fieldForId(int fieldId) {
1879
      return _Fields.findByThriftId(fieldId);
1880
    }
1881
 
1882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1883
      org.apache.thrift.protocol.TField field;
674 chandransh 1884
      iprot.readStructBegin();
1885
      while (true)
1886
      {
1887
        field = iprot.readFieldBegin();
3430 rajveer 1888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 1889
          break;
1890
        }
3430 rajveer 1891
        switch (field.id) {
1892
          default:
1893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 1894
        }
3430 rajveer 1895
        iprot.readFieldEnd();
674 chandransh 1896
      }
1897
      iprot.readStructEnd();
1898
      validate();
1899
    }
1900
 
3430 rajveer 1901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 1902
      validate();
1903
 
1904
      oprot.writeStructBegin(STRUCT_DESC);
1905
      oprot.writeFieldStop();
1906
      oprot.writeStructEnd();
1907
    }
1908
 
1909
    @Override
1910
    public String toString() {
1911
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
1912
      boolean first = true;
1913
 
1914
      sb.append(")");
1915
      return sb.toString();
1916
    }
1917
 
3430 rajveer 1918
    public void validate() throws org.apache.thrift.TException {
674 chandransh 1919
      // check for required fields
1920
    }
1921
 
3430 rajveer 1922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1923
      try {
1924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1925
      } catch (org.apache.thrift.TException te) {
1926
        throw new java.io.IOException(te);
1927
      }
1928
    }
1929
 
1930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1931
      try {
1932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1933
      } catch (org.apache.thrift.TException te) {
1934
        throw new java.io.IOException(te);
1935
      }
1936
    }
1937
 
674 chandransh 1938
  }
1939
 
3430 rajveer 1940
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
1941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 1942
 
3430 rajveer 1943
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
1944
    private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
674 chandransh 1945
 
3430 rajveer 1946
    private List<Provider> success; // required
1947
    private LogisticsServiceException lse; // required
674 chandransh 1948
 
1949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 1951
      SUCCESS((short)0, "success"),
1952
      LSE((short)1, "lse");
1953
 
1954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1955
 
1956
      static {
1957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1958
          byName.put(field.getFieldName(), field);
1959
        }
1960
      }
1961
 
1962
      /**
1963
       * Find the _Fields constant that matches fieldId, or null if its not found.
1964
       */
1965
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1966
        switch(fieldId) {
1967
          case 0: // SUCCESS
1968
            return SUCCESS;
1969
          case 1: // LSE
1970
            return LSE;
1971
          default:
1972
            return null;
1973
        }
674 chandransh 1974
      }
1975
 
1976
      /**
1977
       * Find the _Fields constant that matches fieldId, throwing an exception
1978
       * if it is not found.
1979
       */
1980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1981
        _Fields fields = findByThriftId(fieldId);
1982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1983
        return fields;
1984
      }
1985
 
1986
      /**
1987
       * Find the _Fields constant that matches name, or null if its not found.
1988
       */
1989
      public static _Fields findByName(String name) {
1990
        return byName.get(name);
1991
      }
1992
 
1993
      private final short _thriftId;
1994
      private final String _fieldName;
1995
 
1996
      _Fields(short thriftId, String fieldName) {
1997
        _thriftId = thriftId;
1998
        _fieldName = fieldName;
1999
      }
2000
 
2001
      public short getThriftFieldId() {
2002
        return _thriftId;
2003
      }
2004
 
2005
      public String getFieldName() {
2006
        return _fieldName;
2007
      }
2008
    }
2009
 
2010
    // isset id assignments
2011
 
3430 rajveer 2012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2013
    static {
3430 rajveer 2014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2015
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2016
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2017
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2018
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2020
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2021
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2022
    }
2023
 
2024
    public getAllProviders_result() {
2025
    }
2026
 
2027
    public getAllProviders_result(
2028
      List<Provider> success,
2029
      LogisticsServiceException lse)
2030
    {
2031
      this();
2032
      this.success = success;
2033
      this.lse = lse;
2034
    }
2035
 
2036
    /**
2037
     * Performs a deep copy on <i>other</i>.
2038
     */
2039
    public getAllProviders_result(getAllProviders_result other) {
2040
      if (other.isSetSuccess()) {
2041
        List<Provider> __this__success = new ArrayList<Provider>();
2042
        for (Provider other_element : other.success) {
2043
          __this__success.add(new Provider(other_element));
2044
        }
2045
        this.success = __this__success;
2046
      }
2047
      if (other.isSetLse()) {
2048
        this.lse = new LogisticsServiceException(other.lse);
2049
      }
2050
    }
2051
 
2052
    public getAllProviders_result deepCopy() {
2053
      return new getAllProviders_result(this);
2054
    }
2055
 
3430 rajveer 2056
    @Override
2057
    public void clear() {
2058
      this.success = null;
2059
      this.lse = null;
674 chandransh 2060
    }
2061
 
2062
    public int getSuccessSize() {
2063
      return (this.success == null) ? 0 : this.success.size();
2064
    }
2065
 
2066
    public java.util.Iterator<Provider> getSuccessIterator() {
2067
      return (this.success == null) ? null : this.success.iterator();
2068
    }
2069
 
2070
    public void addToSuccess(Provider elem) {
2071
      if (this.success == null) {
2072
        this.success = new ArrayList<Provider>();
2073
      }
2074
      this.success.add(elem);
2075
    }
2076
 
2077
    public List<Provider> getSuccess() {
2078
      return this.success;
2079
    }
2080
 
3430 rajveer 2081
    public void setSuccess(List<Provider> success) {
674 chandransh 2082
      this.success = success;
2083
    }
2084
 
2085
    public void unsetSuccess() {
2086
      this.success = null;
2087
    }
2088
 
3430 rajveer 2089
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2090
    public boolean isSetSuccess() {
2091
      return this.success != null;
2092
    }
2093
 
2094
    public void setSuccessIsSet(boolean value) {
2095
      if (!value) {
2096
        this.success = null;
2097
      }
2098
    }
2099
 
2100
    public LogisticsServiceException getLse() {
2101
      return this.lse;
2102
    }
2103
 
3430 rajveer 2104
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2105
      this.lse = lse;
2106
    }
2107
 
2108
    public void unsetLse() {
2109
      this.lse = null;
2110
    }
2111
 
3430 rajveer 2112
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2113
    public boolean isSetLse() {
2114
      return this.lse != null;
2115
    }
2116
 
2117
    public void setLseIsSet(boolean value) {
2118
      if (!value) {
2119
        this.lse = null;
2120
      }
2121
    }
2122
 
2123
    public void setFieldValue(_Fields field, Object value) {
2124
      switch (field) {
2125
      case SUCCESS:
2126
        if (value == null) {
2127
          unsetSuccess();
2128
        } else {
2129
          setSuccess((List<Provider>)value);
2130
        }
2131
        break;
2132
 
2133
      case LSE:
2134
        if (value == null) {
2135
          unsetLse();
2136
        } else {
2137
          setLse((LogisticsServiceException)value);
2138
        }
2139
        break;
2140
 
2141
      }
2142
    }
2143
 
2144
    public Object getFieldValue(_Fields field) {
2145
      switch (field) {
2146
      case SUCCESS:
2147
        return getSuccess();
2148
 
2149
      case LSE:
2150
        return getLse();
2151
 
2152
      }
2153
      throw new IllegalStateException();
2154
    }
2155
 
3430 rajveer 2156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2157
    public boolean isSet(_Fields field) {
2158
      if (field == null) {
2159
        throw new IllegalArgumentException();
2160
      }
674 chandransh 2161
 
2162
      switch (field) {
2163
      case SUCCESS:
2164
        return isSetSuccess();
2165
      case LSE:
2166
        return isSetLse();
2167
      }
2168
      throw new IllegalStateException();
2169
    }
2170
 
2171
    @Override
2172
    public boolean equals(Object that) {
2173
      if (that == null)
2174
        return false;
2175
      if (that instanceof getAllProviders_result)
2176
        return this.equals((getAllProviders_result)that);
2177
      return false;
2178
    }
2179
 
2180
    public boolean equals(getAllProviders_result that) {
2181
      if (that == null)
2182
        return false;
2183
 
2184
      boolean this_present_success = true && this.isSetSuccess();
2185
      boolean that_present_success = true && that.isSetSuccess();
2186
      if (this_present_success || that_present_success) {
2187
        if (!(this_present_success && that_present_success))
2188
          return false;
2189
        if (!this.success.equals(that.success))
2190
          return false;
2191
      }
2192
 
2193
      boolean this_present_lse = true && this.isSetLse();
2194
      boolean that_present_lse = true && that.isSetLse();
2195
      if (this_present_lse || that_present_lse) {
2196
        if (!(this_present_lse && that_present_lse))
2197
          return false;
2198
        if (!this.lse.equals(that.lse))
2199
          return false;
2200
      }
2201
 
2202
      return true;
2203
    }
2204
 
2205
    @Override
2206
    public int hashCode() {
2207
      return 0;
2208
    }
2209
 
3430 rajveer 2210
    public int compareTo(getAllProviders_result other) {
2211
      if (!getClass().equals(other.getClass())) {
2212
        return getClass().getName().compareTo(other.getClass().getName());
2213
      }
2214
 
2215
      int lastComparison = 0;
2216
      getAllProviders_result typedOther = (getAllProviders_result)other;
2217
 
2218
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2219
      if (lastComparison != 0) {
2220
        return lastComparison;
2221
      }
2222
      if (isSetSuccess()) {
2223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2224
        if (lastComparison != 0) {
2225
          return lastComparison;
2226
        }
2227
      }
2228
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2229
      if (lastComparison != 0) {
2230
        return lastComparison;
2231
      }
2232
      if (isSetLse()) {
2233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2234
        if (lastComparison != 0) {
2235
          return lastComparison;
2236
        }
2237
      }
2238
      return 0;
2239
    }
2240
 
2241
    public _Fields fieldForId(int fieldId) {
2242
      return _Fields.findByThriftId(fieldId);
2243
    }
2244
 
2245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2246
      org.apache.thrift.protocol.TField field;
674 chandransh 2247
      iprot.readStructBegin();
2248
      while (true)
2249
      {
2250
        field = iprot.readFieldBegin();
3430 rajveer 2251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2252
          break;
2253
        }
3430 rajveer 2254
        switch (field.id) {
2255
          case 0: // SUCCESS
2256
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2257
              {
2258
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
2259
                this.success = new ArrayList<Provider>(_list5.size);
2260
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
674 chandransh 2261
                {
3430 rajveer 2262
                  Provider _elem7; // required
2263
                  _elem7 = new Provider();
2264
                  _elem7.read(iprot);
2265
                  this.success.add(_elem7);
674 chandransh 2266
                }
3430 rajveer 2267
                iprot.readListEnd();
674 chandransh 2268
              }
3430 rajveer 2269
            } else { 
2270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2271
            }
2272
            break;
2273
          case 1: // LSE
2274
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2275
              this.lse = new LogisticsServiceException();
2276
              this.lse.read(iprot);
2277
            } else { 
2278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2279
            }
2280
            break;
2281
          default:
2282
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2283
        }
3430 rajveer 2284
        iprot.readFieldEnd();
674 chandransh 2285
      }
2286
      iprot.readStructEnd();
2287
      validate();
2288
    }
2289
 
3430 rajveer 2290
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2291
      oprot.writeStructBegin(STRUCT_DESC);
2292
 
2293
      if (this.isSetSuccess()) {
2294
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2295
        {
3430 rajveer 2296
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 2297
          for (Provider _iter8 : this.success)
674 chandransh 2298
          {
3044 chandransh 2299
            _iter8.write(oprot);
674 chandransh 2300
          }
2301
          oprot.writeListEnd();
2302
        }
2303
        oprot.writeFieldEnd();
2304
      } else if (this.isSetLse()) {
2305
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2306
        this.lse.write(oprot);
2307
        oprot.writeFieldEnd();
2308
      }
2309
      oprot.writeFieldStop();
2310
      oprot.writeStructEnd();
2311
    }
2312
 
2313
    @Override
2314
    public String toString() {
2315
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
2316
      boolean first = true;
2317
 
2318
      sb.append("success:");
2319
      if (this.success == null) {
2320
        sb.append("null");
2321
      } else {
2322
        sb.append(this.success);
2323
      }
2324
      first = false;
2325
      if (!first) sb.append(", ");
2326
      sb.append("lse:");
2327
      if (this.lse == null) {
2328
        sb.append("null");
2329
      } else {
2330
        sb.append(this.lse);
2331
      }
2332
      first = false;
2333
      sb.append(")");
2334
      return sb.toString();
2335
    }
2336
 
3430 rajveer 2337
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2338
      // check for required fields
2339
    }
2340
 
3430 rajveer 2341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2342
      try {
2343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2344
      } catch (org.apache.thrift.TException te) {
2345
        throw new java.io.IOException(te);
2346
      }
2347
    }
2348
 
2349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2350
      try {
2351
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2352
      } catch (org.apache.thrift.TException te) {
2353
        throw new java.io.IOException(te);
2354
      }
2355
    }
2356
 
674 chandransh 2357
  }
2358
 
3430 rajveer 2359
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
2360
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 2361
 
3430 rajveer 2362
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
2363
    private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
471 rajveer 2364
 
3430 rajveer 2365
    private long itemId; // required
2366
    private String destination_pin; // required
471 rajveer 2367
 
2368
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2369
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2370
      ITEM_ID((short)1, "itemId"),
648 chandransh 2371
      DESTINATION_PIN((short)2, "destination_pin");
471 rajveer 2372
 
2373
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2374
 
2375
      static {
2376
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2377
          byName.put(field.getFieldName(), field);
2378
        }
2379
      }
2380
 
2381
      /**
2382
       * Find the _Fields constant that matches fieldId, or null if its not found.
2383
       */
2384
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2385
        switch(fieldId) {
2386
          case 1: // ITEM_ID
2387
            return ITEM_ID;
2388
          case 2: // DESTINATION_PIN
2389
            return DESTINATION_PIN;
2390
          default:
2391
            return null;
2392
        }
471 rajveer 2393
      }
2394
 
2395
      /**
2396
       * Find the _Fields constant that matches fieldId, throwing an exception
2397
       * if it is not found.
2398
       */
2399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2400
        _Fields fields = findByThriftId(fieldId);
2401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2402
        return fields;
2403
      }
2404
 
2405
      /**
2406
       * Find the _Fields constant that matches name, or null if its not found.
2407
       */
2408
      public static _Fields findByName(String name) {
2409
        return byName.get(name);
2410
      }
2411
 
2412
      private final short _thriftId;
2413
      private final String _fieldName;
2414
 
2415
      _Fields(short thriftId, String fieldName) {
2416
        _thriftId = thriftId;
2417
        _fieldName = fieldName;
2418
      }
2419
 
2420
      public short getThriftFieldId() {
2421
        return _thriftId;
2422
      }
2423
 
2424
      public String getFieldName() {
2425
        return _fieldName;
2426
      }
2427
    }
2428
 
2429
    // isset id assignments
2430
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 2431
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 2432
 
3430 rajveer 2433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2434
    static {
3430 rajveer 2435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2436
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2438
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2440
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2441
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 2442
    }
2443
 
2444
    public getLogisticsEstimation_args() {
2445
    }
2446
 
2447
    public getLogisticsEstimation_args(
2448
      long itemId,
648 chandransh 2449
      String destination_pin)
471 rajveer 2450
    {
2451
      this();
2452
      this.itemId = itemId;
2453
      setItemIdIsSet(true);
2454
      this.destination_pin = destination_pin;
2455
    }
2456
 
2457
    /**
2458
     * Performs a deep copy on <i>other</i>.
2459
     */
2460
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
2461
      __isset_bit_vector.clear();
2462
      __isset_bit_vector.or(other.__isset_bit_vector);
2463
      this.itemId = other.itemId;
2464
      if (other.isSetDestination_pin()) {
2465
        this.destination_pin = other.destination_pin;
2466
      }
2467
    }
2468
 
2469
    public getLogisticsEstimation_args deepCopy() {
2470
      return new getLogisticsEstimation_args(this);
2471
    }
2472
 
3430 rajveer 2473
    @Override
2474
    public void clear() {
2475
      setItemIdIsSet(false);
2476
      this.itemId = 0;
2477
      this.destination_pin = null;
471 rajveer 2478
    }
2479
 
2480
    public long getItemId() {
2481
      return this.itemId;
2482
    }
2483
 
3430 rajveer 2484
    public void setItemId(long itemId) {
471 rajveer 2485
      this.itemId = itemId;
2486
      setItemIdIsSet(true);
2487
    }
2488
 
2489
    public void unsetItemId() {
2490
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2491
    }
2492
 
3430 rajveer 2493
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 2494
    public boolean isSetItemId() {
2495
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2496
    }
2497
 
2498
    public void setItemIdIsSet(boolean value) {
2499
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2500
    }
2501
 
2502
    public String getDestination_pin() {
2503
      return this.destination_pin;
2504
    }
2505
 
3430 rajveer 2506
    public void setDestination_pin(String destination_pin) {
471 rajveer 2507
      this.destination_pin = destination_pin;
2508
    }
2509
 
2510
    public void unsetDestination_pin() {
2511
      this.destination_pin = null;
2512
    }
2513
 
3430 rajveer 2514
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 2515
    public boolean isSetDestination_pin() {
2516
      return this.destination_pin != null;
2517
    }
2518
 
2519
    public void setDestination_pinIsSet(boolean value) {
2520
      if (!value) {
2521
        this.destination_pin = null;
2522
      }
2523
    }
2524
 
2525
    public void setFieldValue(_Fields field, Object value) {
2526
      switch (field) {
2527
      case ITEM_ID:
2528
        if (value == null) {
2529
          unsetItemId();
2530
        } else {
2531
          setItemId((Long)value);
2532
        }
2533
        break;
2534
 
2535
      case DESTINATION_PIN:
2536
        if (value == null) {
2537
          unsetDestination_pin();
2538
        } else {
2539
          setDestination_pin((String)value);
2540
        }
2541
        break;
2542
 
2543
      }
2544
    }
2545
 
2546
    public Object getFieldValue(_Fields field) {
2547
      switch (field) {
2548
      case ITEM_ID:
3430 rajveer 2549
        return Long.valueOf(getItemId());
471 rajveer 2550
 
2551
      case DESTINATION_PIN:
2552
        return getDestination_pin();
2553
 
2554
      }
2555
      throw new IllegalStateException();
2556
    }
2557
 
3430 rajveer 2558
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2559
    public boolean isSet(_Fields field) {
2560
      if (field == null) {
2561
        throw new IllegalArgumentException();
2562
      }
471 rajveer 2563
 
2564
      switch (field) {
2565
      case ITEM_ID:
2566
        return isSetItemId();
2567
      case DESTINATION_PIN:
2568
        return isSetDestination_pin();
2569
      }
2570
      throw new IllegalStateException();
2571
    }
2572
 
2573
    @Override
2574
    public boolean equals(Object that) {
2575
      if (that == null)
2576
        return false;
2577
      if (that instanceof getLogisticsEstimation_args)
2578
        return this.equals((getLogisticsEstimation_args)that);
2579
      return false;
2580
    }
2581
 
2582
    public boolean equals(getLogisticsEstimation_args that) {
2583
      if (that == null)
2584
        return false;
2585
 
2586
      boolean this_present_itemId = true;
2587
      boolean that_present_itemId = true;
2588
      if (this_present_itemId || that_present_itemId) {
2589
        if (!(this_present_itemId && that_present_itemId))
2590
          return false;
2591
        if (this.itemId != that.itemId)
2592
          return false;
2593
      }
2594
 
2595
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
2596
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
2597
      if (this_present_destination_pin || that_present_destination_pin) {
2598
        if (!(this_present_destination_pin && that_present_destination_pin))
2599
          return false;
2600
        if (!this.destination_pin.equals(that.destination_pin))
2601
          return false;
2602
      }
2603
 
2604
      return true;
2605
    }
2606
 
2607
    @Override
2608
    public int hashCode() {
2609
      return 0;
2610
    }
2611
 
2612
    public int compareTo(getLogisticsEstimation_args other) {
2613
      if (!getClass().equals(other.getClass())) {
2614
        return getClass().getName().compareTo(other.getClass().getName());
2615
      }
2616
 
2617
      int lastComparison = 0;
2618
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
2619
 
3430 rajveer 2620
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 2621
      if (lastComparison != 0) {
2622
        return lastComparison;
2623
      }
3430 rajveer 2624
      if (isSetItemId()) {
2625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2626
        if (lastComparison != 0) {
2627
          return lastComparison;
2628
        }
471 rajveer 2629
      }
3430 rajveer 2630
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 2631
      if (lastComparison != 0) {
2632
        return lastComparison;
2633
      }
3430 rajveer 2634
      if (isSetDestination_pin()) {
2635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
2636
        if (lastComparison != 0) {
2637
          return lastComparison;
2638
        }
471 rajveer 2639
      }
2640
      return 0;
2641
    }
2642
 
3430 rajveer 2643
    public _Fields fieldForId(int fieldId) {
2644
      return _Fields.findByThriftId(fieldId);
2645
    }
2646
 
2647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2648
      org.apache.thrift.protocol.TField field;
471 rajveer 2649
      iprot.readStructBegin();
2650
      while (true)
2651
      {
2652
        field = iprot.readFieldBegin();
3430 rajveer 2653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 2654
          break;
2655
        }
3430 rajveer 2656
        switch (field.id) {
2657
          case 1: // ITEM_ID
2658
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2659
              this.itemId = iprot.readI64();
2660
              setItemIdIsSet(true);
2661
            } else { 
2662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2663
            }
2664
            break;
2665
          case 2: // DESTINATION_PIN
2666
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2667
              this.destination_pin = iprot.readString();
2668
            } else { 
2669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2670
            }
2671
            break;
2672
          default:
2673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 2674
        }
3430 rajveer 2675
        iprot.readFieldEnd();
471 rajveer 2676
      }
2677
      iprot.readStructEnd();
2678
      validate();
2679
    }
2680
 
3430 rajveer 2681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 2682
      validate();
2683
 
2684
      oprot.writeStructBegin(STRUCT_DESC);
2685
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2686
      oprot.writeI64(this.itemId);
2687
      oprot.writeFieldEnd();
2688
      if (this.destination_pin != null) {
2689
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
2690
        oprot.writeString(this.destination_pin);
2691
        oprot.writeFieldEnd();
2692
      }
2693
      oprot.writeFieldStop();
2694
      oprot.writeStructEnd();
2695
    }
2696
 
2697
    @Override
2698
    public String toString() {
2699
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
2700
      boolean first = true;
2701
 
2702
      sb.append("itemId:");
2703
      sb.append(this.itemId);
2704
      first = false;
2705
      if (!first) sb.append(", ");
2706
      sb.append("destination_pin:");
2707
      if (this.destination_pin == null) {
2708
        sb.append("null");
2709
      } else {
2710
        sb.append(this.destination_pin);
2711
      }
2712
      first = false;
2713
      sb.append(")");
2714
      return sb.toString();
2715
    }
2716
 
3430 rajveer 2717
    public void validate() throws org.apache.thrift.TException {
471 rajveer 2718
      // check for required fields
2719
    }
2720
 
3430 rajveer 2721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2722
      try {
2723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2724
      } catch (org.apache.thrift.TException te) {
2725
        throw new java.io.IOException(te);
2726
      }
2727
    }
2728
 
2729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2730
      try {
2731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2732
      } catch (org.apache.thrift.TException te) {
2733
        throw new java.io.IOException(te);
2734
      }
2735
    }
2736
 
471 rajveer 2737
  }
2738
 
3430 rajveer 2739
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
2740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 2741
 
3430 rajveer 2742
    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);
2743
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
471 rajveer 2744
 
3430 rajveer 2745
    private LogisticsInfo success; // required
2746
    private LogisticsServiceException se; // required
471 rajveer 2747
 
2748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 2750
      SUCCESS((short)0, "success"),
2751
      SE((short)1, "se");
2752
 
2753
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2754
 
2755
      static {
2756
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2757
          byName.put(field.getFieldName(), field);
2758
        }
2759
      }
2760
 
2761
      /**
2762
       * Find the _Fields constant that matches fieldId, or null if its not found.
2763
       */
2764
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2765
        switch(fieldId) {
2766
          case 0: // SUCCESS
2767
            return SUCCESS;
2768
          case 1: // SE
2769
            return SE;
2770
          default:
2771
            return null;
2772
        }
471 rajveer 2773
      }
2774
 
2775
      /**
2776
       * Find the _Fields constant that matches fieldId, throwing an exception
2777
       * if it is not found.
2778
       */
2779
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2780
        _Fields fields = findByThriftId(fieldId);
2781
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2782
        return fields;
2783
      }
2784
 
2785
      /**
2786
       * Find the _Fields constant that matches name, or null if its not found.
2787
       */
2788
      public static _Fields findByName(String name) {
2789
        return byName.get(name);
2790
      }
2791
 
2792
      private final short _thriftId;
2793
      private final String _fieldName;
2794
 
2795
      _Fields(short thriftId, String fieldName) {
2796
        _thriftId = thriftId;
2797
        _fieldName = fieldName;
2798
      }
2799
 
2800
      public short getThriftFieldId() {
2801
        return _thriftId;
2802
      }
2803
 
2804
      public String getFieldName() {
2805
        return _fieldName;
2806
      }
2807
    }
2808
 
2809
    // isset id assignments
2810
 
3430 rajveer 2811
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 2812
    static {
3430 rajveer 2813
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2814
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2815
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
2816
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2817
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 2820
    }
2821
 
2822
    public getLogisticsEstimation_result() {
2823
    }
2824
 
2825
    public getLogisticsEstimation_result(
648 chandransh 2826
      LogisticsInfo success,
471 rajveer 2827
      LogisticsServiceException se)
2828
    {
2829
      this();
2830
      this.success = success;
2831
      this.se = se;
2832
    }
2833
 
2834
    /**
2835
     * Performs a deep copy on <i>other</i>.
2836
     */
2837
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
2838
      if (other.isSetSuccess()) {
648 chandransh 2839
        this.success = new LogisticsInfo(other.success);
471 rajveer 2840
      }
2841
      if (other.isSetSe()) {
2842
        this.se = new LogisticsServiceException(other.se);
2843
      }
2844
    }
2845
 
2846
    public getLogisticsEstimation_result deepCopy() {
2847
      return new getLogisticsEstimation_result(this);
2848
    }
2849
 
3430 rajveer 2850
    @Override
2851
    public void clear() {
2852
      this.success = null;
2853
      this.se = null;
471 rajveer 2854
    }
2855
 
648 chandransh 2856
    public LogisticsInfo getSuccess() {
471 rajveer 2857
      return this.success;
2858
    }
2859
 
3430 rajveer 2860
    public void setSuccess(LogisticsInfo success) {
471 rajveer 2861
      this.success = success;
2862
    }
2863
 
2864
    public void unsetSuccess() {
2865
      this.success = null;
2866
    }
2867
 
3430 rajveer 2868
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 2869
    public boolean isSetSuccess() {
2870
      return this.success != null;
2871
    }
2872
 
2873
    public void setSuccessIsSet(boolean value) {
2874
      if (!value) {
2875
        this.success = null;
2876
      }
2877
    }
2878
 
2879
    public LogisticsServiceException getSe() {
2880
      return this.se;
2881
    }
2882
 
3430 rajveer 2883
    public void setSe(LogisticsServiceException se) {
471 rajveer 2884
      this.se = se;
2885
    }
2886
 
2887
    public void unsetSe() {
2888
      this.se = null;
2889
    }
2890
 
3430 rajveer 2891
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 2892
    public boolean isSetSe() {
2893
      return this.se != null;
2894
    }
2895
 
2896
    public void setSeIsSet(boolean value) {
2897
      if (!value) {
2898
        this.se = null;
2899
      }
2900
    }
2901
 
2902
    public void setFieldValue(_Fields field, Object value) {
2903
      switch (field) {
2904
      case SUCCESS:
2905
        if (value == null) {
2906
          unsetSuccess();
2907
        } else {
648 chandransh 2908
          setSuccess((LogisticsInfo)value);
471 rajveer 2909
        }
2910
        break;
2911
 
2912
      case SE:
2913
        if (value == null) {
2914
          unsetSe();
2915
        } else {
2916
          setSe((LogisticsServiceException)value);
2917
        }
2918
        break;
2919
 
2920
      }
2921
    }
2922
 
2923
    public Object getFieldValue(_Fields field) {
2924
      switch (field) {
2925
      case SUCCESS:
2926
        return getSuccess();
2927
 
2928
      case SE:
2929
        return getSe();
2930
 
2931
      }
2932
      throw new IllegalStateException();
2933
    }
2934
 
3430 rajveer 2935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2936
    public boolean isSet(_Fields field) {
2937
      if (field == null) {
2938
        throw new IllegalArgumentException();
2939
      }
471 rajveer 2940
 
2941
      switch (field) {
2942
      case SUCCESS:
2943
        return isSetSuccess();
2944
      case SE:
2945
        return isSetSe();
2946
      }
2947
      throw new IllegalStateException();
2948
    }
2949
 
2950
    @Override
2951
    public boolean equals(Object that) {
2952
      if (that == null)
2953
        return false;
2954
      if (that instanceof getLogisticsEstimation_result)
2955
        return this.equals((getLogisticsEstimation_result)that);
2956
      return false;
2957
    }
2958
 
2959
    public boolean equals(getLogisticsEstimation_result that) {
2960
      if (that == null)
2961
        return false;
2962
 
2963
      boolean this_present_success = true && this.isSetSuccess();
2964
      boolean that_present_success = true && that.isSetSuccess();
2965
      if (this_present_success || that_present_success) {
2966
        if (!(this_present_success && that_present_success))
2967
          return false;
2968
        if (!this.success.equals(that.success))
2969
          return false;
2970
      }
2971
 
2972
      boolean this_present_se = true && this.isSetSe();
2973
      boolean that_present_se = true && that.isSetSe();
2974
      if (this_present_se || that_present_se) {
2975
        if (!(this_present_se && that_present_se))
2976
          return false;
2977
        if (!this.se.equals(that.se))
2978
          return false;
2979
      }
2980
 
2981
      return true;
2982
    }
2983
 
2984
    @Override
2985
    public int hashCode() {
2986
      return 0;
2987
    }
2988
 
2989
    public int compareTo(getLogisticsEstimation_result other) {
2990
      if (!getClass().equals(other.getClass())) {
2991
        return getClass().getName().compareTo(other.getClass().getName());
2992
      }
2993
 
2994
      int lastComparison = 0;
2995
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
2996
 
3430 rajveer 2997
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 2998
      if (lastComparison != 0) {
2999
        return lastComparison;
3000
      }
3430 rajveer 3001
      if (isSetSuccess()) {
3002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3003
        if (lastComparison != 0) {
3004
          return lastComparison;
3005
        }
471 rajveer 3006
      }
3430 rajveer 3007
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3008
      if (lastComparison != 0) {
3009
        return lastComparison;
3010
      }
3430 rajveer 3011
      if (isSetSe()) {
3012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3013
        if (lastComparison != 0) {
3014
          return lastComparison;
3015
        }
471 rajveer 3016
      }
3017
      return 0;
3018
    }
3019
 
3430 rajveer 3020
    public _Fields fieldForId(int fieldId) {
3021
      return _Fields.findByThriftId(fieldId);
3022
    }
3023
 
3024
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3025
      org.apache.thrift.protocol.TField field;
471 rajveer 3026
      iprot.readStructBegin();
3027
      while (true)
3028
      {
3029
        field = iprot.readFieldBegin();
3430 rajveer 3030
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3031
          break;
3032
        }
3430 rajveer 3033
        switch (field.id) {
3034
          case 0: // SUCCESS
3035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3036
              this.success = new LogisticsInfo();
3037
              this.success.read(iprot);
3038
            } else { 
3039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3040
            }
3041
            break;
3042
          case 1: // SE
3043
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3044
              this.se = new LogisticsServiceException();
3045
              this.se.read(iprot);
3046
            } else { 
3047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3048
            }
3049
            break;
3050
          default:
3051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3052
        }
3430 rajveer 3053
        iprot.readFieldEnd();
471 rajveer 3054
      }
3055
      iprot.readStructEnd();
3056
      validate();
3057
    }
3058
 
3430 rajveer 3059
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3060
      oprot.writeStructBegin(STRUCT_DESC);
3061
 
3062
      if (this.isSetSuccess()) {
3063
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3064
        this.success.write(oprot);
3065
        oprot.writeFieldEnd();
3066
      } else if (this.isSetSe()) {
3067
        oprot.writeFieldBegin(SE_FIELD_DESC);
3068
        this.se.write(oprot);
3069
        oprot.writeFieldEnd();
3070
      }
3071
      oprot.writeFieldStop();
3072
      oprot.writeStructEnd();
3073
    }
3074
 
3075
    @Override
3076
    public String toString() {
3077
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
3078
      boolean first = true;
3079
 
3080
      sb.append("success:");
3081
      if (this.success == null) {
3082
        sb.append("null");
3083
      } else {
3084
        sb.append(this.success);
3085
      }
3086
      first = false;
3087
      if (!first) sb.append(", ");
3088
      sb.append("se:");
3089
      if (this.se == null) {
3090
        sb.append("null");
3091
      } else {
3092
        sb.append(this.se);
3093
      }
3094
      first = false;
3095
      sb.append(")");
3096
      return sb.toString();
3097
    }
3098
 
3430 rajveer 3099
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3100
      // check for required fields
3101
    }
3102
 
3430 rajveer 3103
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3104
      try {
3105
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3106
      } catch (org.apache.thrift.TException te) {
3107
        throw new java.io.IOException(te);
3108
      }
3109
    }
3110
 
3111
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3112
      try {
3113
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3114
      } catch (org.apache.thrift.TException te) {
3115
        throw new java.io.IOException(te);
3116
      }
3117
    }
3118
 
471 rajveer 3119
  }
3120
 
3430 rajveer 3121
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
3122
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 3123
 
3430 rajveer 3124
    private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
3125
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
3126
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
471 rajveer 3127
 
3430 rajveer 3128
    private String destination_pincode; // required
3129
    private long item_id; // required
3130
    private DeliveryType type; // required
471 rajveer 3131
 
3132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3134
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 3135
      ITEM_ID((short)2, "item_id"),
3136
      /**
3137
       * 
3138
       * @see DeliveryType
3139
       */
3140
      TYPE((short)3, "type");
471 rajveer 3141
 
3142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3143
 
3144
      static {
3145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3146
          byName.put(field.getFieldName(), field);
3147
        }
3148
      }
3149
 
3150
      /**
3151
       * Find the _Fields constant that matches fieldId, or null if its not found.
3152
       */
3153
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3154
        switch(fieldId) {
3155
          case 1: // DESTINATION_PINCODE
3156
            return DESTINATION_PINCODE;
3157
          case 2: // ITEM_ID
3158
            return ITEM_ID;
3159
          case 3: // TYPE
3160
            return TYPE;
3161
          default:
3162
            return null;
3163
        }
471 rajveer 3164
      }
3165
 
3166
      /**
3167
       * Find the _Fields constant that matches fieldId, throwing an exception
3168
       * if it is not found.
3169
       */
3170
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3171
        _Fields fields = findByThriftId(fieldId);
3172
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3173
        return fields;
3174
      }
3175
 
3176
      /**
3177
       * Find the _Fields constant that matches name, or null if its not found.
3178
       */
3179
      public static _Fields findByName(String name) {
3180
        return byName.get(name);
3181
      }
3182
 
3183
      private final short _thriftId;
3184
      private final String _fieldName;
3185
 
3186
      _Fields(short thriftId, String fieldName) {
3187
        _thriftId = thriftId;
3188
        _fieldName = fieldName;
3189
      }
3190
 
3191
      public short getThriftFieldId() {
3192
        return _thriftId;
3193
      }
3194
 
3195
      public String getFieldName() {
3196
        return _fieldName;
3197
      }
3198
    }
3199
 
3200
    // isset id assignments
715 rajveer 3201
    private static final int __ITEM_ID_ISSET_ID = 0;
3202
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3203
 
3430 rajveer 3204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 3205
    static {
3430 rajveer 3206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3207
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3209
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3211
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3212
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 3215
    }
3216
 
648 chandransh 3217
    public getLogisticsInfo_args() {
477 rajveer 3218
    }
3219
 
648 chandransh 3220
    public getLogisticsInfo_args(
3221
      String destination_pincode,
3044 chandransh 3222
      long item_id,
3223
      DeliveryType type)
477 rajveer 3224
    {
3225
      this();
648 chandransh 3226
      this.destination_pincode = destination_pincode;
3227
      this.item_id = item_id;
715 rajveer 3228
      setItem_idIsSet(true);
3044 chandransh 3229
      this.type = type;
477 rajveer 3230
    }
3231
 
3232
    /**
3233
     * Performs a deep copy on <i>other</i>.
3234
     */
648 chandransh 3235
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 3236
      __isset_bit_vector.clear();
3237
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 3238
      if (other.isSetDestination_pincode()) {
3239
        this.destination_pincode = other.destination_pincode;
477 rajveer 3240
      }
715 rajveer 3241
      this.item_id = other.item_id;
3044 chandransh 3242
      if (other.isSetType()) {
3243
        this.type = other.type;
3244
      }
477 rajveer 3245
    }
3246
 
648 chandransh 3247
    public getLogisticsInfo_args deepCopy() {
3248
      return new getLogisticsInfo_args(this);
477 rajveer 3249
    }
3250
 
3430 rajveer 3251
    @Override
3252
    public void clear() {
3253
      this.destination_pincode = null;
3254
      setItem_idIsSet(false);
3255
      this.item_id = 0;
3256
      this.type = null;
477 rajveer 3257
    }
3258
 
648 chandransh 3259
    public String getDestination_pincode() {
3260
      return this.destination_pincode;
477 rajveer 3261
    }
3262
 
3430 rajveer 3263
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 3264
      this.destination_pincode = destination_pincode;
477 rajveer 3265
    }
3266
 
648 chandransh 3267
    public void unsetDestination_pincode() {
3268
      this.destination_pincode = null;
477 rajveer 3269
    }
3270
 
3430 rajveer 3271
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 3272
    public boolean isSetDestination_pincode() {
3273
      return this.destination_pincode != null;
477 rajveer 3274
    }
3275
 
648 chandransh 3276
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 3277
      if (!value) {
648 chandransh 3278
        this.destination_pincode = null;
477 rajveer 3279
      }
3280
    }
3281
 
715 rajveer 3282
    public long getItem_id() {
648 chandransh 3283
      return this.item_id;
477 rajveer 3284
    }
3285
 
3430 rajveer 3286
    public void setItem_id(long item_id) {
648 chandransh 3287
      this.item_id = item_id;
715 rajveer 3288
      setItem_idIsSet(true);
477 rajveer 3289
    }
3290
 
648 chandransh 3291
    public void unsetItem_id() {
715 rajveer 3292
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 3293
    }
3294
 
3430 rajveer 3295
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 3296
    public boolean isSetItem_id() {
715 rajveer 3297
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 3298
    }
3299
 
648 chandransh 3300
    public void setItem_idIsSet(boolean value) {
715 rajveer 3301
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 3302
    }
3303
 
3044 chandransh 3304
    /**
3305
     * 
3306
     * @see DeliveryType
3307
     */
3308
    public DeliveryType getType() {
3309
      return this.type;
3310
    }
3311
 
3312
    /**
3313
     * 
3314
     * @see DeliveryType
3315
     */
3430 rajveer 3316
    public void setType(DeliveryType type) {
3044 chandransh 3317
      this.type = type;
3318
    }
3319
 
3320
    public void unsetType() {
3321
      this.type = null;
3322
    }
3323
 
3430 rajveer 3324
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 3325
    public boolean isSetType() {
3326
      return this.type != null;
3327
    }
3328
 
3329
    public void setTypeIsSet(boolean value) {
3330
      if (!value) {
3331
        this.type = null;
3332
      }
3333
    }
3334
 
477 rajveer 3335
    public void setFieldValue(_Fields field, Object value) {
3336
      switch (field) {
648 chandransh 3337
      case DESTINATION_PINCODE:
477 rajveer 3338
        if (value == null) {
648 chandransh 3339
          unsetDestination_pincode();
477 rajveer 3340
        } else {
648 chandransh 3341
          setDestination_pincode((String)value);
477 rajveer 3342
        }
3343
        break;
3344
 
648 chandransh 3345
      case ITEM_ID:
477 rajveer 3346
        if (value == null) {
648 chandransh 3347
          unsetItem_id();
477 rajveer 3348
        } else {
715 rajveer 3349
          setItem_id((Long)value);
477 rajveer 3350
        }
3351
        break;
3352
 
3044 chandransh 3353
      case TYPE:
3354
        if (value == null) {
3355
          unsetType();
3356
        } else {
3357
          setType((DeliveryType)value);
3358
        }
3359
        break;
3360
 
477 rajveer 3361
      }
3362
    }
3363
 
3364
    public Object getFieldValue(_Fields field) {
3365
      switch (field) {
648 chandransh 3366
      case DESTINATION_PINCODE:
3367
        return getDestination_pincode();
477 rajveer 3368
 
648 chandransh 3369
      case ITEM_ID:
3430 rajveer 3370
        return Long.valueOf(getItem_id());
477 rajveer 3371
 
3044 chandransh 3372
      case TYPE:
3373
        return getType();
3374
 
477 rajveer 3375
      }
3376
      throw new IllegalStateException();
3377
    }
3378
 
3430 rajveer 3379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3380
    public boolean isSet(_Fields field) {
3381
      if (field == null) {
3382
        throw new IllegalArgumentException();
3383
      }
477 rajveer 3384
 
3385
      switch (field) {
648 chandransh 3386
      case DESTINATION_PINCODE:
3387
        return isSetDestination_pincode();
3388
      case ITEM_ID:
3389
        return isSetItem_id();
3044 chandransh 3390
      case TYPE:
3391
        return isSetType();
477 rajveer 3392
      }
3393
      throw new IllegalStateException();
3394
    }
3395
 
3396
    @Override
3397
    public boolean equals(Object that) {
3398
      if (that == null)
3399
        return false;
648 chandransh 3400
      if (that instanceof getLogisticsInfo_args)
3401
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 3402
      return false;
3403
    }
3404
 
648 chandransh 3405
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 3406
      if (that == null)
3407
        return false;
3408
 
648 chandransh 3409
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
3410
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
3411
      if (this_present_destination_pincode || that_present_destination_pincode) {
3412
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 3413
          return false;
648 chandransh 3414
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 3415
          return false;
3416
      }
3417
 
715 rajveer 3418
      boolean this_present_item_id = true;
3419
      boolean that_present_item_id = true;
648 chandransh 3420
      if (this_present_item_id || that_present_item_id) {
3421
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 3422
          return false;
715 rajveer 3423
        if (this.item_id != that.item_id)
477 rajveer 3424
          return false;
3425
      }
3426
 
3044 chandransh 3427
      boolean this_present_type = true && this.isSetType();
3428
      boolean that_present_type = true && that.isSetType();
3429
      if (this_present_type || that_present_type) {
3430
        if (!(this_present_type && that_present_type))
3431
          return false;
3432
        if (!this.type.equals(that.type))
3433
          return false;
3434
      }
3435
 
477 rajveer 3436
      return true;
3437
    }
3438
 
3439
    @Override
3440
    public int hashCode() {
3441
      return 0;
3442
    }
3443
 
648 chandransh 3444
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 3445
      if (!getClass().equals(other.getClass())) {
3446
        return getClass().getName().compareTo(other.getClass().getName());
3447
      }
3448
 
3449
      int lastComparison = 0;
648 chandransh 3450
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 3451
 
3430 rajveer 3452
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 3453
      if (lastComparison != 0) {
3454
        return lastComparison;
3455
      }
3430 rajveer 3456
      if (isSetDestination_pincode()) {
3457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
3458
        if (lastComparison != 0) {
3459
          return lastComparison;
3460
        }
477 rajveer 3461
      }
3430 rajveer 3462
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 3463
      if (lastComparison != 0) {
3464
        return lastComparison;
3465
      }
3430 rajveer 3466
      if (isSetItem_id()) {
3467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
3468
        if (lastComparison != 0) {
3469
          return lastComparison;
3470
        }
477 rajveer 3471
      }
3430 rajveer 3472
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 3473
      if (lastComparison != 0) {
3474
        return lastComparison;
3475
      }
3430 rajveer 3476
      if (isSetType()) {
3477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3478
        if (lastComparison != 0) {
3479
          return lastComparison;
3480
        }
3044 chandransh 3481
      }
477 rajveer 3482
      return 0;
3483
    }
3484
 
3430 rajveer 3485
    public _Fields fieldForId(int fieldId) {
3486
      return _Fields.findByThriftId(fieldId);
3487
    }
3488
 
3489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3490
      org.apache.thrift.protocol.TField field;
477 rajveer 3491
      iprot.readStructBegin();
3492
      while (true)
3493
      {
3494
        field = iprot.readFieldBegin();
3430 rajveer 3495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 3496
          break;
3497
        }
3430 rajveer 3498
        switch (field.id) {
3499
          case 1: // DESTINATION_PINCODE
3500
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3501
              this.destination_pincode = iprot.readString();
3502
            } else { 
3503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3504
            }
3505
            break;
3506
          case 2: // ITEM_ID
3507
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3508
              this.item_id = iprot.readI64();
3509
              setItem_idIsSet(true);
3510
            } else { 
3511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3512
            }
3513
            break;
3514
          case 3: // TYPE
3515
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3516
              this.type = DeliveryType.findByValue(iprot.readI32());
3517
            } else { 
3518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3519
            }
3520
            break;
3521
          default:
3522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 3523
        }
3430 rajveer 3524
        iprot.readFieldEnd();
477 rajveer 3525
      }
3526
      iprot.readStructEnd();
3527
      validate();
3528
    }
3529
 
3430 rajveer 3530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 3531
      validate();
3532
 
3533
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 3534
      if (this.destination_pincode != null) {
3535
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
3536
        oprot.writeString(this.destination_pincode);
477 rajveer 3537
        oprot.writeFieldEnd();
3538
      }
715 rajveer 3539
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3540
      oprot.writeI64(this.item_id);
3541
      oprot.writeFieldEnd();
3044 chandransh 3542
      if (this.type != null) {
3543
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3544
        oprot.writeI32(this.type.getValue());
3545
        oprot.writeFieldEnd();
3546
      }
477 rajveer 3547
      oprot.writeFieldStop();
3548
      oprot.writeStructEnd();
3549
    }
3550
 
3551
    @Override
3552
    public String toString() {
648 chandransh 3553
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 3554
      boolean first = true;
3555
 
648 chandransh 3556
      sb.append("destination_pincode:");
3557
      if (this.destination_pincode == null) {
477 rajveer 3558
        sb.append("null");
3559
      } else {
648 chandransh 3560
        sb.append(this.destination_pincode);
477 rajveer 3561
      }
3562
      first = false;
3563
      if (!first) sb.append(", ");
648 chandransh 3564
      sb.append("item_id:");
715 rajveer 3565
      sb.append(this.item_id);
477 rajveer 3566
      first = false;
3044 chandransh 3567
      if (!first) sb.append(", ");
3568
      sb.append("type:");
3569
      if (this.type == null) {
3570
        sb.append("null");
3571
      } else {
3572
        sb.append(this.type);
3573
      }
3574
      first = false;
477 rajveer 3575
      sb.append(")");
3576
      return sb.toString();
3577
    }
3578
 
3430 rajveer 3579
    public void validate() throws org.apache.thrift.TException {
477 rajveer 3580
      // check for required fields
3581
    }
3582
 
3430 rajveer 3583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3584
      try {
3585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3586
      } catch (org.apache.thrift.TException te) {
3587
        throw new java.io.IOException(te);
3588
      }
3589
    }
3590
 
3591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3592
      try {
3593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3594
      } catch (org.apache.thrift.TException te) {
3595
        throw new java.io.IOException(te);
3596
      }
3597
    }
3598
 
477 rajveer 3599
  }
3600
 
3430 rajveer 3601
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
3602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 3603
 
3430 rajveer 3604
    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);
3605
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
477 rajveer 3606
 
3430 rajveer 3607
    private LogisticsInfo success; // required
3608
    private LogisticsServiceException se; // required
477 rajveer 3609
 
3610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3612
      SUCCESS((short)0, "success"),
3613
      SE((short)1, "se");
477 rajveer 3614
 
3615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3616
 
3617
      static {
3618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3619
          byName.put(field.getFieldName(), field);
3620
        }
3621
      }
3622
 
3623
      /**
3624
       * Find the _Fields constant that matches fieldId, or null if its not found.
3625
       */
3626
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3627
        switch(fieldId) {
3628
          case 0: // SUCCESS
3629
            return SUCCESS;
3630
          case 1: // SE
3631
            return SE;
3632
          default:
3633
            return null;
3634
        }
477 rajveer 3635
      }
3636
 
3637
      /**
3638
       * Find the _Fields constant that matches fieldId, throwing an exception
3639
       * if it is not found.
3640
       */
3641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3642
        _Fields fields = findByThriftId(fieldId);
3643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3644
        return fields;
3645
      }
3646
 
3647
      /**
3648
       * Find the _Fields constant that matches name, or null if its not found.
3649
       */
3650
      public static _Fields findByName(String name) {
3651
        return byName.get(name);
3652
      }
3653
 
3654
      private final short _thriftId;
3655
      private final String _fieldName;
3656
 
3657
      _Fields(short thriftId, String fieldName) {
3658
        _thriftId = thriftId;
3659
        _fieldName = fieldName;
3660
      }
3661
 
3662
      public short getThriftFieldId() {
3663
        return _thriftId;
3664
      }
3665
 
3666
      public String getFieldName() {
3667
        return _fieldName;
3668
      }
3669
    }
3670
 
412 ashish 3671
    // isset id assignments
3672
 
3430 rajveer 3673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 3674
    static {
3430 rajveer 3675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3677
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3678
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3679
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3680
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3681
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 3682
    }
3683
 
648 chandransh 3684
    public getLogisticsInfo_result() {
412 ashish 3685
    }
3686
 
648 chandransh 3687
    public getLogisticsInfo_result(
3688
      LogisticsInfo success,
3689
      LogisticsServiceException se)
412 ashish 3690
    {
3691
      this();
648 chandransh 3692
      this.success = success;
3693
      this.se = se;
412 ashish 3694
    }
3695
 
3696
    /**
3697
     * Performs a deep copy on <i>other</i>.
3698
     */
648 chandransh 3699
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
3700
      if (other.isSetSuccess()) {
3701
        this.success = new LogisticsInfo(other.success);
412 ashish 3702
      }
648 chandransh 3703
      if (other.isSetSe()) {
3704
        this.se = new LogisticsServiceException(other.se);
3705
      }
412 ashish 3706
    }
3707
 
648 chandransh 3708
    public getLogisticsInfo_result deepCopy() {
3709
      return new getLogisticsInfo_result(this);
412 ashish 3710
    }
3711
 
3430 rajveer 3712
    @Override
3713
    public void clear() {
3714
      this.success = null;
3715
      this.se = null;
412 ashish 3716
    }
3717
 
648 chandransh 3718
    public LogisticsInfo getSuccess() {
3719
      return this.success;
412 ashish 3720
    }
3721
 
3430 rajveer 3722
    public void setSuccess(LogisticsInfo success) {
648 chandransh 3723
      this.success = success;
412 ashish 3724
    }
3725
 
648 chandransh 3726
    public void unsetSuccess() {
3727
      this.success = null;
412 ashish 3728
    }
3729
 
3430 rajveer 3730
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 3731
    public boolean isSetSuccess() {
3732
      return this.success != null;
412 ashish 3733
    }
3734
 
648 chandransh 3735
    public void setSuccessIsSet(boolean value) {
412 ashish 3736
      if (!value) {
648 chandransh 3737
        this.success = null;
412 ashish 3738
      }
3739
    }
3740
 
648 chandransh 3741
    public LogisticsServiceException getSe() {
3742
      return this.se;
412 ashish 3743
    }
3744
 
3430 rajveer 3745
    public void setSe(LogisticsServiceException se) {
648 chandransh 3746
      this.se = se;
412 ashish 3747
    }
3748
 
648 chandransh 3749
    public void unsetSe() {
3750
      this.se = null;
412 ashish 3751
    }
3752
 
3430 rajveer 3753
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 3754
    public boolean isSetSe() {
3755
      return this.se != null;
412 ashish 3756
    }
3757
 
648 chandransh 3758
    public void setSeIsSet(boolean value) {
3759
      if (!value) {
3760
        this.se = null;
3761
      }
412 ashish 3762
    }
3763
 
3764
    public void setFieldValue(_Fields field, Object value) {
3765
      switch (field) {
648 chandransh 3766
      case SUCCESS:
412 ashish 3767
        if (value == null) {
648 chandransh 3768
          unsetSuccess();
412 ashish 3769
        } else {
648 chandransh 3770
          setSuccess((LogisticsInfo)value);
412 ashish 3771
        }
3772
        break;
3773
 
648 chandransh 3774
      case SE:
412 ashish 3775
        if (value == null) {
648 chandransh 3776
          unsetSe();
412 ashish 3777
        } else {
648 chandransh 3778
          setSe((LogisticsServiceException)value);
412 ashish 3779
        }
3780
        break;
3781
 
3782
      }
3783
    }
3784
 
3785
    public Object getFieldValue(_Fields field) {
3786
      switch (field) {
648 chandransh 3787
      case SUCCESS:
3788
        return getSuccess();
412 ashish 3789
 
648 chandransh 3790
      case SE:
3791
        return getSe();
412 ashish 3792
 
3793
      }
3794
      throw new IllegalStateException();
3795
    }
3796
 
3430 rajveer 3797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3798
    public boolean isSet(_Fields field) {
3799
      if (field == null) {
3800
        throw new IllegalArgumentException();
3801
      }
412 ashish 3802
 
3803
      switch (field) {
648 chandransh 3804
      case SUCCESS:
3805
        return isSetSuccess();
3806
      case SE:
3807
        return isSetSe();
412 ashish 3808
      }
3809
      throw new IllegalStateException();
3810
    }
3811
 
3812
    @Override
3813
    public boolean equals(Object that) {
3814
      if (that == null)
3815
        return false;
648 chandransh 3816
      if (that instanceof getLogisticsInfo_result)
3817
        return this.equals((getLogisticsInfo_result)that);
412 ashish 3818
      return false;
3819
    }
3820
 
648 chandransh 3821
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 3822
      if (that == null)
3823
        return false;
3824
 
648 chandransh 3825
      boolean this_present_success = true && this.isSetSuccess();
3826
      boolean that_present_success = true && that.isSetSuccess();
3827
      if (this_present_success || that_present_success) {
3828
        if (!(this_present_success && that_present_success))
412 ashish 3829
          return false;
648 chandransh 3830
        if (!this.success.equals(that.success))
412 ashish 3831
          return false;
3832
      }
3833
 
648 chandransh 3834
      boolean this_present_se = true && this.isSetSe();
3835
      boolean that_present_se = true && that.isSetSe();
3836
      if (this_present_se || that_present_se) {
3837
        if (!(this_present_se && that_present_se))
412 ashish 3838
          return false;
648 chandransh 3839
        if (!this.se.equals(that.se))
412 ashish 3840
          return false;
3841
      }
3842
 
3843
      return true;
3844
    }
3845
 
3846
    @Override
3847
    public int hashCode() {
3848
      return 0;
3849
    }
3850
 
648 chandransh 3851
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 3852
      if (!getClass().equals(other.getClass())) {
3853
        return getClass().getName().compareTo(other.getClass().getName());
3854
      }
3855
 
3856
      int lastComparison = 0;
648 chandransh 3857
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 3858
 
3430 rajveer 3859
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 3860
      if (lastComparison != 0) {
3861
        return lastComparison;
3862
      }
3430 rajveer 3863
      if (isSetSuccess()) {
3864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3865
        if (lastComparison != 0) {
3866
          return lastComparison;
3867
        }
412 ashish 3868
      }
3430 rajveer 3869
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 3870
      if (lastComparison != 0) {
3871
        return lastComparison;
3872
      }
3430 rajveer 3873
      if (isSetSe()) {
3874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3875
        if (lastComparison != 0) {
3876
          return lastComparison;
3877
        }
412 ashish 3878
      }
3879
      return 0;
3880
    }
3881
 
3430 rajveer 3882
    public _Fields fieldForId(int fieldId) {
3883
      return _Fields.findByThriftId(fieldId);
3884
    }
3885
 
3886
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3887
      org.apache.thrift.protocol.TField field;
412 ashish 3888
      iprot.readStructBegin();
3889
      while (true)
3890
      {
3891
        field = iprot.readFieldBegin();
3430 rajveer 3892
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 3893
          break;
3894
        }
3430 rajveer 3895
        switch (field.id) {
3896
          case 0: // SUCCESS
3897
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3898
              this.success = new LogisticsInfo();
3899
              this.success.read(iprot);
3900
            } else { 
3901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3902
            }
3903
            break;
3904
          case 1: // SE
3905
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3906
              this.se = new LogisticsServiceException();
3907
              this.se.read(iprot);
3908
            } else { 
3909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3910
            }
3911
            break;
3912
          default:
3913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 3914
        }
3430 rajveer 3915
        iprot.readFieldEnd();
412 ashish 3916
      }
3917
      iprot.readStructEnd();
3918
      validate();
3919
    }
3920
 
3430 rajveer 3921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 3922
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 3923
 
648 chandransh 3924
      if (this.isSetSuccess()) {
3925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3926
        this.success.write(oprot);
412 ashish 3927
        oprot.writeFieldEnd();
648 chandransh 3928
      } else if (this.isSetSe()) {
3929
        oprot.writeFieldBegin(SE_FIELD_DESC);
3930
        this.se.write(oprot);
3931
        oprot.writeFieldEnd();
412 ashish 3932
      }
3933
      oprot.writeFieldStop();
3934
      oprot.writeStructEnd();
3935
    }
3936
 
3937
    @Override
3938
    public String toString() {
648 chandransh 3939
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 3940
      boolean first = true;
3941
 
648 chandransh 3942
      sb.append("success:");
3943
      if (this.success == null) {
412 ashish 3944
        sb.append("null");
3945
      } else {
648 chandransh 3946
        sb.append(this.success);
412 ashish 3947
      }
3948
      first = false;
3949
      if (!first) sb.append(", ");
648 chandransh 3950
      sb.append("se:");
3951
      if (this.se == null) {
3952
        sb.append("null");
3953
      } else {
3954
        sb.append(this.se);
3955
      }
412 ashish 3956
      first = false;
3957
      sb.append(")");
3958
      return sb.toString();
3959
    }
3960
 
3430 rajveer 3961
    public void validate() throws org.apache.thrift.TException {
412 ashish 3962
      // check for required fields
3963
    }
3964
 
3430 rajveer 3965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3966
      try {
3967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3968
      } catch (org.apache.thrift.TException te) {
3969
        throw new java.io.IOException(te);
3970
      }
3971
    }
3972
 
3973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3974
      try {
3975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3976
      } catch (org.apache.thrift.TException te) {
3977
        throw new java.io.IOException(te);
3978
      }
3979
    }
3980
 
412 ashish 3981
  }
3982
 
3430 rajveer 3983
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
3984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 3985
 
3430 rajveer 3986
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
412 ashish 3987
 
3430 rajveer 3988
    private long providerId; // required
412 ashish 3989
 
3990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 3992
      PROVIDER_ID((short)1, "providerId");
412 ashish 3993
 
3994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3995
 
3996
      static {
3997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3998
          byName.put(field.getFieldName(), field);
3999
        }
4000
      }
4001
 
4002
      /**
4003
       * Find the _Fields constant that matches fieldId, or null if its not found.
4004
       */
4005
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4006
        switch(fieldId) {
4007
          case 1: // PROVIDER_ID
4008
            return PROVIDER_ID;
4009
          default:
4010
            return null;
4011
        }
412 ashish 4012
      }
4013
 
4014
      /**
4015
       * Find the _Fields constant that matches fieldId, throwing an exception
4016
       * if it is not found.
4017
       */
4018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4019
        _Fields fields = findByThriftId(fieldId);
4020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4021
        return fields;
4022
      }
4023
 
4024
      /**
4025
       * Find the _Fields constant that matches name, or null if its not found.
4026
       */
4027
      public static _Fields findByName(String name) {
4028
        return byName.get(name);
4029
      }
4030
 
4031
      private final short _thriftId;
4032
      private final String _fieldName;
4033
 
4034
      _Fields(short thriftId, String fieldName) {
4035
        _thriftId = thriftId;
4036
        _fieldName = fieldName;
4037
      }
4038
 
4039
      public short getThriftFieldId() {
4040
        return _thriftId;
4041
      }
4042
 
4043
      public String getFieldName() {
4044
        return _fieldName;
4045
      }
4046
    }
4047
 
4048
    // isset id assignments
648 chandransh 4049
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 4050
    private BitSet __isset_bit_vector = new BitSet(1);
4051
 
3430 rajveer 4052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4053
    static {
3430 rajveer 4054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4055
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 4059
    }
4060
 
4061
    public getEmptyAWB_args() {
4062
    }
4063
 
4064
    public getEmptyAWB_args(
648 chandransh 4065
      long providerId)
412 ashish 4066
    {
4067
      this();
648 chandransh 4068
      this.providerId = providerId;
4069
      setProviderIdIsSet(true);
412 ashish 4070
    }
4071
 
4072
    /**
4073
     * Performs a deep copy on <i>other</i>.
4074
     */
4075
    public getEmptyAWB_args(getEmptyAWB_args other) {
4076
      __isset_bit_vector.clear();
4077
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 4078
      this.providerId = other.providerId;
412 ashish 4079
    }
4080
 
4081
    public getEmptyAWB_args deepCopy() {
4082
      return new getEmptyAWB_args(this);
4083
    }
4084
 
3430 rajveer 4085
    @Override
4086
    public void clear() {
4087
      setProviderIdIsSet(false);
4088
      this.providerId = 0;
412 ashish 4089
    }
4090
 
648 chandransh 4091
    public long getProviderId() {
4092
      return this.providerId;
412 ashish 4093
    }
4094
 
3430 rajveer 4095
    public void setProviderId(long providerId) {
648 chandransh 4096
      this.providerId = providerId;
4097
      setProviderIdIsSet(true);
412 ashish 4098
    }
4099
 
648 chandransh 4100
    public void unsetProviderId() {
4101
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 4102
    }
4103
 
3430 rajveer 4104
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4105
    public boolean isSetProviderId() {
4106
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 4107
    }
4108
 
648 chandransh 4109
    public void setProviderIdIsSet(boolean value) {
4110
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 4111
    }
4112
 
4113
    public void setFieldValue(_Fields field, Object value) {
4114
      switch (field) {
4115
      case PROVIDER_ID:
4116
        if (value == null) {
648 chandransh 4117
          unsetProviderId();
412 ashish 4118
        } else {
648 chandransh 4119
          setProviderId((Long)value);
412 ashish 4120
        }
4121
        break;
4122
 
4123
      }
4124
    }
4125
 
4126
    public Object getFieldValue(_Fields field) {
4127
      switch (field) {
4128
      case PROVIDER_ID:
3430 rajveer 4129
        return Long.valueOf(getProviderId());
412 ashish 4130
 
4131
      }
4132
      throw new IllegalStateException();
4133
    }
4134
 
3430 rajveer 4135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4136
    public boolean isSet(_Fields field) {
4137
      if (field == null) {
4138
        throw new IllegalArgumentException();
4139
      }
412 ashish 4140
 
4141
      switch (field) {
4142
      case PROVIDER_ID:
648 chandransh 4143
        return isSetProviderId();
412 ashish 4144
      }
4145
      throw new IllegalStateException();
4146
    }
4147
 
4148
    @Override
4149
    public boolean equals(Object that) {
4150
      if (that == null)
4151
        return false;
4152
      if (that instanceof getEmptyAWB_args)
4153
        return this.equals((getEmptyAWB_args)that);
4154
      return false;
4155
    }
4156
 
4157
    public boolean equals(getEmptyAWB_args that) {
4158
      if (that == null)
4159
        return false;
4160
 
648 chandransh 4161
      boolean this_present_providerId = true;
4162
      boolean that_present_providerId = true;
4163
      if (this_present_providerId || that_present_providerId) {
4164
        if (!(this_present_providerId && that_present_providerId))
412 ashish 4165
          return false;
648 chandransh 4166
        if (this.providerId != that.providerId)
412 ashish 4167
          return false;
4168
      }
4169
 
4170
      return true;
4171
    }
4172
 
4173
    @Override
4174
    public int hashCode() {
4175
      return 0;
4176
    }
4177
 
4178
    public int compareTo(getEmptyAWB_args other) {
4179
      if (!getClass().equals(other.getClass())) {
4180
        return getClass().getName().compareTo(other.getClass().getName());
4181
      }
4182
 
4183
      int lastComparison = 0;
4184
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
4185
 
3430 rajveer 4186
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 4187
      if (lastComparison != 0) {
4188
        return lastComparison;
4189
      }
3430 rajveer 4190
      if (isSetProviderId()) {
4191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4192
        if (lastComparison != 0) {
4193
          return lastComparison;
4194
        }
412 ashish 4195
      }
4196
      return 0;
4197
    }
4198
 
3430 rajveer 4199
    public _Fields fieldForId(int fieldId) {
4200
      return _Fields.findByThriftId(fieldId);
4201
    }
4202
 
4203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4204
      org.apache.thrift.protocol.TField field;
412 ashish 4205
      iprot.readStructBegin();
4206
      while (true)
4207
      {
4208
        field = iprot.readFieldBegin();
3430 rajveer 4209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4210
          break;
4211
        }
3430 rajveer 4212
        switch (field.id) {
4213
          case 1: // PROVIDER_ID
4214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4215
              this.providerId = iprot.readI64();
4216
              setProviderIdIsSet(true);
4217
            } else { 
4218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4219
            }
4220
            break;
4221
          default:
4222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4223
        }
3430 rajveer 4224
        iprot.readFieldEnd();
412 ashish 4225
      }
4226
      iprot.readStructEnd();
4227
      validate();
4228
    }
4229
 
3430 rajveer 4230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 4231
      validate();
4232
 
4233
      oprot.writeStructBegin(STRUCT_DESC);
4234
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 4235
      oprot.writeI64(this.providerId);
412 ashish 4236
      oprot.writeFieldEnd();
4237
      oprot.writeFieldStop();
4238
      oprot.writeStructEnd();
4239
    }
4240
 
4241
    @Override
4242
    public String toString() {
4243
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
4244
      boolean first = true;
4245
 
648 chandransh 4246
      sb.append("providerId:");
4247
      sb.append(this.providerId);
412 ashish 4248
      first = false;
4249
      sb.append(")");
4250
      return sb.toString();
4251
    }
4252
 
3430 rajveer 4253
    public void validate() throws org.apache.thrift.TException {
412 ashish 4254
      // check for required fields
4255
    }
4256
 
3430 rajveer 4257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4258
      try {
4259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4260
      } catch (org.apache.thrift.TException te) {
4261
        throw new java.io.IOException(te);
4262
      }
4263
    }
4264
 
4265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4266
      try {
4267
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4268
        __isset_bit_vector = new BitSet(1);
4269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4270
      } catch (org.apache.thrift.TException te) {
4271
        throw new java.io.IOException(te);
4272
      }
4273
    }
4274
 
412 ashish 4275
  }
4276
 
3430 rajveer 4277
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
4278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 4279
 
3430 rajveer 4280
    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);
4281
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
412 ashish 4282
 
3430 rajveer 4283
    private String success; // required
4284
    private LogisticsServiceException se; // required
412 ashish 4285
 
4286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4288
      SUCCESS((short)0, "success"),
4289
      SE((short)1, "se");
412 ashish 4290
 
4291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4292
 
4293
      static {
4294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4295
          byName.put(field.getFieldName(), field);
4296
        }
4297
      }
4298
 
4299
      /**
4300
       * Find the _Fields constant that matches fieldId, or null if its not found.
4301
       */
4302
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4303
        switch(fieldId) {
4304
          case 0: // SUCCESS
4305
            return SUCCESS;
4306
          case 1: // SE
4307
            return SE;
4308
          default:
4309
            return null;
4310
        }
412 ashish 4311
      }
4312
 
4313
      /**
4314
       * Find the _Fields constant that matches fieldId, throwing an exception
4315
       * if it is not found.
4316
       */
4317
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4318
        _Fields fields = findByThriftId(fieldId);
4319
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4320
        return fields;
4321
      }
4322
 
4323
      /**
4324
       * Find the _Fields constant that matches name, or null if its not found.
4325
       */
4326
      public static _Fields findByName(String name) {
4327
        return byName.get(name);
4328
      }
4329
 
4330
      private final short _thriftId;
4331
      private final String _fieldName;
4332
 
4333
      _Fields(short thriftId, String fieldName) {
4334
        _thriftId = thriftId;
4335
        _fieldName = fieldName;
4336
      }
4337
 
4338
      public short getThriftFieldId() {
4339
        return _thriftId;
4340
      }
4341
 
4342
      public String getFieldName() {
4343
        return _fieldName;
4344
      }
4345
    }
4346
 
4347
    // isset id assignments
4348
 
3430 rajveer 4349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 4350
    static {
3430 rajveer 4351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4352
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4354
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 4358
    }
4359
 
4360
    public getEmptyAWB_result() {
4361
    }
4362
 
4363
    public getEmptyAWB_result(
648 chandransh 4364
      String success,
4365
      LogisticsServiceException se)
412 ashish 4366
    {
4367
      this();
4368
      this.success = success;
648 chandransh 4369
      this.se = se;
412 ashish 4370
    }
4371
 
4372
    /**
4373
     * Performs a deep copy on <i>other</i>.
4374
     */
4375
    public getEmptyAWB_result(getEmptyAWB_result other) {
4376
      if (other.isSetSuccess()) {
4377
        this.success = other.success;
4378
      }
648 chandransh 4379
      if (other.isSetSe()) {
4380
        this.se = new LogisticsServiceException(other.se);
4381
      }
412 ashish 4382
    }
4383
 
4384
    public getEmptyAWB_result deepCopy() {
4385
      return new getEmptyAWB_result(this);
4386
    }
4387
 
3430 rajveer 4388
    @Override
4389
    public void clear() {
4390
      this.success = null;
4391
      this.se = null;
412 ashish 4392
    }
4393
 
4394
    public String getSuccess() {
4395
      return this.success;
4396
    }
4397
 
3430 rajveer 4398
    public void setSuccess(String success) {
412 ashish 4399
      this.success = success;
4400
    }
4401
 
4402
    public void unsetSuccess() {
4403
      this.success = null;
4404
    }
4405
 
3430 rajveer 4406
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 4407
    public boolean isSetSuccess() {
4408
      return this.success != null;
4409
    }
4410
 
4411
    public void setSuccessIsSet(boolean value) {
4412
      if (!value) {
4413
        this.success = null;
4414
      }
4415
    }
4416
 
648 chandransh 4417
    public LogisticsServiceException getSe() {
4418
      return this.se;
412 ashish 4419
    }
4420
 
3430 rajveer 4421
    public void setSe(LogisticsServiceException se) {
648 chandransh 4422
      this.se = se;
412 ashish 4423
    }
4424
 
648 chandransh 4425
    public void unsetSe() {
4426
      this.se = null;
412 ashish 4427
    }
4428
 
3430 rajveer 4429
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 4430
    public boolean isSetSe() {
4431
      return this.se != null;
412 ashish 4432
    }
4433
 
648 chandransh 4434
    public void setSeIsSet(boolean value) {
412 ashish 4435
      if (!value) {
648 chandransh 4436
        this.se = null;
412 ashish 4437
      }
4438
    }
4439
 
4440
    public void setFieldValue(_Fields field, Object value) {
4441
      switch (field) {
4442
      case SUCCESS:
4443
        if (value == null) {
4444
          unsetSuccess();
4445
        } else {
648 chandransh 4446
          setSuccess((String)value);
412 ashish 4447
        }
4448
        break;
4449
 
648 chandransh 4450
      case SE:
4451
        if (value == null) {
4452
          unsetSe();
4453
        } else {
4454
          setSe((LogisticsServiceException)value);
4455
        }
4456
        break;
4457
 
412 ashish 4458
      }
4459
    }
4460
 
4461
    public Object getFieldValue(_Fields field) {
4462
      switch (field) {
4463
      case SUCCESS:
4464
        return getSuccess();
4465
 
648 chandransh 4466
      case SE:
4467
        return getSe();
4468
 
412 ashish 4469
      }
4470
      throw new IllegalStateException();
4471
    }
4472
 
3430 rajveer 4473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4474
    public boolean isSet(_Fields field) {
4475
      if (field == null) {
4476
        throw new IllegalArgumentException();
4477
      }
412 ashish 4478
 
4479
      switch (field) {
4480
      case SUCCESS:
4481
        return isSetSuccess();
648 chandransh 4482
      case SE:
4483
        return isSetSe();
412 ashish 4484
      }
4485
      throw new IllegalStateException();
4486
    }
4487
 
4488
    @Override
4489
    public boolean equals(Object that) {
4490
      if (that == null)
4491
        return false;
648 chandransh 4492
      if (that instanceof getEmptyAWB_result)
4493
        return this.equals((getEmptyAWB_result)that);
412 ashish 4494
      return false;
4495
    }
4496
 
648 chandransh 4497
    public boolean equals(getEmptyAWB_result that) {
412 ashish 4498
      if (that == null)
4499
        return false;
4500
 
4501
      boolean this_present_success = true && this.isSetSuccess();
4502
      boolean that_present_success = true && that.isSetSuccess();
4503
      if (this_present_success || that_present_success) {
4504
        if (!(this_present_success && that_present_success))
4505
          return false;
4506
        if (!this.success.equals(that.success))
4507
          return false;
4508
      }
4509
 
648 chandransh 4510
      boolean this_present_se = true && this.isSetSe();
4511
      boolean that_present_se = true && that.isSetSe();
4512
      if (this_present_se || that_present_se) {
4513
        if (!(this_present_se && that_present_se))
4514
          return false;
4515
        if (!this.se.equals(that.se))
4516
          return false;
4517
      }
4518
 
412 ashish 4519
      return true;
4520
    }
4521
 
4522
    @Override
4523
    public int hashCode() {
4524
      return 0;
4525
    }
4526
 
648 chandransh 4527
    public int compareTo(getEmptyAWB_result other) {
412 ashish 4528
      if (!getClass().equals(other.getClass())) {
4529
        return getClass().getName().compareTo(other.getClass().getName());
4530
      }
4531
 
4532
      int lastComparison = 0;
648 chandransh 4533
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 4534
 
3430 rajveer 4535
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 4536
      if (lastComparison != 0) {
4537
        return lastComparison;
4538
      }
3430 rajveer 4539
      if (isSetSuccess()) {
4540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4541
        if (lastComparison != 0) {
4542
          return lastComparison;
4543
        }
412 ashish 4544
      }
3430 rajveer 4545
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 4546
      if (lastComparison != 0) {
4547
        return lastComparison;
4548
      }
3430 rajveer 4549
      if (isSetSe()) {
4550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4551
        if (lastComparison != 0) {
4552
          return lastComparison;
4553
        }
412 ashish 4554
      }
4555
      return 0;
4556
    }
4557
 
3430 rajveer 4558
    public _Fields fieldForId(int fieldId) {
4559
      return _Fields.findByThriftId(fieldId);
4560
    }
4561
 
4562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4563
      org.apache.thrift.protocol.TField field;
412 ashish 4564
      iprot.readStructBegin();
4565
      while (true)
4566
      {
4567
        field = iprot.readFieldBegin();
3430 rajveer 4568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 4569
          break;
4570
        }
3430 rajveer 4571
        switch (field.id) {
4572
          case 0: // SUCCESS
4573
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4574
              this.success = iprot.readString();
4575
            } else { 
4576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4577
            }
4578
            break;
4579
          case 1: // SE
4580
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4581
              this.se = new LogisticsServiceException();
4582
              this.se.read(iprot);
4583
            } else { 
4584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4585
            }
4586
            break;
4587
          default:
4588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 4589
        }
3430 rajveer 4590
        iprot.readFieldEnd();
412 ashish 4591
      }
4592
      iprot.readStructEnd();
4593
      validate();
4594
    }
4595
 
3430 rajveer 4596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 4597
      oprot.writeStructBegin(STRUCT_DESC);
4598
 
4599
      if (this.isSetSuccess()) {
4600
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 4601
        oprot.writeString(this.success);
412 ashish 4602
        oprot.writeFieldEnd();
648 chandransh 4603
      } else if (this.isSetSe()) {
4604
        oprot.writeFieldBegin(SE_FIELD_DESC);
4605
        this.se.write(oprot);
4606
        oprot.writeFieldEnd();
412 ashish 4607
      }
4608
      oprot.writeFieldStop();
4609
      oprot.writeStructEnd();
4610
    }
4611
 
4612
    @Override
4613
    public String toString() {
648 chandransh 4614
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 4615
      boolean first = true;
4616
 
4617
      sb.append("success:");
4618
      if (this.success == null) {
4619
        sb.append("null");
4620
      } else {
4621
        sb.append(this.success);
4622
      }
4623
      first = false;
648 chandransh 4624
      if (!first) sb.append(", ");
4625
      sb.append("se:");
4626
      if (this.se == null) {
442 rajveer 4627
        sb.append("null");
4628
      } else {
648 chandransh 4629
        sb.append(this.se);
442 rajveer 4630
      }
4631
      first = false;
4632
      sb.append(")");
4633
      return sb.toString();
4634
    }
4635
 
3430 rajveer 4636
    public void validate() throws org.apache.thrift.TException {
442 rajveer 4637
      // check for required fields
4638
    }
4639
 
3430 rajveer 4640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4641
      try {
4642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4643
      } catch (org.apache.thrift.TException te) {
4644
        throw new java.io.IOException(te);
4645
      }
4646
    }
4647
 
4648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4649
      try {
4650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4651
      } catch (org.apache.thrift.TException te) {
4652
        throw new java.io.IOException(te);
4653
      }
4654
    }
4655
 
442 rajveer 4656
  }
4657
 
3430 rajveer 4658
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
4659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 4660
 
3430 rajveer 4661
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
4662
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
442 rajveer 4663
 
3430 rajveer 4664
    private String awb; // required
4665
    private long providerId; // required
442 rajveer 4666
 
4667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
442 rajveer 4669
      AWB((short)1, "awb"),
648 chandransh 4670
      PROVIDER_ID((short)2, "providerId");
442 rajveer 4671
 
4672
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4673
 
4674
      static {
4675
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4676
          byName.put(field.getFieldName(), field);
4677
        }
4678
      }
4679
 
4680
      /**
4681
       * Find the _Fields constant that matches fieldId, or null if its not found.
4682
       */
4683
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4684
        switch(fieldId) {
4685
          case 1: // AWB
4686
            return AWB;
4687
          case 2: // PROVIDER_ID
4688
            return PROVIDER_ID;
4689
          default:
4690
            return null;
4691
        }
442 rajveer 4692
      }
4693
 
4694
      /**
4695
       * Find the _Fields constant that matches fieldId, throwing an exception
4696
       * if it is not found.
4697
       */
4698
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4699
        _Fields fields = findByThriftId(fieldId);
4700
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4701
        return fields;
4702
      }
4703
 
4704
      /**
4705
       * Find the _Fields constant that matches name, or null if its not found.
4706
       */
4707
      public static _Fields findByName(String name) {
4708
        return byName.get(name);
4709
      }
4710
 
4711
      private final short _thriftId;
4712
      private final String _fieldName;
4713
 
4714
      _Fields(short thriftId, String fieldName) {
4715
        _thriftId = thriftId;
4716
        _fieldName = fieldName;
4717
      }
4718
 
4719
      public short getThriftFieldId() {
4720
        return _thriftId;
4721
      }
4722
 
4723
      public String getFieldName() {
4724
        return _fieldName;
4725
      }
4726
    }
4727
 
4728
    // isset id assignments
648 chandransh 4729
    private static final int __PROVIDERID_ISSET_ID = 0;
4730
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 4731
 
3430 rajveer 4732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 4733
    static {
3430 rajveer 4734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4735
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4737
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 4741
    }
4742
 
648 chandransh 4743
    public getShipmentInfo_args() {
442 rajveer 4744
    }
4745
 
648 chandransh 4746
    public getShipmentInfo_args(
442 rajveer 4747
      String awb,
648 chandransh 4748
      long providerId)
442 rajveer 4749
    {
4750
      this();
4751
      this.awb = awb;
648 chandransh 4752
      this.providerId = providerId;
4753
      setProviderIdIsSet(true);
442 rajveer 4754
    }
4755
 
4756
    /**
4757
     * Performs a deep copy on <i>other</i>.
4758
     */
648 chandransh 4759
    public getShipmentInfo_args(getShipmentInfo_args other) {
4760
      __isset_bit_vector.clear();
4761
      __isset_bit_vector.or(other.__isset_bit_vector);
442 rajveer 4762
      if (other.isSetAwb()) {
4763
        this.awb = other.awb;
4764
      }
648 chandransh 4765
      this.providerId = other.providerId;
442 rajveer 4766
    }
4767
 
648 chandransh 4768
    public getShipmentInfo_args deepCopy() {
4769
      return new getShipmentInfo_args(this);
442 rajveer 4770
    }
4771
 
3430 rajveer 4772
    @Override
4773
    public void clear() {
4774
      this.awb = null;
4775
      setProviderIdIsSet(false);
4776
      this.providerId = 0;
442 rajveer 4777
    }
4778
 
4779
    public String getAwb() {
4780
      return this.awb;
4781
    }
4782
 
3430 rajveer 4783
    public void setAwb(String awb) {
442 rajveer 4784
      this.awb = awb;
4785
    }
4786
 
4787
    public void unsetAwb() {
4788
      this.awb = null;
4789
    }
4790
 
3430 rajveer 4791
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
442 rajveer 4792
    public boolean isSetAwb() {
4793
      return this.awb != null;
4794
    }
4795
 
4796
    public void setAwbIsSet(boolean value) {
4797
      if (!value) {
4798
        this.awb = null;
4799
      }
4800
    }
4801
 
648 chandransh 4802
    public long getProviderId() {
4803
      return this.providerId;
442 rajveer 4804
    }
4805
 
3430 rajveer 4806
    public void setProviderId(long providerId) {
648 chandransh 4807
      this.providerId = providerId;
4808
      setProviderIdIsSet(true);
442 rajveer 4809
    }
4810
 
648 chandransh 4811
    public void unsetProviderId() {
4812
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 4813
    }
4814
 
3430 rajveer 4815
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 4816
    public boolean isSetProviderId() {
4817
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 4818
    }
4819
 
648 chandransh 4820
    public void setProviderIdIsSet(boolean value) {
4821
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 4822
    }
4823
 
4824
    public void setFieldValue(_Fields field, Object value) {
4825
      switch (field) {
4826
      case AWB:
4827
        if (value == null) {
4828
          unsetAwb();
4829
        } else {
4830
          setAwb((String)value);
4831
        }
4832
        break;
4833
 
648 chandransh 4834
      case PROVIDER_ID:
442 rajveer 4835
        if (value == null) {
648 chandransh 4836
          unsetProviderId();
442 rajveer 4837
        } else {
648 chandransh 4838
          setProviderId((Long)value);
442 rajveer 4839
        }
4840
        break;
4841
 
4842
      }
4843
    }
4844
 
4845
    public Object getFieldValue(_Fields field) {
4846
      switch (field) {
4847
      case AWB:
4848
        return getAwb();
4849
 
648 chandransh 4850
      case PROVIDER_ID:
3430 rajveer 4851
        return Long.valueOf(getProviderId());
442 rajveer 4852
 
4853
      }
4854
      throw new IllegalStateException();
4855
    }
4856
 
3430 rajveer 4857
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4858
    public boolean isSet(_Fields field) {
4859
      if (field == null) {
4860
        throw new IllegalArgumentException();
4861
      }
442 rajveer 4862
 
4863
      switch (field) {
4864
      case AWB:
4865
        return isSetAwb();
648 chandransh 4866
      case PROVIDER_ID:
4867
        return isSetProviderId();
442 rajveer 4868
      }
4869
      throw new IllegalStateException();
4870
    }
4871
 
4872
    @Override
4873
    public boolean equals(Object that) {
4874
      if (that == null)
4875
        return false;
648 chandransh 4876
      if (that instanceof getShipmentInfo_args)
4877
        return this.equals((getShipmentInfo_args)that);
442 rajveer 4878
      return false;
4879
    }
4880
 
648 chandransh 4881
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 4882
      if (that == null)
4883
        return false;
4884
 
4885
      boolean this_present_awb = true && this.isSetAwb();
4886
      boolean that_present_awb = true && that.isSetAwb();
4887
      if (this_present_awb || that_present_awb) {
4888
        if (!(this_present_awb && that_present_awb))
4889
          return false;
4890
        if (!this.awb.equals(that.awb))
4891
          return false;
4892
      }
4893
 
648 chandransh 4894
      boolean this_present_providerId = true;
4895
      boolean that_present_providerId = true;
4896
      if (this_present_providerId || that_present_providerId) {
4897
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 4898
          return false;
648 chandransh 4899
        if (this.providerId != that.providerId)
442 rajveer 4900
          return false;
4901
      }
4902
 
4903
      return true;
4904
    }
4905
 
4906
    @Override
4907
    public int hashCode() {
4908
      return 0;
4909
    }
4910
 
648 chandransh 4911
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 4912
      if (!getClass().equals(other.getClass())) {
4913
        return getClass().getName().compareTo(other.getClass().getName());
4914
      }
4915
 
4916
      int lastComparison = 0;
648 chandransh 4917
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 4918
 
3430 rajveer 4919
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
442 rajveer 4920
      if (lastComparison != 0) {
4921
        return lastComparison;
4922
      }
3430 rajveer 4923
      if (isSetAwb()) {
4924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
4925
        if (lastComparison != 0) {
4926
          return lastComparison;
4927
        }
442 rajveer 4928
      }
3430 rajveer 4929
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 4930
      if (lastComparison != 0) {
4931
        return lastComparison;
4932
      }
3430 rajveer 4933
      if (isSetProviderId()) {
4934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4935
        if (lastComparison != 0) {
4936
          return lastComparison;
4937
        }
442 rajveer 4938
      }
4939
      return 0;
4940
    }
4941
 
3430 rajveer 4942
    public _Fields fieldForId(int fieldId) {
4943
      return _Fields.findByThriftId(fieldId);
4944
    }
4945
 
4946
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4947
      org.apache.thrift.protocol.TField field;
442 rajveer 4948
      iprot.readStructBegin();
4949
      while (true)
4950
      {
4951
        field = iprot.readFieldBegin();
3430 rajveer 4952
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 4953
          break;
4954
        }
3430 rajveer 4955
        switch (field.id) {
4956
          case 1: // AWB
4957
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4958
              this.awb = iprot.readString();
4959
            } else { 
4960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4961
            }
4962
            break;
4963
          case 2: // PROVIDER_ID
4964
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4965
              this.providerId = iprot.readI64();
4966
              setProviderIdIsSet(true);
4967
            } else { 
4968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4969
            }
4970
            break;
4971
          default:
4972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 4973
        }
3430 rajveer 4974
        iprot.readFieldEnd();
442 rajveer 4975
      }
4976
      iprot.readStructEnd();
4977
      validate();
4978
    }
4979
 
3430 rajveer 4980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 4981
      validate();
4982
 
4983
      oprot.writeStructBegin(STRUCT_DESC);
4984
      if (this.awb != null) {
4985
        oprot.writeFieldBegin(AWB_FIELD_DESC);
4986
        oprot.writeString(this.awb);
4987
        oprot.writeFieldEnd();
4988
      }
648 chandransh 4989
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
4990
      oprot.writeI64(this.providerId);
4991
      oprot.writeFieldEnd();
442 rajveer 4992
      oprot.writeFieldStop();
4993
      oprot.writeStructEnd();
4994
    }
4995
 
4996
    @Override
4997
    public String toString() {
648 chandransh 4998
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 4999
      boolean first = true;
5000
 
5001
      sb.append("awb:");
5002
      if (this.awb == null) {
5003
        sb.append("null");
5004
      } else {
5005
        sb.append(this.awb);
5006
      }
5007
      first = false;
5008
      if (!first) sb.append(", ");
648 chandransh 5009
      sb.append("providerId:");
5010
      sb.append(this.providerId);
442 rajveer 5011
      first = false;
5012
      sb.append(")");
5013
      return sb.toString();
5014
    }
5015
 
3430 rajveer 5016
    public void validate() throws org.apache.thrift.TException {
442 rajveer 5017
      // check for required fields
5018
    }
5019
 
3430 rajveer 5020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5021
      try {
5022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5023
      } catch (org.apache.thrift.TException te) {
5024
        throw new java.io.IOException(te);
5025
      }
5026
    }
5027
 
5028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5029
      try {
5030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5031
      } catch (org.apache.thrift.TException te) {
5032
        throw new java.io.IOException(te);
5033
      }
5034
    }
5035
 
442 rajveer 5036
  }
5037
 
3430 rajveer 5038
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
5039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 5040
 
3430 rajveer 5041
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
5042
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
412 ashish 5043
 
3430 rajveer 5044
    private List<AwbUpdate> success; // required
5045
    private LogisticsServiceException se; // required
412 ashish 5046
 
5047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5049
      SUCCESS((short)0, "success"),
5050
      SE((short)1, "se");
412 ashish 5051
 
5052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5053
 
5054
      static {
5055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5056
          byName.put(field.getFieldName(), field);
5057
        }
5058
      }
5059
 
5060
      /**
5061
       * Find the _Fields constant that matches fieldId, or null if its not found.
5062
       */
5063
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5064
        switch(fieldId) {
5065
          case 0: // SUCCESS
5066
            return SUCCESS;
5067
          case 1: // SE
5068
            return SE;
5069
          default:
5070
            return null;
5071
        }
412 ashish 5072
      }
5073
 
5074
      /**
5075
       * Find the _Fields constant that matches fieldId, throwing an exception
5076
       * if it is not found.
5077
       */
5078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5079
        _Fields fields = findByThriftId(fieldId);
5080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5081
        return fields;
5082
      }
5083
 
5084
      /**
5085
       * Find the _Fields constant that matches name, or null if its not found.
5086
       */
5087
      public static _Fields findByName(String name) {
5088
        return byName.get(name);
5089
      }
5090
 
5091
      private final short _thriftId;
5092
      private final String _fieldName;
5093
 
5094
      _Fields(short thriftId, String fieldName) {
5095
        _thriftId = thriftId;
5096
        _fieldName = fieldName;
5097
      }
5098
 
5099
      public short getThriftFieldId() {
5100
        return _thriftId;
5101
      }
5102
 
5103
      public String getFieldName() {
5104
        return _fieldName;
5105
      }
5106
    }
5107
 
5108
    // isset id assignments
5109
 
3430 rajveer 5110
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5111
    static {
3430 rajveer 5112
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5113
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5114
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5115
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
5116
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 5120
    }
5121
 
5122
    public getShipmentInfo_result() {
5123
    }
5124
 
5125
    public getShipmentInfo_result(
648 chandransh 5126
      List<AwbUpdate> success,
5127
      LogisticsServiceException se)
412 ashish 5128
    {
5129
      this();
5130
      this.success = success;
648 chandransh 5131
      this.se = se;
412 ashish 5132
    }
5133
 
5134
    /**
5135
     * Performs a deep copy on <i>other</i>.
5136
     */
5137
    public getShipmentInfo_result(getShipmentInfo_result other) {
5138
      if (other.isSetSuccess()) {
648 chandransh 5139
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
5140
        for (AwbUpdate other_element : other.success) {
5141
          __this__success.add(new AwbUpdate(other_element));
5142
        }
5143
        this.success = __this__success;
412 ashish 5144
      }
648 chandransh 5145
      if (other.isSetSe()) {
5146
        this.se = new LogisticsServiceException(other.se);
5147
      }
412 ashish 5148
    }
5149
 
5150
    public getShipmentInfo_result deepCopy() {
5151
      return new getShipmentInfo_result(this);
5152
    }
5153
 
3430 rajveer 5154
    @Override
5155
    public void clear() {
5156
      this.success = null;
5157
      this.se = null;
412 ashish 5158
    }
5159
 
5160
    public int getSuccessSize() {
5161
      return (this.success == null) ? 0 : this.success.size();
5162
    }
5163
 
648 chandransh 5164
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 5165
      return (this.success == null) ? null : this.success.iterator();
5166
    }
5167
 
648 chandransh 5168
    public void addToSuccess(AwbUpdate elem) {
412 ashish 5169
      if (this.success == null) {
648 chandransh 5170
        this.success = new ArrayList<AwbUpdate>();
412 ashish 5171
      }
5172
      this.success.add(elem);
5173
    }
5174
 
648 chandransh 5175
    public List<AwbUpdate> getSuccess() {
412 ashish 5176
      return this.success;
5177
    }
5178
 
3430 rajveer 5179
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 5180
      this.success = success;
5181
    }
5182
 
5183
    public void unsetSuccess() {
5184
      this.success = null;
5185
    }
5186
 
3430 rajveer 5187
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 5188
    public boolean isSetSuccess() {
5189
      return this.success != null;
5190
    }
5191
 
5192
    public void setSuccessIsSet(boolean value) {
5193
      if (!value) {
5194
        this.success = null;
5195
      }
5196
    }
5197
 
648 chandransh 5198
    public LogisticsServiceException getSe() {
5199
      return this.se;
412 ashish 5200
    }
5201
 
3430 rajveer 5202
    public void setSe(LogisticsServiceException se) {
648 chandransh 5203
      this.se = se;
412 ashish 5204
    }
5205
 
648 chandransh 5206
    public void unsetSe() {
5207
      this.se = null;
412 ashish 5208
    }
5209
 
3430 rajveer 5210
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5211
    public boolean isSetSe() {
5212
      return this.se != null;
412 ashish 5213
    }
5214
 
648 chandransh 5215
    public void setSeIsSet(boolean value) {
5216
      if (!value) {
5217
        this.se = null;
412 ashish 5218
      }
5219
    }
5220
 
5221
    public void setFieldValue(_Fields field, Object value) {
5222
      switch (field) {
648 chandransh 5223
      case SUCCESS:
412 ashish 5224
        if (value == null) {
648 chandransh 5225
          unsetSuccess();
412 ashish 5226
        } else {
648 chandransh 5227
          setSuccess((List<AwbUpdate>)value);
412 ashish 5228
        }
5229
        break;
5230
 
648 chandransh 5231
      case SE:
412 ashish 5232
        if (value == null) {
648 chandransh 5233
          unsetSe();
412 ashish 5234
        } else {
648 chandransh 5235
          setSe((LogisticsServiceException)value);
412 ashish 5236
        }
5237
        break;
5238
 
5239
      }
5240
    }
5241
 
5242
    public Object getFieldValue(_Fields field) {
5243
      switch (field) {
648 chandransh 5244
      case SUCCESS:
5245
        return getSuccess();
412 ashish 5246
 
648 chandransh 5247
      case SE:
5248
        return getSe();
412 ashish 5249
 
5250
      }
5251
      throw new IllegalStateException();
5252
    }
5253
 
3430 rajveer 5254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5255
    public boolean isSet(_Fields field) {
5256
      if (field == null) {
5257
        throw new IllegalArgumentException();
5258
      }
412 ashish 5259
 
5260
      switch (field) {
648 chandransh 5261
      case SUCCESS:
5262
        return isSetSuccess();
5263
      case SE:
5264
        return isSetSe();
412 ashish 5265
      }
5266
      throw new IllegalStateException();
5267
    }
5268
 
5269
    @Override
5270
    public boolean equals(Object that) {
5271
      if (that == null)
5272
        return false;
648 chandransh 5273
      if (that instanceof getShipmentInfo_result)
5274
        return this.equals((getShipmentInfo_result)that);
412 ashish 5275
      return false;
5276
    }
5277
 
648 chandransh 5278
    public boolean equals(getShipmentInfo_result that) {
412 ashish 5279
      if (that == null)
5280
        return false;
5281
 
648 chandransh 5282
      boolean this_present_success = true && this.isSetSuccess();
5283
      boolean that_present_success = true && that.isSetSuccess();
5284
      if (this_present_success || that_present_success) {
5285
        if (!(this_present_success && that_present_success))
412 ashish 5286
          return false;
648 chandransh 5287
        if (!this.success.equals(that.success))
412 ashish 5288
          return false;
5289
      }
5290
 
648 chandransh 5291
      boolean this_present_se = true && this.isSetSe();
5292
      boolean that_present_se = true && that.isSetSe();
5293
      if (this_present_se || that_present_se) {
5294
        if (!(this_present_se && that_present_se))
412 ashish 5295
          return false;
648 chandransh 5296
        if (!this.se.equals(that.se))
412 ashish 5297
          return false;
5298
      }
5299
 
5300
      return true;
5301
    }
5302
 
5303
    @Override
5304
    public int hashCode() {
5305
      return 0;
5306
    }
5307
 
648 chandransh 5308
    public int compareTo(getShipmentInfo_result other) {
412 ashish 5309
      if (!getClass().equals(other.getClass())) {
5310
        return getClass().getName().compareTo(other.getClass().getName());
5311
      }
5312
 
5313
      int lastComparison = 0;
648 chandransh 5314
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 5315
 
3430 rajveer 5316
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5317
      if (lastComparison != 0) {
5318
        return lastComparison;
5319
      }
3430 rajveer 5320
      if (isSetSuccess()) {
5321
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5322
        if (lastComparison != 0) {
5323
          return lastComparison;
5324
        }
412 ashish 5325
      }
3430 rajveer 5326
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5327
      if (lastComparison != 0) {
5328
        return lastComparison;
5329
      }
3430 rajveer 5330
      if (isSetSe()) {
5331
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5332
        if (lastComparison != 0) {
5333
          return lastComparison;
5334
        }
412 ashish 5335
      }
5336
      return 0;
5337
    }
5338
 
3430 rajveer 5339
    public _Fields fieldForId(int fieldId) {
5340
      return _Fields.findByThriftId(fieldId);
5341
    }
5342
 
5343
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5344
      org.apache.thrift.protocol.TField field;
412 ashish 5345
      iprot.readStructBegin();
5346
      while (true)
5347
      {
5348
        field = iprot.readFieldBegin();
3430 rajveer 5349
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5350
          break;
5351
        }
3430 rajveer 5352
        switch (field.id) {
5353
          case 0: // SUCCESS
5354
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5355
              {
5356
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
5357
                this.success = new ArrayList<AwbUpdate>(_list9.size);
5358
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
412 ashish 5359
                {
3430 rajveer 5360
                  AwbUpdate _elem11; // required
5361
                  _elem11 = new AwbUpdate();
5362
                  _elem11.read(iprot);
5363
                  this.success.add(_elem11);
412 ashish 5364
                }
3430 rajveer 5365
                iprot.readListEnd();
412 ashish 5366
              }
3430 rajveer 5367
            } else { 
5368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5369
            }
5370
            break;
5371
          case 1: // SE
5372
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5373
              this.se = new LogisticsServiceException();
5374
              this.se.read(iprot);
5375
            } else { 
5376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5377
            }
5378
            break;
5379
          default:
5380
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5381
        }
3430 rajveer 5382
        iprot.readFieldEnd();
412 ashish 5383
      }
5384
      iprot.readStructEnd();
5385
      validate();
5386
    }
5387
 
3430 rajveer 5388
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 5389
      oprot.writeStructBegin(STRUCT_DESC);
5390
 
5391
      if (this.isSetSuccess()) {
5392
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5393
        {
3430 rajveer 5394
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3044 chandransh 5395
          for (AwbUpdate _iter12 : this.success)
412 ashish 5396
          {
3044 chandransh 5397
            _iter12.write(oprot);
412 ashish 5398
          }
5399
          oprot.writeListEnd();
5400
        }
5401
        oprot.writeFieldEnd();
648 chandransh 5402
      } else if (this.isSetSe()) {
5403
        oprot.writeFieldBegin(SE_FIELD_DESC);
5404
        this.se.write(oprot);
5405
        oprot.writeFieldEnd();
412 ashish 5406
      }
5407
      oprot.writeFieldStop();
5408
      oprot.writeStructEnd();
5409
    }
5410
 
5411
    @Override
5412
    public String toString() {
648 chandransh 5413
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 5414
      boolean first = true;
5415
 
5416
      sb.append("success:");
5417
      if (this.success == null) {
5418
        sb.append("null");
5419
      } else {
5420
        sb.append(this.success);
5421
      }
5422
      first = false;
648 chandransh 5423
      if (!first) sb.append(", ");
5424
      sb.append("se:");
5425
      if (this.se == null) {
5426
        sb.append("null");
5427
      } else {
5428
        sb.append(this.se);
5429
      }
5430
      first = false;
412 ashish 5431
      sb.append(")");
5432
      return sb.toString();
5433
    }
5434
 
3430 rajveer 5435
    public void validate() throws org.apache.thrift.TException {
412 ashish 5436
      // check for required fields
5437
    }
5438
 
3430 rajveer 5439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5440
      try {
5441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5442
      } catch (org.apache.thrift.TException te) {
5443
        throw new java.io.IOException(te);
5444
      }
5445
    }
5446
 
5447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5448
      try {
5449
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5450
      } catch (org.apache.thrift.TException te) {
5451
        throw new java.io.IOException(te);
5452
      }
5453
    }
5454
 
412 ashish 5455
  }
5456
 
3430 rajveer 5457
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
5458
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 5459
 
3430 rajveer 5460
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
5461
    private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
730 chandransh 5462
 
3430 rajveer 5463
    private long providerId; // required
5464
    private String pinCode; // required
730 chandransh 5465
 
5466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 5468
      PROVIDER_ID((short)1, "providerId"),
5469
      PIN_CODE((short)2, "pinCode");
5470
 
5471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5472
 
5473
      static {
5474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5475
          byName.put(field.getFieldName(), field);
5476
        }
5477
      }
5478
 
5479
      /**
5480
       * Find the _Fields constant that matches fieldId, or null if its not found.
5481
       */
5482
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5483
        switch(fieldId) {
5484
          case 1: // PROVIDER_ID
5485
            return PROVIDER_ID;
5486
          case 2: // PIN_CODE
5487
            return PIN_CODE;
5488
          default:
5489
            return null;
5490
        }
730 chandransh 5491
      }
5492
 
5493
      /**
5494
       * Find the _Fields constant that matches fieldId, throwing an exception
5495
       * if it is not found.
5496
       */
5497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5498
        _Fields fields = findByThriftId(fieldId);
5499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5500
        return fields;
5501
      }
5502
 
5503
      /**
5504
       * Find the _Fields constant that matches name, or null if its not found.
5505
       */
5506
      public static _Fields findByName(String name) {
5507
        return byName.get(name);
5508
      }
5509
 
5510
      private final short _thriftId;
5511
      private final String _fieldName;
5512
 
5513
      _Fields(short thriftId, String fieldName) {
5514
        _thriftId = thriftId;
5515
        _fieldName = fieldName;
5516
      }
5517
 
5518
      public short getThriftFieldId() {
5519
        return _thriftId;
5520
      }
5521
 
5522
      public String getFieldName() {
5523
        return _fieldName;
5524
      }
5525
    }
5526
 
5527
    // isset id assignments
5528
    private static final int __PROVIDERID_ISSET_ID = 0;
5529
    private BitSet __isset_bit_vector = new BitSet(1);
5530
 
3430 rajveer 5531
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 5532
    static {
3430 rajveer 5533
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5534
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5535
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5536
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 5540
    }
5541
 
5542
    public getDestinationCode_args() {
5543
    }
5544
 
5545
    public getDestinationCode_args(
5546
      long providerId,
5547
      String pinCode)
5548
    {
5549
      this();
5550
      this.providerId = providerId;
5551
      setProviderIdIsSet(true);
5552
      this.pinCode = pinCode;
5553
    }
5554
 
5555
    /**
5556
     * Performs a deep copy on <i>other</i>.
5557
     */
5558
    public getDestinationCode_args(getDestinationCode_args other) {
5559
      __isset_bit_vector.clear();
5560
      __isset_bit_vector.or(other.__isset_bit_vector);
5561
      this.providerId = other.providerId;
5562
      if (other.isSetPinCode()) {
5563
        this.pinCode = other.pinCode;
5564
      }
5565
    }
5566
 
5567
    public getDestinationCode_args deepCopy() {
5568
      return new getDestinationCode_args(this);
5569
    }
5570
 
3430 rajveer 5571
    @Override
5572
    public void clear() {
5573
      setProviderIdIsSet(false);
5574
      this.providerId = 0;
5575
      this.pinCode = null;
730 chandransh 5576
    }
5577
 
5578
    public long getProviderId() {
5579
      return this.providerId;
5580
    }
5581
 
3430 rajveer 5582
    public void setProviderId(long providerId) {
730 chandransh 5583
      this.providerId = providerId;
5584
      setProviderIdIsSet(true);
5585
    }
5586
 
5587
    public void unsetProviderId() {
5588
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
5589
    }
5590
 
3430 rajveer 5591
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 5592
    public boolean isSetProviderId() {
5593
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
5594
    }
5595
 
5596
    public void setProviderIdIsSet(boolean value) {
5597
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
5598
    }
5599
 
5600
    public String getPinCode() {
5601
      return this.pinCode;
5602
    }
5603
 
3430 rajveer 5604
    public void setPinCode(String pinCode) {
730 chandransh 5605
      this.pinCode = pinCode;
5606
    }
5607
 
5608
    public void unsetPinCode() {
5609
      this.pinCode = null;
5610
    }
5611
 
3430 rajveer 5612
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 5613
    public boolean isSetPinCode() {
5614
      return this.pinCode != null;
5615
    }
5616
 
5617
    public void setPinCodeIsSet(boolean value) {
5618
      if (!value) {
5619
        this.pinCode = null;
5620
      }
5621
    }
5622
 
5623
    public void setFieldValue(_Fields field, Object value) {
5624
      switch (field) {
5625
      case PROVIDER_ID:
5626
        if (value == null) {
5627
          unsetProviderId();
5628
        } else {
5629
          setProviderId((Long)value);
5630
        }
5631
        break;
5632
 
5633
      case PIN_CODE:
5634
        if (value == null) {
5635
          unsetPinCode();
5636
        } else {
5637
          setPinCode((String)value);
5638
        }
5639
        break;
5640
 
5641
      }
5642
    }
5643
 
5644
    public Object getFieldValue(_Fields field) {
5645
      switch (field) {
5646
      case PROVIDER_ID:
3430 rajveer 5647
        return Long.valueOf(getProviderId());
730 chandransh 5648
 
5649
      case PIN_CODE:
5650
        return getPinCode();
5651
 
5652
      }
5653
      throw new IllegalStateException();
5654
    }
5655
 
3430 rajveer 5656
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5657
    public boolean isSet(_Fields field) {
5658
      if (field == null) {
5659
        throw new IllegalArgumentException();
5660
      }
730 chandransh 5661
 
5662
      switch (field) {
5663
      case PROVIDER_ID:
5664
        return isSetProviderId();
5665
      case PIN_CODE:
5666
        return isSetPinCode();
5667
      }
5668
      throw new IllegalStateException();
5669
    }
5670
 
5671
    @Override
5672
    public boolean equals(Object that) {
5673
      if (that == null)
5674
        return false;
5675
      if (that instanceof getDestinationCode_args)
5676
        return this.equals((getDestinationCode_args)that);
5677
      return false;
5678
    }
5679
 
5680
    public boolean equals(getDestinationCode_args that) {
5681
      if (that == null)
5682
        return false;
5683
 
5684
      boolean this_present_providerId = true;
5685
      boolean that_present_providerId = true;
5686
      if (this_present_providerId || that_present_providerId) {
5687
        if (!(this_present_providerId && that_present_providerId))
5688
          return false;
5689
        if (this.providerId != that.providerId)
5690
          return false;
5691
      }
5692
 
5693
      boolean this_present_pinCode = true && this.isSetPinCode();
5694
      boolean that_present_pinCode = true && that.isSetPinCode();
5695
      if (this_present_pinCode || that_present_pinCode) {
5696
        if (!(this_present_pinCode && that_present_pinCode))
5697
          return false;
5698
        if (!this.pinCode.equals(that.pinCode))
5699
          return false;
5700
      }
5701
 
5702
      return true;
5703
    }
5704
 
5705
    @Override
5706
    public int hashCode() {
5707
      return 0;
5708
    }
5709
 
5710
    public int compareTo(getDestinationCode_args other) {
5711
      if (!getClass().equals(other.getClass())) {
5712
        return getClass().getName().compareTo(other.getClass().getName());
5713
      }
5714
 
5715
      int lastComparison = 0;
5716
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
5717
 
3430 rajveer 5718
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 5719
      if (lastComparison != 0) {
5720
        return lastComparison;
5721
      }
3430 rajveer 5722
      if (isSetProviderId()) {
5723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5724
        if (lastComparison != 0) {
5725
          return lastComparison;
5726
        }
730 chandransh 5727
      }
3430 rajveer 5728
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 5729
      if (lastComparison != 0) {
5730
        return lastComparison;
5731
      }
3430 rajveer 5732
      if (isSetPinCode()) {
5733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
5734
        if (lastComparison != 0) {
5735
          return lastComparison;
5736
        }
730 chandransh 5737
      }
5738
      return 0;
5739
    }
5740
 
3430 rajveer 5741
    public _Fields fieldForId(int fieldId) {
5742
      return _Fields.findByThriftId(fieldId);
5743
    }
5744
 
5745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5746
      org.apache.thrift.protocol.TField field;
730 chandransh 5747
      iprot.readStructBegin();
5748
      while (true)
5749
      {
5750
        field = iprot.readFieldBegin();
3430 rajveer 5751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 5752
          break;
5753
        }
3430 rajveer 5754
        switch (field.id) {
5755
          case 1: // PROVIDER_ID
5756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5757
              this.providerId = iprot.readI64();
5758
              setProviderIdIsSet(true);
5759
            } else { 
5760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5761
            }
5762
            break;
5763
          case 2: // PIN_CODE
5764
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5765
              this.pinCode = iprot.readString();
5766
            } else { 
5767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5768
            }
5769
            break;
5770
          default:
5771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 5772
        }
3430 rajveer 5773
        iprot.readFieldEnd();
730 chandransh 5774
      }
5775
      iprot.readStructEnd();
5776
      validate();
5777
    }
5778
 
3430 rajveer 5779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 5780
      validate();
5781
 
5782
      oprot.writeStructBegin(STRUCT_DESC);
5783
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5784
      oprot.writeI64(this.providerId);
5785
      oprot.writeFieldEnd();
5786
      if (this.pinCode != null) {
5787
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
5788
        oprot.writeString(this.pinCode);
5789
        oprot.writeFieldEnd();
5790
      }
5791
      oprot.writeFieldStop();
5792
      oprot.writeStructEnd();
5793
    }
5794
 
5795
    @Override
5796
    public String toString() {
5797
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
5798
      boolean first = true;
5799
 
5800
      sb.append("providerId:");
5801
      sb.append(this.providerId);
5802
      first = false;
5803
      if (!first) sb.append(", ");
5804
      sb.append("pinCode:");
5805
      if (this.pinCode == null) {
5806
        sb.append("null");
5807
      } else {
5808
        sb.append(this.pinCode);
5809
      }
5810
      first = false;
5811
      sb.append(")");
5812
      return sb.toString();
5813
    }
5814
 
3430 rajveer 5815
    public void validate() throws org.apache.thrift.TException {
730 chandransh 5816
      // check for required fields
5817
    }
5818
 
3430 rajveer 5819
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5820
      try {
5821
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5822
      } catch (org.apache.thrift.TException te) {
5823
        throw new java.io.IOException(te);
5824
      }
5825
    }
5826
 
5827
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5828
      try {
5829
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5830
      } catch (org.apache.thrift.TException te) {
5831
        throw new java.io.IOException(te);
5832
      }
5833
    }
5834
 
730 chandransh 5835
  }
5836
 
3430 rajveer 5837
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
5838
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 5839
 
3430 rajveer 5840
    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);
5841
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
730 chandransh 5842
 
3430 rajveer 5843
    private String success; // required
5844
    private LogisticsServiceException se; // required
730 chandransh 5845
 
5846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 5848
      SUCCESS((short)0, "success"),
5849
      SE((short)1, "se");
5850
 
5851
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5852
 
5853
      static {
5854
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5855
          byName.put(field.getFieldName(), field);
5856
        }
5857
      }
5858
 
5859
      /**
5860
       * Find the _Fields constant that matches fieldId, or null if its not found.
5861
       */
5862
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5863
        switch(fieldId) {
5864
          case 0: // SUCCESS
5865
            return SUCCESS;
5866
          case 1: // SE
5867
            return SE;
5868
          default:
5869
            return null;
5870
        }
730 chandransh 5871
      }
5872
 
5873
      /**
5874
       * Find the _Fields constant that matches fieldId, throwing an exception
5875
       * if it is not found.
5876
       */
5877
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5878
        _Fields fields = findByThriftId(fieldId);
5879
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5880
        return fields;
5881
      }
5882
 
5883
      /**
5884
       * Find the _Fields constant that matches name, or null if its not found.
5885
       */
5886
      public static _Fields findByName(String name) {
5887
        return byName.get(name);
5888
      }
5889
 
5890
      private final short _thriftId;
5891
      private final String _fieldName;
5892
 
5893
      _Fields(short thriftId, String fieldName) {
5894
        _thriftId = thriftId;
5895
        _fieldName = fieldName;
5896
      }
5897
 
5898
      public short getThriftFieldId() {
5899
        return _thriftId;
5900
      }
5901
 
5902
      public String getFieldName() {
5903
        return _fieldName;
5904
      }
5905
    }
5906
 
5907
    // isset id assignments
5908
 
3430 rajveer 5909
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 5910
    static {
3430 rajveer 5911
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5912
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5914
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5915
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5916
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5917
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 5918
    }
5919
 
5920
    public getDestinationCode_result() {
5921
    }
5922
 
5923
    public getDestinationCode_result(
5924
      String success,
5925
      LogisticsServiceException se)
5926
    {
5927
      this();
5928
      this.success = success;
5929
      this.se = se;
5930
    }
5931
 
5932
    /**
5933
     * Performs a deep copy on <i>other</i>.
5934
     */
5935
    public getDestinationCode_result(getDestinationCode_result other) {
5936
      if (other.isSetSuccess()) {
5937
        this.success = other.success;
5938
      }
5939
      if (other.isSetSe()) {
5940
        this.se = new LogisticsServiceException(other.se);
5941
      }
5942
    }
5943
 
5944
    public getDestinationCode_result deepCopy() {
5945
      return new getDestinationCode_result(this);
5946
    }
5947
 
3430 rajveer 5948
    @Override
5949
    public void clear() {
5950
      this.success = null;
5951
      this.se = null;
730 chandransh 5952
    }
5953
 
5954
    public String getSuccess() {
5955
      return this.success;
5956
    }
5957
 
3430 rajveer 5958
    public void setSuccess(String success) {
730 chandransh 5959
      this.success = success;
5960
    }
5961
 
5962
    public void unsetSuccess() {
5963
      this.success = null;
5964
    }
5965
 
3430 rajveer 5966
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 5967
    public boolean isSetSuccess() {
5968
      return this.success != null;
5969
    }
5970
 
5971
    public void setSuccessIsSet(boolean value) {
5972
      if (!value) {
5973
        this.success = null;
5974
      }
5975
    }
5976
 
5977
    public LogisticsServiceException getSe() {
5978
      return this.se;
5979
    }
5980
 
3430 rajveer 5981
    public void setSe(LogisticsServiceException se) {
730 chandransh 5982
      this.se = se;
5983
    }
5984
 
5985
    public void unsetSe() {
5986
      this.se = null;
5987
    }
5988
 
3430 rajveer 5989
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 5990
    public boolean isSetSe() {
5991
      return this.se != null;
5992
    }
5993
 
5994
    public void setSeIsSet(boolean value) {
5995
      if (!value) {
5996
        this.se = null;
5997
      }
5998
    }
5999
 
6000
    public void setFieldValue(_Fields field, Object value) {
6001
      switch (field) {
6002
      case SUCCESS:
6003
        if (value == null) {
6004
          unsetSuccess();
6005
        } else {
6006
          setSuccess((String)value);
6007
        }
6008
        break;
6009
 
6010
      case SE:
6011
        if (value == null) {
6012
          unsetSe();
6013
        } else {
6014
          setSe((LogisticsServiceException)value);
6015
        }
6016
        break;
6017
 
6018
      }
6019
    }
6020
 
6021
    public Object getFieldValue(_Fields field) {
6022
      switch (field) {
6023
      case SUCCESS:
6024
        return getSuccess();
6025
 
6026
      case SE:
6027
        return getSe();
6028
 
6029
      }
6030
      throw new IllegalStateException();
6031
    }
6032
 
3430 rajveer 6033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6034
    public boolean isSet(_Fields field) {
6035
      if (field == null) {
6036
        throw new IllegalArgumentException();
6037
      }
730 chandransh 6038
 
6039
      switch (field) {
6040
      case SUCCESS:
6041
        return isSetSuccess();
6042
      case SE:
6043
        return isSetSe();
6044
      }
6045
      throw new IllegalStateException();
6046
    }
6047
 
6048
    @Override
6049
    public boolean equals(Object that) {
6050
      if (that == null)
6051
        return false;
6052
      if (that instanceof getDestinationCode_result)
6053
        return this.equals((getDestinationCode_result)that);
6054
      return false;
6055
    }
6056
 
6057
    public boolean equals(getDestinationCode_result that) {
6058
      if (that == null)
6059
        return false;
6060
 
6061
      boolean this_present_success = true && this.isSetSuccess();
6062
      boolean that_present_success = true && that.isSetSuccess();
6063
      if (this_present_success || that_present_success) {
6064
        if (!(this_present_success && that_present_success))
6065
          return false;
6066
        if (!this.success.equals(that.success))
6067
          return false;
6068
      }
6069
 
6070
      boolean this_present_se = true && this.isSetSe();
6071
      boolean that_present_se = true && that.isSetSe();
6072
      if (this_present_se || that_present_se) {
6073
        if (!(this_present_se && that_present_se))
6074
          return false;
6075
        if (!this.se.equals(that.se))
6076
          return false;
6077
      }
6078
 
6079
      return true;
6080
    }
6081
 
6082
    @Override
6083
    public int hashCode() {
6084
      return 0;
6085
    }
6086
 
6087
    public int compareTo(getDestinationCode_result other) {
6088
      if (!getClass().equals(other.getClass())) {
6089
        return getClass().getName().compareTo(other.getClass().getName());
6090
      }
6091
 
6092
      int lastComparison = 0;
6093
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
6094
 
3430 rajveer 6095
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 6096
      if (lastComparison != 0) {
6097
        return lastComparison;
6098
      }
3430 rajveer 6099
      if (isSetSuccess()) {
6100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6101
        if (lastComparison != 0) {
6102
          return lastComparison;
6103
        }
730 chandransh 6104
      }
3430 rajveer 6105
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 6106
      if (lastComparison != 0) {
6107
        return lastComparison;
6108
      }
3430 rajveer 6109
      if (isSetSe()) {
6110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6111
        if (lastComparison != 0) {
6112
          return lastComparison;
6113
        }
730 chandransh 6114
      }
6115
      return 0;
6116
    }
6117
 
3430 rajveer 6118
    public _Fields fieldForId(int fieldId) {
6119
      return _Fields.findByThriftId(fieldId);
6120
    }
6121
 
6122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6123
      org.apache.thrift.protocol.TField field;
730 chandransh 6124
      iprot.readStructBegin();
6125
      while (true)
6126
      {
6127
        field = iprot.readFieldBegin();
3430 rajveer 6128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 6129
          break;
6130
        }
3430 rajveer 6131
        switch (field.id) {
6132
          case 0: // SUCCESS
6133
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6134
              this.success = iprot.readString();
6135
            } else { 
6136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6137
            }
6138
            break;
6139
          case 1: // SE
6140
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6141
              this.se = new LogisticsServiceException();
6142
              this.se.read(iprot);
6143
            } else { 
6144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6145
            }
6146
            break;
6147
          default:
6148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 6149
        }
3430 rajveer 6150
        iprot.readFieldEnd();
730 chandransh 6151
      }
6152
      iprot.readStructEnd();
6153
      validate();
6154
    }
6155
 
3430 rajveer 6156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 6157
      oprot.writeStructBegin(STRUCT_DESC);
6158
 
6159
      if (this.isSetSuccess()) {
6160
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6161
        oprot.writeString(this.success);
6162
        oprot.writeFieldEnd();
6163
      } else if (this.isSetSe()) {
6164
        oprot.writeFieldBegin(SE_FIELD_DESC);
6165
        this.se.write(oprot);
6166
        oprot.writeFieldEnd();
6167
      }
6168
      oprot.writeFieldStop();
6169
      oprot.writeStructEnd();
6170
    }
6171
 
6172
    @Override
6173
    public String toString() {
6174
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
6175
      boolean first = true;
6176
 
6177
      sb.append("success:");
6178
      if (this.success == null) {
6179
        sb.append("null");
6180
      } else {
6181
        sb.append(this.success);
6182
      }
6183
      first = false;
6184
      if (!first) sb.append(", ");
6185
      sb.append("se:");
6186
      if (this.se == null) {
6187
        sb.append("null");
6188
      } else {
6189
        sb.append(this.se);
6190
      }
6191
      first = false;
6192
      sb.append(")");
6193
      return sb.toString();
6194
    }
6195
 
3430 rajveer 6196
    public void validate() throws org.apache.thrift.TException {
730 chandransh 6197
      // check for required fields
6198
    }
6199
 
3430 rajveer 6200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6201
      try {
6202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6203
      } catch (org.apache.thrift.TException te) {
6204
        throw new java.io.IOException(te);
6205
      }
6206
    }
6207
 
6208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6209
      try {
6210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6211
      } catch (org.apache.thrift.TException te) {
6212
        throw new java.io.IOException(te);
6213
      }
6214
    }
6215
 
730 chandransh 6216
  }
6217
 
3430 rajveer 6218
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
6219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 6220
 
3430 rajveer 6221
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
6222
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
1139 chandransh 6223
 
3430 rajveer 6224
    private long providerId; // required
6225
    private String type; // required
1139 chandransh 6226
 
6227
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6228
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 6229
      PROVIDER_ID((short)1, "providerId"),
6230
      TYPE((short)2, "type");
1139 chandransh 6231
 
6232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6233
 
6234
      static {
6235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6236
          byName.put(field.getFieldName(), field);
6237
        }
6238
      }
6239
 
6240
      /**
6241
       * Find the _Fields constant that matches fieldId, or null if its not found.
6242
       */
6243
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6244
        switch(fieldId) {
6245
          case 1: // PROVIDER_ID
6246
            return PROVIDER_ID;
6247
          case 2: // TYPE
6248
            return TYPE;
6249
          default:
6250
            return null;
6251
        }
1139 chandransh 6252
      }
6253
 
6254
      /**
6255
       * Find the _Fields constant that matches fieldId, throwing an exception
6256
       * if it is not found.
6257
       */
6258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6259
        _Fields fields = findByThriftId(fieldId);
6260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6261
        return fields;
6262
      }
6263
 
6264
      /**
6265
       * Find the _Fields constant that matches name, or null if its not found.
6266
       */
6267
      public static _Fields findByName(String name) {
6268
        return byName.get(name);
6269
      }
6270
 
6271
      private final short _thriftId;
6272
      private final String _fieldName;
6273
 
6274
      _Fields(short thriftId, String fieldName) {
6275
        _thriftId = thriftId;
6276
        _fieldName = fieldName;
6277
      }
6278
 
6279
      public short getThriftFieldId() {
6280
        return _thriftId;
6281
      }
6282
 
6283
      public String getFieldName() {
6284
        return _fieldName;
6285
      }
6286
    }
6287
 
6288
    // isset id assignments
6289
    private static final int __PROVIDERID_ISSET_ID = 0;
6290
    private BitSet __isset_bit_vector = new BitSet(1);
6291
 
3430 rajveer 6292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 6293
    static {
3430 rajveer 6294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6295
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6297
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 6301
    }
6302
 
6303
    public getFreeAwbCount_args() {
6304
    }
6305
 
6306
    public getFreeAwbCount_args(
3103 chandransh 6307
      long providerId,
6308
      String type)
1139 chandransh 6309
    {
6310
      this();
6311
      this.providerId = providerId;
6312
      setProviderIdIsSet(true);
3103 chandransh 6313
      this.type = type;
1139 chandransh 6314
    }
6315
 
6316
    /**
6317
     * Performs a deep copy on <i>other</i>.
6318
     */
6319
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
6320
      __isset_bit_vector.clear();
6321
      __isset_bit_vector.or(other.__isset_bit_vector);
6322
      this.providerId = other.providerId;
3103 chandransh 6323
      if (other.isSetType()) {
6324
        this.type = other.type;
6325
      }
1139 chandransh 6326
    }
6327
 
6328
    public getFreeAwbCount_args deepCopy() {
6329
      return new getFreeAwbCount_args(this);
6330
    }
6331
 
3430 rajveer 6332
    @Override
6333
    public void clear() {
6334
      setProviderIdIsSet(false);
6335
      this.providerId = 0;
6336
      this.type = null;
1139 chandransh 6337
    }
6338
 
6339
    public long getProviderId() {
6340
      return this.providerId;
6341
    }
6342
 
3430 rajveer 6343
    public void setProviderId(long providerId) {
1139 chandransh 6344
      this.providerId = providerId;
6345
      setProviderIdIsSet(true);
6346
    }
6347
 
6348
    public void unsetProviderId() {
6349
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
6350
    }
6351
 
3430 rajveer 6352
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 6353
    public boolean isSetProviderId() {
6354
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
6355
    }
6356
 
6357
    public void setProviderIdIsSet(boolean value) {
6358
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
6359
    }
6360
 
3103 chandransh 6361
    public String getType() {
6362
      return this.type;
6363
    }
6364
 
3430 rajveer 6365
    public void setType(String type) {
3103 chandransh 6366
      this.type = type;
6367
    }
6368
 
6369
    public void unsetType() {
6370
      this.type = null;
6371
    }
6372
 
3430 rajveer 6373
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 6374
    public boolean isSetType() {
6375
      return this.type != null;
6376
    }
6377
 
6378
    public void setTypeIsSet(boolean value) {
6379
      if (!value) {
6380
        this.type = null;
6381
      }
6382
    }
6383
 
1139 chandransh 6384
    public void setFieldValue(_Fields field, Object value) {
6385
      switch (field) {
6386
      case PROVIDER_ID:
6387
        if (value == null) {
6388
          unsetProviderId();
6389
        } else {
6390
          setProviderId((Long)value);
6391
        }
6392
        break;
6393
 
3103 chandransh 6394
      case TYPE:
6395
        if (value == null) {
6396
          unsetType();
6397
        } else {
6398
          setType((String)value);
6399
        }
6400
        break;
6401
 
1139 chandransh 6402
      }
6403
    }
6404
 
6405
    public Object getFieldValue(_Fields field) {
6406
      switch (field) {
6407
      case PROVIDER_ID:
3430 rajveer 6408
        return Long.valueOf(getProviderId());
1139 chandransh 6409
 
3103 chandransh 6410
      case TYPE:
6411
        return getType();
6412
 
1139 chandransh 6413
      }
6414
      throw new IllegalStateException();
6415
    }
6416
 
3430 rajveer 6417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6418
    public boolean isSet(_Fields field) {
6419
      if (field == null) {
6420
        throw new IllegalArgumentException();
6421
      }
1139 chandransh 6422
 
6423
      switch (field) {
6424
      case PROVIDER_ID:
6425
        return isSetProviderId();
3103 chandransh 6426
      case TYPE:
6427
        return isSetType();
1139 chandransh 6428
      }
6429
      throw new IllegalStateException();
6430
    }
6431
 
6432
    @Override
6433
    public boolean equals(Object that) {
6434
      if (that == null)
6435
        return false;
6436
      if (that instanceof getFreeAwbCount_args)
6437
        return this.equals((getFreeAwbCount_args)that);
6438
      return false;
6439
    }
6440
 
6441
    public boolean equals(getFreeAwbCount_args that) {
6442
      if (that == null)
6443
        return false;
6444
 
6445
      boolean this_present_providerId = true;
6446
      boolean that_present_providerId = true;
6447
      if (this_present_providerId || that_present_providerId) {
6448
        if (!(this_present_providerId && that_present_providerId))
6449
          return false;
6450
        if (this.providerId != that.providerId)
6451
          return false;
6452
      }
6453
 
3103 chandransh 6454
      boolean this_present_type = true && this.isSetType();
6455
      boolean that_present_type = true && that.isSetType();
6456
      if (this_present_type || that_present_type) {
6457
        if (!(this_present_type && that_present_type))
6458
          return false;
6459
        if (!this.type.equals(that.type))
6460
          return false;
6461
      }
6462
 
1139 chandransh 6463
      return true;
6464
    }
6465
 
6466
    @Override
6467
    public int hashCode() {
6468
      return 0;
6469
    }
6470
 
6471
    public int compareTo(getFreeAwbCount_args other) {
6472
      if (!getClass().equals(other.getClass())) {
6473
        return getClass().getName().compareTo(other.getClass().getName());
6474
      }
6475
 
6476
      int lastComparison = 0;
6477
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
6478
 
3430 rajveer 6479
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 6480
      if (lastComparison != 0) {
6481
        return lastComparison;
6482
      }
3430 rajveer 6483
      if (isSetProviderId()) {
6484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6485
        if (lastComparison != 0) {
6486
          return lastComparison;
6487
        }
1139 chandransh 6488
      }
3430 rajveer 6489
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 6490
      if (lastComparison != 0) {
6491
        return lastComparison;
6492
      }
3430 rajveer 6493
      if (isSetType()) {
6494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6495
        if (lastComparison != 0) {
6496
          return lastComparison;
6497
        }
3103 chandransh 6498
      }
1139 chandransh 6499
      return 0;
6500
    }
6501
 
3430 rajveer 6502
    public _Fields fieldForId(int fieldId) {
6503
      return _Fields.findByThriftId(fieldId);
6504
    }
6505
 
6506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6507
      org.apache.thrift.protocol.TField field;
1139 chandransh 6508
      iprot.readStructBegin();
6509
      while (true)
6510
      {
6511
        field = iprot.readFieldBegin();
3430 rajveer 6512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 6513
          break;
6514
        }
3430 rajveer 6515
        switch (field.id) {
6516
          case 1: // PROVIDER_ID
6517
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6518
              this.providerId = iprot.readI64();
6519
              setProviderIdIsSet(true);
6520
            } else { 
6521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6522
            }
6523
            break;
6524
          case 2: // TYPE
6525
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6526
              this.type = iprot.readString();
6527
            } else { 
6528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6529
            }
6530
            break;
6531
          default:
6532
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 6533
        }
3430 rajveer 6534
        iprot.readFieldEnd();
1139 chandransh 6535
      }
6536
      iprot.readStructEnd();
6537
      validate();
6538
    }
6539
 
3430 rajveer 6540
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 6541
      validate();
6542
 
6543
      oprot.writeStructBegin(STRUCT_DESC);
6544
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6545
      oprot.writeI64(this.providerId);
6546
      oprot.writeFieldEnd();
3103 chandransh 6547
      if (this.type != null) {
6548
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6549
        oprot.writeString(this.type);
6550
        oprot.writeFieldEnd();
6551
      }
1139 chandransh 6552
      oprot.writeFieldStop();
6553
      oprot.writeStructEnd();
6554
    }
6555
 
6556
    @Override
6557
    public String toString() {
6558
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
6559
      boolean first = true;
6560
 
6561
      sb.append("providerId:");
6562
      sb.append(this.providerId);
6563
      first = false;
3103 chandransh 6564
      if (!first) sb.append(", ");
6565
      sb.append("type:");
6566
      if (this.type == null) {
6567
        sb.append("null");
6568
      } else {
6569
        sb.append(this.type);
6570
      }
6571
      first = false;
1139 chandransh 6572
      sb.append(")");
6573
      return sb.toString();
6574
    }
6575
 
3430 rajveer 6576
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 6577
      // check for required fields
6578
    }
6579
 
3430 rajveer 6580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6581
      try {
6582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6583
      } catch (org.apache.thrift.TException te) {
6584
        throw new java.io.IOException(te);
6585
      }
6586
    }
6587
 
6588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6589
      try {
6590
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6591
      } catch (org.apache.thrift.TException te) {
6592
        throw new java.io.IOException(te);
6593
      }
6594
    }
6595
 
1139 chandransh 6596
  }
6597
 
3430 rajveer 6598
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
6599
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 6600
 
3430 rajveer 6601
    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);
1139 chandransh 6602
 
3430 rajveer 6603
    private long success; // required
1139 chandransh 6604
 
6605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 6607
      SUCCESS((short)0, "success");
6608
 
6609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6610
 
6611
      static {
6612
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6613
          byName.put(field.getFieldName(), field);
6614
        }
6615
      }
6616
 
6617
      /**
6618
       * Find the _Fields constant that matches fieldId, or null if its not found.
6619
       */
6620
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6621
        switch(fieldId) {
6622
          case 0: // SUCCESS
6623
            return SUCCESS;
6624
          default:
6625
            return null;
6626
        }
1139 chandransh 6627
      }
6628
 
6629
      /**
6630
       * Find the _Fields constant that matches fieldId, throwing an exception
6631
       * if it is not found.
6632
       */
6633
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6634
        _Fields fields = findByThriftId(fieldId);
6635
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6636
        return fields;
6637
      }
6638
 
6639
      /**
6640
       * Find the _Fields constant that matches name, or null if its not found.
6641
       */
6642
      public static _Fields findByName(String name) {
6643
        return byName.get(name);
6644
      }
6645
 
6646
      private final short _thriftId;
6647
      private final String _fieldName;
6648
 
6649
      _Fields(short thriftId, String fieldName) {
6650
        _thriftId = thriftId;
6651
        _fieldName = fieldName;
6652
      }
6653
 
6654
      public short getThriftFieldId() {
6655
        return _thriftId;
6656
      }
6657
 
6658
      public String getFieldName() {
6659
        return _fieldName;
6660
      }
6661
    }
6662
 
6663
    // isset id assignments
6664
    private static final int __SUCCESS_ISSET_ID = 0;
6665
    private BitSet __isset_bit_vector = new BitSet(1);
6666
 
3430 rajveer 6667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 6668
    static {
3430 rajveer 6669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6670
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 6674
    }
6675
 
6676
    public getFreeAwbCount_result() {
6677
    }
6678
 
6679
    public getFreeAwbCount_result(
6680
      long success)
6681
    {
6682
      this();
6683
      this.success = success;
6684
      setSuccessIsSet(true);
6685
    }
6686
 
6687
    /**
6688
     * Performs a deep copy on <i>other</i>.
6689
     */
6690
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
6691
      __isset_bit_vector.clear();
6692
      __isset_bit_vector.or(other.__isset_bit_vector);
6693
      this.success = other.success;
6694
    }
6695
 
6696
    public getFreeAwbCount_result deepCopy() {
6697
      return new getFreeAwbCount_result(this);
6698
    }
6699
 
3430 rajveer 6700
    @Override
6701
    public void clear() {
6702
      setSuccessIsSet(false);
6703
      this.success = 0;
1139 chandransh 6704
    }
6705
 
6706
    public long getSuccess() {
6707
      return this.success;
6708
    }
6709
 
3430 rajveer 6710
    public void setSuccess(long success) {
1139 chandransh 6711
      this.success = success;
6712
      setSuccessIsSet(true);
6713
    }
6714
 
6715
    public void unsetSuccess() {
6716
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6717
    }
6718
 
3430 rajveer 6719
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 6720
    public boolean isSetSuccess() {
6721
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6722
    }
6723
 
6724
    public void setSuccessIsSet(boolean value) {
6725
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
6726
    }
6727
 
6728
    public void setFieldValue(_Fields field, Object value) {
6729
      switch (field) {
6730
      case SUCCESS:
6731
        if (value == null) {
6732
          unsetSuccess();
6733
        } else {
6734
          setSuccess((Long)value);
6735
        }
6736
        break;
6737
 
6738
      }
6739
    }
6740
 
6741
    public Object getFieldValue(_Fields field) {
6742
      switch (field) {
6743
      case SUCCESS:
3430 rajveer 6744
        return Long.valueOf(getSuccess());
1139 chandransh 6745
 
6746
      }
6747
      throw new IllegalStateException();
6748
    }
6749
 
3430 rajveer 6750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6751
    public boolean isSet(_Fields field) {
6752
      if (field == null) {
6753
        throw new IllegalArgumentException();
6754
      }
1139 chandransh 6755
 
6756
      switch (field) {
6757
      case SUCCESS:
6758
        return isSetSuccess();
6759
      }
6760
      throw new IllegalStateException();
6761
    }
6762
 
6763
    @Override
6764
    public boolean equals(Object that) {
6765
      if (that == null)
6766
        return false;
6767
      if (that instanceof getFreeAwbCount_result)
6768
        return this.equals((getFreeAwbCount_result)that);
6769
      return false;
6770
    }
6771
 
6772
    public boolean equals(getFreeAwbCount_result that) {
6773
      if (that == null)
6774
        return false;
6775
 
6776
      boolean this_present_success = true;
6777
      boolean that_present_success = true;
6778
      if (this_present_success || that_present_success) {
6779
        if (!(this_present_success && that_present_success))
6780
          return false;
6781
        if (this.success != that.success)
6782
          return false;
6783
      }
6784
 
6785
      return true;
6786
    }
6787
 
6788
    @Override
6789
    public int hashCode() {
6790
      return 0;
6791
    }
6792
 
6793
    public int compareTo(getFreeAwbCount_result other) {
6794
      if (!getClass().equals(other.getClass())) {
6795
        return getClass().getName().compareTo(other.getClass().getName());
6796
      }
6797
 
6798
      int lastComparison = 0;
6799
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
6800
 
3430 rajveer 6801
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 6802
      if (lastComparison != 0) {
6803
        return lastComparison;
6804
      }
3430 rajveer 6805
      if (isSetSuccess()) {
6806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6807
        if (lastComparison != 0) {
6808
          return lastComparison;
6809
        }
1139 chandransh 6810
      }
6811
      return 0;
6812
    }
6813
 
3430 rajveer 6814
    public _Fields fieldForId(int fieldId) {
6815
      return _Fields.findByThriftId(fieldId);
6816
    }
6817
 
6818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6819
      org.apache.thrift.protocol.TField field;
1139 chandransh 6820
      iprot.readStructBegin();
6821
      while (true)
6822
      {
6823
        field = iprot.readFieldBegin();
3430 rajveer 6824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 6825
          break;
6826
        }
3430 rajveer 6827
        switch (field.id) {
6828
          case 0: // SUCCESS
6829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6830
              this.success = iprot.readI64();
6831
              setSuccessIsSet(true);
6832
            } else { 
6833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6834
            }
6835
            break;
6836
          default:
6837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 6838
        }
3430 rajveer 6839
        iprot.readFieldEnd();
1139 chandransh 6840
      }
6841
      iprot.readStructEnd();
6842
      validate();
6843
    }
6844
 
3430 rajveer 6845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 6846
      oprot.writeStructBegin(STRUCT_DESC);
6847
 
6848
      if (this.isSetSuccess()) {
6849
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6850
        oprot.writeI64(this.success);
6851
        oprot.writeFieldEnd();
6852
      }
6853
      oprot.writeFieldStop();
6854
      oprot.writeStructEnd();
6855
    }
6856
 
6857
    @Override
6858
    public String toString() {
6859
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
6860
      boolean first = true;
6861
 
6862
      sb.append("success:");
6863
      sb.append(this.success);
6864
      first = false;
6865
      sb.append(")");
6866
      return sb.toString();
6867
    }
6868
 
3430 rajveer 6869
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 6870
      // check for required fields
6871
    }
6872
 
3430 rajveer 6873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6874
      try {
6875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6876
      } catch (org.apache.thrift.TException te) {
6877
        throw new java.io.IOException(te);
6878
      }
6879
    }
6880
 
6881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6882
      try {
6883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6884
      } catch (org.apache.thrift.TException te) {
6885
        throw new java.io.IOException(te);
6886
      }
6887
    }
6888
 
1139 chandransh 6889
  }
6890
 
3430 rajveer 6891
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
6892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 6893
 
3430 rajveer 6894
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)1);
6895
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)2);
1730 ankur.sing 6896
 
3430 rajveer 6897
    private long fromDate; // required
6898
    private long toDate; // required
1730 ankur.sing 6899
 
6900
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6901
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 6902
      FROM_DATE((short)1, "fromDate"),
6903
      TO_DATE((short)2, "toDate");
6904
 
6905
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6906
 
6907
      static {
6908
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6909
          byName.put(field.getFieldName(), field);
6910
        }
6911
      }
6912
 
6913
      /**
6914
       * Find the _Fields constant that matches fieldId, or null if its not found.
6915
       */
6916
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6917
        switch(fieldId) {
6918
          case 1: // FROM_DATE
6919
            return FROM_DATE;
6920
          case 2: // TO_DATE
6921
            return TO_DATE;
6922
          default:
6923
            return null;
6924
        }
1730 ankur.sing 6925
      }
6926
 
6927
      /**
6928
       * Find the _Fields constant that matches fieldId, throwing an exception
6929
       * if it is not found.
6930
       */
6931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6932
        _Fields fields = findByThriftId(fieldId);
6933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6934
        return fields;
6935
      }
6936
 
6937
      /**
6938
       * Find the _Fields constant that matches name, or null if its not found.
6939
       */
6940
      public static _Fields findByName(String name) {
6941
        return byName.get(name);
6942
      }
6943
 
6944
      private final short _thriftId;
6945
      private final String _fieldName;
6946
 
6947
      _Fields(short thriftId, String fieldName) {
6948
        _thriftId = thriftId;
6949
        _fieldName = fieldName;
6950
      }
6951
 
6952
      public short getThriftFieldId() {
6953
        return _thriftId;
6954
      }
6955
 
6956
      public String getFieldName() {
6957
        return _fieldName;
6958
      }
6959
    }
6960
 
6961
    // isset id assignments
6962
    private static final int __FROMDATE_ISSET_ID = 0;
6963
    private static final int __TODATE_ISSET_ID = 1;
6964
    private BitSet __isset_bit_vector = new BitSet(2);
6965
 
3430 rajveer 6966
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 6967
    static {
3430 rajveer 6968
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6969
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6971
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 6975
    }
6976
 
6977
    public getHolidays_args() {
6978
    }
6979
 
6980
    public getHolidays_args(
6981
      long fromDate,
6982
      long toDate)
6983
    {
6984
      this();
6985
      this.fromDate = fromDate;
6986
      setFromDateIsSet(true);
6987
      this.toDate = toDate;
6988
      setToDateIsSet(true);
6989
    }
6990
 
6991
    /**
6992
     * Performs a deep copy on <i>other</i>.
6993
     */
6994
    public getHolidays_args(getHolidays_args other) {
6995
      __isset_bit_vector.clear();
6996
      __isset_bit_vector.or(other.__isset_bit_vector);
6997
      this.fromDate = other.fromDate;
6998
      this.toDate = other.toDate;
6999
    }
7000
 
7001
    public getHolidays_args deepCopy() {
7002
      return new getHolidays_args(this);
7003
    }
7004
 
3430 rajveer 7005
    @Override
7006
    public void clear() {
7007
      setFromDateIsSet(false);
7008
      this.fromDate = 0;
7009
      setToDateIsSet(false);
7010
      this.toDate = 0;
1730 ankur.sing 7011
    }
7012
 
7013
    public long getFromDate() {
7014
      return this.fromDate;
7015
    }
7016
 
3430 rajveer 7017
    public void setFromDate(long fromDate) {
1730 ankur.sing 7018
      this.fromDate = fromDate;
7019
      setFromDateIsSet(true);
7020
    }
7021
 
7022
    public void unsetFromDate() {
7023
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
7024
    }
7025
 
3430 rajveer 7026
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7027
    public boolean isSetFromDate() {
7028
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
7029
    }
7030
 
7031
    public void setFromDateIsSet(boolean value) {
7032
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
7033
    }
7034
 
7035
    public long getToDate() {
7036
      return this.toDate;
7037
    }
7038
 
3430 rajveer 7039
    public void setToDate(long toDate) {
1730 ankur.sing 7040
      this.toDate = toDate;
7041
      setToDateIsSet(true);
7042
    }
7043
 
7044
    public void unsetToDate() {
7045
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
7046
    }
7047
 
3430 rajveer 7048
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7049
    public boolean isSetToDate() {
7050
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
7051
    }
7052
 
7053
    public void setToDateIsSet(boolean value) {
7054
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
7055
    }
7056
 
7057
    public void setFieldValue(_Fields field, Object value) {
7058
      switch (field) {
7059
      case FROM_DATE:
7060
        if (value == null) {
7061
          unsetFromDate();
7062
        } else {
7063
          setFromDate((Long)value);
7064
        }
7065
        break;
7066
 
7067
      case TO_DATE:
7068
        if (value == null) {
7069
          unsetToDate();
7070
        } else {
7071
          setToDate((Long)value);
7072
        }
7073
        break;
7074
 
7075
      }
7076
    }
7077
 
7078
    public Object getFieldValue(_Fields field) {
7079
      switch (field) {
7080
      case FROM_DATE:
3430 rajveer 7081
        return Long.valueOf(getFromDate());
1730 ankur.sing 7082
 
7083
      case TO_DATE:
3430 rajveer 7084
        return Long.valueOf(getToDate());
1730 ankur.sing 7085
 
7086
      }
7087
      throw new IllegalStateException();
7088
    }
7089
 
3430 rajveer 7090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7091
    public boolean isSet(_Fields field) {
7092
      if (field == null) {
7093
        throw new IllegalArgumentException();
7094
      }
1730 ankur.sing 7095
 
7096
      switch (field) {
7097
      case FROM_DATE:
7098
        return isSetFromDate();
7099
      case TO_DATE:
7100
        return isSetToDate();
7101
      }
7102
      throw new IllegalStateException();
7103
    }
7104
 
7105
    @Override
7106
    public boolean equals(Object that) {
7107
      if (that == null)
7108
        return false;
7109
      if (that instanceof getHolidays_args)
7110
        return this.equals((getHolidays_args)that);
7111
      return false;
7112
    }
7113
 
7114
    public boolean equals(getHolidays_args that) {
7115
      if (that == null)
7116
        return false;
7117
 
7118
      boolean this_present_fromDate = true;
7119
      boolean that_present_fromDate = true;
7120
      if (this_present_fromDate || that_present_fromDate) {
7121
        if (!(this_present_fromDate && that_present_fromDate))
7122
          return false;
7123
        if (this.fromDate != that.fromDate)
7124
          return false;
7125
      }
7126
 
7127
      boolean this_present_toDate = true;
7128
      boolean that_present_toDate = true;
7129
      if (this_present_toDate || that_present_toDate) {
7130
        if (!(this_present_toDate && that_present_toDate))
7131
          return false;
7132
        if (this.toDate != that.toDate)
7133
          return false;
7134
      }
7135
 
7136
      return true;
7137
    }
7138
 
7139
    @Override
7140
    public int hashCode() {
7141
      return 0;
7142
    }
7143
 
7144
    public int compareTo(getHolidays_args other) {
7145
      if (!getClass().equals(other.getClass())) {
7146
        return getClass().getName().compareTo(other.getClass().getName());
7147
      }
7148
 
7149
      int lastComparison = 0;
7150
      getHolidays_args typedOther = (getHolidays_args)other;
7151
 
3430 rajveer 7152
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 7153
      if (lastComparison != 0) {
7154
        return lastComparison;
7155
      }
3430 rajveer 7156
      if (isSetFromDate()) {
7157
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
7158
        if (lastComparison != 0) {
7159
          return lastComparison;
7160
        }
1730 ankur.sing 7161
      }
3430 rajveer 7162
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 7163
      if (lastComparison != 0) {
7164
        return lastComparison;
7165
      }
3430 rajveer 7166
      if (isSetToDate()) {
7167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
7168
        if (lastComparison != 0) {
7169
          return lastComparison;
7170
        }
1730 ankur.sing 7171
      }
7172
      return 0;
7173
    }
7174
 
3430 rajveer 7175
    public _Fields fieldForId(int fieldId) {
7176
      return _Fields.findByThriftId(fieldId);
7177
    }
7178
 
7179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7180
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 7181
      iprot.readStructBegin();
7182
      while (true)
7183
      {
7184
        field = iprot.readFieldBegin();
3430 rajveer 7185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 7186
          break;
7187
        }
3430 rajveer 7188
        switch (field.id) {
7189
          case 1: // FROM_DATE
7190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7191
              this.fromDate = iprot.readI64();
7192
              setFromDateIsSet(true);
7193
            } else { 
7194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7195
            }
7196
            break;
7197
          case 2: // TO_DATE
7198
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7199
              this.toDate = iprot.readI64();
7200
              setToDateIsSet(true);
7201
            } else { 
7202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7203
            }
7204
            break;
7205
          default:
7206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 7207
        }
3430 rajveer 7208
        iprot.readFieldEnd();
1730 ankur.sing 7209
      }
7210
      iprot.readStructEnd();
7211
      validate();
7212
    }
7213
 
3430 rajveer 7214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 7215
      validate();
7216
 
7217
      oprot.writeStructBegin(STRUCT_DESC);
7218
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7219
      oprot.writeI64(this.fromDate);
7220
      oprot.writeFieldEnd();
7221
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
7222
      oprot.writeI64(this.toDate);
7223
      oprot.writeFieldEnd();
7224
      oprot.writeFieldStop();
7225
      oprot.writeStructEnd();
7226
    }
7227
 
7228
    @Override
7229
    public String toString() {
7230
      StringBuilder sb = new StringBuilder("getHolidays_args(");
7231
      boolean first = true;
7232
 
7233
      sb.append("fromDate:");
7234
      sb.append(this.fromDate);
7235
      first = false;
7236
      if (!first) sb.append(", ");
7237
      sb.append("toDate:");
7238
      sb.append(this.toDate);
7239
      first = false;
7240
      sb.append(")");
7241
      return sb.toString();
7242
    }
7243
 
3430 rajveer 7244
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 7245
      // check for required fields
7246
    }
7247
 
3430 rajveer 7248
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7249
      try {
7250
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7251
      } catch (org.apache.thrift.TException te) {
7252
        throw new java.io.IOException(te);
7253
      }
7254
    }
7255
 
7256
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7257
      try {
7258
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7259
        __isset_bit_vector = new BitSet(1);
7260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7261
      } catch (org.apache.thrift.TException te) {
7262
        throw new java.io.IOException(te);
7263
      }
7264
    }
7265
 
1730 ankur.sing 7266
  }
7267
 
3430 rajveer 7268
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
7269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 7270
 
3430 rajveer 7271
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
1730 ankur.sing 7272
 
3430 rajveer 7273
    private List<Long> success; // required
1730 ankur.sing 7274
 
7275
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7276
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 7277
      SUCCESS((short)0, "success");
7278
 
7279
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7280
 
7281
      static {
7282
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7283
          byName.put(field.getFieldName(), field);
7284
        }
7285
      }
7286
 
7287
      /**
7288
       * Find the _Fields constant that matches fieldId, or null if its not found.
7289
       */
7290
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7291
        switch(fieldId) {
7292
          case 0: // SUCCESS
7293
            return SUCCESS;
7294
          default:
7295
            return null;
7296
        }
1730 ankur.sing 7297
      }
7298
 
7299
      /**
7300
       * Find the _Fields constant that matches fieldId, throwing an exception
7301
       * if it is not found.
7302
       */
7303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7304
        _Fields fields = findByThriftId(fieldId);
7305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7306
        return fields;
7307
      }
7308
 
7309
      /**
7310
       * Find the _Fields constant that matches name, or null if its not found.
7311
       */
7312
      public static _Fields findByName(String name) {
7313
        return byName.get(name);
7314
      }
7315
 
7316
      private final short _thriftId;
7317
      private final String _fieldName;
7318
 
7319
      _Fields(short thriftId, String fieldName) {
7320
        _thriftId = thriftId;
7321
        _fieldName = fieldName;
7322
      }
7323
 
7324
      public short getThriftFieldId() {
7325
        return _thriftId;
7326
      }
7327
 
7328
      public String getFieldName() {
7329
        return _fieldName;
7330
      }
7331
    }
7332
 
7333
    // isset id assignments
7334
 
3430 rajveer 7335
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 7336
    static {
3430 rajveer 7337
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7338
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7339
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7340
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
7341
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7342
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 7343
    }
7344
 
7345
    public getHolidays_result() {
7346
    }
7347
 
7348
    public getHolidays_result(
7349
      List<Long> success)
7350
    {
7351
      this();
7352
      this.success = success;
7353
    }
7354
 
7355
    /**
7356
     * Performs a deep copy on <i>other</i>.
7357
     */
7358
    public getHolidays_result(getHolidays_result other) {
7359
      if (other.isSetSuccess()) {
7360
        List<Long> __this__success = new ArrayList<Long>();
7361
        for (Long other_element : other.success) {
7362
          __this__success.add(other_element);
7363
        }
7364
        this.success = __this__success;
7365
      }
7366
    }
7367
 
7368
    public getHolidays_result deepCopy() {
7369
      return new getHolidays_result(this);
7370
    }
7371
 
3430 rajveer 7372
    @Override
7373
    public void clear() {
7374
      this.success = null;
1730 ankur.sing 7375
    }
7376
 
7377
    public int getSuccessSize() {
7378
      return (this.success == null) ? 0 : this.success.size();
7379
    }
7380
 
7381
    public java.util.Iterator<Long> getSuccessIterator() {
7382
      return (this.success == null) ? null : this.success.iterator();
7383
    }
7384
 
7385
    public void addToSuccess(long elem) {
7386
      if (this.success == null) {
7387
        this.success = new ArrayList<Long>();
7388
      }
7389
      this.success.add(elem);
7390
    }
7391
 
7392
    public List<Long> getSuccess() {
7393
      return this.success;
7394
    }
7395
 
3430 rajveer 7396
    public void setSuccess(List<Long> success) {
1730 ankur.sing 7397
      this.success = success;
7398
    }
7399
 
7400
    public void unsetSuccess() {
7401
      this.success = null;
7402
    }
7403
 
3430 rajveer 7404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 7405
    public boolean isSetSuccess() {
7406
      return this.success != null;
7407
    }
7408
 
7409
    public void setSuccessIsSet(boolean value) {
7410
      if (!value) {
7411
        this.success = null;
7412
      }
7413
    }
7414
 
7415
    public void setFieldValue(_Fields field, Object value) {
7416
      switch (field) {
7417
      case SUCCESS:
7418
        if (value == null) {
7419
          unsetSuccess();
7420
        } else {
7421
          setSuccess((List<Long>)value);
7422
        }
7423
        break;
7424
 
7425
      }
7426
    }
7427
 
7428
    public Object getFieldValue(_Fields field) {
7429
      switch (field) {
7430
      case SUCCESS:
7431
        return getSuccess();
7432
 
7433
      }
7434
      throw new IllegalStateException();
7435
    }
7436
 
3430 rajveer 7437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7438
    public boolean isSet(_Fields field) {
7439
      if (field == null) {
7440
        throw new IllegalArgumentException();
7441
      }
1730 ankur.sing 7442
 
7443
      switch (field) {
7444
      case SUCCESS:
7445
        return isSetSuccess();
7446
      }
7447
      throw new IllegalStateException();
7448
    }
7449
 
7450
    @Override
7451
    public boolean equals(Object that) {
7452
      if (that == null)
7453
        return false;
7454
      if (that instanceof getHolidays_result)
7455
        return this.equals((getHolidays_result)that);
7456
      return false;
7457
    }
7458
 
7459
    public boolean equals(getHolidays_result that) {
7460
      if (that == null)
7461
        return false;
7462
 
7463
      boolean this_present_success = true && this.isSetSuccess();
7464
      boolean that_present_success = true && that.isSetSuccess();
7465
      if (this_present_success || that_present_success) {
7466
        if (!(this_present_success && that_present_success))
7467
          return false;
7468
        if (!this.success.equals(that.success))
7469
          return false;
7470
      }
7471
 
7472
      return true;
7473
    }
7474
 
7475
    @Override
7476
    public int hashCode() {
7477
      return 0;
7478
    }
7479
 
7480
    public int compareTo(getHolidays_result other) {
7481
      if (!getClass().equals(other.getClass())) {
7482
        return getClass().getName().compareTo(other.getClass().getName());
7483
      }
7484
 
7485
      int lastComparison = 0;
7486
      getHolidays_result typedOther = (getHolidays_result)other;
7487
 
3430 rajveer 7488
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 7489
      if (lastComparison != 0) {
7490
        return lastComparison;
7491
      }
3430 rajveer 7492
      if (isSetSuccess()) {
7493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7494
        if (lastComparison != 0) {
7495
          return lastComparison;
7496
        }
1730 ankur.sing 7497
      }
7498
      return 0;
7499
    }
7500
 
3430 rajveer 7501
    public _Fields fieldForId(int fieldId) {
7502
      return _Fields.findByThriftId(fieldId);
7503
    }
7504
 
7505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7506
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 7507
      iprot.readStructBegin();
7508
      while (true)
7509
      {
7510
        field = iprot.readFieldBegin();
3430 rajveer 7511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 7512
          break;
7513
        }
3430 rajveer 7514
        switch (field.id) {
7515
          case 0: // SUCCESS
7516
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7517
              {
7518
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
7519
                this.success = new ArrayList<Long>(_list13.size);
7520
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
1730 ankur.sing 7521
                {
3430 rajveer 7522
                  long _elem15; // required
7523
                  _elem15 = iprot.readI64();
7524
                  this.success.add(_elem15);
1730 ankur.sing 7525
                }
3430 rajveer 7526
                iprot.readListEnd();
1730 ankur.sing 7527
              }
3430 rajveer 7528
            } else { 
7529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7530
            }
7531
            break;
7532
          default:
7533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 7534
        }
3430 rajveer 7535
        iprot.readFieldEnd();
1730 ankur.sing 7536
      }
7537
      iprot.readStructEnd();
7538
      validate();
7539
    }
7540
 
3430 rajveer 7541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 7542
      oprot.writeStructBegin(STRUCT_DESC);
7543
 
7544
      if (this.isSetSuccess()) {
7545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7546
        {
3430 rajveer 7547
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
3044 chandransh 7548
          for (long _iter16 : this.success)
1730 ankur.sing 7549
          {
3044 chandransh 7550
            oprot.writeI64(_iter16);
1730 ankur.sing 7551
          }
7552
          oprot.writeListEnd();
7553
        }
7554
        oprot.writeFieldEnd();
7555
      }
7556
      oprot.writeFieldStop();
7557
      oprot.writeStructEnd();
7558
    }
7559
 
7560
    @Override
7561
    public String toString() {
7562
      StringBuilder sb = new StringBuilder("getHolidays_result(");
7563
      boolean first = true;
7564
 
7565
      sb.append("success:");
7566
      if (this.success == null) {
7567
        sb.append("null");
7568
      } else {
7569
        sb.append(this.success);
7570
      }
7571
      first = false;
7572
      sb.append(")");
7573
      return sb.toString();
7574
    }
7575
 
3430 rajveer 7576
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 7577
      // check for required fields
7578
    }
7579
 
3430 rajveer 7580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7581
      try {
7582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7583
      } catch (org.apache.thrift.TException te) {
7584
        throw new java.io.IOException(te);
7585
      }
7586
    }
7587
 
7588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7589
      try {
7590
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7591
      } catch (org.apache.thrift.TException te) {
7592
        throw new java.io.IOException(te);
7593
      }
7594
    }
7595
 
1730 ankur.sing 7596
  }
7597
 
3430 rajveer 7598
  public static class isCodAllowed_args implements org.apache.thrift.TBase<isCodAllowed_args, isCodAllowed_args._Fields>, java.io.Serializable, Cloneable   {
7599
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCodAllowed_args");
3061 chandransh 7600
 
3430 rajveer 7601
    private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
3061 chandransh 7602
 
3430 rajveer 7603
    private String destination_pincode; // required
3061 chandransh 7604
 
7605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 7607
      DESTINATION_PINCODE((short)1, "destination_pincode");
7608
 
7609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7610
 
7611
      static {
7612
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7613
          byName.put(field.getFieldName(), field);
7614
        }
7615
      }
7616
 
7617
      /**
7618
       * Find the _Fields constant that matches fieldId, or null if its not found.
7619
       */
7620
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7621
        switch(fieldId) {
7622
          case 1: // DESTINATION_PINCODE
7623
            return DESTINATION_PINCODE;
7624
          default:
7625
            return null;
7626
        }
3061 chandransh 7627
      }
7628
 
7629
      /**
7630
       * Find the _Fields constant that matches fieldId, throwing an exception
7631
       * if it is not found.
7632
       */
7633
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7634
        _Fields fields = findByThriftId(fieldId);
7635
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7636
        return fields;
7637
      }
7638
 
7639
      /**
7640
       * Find the _Fields constant that matches name, or null if its not found.
7641
       */
7642
      public static _Fields findByName(String name) {
7643
        return byName.get(name);
7644
      }
7645
 
7646
      private final short _thriftId;
7647
      private final String _fieldName;
7648
 
7649
      _Fields(short thriftId, String fieldName) {
7650
        _thriftId = thriftId;
7651
        _fieldName = fieldName;
7652
      }
7653
 
7654
      public short getThriftFieldId() {
7655
        return _thriftId;
7656
      }
7657
 
7658
      public String getFieldName() {
7659
        return _fieldName;
7660
      }
7661
    }
7662
 
7663
    // isset id assignments
7664
 
3430 rajveer 7665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 7666
    static {
3430 rajveer 7667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7668
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7669
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7670
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7671
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCodAllowed_args.class, metaDataMap);
3061 chandransh 7672
    }
7673
 
7674
    public isCodAllowed_args() {
7675
    }
7676
 
7677
    public isCodAllowed_args(
7678
      String destination_pincode)
7679
    {
7680
      this();
7681
      this.destination_pincode = destination_pincode;
7682
    }
7683
 
7684
    /**
7685
     * Performs a deep copy on <i>other</i>.
7686
     */
7687
    public isCodAllowed_args(isCodAllowed_args other) {
7688
      if (other.isSetDestination_pincode()) {
7689
        this.destination_pincode = other.destination_pincode;
7690
      }
7691
    }
7692
 
7693
    public isCodAllowed_args deepCopy() {
7694
      return new isCodAllowed_args(this);
7695
    }
7696
 
3430 rajveer 7697
    @Override
7698
    public void clear() {
7699
      this.destination_pincode = null;
3061 chandransh 7700
    }
7701
 
7702
    public String getDestination_pincode() {
7703
      return this.destination_pincode;
7704
    }
7705
 
3430 rajveer 7706
    public void setDestination_pincode(String destination_pincode) {
3061 chandransh 7707
      this.destination_pincode = destination_pincode;
7708
    }
7709
 
7710
    public void unsetDestination_pincode() {
7711
      this.destination_pincode = null;
7712
    }
7713
 
3430 rajveer 7714
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
3061 chandransh 7715
    public boolean isSetDestination_pincode() {
7716
      return this.destination_pincode != null;
7717
    }
7718
 
7719
    public void setDestination_pincodeIsSet(boolean value) {
7720
      if (!value) {
7721
        this.destination_pincode = null;
7722
      }
7723
    }
7724
 
7725
    public void setFieldValue(_Fields field, Object value) {
7726
      switch (field) {
7727
      case DESTINATION_PINCODE:
7728
        if (value == null) {
7729
          unsetDestination_pincode();
7730
        } else {
7731
          setDestination_pincode((String)value);
7732
        }
7733
        break;
7734
 
7735
      }
7736
    }
7737
 
7738
    public Object getFieldValue(_Fields field) {
7739
      switch (field) {
7740
      case DESTINATION_PINCODE:
7741
        return getDestination_pincode();
7742
 
7743
      }
7744
      throw new IllegalStateException();
7745
    }
7746
 
3430 rajveer 7747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7748
    public boolean isSet(_Fields field) {
7749
      if (field == null) {
7750
        throw new IllegalArgumentException();
7751
      }
3061 chandransh 7752
 
7753
      switch (field) {
7754
      case DESTINATION_PINCODE:
7755
        return isSetDestination_pincode();
7756
      }
7757
      throw new IllegalStateException();
7758
    }
7759
 
7760
    @Override
7761
    public boolean equals(Object that) {
7762
      if (that == null)
7763
        return false;
7764
      if (that instanceof isCodAllowed_args)
7765
        return this.equals((isCodAllowed_args)that);
7766
      return false;
7767
    }
7768
 
7769
    public boolean equals(isCodAllowed_args that) {
7770
      if (that == null)
7771
        return false;
7772
 
7773
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
7774
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
7775
      if (this_present_destination_pincode || that_present_destination_pincode) {
7776
        if (!(this_present_destination_pincode && that_present_destination_pincode))
7777
          return false;
7778
        if (!this.destination_pincode.equals(that.destination_pincode))
7779
          return false;
7780
      }
7781
 
7782
      return true;
7783
    }
7784
 
7785
    @Override
7786
    public int hashCode() {
7787
      return 0;
7788
    }
7789
 
7790
    public int compareTo(isCodAllowed_args other) {
7791
      if (!getClass().equals(other.getClass())) {
7792
        return getClass().getName().compareTo(other.getClass().getName());
7793
      }
7794
 
7795
      int lastComparison = 0;
7796
      isCodAllowed_args typedOther = (isCodAllowed_args)other;
7797
 
3430 rajveer 7798
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
3061 chandransh 7799
      if (lastComparison != 0) {
7800
        return lastComparison;
7801
      }
3430 rajveer 7802
      if (isSetDestination_pincode()) {
7803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
7804
        if (lastComparison != 0) {
7805
          return lastComparison;
7806
        }
3061 chandransh 7807
      }
7808
      return 0;
7809
    }
7810
 
3430 rajveer 7811
    public _Fields fieldForId(int fieldId) {
7812
      return _Fields.findByThriftId(fieldId);
7813
    }
7814
 
7815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7816
      org.apache.thrift.protocol.TField field;
3061 chandransh 7817
      iprot.readStructBegin();
7818
      while (true)
7819
      {
7820
        field = iprot.readFieldBegin();
3430 rajveer 7821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 7822
          break;
7823
        }
3430 rajveer 7824
        switch (field.id) {
7825
          case 1: // DESTINATION_PINCODE
7826
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7827
              this.destination_pincode = iprot.readString();
7828
            } else { 
7829
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7830
            }
7831
            break;
7832
          default:
7833
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 7834
        }
3430 rajveer 7835
        iprot.readFieldEnd();
3061 chandransh 7836
      }
7837
      iprot.readStructEnd();
7838
      validate();
7839
    }
7840
 
3430 rajveer 7841
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 7842
      validate();
7843
 
7844
      oprot.writeStructBegin(STRUCT_DESC);
7845
      if (this.destination_pincode != null) {
7846
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
7847
        oprot.writeString(this.destination_pincode);
7848
        oprot.writeFieldEnd();
7849
      }
7850
      oprot.writeFieldStop();
7851
      oprot.writeStructEnd();
7852
    }
7853
 
7854
    @Override
7855
    public String toString() {
7856
      StringBuilder sb = new StringBuilder("isCodAllowed_args(");
7857
      boolean first = true;
7858
 
7859
      sb.append("destination_pincode:");
7860
      if (this.destination_pincode == null) {
7861
        sb.append("null");
7862
      } else {
7863
        sb.append(this.destination_pincode);
7864
      }
7865
      first = false;
7866
      sb.append(")");
7867
      return sb.toString();
7868
    }
7869
 
3430 rajveer 7870
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 7871
      // check for required fields
7872
    }
7873
 
3430 rajveer 7874
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7875
      try {
7876
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7877
      } catch (org.apache.thrift.TException te) {
7878
        throw new java.io.IOException(te);
7879
      }
7880
    }
7881
 
7882
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7883
      try {
7884
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7885
      } catch (org.apache.thrift.TException te) {
7886
        throw new java.io.IOException(te);
7887
      }
7888
    }
7889
 
3061 chandransh 7890
  }
7891
 
3430 rajveer 7892
  public static class isCodAllowed_result implements org.apache.thrift.TBase<isCodAllowed_result, isCodAllowed_result._Fields>, java.io.Serializable, Cloneable   {
7893
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCodAllowed_result");
3061 chandransh 7894
 
3430 rajveer 7895
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
3061 chandransh 7896
 
3430 rajveer 7897
    private boolean success; // required
3061 chandransh 7898
 
7899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3061 chandransh 7901
      SUCCESS((short)0, "success");
7902
 
7903
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7904
 
7905
      static {
7906
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7907
          byName.put(field.getFieldName(), field);
7908
        }
7909
      }
7910
 
7911
      /**
7912
       * Find the _Fields constant that matches fieldId, or null if its not found.
7913
       */
7914
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7915
        switch(fieldId) {
7916
          case 0: // SUCCESS
7917
            return SUCCESS;
7918
          default:
7919
            return null;
7920
        }
3061 chandransh 7921
      }
7922
 
7923
      /**
7924
       * Find the _Fields constant that matches fieldId, throwing an exception
7925
       * if it is not found.
7926
       */
7927
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7928
        _Fields fields = findByThriftId(fieldId);
7929
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7930
        return fields;
7931
      }
7932
 
7933
      /**
7934
       * Find the _Fields constant that matches name, or null if its not found.
7935
       */
7936
      public static _Fields findByName(String name) {
7937
        return byName.get(name);
7938
      }
7939
 
7940
      private final short _thriftId;
7941
      private final String _fieldName;
7942
 
7943
      _Fields(short thriftId, String fieldName) {
7944
        _thriftId = thriftId;
7945
        _fieldName = fieldName;
7946
      }
7947
 
7948
      public short getThriftFieldId() {
7949
        return _thriftId;
7950
      }
7951
 
7952
      public String getFieldName() {
7953
        return _fieldName;
7954
      }
7955
    }
7956
 
7957
    // isset id assignments
7958
    private static final int __SUCCESS_ISSET_ID = 0;
7959
    private BitSet __isset_bit_vector = new BitSet(1);
7960
 
3430 rajveer 7961
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3061 chandransh 7962
    static {
3430 rajveer 7963
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7964
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7965
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCodAllowed_result.class, metaDataMap);
3061 chandransh 7968
    }
7969
 
7970
    public isCodAllowed_result() {
7971
    }
7972
 
7973
    public isCodAllowed_result(
7974
      boolean success)
7975
    {
7976
      this();
7977
      this.success = success;
7978
      setSuccessIsSet(true);
7979
    }
7980
 
7981
    /**
7982
     * Performs a deep copy on <i>other</i>.
7983
     */
7984
    public isCodAllowed_result(isCodAllowed_result other) {
7985
      __isset_bit_vector.clear();
7986
      __isset_bit_vector.or(other.__isset_bit_vector);
7987
      this.success = other.success;
7988
    }
7989
 
7990
    public isCodAllowed_result deepCopy() {
7991
      return new isCodAllowed_result(this);
7992
    }
7993
 
3430 rajveer 7994
    @Override
7995
    public void clear() {
7996
      setSuccessIsSet(false);
7997
      this.success = false;
3061 chandransh 7998
    }
7999
 
8000
    public boolean isSuccess() {
8001
      return this.success;
8002
    }
8003
 
3430 rajveer 8004
    public void setSuccess(boolean success) {
3061 chandransh 8005
      this.success = success;
8006
      setSuccessIsSet(true);
8007
    }
8008
 
8009
    public void unsetSuccess() {
8010
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8011
    }
8012
 
3430 rajveer 8013
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3061 chandransh 8014
    public boolean isSetSuccess() {
8015
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8016
    }
8017
 
8018
    public void setSuccessIsSet(boolean value) {
8019
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8020
    }
8021
 
8022
    public void setFieldValue(_Fields field, Object value) {
8023
      switch (field) {
8024
      case SUCCESS:
8025
        if (value == null) {
8026
          unsetSuccess();
8027
        } else {
8028
          setSuccess((Boolean)value);
8029
        }
8030
        break;
8031
 
8032
      }
8033
    }
8034
 
8035
    public Object getFieldValue(_Fields field) {
8036
      switch (field) {
8037
      case SUCCESS:
3430 rajveer 8038
        return Boolean.valueOf(isSuccess());
3061 chandransh 8039
 
8040
      }
8041
      throw new IllegalStateException();
8042
    }
8043
 
3430 rajveer 8044
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8045
    public boolean isSet(_Fields field) {
8046
      if (field == null) {
8047
        throw new IllegalArgumentException();
8048
      }
3061 chandransh 8049
 
8050
      switch (field) {
8051
      case SUCCESS:
8052
        return isSetSuccess();
8053
      }
8054
      throw new IllegalStateException();
8055
    }
8056
 
8057
    @Override
8058
    public boolean equals(Object that) {
8059
      if (that == null)
8060
        return false;
8061
      if (that instanceof isCodAllowed_result)
8062
        return this.equals((isCodAllowed_result)that);
8063
      return false;
8064
    }
8065
 
8066
    public boolean equals(isCodAllowed_result that) {
8067
      if (that == null)
8068
        return false;
8069
 
8070
      boolean this_present_success = true;
8071
      boolean that_present_success = true;
8072
      if (this_present_success || that_present_success) {
8073
        if (!(this_present_success && that_present_success))
8074
          return false;
8075
        if (this.success != that.success)
8076
          return false;
8077
      }
8078
 
8079
      return true;
8080
    }
8081
 
8082
    @Override
8083
    public int hashCode() {
8084
      return 0;
8085
    }
8086
 
8087
    public int compareTo(isCodAllowed_result other) {
8088
      if (!getClass().equals(other.getClass())) {
8089
        return getClass().getName().compareTo(other.getClass().getName());
8090
      }
8091
 
8092
      int lastComparison = 0;
8093
      isCodAllowed_result typedOther = (isCodAllowed_result)other;
8094
 
3430 rajveer 8095
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3061 chandransh 8096
      if (lastComparison != 0) {
8097
        return lastComparison;
8098
      }
3430 rajveer 8099
      if (isSetSuccess()) {
8100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8101
        if (lastComparison != 0) {
8102
          return lastComparison;
8103
        }
3061 chandransh 8104
      }
8105
      return 0;
8106
    }
8107
 
3430 rajveer 8108
    public _Fields fieldForId(int fieldId) {
8109
      return _Fields.findByThriftId(fieldId);
8110
    }
8111
 
8112
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8113
      org.apache.thrift.protocol.TField field;
3061 chandransh 8114
      iprot.readStructBegin();
8115
      while (true)
8116
      {
8117
        field = iprot.readFieldBegin();
3430 rajveer 8118
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3061 chandransh 8119
          break;
8120
        }
3430 rajveer 8121
        switch (field.id) {
8122
          case 0: // SUCCESS
8123
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8124
              this.success = iprot.readBool();
8125
              setSuccessIsSet(true);
8126
            } else { 
8127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8128
            }
8129
            break;
8130
          default:
8131
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061 chandransh 8132
        }
3430 rajveer 8133
        iprot.readFieldEnd();
3061 chandransh 8134
      }
8135
      iprot.readStructEnd();
8136
      validate();
8137
    }
8138
 
3430 rajveer 8139
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3061 chandransh 8140
      oprot.writeStructBegin(STRUCT_DESC);
8141
 
8142
      if (this.isSetSuccess()) {
8143
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8144
        oprot.writeBool(this.success);
8145
        oprot.writeFieldEnd();
8146
      }
8147
      oprot.writeFieldStop();
8148
      oprot.writeStructEnd();
8149
    }
8150
 
8151
    @Override
8152
    public String toString() {
8153
      StringBuilder sb = new StringBuilder("isCodAllowed_result(");
8154
      boolean first = true;
8155
 
8156
      sb.append("success:");
8157
      sb.append(this.success);
8158
      first = false;
8159
      sb.append(")");
8160
      return sb.toString();
8161
    }
8162
 
3430 rajveer 8163
    public void validate() throws org.apache.thrift.TException {
3061 chandransh 8164
      // check for required fields
8165
    }
8166
 
3430 rajveer 8167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8168
      try {
8169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8170
      } catch (org.apache.thrift.TException te) {
8171
        throw new java.io.IOException(te);
8172
      }
8173
    }
8174
 
8175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8176
      try {
8177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8178
      } catch (org.apache.thrift.TException te) {
8179
        throw new java.io.IOException(te);
8180
      }
8181
    }
8182
 
3061 chandransh 8183
  }
8184
 
4386 anupam.sin 8185
  public static class getAwbForNumber_args implements org.apache.thrift.TBase<getAwbForNumber_args, getAwbForNumber_args._Fields>, java.io.Serializable, Cloneable   {
8186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAwbForNumber_args");
8187
 
8188
    private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
8189
 
8190
    private String awbNumber; // required
8191
 
8192
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8193
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8194
      AWB_NUMBER((short)1, "awbNumber");
8195
 
8196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8197
 
8198
      static {
8199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8200
          byName.put(field.getFieldName(), field);
8201
        }
8202
      }
8203
 
8204
      /**
8205
       * Find the _Fields constant that matches fieldId, or null if its not found.
8206
       */
8207
      public static _Fields findByThriftId(int fieldId) {
8208
        switch(fieldId) {
8209
          case 1: // AWB_NUMBER
8210
            return AWB_NUMBER;
8211
          default:
8212
            return null;
8213
        }
8214
      }
8215
 
8216
      /**
8217
       * Find the _Fields constant that matches fieldId, throwing an exception
8218
       * if it is not found.
8219
       */
8220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8221
        _Fields fields = findByThriftId(fieldId);
8222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8223
        return fields;
8224
      }
8225
 
8226
      /**
8227
       * Find the _Fields constant that matches name, or null if its not found.
8228
       */
8229
      public static _Fields findByName(String name) {
8230
        return byName.get(name);
8231
      }
8232
 
8233
      private final short _thriftId;
8234
      private final String _fieldName;
8235
 
8236
      _Fields(short thriftId, String fieldName) {
8237
        _thriftId = thriftId;
8238
        _fieldName = fieldName;
8239
      }
8240
 
8241
      public short getThriftFieldId() {
8242
        return _thriftId;
8243
      }
8244
 
8245
      public String getFieldName() {
8246
        return _fieldName;
8247
      }
8248
    }
8249
 
8250
    // isset id assignments
8251
 
8252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8253
    static {
8254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8255
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8256
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8257
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8258
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAwbForNumber_args.class, metaDataMap);
8259
    }
8260
 
8261
    public getAwbForNumber_args() {
8262
    }
8263
 
8264
    public getAwbForNumber_args(
8265
      String awbNumber)
8266
    {
8267
      this();
8268
      this.awbNumber = awbNumber;
8269
    }
8270
 
8271
    /**
8272
     * Performs a deep copy on <i>other</i>.
8273
     */
8274
    public getAwbForNumber_args(getAwbForNumber_args other) {
8275
      if (other.isSetAwbNumber()) {
8276
        this.awbNumber = other.awbNumber;
8277
      }
8278
    }
8279
 
8280
    public getAwbForNumber_args deepCopy() {
8281
      return new getAwbForNumber_args(this);
8282
    }
8283
 
8284
    @Override
8285
    public void clear() {
8286
      this.awbNumber = null;
8287
    }
8288
 
8289
    public String getAwbNumber() {
8290
      return this.awbNumber;
8291
    }
8292
 
8293
    public void setAwbNumber(String awbNumber) {
8294
      this.awbNumber = awbNumber;
8295
    }
8296
 
8297
    public void unsetAwbNumber() {
8298
      this.awbNumber = null;
8299
    }
8300
 
8301
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
8302
    public boolean isSetAwbNumber() {
8303
      return this.awbNumber != null;
8304
    }
8305
 
8306
    public void setAwbNumberIsSet(boolean value) {
8307
      if (!value) {
8308
        this.awbNumber = null;
8309
      }
8310
    }
8311
 
8312
    public void setFieldValue(_Fields field, Object value) {
8313
      switch (field) {
8314
      case AWB_NUMBER:
8315
        if (value == null) {
8316
          unsetAwbNumber();
8317
        } else {
8318
          setAwbNumber((String)value);
8319
        }
8320
        break;
8321
 
8322
      }
8323
    }
8324
 
8325
    public Object getFieldValue(_Fields field) {
8326
      switch (field) {
8327
      case AWB_NUMBER:
8328
        return getAwbNumber();
8329
 
8330
      }
8331
      throw new IllegalStateException();
8332
    }
8333
 
8334
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8335
    public boolean isSet(_Fields field) {
8336
      if (field == null) {
8337
        throw new IllegalArgumentException();
8338
      }
8339
 
8340
      switch (field) {
8341
      case AWB_NUMBER:
8342
        return isSetAwbNumber();
8343
      }
8344
      throw new IllegalStateException();
8345
    }
8346
 
8347
    @Override
8348
    public boolean equals(Object that) {
8349
      if (that == null)
8350
        return false;
8351
      if (that instanceof getAwbForNumber_args)
8352
        return this.equals((getAwbForNumber_args)that);
8353
      return false;
8354
    }
8355
 
8356
    public boolean equals(getAwbForNumber_args that) {
8357
      if (that == null)
8358
        return false;
8359
 
8360
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
8361
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
8362
      if (this_present_awbNumber || that_present_awbNumber) {
8363
        if (!(this_present_awbNumber && that_present_awbNumber))
8364
          return false;
8365
        if (!this.awbNumber.equals(that.awbNumber))
8366
          return false;
8367
      }
8368
 
8369
      return true;
8370
    }
8371
 
8372
    @Override
8373
    public int hashCode() {
8374
      return 0;
8375
    }
8376
 
8377
    public int compareTo(getAwbForNumber_args other) {
8378
      if (!getClass().equals(other.getClass())) {
8379
        return getClass().getName().compareTo(other.getClass().getName());
8380
      }
8381
 
8382
      int lastComparison = 0;
8383
      getAwbForNumber_args typedOther = (getAwbForNumber_args)other;
8384
 
8385
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
8386
      if (lastComparison != 0) {
8387
        return lastComparison;
8388
      }
8389
      if (isSetAwbNumber()) {
8390
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
8391
        if (lastComparison != 0) {
8392
          return lastComparison;
8393
        }
8394
      }
8395
      return 0;
8396
    }
8397
 
8398
    public _Fields fieldForId(int fieldId) {
8399
      return _Fields.findByThriftId(fieldId);
8400
    }
8401
 
8402
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8403
      org.apache.thrift.protocol.TField field;
8404
      iprot.readStructBegin();
8405
      while (true)
8406
      {
8407
        field = iprot.readFieldBegin();
8408
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8409
          break;
8410
        }
8411
        switch (field.id) {
8412
          case 1: // AWB_NUMBER
8413
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8414
              this.awbNumber = iprot.readString();
8415
            } else { 
8416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8417
            }
8418
            break;
8419
          default:
8420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8421
        }
8422
        iprot.readFieldEnd();
8423
      }
8424
      iprot.readStructEnd();
8425
      validate();
8426
    }
8427
 
8428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8429
      validate();
8430
 
8431
      oprot.writeStructBegin(STRUCT_DESC);
8432
      if (this.awbNumber != null) {
8433
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
8434
        oprot.writeString(this.awbNumber);
8435
        oprot.writeFieldEnd();
8436
      }
8437
      oprot.writeFieldStop();
8438
      oprot.writeStructEnd();
8439
    }
8440
 
8441
    @Override
8442
    public String toString() {
8443
      StringBuilder sb = new StringBuilder("getAwbForNumber_args(");
8444
      boolean first = true;
8445
 
8446
      sb.append("awbNumber:");
8447
      if (this.awbNumber == null) {
8448
        sb.append("null");
8449
      } else {
8450
        sb.append(this.awbNumber);
8451
      }
8452
      first = false;
8453
      sb.append(")");
8454
      return sb.toString();
8455
    }
8456
 
8457
    public void validate() throws org.apache.thrift.TException {
8458
      // check for required fields
8459
    }
8460
 
8461
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8462
      try {
8463
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8464
      } catch (org.apache.thrift.TException te) {
8465
        throw new java.io.IOException(te);
8466
      }
8467
    }
8468
 
8469
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8470
      try {
8471
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8472
      } catch (org.apache.thrift.TException te) {
8473
        throw new java.io.IOException(te);
8474
      }
8475
    }
8476
 
8477
  }
8478
 
8479
  public static class getAwbForNumber_result implements org.apache.thrift.TBase<getAwbForNumber_result, getAwbForNumber_result._Fields>, java.io.Serializable, Cloneable   {
8480
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAwbForNumber_result");
8481
 
8482
    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);
8483
 
8484
    private Awb success; // required
8485
 
8486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8488
      SUCCESS((short)0, "success");
8489
 
8490
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8491
 
8492
      static {
8493
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8494
          byName.put(field.getFieldName(), field);
8495
        }
8496
      }
8497
 
8498
      /**
8499
       * Find the _Fields constant that matches fieldId, or null if its not found.
8500
       */
8501
      public static _Fields findByThriftId(int fieldId) {
8502
        switch(fieldId) {
8503
          case 0: // SUCCESS
8504
            return SUCCESS;
8505
          default:
8506
            return null;
8507
        }
8508
      }
8509
 
8510
      /**
8511
       * Find the _Fields constant that matches fieldId, throwing an exception
8512
       * if it is not found.
8513
       */
8514
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8515
        _Fields fields = findByThriftId(fieldId);
8516
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8517
        return fields;
8518
      }
8519
 
8520
      /**
8521
       * Find the _Fields constant that matches name, or null if its not found.
8522
       */
8523
      public static _Fields findByName(String name) {
8524
        return byName.get(name);
8525
      }
8526
 
8527
      private final short _thriftId;
8528
      private final String _fieldName;
8529
 
8530
      _Fields(short thriftId, String fieldName) {
8531
        _thriftId = thriftId;
8532
        _fieldName = fieldName;
8533
      }
8534
 
8535
      public short getThriftFieldId() {
8536
        return _thriftId;
8537
      }
8538
 
8539
      public String getFieldName() {
8540
        return _fieldName;
8541
      }
8542
    }
8543
 
8544
    // isset id assignments
8545
 
8546
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8547
    static {
8548
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8549
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8550
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Awb.class)));
8551
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8552
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAwbForNumber_result.class, metaDataMap);
8553
    }
8554
 
8555
    public getAwbForNumber_result() {
8556
    }
8557
 
8558
    public getAwbForNumber_result(
8559
      Awb success)
8560
    {
8561
      this();
8562
      this.success = success;
8563
    }
8564
 
8565
    /**
8566
     * Performs a deep copy on <i>other</i>.
8567
     */
8568
    public getAwbForNumber_result(getAwbForNumber_result other) {
8569
      if (other.isSetSuccess()) {
8570
        this.success = new Awb(other.success);
8571
      }
8572
    }
8573
 
8574
    public getAwbForNumber_result deepCopy() {
8575
      return new getAwbForNumber_result(this);
8576
    }
8577
 
8578
    @Override
8579
    public void clear() {
8580
      this.success = null;
8581
    }
8582
 
8583
    public Awb getSuccess() {
8584
      return this.success;
8585
    }
8586
 
8587
    public void setSuccess(Awb success) {
8588
      this.success = success;
8589
    }
8590
 
8591
    public void unsetSuccess() {
8592
      this.success = null;
8593
    }
8594
 
8595
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8596
    public boolean isSetSuccess() {
8597
      return this.success != null;
8598
    }
8599
 
8600
    public void setSuccessIsSet(boolean value) {
8601
      if (!value) {
8602
        this.success = null;
8603
      }
8604
    }
8605
 
8606
    public void setFieldValue(_Fields field, Object value) {
8607
      switch (field) {
8608
      case SUCCESS:
8609
        if (value == null) {
8610
          unsetSuccess();
8611
        } else {
8612
          setSuccess((Awb)value);
8613
        }
8614
        break;
8615
 
8616
      }
8617
    }
8618
 
8619
    public Object getFieldValue(_Fields field) {
8620
      switch (field) {
8621
      case SUCCESS:
8622
        return getSuccess();
8623
 
8624
      }
8625
      throw new IllegalStateException();
8626
    }
8627
 
8628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8629
    public boolean isSet(_Fields field) {
8630
      if (field == null) {
8631
        throw new IllegalArgumentException();
8632
      }
8633
 
8634
      switch (field) {
8635
      case SUCCESS:
8636
        return isSetSuccess();
8637
      }
8638
      throw new IllegalStateException();
8639
    }
8640
 
8641
    @Override
8642
    public boolean equals(Object that) {
8643
      if (that == null)
8644
        return false;
8645
      if (that instanceof getAwbForNumber_result)
8646
        return this.equals((getAwbForNumber_result)that);
8647
      return false;
8648
    }
8649
 
8650
    public boolean equals(getAwbForNumber_result that) {
8651
      if (that == null)
8652
        return false;
8653
 
8654
      boolean this_present_success = true && this.isSetSuccess();
8655
      boolean that_present_success = true && that.isSetSuccess();
8656
      if (this_present_success || that_present_success) {
8657
        if (!(this_present_success && that_present_success))
8658
          return false;
8659
        if (!this.success.equals(that.success))
8660
          return false;
8661
      }
8662
 
8663
      return true;
8664
    }
8665
 
8666
    @Override
8667
    public int hashCode() {
8668
      return 0;
8669
    }
8670
 
8671
    public int compareTo(getAwbForNumber_result other) {
8672
      if (!getClass().equals(other.getClass())) {
8673
        return getClass().getName().compareTo(other.getClass().getName());
8674
      }
8675
 
8676
      int lastComparison = 0;
8677
      getAwbForNumber_result typedOther = (getAwbForNumber_result)other;
8678
 
8679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8680
      if (lastComparison != 0) {
8681
        return lastComparison;
8682
      }
8683
      if (isSetSuccess()) {
8684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8685
        if (lastComparison != 0) {
8686
          return lastComparison;
8687
        }
8688
      }
8689
      return 0;
8690
    }
8691
 
8692
    public _Fields fieldForId(int fieldId) {
8693
      return _Fields.findByThriftId(fieldId);
8694
    }
8695
 
8696
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8697
      org.apache.thrift.protocol.TField field;
8698
      iprot.readStructBegin();
8699
      while (true)
8700
      {
8701
        field = iprot.readFieldBegin();
8702
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8703
          break;
8704
        }
8705
        switch (field.id) {
8706
          case 0: // SUCCESS
8707
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8708
              this.success = new Awb();
8709
              this.success.read(iprot);
8710
            } else { 
8711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8712
            }
8713
            break;
8714
          default:
8715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8716
        }
8717
        iprot.readFieldEnd();
8718
      }
8719
      iprot.readStructEnd();
8720
      validate();
8721
    }
8722
 
8723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8724
      oprot.writeStructBegin(STRUCT_DESC);
8725
 
8726
      if (this.isSetSuccess()) {
8727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8728
        this.success.write(oprot);
8729
        oprot.writeFieldEnd();
8730
      }
8731
      oprot.writeFieldStop();
8732
      oprot.writeStructEnd();
8733
    }
8734
 
8735
    @Override
8736
    public String toString() {
8737
      StringBuilder sb = new StringBuilder("getAwbForNumber_result(");
8738
      boolean first = true;
8739
 
8740
      sb.append("success:");
8741
      if (this.success == null) {
8742
        sb.append("null");
8743
      } else {
8744
        sb.append(this.success);
8745
      }
8746
      first = false;
8747
      sb.append(")");
8748
      return sb.toString();
8749
    }
8750
 
8751
    public void validate() throws org.apache.thrift.TException {
8752
      // check for required fields
8753
    }
8754
 
8755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8756
      try {
8757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8758
      } catch (org.apache.thrift.TException te) {
8759
        throw new java.io.IOException(te);
8760
      }
8761
    }
8762
 
8763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8764
      try {
8765
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8766
      } catch (org.apache.thrift.TException te) {
8767
        throw new java.io.IOException(te);
8768
      }
8769
    }
8770
 
8771
  }
8772
 
412 ashish 8773
}