Subversion Repositories SmartDukaan

Rev

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