Subversion Repositories SmartDukaan

Rev

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