Subversion Repositories SmartDukaan

Rev

Rev 7888 | Rev 12895 | 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
 
7256 rajveer 50
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
51
 
648 chandransh 52
    /**
53
     * Same as above excpet that an airway bill number is also allocated and returned.
54
     * 
55
     * @param destination_pincode
56
     * @param item_id
3044 chandransh 57
     * @param type
5766 rajveer 58
     * @param pickUp
648 chandransh 59
     */
5766 rajveer 60
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 61
 
648 chandransh 62
    /**
63
     * Returns an unused AWB number for the given provider.
64
     * 
65
     * @param providerId
5247 rajveer 66
     * @param type
648 chandransh 67
     */
5247 rajveer 68
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 69
 
648 chandransh 70
    /**
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
72
     * 
6643 rajveer 73
     * @param awbNumber
648 chandransh 74
     * @param providerId
75
     */
6643 rajveer 76
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 77
 
730 chandransh 78
    /**
6643 rajveer 79
     * Store the update for the given AWB number and provider id.
80
     * 
81
     * @param update
82
     */
83
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
84
 
85
    /**
730 chandransh 86
     * Returns the short three letter code of a pincode for the given provider.
87
     *    Raises an exception if the pin code is not serviced by the given provider.
88
     * 
89
     * @param providerId
90
     * @param pinCode
91
     */
3430 rajveer 92
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 93
 
1139 chandransh 94
    /**
3103 chandransh 95
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 96
     * 
97
     * @param providerId
3103 chandransh 98
     * @param type
1139 chandransh 99
     */
3430 rajveer 100
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 101
 
1730 ankur.sing 102
    /**
103
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
104
     * fromDate should be passed as milliseconds corresponding to the start of the day.
105
     * If fromDate is passed as -1, fromDate is not considered for filtering
106
     * If toDate is passed as -1, toDate is not considered for filtering
107
     * 
108
     * @param fromDate
109
     * @param toDate
110
     */
3430 rajveer 111
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 112
 
4934 amit.gupta 113
    /**
114
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
115
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
116
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
117
     * 
118
     * @param catalogItemId
119
     * @param destination_pin
120
     * @param type
121
     */
9840 amit.gupta 122
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
4934 amit.gupta 123
 
5527 anupam.sin 124
    /**
125
     * Returns the id for a given pickUpType
126
     * 
127
     * @param pickUp
128
     */
129
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
130
 
5553 rajveer 131
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
132
 
133
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
134
 
5719 rajveer 135
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
136
 
6524 rajveer 137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 138
 
6524 rajveer 139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 140
 
7567 rajveer 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException;
142
 
7788 manish.sha 143
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException;
7737 manish.sha 144
 
7888 rajveer 145
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
146
 
412 ashish 147
  }
148
 
3430 rajveer 149
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
150
 
151
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
152
 
153
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
154
 
4630 mandeep.dh 155
    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 156
 
7256 rajveer 157
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
158
 
5766 rajveer 159
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 160
 
5247 rajveer 161
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 162
 
6643 rajveer 163
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 164
 
6643 rajveer 165
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
166
 
3430 rajveer 167
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
172
 
4934 amit.gupta 173
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
174
 
5527 anupam.sin 175
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
176
 
5553 rajveer 177
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
180
 
5719 rajveer 181
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
182
 
6524 rajveer 183
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 184
 
6524 rajveer 185
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 186
 
7567 rajveer 187
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
188
 
7788 manish.sha 189
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
7737 manish.sha 190
 
7888 rajveer 191
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
192
 
3430 rajveer 193
  }
194
 
3374 rajveer 195
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 196
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
197
      public Factory() {}
198
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
199
        return new Client(prot);
200
      }
201
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
202
        return new Client(iprot, oprot);
203
      }
204
    }
205
 
206
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 207
    {
3430 rajveer 208
      super(prot, prot);
412 ashish 209
    }
210
 
3430 rajveer 211
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 212
      super(iprot, oprot);
412 ashish 213
    }
214
 
3430 rajveer 215
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 216
    {
217
      send_getProvider(providerId);
218
      return recv_getProvider();
219
    }
220
 
3430 rajveer 221
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 222
    {
223
      getProvider_args args = new getProvider_args();
3430 rajveer 224
      args.setProviderId(providerId);
225
      sendBase("getProvider", args);
668 chandransh 226
    }
227
 
3430 rajveer 228
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 229
    {
230
      getProvider_result result = new getProvider_result();
3430 rajveer 231
      receiveBase(result, "getProvider");
668 chandransh 232
      if (result.isSetSuccess()) {
233
        return result.success;
234
      }
235
      if (result.lse != null) {
236
        throw result.lse;
237
      }
3430 rajveer 238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 239
    }
240
 
3430 rajveer 241
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 242
    {
243
      send_getAllProviders();
244
      return recv_getAllProviders();
245
    }
246
 
3430 rajveer 247
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 248
    {
249
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 250
      sendBase("getAllProviders", args);
674 chandransh 251
    }
252
 
3430 rajveer 253
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 254
    {
255
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 256
      receiveBase(result, "getAllProviders");
674 chandransh 257
      if (result.isSetSuccess()) {
258
        return result.success;
259
      }
260
      if (result.lse != null) {
261
        throw result.lse;
262
      }
3430 rajveer 263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 264
    }
265
 
4630 mandeep.dh 266
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 267
    {
4630 mandeep.dh 268
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 269
      return recv_getLogisticsEstimation();
270
    }
271
 
4630 mandeep.dh 272
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 273
    {
274
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 275
      args.setItemId(itemId);
276
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 277
      args.setType(type);
3430 rajveer 278
      sendBase("getLogisticsEstimation", args);
471 rajveer 279
    }
280
 
3430 rajveer 281
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 282
    {
283
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 284
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 285
      if (result.isSetSuccess()) {
286
        return result.success;
287
      }
288
      if (result.se != null) {
289
        throw result.se;
290
      }
3430 rajveer 291
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 292
    }
293
 
7256 rajveer 294
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
295
    {
296
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
297
      return recv_getLogisticsEstimationForStore();
298
    }
299
 
300
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
301
    {
302
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
303
      args.setItemId(itemId);
304
      args.setDestination_pin(destination_pin);
305
      args.setType(type);
306
      sendBase("getLogisticsEstimationForStore", args);
307
    }
308
 
309
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
310
    {
311
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
312
      receiveBase(result, "getLogisticsEstimationForStore");
313
      if (result.isSetSuccess()) {
314
        return result.success;
315
      }
316
      if (result.se != null) {
317
        throw result.se;
318
      }
319
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
320
    }
321
 
5766 rajveer 322
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 323
    {
5766 rajveer 324
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 325
      return recv_getLogisticsInfo();
471 rajveer 326
    }
327
 
5766 rajveer 328
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 329
    {
648 chandransh 330
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 331
      args.setDestination_pincode(destination_pincode);
332
      args.setItem_id(item_id);
333
      args.setType(type);
5766 rajveer 334
      args.setPickUp(pickUp);
3430 rajveer 335
      sendBase("getLogisticsInfo", args);
471 rajveer 336
    }
337
 
3430 rajveer 338
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 339
    {
648 chandransh 340
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 341
      receiveBase(result, "getLogisticsInfo");
648 chandransh 342
      if (result.isSetSuccess()) {
343
        return result.success;
477 rajveer 344
      }
648 chandransh 345
      if (result.se != null) {
346
        throw result.se;
412 ashish 347
      }
3430 rajveer 348
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 349
    }
350
 
5247 rajveer 351
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 352
    {
5247 rajveer 353
      send_getEmptyAWB(providerId, type);
412 ashish 354
      return recv_getEmptyAWB();
355
    }
356
 
5247 rajveer 357
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 358
    {
359
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 360
      args.setProviderId(providerId);
5247 rajveer 361
      args.setType(type);
3430 rajveer 362
      sendBase("getEmptyAWB", args);
412 ashish 363
    }
364
 
3430 rajveer 365
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 366
    {
367
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 368
      receiveBase(result, "getEmptyAWB");
412 ashish 369
      if (result.isSetSuccess()) {
370
        return result.success;
371
      }
648 chandransh 372
      if (result.se != null) {
373
        throw result.se;
374
      }
3430 rajveer 375
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 376
    }
377
 
6643 rajveer 378
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 379
    {
6643 rajveer 380
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 381
      return recv_getShipmentInfo();
382
    }
383
 
6643 rajveer 384
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 385
    {
386
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 387
      args.setAwbNumber(awbNumber);
3430 rajveer 388
      args.setProviderId(providerId);
389
      sendBase("getShipmentInfo", args);
412 ashish 390
    }
391
 
3430 rajveer 392
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 393
    {
394
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 395
      receiveBase(result, "getShipmentInfo");
412 ashish 396
      if (result.isSetSuccess()) {
397
        return result.success;
398
      }
648 chandransh 399
      if (result.se != null) {
400
        throw result.se;
401
      }
3430 rajveer 402
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 403
    }
404
 
6643 rajveer 405
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
406
    {
407
      send_storeShipmentInfo(update);
408
      recv_storeShipmentInfo();
409
    }
410
 
411
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
412
    {
413
      storeShipmentInfo_args args = new storeShipmentInfo_args();
414
      args.setUpdate(update);
415
      sendBase("storeShipmentInfo", args);
416
    }
417
 
418
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
419
    {
420
      storeShipmentInfo_result result = new storeShipmentInfo_result();
421
      receiveBase(result, "storeShipmentInfo");
422
      if (result.se != null) {
423
        throw result.se;
424
      }
425
      return;
426
    }
427
 
3430 rajveer 428
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 429
    {
430
      send_getDestinationCode(providerId, pinCode);
431
      return recv_getDestinationCode();
432
    }
433
 
3430 rajveer 434
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 435
    {
436
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 437
      args.setProviderId(providerId);
438
      args.setPinCode(pinCode);
439
      sendBase("getDestinationCode", args);
730 chandransh 440
    }
441
 
3430 rajveer 442
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 443
    {
444
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 445
      receiveBase(result, "getDestinationCode");
730 chandransh 446
      if (result.isSetSuccess()) {
447
        return result.success;
448
      }
449
      if (result.se != null) {
450
        throw result.se;
451
      }
3430 rajveer 452
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 453
    }
454
 
3430 rajveer 455
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 456
    {
3103 chandransh 457
      send_getFreeAwbCount(providerId, type);
1139 chandransh 458
      return recv_getFreeAwbCount();
459
    }
460
 
3430 rajveer 461
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 462
    {
463
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 464
      args.setProviderId(providerId);
465
      args.setType(type);
466
      sendBase("getFreeAwbCount", args);
1139 chandransh 467
    }
468
 
3430 rajveer 469
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 470
    {
471
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 472
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 473
      if (result.isSetSuccess()) {
474
        return result.success;
475
      }
3430 rajveer 476
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 477
    }
478
 
3430 rajveer 479
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 480
    {
481
      send_getHolidays(fromDate, toDate);
482
      return recv_getHolidays();
483
    }
484
 
3430 rajveer 485
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 486
    {
487
      getHolidays_args args = new getHolidays_args();
3430 rajveer 488
      args.setFromDate(fromDate);
489
      args.setToDate(toDate);
490
      sendBase("getHolidays", args);
1730 ankur.sing 491
    }
492
 
3430 rajveer 493
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 494
    {
495
      getHolidays_result result = new getHolidays_result();
3430 rajveer 496
      receiveBase(result, "getHolidays");
1730 ankur.sing 497
      if (result.isSetSuccess()) {
498
        return result.success;
499
      }
3430 rajveer 500
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 501
    }
502
 
9840 amit.gupta 503
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 504
    {
505
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
506
      return recv_getEntityLogisticsEstimation();
507
    }
508
 
509
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
510
    {
511
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
512
      args.setCatalogItemId(catalogItemId);
513
      args.setDestination_pin(destination_pin);
514
      args.setType(type);
515
      sendBase("getEntityLogisticsEstimation", args);
516
    }
517
 
9840 amit.gupta 518
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 519
    {
520
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
521
      receiveBase(result, "getEntityLogisticsEstimation");
522
      if (result.isSetSuccess()) {
523
        return result.success;
524
      }
525
      if (result.se != null) {
526
        throw result.se;
527
      }
528
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
529
    }
530
 
5527 anupam.sin 531
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
532
    {
533
      send_getProviderForPickupType(pickUp);
534
      return recv_getProviderForPickupType();
535
    }
536
 
537
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
538
    {
539
      getProviderForPickupType_args args = new getProviderForPickupType_args();
540
      args.setPickUp(pickUp);
541
      sendBase("getProviderForPickupType", args);
542
    }
543
 
544
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
545
    {
546
      getProviderForPickupType_result result = new getProviderForPickupType_result();
547
      receiveBase(result, "getProviderForPickupType");
548
      if (result.isSetSuccess()) {
549
        return result.success;
550
      }
551
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
552
    }
553
 
5553 rajveer 554
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
555
    {
556
      send_getAllPickupStores();
557
      return recv_getAllPickupStores();
558
    }
559
 
560
    public void send_getAllPickupStores() throws org.apache.thrift.TException
561
    {
562
      getAllPickupStores_args args = new getAllPickupStores_args();
563
      sendBase("getAllPickupStores", args);
564
    }
565
 
566
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
567
    {
568
      getAllPickupStores_result result = new getAllPickupStores_result();
569
      receiveBase(result, "getAllPickupStores");
570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
574
    }
575
 
576
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
577
    {
578
      send_getPickupStore(storeId);
579
      return recv_getPickupStore();
580
    }
581
 
582
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
583
    {
584
      getPickupStore_args args = new getPickupStore_args();
585
      args.setStoreId(storeId);
586
      sendBase("getPickupStore", args);
587
    }
588
 
589
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
590
    {
591
      getPickupStore_result result = new getPickupStore_result();
592
      receiveBase(result, "getPickupStore");
593
      if (result.isSetSuccess()) {
594
        return result.success;
595
      }
596
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
597
    }
598
 
5719 rajveer 599
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
600
    {
601
      send_getPickupStoreByHotspotId(hotspotId);
602
      return recv_getPickupStoreByHotspotId();
603
    }
604
 
605
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
606
    {
607
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
608
      args.setHotspotId(hotspotId);
609
      sendBase("getPickupStoreByHotspotId", args);
610
    }
611
 
612
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
613
    {
614
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
615
      receiveBase(result, "getPickupStoreByHotspotId");
616
      if (result.isSetSuccess()) {
617
        return result.success;
618
      }
619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
620
    }
621
 
6524 rajveer 622
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 623
    {
6524 rajveer 624
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 625
      recv_addPincode();
626
    }
627
 
6524 rajveer 628
    public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 629
    {
630
      addPincode_args args = new addPincode_args();
631
      args.setProviderId(providerId);
632
      args.setPincode(pincode);
633
      args.setDestCode(destCode);
634
      args.setExp(exp);
635
      args.setCod(cod);
636
      args.setStationType(stationType);
6524 rajveer 637
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 638
      sendBase("addPincode", args);
639
    }
640
 
641
    public void recv_addPincode() throws org.apache.thrift.TException
642
    {
643
      addPincode_result result = new addPincode_result();
644
      receiveBase(result, "addPincode");
645
      return;
646
    }
647
 
6524 rajveer 648
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 649
    {
6524 rajveer 650
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 651
      recv_updatePincode();
652
    }
653
 
6524 rajveer 654
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 655
    {
656
      updatePincode_args args = new updatePincode_args();
657
      args.setProviderId(providerId);
658
      args.setPincode(pincode);
659
      args.setExp(exp);
660
      args.setCod(cod);
6524 rajveer 661
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 662
      sendBase("updatePincode", args);
663
    }
664
 
665
    public void recv_updatePincode() throws org.apache.thrift.TException
666
    {
667
      updatePincode_result result = new updatePincode_result();
668
      receiveBase(result, "updatePincode");
669
      return;
670
    }
671
 
7567 rajveer 672
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
673
    {
674
      send_addNewAwbs(providerId, cod, awbs);
675
      return recv_addNewAwbs();
676
    }
677
 
678
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
679
    {
680
      addNewAwbs_args args = new addNewAwbs_args();
681
      args.setProviderId(providerId);
682
      args.setCod(cod);
683
      args.setAwbs(awbs);
684
      sendBase("addNewAwbs", args);
685
    }
686
 
687
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
688
    {
689
      addNewAwbs_result result = new addNewAwbs_result();
690
      receiveBase(result, "addNewAwbs");
691
      if (result.isSetSuccess()) {
692
        return result.success;
693
      }
694
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
695
    }
696
 
7788 manish.sha 697
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 698
    {
7788 manish.sha 699
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
700
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 701
    }
702
 
7788 manish.sha 703
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 704
    {
7788 manish.sha 705
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
706
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
707
      args.setRunCompleteUpdate(runCompleteUpdate);
708
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 709
    }
710
 
7788 manish.sha 711
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 712
    {
7788 manish.sha 713
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
714
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 715
      return;
716
    }
717
 
7888 rajveer 718
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
719
    {
720
      send_adjustDeliveryDays(startDate, days);
721
      return recv_adjustDeliveryDays();
722
    }
723
 
724
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
725
    {
726
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
727
      args.setStartDate(startDate);
728
      args.setDays(days);
729
      sendBase("adjustDeliveryDays", args);
730
    }
731
 
732
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
733
    {
734
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
735
      receiveBase(result, "adjustDeliveryDays");
736
      if (result.isSetSuccess()) {
737
        return result.success;
738
      }
739
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
740
    }
741
 
412 ashish 742
  }
3430 rajveer 743
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
744
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
745
      private org.apache.thrift.async.TAsyncClientManager clientManager;
746
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
747
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
748
        this.clientManager = clientManager;
749
        this.protocolFactory = protocolFactory;
750
      }
751
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
752
        return new AsyncClient(protocolFactory, clientManager, transport);
753
      }
412 ashish 754
    }
755
 
3430 rajveer 756
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
757
      super(protocolFactory, clientManager, transport);
758
    }
412 ashish 759
 
3430 rajveer 760
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
761
      checkReady();
762
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
763
      this.___currentMethod = method_call;
764
      ___manager.call(method_call);
765
    }
766
 
767
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
768
      private long providerId;
769
      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 {
770
        super(client, protocolFactory, transport, resultHandler, false);
771
        this.providerId = providerId;
412 ashish 772
      }
3430 rajveer 773
 
774
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
775
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
776
        getProvider_args args = new getProvider_args();
777
        args.setProviderId(providerId);
778
        args.write(prot);
779
        prot.writeMessageEnd();
780
      }
781
 
782
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
783
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
784
          throw new IllegalStateException("Method call not finished!");
785
        }
786
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
788
        return (new Client(prot)).recv_getProvider();
789
      }
412 ashish 790
    }
791
 
3430 rajveer 792
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
793
      checkReady();
794
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
795
      this.___currentMethod = method_call;
796
      ___manager.call(method_call);
797
    }
798
 
799
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
800
      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 {
801
        super(client, protocolFactory, transport, resultHandler, false);
802
      }
803
 
804
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
805
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
806
        getAllProviders_args args = new getAllProviders_args();
807
        args.write(prot);
808
        prot.writeMessageEnd();
809
      }
810
 
811
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
812
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
813
          throw new IllegalStateException("Method call not finished!");
814
        }
815
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
816
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
817
        return (new Client(prot)).recv_getAllProviders();
818
      }
819
    }
820
 
4630 mandeep.dh 821
    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 822
      checkReady();
4630 mandeep.dh 823
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 824
      this.___currentMethod = method_call;
825
      ___manager.call(method_call);
826
    }
827
 
828
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
829
      private long itemId;
830
      private String destination_pin;
4630 mandeep.dh 831
      private DeliveryType type;
832
      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 833
        super(client, protocolFactory, transport, resultHandler, false);
834
        this.itemId = itemId;
835
        this.destination_pin = destination_pin;
4630 mandeep.dh 836
        this.type = type;
3430 rajveer 837
      }
838
 
839
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
840
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
841
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
842
        args.setItemId(itemId);
843
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 844
        args.setType(type);
3430 rajveer 845
        args.write(prot);
846
        prot.writeMessageEnd();
847
      }
848
 
849
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
850
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
851
          throw new IllegalStateException("Method call not finished!");
852
        }
853
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
854
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
855
        return (new Client(prot)).recv_getLogisticsEstimation();
856
      }
857
    }
858
 
7256 rajveer 859
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
860
      checkReady();
861
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
862
      this.___currentMethod = method_call;
863
      ___manager.call(method_call);
864
    }
865
 
866
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
867
      private long itemId;
868
      private String destination_pin;
869
      private DeliveryType type;
870
      public getLogisticsEstimationForStore_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_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 {
871
        super(client, protocolFactory, transport, resultHandler, false);
872
        this.itemId = itemId;
873
        this.destination_pin = destination_pin;
874
        this.type = type;
875
      }
876
 
877
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
878
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
879
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
880
        args.setItemId(itemId);
881
        args.setDestination_pin(destination_pin);
882
        args.setType(type);
883
        args.write(prot);
884
        prot.writeMessageEnd();
885
      }
886
 
887
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
888
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
889
          throw new IllegalStateException("Method call not finished!");
890
        }
891
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
892
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
893
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
894
      }
895
    }
896
 
5766 rajveer 897
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 898
      checkReady();
5766 rajveer 899
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 900
      this.___currentMethod = method_call;
901
      ___manager.call(method_call);
902
    }
903
 
904
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
905
      private String destination_pincode;
906
      private long item_id;
907
      private DeliveryType type;
5766 rajveer 908
      private PickUpType pickUp;
909
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, 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 {
3430 rajveer 910
        super(client, protocolFactory, transport, resultHandler, false);
911
        this.destination_pincode = destination_pincode;
912
        this.item_id = item_id;
913
        this.type = type;
5766 rajveer 914
        this.pickUp = pickUp;
3430 rajveer 915
      }
916
 
917
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
918
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
919
        getLogisticsInfo_args args = new getLogisticsInfo_args();
920
        args.setDestination_pincode(destination_pincode);
921
        args.setItem_id(item_id);
922
        args.setType(type);
5766 rajveer 923
        args.setPickUp(pickUp);
3430 rajveer 924
        args.write(prot);
925
        prot.writeMessageEnd();
926
      }
927
 
928
      public LogisticsInfo getResult() throws LogisticsServiceException, 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_getLogisticsInfo();
935
      }
936
    }
937
 
5247 rajveer 938
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 939
      checkReady();
5247 rajveer 940
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 941
      this.___currentMethod = method_call;
942
      ___manager.call(method_call);
943
    }
944
 
945
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
946
      private long providerId;
5247 rajveer 947
      private DeliveryType type;
948
      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 949
        super(client, protocolFactory, transport, resultHandler, false);
950
        this.providerId = providerId;
5247 rajveer 951
        this.type = type;
3430 rajveer 952
      }
953
 
954
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
955
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
956
        getEmptyAWB_args args = new getEmptyAWB_args();
957
        args.setProviderId(providerId);
5247 rajveer 958
        args.setType(type);
3430 rajveer 959
        args.write(prot);
960
        prot.writeMessageEnd();
961
      }
962
 
963
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
964
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
965
          throw new IllegalStateException("Method call not finished!");
966
        }
967
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
968
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
969
        return (new Client(prot)).recv_getEmptyAWB();
970
      }
971
    }
972
 
6643 rajveer 973
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 974
      checkReady();
6643 rajveer 975
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 976
      this.___currentMethod = method_call;
977
      ___manager.call(method_call);
978
    }
979
 
980
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 981
      private String awbNumber;
3430 rajveer 982
      private long providerId;
6643 rajveer 983
      public getShipmentInfo_call(String awbNumber, 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 {
3430 rajveer 984
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 985
        this.awbNumber = awbNumber;
3430 rajveer 986
        this.providerId = providerId;
987
      }
988
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 992
        args.setAwbNumber(awbNumber);
3430 rajveer 993
        args.setProviderId(providerId);
994
        args.write(prot);
995
        prot.writeMessageEnd();
996
      }
997
 
998
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
999
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1000
          throw new IllegalStateException("Method call not finished!");
1001
        }
1002
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1003
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1004
        return (new Client(prot)).recv_getShipmentInfo();
1005
      }
1006
    }
1007
 
6643 rajveer 1008
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1009
      checkReady();
1010
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1011
      this.___currentMethod = method_call;
1012
      ___manager.call(method_call);
1013
    }
1014
 
1015
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1016
      private AwbUpdate update;
1017
      public storeShipmentInfo_call(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_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 {
1018
        super(client, protocolFactory, transport, resultHandler, false);
1019
        this.update = update;
1020
      }
1021
 
1022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1024
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1025
        args.setUpdate(update);
1026
        args.write(prot);
1027
        prot.writeMessageEnd();
1028
      }
1029
 
1030
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1031
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1032
          throw new IllegalStateException("Method call not finished!");
1033
        }
1034
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1035
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1036
        (new Client(prot)).recv_storeShipmentInfo();
1037
      }
1038
    }
1039
 
3430 rajveer 1040
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1041
      checkReady();
1042
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1043
      this.___currentMethod = method_call;
1044
      ___manager.call(method_call);
1045
    }
1046
 
1047
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1048
      private long providerId;
1049
      private String pinCode;
1050
      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 {
1051
        super(client, protocolFactory, transport, resultHandler, false);
1052
        this.providerId = providerId;
1053
        this.pinCode = pinCode;
1054
      }
1055
 
1056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1058
        getDestinationCode_args args = new getDestinationCode_args();
1059
        args.setProviderId(providerId);
1060
        args.setPinCode(pinCode);
1061
        args.write(prot);
1062
        prot.writeMessageEnd();
1063
      }
1064
 
1065
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1066
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1067
          throw new IllegalStateException("Method call not finished!");
1068
        }
1069
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1070
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1071
        return (new Client(prot)).recv_getDestinationCode();
1072
      }
1073
    }
1074
 
1075
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1076
      checkReady();
1077
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1078
      this.___currentMethod = method_call;
1079
      ___manager.call(method_call);
1080
    }
1081
 
1082
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1083
      private long providerId;
1084
      private String type;
1085
      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 {
1086
        super(client, protocolFactory, transport, resultHandler, false);
1087
        this.providerId = providerId;
1088
        this.type = type;
1089
      }
1090
 
1091
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1092
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1093
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1094
        args.setProviderId(providerId);
1095
        args.setType(type);
1096
        args.write(prot);
1097
        prot.writeMessageEnd();
1098
      }
1099
 
1100
      public long getResult() throws org.apache.thrift.TException {
1101
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1102
          throw new IllegalStateException("Method call not finished!");
1103
        }
1104
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1105
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1106
        return (new Client(prot)).recv_getFreeAwbCount();
1107
      }
1108
    }
1109
 
1110
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1111
      checkReady();
1112
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1113
      this.___currentMethod = method_call;
1114
      ___manager.call(method_call);
1115
    }
1116
 
1117
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1118
      private long fromDate;
1119
      private long toDate;
1120
      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 {
1121
        super(client, protocolFactory, transport, resultHandler, false);
1122
        this.fromDate = fromDate;
1123
        this.toDate = toDate;
1124
      }
1125
 
1126
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1127
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1128
        getHolidays_args args = new getHolidays_args();
1129
        args.setFromDate(fromDate);
1130
        args.setToDate(toDate);
1131
        args.write(prot);
1132
        prot.writeMessageEnd();
1133
      }
1134
 
1135
      public List<Long> getResult() throws org.apache.thrift.TException {
1136
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1137
          throw new IllegalStateException("Method call not finished!");
1138
        }
1139
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1140
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1141
        return (new Client(prot)).recv_getHolidays();
1142
      }
1143
    }
1144
 
4934 amit.gupta 1145
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1146
      checkReady();
1147
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1148
      this.___currentMethod = method_call;
1149
      ___manager.call(method_call);
1150
    }
1151
 
1152
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1153
      private long catalogItemId;
1154
      private String destination_pin;
1155
      private DeliveryType type;
1156
      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 {
1157
        super(client, protocolFactory, transport, resultHandler, false);
1158
        this.catalogItemId = catalogItemId;
1159
        this.destination_pin = destination_pin;
1160
        this.type = type;
1161
      }
1162
 
1163
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1166
        args.setCatalogItemId(catalogItemId);
1167
        args.setDestination_pin(destination_pin);
1168
        args.setType(type);
1169
        args.write(prot);
1170
        prot.writeMessageEnd();
1171
      }
1172
 
9840 amit.gupta 1173
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1175
          throw new IllegalStateException("Method call not finished!");
1176
        }
1177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1180
      }
1181
    }
1182
 
5527 anupam.sin 1183
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1184
      checkReady();
1185
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1186
      this.___currentMethod = method_call;
1187
      ___manager.call(method_call);
1188
    }
1189
 
1190
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1191
      private long pickUp;
1192
      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 {
1193
        super(client, protocolFactory, transport, resultHandler, false);
1194
        this.pickUp = pickUp;
1195
      }
1196
 
1197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1199
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1200
        args.setPickUp(pickUp);
1201
        args.write(prot);
1202
        prot.writeMessageEnd();
1203
      }
1204
 
1205
      public long getResult() throws org.apache.thrift.TException {
1206
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1207
          throw new IllegalStateException("Method call not finished!");
1208
        }
1209
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1210
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1211
        return (new Client(prot)).recv_getProviderForPickupType();
1212
      }
1213
    }
1214
 
5553 rajveer 1215
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1216
      checkReady();
1217
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1218
      this.___currentMethod = method_call;
1219
      ___manager.call(method_call);
1220
    }
1221
 
1222
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1223
      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 {
1224
        super(client, protocolFactory, transport, resultHandler, false);
1225
      }
1226
 
1227
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1228
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1229
        getAllPickupStores_args args = new getAllPickupStores_args();
1230
        args.write(prot);
1231
        prot.writeMessageEnd();
1232
      }
1233
 
1234
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1235
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1236
          throw new IllegalStateException("Method call not finished!");
1237
        }
1238
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1239
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1240
        return (new Client(prot)).recv_getAllPickupStores();
1241
      }
1242
    }
1243
 
1244
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1245
      checkReady();
1246
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1247
      this.___currentMethod = method_call;
1248
      ___manager.call(method_call);
1249
    }
1250
 
1251
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1252
      private long storeId;
1253
      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 {
1254
        super(client, protocolFactory, transport, resultHandler, false);
1255
        this.storeId = storeId;
1256
      }
1257
 
1258
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1259
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1260
        getPickupStore_args args = new getPickupStore_args();
1261
        args.setStoreId(storeId);
1262
        args.write(prot);
1263
        prot.writeMessageEnd();
1264
      }
1265
 
1266
      public PickupStore getResult() throws org.apache.thrift.TException {
1267
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1268
          throw new IllegalStateException("Method call not finished!");
1269
        }
1270
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1271
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1272
        return (new Client(prot)).recv_getPickupStore();
1273
      }
1274
    }
1275
 
5719 rajveer 1276
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1277
      checkReady();
1278
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1279
      this.___currentMethod = method_call;
1280
      ___manager.call(method_call);
1281
    }
1282
 
1283
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1284
      private String hotspotId;
1285
      public getPickupStoreByHotspotId_call(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_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 {
1286
        super(client, protocolFactory, transport, resultHandler, false);
1287
        this.hotspotId = hotspotId;
1288
      }
1289
 
1290
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1291
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1292
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1293
        args.setHotspotId(hotspotId);
1294
        args.write(prot);
1295
        prot.writeMessageEnd();
1296
      }
1297
 
1298
      public PickupStore getResult() throws org.apache.thrift.TException {
1299
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1300
          throw new IllegalStateException("Method call not finished!");
1301
        }
1302
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1303
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1304
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1305
      }
1306
    }
1307
 
6524 rajveer 1308
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 1309
      checkReady();
6524 rajveer 1310
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1311
      this.___currentMethod = method_call;
1312
      ___manager.call(method_call);
1313
    }
1314
 
1315
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1316
      private long providerId;
1317
      private String pincode;
1318
      private String destCode;
1319
      private boolean exp;
1320
      private boolean cod;
1321
      private int stationType;
6524 rajveer 1322
      private boolean otgAvailable;
1323
      public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_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 {
6322 amar.kumar 1324
        super(client, protocolFactory, transport, resultHandler, false);
1325
        this.providerId = providerId;
1326
        this.pincode = pincode;
1327
        this.destCode = destCode;
1328
        this.exp = exp;
1329
        this.cod = cod;
1330
        this.stationType = stationType;
6524 rajveer 1331
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1332
      }
1333
 
1334
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1335
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1336
        addPincode_args args = new addPincode_args();
1337
        args.setProviderId(providerId);
1338
        args.setPincode(pincode);
1339
        args.setDestCode(destCode);
1340
        args.setExp(exp);
1341
        args.setCod(cod);
1342
        args.setStationType(stationType);
6524 rajveer 1343
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1344
        args.write(prot);
1345
        prot.writeMessageEnd();
1346
      }
1347
 
1348
      public void getResult() throws org.apache.thrift.TException {
1349
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1350
          throw new IllegalStateException("Method call not finished!");
1351
        }
1352
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1353
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1354
        (new Client(prot)).recv_addPincode();
1355
      }
1356
    }
1357
 
6524 rajveer 1358
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 1359
      checkReady();
6524 rajveer 1360
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1361
      this.___currentMethod = method_call;
1362
      ___manager.call(method_call);
1363
    }
1364
 
1365
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1366
      private long providerId;
1367
      private String pincode;
1368
      private boolean exp;
1369
      private boolean cod;
6524 rajveer 1370
      private boolean otgAvailable;
1371
      public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_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 {
6322 amar.kumar 1372
        super(client, protocolFactory, transport, resultHandler, false);
1373
        this.providerId = providerId;
1374
        this.pincode = pincode;
1375
        this.exp = exp;
1376
        this.cod = cod;
6524 rajveer 1377
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1378
      }
1379
 
1380
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1381
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1382
        updatePincode_args args = new updatePincode_args();
1383
        args.setProviderId(providerId);
1384
        args.setPincode(pincode);
1385
        args.setExp(exp);
1386
        args.setCod(cod);
6524 rajveer 1387
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1388
        args.write(prot);
1389
        prot.writeMessageEnd();
1390
      }
1391
 
1392
      public void getResult() throws org.apache.thrift.TException {
1393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1394
          throw new IllegalStateException("Method call not finished!");
1395
        }
1396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1398
        (new Client(prot)).recv_updatePincode();
1399
      }
1400
    }
1401
 
7567 rajveer 1402
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
1403
      checkReady();
1404
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
1405
      this.___currentMethod = method_call;
1406
      ___manager.call(method_call);
1407
    }
1408
 
1409
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1410
      private long providerId;
1411
      private boolean cod;
1412
      private List<String> awbs;
1413
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_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 {
1414
        super(client, protocolFactory, transport, resultHandler, false);
1415
        this.providerId = providerId;
1416
        this.cod = cod;
1417
        this.awbs = awbs;
1418
      }
1419
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        addNewAwbs_args args = new addNewAwbs_args();
1423
        args.setProviderId(providerId);
1424
        args.setCod(cod);
1425
        args.setAwbs(awbs);
1426
        args.write(prot);
1427
        prot.writeMessageEnd();
1428
      }
1429
 
1430
      public boolean getResult() throws org.apache.thrift.TException {
1431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1432
          throw new IllegalStateException("Method call not finished!");
1433
        }
1434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1436
        return (new Client(prot)).recv_addNewAwbs();
1437
      }
1438
    }
1439
 
7788 manish.sha 1440
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1441
      checkReady();
7788 manish.sha 1442
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1443
      this.___currentMethod = method_call;
1444
      ___manager.call(method_call);
1445
    }
1446
 
7788 manish.sha 1447
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1448
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1449
      private boolean runCompleteUpdate;
1450
      public runLogisticsLocationInfoUpdate_call(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_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 {
7737 manish.sha 1451
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1452
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1453
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1459
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1460
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1461
        args.write(prot);
1462
        prot.writeMessageEnd();
1463
      }
1464
 
1465
      public void getResult() throws org.apache.thrift.TException {
1466
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1467
          throw new IllegalStateException("Method call not finished!");
1468
        }
1469
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1471
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1472
      }
1473
    }
1474
 
7888 rajveer 1475
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1476
      checkReady();
1477
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1478
      this.___currentMethod = method_call;
1479
      ___manager.call(method_call);
1480
    }
1481
 
1482
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1483
      private long startDate;
1484
      private long days;
1485
      public adjustDeliveryDays_call(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_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 {
1486
        super(client, protocolFactory, transport, resultHandler, false);
1487
        this.startDate = startDate;
1488
        this.days = days;
1489
      }
1490
 
1491
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1492
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1493
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1494
        args.setStartDate(startDate);
1495
        args.setDays(days);
1496
        args.write(prot);
1497
        prot.writeMessageEnd();
1498
      }
1499
 
1500
      public long getResult() throws org.apache.thrift.TException {
1501
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1502
          throw new IllegalStateException("Method call not finished!");
1503
        }
1504
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1505
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1506
        return (new Client(prot)).recv_adjustDeliveryDays();
1507
      }
1508
    }
1509
 
3430 rajveer 1510
  }
1511
 
1512
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1513
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1514
    public Processor(I iface) {
1515
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1516
    }
1517
 
1518
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1519
      super(iface, getProcessMap(processMap));
1520
    }
1521
 
1522
    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) {
1523
      processMap.put("getProvider", new getProvider());
1524
      processMap.put("getAllProviders", new getAllProviders());
1525
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1526
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1527
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1528
      processMap.put("getEmptyAWB", new getEmptyAWB());
1529
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1530
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1531
      processMap.put("getDestinationCode", new getDestinationCode());
1532
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1533
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1534
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1535
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1536
      processMap.put("getAllPickupStores", new getAllPickupStores());
1537
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1538
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1539
      processMap.put("addPincode", new addPincode());
1540
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1541
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1542
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1543
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
3430 rajveer 1544
      return processMap;
1545
    }
1546
 
1547
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1548
      public getProvider() {
1549
        super("getProvider");
1550
      }
1551
 
1552
      protected getProvider_args getEmptyArgsInstance() {
1553
        return new getProvider_args();
1554
      }
1555
 
1556
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1557
        getProvider_result result = new getProvider_result();
1558
        try {
3430 rajveer 1559
          result.success = iface.getProvider(args.providerId);
668 chandransh 1560
        } catch (LogisticsServiceException lse) {
1561
          result.lse = lse;
1562
        }
3430 rajveer 1563
        return result;
668 chandransh 1564
      }
1565
    }
1566
 
3430 rajveer 1567
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1568
      public getAllProviders() {
1569
        super("getAllProviders");
1570
      }
1571
 
1572
      protected getAllProviders_args getEmptyArgsInstance() {
1573
        return new getAllProviders_args();
1574
      }
1575
 
1576
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1577
        getAllProviders_result result = new getAllProviders_result();
1578
        try {
3430 rajveer 1579
          result.success = iface.getAllProviders();
674 chandransh 1580
        } catch (LogisticsServiceException lse) {
1581
          result.lse = lse;
1582
        }
3430 rajveer 1583
        return result;
674 chandransh 1584
      }
1585
    }
1586
 
3430 rajveer 1587
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1588
      public getLogisticsEstimation() {
1589
        super("getLogisticsEstimation");
1590
      }
1591
 
1592
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1593
        return new getLogisticsEstimation_args();
1594
      }
1595
 
1596
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1597
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1598
        try {
4630 mandeep.dh 1599
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1600
        } catch (LogisticsServiceException se) {
1601
          result.se = se;
1602
        }
3430 rajveer 1603
        return result;
483 rajveer 1604
      }
1605
    }
1606
 
7256 rajveer 1607
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1608
      public getLogisticsEstimationForStore() {
1609
        super("getLogisticsEstimationForStore");
1610
      }
1611
 
1612
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1613
        return new getLogisticsEstimationForStore_args();
1614
      }
1615
 
1616
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1617
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1618
        try {
1619
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1620
        } catch (LogisticsServiceException se) {
1621
          result.se = se;
1622
        }
1623
        return result;
1624
      }
1625
    }
1626
 
3430 rajveer 1627
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1628
      public getLogisticsInfo() {
1629
        super("getLogisticsInfo");
1630
      }
1631
 
1632
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1633
        return new getLogisticsInfo_args();
1634
      }
1635
 
1636
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1637
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1638
        try {
5766 rajveer 1639
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1640
        } catch (LogisticsServiceException se) {
1641
          result.se = se;
1642
        }
3430 rajveer 1643
        return result;
471 rajveer 1644
      }
1645
    }
1646
 
3430 rajveer 1647
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1648
      public getEmptyAWB() {
1649
        super("getEmptyAWB");
1650
      }
1651
 
1652
      protected getEmptyAWB_args getEmptyArgsInstance() {
1653
        return new getEmptyAWB_args();
1654
      }
1655
 
1656
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1657
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1658
        try {
5247 rajveer 1659
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1660
        } catch (LogisticsServiceException se) {
1661
          result.se = se;
1662
        }
3430 rajveer 1663
        return result;
412 ashish 1664
      }
1665
    }
1666
 
3430 rajveer 1667
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1668
      public getShipmentInfo() {
1669
        super("getShipmentInfo");
1670
      }
1671
 
1672
      protected getShipmentInfo_args getEmptyArgsInstance() {
1673
        return new getShipmentInfo_args();
1674
      }
1675
 
1676
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1677
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1678
        try {
6643 rajveer 1679
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1680
        } catch (LogisticsServiceException se) {
1681
          result.se = se;
1682
        }
3430 rajveer 1683
        return result;
412 ashish 1684
      }
1685
    }
1686
 
6643 rajveer 1687
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1688
      public storeShipmentInfo() {
1689
        super("storeShipmentInfo");
1690
      }
1691
 
1692
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1693
        return new storeShipmentInfo_args();
1694
      }
1695
 
1696
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1697
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1698
        try {
1699
          iface.storeShipmentInfo(args.update);
1700
        } catch (LogisticsServiceException se) {
1701
          result.se = se;
1702
        }
1703
        return result;
1704
      }
1705
    }
1706
 
3430 rajveer 1707
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1708
      public getDestinationCode() {
1709
        super("getDestinationCode");
1710
      }
1711
 
1712
      protected getDestinationCode_args getEmptyArgsInstance() {
1713
        return new getDestinationCode_args();
1714
      }
1715
 
1716
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1717
        getDestinationCode_result result = new getDestinationCode_result();
1718
        try {
3430 rajveer 1719
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1720
        } catch (LogisticsServiceException se) {
1721
          result.se = se;
1722
        }
3430 rajveer 1723
        return result;
730 chandransh 1724
      }
1725
    }
1726
 
3430 rajveer 1727
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
1728
      public getFreeAwbCount() {
1729
        super("getFreeAwbCount");
1730
      }
1731
 
1732
      protected getFreeAwbCount_args getEmptyArgsInstance() {
1733
        return new getFreeAwbCount_args();
1734
      }
1735
 
1736
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 1737
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 1738
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 1739
        result.setSuccessIsSet(true);
3430 rajveer 1740
        return result;
1139 chandransh 1741
      }
1742
    }
1743
 
3430 rajveer 1744
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
1745
      public getHolidays() {
1746
        super("getHolidays");
1747
      }
1748
 
1749
      protected getHolidays_args getEmptyArgsInstance() {
1750
        return new getHolidays_args();
1751
      }
1752
 
1753
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 1754
        getHolidays_result result = new getHolidays_result();
3430 rajveer 1755
        result.success = iface.getHolidays(args.fromDate, args.toDate);
1756
        return result;
1730 ankur.sing 1757
      }
1758
    }
1759
 
4934 amit.gupta 1760
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
1761
      public getEntityLogisticsEstimation() {
1762
        super("getEntityLogisticsEstimation");
1763
      }
1764
 
1765
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
1766
        return new getEntityLogisticsEstimation_args();
1767
      }
1768
 
1769
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
1770
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
1771
        try {
1772
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
1773
        } catch (LogisticsServiceException se) {
1774
          result.se = se;
1775
        }
1776
        return result;
1777
      }
1778
    }
1779
 
5527 anupam.sin 1780
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
1781
      public getProviderForPickupType() {
1782
        super("getProviderForPickupType");
1783
      }
1784
 
1785
      protected getProviderForPickupType_args getEmptyArgsInstance() {
1786
        return new getProviderForPickupType_args();
1787
      }
1788
 
1789
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
1790
        getProviderForPickupType_result result = new getProviderForPickupType_result();
1791
        result.success = iface.getProviderForPickupType(args.pickUp);
1792
        result.setSuccessIsSet(true);
1793
        return result;
1794
      }
1795
    }
1796
 
5553 rajveer 1797
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
1798
      public getAllPickupStores() {
1799
        super("getAllPickupStores");
1800
      }
1801
 
1802
      protected getAllPickupStores_args getEmptyArgsInstance() {
1803
        return new getAllPickupStores_args();
1804
      }
1805
 
1806
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
1807
        getAllPickupStores_result result = new getAllPickupStores_result();
1808
        result.success = iface.getAllPickupStores();
1809
        return result;
1810
      }
1811
    }
1812
 
1813
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
1814
      public getPickupStore() {
1815
        super("getPickupStore");
1816
      }
1817
 
1818
      protected getPickupStore_args getEmptyArgsInstance() {
1819
        return new getPickupStore_args();
1820
      }
1821
 
1822
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
1823
        getPickupStore_result result = new getPickupStore_result();
1824
        result.success = iface.getPickupStore(args.storeId);
1825
        return result;
1826
      }
1827
    }
1828
 
5719 rajveer 1829
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
1830
      public getPickupStoreByHotspotId() {
1831
        super("getPickupStoreByHotspotId");
1832
      }
1833
 
1834
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
1835
        return new getPickupStoreByHotspotId_args();
1836
      }
1837
 
1838
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
1839
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
1840
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
1841
        return result;
1842
      }
1843
    }
1844
 
6322 amar.kumar 1845
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
1846
      public addPincode() {
1847
        super("addPincode");
1848
      }
1849
 
1850
      protected addPincode_args getEmptyArgsInstance() {
1851
        return new addPincode_args();
1852
      }
1853
 
1854
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
1855
        addPincode_result result = new addPincode_result();
6524 rajveer 1856
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 1857
        return result;
1858
      }
1859
    }
1860
 
1861
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
1862
      public updatePincode() {
1863
        super("updatePincode");
1864
      }
1865
 
1866
      protected updatePincode_args getEmptyArgsInstance() {
1867
        return new updatePincode_args();
1868
      }
1869
 
1870
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
1871
        updatePincode_result result = new updatePincode_result();
6524 rajveer 1872
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 1873
        return result;
1874
      }
1875
    }
1876
 
7567 rajveer 1877
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
1878
      public addNewAwbs() {
1879
        super("addNewAwbs");
1880
      }
1881
 
1882
      protected addNewAwbs_args getEmptyArgsInstance() {
1883
        return new addNewAwbs_args();
1884
      }
1885
 
1886
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
1887
        addNewAwbs_result result = new addNewAwbs_result();
1888
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
1889
        result.setSuccessIsSet(true);
1890
        return result;
1891
      }
1892
    }
1893
 
7788 manish.sha 1894
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
1895
      public runLogisticsLocationInfoUpdate() {
1896
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 1897
      }
1898
 
7788 manish.sha 1899
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
1900
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 1901
      }
1902
 
7788 manish.sha 1903
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
1904
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
1905
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 1906
        return result;
1907
      }
1908
    }
1909
 
7888 rajveer 1910
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
1911
      public adjustDeliveryDays() {
1912
        super("adjustDeliveryDays");
1913
      }
1914
 
1915
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
1916
        return new adjustDeliveryDays_args();
1917
      }
1918
 
1919
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
1920
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
1921
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
1922
        result.setSuccessIsSet(true);
1923
        return result;
1924
      }
1925
    }
1926
 
412 ashish 1927
  }
1928
 
3430 rajveer 1929
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
1930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 1931
 
3430 rajveer 1932
    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 1933
 
3430 rajveer 1934
    private long providerId; // required
668 chandransh 1935
 
1936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 1938
      PROVIDER_ID((short)1, "providerId");
1939
 
1940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1941
 
1942
      static {
1943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1944
          byName.put(field.getFieldName(), field);
1945
        }
1946
      }
1947
 
1948
      /**
1949
       * Find the _Fields constant that matches fieldId, or null if its not found.
1950
       */
1951
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1952
        switch(fieldId) {
1953
          case 1: // PROVIDER_ID
1954
            return PROVIDER_ID;
1955
          default:
1956
            return null;
1957
        }
668 chandransh 1958
      }
1959
 
1960
      /**
1961
       * Find the _Fields constant that matches fieldId, throwing an exception
1962
       * if it is not found.
1963
       */
1964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1965
        _Fields fields = findByThriftId(fieldId);
1966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1967
        return fields;
1968
      }
1969
 
1970
      /**
1971
       * Find the _Fields constant that matches name, or null if its not found.
1972
       */
1973
      public static _Fields findByName(String name) {
1974
        return byName.get(name);
1975
      }
1976
 
1977
      private final short _thriftId;
1978
      private final String _fieldName;
1979
 
1980
      _Fields(short thriftId, String fieldName) {
1981
        _thriftId = thriftId;
1982
        _fieldName = fieldName;
1983
      }
1984
 
1985
      public short getThriftFieldId() {
1986
        return _thriftId;
1987
      }
1988
 
1989
      public String getFieldName() {
1990
        return _fieldName;
1991
      }
1992
    }
1993
 
1994
    // isset id assignments
1995
    private static final int __PROVIDERID_ISSET_ID = 0;
1996
    private BitSet __isset_bit_vector = new BitSet(1);
1997
 
3430 rajveer 1998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 1999
    static {
3430 rajveer 2000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2001
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2002
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2005
    }
2006
 
2007
    public getProvider_args() {
2008
    }
2009
 
2010
    public getProvider_args(
2011
      long providerId)
2012
    {
2013
      this();
2014
      this.providerId = providerId;
2015
      setProviderIdIsSet(true);
2016
    }
2017
 
2018
    /**
2019
     * Performs a deep copy on <i>other</i>.
2020
     */
2021
    public getProvider_args(getProvider_args other) {
2022
      __isset_bit_vector.clear();
2023
      __isset_bit_vector.or(other.__isset_bit_vector);
2024
      this.providerId = other.providerId;
2025
    }
2026
 
2027
    public getProvider_args deepCopy() {
2028
      return new getProvider_args(this);
2029
    }
2030
 
3430 rajveer 2031
    @Override
2032
    public void clear() {
2033
      setProviderIdIsSet(false);
2034
      this.providerId = 0;
668 chandransh 2035
    }
2036
 
2037
    public long getProviderId() {
2038
      return this.providerId;
2039
    }
2040
 
3430 rajveer 2041
    public void setProviderId(long providerId) {
668 chandransh 2042
      this.providerId = providerId;
2043
      setProviderIdIsSet(true);
2044
    }
2045
 
2046
    public void unsetProviderId() {
2047
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2048
    }
2049
 
3430 rajveer 2050
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2051
    public boolean isSetProviderId() {
2052
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2053
    }
2054
 
2055
    public void setProviderIdIsSet(boolean value) {
2056
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2057
    }
2058
 
2059
    public void setFieldValue(_Fields field, Object value) {
2060
      switch (field) {
2061
      case PROVIDER_ID:
2062
        if (value == null) {
2063
          unsetProviderId();
2064
        } else {
2065
          setProviderId((Long)value);
2066
        }
2067
        break;
2068
 
2069
      }
2070
    }
2071
 
2072
    public Object getFieldValue(_Fields field) {
2073
      switch (field) {
2074
      case PROVIDER_ID:
3430 rajveer 2075
        return Long.valueOf(getProviderId());
668 chandransh 2076
 
2077
      }
2078
      throw new IllegalStateException();
2079
    }
2080
 
3430 rajveer 2081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2082
    public boolean isSet(_Fields field) {
2083
      if (field == null) {
2084
        throw new IllegalArgumentException();
2085
      }
668 chandransh 2086
 
2087
      switch (field) {
2088
      case PROVIDER_ID:
2089
        return isSetProviderId();
2090
      }
2091
      throw new IllegalStateException();
2092
    }
2093
 
2094
    @Override
2095
    public boolean equals(Object that) {
2096
      if (that == null)
2097
        return false;
2098
      if (that instanceof getProvider_args)
2099
        return this.equals((getProvider_args)that);
2100
      return false;
2101
    }
2102
 
2103
    public boolean equals(getProvider_args that) {
2104
      if (that == null)
2105
        return false;
2106
 
2107
      boolean this_present_providerId = true;
2108
      boolean that_present_providerId = true;
2109
      if (this_present_providerId || that_present_providerId) {
2110
        if (!(this_present_providerId && that_present_providerId))
2111
          return false;
2112
        if (this.providerId != that.providerId)
2113
          return false;
2114
      }
2115
 
2116
      return true;
2117
    }
2118
 
2119
    @Override
2120
    public int hashCode() {
2121
      return 0;
2122
    }
2123
 
2124
    public int compareTo(getProvider_args other) {
2125
      if (!getClass().equals(other.getClass())) {
2126
        return getClass().getName().compareTo(other.getClass().getName());
2127
      }
2128
 
2129
      int lastComparison = 0;
2130
      getProvider_args typedOther = (getProvider_args)other;
2131
 
3430 rajveer 2132
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2133
      if (lastComparison != 0) {
2134
        return lastComparison;
2135
      }
3430 rajveer 2136
      if (isSetProviderId()) {
2137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2138
        if (lastComparison != 0) {
2139
          return lastComparison;
2140
        }
668 chandransh 2141
      }
2142
      return 0;
2143
    }
2144
 
3430 rajveer 2145
    public _Fields fieldForId(int fieldId) {
2146
      return _Fields.findByThriftId(fieldId);
2147
    }
2148
 
2149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2150
      org.apache.thrift.protocol.TField field;
668 chandransh 2151
      iprot.readStructBegin();
2152
      while (true)
2153
      {
2154
        field = iprot.readFieldBegin();
3430 rajveer 2155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2156
          break;
2157
        }
3430 rajveer 2158
        switch (field.id) {
2159
          case 1: // PROVIDER_ID
2160
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2161
              this.providerId = iprot.readI64();
2162
              setProviderIdIsSet(true);
2163
            } else { 
2164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2165
            }
2166
            break;
2167
          default:
2168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2169
        }
3430 rajveer 2170
        iprot.readFieldEnd();
668 chandransh 2171
      }
2172
      iprot.readStructEnd();
2173
      validate();
2174
    }
2175
 
3430 rajveer 2176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2177
      validate();
2178
 
2179
      oprot.writeStructBegin(STRUCT_DESC);
2180
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2181
      oprot.writeI64(this.providerId);
2182
      oprot.writeFieldEnd();
2183
      oprot.writeFieldStop();
2184
      oprot.writeStructEnd();
2185
    }
2186
 
2187
    @Override
2188
    public String toString() {
2189
      StringBuilder sb = new StringBuilder("getProvider_args(");
2190
      boolean first = true;
2191
 
2192
      sb.append("providerId:");
2193
      sb.append(this.providerId);
2194
      first = false;
2195
      sb.append(")");
2196
      return sb.toString();
2197
    }
2198
 
3430 rajveer 2199
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2200
      // check for required fields
2201
    }
2202
 
3430 rajveer 2203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2204
      try {
2205
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2206
      } catch (org.apache.thrift.TException te) {
2207
        throw new java.io.IOException(te);
2208
      }
2209
    }
2210
 
2211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2212
      try {
2213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2214
      } catch (org.apache.thrift.TException te) {
2215
        throw new java.io.IOException(te);
2216
      }
2217
    }
2218
 
668 chandransh 2219
  }
2220
 
3430 rajveer 2221
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2223
 
3430 rajveer 2224
    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);
2225
    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 2226
 
3430 rajveer 2227
    private Provider success; // required
2228
    private LogisticsServiceException lse; // required
668 chandransh 2229
 
2230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2232
      SUCCESS((short)0, "success"),
2233
      LSE((short)1, "lse");
2234
 
2235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2236
 
2237
      static {
2238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2239
          byName.put(field.getFieldName(), field);
2240
        }
2241
      }
2242
 
2243
      /**
2244
       * Find the _Fields constant that matches fieldId, or null if its not found.
2245
       */
2246
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2247
        switch(fieldId) {
2248
          case 0: // SUCCESS
2249
            return SUCCESS;
2250
          case 1: // LSE
2251
            return LSE;
2252
          default:
2253
            return null;
2254
        }
668 chandransh 2255
      }
2256
 
2257
      /**
2258
       * Find the _Fields constant that matches fieldId, throwing an exception
2259
       * if it is not found.
2260
       */
2261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2262
        _Fields fields = findByThriftId(fieldId);
2263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2264
        return fields;
2265
      }
2266
 
2267
      /**
2268
       * Find the _Fields constant that matches name, or null if its not found.
2269
       */
2270
      public static _Fields findByName(String name) {
2271
        return byName.get(name);
2272
      }
2273
 
2274
      private final short _thriftId;
2275
      private final String _fieldName;
2276
 
2277
      _Fields(short thriftId, String fieldName) {
2278
        _thriftId = thriftId;
2279
        _fieldName = fieldName;
2280
      }
2281
 
2282
      public short getThriftFieldId() {
2283
        return _thriftId;
2284
      }
2285
 
2286
      public String getFieldName() {
2287
        return _fieldName;
2288
      }
2289
    }
2290
 
2291
    // isset id assignments
2292
 
3430 rajveer 2293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2294
    static {
3430 rajveer 2295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2297
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2298
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2302
    }
2303
 
2304
    public getProvider_result() {
2305
    }
2306
 
2307
    public getProvider_result(
2308
      Provider success,
2309
      LogisticsServiceException lse)
2310
    {
2311
      this();
2312
      this.success = success;
2313
      this.lse = lse;
2314
    }
2315
 
2316
    /**
2317
     * Performs a deep copy on <i>other</i>.
2318
     */
2319
    public getProvider_result(getProvider_result other) {
2320
      if (other.isSetSuccess()) {
2321
        this.success = new Provider(other.success);
2322
      }
2323
      if (other.isSetLse()) {
2324
        this.lse = new LogisticsServiceException(other.lse);
2325
      }
2326
    }
2327
 
2328
    public getProvider_result deepCopy() {
2329
      return new getProvider_result(this);
2330
    }
2331
 
3430 rajveer 2332
    @Override
2333
    public void clear() {
2334
      this.success = null;
2335
      this.lse = null;
668 chandransh 2336
    }
2337
 
2338
    public Provider getSuccess() {
2339
      return this.success;
2340
    }
2341
 
3430 rajveer 2342
    public void setSuccess(Provider success) {
668 chandransh 2343
      this.success = success;
2344
    }
2345
 
2346
    public void unsetSuccess() {
2347
      this.success = null;
2348
    }
2349
 
3430 rajveer 2350
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2351
    public boolean isSetSuccess() {
2352
      return this.success != null;
2353
    }
2354
 
2355
    public void setSuccessIsSet(boolean value) {
2356
      if (!value) {
2357
        this.success = null;
2358
      }
2359
    }
2360
 
2361
    public LogisticsServiceException getLse() {
2362
      return this.lse;
2363
    }
2364
 
3430 rajveer 2365
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2366
      this.lse = lse;
2367
    }
2368
 
2369
    public void unsetLse() {
2370
      this.lse = null;
2371
    }
2372
 
3430 rajveer 2373
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2374
    public boolean isSetLse() {
2375
      return this.lse != null;
2376
    }
2377
 
2378
    public void setLseIsSet(boolean value) {
2379
      if (!value) {
2380
        this.lse = null;
2381
      }
2382
    }
2383
 
2384
    public void setFieldValue(_Fields field, Object value) {
2385
      switch (field) {
2386
      case SUCCESS:
2387
        if (value == null) {
2388
          unsetSuccess();
2389
        } else {
2390
          setSuccess((Provider)value);
2391
        }
2392
        break;
2393
 
2394
      case LSE:
2395
        if (value == null) {
2396
          unsetLse();
2397
        } else {
2398
          setLse((LogisticsServiceException)value);
2399
        }
2400
        break;
2401
 
2402
      }
2403
    }
2404
 
2405
    public Object getFieldValue(_Fields field) {
2406
      switch (field) {
2407
      case SUCCESS:
2408
        return getSuccess();
2409
 
2410
      case LSE:
2411
        return getLse();
2412
 
2413
      }
2414
      throw new IllegalStateException();
2415
    }
2416
 
3430 rajveer 2417
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2418
    public boolean isSet(_Fields field) {
2419
      if (field == null) {
2420
        throw new IllegalArgumentException();
2421
      }
668 chandransh 2422
 
2423
      switch (field) {
2424
      case SUCCESS:
2425
        return isSetSuccess();
2426
      case LSE:
2427
        return isSetLse();
2428
      }
2429
      throw new IllegalStateException();
2430
    }
2431
 
2432
    @Override
2433
    public boolean equals(Object that) {
2434
      if (that == null)
2435
        return false;
2436
      if (that instanceof getProvider_result)
2437
        return this.equals((getProvider_result)that);
2438
      return false;
2439
    }
2440
 
2441
    public boolean equals(getProvider_result that) {
2442
      if (that == null)
2443
        return false;
2444
 
2445
      boolean this_present_success = true && this.isSetSuccess();
2446
      boolean that_present_success = true && that.isSetSuccess();
2447
      if (this_present_success || that_present_success) {
2448
        if (!(this_present_success && that_present_success))
2449
          return false;
2450
        if (!this.success.equals(that.success))
2451
          return false;
2452
      }
2453
 
2454
      boolean this_present_lse = true && this.isSetLse();
2455
      boolean that_present_lse = true && that.isSetLse();
2456
      if (this_present_lse || that_present_lse) {
2457
        if (!(this_present_lse && that_present_lse))
2458
          return false;
2459
        if (!this.lse.equals(that.lse))
2460
          return false;
2461
      }
2462
 
2463
      return true;
2464
    }
2465
 
2466
    @Override
2467
    public int hashCode() {
2468
      return 0;
2469
    }
2470
 
3430 rajveer 2471
    public int compareTo(getProvider_result other) {
2472
      if (!getClass().equals(other.getClass())) {
2473
        return getClass().getName().compareTo(other.getClass().getName());
2474
      }
2475
 
2476
      int lastComparison = 0;
2477
      getProvider_result typedOther = (getProvider_result)other;
2478
 
2479
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2480
      if (lastComparison != 0) {
2481
        return lastComparison;
2482
      }
2483
      if (isSetSuccess()) {
2484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2485
        if (lastComparison != 0) {
2486
          return lastComparison;
2487
        }
2488
      }
2489
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2490
      if (lastComparison != 0) {
2491
        return lastComparison;
2492
      }
2493
      if (isSetLse()) {
2494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2495
        if (lastComparison != 0) {
2496
          return lastComparison;
2497
        }
2498
      }
2499
      return 0;
2500
    }
2501
 
2502
    public _Fields fieldForId(int fieldId) {
2503
      return _Fields.findByThriftId(fieldId);
2504
    }
2505
 
2506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2507
      org.apache.thrift.protocol.TField field;
668 chandransh 2508
      iprot.readStructBegin();
2509
      while (true)
2510
      {
2511
        field = iprot.readFieldBegin();
3430 rajveer 2512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2513
          break;
2514
        }
3430 rajveer 2515
        switch (field.id) {
2516
          case 0: // SUCCESS
2517
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2518
              this.success = new Provider();
2519
              this.success.read(iprot);
2520
            } else { 
2521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2522
            }
2523
            break;
2524
          case 1: // LSE
2525
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2526
              this.lse = new LogisticsServiceException();
2527
              this.lse.read(iprot);
2528
            } else { 
2529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2530
            }
2531
            break;
2532
          default:
2533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2534
        }
3430 rajveer 2535
        iprot.readFieldEnd();
668 chandransh 2536
      }
2537
      iprot.readStructEnd();
2538
      validate();
2539
    }
2540
 
3430 rajveer 2541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2542
      oprot.writeStructBegin(STRUCT_DESC);
2543
 
2544
      if (this.isSetSuccess()) {
2545
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2546
        this.success.write(oprot);
2547
        oprot.writeFieldEnd();
2548
      } else if (this.isSetLse()) {
2549
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2550
        this.lse.write(oprot);
2551
        oprot.writeFieldEnd();
2552
      }
2553
      oprot.writeFieldStop();
2554
      oprot.writeStructEnd();
2555
    }
2556
 
2557
    @Override
2558
    public String toString() {
2559
      StringBuilder sb = new StringBuilder("getProvider_result(");
2560
      boolean first = true;
2561
 
2562
      sb.append("success:");
2563
      if (this.success == null) {
2564
        sb.append("null");
2565
      } else {
2566
        sb.append(this.success);
2567
      }
2568
      first = false;
2569
      if (!first) sb.append(", ");
2570
      sb.append("lse:");
2571
      if (this.lse == null) {
2572
        sb.append("null");
2573
      } else {
2574
        sb.append(this.lse);
2575
      }
2576
      first = false;
2577
      sb.append(")");
2578
      return sb.toString();
2579
    }
2580
 
3430 rajveer 2581
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2582
      // check for required fields
2583
    }
2584
 
3430 rajveer 2585
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2586
      try {
2587
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2588
      } catch (org.apache.thrift.TException te) {
2589
        throw new java.io.IOException(te);
2590
      }
2591
    }
2592
 
2593
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2594
      try {
2595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2596
      } catch (org.apache.thrift.TException te) {
2597
        throw new java.io.IOException(te);
2598
      }
2599
    }
2600
 
668 chandransh 2601
  }
2602
 
3430 rajveer 2603
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2605
 
2606
 
2607
 
2608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2610
;
2611
 
2612
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2613
 
2614
      static {
2615
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2616
          byName.put(field.getFieldName(), field);
2617
        }
2618
      }
2619
 
2620
      /**
2621
       * Find the _Fields constant that matches fieldId, or null if its not found.
2622
       */
2623
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2624
        switch(fieldId) {
2625
          default:
2626
            return null;
2627
        }
674 chandransh 2628
      }
2629
 
2630
      /**
2631
       * Find the _Fields constant that matches fieldId, throwing an exception
2632
       * if it is not found.
2633
       */
2634
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2635
        _Fields fields = findByThriftId(fieldId);
2636
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2637
        return fields;
2638
      }
2639
 
2640
      /**
2641
       * Find the _Fields constant that matches name, or null if its not found.
2642
       */
2643
      public static _Fields findByName(String name) {
2644
        return byName.get(name);
2645
      }
2646
 
2647
      private final short _thriftId;
2648
      private final String _fieldName;
2649
 
2650
      _Fields(short thriftId, String fieldName) {
2651
        _thriftId = thriftId;
2652
        _fieldName = fieldName;
2653
      }
2654
 
2655
      public short getThriftFieldId() {
2656
        return _thriftId;
2657
      }
2658
 
2659
      public String getFieldName() {
2660
        return _fieldName;
2661
      }
2662
    }
3430 rajveer 2663
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2664
    static {
3430 rajveer 2665
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2666
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2667
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 2668
    }
2669
 
2670
    public getAllProviders_args() {
2671
    }
2672
 
2673
    /**
2674
     * Performs a deep copy on <i>other</i>.
2675
     */
2676
    public getAllProviders_args(getAllProviders_args other) {
2677
    }
2678
 
2679
    public getAllProviders_args deepCopy() {
2680
      return new getAllProviders_args(this);
2681
    }
2682
 
3430 rajveer 2683
    @Override
2684
    public void clear() {
674 chandransh 2685
    }
2686
 
2687
    public void setFieldValue(_Fields field, Object value) {
2688
      switch (field) {
2689
      }
2690
    }
2691
 
2692
    public Object getFieldValue(_Fields field) {
2693
      switch (field) {
2694
      }
2695
      throw new IllegalStateException();
2696
    }
2697
 
3430 rajveer 2698
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2699
    public boolean isSet(_Fields field) {
2700
      if (field == null) {
2701
        throw new IllegalArgumentException();
2702
      }
674 chandransh 2703
 
2704
      switch (field) {
2705
      }
2706
      throw new IllegalStateException();
2707
    }
2708
 
2709
    @Override
2710
    public boolean equals(Object that) {
2711
      if (that == null)
2712
        return false;
2713
      if (that instanceof getAllProviders_args)
2714
        return this.equals((getAllProviders_args)that);
2715
      return false;
2716
    }
2717
 
2718
    public boolean equals(getAllProviders_args that) {
2719
      if (that == null)
2720
        return false;
2721
 
2722
      return true;
2723
    }
2724
 
2725
    @Override
2726
    public int hashCode() {
2727
      return 0;
2728
    }
2729
 
2730
    public int compareTo(getAllProviders_args other) {
2731
      if (!getClass().equals(other.getClass())) {
2732
        return getClass().getName().compareTo(other.getClass().getName());
2733
      }
2734
 
2735
      int lastComparison = 0;
2736
      getAllProviders_args typedOther = (getAllProviders_args)other;
2737
 
2738
      return 0;
2739
    }
2740
 
3430 rajveer 2741
    public _Fields fieldForId(int fieldId) {
2742
      return _Fields.findByThriftId(fieldId);
2743
    }
2744
 
2745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2746
      org.apache.thrift.protocol.TField field;
674 chandransh 2747
      iprot.readStructBegin();
2748
      while (true)
2749
      {
2750
        field = iprot.readFieldBegin();
3430 rajveer 2751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 2752
          break;
2753
        }
3430 rajveer 2754
        switch (field.id) {
2755
          default:
2756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 2757
        }
3430 rajveer 2758
        iprot.readFieldEnd();
674 chandransh 2759
      }
2760
      iprot.readStructEnd();
2761
      validate();
2762
    }
2763
 
3430 rajveer 2764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 2765
      validate();
2766
 
2767
      oprot.writeStructBegin(STRUCT_DESC);
2768
      oprot.writeFieldStop();
2769
      oprot.writeStructEnd();
2770
    }
2771
 
2772
    @Override
2773
    public String toString() {
2774
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
2775
      boolean first = true;
2776
 
2777
      sb.append(")");
2778
      return sb.toString();
2779
    }
2780
 
3430 rajveer 2781
    public void validate() throws org.apache.thrift.TException {
674 chandransh 2782
      // check for required fields
2783
    }
2784
 
3430 rajveer 2785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2786
      try {
2787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2788
      } catch (org.apache.thrift.TException te) {
2789
        throw new java.io.IOException(te);
2790
      }
2791
    }
2792
 
2793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2794
      try {
2795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2796
      } catch (org.apache.thrift.TException te) {
2797
        throw new java.io.IOException(te);
2798
      }
2799
    }
2800
 
674 chandransh 2801
  }
2802
 
3430 rajveer 2803
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
2804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 2805
 
3430 rajveer 2806
    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);
2807
    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 2808
 
3430 rajveer 2809
    private List<Provider> success; // required
2810
    private LogisticsServiceException lse; // required
674 chandransh 2811
 
2812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2814
      SUCCESS((short)0, "success"),
2815
      LSE((short)1, "lse");
2816
 
2817
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2818
 
2819
      static {
2820
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2821
          byName.put(field.getFieldName(), field);
2822
        }
2823
      }
2824
 
2825
      /**
2826
       * Find the _Fields constant that matches fieldId, or null if its not found.
2827
       */
2828
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2829
        switch(fieldId) {
2830
          case 0: // SUCCESS
2831
            return SUCCESS;
2832
          case 1: // LSE
2833
            return LSE;
2834
          default:
2835
            return null;
2836
        }
674 chandransh 2837
      }
2838
 
2839
      /**
2840
       * Find the _Fields constant that matches fieldId, throwing an exception
2841
       * if it is not found.
2842
       */
2843
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2844
        _Fields fields = findByThriftId(fieldId);
2845
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2846
        return fields;
2847
      }
2848
 
2849
      /**
2850
       * Find the _Fields constant that matches name, or null if its not found.
2851
       */
2852
      public static _Fields findByName(String name) {
2853
        return byName.get(name);
2854
      }
2855
 
2856
      private final short _thriftId;
2857
      private final String _fieldName;
2858
 
2859
      _Fields(short thriftId, String fieldName) {
2860
        _thriftId = thriftId;
2861
        _fieldName = fieldName;
2862
      }
2863
 
2864
      public short getThriftFieldId() {
2865
        return _thriftId;
2866
      }
2867
 
2868
      public String getFieldName() {
2869
        return _fieldName;
2870
      }
2871
    }
2872
 
2873
    // isset id assignments
2874
 
3430 rajveer 2875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 2876
    static {
3430 rajveer 2877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2878
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2879
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2880
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
2881
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 2885
    }
2886
 
2887
    public getAllProviders_result() {
2888
    }
2889
 
2890
    public getAllProviders_result(
2891
      List<Provider> success,
2892
      LogisticsServiceException lse)
2893
    {
2894
      this();
2895
      this.success = success;
2896
      this.lse = lse;
2897
    }
2898
 
2899
    /**
2900
     * Performs a deep copy on <i>other</i>.
2901
     */
2902
    public getAllProviders_result(getAllProviders_result other) {
2903
      if (other.isSetSuccess()) {
2904
        List<Provider> __this__success = new ArrayList<Provider>();
2905
        for (Provider other_element : other.success) {
2906
          __this__success.add(new Provider(other_element));
2907
        }
2908
        this.success = __this__success;
2909
      }
2910
      if (other.isSetLse()) {
2911
        this.lse = new LogisticsServiceException(other.lse);
2912
      }
2913
    }
2914
 
2915
    public getAllProviders_result deepCopy() {
2916
      return new getAllProviders_result(this);
2917
    }
2918
 
3430 rajveer 2919
    @Override
2920
    public void clear() {
2921
      this.success = null;
2922
      this.lse = null;
674 chandransh 2923
    }
2924
 
2925
    public int getSuccessSize() {
2926
      return (this.success == null) ? 0 : this.success.size();
2927
    }
2928
 
2929
    public java.util.Iterator<Provider> getSuccessIterator() {
2930
      return (this.success == null) ? null : this.success.iterator();
2931
    }
2932
 
2933
    public void addToSuccess(Provider elem) {
2934
      if (this.success == null) {
2935
        this.success = new ArrayList<Provider>();
2936
      }
2937
      this.success.add(elem);
2938
    }
2939
 
2940
    public List<Provider> getSuccess() {
2941
      return this.success;
2942
    }
2943
 
3430 rajveer 2944
    public void setSuccess(List<Provider> success) {
674 chandransh 2945
      this.success = success;
2946
    }
2947
 
2948
    public void unsetSuccess() {
2949
      this.success = null;
2950
    }
2951
 
3430 rajveer 2952
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 2953
    public boolean isSetSuccess() {
2954
      return this.success != null;
2955
    }
2956
 
2957
    public void setSuccessIsSet(boolean value) {
2958
      if (!value) {
2959
        this.success = null;
2960
      }
2961
    }
2962
 
2963
    public LogisticsServiceException getLse() {
2964
      return this.lse;
2965
    }
2966
 
3430 rajveer 2967
    public void setLse(LogisticsServiceException lse) {
674 chandransh 2968
      this.lse = lse;
2969
    }
2970
 
2971
    public void unsetLse() {
2972
      this.lse = null;
2973
    }
2974
 
3430 rajveer 2975
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 2976
    public boolean isSetLse() {
2977
      return this.lse != null;
2978
    }
2979
 
2980
    public void setLseIsSet(boolean value) {
2981
      if (!value) {
2982
        this.lse = null;
2983
      }
2984
    }
2985
 
2986
    public void setFieldValue(_Fields field, Object value) {
2987
      switch (field) {
2988
      case SUCCESS:
2989
        if (value == null) {
2990
          unsetSuccess();
2991
        } else {
2992
          setSuccess((List<Provider>)value);
2993
        }
2994
        break;
2995
 
2996
      case LSE:
2997
        if (value == null) {
2998
          unsetLse();
2999
        } else {
3000
          setLse((LogisticsServiceException)value);
3001
        }
3002
        break;
3003
 
3004
      }
3005
    }
3006
 
3007
    public Object getFieldValue(_Fields field) {
3008
      switch (field) {
3009
      case SUCCESS:
3010
        return getSuccess();
3011
 
3012
      case LSE:
3013
        return getLse();
3014
 
3015
      }
3016
      throw new IllegalStateException();
3017
    }
3018
 
3430 rajveer 3019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3020
    public boolean isSet(_Fields field) {
3021
      if (field == null) {
3022
        throw new IllegalArgumentException();
3023
      }
674 chandransh 3024
 
3025
      switch (field) {
3026
      case SUCCESS:
3027
        return isSetSuccess();
3028
      case LSE:
3029
        return isSetLse();
3030
      }
3031
      throw new IllegalStateException();
3032
    }
3033
 
3034
    @Override
3035
    public boolean equals(Object that) {
3036
      if (that == null)
3037
        return false;
3038
      if (that instanceof getAllProviders_result)
3039
        return this.equals((getAllProviders_result)that);
3040
      return false;
3041
    }
3042
 
3043
    public boolean equals(getAllProviders_result that) {
3044
      if (that == null)
3045
        return false;
3046
 
3047
      boolean this_present_success = true && this.isSetSuccess();
3048
      boolean that_present_success = true && that.isSetSuccess();
3049
      if (this_present_success || that_present_success) {
3050
        if (!(this_present_success && that_present_success))
3051
          return false;
3052
        if (!this.success.equals(that.success))
3053
          return false;
3054
      }
3055
 
3056
      boolean this_present_lse = true && this.isSetLse();
3057
      boolean that_present_lse = true && that.isSetLse();
3058
      if (this_present_lse || that_present_lse) {
3059
        if (!(this_present_lse && that_present_lse))
3060
          return false;
3061
        if (!this.lse.equals(that.lse))
3062
          return false;
3063
      }
3064
 
3065
      return true;
3066
    }
3067
 
3068
    @Override
3069
    public int hashCode() {
3070
      return 0;
3071
    }
3072
 
3430 rajveer 3073
    public int compareTo(getAllProviders_result other) {
3074
      if (!getClass().equals(other.getClass())) {
3075
        return getClass().getName().compareTo(other.getClass().getName());
3076
      }
3077
 
3078
      int lastComparison = 0;
3079
      getAllProviders_result typedOther = (getAllProviders_result)other;
3080
 
3081
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3082
      if (lastComparison != 0) {
3083
        return lastComparison;
3084
      }
3085
      if (isSetSuccess()) {
3086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3087
        if (lastComparison != 0) {
3088
          return lastComparison;
3089
        }
3090
      }
3091
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3092
      if (lastComparison != 0) {
3093
        return lastComparison;
3094
      }
3095
      if (isSetLse()) {
3096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3097
        if (lastComparison != 0) {
3098
          return lastComparison;
3099
        }
3100
      }
3101
      return 0;
3102
    }
3103
 
3104
    public _Fields fieldForId(int fieldId) {
3105
      return _Fields.findByThriftId(fieldId);
3106
    }
3107
 
3108
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3109
      org.apache.thrift.protocol.TField field;
674 chandransh 3110
      iprot.readStructBegin();
3111
      while (true)
3112
      {
3113
        field = iprot.readFieldBegin();
3430 rajveer 3114
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3115
          break;
3116
        }
3430 rajveer 3117
        switch (field.id) {
3118
          case 0: // SUCCESS
3119
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3120
              {
7792 anupam.sin 3121
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3122
                this.success = new ArrayList<Provider>(_list4.size);
3123
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3124
                {
7792 anupam.sin 3125
                  Provider _elem6; // required
3126
                  _elem6 = new Provider();
3127
                  _elem6.read(iprot);
3128
                  this.success.add(_elem6);
674 chandransh 3129
                }
3430 rajveer 3130
                iprot.readListEnd();
674 chandransh 3131
              }
3430 rajveer 3132
            } else { 
3133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3134
            }
3135
            break;
3136
          case 1: // LSE
3137
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3138
              this.lse = new LogisticsServiceException();
3139
              this.lse.read(iprot);
3140
            } else { 
3141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3142
            }
3143
            break;
3144
          default:
3145
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3146
        }
3430 rajveer 3147
        iprot.readFieldEnd();
674 chandransh 3148
      }
3149
      iprot.readStructEnd();
3150
      validate();
3151
    }
3152
 
3430 rajveer 3153
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3154
      oprot.writeStructBegin(STRUCT_DESC);
3155
 
3156
      if (this.isSetSuccess()) {
3157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3158
        {
3430 rajveer 3159
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3160
          for (Provider _iter7 : this.success)
674 chandransh 3161
          {
7792 anupam.sin 3162
            _iter7.write(oprot);
674 chandransh 3163
          }
3164
          oprot.writeListEnd();
3165
        }
3166
        oprot.writeFieldEnd();
3167
      } else if (this.isSetLse()) {
3168
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3169
        this.lse.write(oprot);
3170
        oprot.writeFieldEnd();
3171
      }
3172
      oprot.writeFieldStop();
3173
      oprot.writeStructEnd();
3174
    }
3175
 
3176
    @Override
3177
    public String toString() {
3178
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3179
      boolean first = true;
3180
 
3181
      sb.append("success:");
3182
      if (this.success == null) {
3183
        sb.append("null");
3184
      } else {
3185
        sb.append(this.success);
3186
      }
3187
      first = false;
3188
      if (!first) sb.append(", ");
3189
      sb.append("lse:");
3190
      if (this.lse == null) {
3191
        sb.append("null");
3192
      } else {
3193
        sb.append(this.lse);
3194
      }
3195
      first = false;
3196
      sb.append(")");
3197
      return sb.toString();
3198
    }
3199
 
3430 rajveer 3200
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3201
      // check for required fields
3202
    }
3203
 
3430 rajveer 3204
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3205
      try {
3206
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3207
      } catch (org.apache.thrift.TException te) {
3208
        throw new java.io.IOException(te);
3209
      }
3210
    }
3211
 
3212
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3213
      try {
3214
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3215
      } catch (org.apache.thrift.TException te) {
3216
        throw new java.io.IOException(te);
3217
      }
3218
    }
3219
 
674 chandransh 3220
  }
3221
 
3430 rajveer 3222
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3223
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3224
 
3430 rajveer 3225
    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);
3226
    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 3227
    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 3228
 
3430 rajveer 3229
    private long itemId; // required
3230
    private String destination_pin; // required
4630 mandeep.dh 3231
    private DeliveryType type; // required
471 rajveer 3232
 
3233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3235
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3236
      DESTINATION_PIN((short)2, "destination_pin"),
3237
      /**
3238
       * 
3239
       * @see DeliveryType
3240
       */
3241
      TYPE((short)3, "type");
471 rajveer 3242
 
3243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3244
 
3245
      static {
3246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3247
          byName.put(field.getFieldName(), field);
3248
        }
3249
      }
3250
 
3251
      /**
3252
       * Find the _Fields constant that matches fieldId, or null if its not found.
3253
       */
3254
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3255
        switch(fieldId) {
3256
          case 1: // ITEM_ID
3257
            return ITEM_ID;
3258
          case 2: // DESTINATION_PIN
3259
            return DESTINATION_PIN;
4630 mandeep.dh 3260
          case 3: // TYPE
3261
            return TYPE;
3430 rajveer 3262
          default:
3263
            return null;
3264
        }
471 rajveer 3265
      }
3266
 
3267
      /**
3268
       * Find the _Fields constant that matches fieldId, throwing an exception
3269
       * if it is not found.
3270
       */
3271
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3272
        _Fields fields = findByThriftId(fieldId);
3273
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3274
        return fields;
3275
      }
3276
 
3277
      /**
3278
       * Find the _Fields constant that matches name, or null if its not found.
3279
       */
3280
      public static _Fields findByName(String name) {
3281
        return byName.get(name);
3282
      }
3283
 
3284
      private final short _thriftId;
3285
      private final String _fieldName;
3286
 
3287
      _Fields(short thriftId, String fieldName) {
3288
        _thriftId = thriftId;
3289
        _fieldName = fieldName;
3290
      }
3291
 
3292
      public short getThriftFieldId() {
3293
        return _thriftId;
3294
      }
3295
 
3296
      public String getFieldName() {
3297
        return _fieldName;
3298
      }
3299
    }
3300
 
3301
    // isset id assignments
3302
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3303
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3304
 
3430 rajveer 3305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3306
    static {
3430 rajveer 3307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3308
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3309
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3310
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3311
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3312
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3313
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3314
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3315
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3316
    }
3317
 
3318
    public getLogisticsEstimation_args() {
3319
    }
3320
 
3321
    public getLogisticsEstimation_args(
3322
      long itemId,
4630 mandeep.dh 3323
      String destination_pin,
3324
      DeliveryType type)
471 rajveer 3325
    {
3326
      this();
3327
      this.itemId = itemId;
3328
      setItemIdIsSet(true);
3329
      this.destination_pin = destination_pin;
4630 mandeep.dh 3330
      this.type = type;
471 rajveer 3331
    }
3332
 
3333
    /**
3334
     * Performs a deep copy on <i>other</i>.
3335
     */
3336
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3337
      __isset_bit_vector.clear();
3338
      __isset_bit_vector.or(other.__isset_bit_vector);
3339
      this.itemId = other.itemId;
3340
      if (other.isSetDestination_pin()) {
3341
        this.destination_pin = other.destination_pin;
3342
      }
4630 mandeep.dh 3343
      if (other.isSetType()) {
3344
        this.type = other.type;
3345
      }
471 rajveer 3346
    }
3347
 
3348
    public getLogisticsEstimation_args deepCopy() {
3349
      return new getLogisticsEstimation_args(this);
3350
    }
3351
 
3430 rajveer 3352
    @Override
3353
    public void clear() {
3354
      setItemIdIsSet(false);
3355
      this.itemId = 0;
3356
      this.destination_pin = null;
4630 mandeep.dh 3357
      this.type = null;
471 rajveer 3358
    }
3359
 
3360
    public long getItemId() {
3361
      return this.itemId;
3362
    }
3363
 
3430 rajveer 3364
    public void setItemId(long itemId) {
471 rajveer 3365
      this.itemId = itemId;
3366
      setItemIdIsSet(true);
3367
    }
3368
 
3369
    public void unsetItemId() {
3370
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3371
    }
3372
 
3430 rajveer 3373
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3374
    public boolean isSetItemId() {
3375
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3376
    }
3377
 
3378
    public void setItemIdIsSet(boolean value) {
3379
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3380
    }
3381
 
3382
    public String getDestination_pin() {
3383
      return this.destination_pin;
3384
    }
3385
 
3430 rajveer 3386
    public void setDestination_pin(String destination_pin) {
471 rajveer 3387
      this.destination_pin = destination_pin;
3388
    }
3389
 
3390
    public void unsetDestination_pin() {
3391
      this.destination_pin = null;
3392
    }
3393
 
3430 rajveer 3394
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3395
    public boolean isSetDestination_pin() {
3396
      return this.destination_pin != null;
3397
    }
3398
 
3399
    public void setDestination_pinIsSet(boolean value) {
3400
      if (!value) {
3401
        this.destination_pin = null;
3402
      }
3403
    }
3404
 
4630 mandeep.dh 3405
    /**
3406
     * 
3407
     * @see DeliveryType
3408
     */
3409
    public DeliveryType getType() {
3410
      return this.type;
3411
    }
3412
 
3413
    /**
3414
     * 
3415
     * @see DeliveryType
3416
     */
3417
    public void setType(DeliveryType type) {
3418
      this.type = type;
3419
    }
3420
 
3421
    public void unsetType() {
3422
      this.type = null;
3423
    }
3424
 
3425
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3426
    public boolean isSetType() {
3427
      return this.type != null;
3428
    }
3429
 
3430
    public void setTypeIsSet(boolean value) {
3431
      if (!value) {
3432
        this.type = null;
3433
      }
3434
    }
3435
 
471 rajveer 3436
    public void setFieldValue(_Fields field, Object value) {
3437
      switch (field) {
3438
      case ITEM_ID:
3439
        if (value == null) {
3440
          unsetItemId();
3441
        } else {
3442
          setItemId((Long)value);
3443
        }
3444
        break;
3445
 
3446
      case DESTINATION_PIN:
3447
        if (value == null) {
3448
          unsetDestination_pin();
3449
        } else {
3450
          setDestination_pin((String)value);
3451
        }
3452
        break;
3453
 
4630 mandeep.dh 3454
      case TYPE:
3455
        if (value == null) {
3456
          unsetType();
3457
        } else {
3458
          setType((DeliveryType)value);
3459
        }
3460
        break;
3461
 
471 rajveer 3462
      }
3463
    }
3464
 
3465
    public Object getFieldValue(_Fields field) {
3466
      switch (field) {
3467
      case ITEM_ID:
3430 rajveer 3468
        return Long.valueOf(getItemId());
471 rajveer 3469
 
3470
      case DESTINATION_PIN:
3471
        return getDestination_pin();
3472
 
4630 mandeep.dh 3473
      case TYPE:
3474
        return getType();
3475
 
471 rajveer 3476
      }
3477
      throw new IllegalStateException();
3478
    }
3479
 
3430 rajveer 3480
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3481
    public boolean isSet(_Fields field) {
3482
      if (field == null) {
3483
        throw new IllegalArgumentException();
3484
      }
471 rajveer 3485
 
3486
      switch (field) {
3487
      case ITEM_ID:
3488
        return isSetItemId();
3489
      case DESTINATION_PIN:
3490
        return isSetDestination_pin();
4630 mandeep.dh 3491
      case TYPE:
3492
        return isSetType();
471 rajveer 3493
      }
3494
      throw new IllegalStateException();
3495
    }
3496
 
3497
    @Override
3498
    public boolean equals(Object that) {
3499
      if (that == null)
3500
        return false;
3501
      if (that instanceof getLogisticsEstimation_args)
3502
        return this.equals((getLogisticsEstimation_args)that);
3503
      return false;
3504
    }
3505
 
3506
    public boolean equals(getLogisticsEstimation_args that) {
3507
      if (that == null)
3508
        return false;
3509
 
3510
      boolean this_present_itemId = true;
3511
      boolean that_present_itemId = true;
3512
      if (this_present_itemId || that_present_itemId) {
3513
        if (!(this_present_itemId && that_present_itemId))
3514
          return false;
3515
        if (this.itemId != that.itemId)
3516
          return false;
3517
      }
3518
 
3519
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3520
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3521
      if (this_present_destination_pin || that_present_destination_pin) {
3522
        if (!(this_present_destination_pin && that_present_destination_pin))
3523
          return false;
3524
        if (!this.destination_pin.equals(that.destination_pin))
3525
          return false;
3526
      }
3527
 
4630 mandeep.dh 3528
      boolean this_present_type = true && this.isSetType();
3529
      boolean that_present_type = true && that.isSetType();
3530
      if (this_present_type || that_present_type) {
3531
        if (!(this_present_type && that_present_type))
3532
          return false;
3533
        if (!this.type.equals(that.type))
3534
          return false;
3535
      }
3536
 
471 rajveer 3537
      return true;
3538
    }
3539
 
3540
    @Override
3541
    public int hashCode() {
3542
      return 0;
3543
    }
3544
 
3545
    public int compareTo(getLogisticsEstimation_args other) {
3546
      if (!getClass().equals(other.getClass())) {
3547
        return getClass().getName().compareTo(other.getClass().getName());
3548
      }
3549
 
3550
      int lastComparison = 0;
3551
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3552
 
3430 rajveer 3553
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3554
      if (lastComparison != 0) {
3555
        return lastComparison;
3556
      }
3430 rajveer 3557
      if (isSetItemId()) {
3558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3559
        if (lastComparison != 0) {
3560
          return lastComparison;
3561
        }
471 rajveer 3562
      }
3430 rajveer 3563
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3564
      if (lastComparison != 0) {
3565
        return lastComparison;
3566
      }
3430 rajveer 3567
      if (isSetDestination_pin()) {
3568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3569
        if (lastComparison != 0) {
3570
          return lastComparison;
3571
        }
471 rajveer 3572
      }
4630 mandeep.dh 3573
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3574
      if (lastComparison != 0) {
3575
        return lastComparison;
3576
      }
3577
      if (isSetType()) {
3578
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3579
        if (lastComparison != 0) {
3580
          return lastComparison;
3581
        }
3582
      }
471 rajveer 3583
      return 0;
3584
    }
3585
 
3430 rajveer 3586
    public _Fields fieldForId(int fieldId) {
3587
      return _Fields.findByThriftId(fieldId);
3588
    }
3589
 
3590
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3591
      org.apache.thrift.protocol.TField field;
471 rajveer 3592
      iprot.readStructBegin();
3593
      while (true)
3594
      {
3595
        field = iprot.readFieldBegin();
3430 rajveer 3596
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3597
          break;
3598
        }
3430 rajveer 3599
        switch (field.id) {
3600
          case 1: // ITEM_ID
3601
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3602
              this.itemId = iprot.readI64();
3603
              setItemIdIsSet(true);
3604
            } else { 
3605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3606
            }
3607
            break;
3608
          case 2: // DESTINATION_PIN
3609
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3610
              this.destination_pin = iprot.readString();
3611
            } else { 
3612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3613
            }
3614
            break;
4630 mandeep.dh 3615
          case 3: // TYPE
3616
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3617
              this.type = DeliveryType.findByValue(iprot.readI32());
3618
            } else { 
3619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3620
            }
3621
            break;
3430 rajveer 3622
          default:
3623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3624
        }
3430 rajveer 3625
        iprot.readFieldEnd();
471 rajveer 3626
      }
3627
      iprot.readStructEnd();
3628
      validate();
3629
    }
3630
 
3430 rajveer 3631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3632
      validate();
3633
 
3634
      oprot.writeStructBegin(STRUCT_DESC);
3635
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3636
      oprot.writeI64(this.itemId);
3637
      oprot.writeFieldEnd();
3638
      if (this.destination_pin != null) {
3639
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3640
        oprot.writeString(this.destination_pin);
3641
        oprot.writeFieldEnd();
3642
      }
4630 mandeep.dh 3643
      if (this.type != null) {
3644
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3645
        oprot.writeI32(this.type.getValue());
3646
        oprot.writeFieldEnd();
3647
      }
471 rajveer 3648
      oprot.writeFieldStop();
3649
      oprot.writeStructEnd();
3650
    }
3651
 
3652
    @Override
3653
    public String toString() {
3654
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
3655
      boolean first = true;
3656
 
3657
      sb.append("itemId:");
3658
      sb.append(this.itemId);
3659
      first = false;
3660
      if (!first) sb.append(", ");
3661
      sb.append("destination_pin:");
3662
      if (this.destination_pin == null) {
3663
        sb.append("null");
3664
      } else {
3665
        sb.append(this.destination_pin);
3666
      }
3667
      first = false;
4630 mandeep.dh 3668
      if (!first) sb.append(", ");
3669
      sb.append("type:");
3670
      if (this.type == null) {
3671
        sb.append("null");
3672
      } else {
3673
        sb.append(this.type);
3674
      }
3675
      first = false;
471 rajveer 3676
      sb.append(")");
3677
      return sb.toString();
3678
    }
3679
 
3430 rajveer 3680
    public void validate() throws org.apache.thrift.TException {
471 rajveer 3681
      // check for required fields
3682
    }
3683
 
3430 rajveer 3684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3685
      try {
3686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3687
      } catch (org.apache.thrift.TException te) {
3688
        throw new java.io.IOException(te);
3689
      }
3690
    }
3691
 
3692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3693
      try {
3694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3695
      } catch (org.apache.thrift.TException te) {
3696
        throw new java.io.IOException(te);
3697
      }
3698
    }
3699
 
471 rajveer 3700
  }
3701
 
3430 rajveer 3702
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
3703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 3704
 
3430 rajveer 3705
    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);
3706
    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 3707
 
3430 rajveer 3708
    private LogisticsInfo success; // required
3709
    private LogisticsServiceException se; // required
471 rajveer 3710
 
3711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3713
      SUCCESS((short)0, "success"),
3714
      SE((short)1, "se");
3715
 
3716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3717
 
3718
      static {
3719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3720
          byName.put(field.getFieldName(), field);
3721
        }
3722
      }
3723
 
3724
      /**
3725
       * Find the _Fields constant that matches fieldId, or null if its not found.
3726
       */
3727
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3728
        switch(fieldId) {
3729
          case 0: // SUCCESS
3730
            return SUCCESS;
3731
          case 1: // SE
3732
            return SE;
3733
          default:
3734
            return null;
3735
        }
471 rajveer 3736
      }
3737
 
3738
      /**
3739
       * Find the _Fields constant that matches fieldId, throwing an exception
3740
       * if it is not found.
3741
       */
3742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3743
        _Fields fields = findByThriftId(fieldId);
3744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3745
        return fields;
3746
      }
3747
 
3748
      /**
3749
       * Find the _Fields constant that matches name, or null if its not found.
3750
       */
3751
      public static _Fields findByName(String name) {
3752
        return byName.get(name);
3753
      }
3754
 
3755
      private final short _thriftId;
3756
      private final String _fieldName;
3757
 
3758
      _Fields(short thriftId, String fieldName) {
3759
        _thriftId = thriftId;
3760
        _fieldName = fieldName;
3761
      }
3762
 
3763
      public short getThriftFieldId() {
3764
        return _thriftId;
3765
      }
3766
 
3767
      public String getFieldName() {
3768
        return _fieldName;
3769
      }
3770
    }
3771
 
3772
    // isset id assignments
3773
 
3430 rajveer 3774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3775
    static {
3430 rajveer 3776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3777
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3778
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
3779
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 3783
    }
3784
 
3785
    public getLogisticsEstimation_result() {
3786
    }
3787
 
3788
    public getLogisticsEstimation_result(
648 chandransh 3789
      LogisticsInfo success,
471 rajveer 3790
      LogisticsServiceException se)
3791
    {
3792
      this();
3793
      this.success = success;
3794
      this.se = se;
3795
    }
3796
 
3797
    /**
3798
     * Performs a deep copy on <i>other</i>.
3799
     */
3800
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
3801
      if (other.isSetSuccess()) {
648 chandransh 3802
        this.success = new LogisticsInfo(other.success);
471 rajveer 3803
      }
3804
      if (other.isSetSe()) {
3805
        this.se = new LogisticsServiceException(other.se);
3806
      }
3807
    }
3808
 
3809
    public getLogisticsEstimation_result deepCopy() {
3810
      return new getLogisticsEstimation_result(this);
3811
    }
3812
 
3430 rajveer 3813
    @Override
3814
    public void clear() {
3815
      this.success = null;
3816
      this.se = null;
471 rajveer 3817
    }
3818
 
648 chandransh 3819
    public LogisticsInfo getSuccess() {
471 rajveer 3820
      return this.success;
3821
    }
3822
 
3430 rajveer 3823
    public void setSuccess(LogisticsInfo success) {
471 rajveer 3824
      this.success = success;
3825
    }
3826
 
3827
    public void unsetSuccess() {
3828
      this.success = null;
3829
    }
3830
 
3430 rajveer 3831
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 3832
    public boolean isSetSuccess() {
3833
      return this.success != null;
3834
    }
3835
 
3836
    public void setSuccessIsSet(boolean value) {
3837
      if (!value) {
3838
        this.success = null;
3839
      }
3840
    }
3841
 
3842
    public LogisticsServiceException getSe() {
3843
      return this.se;
3844
    }
3845
 
3430 rajveer 3846
    public void setSe(LogisticsServiceException se) {
471 rajveer 3847
      this.se = se;
3848
    }
3849
 
3850
    public void unsetSe() {
3851
      this.se = null;
3852
    }
3853
 
3430 rajveer 3854
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 3855
    public boolean isSetSe() {
3856
      return this.se != null;
3857
    }
3858
 
3859
    public void setSeIsSet(boolean value) {
3860
      if (!value) {
3861
        this.se = null;
3862
      }
3863
    }
3864
 
3865
    public void setFieldValue(_Fields field, Object value) {
3866
      switch (field) {
3867
      case SUCCESS:
3868
        if (value == null) {
3869
          unsetSuccess();
3870
        } else {
648 chandransh 3871
          setSuccess((LogisticsInfo)value);
471 rajveer 3872
        }
3873
        break;
3874
 
3875
      case SE:
3876
        if (value == null) {
3877
          unsetSe();
3878
        } else {
3879
          setSe((LogisticsServiceException)value);
3880
        }
3881
        break;
3882
 
3883
      }
3884
    }
3885
 
3886
    public Object getFieldValue(_Fields field) {
3887
      switch (field) {
3888
      case SUCCESS:
3889
        return getSuccess();
3890
 
3891
      case SE:
3892
        return getSe();
3893
 
3894
      }
3895
      throw new IllegalStateException();
3896
    }
3897
 
3430 rajveer 3898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3899
    public boolean isSet(_Fields field) {
3900
      if (field == null) {
3901
        throw new IllegalArgumentException();
3902
      }
471 rajveer 3903
 
3904
      switch (field) {
3905
      case SUCCESS:
3906
        return isSetSuccess();
3907
      case SE:
3908
        return isSetSe();
3909
      }
3910
      throw new IllegalStateException();
3911
    }
3912
 
3913
    @Override
3914
    public boolean equals(Object that) {
3915
      if (that == null)
3916
        return false;
3917
      if (that instanceof getLogisticsEstimation_result)
3918
        return this.equals((getLogisticsEstimation_result)that);
3919
      return false;
3920
    }
3921
 
3922
    public boolean equals(getLogisticsEstimation_result that) {
3923
      if (that == null)
3924
        return false;
3925
 
3926
      boolean this_present_success = true && this.isSetSuccess();
3927
      boolean that_present_success = true && that.isSetSuccess();
3928
      if (this_present_success || that_present_success) {
3929
        if (!(this_present_success && that_present_success))
3930
          return false;
3931
        if (!this.success.equals(that.success))
3932
          return false;
3933
      }
3934
 
3935
      boolean this_present_se = true && this.isSetSe();
3936
      boolean that_present_se = true && that.isSetSe();
3937
      if (this_present_se || that_present_se) {
3938
        if (!(this_present_se && that_present_se))
3939
          return false;
3940
        if (!this.se.equals(that.se))
3941
          return false;
3942
      }
3943
 
3944
      return true;
3945
    }
3946
 
3947
    @Override
3948
    public int hashCode() {
3949
      return 0;
3950
    }
3951
 
3952
    public int compareTo(getLogisticsEstimation_result other) {
3953
      if (!getClass().equals(other.getClass())) {
3954
        return getClass().getName().compareTo(other.getClass().getName());
3955
      }
3956
 
3957
      int lastComparison = 0;
3958
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
3959
 
3430 rajveer 3960
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 3961
      if (lastComparison != 0) {
3962
        return lastComparison;
3963
      }
3430 rajveer 3964
      if (isSetSuccess()) {
3965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3966
        if (lastComparison != 0) {
3967
          return lastComparison;
3968
        }
471 rajveer 3969
      }
3430 rajveer 3970
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 3971
      if (lastComparison != 0) {
3972
        return lastComparison;
3973
      }
3430 rajveer 3974
      if (isSetSe()) {
3975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3976
        if (lastComparison != 0) {
3977
          return lastComparison;
3978
        }
471 rajveer 3979
      }
3980
      return 0;
3981
    }
3982
 
3430 rajveer 3983
    public _Fields fieldForId(int fieldId) {
3984
      return _Fields.findByThriftId(fieldId);
3985
    }
3986
 
3987
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3988
      org.apache.thrift.protocol.TField field;
471 rajveer 3989
      iprot.readStructBegin();
3990
      while (true)
3991
      {
3992
        field = iprot.readFieldBegin();
3430 rajveer 3993
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3994
          break;
3995
        }
3430 rajveer 3996
        switch (field.id) {
3997
          case 0: // SUCCESS
3998
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3999
              this.success = new LogisticsInfo();
4000
              this.success.read(iprot);
4001
            } else { 
4002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4003
            }
4004
            break;
4005
          case 1: // SE
4006
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4007
              this.se = new LogisticsServiceException();
4008
              this.se.read(iprot);
4009
            } else { 
4010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4011
            }
4012
            break;
4013
          default:
4014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4015
        }
3430 rajveer 4016
        iprot.readFieldEnd();
471 rajveer 4017
      }
4018
      iprot.readStructEnd();
4019
      validate();
4020
    }
4021
 
3430 rajveer 4022
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4023
      oprot.writeStructBegin(STRUCT_DESC);
4024
 
4025
      if (this.isSetSuccess()) {
4026
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4027
        this.success.write(oprot);
4028
        oprot.writeFieldEnd();
4029
      } else if (this.isSetSe()) {
4030
        oprot.writeFieldBegin(SE_FIELD_DESC);
4031
        this.se.write(oprot);
4032
        oprot.writeFieldEnd();
4033
      }
4034
      oprot.writeFieldStop();
4035
      oprot.writeStructEnd();
4036
    }
4037
 
4038
    @Override
4039
    public String toString() {
4040
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4041
      boolean first = true;
4042
 
4043
      sb.append("success:");
4044
      if (this.success == null) {
4045
        sb.append("null");
4046
      } else {
4047
        sb.append(this.success);
4048
      }
4049
      first = false;
4050
      if (!first) sb.append(", ");
4051
      sb.append("se:");
4052
      if (this.se == null) {
4053
        sb.append("null");
4054
      } else {
4055
        sb.append(this.se);
4056
      }
4057
      first = false;
4058
      sb.append(")");
4059
      return sb.toString();
4060
    }
4061
 
3430 rajveer 4062
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4063
      // check for required fields
4064
    }
4065
 
3430 rajveer 4066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4067
      try {
4068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4069
      } catch (org.apache.thrift.TException te) {
4070
        throw new java.io.IOException(te);
4071
      }
4072
    }
4073
 
4074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4075
      try {
4076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4077
      } catch (org.apache.thrift.TException te) {
4078
        throw new java.io.IOException(te);
4079
      }
4080
    }
4081
 
471 rajveer 4082
  }
4083
 
7256 rajveer 4084
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4086
 
4087
    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);
4088
    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);
4089
    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);
4090
 
4091
    private long itemId; // required
4092
    private String destination_pin; // required
4093
    private DeliveryType type; // required
4094
 
4095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4097
      ITEM_ID((short)1, "itemId"),
4098
      DESTINATION_PIN((short)2, "destination_pin"),
4099
      /**
4100
       * 
4101
       * @see DeliveryType
4102
       */
4103
      TYPE((short)3, "type");
4104
 
4105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4106
 
4107
      static {
4108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4109
          byName.put(field.getFieldName(), field);
4110
        }
4111
      }
4112
 
4113
      /**
4114
       * Find the _Fields constant that matches fieldId, or null if its not found.
4115
       */
4116
      public static _Fields findByThriftId(int fieldId) {
4117
        switch(fieldId) {
4118
          case 1: // ITEM_ID
4119
            return ITEM_ID;
4120
          case 2: // DESTINATION_PIN
4121
            return DESTINATION_PIN;
4122
          case 3: // TYPE
4123
            return TYPE;
4124
          default:
4125
            return null;
4126
        }
4127
      }
4128
 
4129
      /**
4130
       * Find the _Fields constant that matches fieldId, throwing an exception
4131
       * if it is not found.
4132
       */
4133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4134
        _Fields fields = findByThriftId(fieldId);
4135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4136
        return fields;
4137
      }
4138
 
4139
      /**
4140
       * Find the _Fields constant that matches name, or null if its not found.
4141
       */
4142
      public static _Fields findByName(String name) {
4143
        return byName.get(name);
4144
      }
4145
 
4146
      private final short _thriftId;
4147
      private final String _fieldName;
4148
 
4149
      _Fields(short thriftId, String fieldName) {
4150
        _thriftId = thriftId;
4151
        _fieldName = fieldName;
4152
      }
4153
 
4154
      public short getThriftFieldId() {
4155
        return _thriftId;
4156
      }
4157
 
4158
      public String getFieldName() {
4159
        return _fieldName;
4160
      }
4161
    }
4162
 
4163
    // isset id assignments
4164
    private static final int __ITEMID_ISSET_ID = 0;
4165
    private BitSet __isset_bit_vector = new BitSet(1);
4166
 
4167
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4168
    static {
4169
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4170
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4171
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4172
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4173
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4174
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4175
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4178
    }
4179
 
4180
    public getLogisticsEstimationForStore_args() {
4181
    }
4182
 
4183
    public getLogisticsEstimationForStore_args(
4184
      long itemId,
4185
      String destination_pin,
4186
      DeliveryType type)
4187
    {
4188
      this();
4189
      this.itemId = itemId;
4190
      setItemIdIsSet(true);
4191
      this.destination_pin = destination_pin;
4192
      this.type = type;
4193
    }
4194
 
4195
    /**
4196
     * Performs a deep copy on <i>other</i>.
4197
     */
4198
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4199
      __isset_bit_vector.clear();
4200
      __isset_bit_vector.or(other.__isset_bit_vector);
4201
      this.itemId = other.itemId;
4202
      if (other.isSetDestination_pin()) {
4203
        this.destination_pin = other.destination_pin;
4204
      }
4205
      if (other.isSetType()) {
4206
        this.type = other.type;
4207
      }
4208
    }
4209
 
4210
    public getLogisticsEstimationForStore_args deepCopy() {
4211
      return new getLogisticsEstimationForStore_args(this);
4212
    }
4213
 
4214
    @Override
4215
    public void clear() {
4216
      setItemIdIsSet(false);
4217
      this.itemId = 0;
4218
      this.destination_pin = null;
4219
      this.type = null;
4220
    }
4221
 
4222
    public long getItemId() {
4223
      return this.itemId;
4224
    }
4225
 
4226
    public void setItemId(long itemId) {
4227
      this.itemId = itemId;
4228
      setItemIdIsSet(true);
4229
    }
4230
 
4231
    public void unsetItemId() {
4232
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4233
    }
4234
 
4235
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4236
    public boolean isSetItemId() {
4237
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4238
    }
4239
 
4240
    public void setItemIdIsSet(boolean value) {
4241
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4242
    }
4243
 
4244
    public String getDestination_pin() {
4245
      return this.destination_pin;
4246
    }
4247
 
4248
    public void setDestination_pin(String destination_pin) {
4249
      this.destination_pin = destination_pin;
4250
    }
4251
 
4252
    public void unsetDestination_pin() {
4253
      this.destination_pin = null;
4254
    }
4255
 
4256
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4257
    public boolean isSetDestination_pin() {
4258
      return this.destination_pin != null;
4259
    }
4260
 
4261
    public void setDestination_pinIsSet(boolean value) {
4262
      if (!value) {
4263
        this.destination_pin = null;
4264
      }
4265
    }
4266
 
4267
    /**
4268
     * 
4269
     * @see DeliveryType
4270
     */
4271
    public DeliveryType getType() {
4272
      return this.type;
4273
    }
4274
 
4275
    /**
4276
     * 
4277
     * @see DeliveryType
4278
     */
4279
    public void setType(DeliveryType type) {
4280
      this.type = type;
4281
    }
4282
 
4283
    public void unsetType() {
4284
      this.type = null;
4285
    }
4286
 
4287
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4288
    public boolean isSetType() {
4289
      return this.type != null;
4290
    }
4291
 
4292
    public void setTypeIsSet(boolean value) {
4293
      if (!value) {
4294
        this.type = null;
4295
      }
4296
    }
4297
 
4298
    public void setFieldValue(_Fields field, Object value) {
4299
      switch (field) {
4300
      case ITEM_ID:
4301
        if (value == null) {
4302
          unsetItemId();
4303
        } else {
4304
          setItemId((Long)value);
4305
        }
4306
        break;
4307
 
4308
      case DESTINATION_PIN:
4309
        if (value == null) {
4310
          unsetDestination_pin();
4311
        } else {
4312
          setDestination_pin((String)value);
4313
        }
4314
        break;
4315
 
4316
      case TYPE:
4317
        if (value == null) {
4318
          unsetType();
4319
        } else {
4320
          setType((DeliveryType)value);
4321
        }
4322
        break;
4323
 
4324
      }
4325
    }
4326
 
4327
    public Object getFieldValue(_Fields field) {
4328
      switch (field) {
4329
      case ITEM_ID:
4330
        return Long.valueOf(getItemId());
4331
 
4332
      case DESTINATION_PIN:
4333
        return getDestination_pin();
4334
 
4335
      case TYPE:
4336
        return getType();
4337
 
4338
      }
4339
      throw new IllegalStateException();
4340
    }
4341
 
4342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4343
    public boolean isSet(_Fields field) {
4344
      if (field == null) {
4345
        throw new IllegalArgumentException();
4346
      }
4347
 
4348
      switch (field) {
4349
      case ITEM_ID:
4350
        return isSetItemId();
4351
      case DESTINATION_PIN:
4352
        return isSetDestination_pin();
4353
      case TYPE:
4354
        return isSetType();
4355
      }
4356
      throw new IllegalStateException();
4357
    }
4358
 
4359
    @Override
4360
    public boolean equals(Object that) {
4361
      if (that == null)
4362
        return false;
4363
      if (that instanceof getLogisticsEstimationForStore_args)
4364
        return this.equals((getLogisticsEstimationForStore_args)that);
4365
      return false;
4366
    }
4367
 
4368
    public boolean equals(getLogisticsEstimationForStore_args that) {
4369
      if (that == null)
4370
        return false;
4371
 
4372
      boolean this_present_itemId = true;
4373
      boolean that_present_itemId = true;
4374
      if (this_present_itemId || that_present_itemId) {
4375
        if (!(this_present_itemId && that_present_itemId))
4376
          return false;
4377
        if (this.itemId != that.itemId)
4378
          return false;
4379
      }
4380
 
4381
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4382
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4383
      if (this_present_destination_pin || that_present_destination_pin) {
4384
        if (!(this_present_destination_pin && that_present_destination_pin))
4385
          return false;
4386
        if (!this.destination_pin.equals(that.destination_pin))
4387
          return false;
4388
      }
4389
 
4390
      boolean this_present_type = true && this.isSetType();
4391
      boolean that_present_type = true && that.isSetType();
4392
      if (this_present_type || that_present_type) {
4393
        if (!(this_present_type && that_present_type))
4394
          return false;
4395
        if (!this.type.equals(that.type))
4396
          return false;
4397
      }
4398
 
4399
      return true;
4400
    }
4401
 
4402
    @Override
4403
    public int hashCode() {
4404
      return 0;
4405
    }
4406
 
4407
    public int compareTo(getLogisticsEstimationForStore_args other) {
4408
      if (!getClass().equals(other.getClass())) {
4409
        return getClass().getName().compareTo(other.getClass().getName());
4410
      }
4411
 
4412
      int lastComparison = 0;
4413
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4414
 
4415
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4416
      if (lastComparison != 0) {
4417
        return lastComparison;
4418
      }
4419
      if (isSetItemId()) {
4420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4421
        if (lastComparison != 0) {
4422
          return lastComparison;
4423
        }
4424
      }
4425
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4426
      if (lastComparison != 0) {
4427
        return lastComparison;
4428
      }
4429
      if (isSetDestination_pin()) {
4430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4431
        if (lastComparison != 0) {
4432
          return lastComparison;
4433
        }
4434
      }
4435
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4436
      if (lastComparison != 0) {
4437
        return lastComparison;
4438
      }
4439
      if (isSetType()) {
4440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4441
        if (lastComparison != 0) {
4442
          return lastComparison;
4443
        }
4444
      }
4445
      return 0;
4446
    }
4447
 
4448
    public _Fields fieldForId(int fieldId) {
4449
      return _Fields.findByThriftId(fieldId);
4450
    }
4451
 
4452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4453
      org.apache.thrift.protocol.TField field;
4454
      iprot.readStructBegin();
4455
      while (true)
4456
      {
4457
        field = iprot.readFieldBegin();
4458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4459
          break;
4460
        }
4461
        switch (field.id) {
4462
          case 1: // ITEM_ID
4463
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4464
              this.itemId = iprot.readI64();
4465
              setItemIdIsSet(true);
4466
            } else { 
4467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4468
            }
4469
            break;
4470
          case 2: // DESTINATION_PIN
4471
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4472
              this.destination_pin = iprot.readString();
4473
            } else { 
4474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4475
            }
4476
            break;
4477
          case 3: // TYPE
4478
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4479
              this.type = DeliveryType.findByValue(iprot.readI32());
4480
            } else { 
4481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4482
            }
4483
            break;
4484
          default:
4485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4486
        }
4487
        iprot.readFieldEnd();
4488
      }
4489
      iprot.readStructEnd();
4490
      validate();
4491
    }
4492
 
4493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4494
      validate();
4495
 
4496
      oprot.writeStructBegin(STRUCT_DESC);
4497
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4498
      oprot.writeI64(this.itemId);
4499
      oprot.writeFieldEnd();
4500
      if (this.destination_pin != null) {
4501
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4502
        oprot.writeString(this.destination_pin);
4503
        oprot.writeFieldEnd();
4504
      }
4505
      if (this.type != null) {
4506
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4507
        oprot.writeI32(this.type.getValue());
4508
        oprot.writeFieldEnd();
4509
      }
4510
      oprot.writeFieldStop();
4511
      oprot.writeStructEnd();
4512
    }
4513
 
4514
    @Override
4515
    public String toString() {
4516
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4517
      boolean first = true;
4518
 
4519
      sb.append("itemId:");
4520
      sb.append(this.itemId);
4521
      first = false;
4522
      if (!first) sb.append(", ");
4523
      sb.append("destination_pin:");
4524
      if (this.destination_pin == null) {
4525
        sb.append("null");
4526
      } else {
4527
        sb.append(this.destination_pin);
4528
      }
4529
      first = false;
4530
      if (!first) sb.append(", ");
4531
      sb.append("type:");
4532
      if (this.type == null) {
4533
        sb.append("null");
4534
      } else {
4535
        sb.append(this.type);
4536
      }
4537
      first = false;
4538
      sb.append(")");
4539
      return sb.toString();
4540
    }
4541
 
4542
    public void validate() throws org.apache.thrift.TException {
4543
      // check for required fields
4544
    }
4545
 
4546
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4547
      try {
4548
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4549
      } catch (org.apache.thrift.TException te) {
4550
        throw new java.io.IOException(te);
4551
      }
4552
    }
4553
 
4554
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4555
      try {
4556
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4557
        __isset_bit_vector = new BitSet(1);
4558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4559
      } catch (org.apache.thrift.TException te) {
4560
        throw new java.io.IOException(te);
4561
      }
4562
    }
4563
 
4564
  }
4565
 
4566
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4568
 
4569
    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);
4570
    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);
4571
 
4572
    private LogisticsInfo success; // required
4573
    private LogisticsServiceException se; // required
4574
 
4575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4577
      SUCCESS((short)0, "success"),
4578
      SE((short)1, "se");
4579
 
4580
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4581
 
4582
      static {
4583
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4584
          byName.put(field.getFieldName(), field);
4585
        }
4586
      }
4587
 
4588
      /**
4589
       * Find the _Fields constant that matches fieldId, or null if its not found.
4590
       */
4591
      public static _Fields findByThriftId(int fieldId) {
4592
        switch(fieldId) {
4593
          case 0: // SUCCESS
4594
            return SUCCESS;
4595
          case 1: // SE
4596
            return SE;
4597
          default:
4598
            return null;
4599
        }
4600
      }
4601
 
4602
      /**
4603
       * Find the _Fields constant that matches fieldId, throwing an exception
4604
       * if it is not found.
4605
       */
4606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4607
        _Fields fields = findByThriftId(fieldId);
4608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4609
        return fields;
4610
      }
4611
 
4612
      /**
4613
       * Find the _Fields constant that matches name, or null if its not found.
4614
       */
4615
      public static _Fields findByName(String name) {
4616
        return byName.get(name);
4617
      }
4618
 
4619
      private final short _thriftId;
4620
      private final String _fieldName;
4621
 
4622
      _Fields(short thriftId, String fieldName) {
4623
        _thriftId = thriftId;
4624
        _fieldName = fieldName;
4625
      }
4626
 
4627
      public short getThriftFieldId() {
4628
        return _thriftId;
4629
      }
4630
 
4631
      public String getFieldName() {
4632
        return _fieldName;
4633
      }
4634
    }
4635
 
4636
    // isset id assignments
4637
 
4638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4639
    static {
4640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4641
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4642
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4643
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4647
    }
4648
 
4649
    public getLogisticsEstimationForStore_result() {
4650
    }
4651
 
4652
    public getLogisticsEstimationForStore_result(
4653
      LogisticsInfo success,
4654
      LogisticsServiceException se)
4655
    {
4656
      this();
4657
      this.success = success;
4658
      this.se = se;
4659
    }
4660
 
4661
    /**
4662
     * Performs a deep copy on <i>other</i>.
4663
     */
4664
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
4665
      if (other.isSetSuccess()) {
4666
        this.success = new LogisticsInfo(other.success);
4667
      }
4668
      if (other.isSetSe()) {
4669
        this.se = new LogisticsServiceException(other.se);
4670
      }
4671
    }
4672
 
4673
    public getLogisticsEstimationForStore_result deepCopy() {
4674
      return new getLogisticsEstimationForStore_result(this);
4675
    }
4676
 
4677
    @Override
4678
    public void clear() {
4679
      this.success = null;
4680
      this.se = null;
4681
    }
4682
 
4683
    public LogisticsInfo getSuccess() {
4684
      return this.success;
4685
    }
4686
 
4687
    public void setSuccess(LogisticsInfo success) {
4688
      this.success = success;
4689
    }
4690
 
4691
    public void unsetSuccess() {
4692
      this.success = null;
4693
    }
4694
 
4695
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4696
    public boolean isSetSuccess() {
4697
      return this.success != null;
4698
    }
4699
 
4700
    public void setSuccessIsSet(boolean value) {
4701
      if (!value) {
4702
        this.success = null;
4703
      }
4704
    }
4705
 
4706
    public LogisticsServiceException getSe() {
4707
      return this.se;
4708
    }
4709
 
4710
    public void setSe(LogisticsServiceException se) {
4711
      this.se = se;
4712
    }
4713
 
4714
    public void unsetSe() {
4715
      this.se = null;
4716
    }
4717
 
4718
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4719
    public boolean isSetSe() {
4720
      return this.se != null;
4721
    }
4722
 
4723
    public void setSeIsSet(boolean value) {
4724
      if (!value) {
4725
        this.se = null;
4726
      }
4727
    }
4728
 
4729
    public void setFieldValue(_Fields field, Object value) {
4730
      switch (field) {
4731
      case SUCCESS:
4732
        if (value == null) {
4733
          unsetSuccess();
4734
        } else {
4735
          setSuccess((LogisticsInfo)value);
4736
        }
4737
        break;
4738
 
4739
      case SE:
4740
        if (value == null) {
4741
          unsetSe();
4742
        } else {
4743
          setSe((LogisticsServiceException)value);
4744
        }
4745
        break;
4746
 
4747
      }
4748
    }
4749
 
4750
    public Object getFieldValue(_Fields field) {
4751
      switch (field) {
4752
      case SUCCESS:
4753
        return getSuccess();
4754
 
4755
      case SE:
4756
        return getSe();
4757
 
4758
      }
4759
      throw new IllegalStateException();
4760
    }
4761
 
4762
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4763
    public boolean isSet(_Fields field) {
4764
      if (field == null) {
4765
        throw new IllegalArgumentException();
4766
      }
4767
 
4768
      switch (field) {
4769
      case SUCCESS:
4770
        return isSetSuccess();
4771
      case SE:
4772
        return isSetSe();
4773
      }
4774
      throw new IllegalStateException();
4775
    }
4776
 
4777
    @Override
4778
    public boolean equals(Object that) {
4779
      if (that == null)
4780
        return false;
4781
      if (that instanceof getLogisticsEstimationForStore_result)
4782
        return this.equals((getLogisticsEstimationForStore_result)that);
4783
      return false;
4784
    }
4785
 
4786
    public boolean equals(getLogisticsEstimationForStore_result that) {
4787
      if (that == null)
4788
        return false;
4789
 
4790
      boolean this_present_success = true && this.isSetSuccess();
4791
      boolean that_present_success = true && that.isSetSuccess();
4792
      if (this_present_success || that_present_success) {
4793
        if (!(this_present_success && that_present_success))
4794
          return false;
4795
        if (!this.success.equals(that.success))
4796
          return false;
4797
      }
4798
 
4799
      boolean this_present_se = true && this.isSetSe();
4800
      boolean that_present_se = true && that.isSetSe();
4801
      if (this_present_se || that_present_se) {
4802
        if (!(this_present_se && that_present_se))
4803
          return false;
4804
        if (!this.se.equals(that.se))
4805
          return false;
4806
      }
4807
 
4808
      return true;
4809
    }
4810
 
4811
    @Override
4812
    public int hashCode() {
4813
      return 0;
4814
    }
4815
 
4816
    public int compareTo(getLogisticsEstimationForStore_result other) {
4817
      if (!getClass().equals(other.getClass())) {
4818
        return getClass().getName().compareTo(other.getClass().getName());
4819
      }
4820
 
4821
      int lastComparison = 0;
4822
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
4823
 
4824
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4825
      if (lastComparison != 0) {
4826
        return lastComparison;
4827
      }
4828
      if (isSetSuccess()) {
4829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4830
        if (lastComparison != 0) {
4831
          return lastComparison;
4832
        }
4833
      }
4834
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4835
      if (lastComparison != 0) {
4836
        return lastComparison;
4837
      }
4838
      if (isSetSe()) {
4839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4840
        if (lastComparison != 0) {
4841
          return lastComparison;
4842
        }
4843
      }
4844
      return 0;
4845
    }
4846
 
4847
    public _Fields fieldForId(int fieldId) {
4848
      return _Fields.findByThriftId(fieldId);
4849
    }
4850
 
4851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4852
      org.apache.thrift.protocol.TField field;
4853
      iprot.readStructBegin();
4854
      while (true)
4855
      {
4856
        field = iprot.readFieldBegin();
4857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4858
          break;
4859
        }
4860
        switch (field.id) {
4861
          case 0: // SUCCESS
4862
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4863
              this.success = new LogisticsInfo();
4864
              this.success.read(iprot);
4865
            } else { 
4866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4867
            }
4868
            break;
4869
          case 1: // SE
4870
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4871
              this.se = new LogisticsServiceException();
4872
              this.se.read(iprot);
4873
            } else { 
4874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4875
            }
4876
            break;
4877
          default:
4878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4879
        }
4880
        iprot.readFieldEnd();
4881
      }
4882
      iprot.readStructEnd();
4883
      validate();
4884
    }
4885
 
4886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4887
      oprot.writeStructBegin(STRUCT_DESC);
4888
 
4889
      if (this.isSetSuccess()) {
4890
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4891
        this.success.write(oprot);
4892
        oprot.writeFieldEnd();
4893
      } else if (this.isSetSe()) {
4894
        oprot.writeFieldBegin(SE_FIELD_DESC);
4895
        this.se.write(oprot);
4896
        oprot.writeFieldEnd();
4897
      }
4898
      oprot.writeFieldStop();
4899
      oprot.writeStructEnd();
4900
    }
4901
 
4902
    @Override
4903
    public String toString() {
4904
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
4905
      boolean first = true;
4906
 
4907
      sb.append("success:");
4908
      if (this.success == null) {
4909
        sb.append("null");
4910
      } else {
4911
        sb.append(this.success);
4912
      }
4913
      first = false;
4914
      if (!first) sb.append(", ");
4915
      sb.append("se:");
4916
      if (this.se == null) {
4917
        sb.append("null");
4918
      } else {
4919
        sb.append(this.se);
4920
      }
4921
      first = false;
4922
      sb.append(")");
4923
      return sb.toString();
4924
    }
4925
 
4926
    public void validate() throws org.apache.thrift.TException {
4927
      // check for required fields
4928
    }
4929
 
4930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4931
      try {
4932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4933
      } catch (org.apache.thrift.TException te) {
4934
        throw new java.io.IOException(te);
4935
      }
4936
    }
4937
 
4938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4939
      try {
4940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4941
      } catch (org.apache.thrift.TException te) {
4942
        throw new java.io.IOException(te);
4943
      }
4944
    }
4945
 
4946
  }
4947
 
3430 rajveer 4948
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
4949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 4950
 
3430 rajveer 4951
    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);
4952
    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);
4953
    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);
5766 rajveer 4954
    private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I32, (short)4);
471 rajveer 4955
 
3430 rajveer 4956
    private String destination_pincode; // required
4957
    private long item_id; // required
4958
    private DeliveryType type; // required
5766 rajveer 4959
    private PickUpType pickUp; // required
471 rajveer 4960
 
4961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4962
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 4963
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 4964
      ITEM_ID((short)2, "item_id"),
4965
      /**
4966
       * 
4967
       * @see DeliveryType
4968
       */
5766 rajveer 4969
      TYPE((short)3, "type"),
4970
      /**
4971
       * 
4972
       * @see PickUpType
4973
       */
4974
      PICK_UP((short)4, "pickUp");
471 rajveer 4975
 
4976
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4977
 
4978
      static {
4979
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4980
          byName.put(field.getFieldName(), field);
4981
        }
4982
      }
4983
 
4984
      /**
4985
       * Find the _Fields constant that matches fieldId, or null if its not found.
4986
       */
4987
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4988
        switch(fieldId) {
4989
          case 1: // DESTINATION_PINCODE
4990
            return DESTINATION_PINCODE;
4991
          case 2: // ITEM_ID
4992
            return ITEM_ID;
4993
          case 3: // TYPE
4994
            return TYPE;
5766 rajveer 4995
          case 4: // PICK_UP
4996
            return PICK_UP;
3430 rajveer 4997
          default:
4998
            return null;
4999
        }
471 rajveer 5000
      }
5001
 
5002
      /**
5003
       * Find the _Fields constant that matches fieldId, throwing an exception
5004
       * if it is not found.
5005
       */
5006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5007
        _Fields fields = findByThriftId(fieldId);
5008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5009
        return fields;
5010
      }
5011
 
5012
      /**
5013
       * Find the _Fields constant that matches name, or null if its not found.
5014
       */
5015
      public static _Fields findByName(String name) {
5016
        return byName.get(name);
5017
      }
5018
 
5019
      private final short _thriftId;
5020
      private final String _fieldName;
5021
 
5022
      _Fields(short thriftId, String fieldName) {
5023
        _thriftId = thriftId;
5024
        _fieldName = fieldName;
5025
      }
5026
 
5027
      public short getThriftFieldId() {
5028
        return _thriftId;
5029
      }
5030
 
5031
      public String getFieldName() {
5032
        return _fieldName;
5033
      }
5034
    }
5035
 
5036
    // isset id assignments
715 rajveer 5037
    private static final int __ITEM_ID_ISSET_ID = 0;
5038
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5039
 
3430 rajveer 5040
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5041
    static {
3430 rajveer 5042
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5043
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5044
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5045
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5046
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5047
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5048
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5049
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5050
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5053
    }
5054
 
648 chandransh 5055
    public getLogisticsInfo_args() {
477 rajveer 5056
    }
5057
 
648 chandransh 5058
    public getLogisticsInfo_args(
5059
      String destination_pincode,
3044 chandransh 5060
      long item_id,
5766 rajveer 5061
      DeliveryType type,
5062
      PickUpType pickUp)
477 rajveer 5063
    {
5064
      this();
648 chandransh 5065
      this.destination_pincode = destination_pincode;
5066
      this.item_id = item_id;
715 rajveer 5067
      setItem_idIsSet(true);
3044 chandransh 5068
      this.type = type;
5766 rajveer 5069
      this.pickUp = pickUp;
477 rajveer 5070
    }
5071
 
5072
    /**
5073
     * Performs a deep copy on <i>other</i>.
5074
     */
648 chandransh 5075
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5076
      __isset_bit_vector.clear();
5077
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5078
      if (other.isSetDestination_pincode()) {
5079
        this.destination_pincode = other.destination_pincode;
477 rajveer 5080
      }
715 rajveer 5081
      this.item_id = other.item_id;
3044 chandransh 5082
      if (other.isSetType()) {
5083
        this.type = other.type;
5084
      }
5766 rajveer 5085
      if (other.isSetPickUp()) {
5086
        this.pickUp = other.pickUp;
5087
      }
477 rajveer 5088
    }
5089
 
648 chandransh 5090
    public getLogisticsInfo_args deepCopy() {
5091
      return new getLogisticsInfo_args(this);
477 rajveer 5092
    }
5093
 
3430 rajveer 5094
    @Override
5095
    public void clear() {
5096
      this.destination_pincode = null;
5097
      setItem_idIsSet(false);
5098
      this.item_id = 0;
5099
      this.type = null;
5766 rajveer 5100
      this.pickUp = null;
477 rajveer 5101
    }
5102
 
648 chandransh 5103
    public String getDestination_pincode() {
5104
      return this.destination_pincode;
477 rajveer 5105
    }
5106
 
3430 rajveer 5107
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5108
      this.destination_pincode = destination_pincode;
477 rajveer 5109
    }
5110
 
648 chandransh 5111
    public void unsetDestination_pincode() {
5112
      this.destination_pincode = null;
477 rajveer 5113
    }
5114
 
3430 rajveer 5115
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5116
    public boolean isSetDestination_pincode() {
5117
      return this.destination_pincode != null;
477 rajveer 5118
    }
5119
 
648 chandransh 5120
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5121
      if (!value) {
648 chandransh 5122
        this.destination_pincode = null;
477 rajveer 5123
      }
5124
    }
5125
 
715 rajveer 5126
    public long getItem_id() {
648 chandransh 5127
      return this.item_id;
477 rajveer 5128
    }
5129
 
3430 rajveer 5130
    public void setItem_id(long item_id) {
648 chandransh 5131
      this.item_id = item_id;
715 rajveer 5132
      setItem_idIsSet(true);
477 rajveer 5133
    }
5134
 
648 chandransh 5135
    public void unsetItem_id() {
715 rajveer 5136
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5137
    }
5138
 
3430 rajveer 5139
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5140
    public boolean isSetItem_id() {
715 rajveer 5141
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5142
    }
5143
 
648 chandransh 5144
    public void setItem_idIsSet(boolean value) {
715 rajveer 5145
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5146
    }
5147
 
3044 chandransh 5148
    /**
5149
     * 
5150
     * @see DeliveryType
5151
     */
5152
    public DeliveryType getType() {
5153
      return this.type;
5154
    }
5155
 
5156
    /**
5157
     * 
5158
     * @see DeliveryType
5159
     */
3430 rajveer 5160
    public void setType(DeliveryType type) {
3044 chandransh 5161
      this.type = type;
5162
    }
5163
 
5164
    public void unsetType() {
5165
      this.type = null;
5166
    }
5167
 
3430 rajveer 5168
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5169
    public boolean isSetType() {
5170
      return this.type != null;
5171
    }
5172
 
5173
    public void setTypeIsSet(boolean value) {
5174
      if (!value) {
5175
        this.type = null;
5176
      }
5177
    }
5178
 
5766 rajveer 5179
    /**
5180
     * 
5181
     * @see PickUpType
5182
     */
5183
    public PickUpType getPickUp() {
5184
      return this.pickUp;
5185
    }
5186
 
5187
    /**
5188
     * 
5189
     * @see PickUpType
5190
     */
5191
    public void setPickUp(PickUpType pickUp) {
5192
      this.pickUp = pickUp;
5193
    }
5194
 
5195
    public void unsetPickUp() {
5196
      this.pickUp = null;
5197
    }
5198
 
5199
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5200
    public boolean isSetPickUp() {
5201
      return this.pickUp != null;
5202
    }
5203
 
5204
    public void setPickUpIsSet(boolean value) {
5205
      if (!value) {
5206
        this.pickUp = null;
5207
      }
5208
    }
5209
 
477 rajveer 5210
    public void setFieldValue(_Fields field, Object value) {
5211
      switch (field) {
648 chandransh 5212
      case DESTINATION_PINCODE:
477 rajveer 5213
        if (value == null) {
648 chandransh 5214
          unsetDestination_pincode();
477 rajveer 5215
        } else {
648 chandransh 5216
          setDestination_pincode((String)value);
477 rajveer 5217
        }
5218
        break;
5219
 
648 chandransh 5220
      case ITEM_ID:
477 rajveer 5221
        if (value == null) {
648 chandransh 5222
          unsetItem_id();
477 rajveer 5223
        } else {
715 rajveer 5224
          setItem_id((Long)value);
477 rajveer 5225
        }
5226
        break;
5227
 
3044 chandransh 5228
      case TYPE:
5229
        if (value == null) {
5230
          unsetType();
5231
        } else {
5232
          setType((DeliveryType)value);
5233
        }
5234
        break;
5235
 
5766 rajveer 5236
      case PICK_UP:
5237
        if (value == null) {
5238
          unsetPickUp();
5239
        } else {
5240
          setPickUp((PickUpType)value);
5241
        }
5242
        break;
5243
 
477 rajveer 5244
      }
5245
    }
5246
 
5247
    public Object getFieldValue(_Fields field) {
5248
      switch (field) {
648 chandransh 5249
      case DESTINATION_PINCODE:
5250
        return getDestination_pincode();
477 rajveer 5251
 
648 chandransh 5252
      case ITEM_ID:
3430 rajveer 5253
        return Long.valueOf(getItem_id());
477 rajveer 5254
 
3044 chandransh 5255
      case TYPE:
5256
        return getType();
5257
 
5766 rajveer 5258
      case PICK_UP:
5259
        return getPickUp();
5260
 
477 rajveer 5261
      }
5262
      throw new IllegalStateException();
5263
    }
5264
 
3430 rajveer 5265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5266
    public boolean isSet(_Fields field) {
5267
      if (field == null) {
5268
        throw new IllegalArgumentException();
5269
      }
477 rajveer 5270
 
5271
      switch (field) {
648 chandransh 5272
      case DESTINATION_PINCODE:
5273
        return isSetDestination_pincode();
5274
      case ITEM_ID:
5275
        return isSetItem_id();
3044 chandransh 5276
      case TYPE:
5277
        return isSetType();
5766 rajveer 5278
      case PICK_UP:
5279
        return isSetPickUp();
477 rajveer 5280
      }
5281
      throw new IllegalStateException();
5282
    }
5283
 
5284
    @Override
5285
    public boolean equals(Object that) {
5286
      if (that == null)
5287
        return false;
648 chandransh 5288
      if (that instanceof getLogisticsInfo_args)
5289
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5290
      return false;
5291
    }
5292
 
648 chandransh 5293
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5294
      if (that == null)
5295
        return false;
5296
 
648 chandransh 5297
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5298
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5299
      if (this_present_destination_pincode || that_present_destination_pincode) {
5300
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5301
          return false;
648 chandransh 5302
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5303
          return false;
5304
      }
5305
 
715 rajveer 5306
      boolean this_present_item_id = true;
5307
      boolean that_present_item_id = true;
648 chandransh 5308
      if (this_present_item_id || that_present_item_id) {
5309
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5310
          return false;
715 rajveer 5311
        if (this.item_id != that.item_id)
477 rajveer 5312
          return false;
5313
      }
5314
 
3044 chandransh 5315
      boolean this_present_type = true && this.isSetType();
5316
      boolean that_present_type = true && that.isSetType();
5317
      if (this_present_type || that_present_type) {
5318
        if (!(this_present_type && that_present_type))
5319
          return false;
5320
        if (!this.type.equals(that.type))
5321
          return false;
5322
      }
5323
 
5766 rajveer 5324
      boolean this_present_pickUp = true && this.isSetPickUp();
5325
      boolean that_present_pickUp = true && that.isSetPickUp();
5326
      if (this_present_pickUp || that_present_pickUp) {
5327
        if (!(this_present_pickUp && that_present_pickUp))
5328
          return false;
5329
        if (!this.pickUp.equals(that.pickUp))
5330
          return false;
5331
      }
5332
 
477 rajveer 5333
      return true;
5334
    }
5335
 
5336
    @Override
5337
    public int hashCode() {
5338
      return 0;
5339
    }
5340
 
648 chandransh 5341
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5342
      if (!getClass().equals(other.getClass())) {
5343
        return getClass().getName().compareTo(other.getClass().getName());
5344
      }
5345
 
5346
      int lastComparison = 0;
648 chandransh 5347
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5348
 
3430 rajveer 5349
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5350
      if (lastComparison != 0) {
5351
        return lastComparison;
5352
      }
3430 rajveer 5353
      if (isSetDestination_pincode()) {
5354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5355
        if (lastComparison != 0) {
5356
          return lastComparison;
5357
        }
477 rajveer 5358
      }
3430 rajveer 5359
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5360
      if (lastComparison != 0) {
5361
        return lastComparison;
5362
      }
3430 rajveer 5363
      if (isSetItem_id()) {
5364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5365
        if (lastComparison != 0) {
5366
          return lastComparison;
5367
        }
477 rajveer 5368
      }
3430 rajveer 5369
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5370
      if (lastComparison != 0) {
5371
        return lastComparison;
5372
      }
3430 rajveer 5373
      if (isSetType()) {
5374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5375
        if (lastComparison != 0) {
5376
          return lastComparison;
5377
        }
3044 chandransh 5378
      }
5766 rajveer 5379
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5380
      if (lastComparison != 0) {
5381
        return lastComparison;
5382
      }
5383
      if (isSetPickUp()) {
5384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5385
        if (lastComparison != 0) {
5386
          return lastComparison;
5387
        }
5388
      }
477 rajveer 5389
      return 0;
5390
    }
5391
 
3430 rajveer 5392
    public _Fields fieldForId(int fieldId) {
5393
      return _Fields.findByThriftId(fieldId);
5394
    }
5395
 
5396
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5397
      org.apache.thrift.protocol.TField field;
477 rajveer 5398
      iprot.readStructBegin();
5399
      while (true)
5400
      {
5401
        field = iprot.readFieldBegin();
3430 rajveer 5402
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5403
          break;
5404
        }
3430 rajveer 5405
        switch (field.id) {
5406
          case 1: // DESTINATION_PINCODE
5407
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5408
              this.destination_pincode = iprot.readString();
5409
            } else { 
5410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5411
            }
5412
            break;
5413
          case 2: // ITEM_ID
5414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5415
              this.item_id = iprot.readI64();
5416
              setItem_idIsSet(true);
5417
            } else { 
5418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5419
            }
5420
            break;
5421
          case 3: // TYPE
5422
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5423
              this.type = DeliveryType.findByValue(iprot.readI32());
5424
            } else { 
5425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5426
            }
5427
            break;
5766 rajveer 5428
          case 4: // PICK_UP
5429
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5430
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5431
            } else { 
5432
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5433
            }
5434
            break;
3430 rajveer 5435
          default:
5436
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5437
        }
3430 rajveer 5438
        iprot.readFieldEnd();
477 rajveer 5439
      }
5440
      iprot.readStructEnd();
5441
      validate();
5442
    }
5443
 
3430 rajveer 5444
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5445
      validate();
5446
 
5447
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5448
      if (this.destination_pincode != null) {
5449
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5450
        oprot.writeString(this.destination_pincode);
477 rajveer 5451
        oprot.writeFieldEnd();
5452
      }
715 rajveer 5453
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5454
      oprot.writeI64(this.item_id);
5455
      oprot.writeFieldEnd();
3044 chandransh 5456
      if (this.type != null) {
5457
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5458
        oprot.writeI32(this.type.getValue());
5459
        oprot.writeFieldEnd();
5460
      }
5766 rajveer 5461
      if (this.pickUp != null) {
5462
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5463
        oprot.writeI32(this.pickUp.getValue());
5464
        oprot.writeFieldEnd();
5465
      }
477 rajveer 5466
      oprot.writeFieldStop();
5467
      oprot.writeStructEnd();
5468
    }
5469
 
5470
    @Override
5471
    public String toString() {
648 chandransh 5472
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5473
      boolean first = true;
5474
 
648 chandransh 5475
      sb.append("destination_pincode:");
5476
      if (this.destination_pincode == null) {
477 rajveer 5477
        sb.append("null");
5478
      } else {
648 chandransh 5479
        sb.append(this.destination_pincode);
477 rajveer 5480
      }
5481
      first = false;
5482
      if (!first) sb.append(", ");
648 chandransh 5483
      sb.append("item_id:");
715 rajveer 5484
      sb.append(this.item_id);
477 rajveer 5485
      first = false;
3044 chandransh 5486
      if (!first) sb.append(", ");
5487
      sb.append("type:");
5488
      if (this.type == null) {
5489
        sb.append("null");
5490
      } else {
5491
        sb.append(this.type);
5492
      }
5493
      first = false;
5766 rajveer 5494
      if (!first) sb.append(", ");
5495
      sb.append("pickUp:");
5496
      if (this.pickUp == null) {
5497
        sb.append("null");
5498
      } else {
5499
        sb.append(this.pickUp);
5500
      }
5501
      first = false;
477 rajveer 5502
      sb.append(")");
5503
      return sb.toString();
5504
    }
5505
 
3430 rajveer 5506
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5507
      // check for required fields
5508
    }
5509
 
3430 rajveer 5510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5511
      try {
5512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5513
      } catch (org.apache.thrift.TException te) {
5514
        throw new java.io.IOException(te);
5515
      }
5516
    }
5517
 
5518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5519
      try {
5520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5521
      } catch (org.apache.thrift.TException te) {
5522
        throw new java.io.IOException(te);
5523
      }
5524
    }
5525
 
477 rajveer 5526
  }
5527
 
3430 rajveer 5528
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5530
 
3430 rajveer 5531
    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);
5532
    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 5533
 
3430 rajveer 5534
    private LogisticsInfo success; // required
5535
    private LogisticsServiceException se; // required
477 rajveer 5536
 
5537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5538
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5539
      SUCCESS((short)0, "success"),
5540
      SE((short)1, "se");
477 rajveer 5541
 
5542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5543
 
5544
      static {
5545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5546
          byName.put(field.getFieldName(), field);
5547
        }
5548
      }
5549
 
5550
      /**
5551
       * Find the _Fields constant that matches fieldId, or null if its not found.
5552
       */
5553
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5554
        switch(fieldId) {
5555
          case 0: // SUCCESS
5556
            return SUCCESS;
5557
          case 1: // SE
5558
            return SE;
5559
          default:
5560
            return null;
5561
        }
477 rajveer 5562
      }
5563
 
5564
      /**
5565
       * Find the _Fields constant that matches fieldId, throwing an exception
5566
       * if it is not found.
5567
       */
5568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5569
        _Fields fields = findByThriftId(fieldId);
5570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5571
        return fields;
5572
      }
5573
 
5574
      /**
5575
       * Find the _Fields constant that matches name, or null if its not found.
5576
       */
5577
      public static _Fields findByName(String name) {
5578
        return byName.get(name);
5579
      }
5580
 
5581
      private final short _thriftId;
5582
      private final String _fieldName;
5583
 
5584
      _Fields(short thriftId, String fieldName) {
5585
        _thriftId = thriftId;
5586
        _fieldName = fieldName;
5587
      }
5588
 
5589
      public short getThriftFieldId() {
5590
        return _thriftId;
5591
      }
5592
 
5593
      public String getFieldName() {
5594
        return _fieldName;
5595
      }
5596
    }
5597
 
412 ashish 5598
    // isset id assignments
5599
 
3430 rajveer 5600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5601
    static {
3430 rajveer 5602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5603
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5604
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5605
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5607
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5608
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5609
    }
5610
 
648 chandransh 5611
    public getLogisticsInfo_result() {
412 ashish 5612
    }
5613
 
648 chandransh 5614
    public getLogisticsInfo_result(
5615
      LogisticsInfo success,
5616
      LogisticsServiceException se)
412 ashish 5617
    {
5618
      this();
648 chandransh 5619
      this.success = success;
5620
      this.se = se;
412 ashish 5621
    }
5622
 
5623
    /**
5624
     * Performs a deep copy on <i>other</i>.
5625
     */
648 chandransh 5626
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5627
      if (other.isSetSuccess()) {
5628
        this.success = new LogisticsInfo(other.success);
412 ashish 5629
      }
648 chandransh 5630
      if (other.isSetSe()) {
5631
        this.se = new LogisticsServiceException(other.se);
5632
      }
412 ashish 5633
    }
5634
 
648 chandransh 5635
    public getLogisticsInfo_result deepCopy() {
5636
      return new getLogisticsInfo_result(this);
412 ashish 5637
    }
5638
 
3430 rajveer 5639
    @Override
5640
    public void clear() {
5641
      this.success = null;
5642
      this.se = null;
412 ashish 5643
    }
5644
 
648 chandransh 5645
    public LogisticsInfo getSuccess() {
5646
      return this.success;
412 ashish 5647
    }
5648
 
3430 rajveer 5649
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5650
      this.success = success;
412 ashish 5651
    }
5652
 
648 chandransh 5653
    public void unsetSuccess() {
5654
      this.success = null;
412 ashish 5655
    }
5656
 
3430 rajveer 5657
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 5658
    public boolean isSetSuccess() {
5659
      return this.success != null;
412 ashish 5660
    }
5661
 
648 chandransh 5662
    public void setSuccessIsSet(boolean value) {
412 ashish 5663
      if (!value) {
648 chandransh 5664
        this.success = null;
412 ashish 5665
      }
5666
    }
5667
 
648 chandransh 5668
    public LogisticsServiceException getSe() {
5669
      return this.se;
412 ashish 5670
    }
5671
 
3430 rajveer 5672
    public void setSe(LogisticsServiceException se) {
648 chandransh 5673
      this.se = se;
412 ashish 5674
    }
5675
 
648 chandransh 5676
    public void unsetSe() {
5677
      this.se = null;
412 ashish 5678
    }
5679
 
3430 rajveer 5680
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 5681
    public boolean isSetSe() {
5682
      return this.se != null;
412 ashish 5683
    }
5684
 
648 chandransh 5685
    public void setSeIsSet(boolean value) {
5686
      if (!value) {
5687
        this.se = null;
5688
      }
412 ashish 5689
    }
5690
 
5691
    public void setFieldValue(_Fields field, Object value) {
5692
      switch (field) {
648 chandransh 5693
      case SUCCESS:
412 ashish 5694
        if (value == null) {
648 chandransh 5695
          unsetSuccess();
412 ashish 5696
        } else {
648 chandransh 5697
          setSuccess((LogisticsInfo)value);
412 ashish 5698
        }
5699
        break;
5700
 
648 chandransh 5701
      case SE:
412 ashish 5702
        if (value == null) {
648 chandransh 5703
          unsetSe();
412 ashish 5704
        } else {
648 chandransh 5705
          setSe((LogisticsServiceException)value);
412 ashish 5706
        }
5707
        break;
5708
 
5709
      }
5710
    }
5711
 
5712
    public Object getFieldValue(_Fields field) {
5713
      switch (field) {
648 chandransh 5714
      case SUCCESS:
5715
        return getSuccess();
412 ashish 5716
 
648 chandransh 5717
      case SE:
5718
        return getSe();
412 ashish 5719
 
5720
      }
5721
      throw new IllegalStateException();
5722
    }
5723
 
3430 rajveer 5724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5725
    public boolean isSet(_Fields field) {
5726
      if (field == null) {
5727
        throw new IllegalArgumentException();
5728
      }
412 ashish 5729
 
5730
      switch (field) {
648 chandransh 5731
      case SUCCESS:
5732
        return isSetSuccess();
5733
      case SE:
5734
        return isSetSe();
412 ashish 5735
      }
5736
      throw new IllegalStateException();
5737
    }
5738
 
5739
    @Override
5740
    public boolean equals(Object that) {
5741
      if (that == null)
5742
        return false;
648 chandransh 5743
      if (that instanceof getLogisticsInfo_result)
5744
        return this.equals((getLogisticsInfo_result)that);
412 ashish 5745
      return false;
5746
    }
5747
 
648 chandransh 5748
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 5749
      if (that == null)
5750
        return false;
5751
 
648 chandransh 5752
      boolean this_present_success = true && this.isSetSuccess();
5753
      boolean that_present_success = true && that.isSetSuccess();
5754
      if (this_present_success || that_present_success) {
5755
        if (!(this_present_success && that_present_success))
412 ashish 5756
          return false;
648 chandransh 5757
        if (!this.success.equals(that.success))
412 ashish 5758
          return false;
5759
      }
5760
 
648 chandransh 5761
      boolean this_present_se = true && this.isSetSe();
5762
      boolean that_present_se = true && that.isSetSe();
5763
      if (this_present_se || that_present_se) {
5764
        if (!(this_present_se && that_present_se))
412 ashish 5765
          return false;
648 chandransh 5766
        if (!this.se.equals(that.se))
412 ashish 5767
          return false;
5768
      }
5769
 
5770
      return true;
5771
    }
5772
 
5773
    @Override
5774
    public int hashCode() {
5775
      return 0;
5776
    }
5777
 
648 chandransh 5778
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 5779
      if (!getClass().equals(other.getClass())) {
5780
        return getClass().getName().compareTo(other.getClass().getName());
5781
      }
5782
 
5783
      int lastComparison = 0;
648 chandransh 5784
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 5785
 
3430 rajveer 5786
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 5787
      if (lastComparison != 0) {
5788
        return lastComparison;
5789
      }
3430 rajveer 5790
      if (isSetSuccess()) {
5791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5792
        if (lastComparison != 0) {
5793
          return lastComparison;
5794
        }
412 ashish 5795
      }
3430 rajveer 5796
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 5797
      if (lastComparison != 0) {
5798
        return lastComparison;
5799
      }
3430 rajveer 5800
      if (isSetSe()) {
5801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5802
        if (lastComparison != 0) {
5803
          return lastComparison;
5804
        }
412 ashish 5805
      }
5806
      return 0;
5807
    }
5808
 
3430 rajveer 5809
    public _Fields fieldForId(int fieldId) {
5810
      return _Fields.findByThriftId(fieldId);
5811
    }
5812
 
5813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5814
      org.apache.thrift.protocol.TField field;
412 ashish 5815
      iprot.readStructBegin();
5816
      while (true)
5817
      {
5818
        field = iprot.readFieldBegin();
3430 rajveer 5819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 5820
          break;
5821
        }
3430 rajveer 5822
        switch (field.id) {
5823
          case 0: // SUCCESS
5824
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5825
              this.success = new LogisticsInfo();
5826
              this.success.read(iprot);
5827
            } else { 
5828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5829
            }
5830
            break;
5831
          case 1: // SE
5832
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5833
              this.se = new LogisticsServiceException();
5834
              this.se.read(iprot);
5835
            } else { 
5836
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5837
            }
5838
            break;
5839
          default:
5840
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 5841
        }
3430 rajveer 5842
        iprot.readFieldEnd();
412 ashish 5843
      }
5844
      iprot.readStructEnd();
5845
      validate();
5846
    }
5847
 
3430 rajveer 5848
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 5849
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 5850
 
648 chandransh 5851
      if (this.isSetSuccess()) {
5852
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5853
        this.success.write(oprot);
412 ashish 5854
        oprot.writeFieldEnd();
648 chandransh 5855
      } else if (this.isSetSe()) {
5856
        oprot.writeFieldBegin(SE_FIELD_DESC);
5857
        this.se.write(oprot);
5858
        oprot.writeFieldEnd();
412 ashish 5859
      }
5860
      oprot.writeFieldStop();
5861
      oprot.writeStructEnd();
5862
    }
5863
 
5864
    @Override
5865
    public String toString() {
648 chandransh 5866
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 5867
      boolean first = true;
5868
 
648 chandransh 5869
      sb.append("success:");
5870
      if (this.success == null) {
412 ashish 5871
        sb.append("null");
5872
      } else {
648 chandransh 5873
        sb.append(this.success);
412 ashish 5874
      }
5875
      first = false;
5876
      if (!first) sb.append(", ");
648 chandransh 5877
      sb.append("se:");
5878
      if (this.se == null) {
5879
        sb.append("null");
5880
      } else {
5881
        sb.append(this.se);
5882
      }
412 ashish 5883
      first = false;
5884
      sb.append(")");
5885
      return sb.toString();
5886
    }
5887
 
3430 rajveer 5888
    public void validate() throws org.apache.thrift.TException {
412 ashish 5889
      // check for required fields
5890
    }
5891
 
3430 rajveer 5892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5893
      try {
5894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5895
      } catch (org.apache.thrift.TException te) {
5896
        throw new java.io.IOException(te);
5897
      }
5898
    }
5899
 
5900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5901
      try {
5902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5903
      } catch (org.apache.thrift.TException te) {
5904
        throw new java.io.IOException(te);
5905
      }
5906
    }
5907
 
412 ashish 5908
  }
5909
 
3430 rajveer 5910
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
5911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 5912
 
3430 rajveer 5913
    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 5914
    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 5915
 
3430 rajveer 5916
    private long providerId; // required
5247 rajveer 5917
    private DeliveryType type; // required
412 ashish 5918
 
5919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 5921
      PROVIDER_ID((short)1, "providerId"),
5922
      /**
5923
       * 
5924
       * @see DeliveryType
5925
       */
5926
      TYPE((short)-1, "type");
412 ashish 5927
 
5928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5929
 
5930
      static {
5931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5932
          byName.put(field.getFieldName(), field);
5933
        }
5934
      }
5935
 
5936
      /**
5937
       * Find the _Fields constant that matches fieldId, or null if its not found.
5938
       */
5939
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5940
        switch(fieldId) {
5941
          case 1: // PROVIDER_ID
5942
            return PROVIDER_ID;
5247 rajveer 5943
          case -1: // TYPE
5944
            return TYPE;
3430 rajveer 5945
          default:
5946
            return null;
5947
        }
412 ashish 5948
      }
5949
 
5950
      /**
5951
       * Find the _Fields constant that matches fieldId, throwing an exception
5952
       * if it is not found.
5953
       */
5954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5955
        _Fields fields = findByThriftId(fieldId);
5956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5957
        return fields;
5958
      }
5959
 
5960
      /**
5961
       * Find the _Fields constant that matches name, or null if its not found.
5962
       */
5963
      public static _Fields findByName(String name) {
5964
        return byName.get(name);
5965
      }
5966
 
5967
      private final short _thriftId;
5968
      private final String _fieldName;
5969
 
5970
      _Fields(short thriftId, String fieldName) {
5971
        _thriftId = thriftId;
5972
        _fieldName = fieldName;
5973
      }
5974
 
5975
      public short getThriftFieldId() {
5976
        return _thriftId;
5977
      }
5978
 
5979
      public String getFieldName() {
5980
        return _fieldName;
5981
      }
5982
    }
5983
 
5984
    // isset id assignments
648 chandransh 5985
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 5986
    private BitSet __isset_bit_vector = new BitSet(1);
5987
 
3430 rajveer 5988
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5989
    static {
3430 rajveer 5990
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5991
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5992
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 5993
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5994
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 5995
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5996
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 5997
    }
5998
 
5999
    public getEmptyAWB_args() {
6000
    }
6001
 
6002
    public getEmptyAWB_args(
5247 rajveer 6003
      long providerId,
6004
      DeliveryType type)
412 ashish 6005
    {
6006
      this();
648 chandransh 6007
      this.providerId = providerId;
6008
      setProviderIdIsSet(true);
5247 rajveer 6009
      this.type = type;
412 ashish 6010
    }
6011
 
6012
    /**
6013
     * Performs a deep copy on <i>other</i>.
6014
     */
6015
    public getEmptyAWB_args(getEmptyAWB_args other) {
6016
      __isset_bit_vector.clear();
6017
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6018
      this.providerId = other.providerId;
5247 rajveer 6019
      if (other.isSetType()) {
6020
        this.type = other.type;
6021
      }
412 ashish 6022
    }
6023
 
6024
    public getEmptyAWB_args deepCopy() {
6025
      return new getEmptyAWB_args(this);
6026
    }
6027
 
3430 rajveer 6028
    @Override
6029
    public void clear() {
6030
      setProviderIdIsSet(false);
6031
      this.providerId = 0;
5247 rajveer 6032
      this.type = null;
412 ashish 6033
    }
6034
 
648 chandransh 6035
    public long getProviderId() {
6036
      return this.providerId;
412 ashish 6037
    }
6038
 
3430 rajveer 6039
    public void setProviderId(long providerId) {
648 chandransh 6040
      this.providerId = providerId;
6041
      setProviderIdIsSet(true);
412 ashish 6042
    }
6043
 
648 chandransh 6044
    public void unsetProviderId() {
6045
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6046
    }
6047
 
3430 rajveer 6048
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6049
    public boolean isSetProviderId() {
6050
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6051
    }
6052
 
648 chandransh 6053
    public void setProviderIdIsSet(boolean value) {
6054
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6055
    }
6056
 
5247 rajveer 6057
    /**
6058
     * 
6059
     * @see DeliveryType
6060
     */
6061
    public DeliveryType getType() {
6062
      return this.type;
6063
    }
6064
 
6065
    /**
6066
     * 
6067
     * @see DeliveryType
6068
     */
6069
    public void setType(DeliveryType type) {
6070
      this.type = type;
6071
    }
6072
 
6073
    public void unsetType() {
6074
      this.type = null;
6075
    }
6076
 
6077
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6078
    public boolean isSetType() {
6079
      return this.type != null;
6080
    }
6081
 
6082
    public void setTypeIsSet(boolean value) {
6083
      if (!value) {
6084
        this.type = null;
6085
      }
6086
    }
6087
 
412 ashish 6088
    public void setFieldValue(_Fields field, Object value) {
6089
      switch (field) {
6090
      case PROVIDER_ID:
6091
        if (value == null) {
648 chandransh 6092
          unsetProviderId();
412 ashish 6093
        } else {
648 chandransh 6094
          setProviderId((Long)value);
412 ashish 6095
        }
6096
        break;
6097
 
5247 rajveer 6098
      case TYPE:
6099
        if (value == null) {
6100
          unsetType();
6101
        } else {
6102
          setType((DeliveryType)value);
6103
        }
6104
        break;
6105
 
412 ashish 6106
      }
6107
    }
6108
 
6109
    public Object getFieldValue(_Fields field) {
6110
      switch (field) {
6111
      case PROVIDER_ID:
3430 rajveer 6112
        return Long.valueOf(getProviderId());
412 ashish 6113
 
5247 rajveer 6114
      case TYPE:
6115
        return getType();
6116
 
412 ashish 6117
      }
6118
      throw new IllegalStateException();
6119
    }
6120
 
3430 rajveer 6121
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6122
    public boolean isSet(_Fields field) {
6123
      if (field == null) {
6124
        throw new IllegalArgumentException();
6125
      }
412 ashish 6126
 
6127
      switch (field) {
6128
      case PROVIDER_ID:
648 chandransh 6129
        return isSetProviderId();
5247 rajveer 6130
      case TYPE:
6131
        return isSetType();
412 ashish 6132
      }
6133
      throw new IllegalStateException();
6134
    }
6135
 
6136
    @Override
6137
    public boolean equals(Object that) {
6138
      if (that == null)
6139
        return false;
6140
      if (that instanceof getEmptyAWB_args)
6141
        return this.equals((getEmptyAWB_args)that);
6142
      return false;
6143
    }
6144
 
6145
    public boolean equals(getEmptyAWB_args that) {
6146
      if (that == null)
6147
        return false;
6148
 
648 chandransh 6149
      boolean this_present_providerId = true;
6150
      boolean that_present_providerId = true;
6151
      if (this_present_providerId || that_present_providerId) {
6152
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6153
          return false;
648 chandransh 6154
        if (this.providerId != that.providerId)
412 ashish 6155
          return false;
6156
      }
6157
 
5247 rajveer 6158
      boolean this_present_type = true && this.isSetType();
6159
      boolean that_present_type = true && that.isSetType();
6160
      if (this_present_type || that_present_type) {
6161
        if (!(this_present_type && that_present_type))
6162
          return false;
6163
        if (!this.type.equals(that.type))
6164
          return false;
6165
      }
6166
 
412 ashish 6167
      return true;
6168
    }
6169
 
6170
    @Override
6171
    public int hashCode() {
6172
      return 0;
6173
    }
6174
 
6175
    public int compareTo(getEmptyAWB_args other) {
6176
      if (!getClass().equals(other.getClass())) {
6177
        return getClass().getName().compareTo(other.getClass().getName());
6178
      }
6179
 
6180
      int lastComparison = 0;
6181
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6182
 
3430 rajveer 6183
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6184
      if (lastComparison != 0) {
6185
        return lastComparison;
6186
      }
3430 rajveer 6187
      if (isSetProviderId()) {
6188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6189
        if (lastComparison != 0) {
6190
          return lastComparison;
6191
        }
412 ashish 6192
      }
5247 rajveer 6193
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6194
      if (lastComparison != 0) {
6195
        return lastComparison;
6196
      }
6197
      if (isSetType()) {
6198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6199
        if (lastComparison != 0) {
6200
          return lastComparison;
6201
        }
6202
      }
412 ashish 6203
      return 0;
6204
    }
6205
 
3430 rajveer 6206
    public _Fields fieldForId(int fieldId) {
6207
      return _Fields.findByThriftId(fieldId);
6208
    }
6209
 
6210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6211
      org.apache.thrift.protocol.TField field;
412 ashish 6212
      iprot.readStructBegin();
6213
      while (true)
6214
      {
6215
        field = iprot.readFieldBegin();
3430 rajveer 6216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6217
          break;
6218
        }
3430 rajveer 6219
        switch (field.id) {
6220
          case 1: // PROVIDER_ID
6221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6222
              this.providerId = iprot.readI64();
6223
              setProviderIdIsSet(true);
6224
            } else { 
6225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6226
            }
6227
            break;
5247 rajveer 6228
          case -1: // TYPE
6229
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6230
              this.type = DeliveryType.findByValue(iprot.readI32());
6231
            } else { 
6232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6233
            }
6234
            break;
3430 rajveer 6235
          default:
6236
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6237
        }
3430 rajveer 6238
        iprot.readFieldEnd();
412 ashish 6239
      }
6240
      iprot.readStructEnd();
6241
      validate();
6242
    }
6243
 
3430 rajveer 6244
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6245
      validate();
6246
 
6247
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6248
      if (this.type != null) {
6249
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6250
        oprot.writeI32(this.type.getValue());
6251
        oprot.writeFieldEnd();
6252
      }
412 ashish 6253
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6254
      oprot.writeI64(this.providerId);
412 ashish 6255
      oprot.writeFieldEnd();
6256
      oprot.writeFieldStop();
6257
      oprot.writeStructEnd();
6258
    }
6259
 
6260
    @Override
6261
    public String toString() {
6262
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6263
      boolean first = true;
6264
 
648 chandransh 6265
      sb.append("providerId:");
6266
      sb.append(this.providerId);
412 ashish 6267
      first = false;
5247 rajveer 6268
      if (!first) sb.append(", ");
6269
      sb.append("type:");
6270
      if (this.type == null) {
6271
        sb.append("null");
6272
      } else {
6273
        sb.append(this.type);
6274
      }
6275
      first = false;
412 ashish 6276
      sb.append(")");
6277
      return sb.toString();
6278
    }
6279
 
3430 rajveer 6280
    public void validate() throws org.apache.thrift.TException {
412 ashish 6281
      // check for required fields
6282
    }
6283
 
3430 rajveer 6284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6285
      try {
6286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6287
      } catch (org.apache.thrift.TException te) {
6288
        throw new java.io.IOException(te);
6289
      }
6290
    }
6291
 
6292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6293
      try {
6294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6295
        __isset_bit_vector = new BitSet(1);
6296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6297
      } catch (org.apache.thrift.TException te) {
6298
        throw new java.io.IOException(te);
6299
      }
6300
    }
6301
 
412 ashish 6302
  }
6303
 
3430 rajveer 6304
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6306
 
3430 rajveer 6307
    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);
6308
    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 6309
 
3430 rajveer 6310
    private String success; // required
6311
    private LogisticsServiceException se; // required
412 ashish 6312
 
6313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6315
      SUCCESS((short)0, "success"),
6316
      SE((short)1, "se");
412 ashish 6317
 
6318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6319
 
6320
      static {
6321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6322
          byName.put(field.getFieldName(), field);
6323
        }
6324
      }
6325
 
6326
      /**
6327
       * Find the _Fields constant that matches fieldId, or null if its not found.
6328
       */
6329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6330
        switch(fieldId) {
6331
          case 0: // SUCCESS
6332
            return SUCCESS;
6333
          case 1: // SE
6334
            return SE;
6335
          default:
6336
            return null;
6337
        }
412 ashish 6338
      }
6339
 
6340
      /**
6341
       * Find the _Fields constant that matches fieldId, throwing an exception
6342
       * if it is not found.
6343
       */
6344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6345
        _Fields fields = findByThriftId(fieldId);
6346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6347
        return fields;
6348
      }
6349
 
6350
      /**
6351
       * Find the _Fields constant that matches name, or null if its not found.
6352
       */
6353
      public static _Fields findByName(String name) {
6354
        return byName.get(name);
6355
      }
6356
 
6357
      private final short _thriftId;
6358
      private final String _fieldName;
6359
 
6360
      _Fields(short thriftId, String fieldName) {
6361
        _thriftId = thriftId;
6362
        _fieldName = fieldName;
6363
      }
6364
 
6365
      public short getThriftFieldId() {
6366
        return _thriftId;
6367
      }
6368
 
6369
      public String getFieldName() {
6370
        return _fieldName;
6371
      }
6372
    }
6373
 
6374
    // isset id assignments
6375
 
3430 rajveer 6376
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6377
    static {
3430 rajveer 6378
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6379
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6381
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6383
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6384
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6385
    }
6386
 
6387
    public getEmptyAWB_result() {
6388
    }
6389
 
6390
    public getEmptyAWB_result(
648 chandransh 6391
      String success,
6392
      LogisticsServiceException se)
412 ashish 6393
    {
6394
      this();
6395
      this.success = success;
648 chandransh 6396
      this.se = se;
412 ashish 6397
    }
6398
 
6399
    /**
6400
     * Performs a deep copy on <i>other</i>.
6401
     */
6402
    public getEmptyAWB_result(getEmptyAWB_result other) {
6403
      if (other.isSetSuccess()) {
6404
        this.success = other.success;
6405
      }
648 chandransh 6406
      if (other.isSetSe()) {
6407
        this.se = new LogisticsServiceException(other.se);
6408
      }
412 ashish 6409
    }
6410
 
6411
    public getEmptyAWB_result deepCopy() {
6412
      return new getEmptyAWB_result(this);
6413
    }
6414
 
3430 rajveer 6415
    @Override
6416
    public void clear() {
6417
      this.success = null;
6418
      this.se = null;
412 ashish 6419
    }
6420
 
6421
    public String getSuccess() {
6422
      return this.success;
6423
    }
6424
 
3430 rajveer 6425
    public void setSuccess(String success) {
412 ashish 6426
      this.success = success;
6427
    }
6428
 
6429
    public void unsetSuccess() {
6430
      this.success = null;
6431
    }
6432
 
3430 rajveer 6433
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6434
    public boolean isSetSuccess() {
6435
      return this.success != null;
6436
    }
6437
 
6438
    public void setSuccessIsSet(boolean value) {
6439
      if (!value) {
6440
        this.success = null;
6441
      }
6442
    }
6443
 
648 chandransh 6444
    public LogisticsServiceException getSe() {
6445
      return this.se;
412 ashish 6446
    }
6447
 
3430 rajveer 6448
    public void setSe(LogisticsServiceException se) {
648 chandransh 6449
      this.se = se;
412 ashish 6450
    }
6451
 
648 chandransh 6452
    public void unsetSe() {
6453
      this.se = null;
412 ashish 6454
    }
6455
 
3430 rajveer 6456
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6457
    public boolean isSetSe() {
6458
      return this.se != null;
412 ashish 6459
    }
6460
 
648 chandransh 6461
    public void setSeIsSet(boolean value) {
412 ashish 6462
      if (!value) {
648 chandransh 6463
        this.se = null;
412 ashish 6464
      }
6465
    }
6466
 
6467
    public void setFieldValue(_Fields field, Object value) {
6468
      switch (field) {
6469
      case SUCCESS:
6470
        if (value == null) {
6471
          unsetSuccess();
6472
        } else {
648 chandransh 6473
          setSuccess((String)value);
412 ashish 6474
        }
6475
        break;
6476
 
648 chandransh 6477
      case SE:
6478
        if (value == null) {
6479
          unsetSe();
6480
        } else {
6481
          setSe((LogisticsServiceException)value);
6482
        }
6483
        break;
6484
 
412 ashish 6485
      }
6486
    }
6487
 
6488
    public Object getFieldValue(_Fields field) {
6489
      switch (field) {
6490
      case SUCCESS:
6491
        return getSuccess();
6492
 
648 chandransh 6493
      case SE:
6494
        return getSe();
6495
 
412 ashish 6496
      }
6497
      throw new IllegalStateException();
6498
    }
6499
 
3430 rajveer 6500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6501
    public boolean isSet(_Fields field) {
6502
      if (field == null) {
6503
        throw new IllegalArgumentException();
6504
      }
412 ashish 6505
 
6506
      switch (field) {
6507
      case SUCCESS:
6508
        return isSetSuccess();
648 chandransh 6509
      case SE:
6510
        return isSetSe();
412 ashish 6511
      }
6512
      throw new IllegalStateException();
6513
    }
6514
 
6515
    @Override
6516
    public boolean equals(Object that) {
6517
      if (that == null)
6518
        return false;
648 chandransh 6519
      if (that instanceof getEmptyAWB_result)
6520
        return this.equals((getEmptyAWB_result)that);
412 ashish 6521
      return false;
6522
    }
6523
 
648 chandransh 6524
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6525
      if (that == null)
6526
        return false;
6527
 
6528
      boolean this_present_success = true && this.isSetSuccess();
6529
      boolean that_present_success = true && that.isSetSuccess();
6530
      if (this_present_success || that_present_success) {
6531
        if (!(this_present_success && that_present_success))
6532
          return false;
6533
        if (!this.success.equals(that.success))
6534
          return false;
6535
      }
6536
 
648 chandransh 6537
      boolean this_present_se = true && this.isSetSe();
6538
      boolean that_present_se = true && that.isSetSe();
6539
      if (this_present_se || that_present_se) {
6540
        if (!(this_present_se && that_present_se))
6541
          return false;
6542
        if (!this.se.equals(that.se))
6543
          return false;
6544
      }
6545
 
412 ashish 6546
      return true;
6547
    }
6548
 
6549
    @Override
6550
    public int hashCode() {
6551
      return 0;
6552
    }
6553
 
648 chandransh 6554
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6555
      if (!getClass().equals(other.getClass())) {
6556
        return getClass().getName().compareTo(other.getClass().getName());
6557
      }
6558
 
6559
      int lastComparison = 0;
648 chandransh 6560
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6561
 
3430 rajveer 6562
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6563
      if (lastComparison != 0) {
6564
        return lastComparison;
6565
      }
3430 rajveer 6566
      if (isSetSuccess()) {
6567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6568
        if (lastComparison != 0) {
6569
          return lastComparison;
6570
        }
412 ashish 6571
      }
3430 rajveer 6572
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6573
      if (lastComparison != 0) {
6574
        return lastComparison;
6575
      }
3430 rajveer 6576
      if (isSetSe()) {
6577
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6578
        if (lastComparison != 0) {
6579
          return lastComparison;
6580
        }
412 ashish 6581
      }
6582
      return 0;
6583
    }
6584
 
3430 rajveer 6585
    public _Fields fieldForId(int fieldId) {
6586
      return _Fields.findByThriftId(fieldId);
6587
    }
6588
 
6589
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6590
      org.apache.thrift.protocol.TField field;
412 ashish 6591
      iprot.readStructBegin();
6592
      while (true)
6593
      {
6594
        field = iprot.readFieldBegin();
3430 rajveer 6595
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6596
          break;
6597
        }
3430 rajveer 6598
        switch (field.id) {
6599
          case 0: // SUCCESS
6600
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6601
              this.success = iprot.readString();
6602
            } else { 
6603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6604
            }
6605
            break;
6606
          case 1: // SE
6607
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6608
              this.se = new LogisticsServiceException();
6609
              this.se.read(iprot);
6610
            } else { 
6611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6612
            }
6613
            break;
6614
          default:
6615
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6616
        }
3430 rajveer 6617
        iprot.readFieldEnd();
412 ashish 6618
      }
6619
      iprot.readStructEnd();
6620
      validate();
6621
    }
6622
 
3430 rajveer 6623
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6624
      oprot.writeStructBegin(STRUCT_DESC);
6625
 
6626
      if (this.isSetSuccess()) {
6627
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6628
        oprot.writeString(this.success);
412 ashish 6629
        oprot.writeFieldEnd();
648 chandransh 6630
      } else if (this.isSetSe()) {
6631
        oprot.writeFieldBegin(SE_FIELD_DESC);
6632
        this.se.write(oprot);
6633
        oprot.writeFieldEnd();
412 ashish 6634
      }
6635
      oprot.writeFieldStop();
6636
      oprot.writeStructEnd();
6637
    }
6638
 
6639
    @Override
6640
    public String toString() {
648 chandransh 6641
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6642
      boolean first = true;
6643
 
6644
      sb.append("success:");
6645
      if (this.success == null) {
6646
        sb.append("null");
6647
      } else {
6648
        sb.append(this.success);
6649
      }
6650
      first = false;
648 chandransh 6651
      if (!first) sb.append(", ");
6652
      sb.append("se:");
6653
      if (this.se == null) {
442 rajveer 6654
        sb.append("null");
6655
      } else {
648 chandransh 6656
        sb.append(this.se);
442 rajveer 6657
      }
6658
      first = false;
6659
      sb.append(")");
6660
      return sb.toString();
6661
    }
6662
 
3430 rajveer 6663
    public void validate() throws org.apache.thrift.TException {
442 rajveer 6664
      // check for required fields
6665
    }
6666
 
3430 rajveer 6667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6668
      try {
6669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6670
      } catch (org.apache.thrift.TException te) {
6671
        throw new java.io.IOException(te);
6672
      }
6673
    }
6674
 
6675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6676
      try {
6677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6678
      } catch (org.apache.thrift.TException te) {
6679
        throw new java.io.IOException(te);
6680
      }
6681
    }
6682
 
442 rajveer 6683
  }
6684
 
3430 rajveer 6685
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
6686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 6687
 
6643 rajveer 6688
    private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
3430 rajveer 6689
    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 6690
 
6643 rajveer 6691
    private String awbNumber; // required
3430 rajveer 6692
    private long providerId; // required
442 rajveer 6693
 
6694
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6695
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 6696
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 6697
      PROVIDER_ID((short)2, "providerId");
442 rajveer 6698
 
6699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6700
 
6701
      static {
6702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6703
          byName.put(field.getFieldName(), field);
6704
        }
6705
      }
6706
 
6707
      /**
6708
       * Find the _Fields constant that matches fieldId, or null if its not found.
6709
       */
6710
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6711
        switch(fieldId) {
6643 rajveer 6712
          case 1: // AWB_NUMBER
6713
            return AWB_NUMBER;
3430 rajveer 6714
          case 2: // PROVIDER_ID
6715
            return PROVIDER_ID;
6716
          default:
6717
            return null;
6718
        }
442 rajveer 6719
      }
6720
 
6721
      /**
6722
       * Find the _Fields constant that matches fieldId, throwing an exception
6723
       * if it is not found.
6724
       */
6725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6726
        _Fields fields = findByThriftId(fieldId);
6727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6728
        return fields;
6729
      }
6730
 
6731
      /**
6732
       * Find the _Fields constant that matches name, or null if its not found.
6733
       */
6734
      public static _Fields findByName(String name) {
6735
        return byName.get(name);
6736
      }
6737
 
6738
      private final short _thriftId;
6739
      private final String _fieldName;
6740
 
6741
      _Fields(short thriftId, String fieldName) {
6742
        _thriftId = thriftId;
6743
        _fieldName = fieldName;
6744
      }
6745
 
6746
      public short getThriftFieldId() {
6747
        return _thriftId;
6748
      }
6749
 
6750
      public String getFieldName() {
6751
        return _fieldName;
6752
      }
6753
    }
6754
 
6755
    // isset id assignments
648 chandransh 6756
    private static final int __PROVIDERID_ISSET_ID = 0;
6757
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 6758
 
3430 rajveer 6759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 6760
    static {
3430 rajveer 6761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 6762
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 6763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6764
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 6768
    }
6769
 
648 chandransh 6770
    public getShipmentInfo_args() {
442 rajveer 6771
    }
6772
 
648 chandransh 6773
    public getShipmentInfo_args(
6643 rajveer 6774
      String awbNumber,
648 chandransh 6775
      long providerId)
442 rajveer 6776
    {
6777
      this();
6643 rajveer 6778
      this.awbNumber = awbNumber;
648 chandransh 6779
      this.providerId = providerId;
6780
      setProviderIdIsSet(true);
442 rajveer 6781
    }
6782
 
6783
    /**
6784
     * Performs a deep copy on <i>other</i>.
6785
     */
648 chandransh 6786
    public getShipmentInfo_args(getShipmentInfo_args other) {
6787
      __isset_bit_vector.clear();
6788
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 6789
      if (other.isSetAwbNumber()) {
6790
        this.awbNumber = other.awbNumber;
442 rajveer 6791
      }
648 chandransh 6792
      this.providerId = other.providerId;
442 rajveer 6793
    }
6794
 
648 chandransh 6795
    public getShipmentInfo_args deepCopy() {
6796
      return new getShipmentInfo_args(this);
442 rajveer 6797
    }
6798
 
3430 rajveer 6799
    @Override
6800
    public void clear() {
6643 rajveer 6801
      this.awbNumber = null;
3430 rajveer 6802
      setProviderIdIsSet(false);
6803
      this.providerId = 0;
442 rajveer 6804
    }
6805
 
6643 rajveer 6806
    public String getAwbNumber() {
6807
      return this.awbNumber;
442 rajveer 6808
    }
6809
 
6643 rajveer 6810
    public void setAwbNumber(String awbNumber) {
6811
      this.awbNumber = awbNumber;
442 rajveer 6812
    }
6813
 
6643 rajveer 6814
    public void unsetAwbNumber() {
6815
      this.awbNumber = null;
442 rajveer 6816
    }
6817
 
6643 rajveer 6818
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
6819
    public boolean isSetAwbNumber() {
6820
      return this.awbNumber != null;
442 rajveer 6821
    }
6822
 
6643 rajveer 6823
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 6824
      if (!value) {
6643 rajveer 6825
        this.awbNumber = null;
442 rajveer 6826
      }
6827
    }
6828
 
648 chandransh 6829
    public long getProviderId() {
6830
      return this.providerId;
442 rajveer 6831
    }
6832
 
3430 rajveer 6833
    public void setProviderId(long providerId) {
648 chandransh 6834
      this.providerId = providerId;
6835
      setProviderIdIsSet(true);
442 rajveer 6836
    }
6837
 
648 chandransh 6838
    public void unsetProviderId() {
6839
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 6840
    }
6841
 
3430 rajveer 6842
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6843
    public boolean isSetProviderId() {
6844
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 6845
    }
6846
 
648 chandransh 6847
    public void setProviderIdIsSet(boolean value) {
6848
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 6849
    }
6850
 
6851
    public void setFieldValue(_Fields field, Object value) {
6852
      switch (field) {
6643 rajveer 6853
      case AWB_NUMBER:
442 rajveer 6854
        if (value == null) {
6643 rajveer 6855
          unsetAwbNumber();
442 rajveer 6856
        } else {
6643 rajveer 6857
          setAwbNumber((String)value);
442 rajveer 6858
        }
6859
        break;
6860
 
648 chandransh 6861
      case PROVIDER_ID:
442 rajveer 6862
        if (value == null) {
648 chandransh 6863
          unsetProviderId();
442 rajveer 6864
        } else {
648 chandransh 6865
          setProviderId((Long)value);
442 rajveer 6866
        }
6867
        break;
6868
 
6869
      }
6870
    }
6871
 
6872
    public Object getFieldValue(_Fields field) {
6873
      switch (field) {
6643 rajveer 6874
      case AWB_NUMBER:
6875
        return getAwbNumber();
442 rajveer 6876
 
648 chandransh 6877
      case PROVIDER_ID:
3430 rajveer 6878
        return Long.valueOf(getProviderId());
442 rajveer 6879
 
6880
      }
6881
      throw new IllegalStateException();
6882
    }
6883
 
3430 rajveer 6884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6885
    public boolean isSet(_Fields field) {
6886
      if (field == null) {
6887
        throw new IllegalArgumentException();
6888
      }
442 rajveer 6889
 
6890
      switch (field) {
6643 rajveer 6891
      case AWB_NUMBER:
6892
        return isSetAwbNumber();
648 chandransh 6893
      case PROVIDER_ID:
6894
        return isSetProviderId();
442 rajveer 6895
      }
6896
      throw new IllegalStateException();
6897
    }
6898
 
6899
    @Override
6900
    public boolean equals(Object that) {
6901
      if (that == null)
6902
        return false;
648 chandransh 6903
      if (that instanceof getShipmentInfo_args)
6904
        return this.equals((getShipmentInfo_args)that);
442 rajveer 6905
      return false;
6906
    }
6907
 
648 chandransh 6908
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 6909
      if (that == null)
6910
        return false;
6911
 
6643 rajveer 6912
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
6913
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
6914
      if (this_present_awbNumber || that_present_awbNumber) {
6915
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 6916
          return false;
6643 rajveer 6917
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 6918
          return false;
6919
      }
6920
 
648 chandransh 6921
      boolean this_present_providerId = true;
6922
      boolean that_present_providerId = true;
6923
      if (this_present_providerId || that_present_providerId) {
6924
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 6925
          return false;
648 chandransh 6926
        if (this.providerId != that.providerId)
442 rajveer 6927
          return false;
6928
      }
6929
 
6930
      return true;
6931
    }
6932
 
6933
    @Override
6934
    public int hashCode() {
6935
      return 0;
6936
    }
6937
 
648 chandransh 6938
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 6939
      if (!getClass().equals(other.getClass())) {
6940
        return getClass().getName().compareTo(other.getClass().getName());
6941
      }
6942
 
6943
      int lastComparison = 0;
648 chandransh 6944
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 6945
 
6643 rajveer 6946
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 6947
      if (lastComparison != 0) {
6948
        return lastComparison;
6949
      }
6643 rajveer 6950
      if (isSetAwbNumber()) {
6951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 6952
        if (lastComparison != 0) {
6953
          return lastComparison;
6954
        }
442 rajveer 6955
      }
3430 rajveer 6956
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 6957
      if (lastComparison != 0) {
6958
        return lastComparison;
6959
      }
3430 rajveer 6960
      if (isSetProviderId()) {
6961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6962
        if (lastComparison != 0) {
6963
          return lastComparison;
6964
        }
442 rajveer 6965
      }
6966
      return 0;
6967
    }
6968
 
3430 rajveer 6969
    public _Fields fieldForId(int fieldId) {
6970
      return _Fields.findByThriftId(fieldId);
6971
    }
6972
 
6973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6974
      org.apache.thrift.protocol.TField field;
442 rajveer 6975
      iprot.readStructBegin();
6976
      while (true)
6977
      {
6978
        field = iprot.readFieldBegin();
3430 rajveer 6979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 6980
          break;
6981
        }
3430 rajveer 6982
        switch (field.id) {
6643 rajveer 6983
          case 1: // AWB_NUMBER
3430 rajveer 6984
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 6985
              this.awbNumber = iprot.readString();
3430 rajveer 6986
            } else { 
6987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6988
            }
6989
            break;
6990
          case 2: // PROVIDER_ID
6991
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6992
              this.providerId = iprot.readI64();
6993
              setProviderIdIsSet(true);
6994
            } else { 
6995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6996
            }
6997
            break;
6998
          default:
6999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7000
        }
3430 rajveer 7001
        iprot.readFieldEnd();
442 rajveer 7002
      }
7003
      iprot.readStructEnd();
7004
      validate();
7005
    }
7006
 
3430 rajveer 7007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7008
      validate();
7009
 
7010
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7011
      if (this.awbNumber != null) {
7012
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7013
        oprot.writeString(this.awbNumber);
442 rajveer 7014
        oprot.writeFieldEnd();
7015
      }
648 chandransh 7016
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7017
      oprot.writeI64(this.providerId);
7018
      oprot.writeFieldEnd();
442 rajveer 7019
      oprot.writeFieldStop();
7020
      oprot.writeStructEnd();
7021
    }
7022
 
7023
    @Override
7024
    public String toString() {
648 chandransh 7025
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7026
      boolean first = true;
7027
 
6643 rajveer 7028
      sb.append("awbNumber:");
7029
      if (this.awbNumber == null) {
442 rajveer 7030
        sb.append("null");
7031
      } else {
6643 rajveer 7032
        sb.append(this.awbNumber);
442 rajveer 7033
      }
7034
      first = false;
7035
      if (!first) sb.append(", ");
648 chandransh 7036
      sb.append("providerId:");
7037
      sb.append(this.providerId);
442 rajveer 7038
      first = false;
7039
      sb.append(")");
7040
      return sb.toString();
7041
    }
7042
 
3430 rajveer 7043
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7044
      // check for required fields
7045
    }
7046
 
3430 rajveer 7047
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7048
      try {
7049
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7050
      } catch (org.apache.thrift.TException te) {
7051
        throw new java.io.IOException(te);
7052
      }
7053
    }
7054
 
7055
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7056
      try {
7057
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7058
      } catch (org.apache.thrift.TException te) {
7059
        throw new java.io.IOException(te);
7060
      }
7061
    }
7062
 
442 rajveer 7063
  }
7064
 
3430 rajveer 7065
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7066
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7067
 
3430 rajveer 7068
    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);
7069
    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 7070
 
3430 rajveer 7071
    private List<AwbUpdate> success; // required
7072
    private LogisticsServiceException se; // required
412 ashish 7073
 
7074
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7075
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7076
      SUCCESS((short)0, "success"),
7077
      SE((short)1, "se");
412 ashish 7078
 
7079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7080
 
7081
      static {
7082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7083
          byName.put(field.getFieldName(), field);
7084
        }
7085
      }
7086
 
7087
      /**
7088
       * Find the _Fields constant that matches fieldId, or null if its not found.
7089
       */
7090
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7091
        switch(fieldId) {
7092
          case 0: // SUCCESS
7093
            return SUCCESS;
7094
          case 1: // SE
7095
            return SE;
7096
          default:
7097
            return null;
7098
        }
412 ashish 7099
      }
7100
 
7101
      /**
7102
       * Find the _Fields constant that matches fieldId, throwing an exception
7103
       * if it is not found.
7104
       */
7105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7106
        _Fields fields = findByThriftId(fieldId);
7107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7108
        return fields;
7109
      }
7110
 
7111
      /**
7112
       * Find the _Fields constant that matches name, or null if its not found.
7113
       */
7114
      public static _Fields findByName(String name) {
7115
        return byName.get(name);
7116
      }
7117
 
7118
      private final short _thriftId;
7119
      private final String _fieldName;
7120
 
7121
      _Fields(short thriftId, String fieldName) {
7122
        _thriftId = thriftId;
7123
        _fieldName = fieldName;
7124
      }
7125
 
7126
      public short getThriftFieldId() {
7127
        return _thriftId;
7128
      }
7129
 
7130
      public String getFieldName() {
7131
        return _fieldName;
7132
      }
7133
    }
7134
 
7135
    // isset id assignments
7136
 
3430 rajveer 7137
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7138
    static {
3430 rajveer 7139
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7140
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7141
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7142
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7143
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7147
    }
7148
 
7149
    public getShipmentInfo_result() {
7150
    }
7151
 
7152
    public getShipmentInfo_result(
648 chandransh 7153
      List<AwbUpdate> success,
7154
      LogisticsServiceException se)
412 ashish 7155
    {
7156
      this();
7157
      this.success = success;
648 chandransh 7158
      this.se = se;
412 ashish 7159
    }
7160
 
7161
    /**
7162
     * Performs a deep copy on <i>other</i>.
7163
     */
7164
    public getShipmentInfo_result(getShipmentInfo_result other) {
7165
      if (other.isSetSuccess()) {
648 chandransh 7166
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7167
        for (AwbUpdate other_element : other.success) {
7168
          __this__success.add(new AwbUpdate(other_element));
7169
        }
7170
        this.success = __this__success;
412 ashish 7171
      }
648 chandransh 7172
      if (other.isSetSe()) {
7173
        this.se = new LogisticsServiceException(other.se);
7174
      }
412 ashish 7175
    }
7176
 
7177
    public getShipmentInfo_result deepCopy() {
7178
      return new getShipmentInfo_result(this);
7179
    }
7180
 
3430 rajveer 7181
    @Override
7182
    public void clear() {
7183
      this.success = null;
7184
      this.se = null;
412 ashish 7185
    }
7186
 
7187
    public int getSuccessSize() {
7188
      return (this.success == null) ? 0 : this.success.size();
7189
    }
7190
 
648 chandransh 7191
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7192
      return (this.success == null) ? null : this.success.iterator();
7193
    }
7194
 
648 chandransh 7195
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7196
      if (this.success == null) {
648 chandransh 7197
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7198
      }
7199
      this.success.add(elem);
7200
    }
7201
 
648 chandransh 7202
    public List<AwbUpdate> getSuccess() {
412 ashish 7203
      return this.success;
7204
    }
7205
 
3430 rajveer 7206
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7207
      this.success = success;
7208
    }
7209
 
7210
    public void unsetSuccess() {
7211
      this.success = null;
7212
    }
7213
 
3430 rajveer 7214
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7215
    public boolean isSetSuccess() {
7216
      return this.success != null;
7217
    }
7218
 
7219
    public void setSuccessIsSet(boolean value) {
7220
      if (!value) {
7221
        this.success = null;
7222
      }
7223
    }
7224
 
648 chandransh 7225
    public LogisticsServiceException getSe() {
7226
      return this.se;
412 ashish 7227
    }
7228
 
3430 rajveer 7229
    public void setSe(LogisticsServiceException se) {
648 chandransh 7230
      this.se = se;
412 ashish 7231
    }
7232
 
648 chandransh 7233
    public void unsetSe() {
7234
      this.se = null;
412 ashish 7235
    }
7236
 
3430 rajveer 7237
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7238
    public boolean isSetSe() {
7239
      return this.se != null;
412 ashish 7240
    }
7241
 
648 chandransh 7242
    public void setSeIsSet(boolean value) {
7243
      if (!value) {
7244
        this.se = null;
412 ashish 7245
      }
7246
    }
7247
 
7248
    public void setFieldValue(_Fields field, Object value) {
7249
      switch (field) {
648 chandransh 7250
      case SUCCESS:
412 ashish 7251
        if (value == null) {
648 chandransh 7252
          unsetSuccess();
412 ashish 7253
        } else {
648 chandransh 7254
          setSuccess((List<AwbUpdate>)value);
412 ashish 7255
        }
7256
        break;
7257
 
648 chandransh 7258
      case SE:
412 ashish 7259
        if (value == null) {
648 chandransh 7260
          unsetSe();
412 ashish 7261
        } else {
648 chandransh 7262
          setSe((LogisticsServiceException)value);
412 ashish 7263
        }
7264
        break;
7265
 
7266
      }
7267
    }
7268
 
7269
    public Object getFieldValue(_Fields field) {
7270
      switch (field) {
648 chandransh 7271
      case SUCCESS:
7272
        return getSuccess();
412 ashish 7273
 
648 chandransh 7274
      case SE:
7275
        return getSe();
412 ashish 7276
 
7277
      }
7278
      throw new IllegalStateException();
7279
    }
7280
 
3430 rajveer 7281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7282
    public boolean isSet(_Fields field) {
7283
      if (field == null) {
7284
        throw new IllegalArgumentException();
7285
      }
412 ashish 7286
 
7287
      switch (field) {
648 chandransh 7288
      case SUCCESS:
7289
        return isSetSuccess();
7290
      case SE:
7291
        return isSetSe();
412 ashish 7292
      }
7293
      throw new IllegalStateException();
7294
    }
7295
 
7296
    @Override
7297
    public boolean equals(Object that) {
7298
      if (that == null)
7299
        return false;
648 chandransh 7300
      if (that instanceof getShipmentInfo_result)
7301
        return this.equals((getShipmentInfo_result)that);
412 ashish 7302
      return false;
7303
    }
7304
 
648 chandransh 7305
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7306
      if (that == null)
7307
        return false;
7308
 
648 chandransh 7309
      boolean this_present_success = true && this.isSetSuccess();
7310
      boolean that_present_success = true && that.isSetSuccess();
7311
      if (this_present_success || that_present_success) {
7312
        if (!(this_present_success && that_present_success))
412 ashish 7313
          return false;
648 chandransh 7314
        if (!this.success.equals(that.success))
412 ashish 7315
          return false;
7316
      }
7317
 
648 chandransh 7318
      boolean this_present_se = true && this.isSetSe();
7319
      boolean that_present_se = true && that.isSetSe();
7320
      if (this_present_se || that_present_se) {
7321
        if (!(this_present_se && that_present_se))
412 ashish 7322
          return false;
648 chandransh 7323
        if (!this.se.equals(that.se))
412 ashish 7324
          return false;
7325
      }
7326
 
7327
      return true;
7328
    }
7329
 
7330
    @Override
7331
    public int hashCode() {
7332
      return 0;
7333
    }
7334
 
648 chandransh 7335
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7336
      if (!getClass().equals(other.getClass())) {
7337
        return getClass().getName().compareTo(other.getClass().getName());
7338
      }
7339
 
7340
      int lastComparison = 0;
648 chandransh 7341
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7342
 
3430 rajveer 7343
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7344
      if (lastComparison != 0) {
7345
        return lastComparison;
7346
      }
3430 rajveer 7347
      if (isSetSuccess()) {
7348
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7349
        if (lastComparison != 0) {
7350
          return lastComparison;
7351
        }
412 ashish 7352
      }
3430 rajveer 7353
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7354
      if (lastComparison != 0) {
7355
        return lastComparison;
7356
      }
3430 rajveer 7357
      if (isSetSe()) {
7358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7359
        if (lastComparison != 0) {
7360
          return lastComparison;
7361
        }
412 ashish 7362
      }
7363
      return 0;
7364
    }
7365
 
3430 rajveer 7366
    public _Fields fieldForId(int fieldId) {
7367
      return _Fields.findByThriftId(fieldId);
7368
    }
7369
 
7370
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7371
      org.apache.thrift.protocol.TField field;
412 ashish 7372
      iprot.readStructBegin();
7373
      while (true)
7374
      {
7375
        field = iprot.readFieldBegin();
3430 rajveer 7376
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7377
          break;
7378
        }
3430 rajveer 7379
        switch (field.id) {
7380
          case 0: // SUCCESS
7381
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7382
              {
7792 anupam.sin 7383
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7384
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7385
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7386
                {
7792 anupam.sin 7387
                  AwbUpdate _elem10; // required
7388
                  _elem10 = new AwbUpdate();
7389
                  _elem10.read(iprot);
7390
                  this.success.add(_elem10);
412 ashish 7391
                }
3430 rajveer 7392
                iprot.readListEnd();
412 ashish 7393
              }
3430 rajveer 7394
            } else { 
7395
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7396
            }
7397
            break;
7398
          case 1: // SE
7399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7400
              this.se = new LogisticsServiceException();
7401
              this.se.read(iprot);
7402
            } else { 
7403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7404
            }
7405
            break;
7406
          default:
7407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7408
        }
3430 rajveer 7409
        iprot.readFieldEnd();
412 ashish 7410
      }
7411
      iprot.readStructEnd();
7412
      validate();
7413
    }
7414
 
3430 rajveer 7415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7416
      oprot.writeStructBegin(STRUCT_DESC);
7417
 
7418
      if (this.isSetSuccess()) {
7419
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7420
        {
3430 rajveer 7421
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7422
          for (AwbUpdate _iter11 : this.success)
412 ashish 7423
          {
7792 anupam.sin 7424
            _iter11.write(oprot);
412 ashish 7425
          }
7426
          oprot.writeListEnd();
7427
        }
7428
        oprot.writeFieldEnd();
648 chandransh 7429
      } else if (this.isSetSe()) {
7430
        oprot.writeFieldBegin(SE_FIELD_DESC);
7431
        this.se.write(oprot);
7432
        oprot.writeFieldEnd();
412 ashish 7433
      }
7434
      oprot.writeFieldStop();
7435
      oprot.writeStructEnd();
7436
    }
7437
 
7438
    @Override
7439
    public String toString() {
648 chandransh 7440
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7441
      boolean first = true;
7442
 
7443
      sb.append("success:");
7444
      if (this.success == null) {
7445
        sb.append("null");
7446
      } else {
7447
        sb.append(this.success);
7448
      }
7449
      first = false;
648 chandransh 7450
      if (!first) sb.append(", ");
7451
      sb.append("se:");
7452
      if (this.se == null) {
7453
        sb.append("null");
7454
      } else {
7455
        sb.append(this.se);
7456
      }
7457
      first = false;
412 ashish 7458
      sb.append(")");
7459
      return sb.toString();
7460
    }
7461
 
3430 rajveer 7462
    public void validate() throws org.apache.thrift.TException {
412 ashish 7463
      // check for required fields
7464
    }
7465
 
3430 rajveer 7466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7467
      try {
7468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7469
      } catch (org.apache.thrift.TException te) {
7470
        throw new java.io.IOException(te);
7471
      }
7472
    }
7473
 
7474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7475
      try {
7476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7477
      } catch (org.apache.thrift.TException te) {
7478
        throw new java.io.IOException(te);
7479
      }
7480
    }
7481
 
412 ashish 7482
  }
7483
 
6643 rajveer 7484
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7486
 
7487
    private static final org.apache.thrift.protocol.TField UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("update", org.apache.thrift.protocol.TType.STRUCT, (short)1);
7488
 
7489
    private AwbUpdate update; // required
7490
 
7491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7493
      UPDATE((short)1, "update");
7494
 
7495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7496
 
7497
      static {
7498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7499
          byName.put(field.getFieldName(), field);
7500
        }
7501
      }
7502
 
7503
      /**
7504
       * Find the _Fields constant that matches fieldId, or null if its not found.
7505
       */
7506
      public static _Fields findByThriftId(int fieldId) {
7507
        switch(fieldId) {
7508
          case 1: // UPDATE
7509
            return UPDATE;
7510
          default:
7511
            return null;
7512
        }
7513
      }
7514
 
7515
      /**
7516
       * Find the _Fields constant that matches fieldId, throwing an exception
7517
       * if it is not found.
7518
       */
7519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7520
        _Fields fields = findByThriftId(fieldId);
7521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7522
        return fields;
7523
      }
7524
 
7525
      /**
7526
       * Find the _Fields constant that matches name, or null if its not found.
7527
       */
7528
      public static _Fields findByName(String name) {
7529
        return byName.get(name);
7530
      }
7531
 
7532
      private final short _thriftId;
7533
      private final String _fieldName;
7534
 
7535
      _Fields(short thriftId, String fieldName) {
7536
        _thriftId = thriftId;
7537
        _fieldName = fieldName;
7538
      }
7539
 
7540
      public short getThriftFieldId() {
7541
        return _thriftId;
7542
      }
7543
 
7544
      public String getFieldName() {
7545
        return _fieldName;
7546
      }
7547
    }
7548
 
7549
    // isset id assignments
7550
 
7551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7552
    static {
7553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7554
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7555
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7558
    }
7559
 
7560
    public storeShipmentInfo_args() {
7561
    }
7562
 
7563
    public storeShipmentInfo_args(
7564
      AwbUpdate update)
7565
    {
7566
      this();
7567
      this.update = update;
7568
    }
7569
 
7570
    /**
7571
     * Performs a deep copy on <i>other</i>.
7572
     */
7573
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7574
      if (other.isSetUpdate()) {
7575
        this.update = new AwbUpdate(other.update);
7576
      }
7577
    }
7578
 
7579
    public storeShipmentInfo_args deepCopy() {
7580
      return new storeShipmentInfo_args(this);
7581
    }
7582
 
7583
    @Override
7584
    public void clear() {
7585
      this.update = null;
7586
    }
7587
 
7588
    public AwbUpdate getUpdate() {
7589
      return this.update;
7590
    }
7591
 
7592
    public void setUpdate(AwbUpdate update) {
7593
      this.update = update;
7594
    }
7595
 
7596
    public void unsetUpdate() {
7597
      this.update = null;
7598
    }
7599
 
7600
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7601
    public boolean isSetUpdate() {
7602
      return this.update != null;
7603
    }
7604
 
7605
    public void setUpdateIsSet(boolean value) {
7606
      if (!value) {
7607
        this.update = null;
7608
      }
7609
    }
7610
 
7611
    public void setFieldValue(_Fields field, Object value) {
7612
      switch (field) {
7613
      case UPDATE:
7614
        if (value == null) {
7615
          unsetUpdate();
7616
        } else {
7617
          setUpdate((AwbUpdate)value);
7618
        }
7619
        break;
7620
 
7621
      }
7622
    }
7623
 
7624
    public Object getFieldValue(_Fields field) {
7625
      switch (field) {
7626
      case UPDATE:
7627
        return getUpdate();
7628
 
7629
      }
7630
      throw new IllegalStateException();
7631
    }
7632
 
7633
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7634
    public boolean isSet(_Fields field) {
7635
      if (field == null) {
7636
        throw new IllegalArgumentException();
7637
      }
7638
 
7639
      switch (field) {
7640
      case UPDATE:
7641
        return isSetUpdate();
7642
      }
7643
      throw new IllegalStateException();
7644
    }
7645
 
7646
    @Override
7647
    public boolean equals(Object that) {
7648
      if (that == null)
7649
        return false;
7650
      if (that instanceof storeShipmentInfo_args)
7651
        return this.equals((storeShipmentInfo_args)that);
7652
      return false;
7653
    }
7654
 
7655
    public boolean equals(storeShipmentInfo_args that) {
7656
      if (that == null)
7657
        return false;
7658
 
7659
      boolean this_present_update = true && this.isSetUpdate();
7660
      boolean that_present_update = true && that.isSetUpdate();
7661
      if (this_present_update || that_present_update) {
7662
        if (!(this_present_update && that_present_update))
7663
          return false;
7664
        if (!this.update.equals(that.update))
7665
          return false;
7666
      }
7667
 
7668
      return true;
7669
    }
7670
 
7671
    @Override
7672
    public int hashCode() {
7673
      return 0;
7674
    }
7675
 
7676
    public int compareTo(storeShipmentInfo_args other) {
7677
      if (!getClass().equals(other.getClass())) {
7678
        return getClass().getName().compareTo(other.getClass().getName());
7679
      }
7680
 
7681
      int lastComparison = 0;
7682
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
7683
 
7684
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
7685
      if (lastComparison != 0) {
7686
        return lastComparison;
7687
      }
7688
      if (isSetUpdate()) {
7689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
7690
        if (lastComparison != 0) {
7691
          return lastComparison;
7692
        }
7693
      }
7694
      return 0;
7695
    }
7696
 
7697
    public _Fields fieldForId(int fieldId) {
7698
      return _Fields.findByThriftId(fieldId);
7699
    }
7700
 
7701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7702
      org.apache.thrift.protocol.TField field;
7703
      iprot.readStructBegin();
7704
      while (true)
7705
      {
7706
        field = iprot.readFieldBegin();
7707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7708
          break;
7709
        }
7710
        switch (field.id) {
7711
          case 1: // UPDATE
7712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7713
              this.update = new AwbUpdate();
7714
              this.update.read(iprot);
7715
            } else { 
7716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7717
            }
7718
            break;
7719
          default:
7720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7721
        }
7722
        iprot.readFieldEnd();
7723
      }
7724
      iprot.readStructEnd();
7725
      validate();
7726
    }
7727
 
7728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7729
      validate();
7730
 
7731
      oprot.writeStructBegin(STRUCT_DESC);
7732
      if (this.update != null) {
7733
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
7734
        this.update.write(oprot);
7735
        oprot.writeFieldEnd();
7736
      }
7737
      oprot.writeFieldStop();
7738
      oprot.writeStructEnd();
7739
    }
7740
 
7741
    @Override
7742
    public String toString() {
7743
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
7744
      boolean first = true;
7745
 
7746
      sb.append("update:");
7747
      if (this.update == null) {
7748
        sb.append("null");
7749
      } else {
7750
        sb.append(this.update);
7751
      }
7752
      first = false;
7753
      sb.append(")");
7754
      return sb.toString();
7755
    }
7756
 
7757
    public void validate() throws org.apache.thrift.TException {
7758
      // check for required fields
7759
    }
7760
 
7761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7762
      try {
7763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7764
      } catch (org.apache.thrift.TException te) {
7765
        throw new java.io.IOException(te);
7766
      }
7767
    }
7768
 
7769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7770
      try {
7771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7772
      } catch (org.apache.thrift.TException te) {
7773
        throw new java.io.IOException(te);
7774
      }
7775
    }
7776
 
7777
  }
7778
 
7779
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
7781
 
7782
    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);
7783
 
7784
    private LogisticsServiceException se; // required
7785
 
7786
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7787
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788
      SE((short)1, "se");
7789
 
7790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7791
 
7792
      static {
7793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7794
          byName.put(field.getFieldName(), field);
7795
        }
7796
      }
7797
 
7798
      /**
7799
       * Find the _Fields constant that matches fieldId, or null if its not found.
7800
       */
7801
      public static _Fields findByThriftId(int fieldId) {
7802
        switch(fieldId) {
7803
          case 1: // SE
7804
            return SE;
7805
          default:
7806
            return null;
7807
        }
7808
      }
7809
 
7810
      /**
7811
       * Find the _Fields constant that matches fieldId, throwing an exception
7812
       * if it is not found.
7813
       */
7814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7815
        _Fields fields = findByThriftId(fieldId);
7816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7817
        return fields;
7818
      }
7819
 
7820
      /**
7821
       * Find the _Fields constant that matches name, or null if its not found.
7822
       */
7823
      public static _Fields findByName(String name) {
7824
        return byName.get(name);
7825
      }
7826
 
7827
      private final short _thriftId;
7828
      private final String _fieldName;
7829
 
7830
      _Fields(short thriftId, String fieldName) {
7831
        _thriftId = thriftId;
7832
        _fieldName = fieldName;
7833
      }
7834
 
7835
      public short getThriftFieldId() {
7836
        return _thriftId;
7837
      }
7838
 
7839
      public String getFieldName() {
7840
        return _fieldName;
7841
      }
7842
    }
7843
 
7844
    // isset id assignments
7845
 
7846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7847
    static {
7848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7849
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
7853
    }
7854
 
7855
    public storeShipmentInfo_result() {
7856
    }
7857
 
7858
    public storeShipmentInfo_result(
7859
      LogisticsServiceException se)
7860
    {
7861
      this();
7862
      this.se = se;
7863
    }
7864
 
7865
    /**
7866
     * Performs a deep copy on <i>other</i>.
7867
     */
7868
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
7869
      if (other.isSetSe()) {
7870
        this.se = new LogisticsServiceException(other.se);
7871
      }
7872
    }
7873
 
7874
    public storeShipmentInfo_result deepCopy() {
7875
      return new storeShipmentInfo_result(this);
7876
    }
7877
 
7878
    @Override
7879
    public void clear() {
7880
      this.se = null;
7881
    }
7882
 
7883
    public LogisticsServiceException getSe() {
7884
      return this.se;
7885
    }
7886
 
7887
    public void setSe(LogisticsServiceException se) {
7888
      this.se = se;
7889
    }
7890
 
7891
    public void unsetSe() {
7892
      this.se = null;
7893
    }
7894
 
7895
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7896
    public boolean isSetSe() {
7897
      return this.se != null;
7898
    }
7899
 
7900
    public void setSeIsSet(boolean value) {
7901
      if (!value) {
7902
        this.se = null;
7903
      }
7904
    }
7905
 
7906
    public void setFieldValue(_Fields field, Object value) {
7907
      switch (field) {
7908
      case SE:
7909
        if (value == null) {
7910
          unsetSe();
7911
        } else {
7912
          setSe((LogisticsServiceException)value);
7913
        }
7914
        break;
7915
 
7916
      }
7917
    }
7918
 
7919
    public Object getFieldValue(_Fields field) {
7920
      switch (field) {
7921
      case SE:
7922
        return getSe();
7923
 
7924
      }
7925
      throw new IllegalStateException();
7926
    }
7927
 
7928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7929
    public boolean isSet(_Fields field) {
7930
      if (field == null) {
7931
        throw new IllegalArgumentException();
7932
      }
7933
 
7934
      switch (field) {
7935
      case SE:
7936
        return isSetSe();
7937
      }
7938
      throw new IllegalStateException();
7939
    }
7940
 
7941
    @Override
7942
    public boolean equals(Object that) {
7943
      if (that == null)
7944
        return false;
7945
      if (that instanceof storeShipmentInfo_result)
7946
        return this.equals((storeShipmentInfo_result)that);
7947
      return false;
7948
    }
7949
 
7950
    public boolean equals(storeShipmentInfo_result that) {
7951
      if (that == null)
7952
        return false;
7953
 
7954
      boolean this_present_se = true && this.isSetSe();
7955
      boolean that_present_se = true && that.isSetSe();
7956
      if (this_present_se || that_present_se) {
7957
        if (!(this_present_se && that_present_se))
7958
          return false;
7959
        if (!this.se.equals(that.se))
7960
          return false;
7961
      }
7962
 
7963
      return true;
7964
    }
7965
 
7966
    @Override
7967
    public int hashCode() {
7968
      return 0;
7969
    }
7970
 
7971
    public int compareTo(storeShipmentInfo_result other) {
7972
      if (!getClass().equals(other.getClass())) {
7973
        return getClass().getName().compareTo(other.getClass().getName());
7974
      }
7975
 
7976
      int lastComparison = 0;
7977
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
7978
 
7979
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7980
      if (lastComparison != 0) {
7981
        return lastComparison;
7982
      }
7983
      if (isSetSe()) {
7984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7985
        if (lastComparison != 0) {
7986
          return lastComparison;
7987
        }
7988
      }
7989
      return 0;
7990
    }
7991
 
7992
    public _Fields fieldForId(int fieldId) {
7993
      return _Fields.findByThriftId(fieldId);
7994
    }
7995
 
7996
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7997
      org.apache.thrift.protocol.TField field;
7998
      iprot.readStructBegin();
7999
      while (true)
8000
      {
8001
        field = iprot.readFieldBegin();
8002
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8003
          break;
8004
        }
8005
        switch (field.id) {
8006
          case 1: // SE
8007
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8008
              this.se = new LogisticsServiceException();
8009
              this.se.read(iprot);
8010
            } else { 
8011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8012
            }
8013
            break;
8014
          default:
8015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8016
        }
8017
        iprot.readFieldEnd();
8018
      }
8019
      iprot.readStructEnd();
8020
      validate();
8021
    }
8022
 
8023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8024
      oprot.writeStructBegin(STRUCT_DESC);
8025
 
8026
      if (this.isSetSe()) {
8027
        oprot.writeFieldBegin(SE_FIELD_DESC);
8028
        this.se.write(oprot);
8029
        oprot.writeFieldEnd();
8030
      }
8031
      oprot.writeFieldStop();
8032
      oprot.writeStructEnd();
8033
    }
8034
 
8035
    @Override
8036
    public String toString() {
8037
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8038
      boolean first = true;
8039
 
8040
      sb.append("se:");
8041
      if (this.se == null) {
8042
        sb.append("null");
8043
      } else {
8044
        sb.append(this.se);
8045
      }
8046
      first = false;
8047
      sb.append(")");
8048
      return sb.toString();
8049
    }
8050
 
8051
    public void validate() throws org.apache.thrift.TException {
8052
      // check for required fields
8053
    }
8054
 
8055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8056
      try {
8057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8058
      } catch (org.apache.thrift.TException te) {
8059
        throw new java.io.IOException(te);
8060
      }
8061
    }
8062
 
8063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8064
      try {
8065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8066
      } catch (org.apache.thrift.TException te) {
8067
        throw new java.io.IOException(te);
8068
      }
8069
    }
8070
 
8071
  }
8072
 
3430 rajveer 8073
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8075
 
3430 rajveer 8076
    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);
8077
    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 8078
 
3430 rajveer 8079
    private long providerId; // required
8080
    private String pinCode; // required
730 chandransh 8081
 
8082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8084
      PROVIDER_ID((short)1, "providerId"),
8085
      PIN_CODE((short)2, "pinCode");
8086
 
8087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8088
 
8089
      static {
8090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8091
          byName.put(field.getFieldName(), field);
8092
        }
8093
      }
8094
 
8095
      /**
8096
       * Find the _Fields constant that matches fieldId, or null if its not found.
8097
       */
8098
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8099
        switch(fieldId) {
8100
          case 1: // PROVIDER_ID
8101
            return PROVIDER_ID;
8102
          case 2: // PIN_CODE
8103
            return PIN_CODE;
8104
          default:
8105
            return null;
8106
        }
730 chandransh 8107
      }
8108
 
8109
      /**
8110
       * Find the _Fields constant that matches fieldId, throwing an exception
8111
       * if it is not found.
8112
       */
8113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8114
        _Fields fields = findByThriftId(fieldId);
8115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8116
        return fields;
8117
      }
8118
 
8119
      /**
8120
       * Find the _Fields constant that matches name, or null if its not found.
8121
       */
8122
      public static _Fields findByName(String name) {
8123
        return byName.get(name);
8124
      }
8125
 
8126
      private final short _thriftId;
8127
      private final String _fieldName;
8128
 
8129
      _Fields(short thriftId, String fieldName) {
8130
        _thriftId = thriftId;
8131
        _fieldName = fieldName;
8132
      }
8133
 
8134
      public short getThriftFieldId() {
8135
        return _thriftId;
8136
      }
8137
 
8138
      public String getFieldName() {
8139
        return _fieldName;
8140
      }
8141
    }
8142
 
8143
    // isset id assignments
8144
    private static final int __PROVIDERID_ISSET_ID = 0;
8145
    private BitSet __isset_bit_vector = new BitSet(1);
8146
 
3430 rajveer 8147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8148
    static {
3430 rajveer 8149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8150
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8152
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8153
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8154
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8155
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8156
    }
8157
 
8158
    public getDestinationCode_args() {
8159
    }
8160
 
8161
    public getDestinationCode_args(
8162
      long providerId,
8163
      String pinCode)
8164
    {
8165
      this();
8166
      this.providerId = providerId;
8167
      setProviderIdIsSet(true);
8168
      this.pinCode = pinCode;
8169
    }
8170
 
8171
    /**
8172
     * Performs a deep copy on <i>other</i>.
8173
     */
8174
    public getDestinationCode_args(getDestinationCode_args other) {
8175
      __isset_bit_vector.clear();
8176
      __isset_bit_vector.or(other.__isset_bit_vector);
8177
      this.providerId = other.providerId;
8178
      if (other.isSetPinCode()) {
8179
        this.pinCode = other.pinCode;
8180
      }
8181
    }
8182
 
8183
    public getDestinationCode_args deepCopy() {
8184
      return new getDestinationCode_args(this);
8185
    }
8186
 
3430 rajveer 8187
    @Override
8188
    public void clear() {
8189
      setProviderIdIsSet(false);
8190
      this.providerId = 0;
8191
      this.pinCode = null;
730 chandransh 8192
    }
8193
 
8194
    public long getProviderId() {
8195
      return this.providerId;
8196
    }
8197
 
3430 rajveer 8198
    public void setProviderId(long providerId) {
730 chandransh 8199
      this.providerId = providerId;
8200
      setProviderIdIsSet(true);
8201
    }
8202
 
8203
    public void unsetProviderId() {
8204
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8205
    }
8206
 
3430 rajveer 8207
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8208
    public boolean isSetProviderId() {
8209
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8210
    }
8211
 
8212
    public void setProviderIdIsSet(boolean value) {
8213
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8214
    }
8215
 
8216
    public String getPinCode() {
8217
      return this.pinCode;
8218
    }
8219
 
3430 rajveer 8220
    public void setPinCode(String pinCode) {
730 chandransh 8221
      this.pinCode = pinCode;
8222
    }
8223
 
8224
    public void unsetPinCode() {
8225
      this.pinCode = null;
8226
    }
8227
 
3430 rajveer 8228
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8229
    public boolean isSetPinCode() {
8230
      return this.pinCode != null;
8231
    }
8232
 
8233
    public void setPinCodeIsSet(boolean value) {
8234
      if (!value) {
8235
        this.pinCode = null;
8236
      }
8237
    }
8238
 
8239
    public void setFieldValue(_Fields field, Object value) {
8240
      switch (field) {
8241
      case PROVIDER_ID:
8242
        if (value == null) {
8243
          unsetProviderId();
8244
        } else {
8245
          setProviderId((Long)value);
8246
        }
8247
        break;
8248
 
8249
      case PIN_CODE:
8250
        if (value == null) {
8251
          unsetPinCode();
8252
        } else {
8253
          setPinCode((String)value);
8254
        }
8255
        break;
8256
 
8257
      }
8258
    }
8259
 
8260
    public Object getFieldValue(_Fields field) {
8261
      switch (field) {
8262
      case PROVIDER_ID:
3430 rajveer 8263
        return Long.valueOf(getProviderId());
730 chandransh 8264
 
8265
      case PIN_CODE:
8266
        return getPinCode();
8267
 
8268
      }
8269
      throw new IllegalStateException();
8270
    }
8271
 
3430 rajveer 8272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8273
    public boolean isSet(_Fields field) {
8274
      if (field == null) {
8275
        throw new IllegalArgumentException();
8276
      }
730 chandransh 8277
 
8278
      switch (field) {
8279
      case PROVIDER_ID:
8280
        return isSetProviderId();
8281
      case PIN_CODE:
8282
        return isSetPinCode();
8283
      }
8284
      throw new IllegalStateException();
8285
    }
8286
 
8287
    @Override
8288
    public boolean equals(Object that) {
8289
      if (that == null)
8290
        return false;
8291
      if (that instanceof getDestinationCode_args)
8292
        return this.equals((getDestinationCode_args)that);
8293
      return false;
8294
    }
8295
 
8296
    public boolean equals(getDestinationCode_args that) {
8297
      if (that == null)
8298
        return false;
8299
 
8300
      boolean this_present_providerId = true;
8301
      boolean that_present_providerId = true;
8302
      if (this_present_providerId || that_present_providerId) {
8303
        if (!(this_present_providerId && that_present_providerId))
8304
          return false;
8305
        if (this.providerId != that.providerId)
8306
          return false;
8307
      }
8308
 
8309
      boolean this_present_pinCode = true && this.isSetPinCode();
8310
      boolean that_present_pinCode = true && that.isSetPinCode();
8311
      if (this_present_pinCode || that_present_pinCode) {
8312
        if (!(this_present_pinCode && that_present_pinCode))
8313
          return false;
8314
        if (!this.pinCode.equals(that.pinCode))
8315
          return false;
8316
      }
8317
 
8318
      return true;
8319
    }
8320
 
8321
    @Override
8322
    public int hashCode() {
8323
      return 0;
8324
    }
8325
 
8326
    public int compareTo(getDestinationCode_args other) {
8327
      if (!getClass().equals(other.getClass())) {
8328
        return getClass().getName().compareTo(other.getClass().getName());
8329
      }
8330
 
8331
      int lastComparison = 0;
8332
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8333
 
3430 rajveer 8334
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8335
      if (lastComparison != 0) {
8336
        return lastComparison;
8337
      }
3430 rajveer 8338
      if (isSetProviderId()) {
8339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8340
        if (lastComparison != 0) {
8341
          return lastComparison;
8342
        }
730 chandransh 8343
      }
3430 rajveer 8344
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8345
      if (lastComparison != 0) {
8346
        return lastComparison;
8347
      }
3430 rajveer 8348
      if (isSetPinCode()) {
8349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8350
        if (lastComparison != 0) {
8351
          return lastComparison;
8352
        }
730 chandransh 8353
      }
8354
      return 0;
8355
    }
8356
 
3430 rajveer 8357
    public _Fields fieldForId(int fieldId) {
8358
      return _Fields.findByThriftId(fieldId);
8359
    }
8360
 
8361
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8362
      org.apache.thrift.protocol.TField field;
730 chandransh 8363
      iprot.readStructBegin();
8364
      while (true)
8365
      {
8366
        field = iprot.readFieldBegin();
3430 rajveer 8367
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8368
          break;
8369
        }
3430 rajveer 8370
        switch (field.id) {
8371
          case 1: // PROVIDER_ID
8372
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8373
              this.providerId = iprot.readI64();
8374
              setProviderIdIsSet(true);
8375
            } else { 
8376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8377
            }
8378
            break;
8379
          case 2: // PIN_CODE
8380
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8381
              this.pinCode = iprot.readString();
8382
            } else { 
8383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8384
            }
8385
            break;
8386
          default:
8387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8388
        }
3430 rajveer 8389
        iprot.readFieldEnd();
730 chandransh 8390
      }
8391
      iprot.readStructEnd();
8392
      validate();
8393
    }
8394
 
3430 rajveer 8395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8396
      validate();
8397
 
8398
      oprot.writeStructBegin(STRUCT_DESC);
8399
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8400
      oprot.writeI64(this.providerId);
8401
      oprot.writeFieldEnd();
8402
      if (this.pinCode != null) {
8403
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8404
        oprot.writeString(this.pinCode);
8405
        oprot.writeFieldEnd();
8406
      }
8407
      oprot.writeFieldStop();
8408
      oprot.writeStructEnd();
8409
    }
8410
 
8411
    @Override
8412
    public String toString() {
8413
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8414
      boolean first = true;
8415
 
8416
      sb.append("providerId:");
8417
      sb.append(this.providerId);
8418
      first = false;
8419
      if (!first) sb.append(", ");
8420
      sb.append("pinCode:");
8421
      if (this.pinCode == null) {
8422
        sb.append("null");
8423
      } else {
8424
        sb.append(this.pinCode);
8425
      }
8426
      first = false;
8427
      sb.append(")");
8428
      return sb.toString();
8429
    }
8430
 
3430 rajveer 8431
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8432
      // check for required fields
8433
    }
8434
 
3430 rajveer 8435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8436
      try {
8437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8438
      } catch (org.apache.thrift.TException te) {
8439
        throw new java.io.IOException(te);
8440
      }
8441
    }
8442
 
8443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8444
      try {
8445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8446
      } catch (org.apache.thrift.TException te) {
8447
        throw new java.io.IOException(te);
8448
      }
8449
    }
8450
 
730 chandransh 8451
  }
8452
 
3430 rajveer 8453
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8455
 
3430 rajveer 8456
    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);
8457
    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 8458
 
3430 rajveer 8459
    private String success; // required
8460
    private LogisticsServiceException se; // required
730 chandransh 8461
 
8462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8464
      SUCCESS((short)0, "success"),
8465
      SE((short)1, "se");
8466
 
8467
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8468
 
8469
      static {
8470
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8471
          byName.put(field.getFieldName(), field);
8472
        }
8473
      }
8474
 
8475
      /**
8476
       * Find the _Fields constant that matches fieldId, or null if its not found.
8477
       */
8478
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8479
        switch(fieldId) {
8480
          case 0: // SUCCESS
8481
            return SUCCESS;
8482
          case 1: // SE
8483
            return SE;
8484
          default:
8485
            return null;
8486
        }
730 chandransh 8487
      }
8488
 
8489
      /**
8490
       * Find the _Fields constant that matches fieldId, throwing an exception
8491
       * if it is not found.
8492
       */
8493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8494
        _Fields fields = findByThriftId(fieldId);
8495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8496
        return fields;
8497
      }
8498
 
8499
      /**
8500
       * Find the _Fields constant that matches name, or null if its not found.
8501
       */
8502
      public static _Fields findByName(String name) {
8503
        return byName.get(name);
8504
      }
8505
 
8506
      private final short _thriftId;
8507
      private final String _fieldName;
8508
 
8509
      _Fields(short thriftId, String fieldName) {
8510
        _thriftId = thriftId;
8511
        _fieldName = fieldName;
8512
      }
8513
 
8514
      public short getThriftFieldId() {
8515
        return _thriftId;
8516
      }
8517
 
8518
      public String getFieldName() {
8519
        return _fieldName;
8520
      }
8521
    }
8522
 
8523
    // isset id assignments
8524
 
3430 rajveer 8525
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8526
    static {
3430 rajveer 8527
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8528
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8530
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8534
    }
8535
 
8536
    public getDestinationCode_result() {
8537
    }
8538
 
8539
    public getDestinationCode_result(
8540
      String success,
8541
      LogisticsServiceException se)
8542
    {
8543
      this();
8544
      this.success = success;
8545
      this.se = se;
8546
    }
8547
 
8548
    /**
8549
     * Performs a deep copy on <i>other</i>.
8550
     */
8551
    public getDestinationCode_result(getDestinationCode_result other) {
8552
      if (other.isSetSuccess()) {
8553
        this.success = other.success;
8554
      }
8555
      if (other.isSetSe()) {
8556
        this.se = new LogisticsServiceException(other.se);
8557
      }
8558
    }
8559
 
8560
    public getDestinationCode_result deepCopy() {
8561
      return new getDestinationCode_result(this);
8562
    }
8563
 
3430 rajveer 8564
    @Override
8565
    public void clear() {
8566
      this.success = null;
8567
      this.se = null;
730 chandransh 8568
    }
8569
 
8570
    public String getSuccess() {
8571
      return this.success;
8572
    }
8573
 
3430 rajveer 8574
    public void setSuccess(String success) {
730 chandransh 8575
      this.success = success;
8576
    }
8577
 
8578
    public void unsetSuccess() {
8579
      this.success = null;
8580
    }
8581
 
3430 rajveer 8582
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8583
    public boolean isSetSuccess() {
8584
      return this.success != null;
8585
    }
8586
 
8587
    public void setSuccessIsSet(boolean value) {
8588
      if (!value) {
8589
        this.success = null;
8590
      }
8591
    }
8592
 
8593
    public LogisticsServiceException getSe() {
8594
      return this.se;
8595
    }
8596
 
3430 rajveer 8597
    public void setSe(LogisticsServiceException se) {
730 chandransh 8598
      this.se = se;
8599
    }
8600
 
8601
    public void unsetSe() {
8602
      this.se = null;
8603
    }
8604
 
3430 rajveer 8605
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8606
    public boolean isSetSe() {
8607
      return this.se != null;
8608
    }
8609
 
8610
    public void setSeIsSet(boolean value) {
8611
      if (!value) {
8612
        this.se = null;
8613
      }
8614
    }
8615
 
8616
    public void setFieldValue(_Fields field, Object value) {
8617
      switch (field) {
8618
      case SUCCESS:
8619
        if (value == null) {
8620
          unsetSuccess();
8621
        } else {
8622
          setSuccess((String)value);
8623
        }
8624
        break;
8625
 
8626
      case SE:
8627
        if (value == null) {
8628
          unsetSe();
8629
        } else {
8630
          setSe((LogisticsServiceException)value);
8631
        }
8632
        break;
8633
 
8634
      }
8635
    }
8636
 
8637
    public Object getFieldValue(_Fields field) {
8638
      switch (field) {
8639
      case SUCCESS:
8640
        return getSuccess();
8641
 
8642
      case SE:
8643
        return getSe();
8644
 
8645
      }
8646
      throw new IllegalStateException();
8647
    }
8648
 
3430 rajveer 8649
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8650
    public boolean isSet(_Fields field) {
8651
      if (field == null) {
8652
        throw new IllegalArgumentException();
8653
      }
730 chandransh 8654
 
8655
      switch (field) {
8656
      case SUCCESS:
8657
        return isSetSuccess();
8658
      case SE:
8659
        return isSetSe();
8660
      }
8661
      throw new IllegalStateException();
8662
    }
8663
 
8664
    @Override
8665
    public boolean equals(Object that) {
8666
      if (that == null)
8667
        return false;
8668
      if (that instanceof getDestinationCode_result)
8669
        return this.equals((getDestinationCode_result)that);
8670
      return false;
8671
    }
8672
 
8673
    public boolean equals(getDestinationCode_result that) {
8674
      if (that == null)
8675
        return false;
8676
 
8677
      boolean this_present_success = true && this.isSetSuccess();
8678
      boolean that_present_success = true && that.isSetSuccess();
8679
      if (this_present_success || that_present_success) {
8680
        if (!(this_present_success && that_present_success))
8681
          return false;
8682
        if (!this.success.equals(that.success))
8683
          return false;
8684
      }
8685
 
8686
      boolean this_present_se = true && this.isSetSe();
8687
      boolean that_present_se = true && that.isSetSe();
8688
      if (this_present_se || that_present_se) {
8689
        if (!(this_present_se && that_present_se))
8690
          return false;
8691
        if (!this.se.equals(that.se))
8692
          return false;
8693
      }
8694
 
8695
      return true;
8696
    }
8697
 
8698
    @Override
8699
    public int hashCode() {
8700
      return 0;
8701
    }
8702
 
8703
    public int compareTo(getDestinationCode_result other) {
8704
      if (!getClass().equals(other.getClass())) {
8705
        return getClass().getName().compareTo(other.getClass().getName());
8706
      }
8707
 
8708
      int lastComparison = 0;
8709
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
8710
 
3430 rajveer 8711
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 8712
      if (lastComparison != 0) {
8713
        return lastComparison;
8714
      }
3430 rajveer 8715
      if (isSetSuccess()) {
8716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8717
        if (lastComparison != 0) {
8718
          return lastComparison;
8719
        }
730 chandransh 8720
      }
3430 rajveer 8721
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 8722
      if (lastComparison != 0) {
8723
        return lastComparison;
8724
      }
3430 rajveer 8725
      if (isSetSe()) {
8726
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8727
        if (lastComparison != 0) {
8728
          return lastComparison;
8729
        }
730 chandransh 8730
      }
8731
      return 0;
8732
    }
8733
 
3430 rajveer 8734
    public _Fields fieldForId(int fieldId) {
8735
      return _Fields.findByThriftId(fieldId);
8736
    }
8737
 
8738
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8739
      org.apache.thrift.protocol.TField field;
730 chandransh 8740
      iprot.readStructBegin();
8741
      while (true)
8742
      {
8743
        field = iprot.readFieldBegin();
3430 rajveer 8744
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8745
          break;
8746
        }
3430 rajveer 8747
        switch (field.id) {
8748
          case 0: // SUCCESS
8749
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8750
              this.success = iprot.readString();
8751
            } else { 
8752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8753
            }
8754
            break;
8755
          case 1: // SE
8756
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8757
              this.se = new LogisticsServiceException();
8758
              this.se.read(iprot);
8759
            } else { 
8760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8761
            }
8762
            break;
8763
          default:
8764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8765
        }
3430 rajveer 8766
        iprot.readFieldEnd();
730 chandransh 8767
      }
8768
      iprot.readStructEnd();
8769
      validate();
8770
    }
8771
 
3430 rajveer 8772
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8773
      oprot.writeStructBegin(STRUCT_DESC);
8774
 
8775
      if (this.isSetSuccess()) {
8776
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8777
        oprot.writeString(this.success);
8778
        oprot.writeFieldEnd();
8779
      } else if (this.isSetSe()) {
8780
        oprot.writeFieldBegin(SE_FIELD_DESC);
8781
        this.se.write(oprot);
8782
        oprot.writeFieldEnd();
8783
      }
8784
      oprot.writeFieldStop();
8785
      oprot.writeStructEnd();
8786
    }
8787
 
8788
    @Override
8789
    public String toString() {
8790
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
8791
      boolean first = true;
8792
 
8793
      sb.append("success:");
8794
      if (this.success == null) {
8795
        sb.append("null");
8796
      } else {
8797
        sb.append(this.success);
8798
      }
8799
      first = false;
8800
      if (!first) sb.append(", ");
8801
      sb.append("se:");
8802
      if (this.se == null) {
8803
        sb.append("null");
8804
      } else {
8805
        sb.append(this.se);
8806
      }
8807
      first = false;
8808
      sb.append(")");
8809
      return sb.toString();
8810
    }
8811
 
3430 rajveer 8812
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8813
      // check for required fields
8814
    }
8815
 
3430 rajveer 8816
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8817
      try {
8818
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8819
      } catch (org.apache.thrift.TException te) {
8820
        throw new java.io.IOException(te);
8821
      }
8822
    }
8823
 
8824
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8825
      try {
8826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8827
      } catch (org.apache.thrift.TException te) {
8828
        throw new java.io.IOException(te);
8829
      }
8830
    }
8831
 
730 chandransh 8832
  }
8833
 
3430 rajveer 8834
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
8835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 8836
 
3430 rajveer 8837
    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);
8838
    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 8839
 
3430 rajveer 8840
    private long providerId; // required
8841
    private String type; // required
1139 chandransh 8842
 
8843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 8845
      PROVIDER_ID((short)1, "providerId"),
8846
      TYPE((short)2, "type");
1139 chandransh 8847
 
8848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8849
 
8850
      static {
8851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8852
          byName.put(field.getFieldName(), field);
8853
        }
8854
      }
8855
 
8856
      /**
8857
       * Find the _Fields constant that matches fieldId, or null if its not found.
8858
       */
8859
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8860
        switch(fieldId) {
8861
          case 1: // PROVIDER_ID
8862
            return PROVIDER_ID;
8863
          case 2: // TYPE
8864
            return TYPE;
8865
          default:
8866
            return null;
8867
        }
1139 chandransh 8868
      }
8869
 
8870
      /**
8871
       * Find the _Fields constant that matches fieldId, throwing an exception
8872
       * if it is not found.
8873
       */
8874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8875
        _Fields fields = findByThriftId(fieldId);
8876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8877
        return fields;
8878
      }
8879
 
8880
      /**
8881
       * Find the _Fields constant that matches name, or null if its not found.
8882
       */
8883
      public static _Fields findByName(String name) {
8884
        return byName.get(name);
8885
      }
8886
 
8887
      private final short _thriftId;
8888
      private final String _fieldName;
8889
 
8890
      _Fields(short thriftId, String fieldName) {
8891
        _thriftId = thriftId;
8892
        _fieldName = fieldName;
8893
      }
8894
 
8895
      public short getThriftFieldId() {
8896
        return _thriftId;
8897
      }
8898
 
8899
      public String getFieldName() {
8900
        return _fieldName;
8901
      }
8902
    }
8903
 
8904
    // isset id assignments
8905
    private static final int __PROVIDERID_ISSET_ID = 0;
8906
    private BitSet __isset_bit_vector = new BitSet(1);
8907
 
3430 rajveer 8908
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 8909
    static {
3430 rajveer 8910
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8911
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8912
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8913
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8915
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8916
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 8917
    }
8918
 
8919
    public getFreeAwbCount_args() {
8920
    }
8921
 
8922
    public getFreeAwbCount_args(
3103 chandransh 8923
      long providerId,
8924
      String type)
1139 chandransh 8925
    {
8926
      this();
8927
      this.providerId = providerId;
8928
      setProviderIdIsSet(true);
3103 chandransh 8929
      this.type = type;
1139 chandransh 8930
    }
8931
 
8932
    /**
8933
     * Performs a deep copy on <i>other</i>.
8934
     */
8935
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
8936
      __isset_bit_vector.clear();
8937
      __isset_bit_vector.or(other.__isset_bit_vector);
8938
      this.providerId = other.providerId;
3103 chandransh 8939
      if (other.isSetType()) {
8940
        this.type = other.type;
8941
      }
1139 chandransh 8942
    }
8943
 
8944
    public getFreeAwbCount_args deepCopy() {
8945
      return new getFreeAwbCount_args(this);
8946
    }
8947
 
3430 rajveer 8948
    @Override
8949
    public void clear() {
8950
      setProviderIdIsSet(false);
8951
      this.providerId = 0;
8952
      this.type = null;
1139 chandransh 8953
    }
8954
 
8955
    public long getProviderId() {
8956
      return this.providerId;
8957
    }
8958
 
3430 rajveer 8959
    public void setProviderId(long providerId) {
1139 chandransh 8960
      this.providerId = providerId;
8961
      setProviderIdIsSet(true);
8962
    }
8963
 
8964
    public void unsetProviderId() {
8965
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8966
    }
8967
 
3430 rajveer 8968
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 8969
    public boolean isSetProviderId() {
8970
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8971
    }
8972
 
8973
    public void setProviderIdIsSet(boolean value) {
8974
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8975
    }
8976
 
3103 chandransh 8977
    public String getType() {
8978
      return this.type;
8979
    }
8980
 
3430 rajveer 8981
    public void setType(String type) {
3103 chandransh 8982
      this.type = type;
8983
    }
8984
 
8985
    public void unsetType() {
8986
      this.type = null;
8987
    }
8988
 
3430 rajveer 8989
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 8990
    public boolean isSetType() {
8991
      return this.type != null;
8992
    }
8993
 
8994
    public void setTypeIsSet(boolean value) {
8995
      if (!value) {
8996
        this.type = null;
8997
      }
8998
    }
8999
 
1139 chandransh 9000
    public void setFieldValue(_Fields field, Object value) {
9001
      switch (field) {
9002
      case PROVIDER_ID:
9003
        if (value == null) {
9004
          unsetProviderId();
9005
        } else {
9006
          setProviderId((Long)value);
9007
        }
9008
        break;
9009
 
3103 chandransh 9010
      case TYPE:
9011
        if (value == null) {
9012
          unsetType();
9013
        } else {
9014
          setType((String)value);
9015
        }
9016
        break;
9017
 
1139 chandransh 9018
      }
9019
    }
9020
 
9021
    public Object getFieldValue(_Fields field) {
9022
      switch (field) {
9023
      case PROVIDER_ID:
3430 rajveer 9024
        return Long.valueOf(getProviderId());
1139 chandransh 9025
 
3103 chandransh 9026
      case TYPE:
9027
        return getType();
9028
 
1139 chandransh 9029
      }
9030
      throw new IllegalStateException();
9031
    }
9032
 
3430 rajveer 9033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9034
    public boolean isSet(_Fields field) {
9035
      if (field == null) {
9036
        throw new IllegalArgumentException();
9037
      }
1139 chandransh 9038
 
9039
      switch (field) {
9040
      case PROVIDER_ID:
9041
        return isSetProviderId();
3103 chandransh 9042
      case TYPE:
9043
        return isSetType();
1139 chandransh 9044
      }
9045
      throw new IllegalStateException();
9046
    }
9047
 
9048
    @Override
9049
    public boolean equals(Object that) {
9050
      if (that == null)
9051
        return false;
9052
      if (that instanceof getFreeAwbCount_args)
9053
        return this.equals((getFreeAwbCount_args)that);
9054
      return false;
9055
    }
9056
 
9057
    public boolean equals(getFreeAwbCount_args that) {
9058
      if (that == null)
9059
        return false;
9060
 
9061
      boolean this_present_providerId = true;
9062
      boolean that_present_providerId = true;
9063
      if (this_present_providerId || that_present_providerId) {
9064
        if (!(this_present_providerId && that_present_providerId))
9065
          return false;
9066
        if (this.providerId != that.providerId)
9067
          return false;
9068
      }
9069
 
3103 chandransh 9070
      boolean this_present_type = true && this.isSetType();
9071
      boolean that_present_type = true && that.isSetType();
9072
      if (this_present_type || that_present_type) {
9073
        if (!(this_present_type && that_present_type))
9074
          return false;
9075
        if (!this.type.equals(that.type))
9076
          return false;
9077
      }
9078
 
1139 chandransh 9079
      return true;
9080
    }
9081
 
9082
    @Override
9083
    public int hashCode() {
9084
      return 0;
9085
    }
9086
 
9087
    public int compareTo(getFreeAwbCount_args other) {
9088
      if (!getClass().equals(other.getClass())) {
9089
        return getClass().getName().compareTo(other.getClass().getName());
9090
      }
9091
 
9092
      int lastComparison = 0;
9093
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9094
 
3430 rajveer 9095
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9096
      if (lastComparison != 0) {
9097
        return lastComparison;
9098
      }
3430 rajveer 9099
      if (isSetProviderId()) {
9100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9101
        if (lastComparison != 0) {
9102
          return lastComparison;
9103
        }
1139 chandransh 9104
      }
3430 rajveer 9105
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9106
      if (lastComparison != 0) {
9107
        return lastComparison;
9108
      }
3430 rajveer 9109
      if (isSetType()) {
9110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9111
        if (lastComparison != 0) {
9112
          return lastComparison;
9113
        }
3103 chandransh 9114
      }
1139 chandransh 9115
      return 0;
9116
    }
9117
 
3430 rajveer 9118
    public _Fields fieldForId(int fieldId) {
9119
      return _Fields.findByThriftId(fieldId);
9120
    }
9121
 
9122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9123
      org.apache.thrift.protocol.TField field;
1139 chandransh 9124
      iprot.readStructBegin();
9125
      while (true)
9126
      {
9127
        field = iprot.readFieldBegin();
3430 rajveer 9128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9129
          break;
9130
        }
3430 rajveer 9131
        switch (field.id) {
9132
          case 1: // PROVIDER_ID
9133
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9134
              this.providerId = iprot.readI64();
9135
              setProviderIdIsSet(true);
9136
            } else { 
9137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9138
            }
9139
            break;
9140
          case 2: // TYPE
9141
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9142
              this.type = iprot.readString();
9143
            } else { 
9144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9145
            }
9146
            break;
9147
          default:
9148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9149
        }
3430 rajveer 9150
        iprot.readFieldEnd();
1139 chandransh 9151
      }
9152
      iprot.readStructEnd();
9153
      validate();
9154
    }
9155
 
3430 rajveer 9156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9157
      validate();
9158
 
9159
      oprot.writeStructBegin(STRUCT_DESC);
9160
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9161
      oprot.writeI64(this.providerId);
9162
      oprot.writeFieldEnd();
3103 chandransh 9163
      if (this.type != null) {
9164
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9165
        oprot.writeString(this.type);
9166
        oprot.writeFieldEnd();
9167
      }
1139 chandransh 9168
      oprot.writeFieldStop();
9169
      oprot.writeStructEnd();
9170
    }
9171
 
9172
    @Override
9173
    public String toString() {
9174
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9175
      boolean first = true;
9176
 
9177
      sb.append("providerId:");
9178
      sb.append(this.providerId);
9179
      first = false;
3103 chandransh 9180
      if (!first) sb.append(", ");
9181
      sb.append("type:");
9182
      if (this.type == null) {
9183
        sb.append("null");
9184
      } else {
9185
        sb.append(this.type);
9186
      }
9187
      first = false;
1139 chandransh 9188
      sb.append(")");
9189
      return sb.toString();
9190
    }
9191
 
3430 rajveer 9192
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9193
      // check for required fields
9194
    }
9195
 
3430 rajveer 9196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9197
      try {
9198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9199
      } catch (org.apache.thrift.TException te) {
9200
        throw new java.io.IOException(te);
9201
      }
9202
    }
9203
 
9204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9205
      try {
9206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9207
      } catch (org.apache.thrift.TException te) {
9208
        throw new java.io.IOException(te);
9209
      }
9210
    }
9211
 
1139 chandransh 9212
  }
9213
 
3430 rajveer 9214
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9216
 
3430 rajveer 9217
    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 9218
 
3430 rajveer 9219
    private long success; // required
1139 chandransh 9220
 
9221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9223
      SUCCESS((short)0, "success");
9224
 
9225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9226
 
9227
      static {
9228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9229
          byName.put(field.getFieldName(), field);
9230
        }
9231
      }
9232
 
9233
      /**
9234
       * Find the _Fields constant that matches fieldId, or null if its not found.
9235
       */
9236
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9237
        switch(fieldId) {
9238
          case 0: // SUCCESS
9239
            return SUCCESS;
9240
          default:
9241
            return null;
9242
        }
1139 chandransh 9243
      }
9244
 
9245
      /**
9246
       * Find the _Fields constant that matches fieldId, throwing an exception
9247
       * if it is not found.
9248
       */
9249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9250
        _Fields fields = findByThriftId(fieldId);
9251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9252
        return fields;
9253
      }
9254
 
9255
      /**
9256
       * Find the _Fields constant that matches name, or null if its not found.
9257
       */
9258
      public static _Fields findByName(String name) {
9259
        return byName.get(name);
9260
      }
9261
 
9262
      private final short _thriftId;
9263
      private final String _fieldName;
9264
 
9265
      _Fields(short thriftId, String fieldName) {
9266
        _thriftId = thriftId;
9267
        _fieldName = fieldName;
9268
      }
9269
 
9270
      public short getThriftFieldId() {
9271
        return _thriftId;
9272
      }
9273
 
9274
      public String getFieldName() {
9275
        return _fieldName;
9276
      }
9277
    }
9278
 
9279
    // isset id assignments
9280
    private static final int __SUCCESS_ISSET_ID = 0;
9281
    private BitSet __isset_bit_vector = new BitSet(1);
9282
 
3430 rajveer 9283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9284
    static {
3430 rajveer 9285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9286
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9287
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9290
    }
9291
 
9292
    public getFreeAwbCount_result() {
9293
    }
9294
 
9295
    public getFreeAwbCount_result(
9296
      long success)
9297
    {
9298
      this();
9299
      this.success = success;
9300
      setSuccessIsSet(true);
9301
    }
9302
 
9303
    /**
9304
     * Performs a deep copy on <i>other</i>.
9305
     */
9306
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9307
      __isset_bit_vector.clear();
9308
      __isset_bit_vector.or(other.__isset_bit_vector);
9309
      this.success = other.success;
9310
    }
9311
 
9312
    public getFreeAwbCount_result deepCopy() {
9313
      return new getFreeAwbCount_result(this);
9314
    }
9315
 
3430 rajveer 9316
    @Override
9317
    public void clear() {
9318
      setSuccessIsSet(false);
9319
      this.success = 0;
1139 chandransh 9320
    }
9321
 
9322
    public long getSuccess() {
9323
      return this.success;
9324
    }
9325
 
3430 rajveer 9326
    public void setSuccess(long success) {
1139 chandransh 9327
      this.success = success;
9328
      setSuccessIsSet(true);
9329
    }
9330
 
9331
    public void unsetSuccess() {
9332
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9333
    }
9334
 
3430 rajveer 9335
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9336
    public boolean isSetSuccess() {
9337
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9338
    }
9339
 
9340
    public void setSuccessIsSet(boolean value) {
9341
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9342
    }
9343
 
9344
    public void setFieldValue(_Fields field, Object value) {
9345
      switch (field) {
9346
      case SUCCESS:
9347
        if (value == null) {
9348
          unsetSuccess();
9349
        } else {
9350
          setSuccess((Long)value);
9351
        }
9352
        break;
9353
 
9354
      }
9355
    }
9356
 
9357
    public Object getFieldValue(_Fields field) {
9358
      switch (field) {
9359
      case SUCCESS:
3430 rajveer 9360
        return Long.valueOf(getSuccess());
1139 chandransh 9361
 
9362
      }
9363
      throw new IllegalStateException();
9364
    }
9365
 
3430 rajveer 9366
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9367
    public boolean isSet(_Fields field) {
9368
      if (field == null) {
9369
        throw new IllegalArgumentException();
9370
      }
1139 chandransh 9371
 
9372
      switch (field) {
9373
      case SUCCESS:
9374
        return isSetSuccess();
9375
      }
9376
      throw new IllegalStateException();
9377
    }
9378
 
9379
    @Override
9380
    public boolean equals(Object that) {
9381
      if (that == null)
9382
        return false;
9383
      if (that instanceof getFreeAwbCount_result)
9384
        return this.equals((getFreeAwbCount_result)that);
9385
      return false;
9386
    }
9387
 
9388
    public boolean equals(getFreeAwbCount_result that) {
9389
      if (that == null)
9390
        return false;
9391
 
9392
      boolean this_present_success = true;
9393
      boolean that_present_success = true;
9394
      if (this_present_success || that_present_success) {
9395
        if (!(this_present_success && that_present_success))
9396
          return false;
9397
        if (this.success != that.success)
9398
          return false;
9399
      }
9400
 
9401
      return true;
9402
    }
9403
 
9404
    @Override
9405
    public int hashCode() {
9406
      return 0;
9407
    }
9408
 
9409
    public int compareTo(getFreeAwbCount_result other) {
9410
      if (!getClass().equals(other.getClass())) {
9411
        return getClass().getName().compareTo(other.getClass().getName());
9412
      }
9413
 
9414
      int lastComparison = 0;
9415
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9416
 
3430 rajveer 9417
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9418
      if (lastComparison != 0) {
9419
        return lastComparison;
9420
      }
3430 rajveer 9421
      if (isSetSuccess()) {
9422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9423
        if (lastComparison != 0) {
9424
          return lastComparison;
9425
        }
1139 chandransh 9426
      }
9427
      return 0;
9428
    }
9429
 
3430 rajveer 9430
    public _Fields fieldForId(int fieldId) {
9431
      return _Fields.findByThriftId(fieldId);
9432
    }
9433
 
9434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9435
      org.apache.thrift.protocol.TField field;
1139 chandransh 9436
      iprot.readStructBegin();
9437
      while (true)
9438
      {
9439
        field = iprot.readFieldBegin();
3430 rajveer 9440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9441
          break;
9442
        }
3430 rajveer 9443
        switch (field.id) {
9444
          case 0: // SUCCESS
9445
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9446
              this.success = iprot.readI64();
9447
              setSuccessIsSet(true);
9448
            } else { 
9449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9450
            }
9451
            break;
9452
          default:
9453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9454
        }
3430 rajveer 9455
        iprot.readFieldEnd();
1139 chandransh 9456
      }
9457
      iprot.readStructEnd();
9458
      validate();
9459
    }
9460
 
3430 rajveer 9461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9462
      oprot.writeStructBegin(STRUCT_DESC);
9463
 
9464
      if (this.isSetSuccess()) {
9465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9466
        oprot.writeI64(this.success);
9467
        oprot.writeFieldEnd();
9468
      }
9469
      oprot.writeFieldStop();
9470
      oprot.writeStructEnd();
9471
    }
9472
 
9473
    @Override
9474
    public String toString() {
9475
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9476
      boolean first = true;
9477
 
9478
      sb.append("success:");
9479
      sb.append(this.success);
9480
      first = false;
9481
      sb.append(")");
9482
      return sb.toString();
9483
    }
9484
 
3430 rajveer 9485
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9486
      // check for required fields
9487
    }
9488
 
3430 rajveer 9489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9490
      try {
9491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9492
      } catch (org.apache.thrift.TException te) {
9493
        throw new java.io.IOException(te);
9494
      }
9495
    }
9496
 
9497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9498
      try {
9499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9500
      } catch (org.apache.thrift.TException te) {
9501
        throw new java.io.IOException(te);
9502
      }
9503
    }
9504
 
1139 chandransh 9505
  }
9506
 
3430 rajveer 9507
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9509
 
3430 rajveer 9510
    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);
9511
    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 9512
 
3430 rajveer 9513
    private long fromDate; // required
9514
    private long toDate; // required
1730 ankur.sing 9515
 
9516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9518
      FROM_DATE((short)1, "fromDate"),
9519
      TO_DATE((short)2, "toDate");
9520
 
9521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9522
 
9523
      static {
9524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9525
          byName.put(field.getFieldName(), field);
9526
        }
9527
      }
9528
 
9529
      /**
9530
       * Find the _Fields constant that matches fieldId, or null if its not found.
9531
       */
9532
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9533
        switch(fieldId) {
9534
          case 1: // FROM_DATE
9535
            return FROM_DATE;
9536
          case 2: // TO_DATE
9537
            return TO_DATE;
9538
          default:
9539
            return null;
9540
        }
1730 ankur.sing 9541
      }
9542
 
9543
      /**
9544
       * Find the _Fields constant that matches fieldId, throwing an exception
9545
       * if it is not found.
9546
       */
9547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9548
        _Fields fields = findByThriftId(fieldId);
9549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9550
        return fields;
9551
      }
9552
 
9553
      /**
9554
       * Find the _Fields constant that matches name, or null if its not found.
9555
       */
9556
      public static _Fields findByName(String name) {
9557
        return byName.get(name);
9558
      }
9559
 
9560
      private final short _thriftId;
9561
      private final String _fieldName;
9562
 
9563
      _Fields(short thriftId, String fieldName) {
9564
        _thriftId = thriftId;
9565
        _fieldName = fieldName;
9566
      }
9567
 
9568
      public short getThriftFieldId() {
9569
        return _thriftId;
9570
      }
9571
 
9572
      public String getFieldName() {
9573
        return _fieldName;
9574
      }
9575
    }
9576
 
9577
    // isset id assignments
9578
    private static final int __FROMDATE_ISSET_ID = 0;
9579
    private static final int __TODATE_ISSET_ID = 1;
9580
    private BitSet __isset_bit_vector = new BitSet(2);
9581
 
3430 rajveer 9582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9583
    static {
3430 rajveer 9584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9585
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9586
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9587
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9591
    }
9592
 
9593
    public getHolidays_args() {
9594
    }
9595
 
9596
    public getHolidays_args(
9597
      long fromDate,
9598
      long toDate)
9599
    {
9600
      this();
9601
      this.fromDate = fromDate;
9602
      setFromDateIsSet(true);
9603
      this.toDate = toDate;
9604
      setToDateIsSet(true);
9605
    }
9606
 
9607
    /**
9608
     * Performs a deep copy on <i>other</i>.
9609
     */
9610
    public getHolidays_args(getHolidays_args other) {
9611
      __isset_bit_vector.clear();
9612
      __isset_bit_vector.or(other.__isset_bit_vector);
9613
      this.fromDate = other.fromDate;
9614
      this.toDate = other.toDate;
9615
    }
9616
 
9617
    public getHolidays_args deepCopy() {
9618
      return new getHolidays_args(this);
9619
    }
9620
 
3430 rajveer 9621
    @Override
9622
    public void clear() {
9623
      setFromDateIsSet(false);
9624
      this.fromDate = 0;
9625
      setToDateIsSet(false);
9626
      this.toDate = 0;
1730 ankur.sing 9627
    }
9628
 
9629
    public long getFromDate() {
9630
      return this.fromDate;
9631
    }
9632
 
3430 rajveer 9633
    public void setFromDate(long fromDate) {
1730 ankur.sing 9634
      this.fromDate = fromDate;
9635
      setFromDateIsSet(true);
9636
    }
9637
 
9638
    public void unsetFromDate() {
9639
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9640
    }
9641
 
3430 rajveer 9642
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9643
    public boolean isSetFromDate() {
9644
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9645
    }
9646
 
9647
    public void setFromDateIsSet(boolean value) {
9648
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9649
    }
9650
 
9651
    public long getToDate() {
9652
      return this.toDate;
9653
    }
9654
 
3430 rajveer 9655
    public void setToDate(long toDate) {
1730 ankur.sing 9656
      this.toDate = toDate;
9657
      setToDateIsSet(true);
9658
    }
9659
 
9660
    public void unsetToDate() {
9661
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
9662
    }
9663
 
3430 rajveer 9664
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9665
    public boolean isSetToDate() {
9666
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
9667
    }
9668
 
9669
    public void setToDateIsSet(boolean value) {
9670
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
9671
    }
9672
 
9673
    public void setFieldValue(_Fields field, Object value) {
9674
      switch (field) {
9675
      case FROM_DATE:
9676
        if (value == null) {
9677
          unsetFromDate();
9678
        } else {
9679
          setFromDate((Long)value);
9680
        }
9681
        break;
9682
 
9683
      case TO_DATE:
9684
        if (value == null) {
9685
          unsetToDate();
9686
        } else {
9687
          setToDate((Long)value);
9688
        }
9689
        break;
9690
 
9691
      }
9692
    }
9693
 
9694
    public Object getFieldValue(_Fields field) {
9695
      switch (field) {
9696
      case FROM_DATE:
3430 rajveer 9697
        return Long.valueOf(getFromDate());
1730 ankur.sing 9698
 
9699
      case TO_DATE:
3430 rajveer 9700
        return Long.valueOf(getToDate());
1730 ankur.sing 9701
 
9702
      }
9703
      throw new IllegalStateException();
9704
    }
9705
 
3430 rajveer 9706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9707
    public boolean isSet(_Fields field) {
9708
      if (field == null) {
9709
        throw new IllegalArgumentException();
9710
      }
1730 ankur.sing 9711
 
9712
      switch (field) {
9713
      case FROM_DATE:
9714
        return isSetFromDate();
9715
      case TO_DATE:
9716
        return isSetToDate();
9717
      }
9718
      throw new IllegalStateException();
9719
    }
9720
 
9721
    @Override
9722
    public boolean equals(Object that) {
9723
      if (that == null)
9724
        return false;
9725
      if (that instanceof getHolidays_args)
9726
        return this.equals((getHolidays_args)that);
9727
      return false;
9728
    }
9729
 
9730
    public boolean equals(getHolidays_args that) {
9731
      if (that == null)
9732
        return false;
9733
 
9734
      boolean this_present_fromDate = true;
9735
      boolean that_present_fromDate = true;
9736
      if (this_present_fromDate || that_present_fromDate) {
9737
        if (!(this_present_fromDate && that_present_fromDate))
9738
          return false;
9739
        if (this.fromDate != that.fromDate)
9740
          return false;
9741
      }
9742
 
9743
      boolean this_present_toDate = true;
9744
      boolean that_present_toDate = true;
9745
      if (this_present_toDate || that_present_toDate) {
9746
        if (!(this_present_toDate && that_present_toDate))
9747
          return false;
9748
        if (this.toDate != that.toDate)
9749
          return false;
9750
      }
9751
 
9752
      return true;
9753
    }
9754
 
9755
    @Override
9756
    public int hashCode() {
9757
      return 0;
9758
    }
9759
 
9760
    public int compareTo(getHolidays_args other) {
9761
      if (!getClass().equals(other.getClass())) {
9762
        return getClass().getName().compareTo(other.getClass().getName());
9763
      }
9764
 
9765
      int lastComparison = 0;
9766
      getHolidays_args typedOther = (getHolidays_args)other;
9767
 
3430 rajveer 9768
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 9769
      if (lastComparison != 0) {
9770
        return lastComparison;
9771
      }
3430 rajveer 9772
      if (isSetFromDate()) {
9773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
9774
        if (lastComparison != 0) {
9775
          return lastComparison;
9776
        }
1730 ankur.sing 9777
      }
3430 rajveer 9778
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 9779
      if (lastComparison != 0) {
9780
        return lastComparison;
9781
      }
3430 rajveer 9782
      if (isSetToDate()) {
9783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
9784
        if (lastComparison != 0) {
9785
          return lastComparison;
9786
        }
1730 ankur.sing 9787
      }
9788
      return 0;
9789
    }
9790
 
3430 rajveer 9791
    public _Fields fieldForId(int fieldId) {
9792
      return _Fields.findByThriftId(fieldId);
9793
    }
9794
 
9795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9796
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 9797
      iprot.readStructBegin();
9798
      while (true)
9799
      {
9800
        field = iprot.readFieldBegin();
3430 rajveer 9801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 9802
          break;
9803
        }
3430 rajveer 9804
        switch (field.id) {
9805
          case 1: // FROM_DATE
9806
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9807
              this.fromDate = iprot.readI64();
9808
              setFromDateIsSet(true);
9809
            } else { 
9810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9811
            }
9812
            break;
9813
          case 2: // TO_DATE
9814
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9815
              this.toDate = iprot.readI64();
9816
              setToDateIsSet(true);
9817
            } else { 
9818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9819
            }
9820
            break;
9821
          default:
9822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 9823
        }
3430 rajveer 9824
        iprot.readFieldEnd();
1730 ankur.sing 9825
      }
9826
      iprot.readStructEnd();
9827
      validate();
9828
    }
9829
 
3430 rajveer 9830
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 9831
      validate();
9832
 
9833
      oprot.writeStructBegin(STRUCT_DESC);
9834
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
9835
      oprot.writeI64(this.fromDate);
9836
      oprot.writeFieldEnd();
9837
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
9838
      oprot.writeI64(this.toDate);
9839
      oprot.writeFieldEnd();
9840
      oprot.writeFieldStop();
9841
      oprot.writeStructEnd();
9842
    }
9843
 
9844
    @Override
9845
    public String toString() {
9846
      StringBuilder sb = new StringBuilder("getHolidays_args(");
9847
      boolean first = true;
9848
 
9849
      sb.append("fromDate:");
9850
      sb.append(this.fromDate);
9851
      first = false;
9852
      if (!first) sb.append(", ");
9853
      sb.append("toDate:");
9854
      sb.append(this.toDate);
9855
      first = false;
9856
      sb.append(")");
9857
      return sb.toString();
9858
    }
9859
 
3430 rajveer 9860
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 9861
      // check for required fields
9862
    }
9863
 
3430 rajveer 9864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9865
      try {
9866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9867
      } catch (org.apache.thrift.TException te) {
9868
        throw new java.io.IOException(te);
9869
      }
9870
    }
9871
 
9872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9873
      try {
9874
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9875
      } catch (org.apache.thrift.TException te) {
9876
        throw new java.io.IOException(te);
9877
      }
9878
    }
9879
 
1730 ankur.sing 9880
  }
9881
 
3430 rajveer 9882
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
9883
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 9884
 
3430 rajveer 9885
    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 9886
 
3430 rajveer 9887
    private List<Long> success; // required
1730 ankur.sing 9888
 
9889
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9890
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9891
      SUCCESS((short)0, "success");
9892
 
9893
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9894
 
9895
      static {
9896
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9897
          byName.put(field.getFieldName(), field);
9898
        }
9899
      }
9900
 
9901
      /**
9902
       * Find the _Fields constant that matches fieldId, or null if its not found.
9903
       */
9904
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9905
        switch(fieldId) {
9906
          case 0: // SUCCESS
9907
            return SUCCESS;
9908
          default:
9909
            return null;
9910
        }
1730 ankur.sing 9911
      }
9912
 
9913
      /**
9914
       * Find the _Fields constant that matches fieldId, throwing an exception
9915
       * if it is not found.
9916
       */
9917
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9918
        _Fields fields = findByThriftId(fieldId);
9919
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9920
        return fields;
9921
      }
9922
 
9923
      /**
9924
       * Find the _Fields constant that matches name, or null if its not found.
9925
       */
9926
      public static _Fields findByName(String name) {
9927
        return byName.get(name);
9928
      }
9929
 
9930
      private final short _thriftId;
9931
      private final String _fieldName;
9932
 
9933
      _Fields(short thriftId, String fieldName) {
9934
        _thriftId = thriftId;
9935
        _fieldName = fieldName;
9936
      }
9937
 
9938
      public short getThriftFieldId() {
9939
        return _thriftId;
9940
      }
9941
 
9942
      public String getFieldName() {
9943
        return _fieldName;
9944
      }
9945
    }
9946
 
9947
    // isset id assignments
9948
 
3430 rajveer 9949
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9950
    static {
3430 rajveer 9951
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9952
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9953
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9954
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9955
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9956
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 9957
    }
9958
 
9959
    public getHolidays_result() {
9960
    }
9961
 
9962
    public getHolidays_result(
9963
      List<Long> success)
9964
    {
9965
      this();
9966
      this.success = success;
9967
    }
9968
 
9969
    /**
9970
     * Performs a deep copy on <i>other</i>.
9971
     */
9972
    public getHolidays_result(getHolidays_result other) {
9973
      if (other.isSetSuccess()) {
9974
        List<Long> __this__success = new ArrayList<Long>();
9975
        for (Long other_element : other.success) {
9976
          __this__success.add(other_element);
9977
        }
9978
        this.success = __this__success;
9979
      }
9980
    }
9981
 
9982
    public getHolidays_result deepCopy() {
9983
      return new getHolidays_result(this);
9984
    }
9985
 
3430 rajveer 9986
    @Override
9987
    public void clear() {
9988
      this.success = null;
1730 ankur.sing 9989
    }
9990
 
9991
    public int getSuccessSize() {
9992
      return (this.success == null) ? 0 : this.success.size();
9993
    }
9994
 
9995
    public java.util.Iterator<Long> getSuccessIterator() {
9996
      return (this.success == null) ? null : this.success.iterator();
9997
    }
9998
 
9999
    public void addToSuccess(long elem) {
10000
      if (this.success == null) {
10001
        this.success = new ArrayList<Long>();
10002
      }
10003
      this.success.add(elem);
10004
    }
10005
 
10006
    public List<Long> getSuccess() {
10007
      return this.success;
10008
    }
10009
 
3430 rajveer 10010
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10011
      this.success = success;
10012
    }
10013
 
10014
    public void unsetSuccess() {
10015
      this.success = null;
10016
    }
10017
 
3430 rajveer 10018
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10019
    public boolean isSetSuccess() {
10020
      return this.success != null;
10021
    }
10022
 
10023
    public void setSuccessIsSet(boolean value) {
10024
      if (!value) {
10025
        this.success = null;
10026
      }
10027
    }
10028
 
10029
    public void setFieldValue(_Fields field, Object value) {
10030
      switch (field) {
10031
      case SUCCESS:
10032
        if (value == null) {
10033
          unsetSuccess();
10034
        } else {
10035
          setSuccess((List<Long>)value);
10036
        }
10037
        break;
10038
 
10039
      }
10040
    }
10041
 
10042
    public Object getFieldValue(_Fields field) {
10043
      switch (field) {
10044
      case SUCCESS:
10045
        return getSuccess();
10046
 
10047
      }
10048
      throw new IllegalStateException();
10049
    }
10050
 
3430 rajveer 10051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10052
    public boolean isSet(_Fields field) {
10053
      if (field == null) {
10054
        throw new IllegalArgumentException();
10055
      }
1730 ankur.sing 10056
 
10057
      switch (field) {
10058
      case SUCCESS:
10059
        return isSetSuccess();
10060
      }
10061
      throw new IllegalStateException();
10062
    }
10063
 
10064
    @Override
10065
    public boolean equals(Object that) {
10066
      if (that == null)
10067
        return false;
10068
      if (that instanceof getHolidays_result)
10069
        return this.equals((getHolidays_result)that);
10070
      return false;
10071
    }
10072
 
10073
    public boolean equals(getHolidays_result that) {
10074
      if (that == null)
10075
        return false;
10076
 
10077
      boolean this_present_success = true && this.isSetSuccess();
10078
      boolean that_present_success = true && that.isSetSuccess();
10079
      if (this_present_success || that_present_success) {
10080
        if (!(this_present_success && that_present_success))
10081
          return false;
10082
        if (!this.success.equals(that.success))
10083
          return false;
10084
      }
10085
 
10086
      return true;
10087
    }
10088
 
10089
    @Override
10090
    public int hashCode() {
10091
      return 0;
10092
    }
10093
 
10094
    public int compareTo(getHolidays_result other) {
10095
      if (!getClass().equals(other.getClass())) {
10096
        return getClass().getName().compareTo(other.getClass().getName());
10097
      }
10098
 
10099
      int lastComparison = 0;
10100
      getHolidays_result typedOther = (getHolidays_result)other;
10101
 
3430 rajveer 10102
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10103
      if (lastComparison != 0) {
10104
        return lastComparison;
10105
      }
3430 rajveer 10106
      if (isSetSuccess()) {
10107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10108
        if (lastComparison != 0) {
10109
          return lastComparison;
10110
        }
1730 ankur.sing 10111
      }
10112
      return 0;
10113
    }
10114
 
3430 rajveer 10115
    public _Fields fieldForId(int fieldId) {
10116
      return _Fields.findByThriftId(fieldId);
10117
    }
10118
 
10119
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10120
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10121
      iprot.readStructBegin();
10122
      while (true)
10123
      {
10124
        field = iprot.readFieldBegin();
3430 rajveer 10125
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10126
          break;
10127
        }
3430 rajveer 10128
        switch (field.id) {
10129
          case 0: // SUCCESS
10130
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10131
              {
7792 anupam.sin 10132
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10133
                this.success = new ArrayList<Long>(_list12.size);
10134
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10135
                {
7792 anupam.sin 10136
                  long _elem14; // required
10137
                  _elem14 = iprot.readI64();
10138
                  this.success.add(_elem14);
1730 ankur.sing 10139
                }
3430 rajveer 10140
                iprot.readListEnd();
1730 ankur.sing 10141
              }
3430 rajveer 10142
            } else { 
10143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10144
            }
10145
            break;
10146
          default:
10147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10148
        }
3430 rajveer 10149
        iprot.readFieldEnd();
1730 ankur.sing 10150
      }
10151
      iprot.readStructEnd();
10152
      validate();
10153
    }
10154
 
3430 rajveer 10155
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10156
      oprot.writeStructBegin(STRUCT_DESC);
10157
 
10158
      if (this.isSetSuccess()) {
10159
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10160
        {
3430 rajveer 10161
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10162
          for (long _iter15 : this.success)
1730 ankur.sing 10163
          {
7792 anupam.sin 10164
            oprot.writeI64(_iter15);
1730 ankur.sing 10165
          }
10166
          oprot.writeListEnd();
10167
        }
10168
        oprot.writeFieldEnd();
10169
      }
10170
      oprot.writeFieldStop();
10171
      oprot.writeStructEnd();
10172
    }
10173
 
10174
    @Override
10175
    public String toString() {
10176
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10177
      boolean first = true;
10178
 
10179
      sb.append("success:");
10180
      if (this.success == null) {
10181
        sb.append("null");
10182
      } else {
10183
        sb.append(this.success);
10184
      }
10185
      first = false;
10186
      sb.append(")");
10187
      return sb.toString();
10188
    }
10189
 
3430 rajveer 10190
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10191
      // check for required fields
10192
    }
10193
 
3430 rajveer 10194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10195
      try {
10196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10197
      } catch (org.apache.thrift.TException te) {
10198
        throw new java.io.IOException(te);
10199
      }
10200
    }
10201
 
10202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10203
      try {
10204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10205
      } catch (org.apache.thrift.TException te) {
10206
        throw new java.io.IOException(te);
10207
      }
10208
    }
10209
 
1730 ankur.sing 10210
  }
10211
 
4934 amit.gupta 10212
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10214
 
10215
    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);
10216
    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);
10217
    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);
10218
 
10219
    private long catalogItemId; // required
10220
    private String destination_pin; // required
10221
    private DeliveryType type; // required
10222
 
10223
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10224
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10225
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10226
      DESTINATION_PIN((short)2, "destination_pin"),
10227
      /**
10228
       * 
10229
       * @see DeliveryType
10230
       */
10231
      TYPE((short)3, "type");
10232
 
10233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10234
 
10235
      static {
10236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10237
          byName.put(field.getFieldName(), field);
10238
        }
10239
      }
10240
 
10241
      /**
10242
       * Find the _Fields constant that matches fieldId, or null if its not found.
10243
       */
10244
      public static _Fields findByThriftId(int fieldId) {
10245
        switch(fieldId) {
10246
          case 1: // CATALOG_ITEM_ID
10247
            return CATALOG_ITEM_ID;
10248
          case 2: // DESTINATION_PIN
10249
            return DESTINATION_PIN;
10250
          case 3: // TYPE
10251
            return TYPE;
10252
          default:
10253
            return null;
10254
        }
10255
      }
10256
 
10257
      /**
10258
       * Find the _Fields constant that matches fieldId, throwing an exception
10259
       * if it is not found.
10260
       */
10261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10262
        _Fields fields = findByThriftId(fieldId);
10263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10264
        return fields;
10265
      }
10266
 
10267
      /**
10268
       * Find the _Fields constant that matches name, or null if its not found.
10269
       */
10270
      public static _Fields findByName(String name) {
10271
        return byName.get(name);
10272
      }
10273
 
10274
      private final short _thriftId;
10275
      private final String _fieldName;
10276
 
10277
      _Fields(short thriftId, String fieldName) {
10278
        _thriftId = thriftId;
10279
        _fieldName = fieldName;
10280
      }
10281
 
10282
      public short getThriftFieldId() {
10283
        return _thriftId;
10284
      }
10285
 
10286
      public String getFieldName() {
10287
        return _fieldName;
10288
      }
10289
    }
10290
 
10291
    // isset id assignments
10292
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10293
    private BitSet __isset_bit_vector = new BitSet(1);
10294
 
10295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10296
    static {
10297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10298
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10299
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10300
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10301
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10302
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10303
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10306
    }
10307
 
10308
    public getEntityLogisticsEstimation_args() {
10309
    }
10310
 
10311
    public getEntityLogisticsEstimation_args(
10312
      long catalogItemId,
10313
      String destination_pin,
10314
      DeliveryType type)
10315
    {
10316
      this();
10317
      this.catalogItemId = catalogItemId;
10318
      setCatalogItemIdIsSet(true);
10319
      this.destination_pin = destination_pin;
10320
      this.type = type;
10321
    }
10322
 
10323
    /**
10324
     * Performs a deep copy on <i>other</i>.
10325
     */
10326
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10327
      __isset_bit_vector.clear();
10328
      __isset_bit_vector.or(other.__isset_bit_vector);
10329
      this.catalogItemId = other.catalogItemId;
10330
      if (other.isSetDestination_pin()) {
10331
        this.destination_pin = other.destination_pin;
10332
      }
10333
      if (other.isSetType()) {
10334
        this.type = other.type;
10335
      }
10336
    }
10337
 
10338
    public getEntityLogisticsEstimation_args deepCopy() {
10339
      return new getEntityLogisticsEstimation_args(this);
10340
    }
10341
 
10342
    @Override
10343
    public void clear() {
10344
      setCatalogItemIdIsSet(false);
10345
      this.catalogItemId = 0;
10346
      this.destination_pin = null;
10347
      this.type = null;
10348
    }
10349
 
10350
    public long getCatalogItemId() {
10351
      return this.catalogItemId;
10352
    }
10353
 
10354
    public void setCatalogItemId(long catalogItemId) {
10355
      this.catalogItemId = catalogItemId;
10356
      setCatalogItemIdIsSet(true);
10357
    }
10358
 
10359
    public void unsetCatalogItemId() {
10360
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10361
    }
10362
 
10363
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10364
    public boolean isSetCatalogItemId() {
10365
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10366
    }
10367
 
10368
    public void setCatalogItemIdIsSet(boolean value) {
10369
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10370
    }
10371
 
10372
    public String getDestination_pin() {
10373
      return this.destination_pin;
10374
    }
10375
 
10376
    public void setDestination_pin(String destination_pin) {
10377
      this.destination_pin = destination_pin;
10378
    }
10379
 
10380
    public void unsetDestination_pin() {
10381
      this.destination_pin = null;
10382
    }
10383
 
10384
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10385
    public boolean isSetDestination_pin() {
10386
      return this.destination_pin != null;
10387
    }
10388
 
10389
    public void setDestination_pinIsSet(boolean value) {
10390
      if (!value) {
10391
        this.destination_pin = null;
10392
      }
10393
    }
10394
 
10395
    /**
10396
     * 
10397
     * @see DeliveryType
10398
     */
10399
    public DeliveryType getType() {
10400
      return this.type;
10401
    }
10402
 
10403
    /**
10404
     * 
10405
     * @see DeliveryType
10406
     */
10407
    public void setType(DeliveryType type) {
10408
      this.type = type;
10409
    }
10410
 
10411
    public void unsetType() {
10412
      this.type = null;
10413
    }
10414
 
10415
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10416
    public boolean isSetType() {
10417
      return this.type != null;
10418
    }
10419
 
10420
    public void setTypeIsSet(boolean value) {
10421
      if (!value) {
10422
        this.type = null;
10423
      }
10424
    }
10425
 
10426
    public void setFieldValue(_Fields field, Object value) {
10427
      switch (field) {
10428
      case CATALOG_ITEM_ID:
10429
        if (value == null) {
10430
          unsetCatalogItemId();
10431
        } else {
10432
          setCatalogItemId((Long)value);
10433
        }
10434
        break;
10435
 
10436
      case DESTINATION_PIN:
10437
        if (value == null) {
10438
          unsetDestination_pin();
10439
        } else {
10440
          setDestination_pin((String)value);
10441
        }
10442
        break;
10443
 
10444
      case TYPE:
10445
        if (value == null) {
10446
          unsetType();
10447
        } else {
10448
          setType((DeliveryType)value);
10449
        }
10450
        break;
10451
 
10452
      }
10453
    }
10454
 
10455
    public Object getFieldValue(_Fields field) {
10456
      switch (field) {
10457
      case CATALOG_ITEM_ID:
10458
        return Long.valueOf(getCatalogItemId());
10459
 
10460
      case DESTINATION_PIN:
10461
        return getDestination_pin();
10462
 
10463
      case TYPE:
10464
        return getType();
10465
 
10466
      }
10467
      throw new IllegalStateException();
10468
    }
10469
 
10470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10471
    public boolean isSet(_Fields field) {
10472
      if (field == null) {
10473
        throw new IllegalArgumentException();
10474
      }
10475
 
10476
      switch (field) {
10477
      case CATALOG_ITEM_ID:
10478
        return isSetCatalogItemId();
10479
      case DESTINATION_PIN:
10480
        return isSetDestination_pin();
10481
      case TYPE:
10482
        return isSetType();
10483
      }
10484
      throw new IllegalStateException();
10485
    }
10486
 
10487
    @Override
10488
    public boolean equals(Object that) {
10489
      if (that == null)
10490
        return false;
10491
      if (that instanceof getEntityLogisticsEstimation_args)
10492
        return this.equals((getEntityLogisticsEstimation_args)that);
10493
      return false;
10494
    }
10495
 
10496
    public boolean equals(getEntityLogisticsEstimation_args that) {
10497
      if (that == null)
10498
        return false;
10499
 
10500
      boolean this_present_catalogItemId = true;
10501
      boolean that_present_catalogItemId = true;
10502
      if (this_present_catalogItemId || that_present_catalogItemId) {
10503
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10504
          return false;
10505
        if (this.catalogItemId != that.catalogItemId)
10506
          return false;
10507
      }
10508
 
10509
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10510
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10511
      if (this_present_destination_pin || that_present_destination_pin) {
10512
        if (!(this_present_destination_pin && that_present_destination_pin))
10513
          return false;
10514
        if (!this.destination_pin.equals(that.destination_pin))
10515
          return false;
10516
      }
10517
 
10518
      boolean this_present_type = true && this.isSetType();
10519
      boolean that_present_type = true && that.isSetType();
10520
      if (this_present_type || that_present_type) {
10521
        if (!(this_present_type && that_present_type))
10522
          return false;
10523
        if (!this.type.equals(that.type))
10524
          return false;
10525
      }
10526
 
10527
      return true;
10528
    }
10529
 
10530
    @Override
10531
    public int hashCode() {
10532
      return 0;
10533
    }
10534
 
10535
    public int compareTo(getEntityLogisticsEstimation_args other) {
10536
      if (!getClass().equals(other.getClass())) {
10537
        return getClass().getName().compareTo(other.getClass().getName());
10538
      }
10539
 
10540
      int lastComparison = 0;
10541
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10542
 
10543
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10544
      if (lastComparison != 0) {
10545
        return lastComparison;
10546
      }
10547
      if (isSetCatalogItemId()) {
10548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10549
        if (lastComparison != 0) {
10550
          return lastComparison;
10551
        }
10552
      }
10553
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10554
      if (lastComparison != 0) {
10555
        return lastComparison;
10556
      }
10557
      if (isSetDestination_pin()) {
10558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10559
        if (lastComparison != 0) {
10560
          return lastComparison;
10561
        }
10562
      }
10563
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10564
      if (lastComparison != 0) {
10565
        return lastComparison;
10566
      }
10567
      if (isSetType()) {
10568
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10569
        if (lastComparison != 0) {
10570
          return lastComparison;
10571
        }
10572
      }
10573
      return 0;
10574
    }
10575
 
10576
    public _Fields fieldForId(int fieldId) {
10577
      return _Fields.findByThriftId(fieldId);
10578
    }
10579
 
10580
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10581
      org.apache.thrift.protocol.TField field;
10582
      iprot.readStructBegin();
10583
      while (true)
10584
      {
10585
        field = iprot.readFieldBegin();
10586
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10587
          break;
10588
        }
10589
        switch (field.id) {
10590
          case 1: // CATALOG_ITEM_ID
10591
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10592
              this.catalogItemId = iprot.readI64();
10593
              setCatalogItemIdIsSet(true);
10594
            } else { 
10595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10596
            }
10597
            break;
10598
          case 2: // DESTINATION_PIN
10599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10600
              this.destination_pin = iprot.readString();
10601
            } else { 
10602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10603
            }
10604
            break;
10605
          case 3: // TYPE
10606
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10607
              this.type = DeliveryType.findByValue(iprot.readI32());
10608
            } else { 
10609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10610
            }
10611
            break;
10612
          default:
10613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10614
        }
10615
        iprot.readFieldEnd();
10616
      }
10617
      iprot.readStructEnd();
10618
      validate();
10619
    }
10620
 
10621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10622
      validate();
10623
 
10624
      oprot.writeStructBegin(STRUCT_DESC);
10625
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10626
      oprot.writeI64(this.catalogItemId);
10627
      oprot.writeFieldEnd();
10628
      if (this.destination_pin != null) {
10629
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10630
        oprot.writeString(this.destination_pin);
10631
        oprot.writeFieldEnd();
10632
      }
10633
      if (this.type != null) {
10634
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10635
        oprot.writeI32(this.type.getValue());
10636
        oprot.writeFieldEnd();
10637
      }
10638
      oprot.writeFieldStop();
10639
      oprot.writeStructEnd();
10640
    }
10641
 
10642
    @Override
10643
    public String toString() {
10644
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10645
      boolean first = true;
10646
 
10647
      sb.append("catalogItemId:");
10648
      sb.append(this.catalogItemId);
10649
      first = false;
10650
      if (!first) sb.append(", ");
10651
      sb.append("destination_pin:");
10652
      if (this.destination_pin == null) {
10653
        sb.append("null");
10654
      } else {
10655
        sb.append(this.destination_pin);
10656
      }
10657
      first = false;
10658
      if (!first) sb.append(", ");
10659
      sb.append("type:");
10660
      if (this.type == null) {
10661
        sb.append("null");
10662
      } else {
10663
        sb.append(this.type);
10664
      }
10665
      first = false;
10666
      sb.append(")");
10667
      return sb.toString();
10668
    }
10669
 
10670
    public void validate() throws org.apache.thrift.TException {
10671
      // check for required fields
10672
    }
10673
 
10674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10675
      try {
10676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10677
      } catch (org.apache.thrift.TException te) {
10678
        throw new java.io.IOException(te);
10679
      }
10680
    }
10681
 
10682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10683
      try {
10684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10685
      } catch (org.apache.thrift.TException te) {
10686
        throw new java.io.IOException(te);
10687
      }
10688
    }
10689
 
10690
  }
10691
 
10692
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
10693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
10694
 
10695
    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);
10696
    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);
10697
 
9840 amit.gupta 10698
    private List<ItemText> success; // required
4934 amit.gupta 10699
    private LogisticsServiceException se; // required
10700
 
10701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10703
      SUCCESS((short)0, "success"),
10704
      SE((short)1, "se");
10705
 
10706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10707
 
10708
      static {
10709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10710
          byName.put(field.getFieldName(), field);
10711
        }
10712
      }
10713
 
10714
      /**
10715
       * Find the _Fields constant that matches fieldId, or null if its not found.
10716
       */
10717
      public static _Fields findByThriftId(int fieldId) {
10718
        switch(fieldId) {
10719
          case 0: // SUCCESS
10720
            return SUCCESS;
10721
          case 1: // SE
10722
            return SE;
10723
          default:
10724
            return null;
10725
        }
10726
      }
10727
 
10728
      /**
10729
       * Find the _Fields constant that matches fieldId, throwing an exception
10730
       * if it is not found.
10731
       */
10732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10733
        _Fields fields = findByThriftId(fieldId);
10734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10735
        return fields;
10736
      }
10737
 
10738
      /**
10739
       * Find the _Fields constant that matches name, or null if its not found.
10740
       */
10741
      public static _Fields findByName(String name) {
10742
        return byName.get(name);
10743
      }
10744
 
10745
      private final short _thriftId;
10746
      private final String _fieldName;
10747
 
10748
      _Fields(short thriftId, String fieldName) {
10749
        _thriftId = thriftId;
10750
        _fieldName = fieldName;
10751
      }
10752
 
10753
      public short getThriftFieldId() {
10754
        return _thriftId;
10755
      }
10756
 
10757
      public String getFieldName() {
10758
        return _fieldName;
10759
      }
10760
    }
10761
 
10762
    // isset id assignments
10763
 
10764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10765
    static {
10766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10768
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 10769
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 10770
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
10774
    }
10775
 
10776
    public getEntityLogisticsEstimation_result() {
10777
    }
10778
 
10779
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 10780
      List<ItemText> success,
4934 amit.gupta 10781
      LogisticsServiceException se)
10782
    {
10783
      this();
10784
      this.success = success;
10785
      this.se = se;
10786
    }
10787
 
10788
    /**
10789
     * Performs a deep copy on <i>other</i>.
10790
     */
10791
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
10792
      if (other.isSetSuccess()) {
9840 amit.gupta 10793
        List<ItemText> __this__success = new ArrayList<ItemText>();
10794
        for (ItemText other_element : other.success) {
10795
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 10796
        }
10797
        this.success = __this__success;
10798
      }
10799
      if (other.isSetSe()) {
10800
        this.se = new LogisticsServiceException(other.se);
10801
      }
10802
    }
10803
 
10804
    public getEntityLogisticsEstimation_result deepCopy() {
10805
      return new getEntityLogisticsEstimation_result(this);
10806
    }
10807
 
10808
    @Override
10809
    public void clear() {
10810
      this.success = null;
10811
      this.se = null;
10812
    }
10813
 
10814
    public int getSuccessSize() {
10815
      return (this.success == null) ? 0 : this.success.size();
10816
    }
10817
 
9840 amit.gupta 10818
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 10819
      return (this.success == null) ? null : this.success.iterator();
10820
    }
10821
 
9840 amit.gupta 10822
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 10823
      if (this.success == null) {
9840 amit.gupta 10824
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 10825
      }
10826
      this.success.add(elem);
10827
    }
10828
 
9840 amit.gupta 10829
    public List<ItemText> getSuccess() {
4934 amit.gupta 10830
      return this.success;
10831
    }
10832
 
9840 amit.gupta 10833
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 10834
      this.success = success;
10835
    }
10836
 
10837
    public void unsetSuccess() {
10838
      this.success = null;
10839
    }
10840
 
10841
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10842
    public boolean isSetSuccess() {
10843
      return this.success != null;
10844
    }
10845
 
10846
    public void setSuccessIsSet(boolean value) {
10847
      if (!value) {
10848
        this.success = null;
10849
      }
10850
    }
10851
 
10852
    public LogisticsServiceException getSe() {
10853
      return this.se;
10854
    }
10855
 
10856
    public void setSe(LogisticsServiceException se) {
10857
      this.se = se;
10858
    }
10859
 
10860
    public void unsetSe() {
10861
      this.se = null;
10862
    }
10863
 
10864
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10865
    public boolean isSetSe() {
10866
      return this.se != null;
10867
    }
10868
 
10869
    public void setSeIsSet(boolean value) {
10870
      if (!value) {
10871
        this.se = null;
10872
      }
10873
    }
10874
 
10875
    public void setFieldValue(_Fields field, Object value) {
10876
      switch (field) {
10877
      case SUCCESS:
10878
        if (value == null) {
10879
          unsetSuccess();
10880
        } else {
9840 amit.gupta 10881
          setSuccess((List<ItemText>)value);
4934 amit.gupta 10882
        }
10883
        break;
10884
 
10885
      case SE:
10886
        if (value == null) {
10887
          unsetSe();
10888
        } else {
10889
          setSe((LogisticsServiceException)value);
10890
        }
10891
        break;
10892
 
10893
      }
10894
    }
10895
 
10896
    public Object getFieldValue(_Fields field) {
10897
      switch (field) {
10898
      case SUCCESS:
10899
        return getSuccess();
10900
 
10901
      case SE:
10902
        return getSe();
10903
 
10904
      }
10905
      throw new IllegalStateException();
10906
    }
10907
 
10908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10909
    public boolean isSet(_Fields field) {
10910
      if (field == null) {
10911
        throw new IllegalArgumentException();
10912
      }
10913
 
10914
      switch (field) {
10915
      case SUCCESS:
10916
        return isSetSuccess();
10917
      case SE:
10918
        return isSetSe();
10919
      }
10920
      throw new IllegalStateException();
10921
    }
10922
 
10923
    @Override
10924
    public boolean equals(Object that) {
10925
      if (that == null)
10926
        return false;
10927
      if (that instanceof getEntityLogisticsEstimation_result)
10928
        return this.equals((getEntityLogisticsEstimation_result)that);
10929
      return false;
10930
    }
10931
 
10932
    public boolean equals(getEntityLogisticsEstimation_result that) {
10933
      if (that == null)
10934
        return false;
10935
 
10936
      boolean this_present_success = true && this.isSetSuccess();
10937
      boolean that_present_success = true && that.isSetSuccess();
10938
      if (this_present_success || that_present_success) {
10939
        if (!(this_present_success && that_present_success))
10940
          return false;
10941
        if (!this.success.equals(that.success))
10942
          return false;
10943
      }
10944
 
10945
      boolean this_present_se = true && this.isSetSe();
10946
      boolean that_present_se = true && that.isSetSe();
10947
      if (this_present_se || that_present_se) {
10948
        if (!(this_present_se && that_present_se))
10949
          return false;
10950
        if (!this.se.equals(that.se))
10951
          return false;
10952
      }
10953
 
10954
      return true;
10955
    }
10956
 
10957
    @Override
10958
    public int hashCode() {
10959
      return 0;
10960
    }
10961
 
10962
    public int compareTo(getEntityLogisticsEstimation_result other) {
10963
      if (!getClass().equals(other.getClass())) {
10964
        return getClass().getName().compareTo(other.getClass().getName());
10965
      }
10966
 
10967
      int lastComparison = 0;
10968
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
10969
 
10970
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10971
      if (lastComparison != 0) {
10972
        return lastComparison;
10973
      }
10974
      if (isSetSuccess()) {
10975
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10976
        if (lastComparison != 0) {
10977
          return lastComparison;
10978
        }
10979
      }
10980
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10981
      if (lastComparison != 0) {
10982
        return lastComparison;
10983
      }
10984
      if (isSetSe()) {
10985
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10986
        if (lastComparison != 0) {
10987
          return lastComparison;
10988
        }
10989
      }
10990
      return 0;
10991
    }
10992
 
10993
    public _Fields fieldForId(int fieldId) {
10994
      return _Fields.findByThriftId(fieldId);
10995
    }
10996
 
10997
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10998
      org.apache.thrift.protocol.TField field;
10999
      iprot.readStructBegin();
11000
      while (true)
11001
      {
11002
        field = iprot.readFieldBegin();
11003
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11004
          break;
11005
        }
11006
        switch (field.id) {
11007
          case 0: // SUCCESS
11008
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11009
              {
7792 anupam.sin 11010
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11011
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11012
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11013
                {
9840 amit.gupta 11014
                  ItemText _elem18; // required
11015
                  _elem18 = new ItemText();
11016
                  _elem18.read(iprot);
7792 anupam.sin 11017
                  this.success.add(_elem18);
4934 amit.gupta 11018
                }
11019
                iprot.readListEnd();
11020
              }
11021
            } else { 
11022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11023
            }
11024
            break;
11025
          case 1: // SE
11026
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11027
              this.se = new LogisticsServiceException();
11028
              this.se.read(iprot);
11029
            } else { 
11030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11031
            }
11032
            break;
11033
          default:
11034
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11035
        }
11036
        iprot.readFieldEnd();
11037
      }
11038
      iprot.readStructEnd();
11039
      validate();
11040
    }
11041
 
11042
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11043
      oprot.writeStructBegin(STRUCT_DESC);
11044
 
11045
      if (this.isSetSuccess()) {
11046
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11047
        {
9840 amit.gupta 11048
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11049
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11050
          {
9840 amit.gupta 11051
            _iter19.write(oprot);
4934 amit.gupta 11052
          }
11053
          oprot.writeListEnd();
11054
        }
11055
        oprot.writeFieldEnd();
11056
      } else if (this.isSetSe()) {
11057
        oprot.writeFieldBegin(SE_FIELD_DESC);
11058
        this.se.write(oprot);
11059
        oprot.writeFieldEnd();
11060
      }
11061
      oprot.writeFieldStop();
11062
      oprot.writeStructEnd();
11063
    }
11064
 
11065
    @Override
11066
    public String toString() {
11067
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11068
      boolean first = true;
11069
 
11070
      sb.append("success:");
11071
      if (this.success == null) {
11072
        sb.append("null");
11073
      } else {
11074
        sb.append(this.success);
11075
      }
11076
      first = false;
11077
      if (!first) sb.append(", ");
11078
      sb.append("se:");
11079
      if (this.se == null) {
11080
        sb.append("null");
11081
      } else {
11082
        sb.append(this.se);
11083
      }
11084
      first = false;
11085
      sb.append(")");
11086
      return sb.toString();
11087
    }
11088
 
11089
    public void validate() throws org.apache.thrift.TException {
11090
      // check for required fields
11091
    }
11092
 
11093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11094
      try {
11095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11096
      } catch (org.apache.thrift.TException te) {
11097
        throw new java.io.IOException(te);
11098
      }
11099
    }
11100
 
11101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11102
      try {
11103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11104
      } catch (org.apache.thrift.TException te) {
11105
        throw new java.io.IOException(te);
11106
      }
11107
    }
11108
 
11109
  }
11110
 
5527 anupam.sin 11111
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11113
 
11114
    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);
11115
 
11116
    private long pickUp; // required
11117
 
11118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11120
      PICK_UP((short)1, "pickUp");
11121
 
11122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11123
 
11124
      static {
11125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11126
          byName.put(field.getFieldName(), field);
11127
        }
11128
      }
11129
 
11130
      /**
11131
       * Find the _Fields constant that matches fieldId, or null if its not found.
11132
       */
11133
      public static _Fields findByThriftId(int fieldId) {
11134
        switch(fieldId) {
11135
          case 1: // PICK_UP
11136
            return PICK_UP;
11137
          default:
11138
            return null;
11139
        }
11140
      }
11141
 
11142
      /**
11143
       * Find the _Fields constant that matches fieldId, throwing an exception
11144
       * if it is not found.
11145
       */
11146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11147
        _Fields fields = findByThriftId(fieldId);
11148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11149
        return fields;
11150
      }
11151
 
11152
      /**
11153
       * Find the _Fields constant that matches name, or null if its not found.
11154
       */
11155
      public static _Fields findByName(String name) {
11156
        return byName.get(name);
11157
      }
11158
 
11159
      private final short _thriftId;
11160
      private final String _fieldName;
11161
 
11162
      _Fields(short thriftId, String fieldName) {
11163
        _thriftId = thriftId;
11164
        _fieldName = fieldName;
11165
      }
11166
 
11167
      public short getThriftFieldId() {
11168
        return _thriftId;
11169
      }
11170
 
11171
      public String getFieldName() {
11172
        return _fieldName;
11173
      }
11174
    }
11175
 
11176
    // isset id assignments
11177
    private static final int __PICKUP_ISSET_ID = 0;
11178
    private BitSet __isset_bit_vector = new BitSet(1);
11179
 
11180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11181
    static {
11182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11183
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11187
    }
11188
 
11189
    public getProviderForPickupType_args() {
11190
    }
11191
 
11192
    public getProviderForPickupType_args(
11193
      long pickUp)
11194
    {
11195
      this();
11196
      this.pickUp = pickUp;
11197
      setPickUpIsSet(true);
11198
    }
11199
 
11200
    /**
11201
     * Performs a deep copy on <i>other</i>.
11202
     */
11203
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11204
      __isset_bit_vector.clear();
11205
      __isset_bit_vector.or(other.__isset_bit_vector);
11206
      this.pickUp = other.pickUp;
11207
    }
11208
 
11209
    public getProviderForPickupType_args deepCopy() {
11210
      return new getProviderForPickupType_args(this);
11211
    }
11212
 
11213
    @Override
11214
    public void clear() {
11215
      setPickUpIsSet(false);
11216
      this.pickUp = 0;
11217
    }
11218
 
11219
    public long getPickUp() {
11220
      return this.pickUp;
11221
    }
11222
 
11223
    public void setPickUp(long pickUp) {
11224
      this.pickUp = pickUp;
11225
      setPickUpIsSet(true);
11226
    }
11227
 
11228
    public void unsetPickUp() {
11229
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11230
    }
11231
 
11232
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11233
    public boolean isSetPickUp() {
11234
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11235
    }
11236
 
11237
    public void setPickUpIsSet(boolean value) {
11238
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11239
    }
11240
 
11241
    public void setFieldValue(_Fields field, Object value) {
11242
      switch (field) {
11243
      case PICK_UP:
11244
        if (value == null) {
11245
          unsetPickUp();
11246
        } else {
11247
          setPickUp((Long)value);
11248
        }
11249
        break;
11250
 
11251
      }
11252
    }
11253
 
11254
    public Object getFieldValue(_Fields field) {
11255
      switch (field) {
11256
      case PICK_UP:
11257
        return Long.valueOf(getPickUp());
11258
 
11259
      }
11260
      throw new IllegalStateException();
11261
    }
11262
 
11263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11264
    public boolean isSet(_Fields field) {
11265
      if (field == null) {
11266
        throw new IllegalArgumentException();
11267
      }
11268
 
11269
      switch (field) {
11270
      case PICK_UP:
11271
        return isSetPickUp();
11272
      }
11273
      throw new IllegalStateException();
11274
    }
11275
 
11276
    @Override
11277
    public boolean equals(Object that) {
11278
      if (that == null)
11279
        return false;
11280
      if (that instanceof getProviderForPickupType_args)
11281
        return this.equals((getProviderForPickupType_args)that);
11282
      return false;
11283
    }
11284
 
11285
    public boolean equals(getProviderForPickupType_args that) {
11286
      if (that == null)
11287
        return false;
11288
 
11289
      boolean this_present_pickUp = true;
11290
      boolean that_present_pickUp = true;
11291
      if (this_present_pickUp || that_present_pickUp) {
11292
        if (!(this_present_pickUp && that_present_pickUp))
11293
          return false;
11294
        if (this.pickUp != that.pickUp)
11295
          return false;
11296
      }
11297
 
11298
      return true;
11299
    }
11300
 
11301
    @Override
11302
    public int hashCode() {
11303
      return 0;
11304
    }
11305
 
11306
    public int compareTo(getProviderForPickupType_args other) {
11307
      if (!getClass().equals(other.getClass())) {
11308
        return getClass().getName().compareTo(other.getClass().getName());
11309
      }
11310
 
11311
      int lastComparison = 0;
11312
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11313
 
11314
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11315
      if (lastComparison != 0) {
11316
        return lastComparison;
11317
      }
11318
      if (isSetPickUp()) {
11319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11320
        if (lastComparison != 0) {
11321
          return lastComparison;
11322
        }
11323
      }
11324
      return 0;
11325
    }
11326
 
11327
    public _Fields fieldForId(int fieldId) {
11328
      return _Fields.findByThriftId(fieldId);
11329
    }
11330
 
11331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11332
      org.apache.thrift.protocol.TField field;
11333
      iprot.readStructBegin();
11334
      while (true)
11335
      {
11336
        field = iprot.readFieldBegin();
11337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11338
          break;
11339
        }
11340
        switch (field.id) {
11341
          case 1: // PICK_UP
11342
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11343
              this.pickUp = iprot.readI64();
11344
              setPickUpIsSet(true);
11345
            } else { 
11346
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11347
            }
11348
            break;
11349
          default:
11350
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11351
        }
11352
        iprot.readFieldEnd();
11353
      }
11354
      iprot.readStructEnd();
11355
      validate();
11356
    }
11357
 
11358
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11359
      validate();
11360
 
11361
      oprot.writeStructBegin(STRUCT_DESC);
11362
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11363
      oprot.writeI64(this.pickUp);
11364
      oprot.writeFieldEnd();
11365
      oprot.writeFieldStop();
11366
      oprot.writeStructEnd();
11367
    }
11368
 
11369
    @Override
11370
    public String toString() {
11371
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11372
      boolean first = true;
11373
 
11374
      sb.append("pickUp:");
11375
      sb.append(this.pickUp);
11376
      first = false;
11377
      sb.append(")");
11378
      return sb.toString();
11379
    }
11380
 
11381
    public void validate() throws org.apache.thrift.TException {
11382
      // check for required fields
11383
    }
11384
 
11385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11386
      try {
11387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11388
      } catch (org.apache.thrift.TException te) {
11389
        throw new java.io.IOException(te);
11390
      }
11391
    }
11392
 
11393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11394
      try {
11395
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11396
        __isset_bit_vector = new BitSet(1);
11397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11398
      } catch (org.apache.thrift.TException te) {
11399
        throw new java.io.IOException(te);
11400
      }
11401
    }
11402
 
11403
  }
11404
 
11405
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11407
 
11408
    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);
11409
 
11410
    private long success; // required
11411
 
11412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11414
      SUCCESS((short)0, "success");
11415
 
11416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11417
 
11418
      static {
11419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11420
          byName.put(field.getFieldName(), field);
11421
        }
11422
      }
11423
 
11424
      /**
11425
       * Find the _Fields constant that matches fieldId, or null if its not found.
11426
       */
11427
      public static _Fields findByThriftId(int fieldId) {
11428
        switch(fieldId) {
11429
          case 0: // SUCCESS
11430
            return SUCCESS;
11431
          default:
11432
            return null;
11433
        }
11434
      }
11435
 
11436
      /**
11437
       * Find the _Fields constant that matches fieldId, throwing an exception
11438
       * if it is not found.
11439
       */
11440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11441
        _Fields fields = findByThriftId(fieldId);
11442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11443
        return fields;
11444
      }
11445
 
11446
      /**
11447
       * Find the _Fields constant that matches name, or null if its not found.
11448
       */
11449
      public static _Fields findByName(String name) {
11450
        return byName.get(name);
11451
      }
11452
 
11453
      private final short _thriftId;
11454
      private final String _fieldName;
11455
 
11456
      _Fields(short thriftId, String fieldName) {
11457
        _thriftId = thriftId;
11458
        _fieldName = fieldName;
11459
      }
11460
 
11461
      public short getThriftFieldId() {
11462
        return _thriftId;
11463
      }
11464
 
11465
      public String getFieldName() {
11466
        return _fieldName;
11467
      }
11468
    }
11469
 
11470
    // isset id assignments
11471
    private static final int __SUCCESS_ISSET_ID = 0;
11472
    private BitSet __isset_bit_vector = new BitSet(1);
11473
 
11474
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11475
    static {
11476
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11477
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11478
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11479
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11480
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11481
    }
11482
 
11483
    public getProviderForPickupType_result() {
11484
    }
11485
 
11486
    public getProviderForPickupType_result(
11487
      long success)
11488
    {
11489
      this();
11490
      this.success = success;
11491
      setSuccessIsSet(true);
11492
    }
11493
 
11494
    /**
11495
     * Performs a deep copy on <i>other</i>.
11496
     */
11497
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11498
      __isset_bit_vector.clear();
11499
      __isset_bit_vector.or(other.__isset_bit_vector);
11500
      this.success = other.success;
11501
    }
11502
 
11503
    public getProviderForPickupType_result deepCopy() {
11504
      return new getProviderForPickupType_result(this);
11505
    }
11506
 
11507
    @Override
11508
    public void clear() {
11509
      setSuccessIsSet(false);
11510
      this.success = 0;
11511
    }
11512
 
11513
    public long getSuccess() {
11514
      return this.success;
11515
    }
11516
 
11517
    public void setSuccess(long success) {
11518
      this.success = success;
11519
      setSuccessIsSet(true);
11520
    }
11521
 
11522
    public void unsetSuccess() {
11523
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11524
    }
11525
 
11526
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11527
    public boolean isSetSuccess() {
11528
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11529
    }
11530
 
11531
    public void setSuccessIsSet(boolean value) {
11532
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11533
    }
11534
 
11535
    public void setFieldValue(_Fields field, Object value) {
11536
      switch (field) {
11537
      case SUCCESS:
11538
        if (value == null) {
11539
          unsetSuccess();
11540
        } else {
11541
          setSuccess((Long)value);
11542
        }
11543
        break;
11544
 
11545
      }
11546
    }
11547
 
11548
    public Object getFieldValue(_Fields field) {
11549
      switch (field) {
11550
      case SUCCESS:
11551
        return Long.valueOf(getSuccess());
11552
 
11553
      }
11554
      throw new IllegalStateException();
11555
    }
11556
 
11557
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11558
    public boolean isSet(_Fields field) {
11559
      if (field == null) {
11560
        throw new IllegalArgumentException();
11561
      }
11562
 
11563
      switch (field) {
11564
      case SUCCESS:
11565
        return isSetSuccess();
11566
      }
11567
      throw new IllegalStateException();
11568
    }
11569
 
11570
    @Override
11571
    public boolean equals(Object that) {
11572
      if (that == null)
11573
        return false;
11574
      if (that instanceof getProviderForPickupType_result)
11575
        return this.equals((getProviderForPickupType_result)that);
11576
      return false;
11577
    }
11578
 
11579
    public boolean equals(getProviderForPickupType_result that) {
11580
      if (that == null)
11581
        return false;
11582
 
11583
      boolean this_present_success = true;
11584
      boolean that_present_success = true;
11585
      if (this_present_success || that_present_success) {
11586
        if (!(this_present_success && that_present_success))
11587
          return false;
11588
        if (this.success != that.success)
11589
          return false;
11590
      }
11591
 
11592
      return true;
11593
    }
11594
 
11595
    @Override
11596
    public int hashCode() {
11597
      return 0;
11598
    }
11599
 
11600
    public int compareTo(getProviderForPickupType_result other) {
11601
      if (!getClass().equals(other.getClass())) {
11602
        return getClass().getName().compareTo(other.getClass().getName());
11603
      }
11604
 
11605
      int lastComparison = 0;
11606
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11607
 
11608
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11609
      if (lastComparison != 0) {
11610
        return lastComparison;
11611
      }
11612
      if (isSetSuccess()) {
11613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11614
        if (lastComparison != 0) {
11615
          return lastComparison;
11616
        }
11617
      }
11618
      return 0;
11619
    }
11620
 
11621
    public _Fields fieldForId(int fieldId) {
11622
      return _Fields.findByThriftId(fieldId);
11623
    }
11624
 
11625
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11626
      org.apache.thrift.protocol.TField field;
11627
      iprot.readStructBegin();
11628
      while (true)
11629
      {
11630
        field = iprot.readFieldBegin();
11631
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11632
          break;
11633
        }
11634
        switch (field.id) {
11635
          case 0: // SUCCESS
11636
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11637
              this.success = iprot.readI64();
11638
              setSuccessIsSet(true);
11639
            } else { 
11640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11641
            }
11642
            break;
11643
          default:
11644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11645
        }
11646
        iprot.readFieldEnd();
11647
      }
11648
      iprot.readStructEnd();
11649
      validate();
11650
    }
11651
 
11652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11653
      oprot.writeStructBegin(STRUCT_DESC);
11654
 
11655
      if (this.isSetSuccess()) {
11656
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11657
        oprot.writeI64(this.success);
11658
        oprot.writeFieldEnd();
11659
      }
11660
      oprot.writeFieldStop();
11661
      oprot.writeStructEnd();
11662
    }
11663
 
11664
    @Override
11665
    public String toString() {
11666
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
11667
      boolean first = true;
11668
 
11669
      sb.append("success:");
11670
      sb.append(this.success);
11671
      first = false;
11672
      sb.append(")");
11673
      return sb.toString();
11674
    }
11675
 
11676
    public void validate() throws org.apache.thrift.TException {
11677
      // check for required fields
11678
    }
11679
 
11680
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11681
      try {
11682
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11683
      } catch (org.apache.thrift.TException te) {
11684
        throw new java.io.IOException(te);
11685
      }
11686
    }
11687
 
11688
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11689
      try {
11690
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11691
      } catch (org.apache.thrift.TException te) {
11692
        throw new java.io.IOException(te);
11693
      }
11694
    }
11695
 
11696
  }
11697
 
5553 rajveer 11698
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
11699
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
11700
 
11701
 
11702
 
11703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11705
;
11706
 
11707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11708
 
11709
      static {
11710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11711
          byName.put(field.getFieldName(), field);
11712
        }
11713
      }
11714
 
11715
      /**
11716
       * Find the _Fields constant that matches fieldId, or null if its not found.
11717
       */
11718
      public static _Fields findByThriftId(int fieldId) {
11719
        switch(fieldId) {
11720
          default:
11721
            return null;
11722
        }
11723
      }
11724
 
11725
      /**
11726
       * Find the _Fields constant that matches fieldId, throwing an exception
11727
       * if it is not found.
11728
       */
11729
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11730
        _Fields fields = findByThriftId(fieldId);
11731
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11732
        return fields;
11733
      }
11734
 
11735
      /**
11736
       * Find the _Fields constant that matches name, or null if its not found.
11737
       */
11738
      public static _Fields findByName(String name) {
11739
        return byName.get(name);
11740
      }
11741
 
11742
      private final short _thriftId;
11743
      private final String _fieldName;
11744
 
11745
      _Fields(short thriftId, String fieldName) {
11746
        _thriftId = thriftId;
11747
        _fieldName = fieldName;
11748
      }
11749
 
11750
      public short getThriftFieldId() {
11751
        return _thriftId;
11752
      }
11753
 
11754
      public String getFieldName() {
11755
        return _fieldName;
11756
      }
11757
    }
11758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11759
    static {
11760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11761
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11762
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
11763
    }
11764
 
11765
    public getAllPickupStores_args() {
11766
    }
11767
 
11768
    /**
11769
     * Performs a deep copy on <i>other</i>.
11770
     */
11771
    public getAllPickupStores_args(getAllPickupStores_args other) {
11772
    }
11773
 
11774
    public getAllPickupStores_args deepCopy() {
11775
      return new getAllPickupStores_args(this);
11776
    }
11777
 
11778
    @Override
11779
    public void clear() {
11780
    }
11781
 
11782
    public void setFieldValue(_Fields field, Object value) {
11783
      switch (field) {
11784
      }
11785
    }
11786
 
11787
    public Object getFieldValue(_Fields field) {
11788
      switch (field) {
11789
      }
11790
      throw new IllegalStateException();
11791
    }
11792
 
11793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11794
    public boolean isSet(_Fields field) {
11795
      if (field == null) {
11796
        throw new IllegalArgumentException();
11797
      }
11798
 
11799
      switch (field) {
11800
      }
11801
      throw new IllegalStateException();
11802
    }
11803
 
11804
    @Override
11805
    public boolean equals(Object that) {
11806
      if (that == null)
11807
        return false;
11808
      if (that instanceof getAllPickupStores_args)
11809
        return this.equals((getAllPickupStores_args)that);
11810
      return false;
11811
    }
11812
 
11813
    public boolean equals(getAllPickupStores_args that) {
11814
      if (that == null)
11815
        return false;
11816
 
11817
      return true;
11818
    }
11819
 
11820
    @Override
11821
    public int hashCode() {
11822
      return 0;
11823
    }
11824
 
11825
    public int compareTo(getAllPickupStores_args other) {
11826
      if (!getClass().equals(other.getClass())) {
11827
        return getClass().getName().compareTo(other.getClass().getName());
11828
      }
11829
 
11830
      int lastComparison = 0;
11831
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
11832
 
11833
      return 0;
11834
    }
11835
 
11836
    public _Fields fieldForId(int fieldId) {
11837
      return _Fields.findByThriftId(fieldId);
11838
    }
11839
 
11840
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11841
      org.apache.thrift.protocol.TField field;
11842
      iprot.readStructBegin();
11843
      while (true)
11844
      {
11845
        field = iprot.readFieldBegin();
11846
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11847
          break;
11848
        }
11849
        switch (field.id) {
11850
          default:
11851
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11852
        }
11853
        iprot.readFieldEnd();
11854
      }
11855
      iprot.readStructEnd();
11856
      validate();
11857
    }
11858
 
11859
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11860
      validate();
11861
 
11862
      oprot.writeStructBegin(STRUCT_DESC);
11863
      oprot.writeFieldStop();
11864
      oprot.writeStructEnd();
11865
    }
11866
 
11867
    @Override
11868
    public String toString() {
11869
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
11870
      boolean first = true;
11871
 
11872
      sb.append(")");
11873
      return sb.toString();
11874
    }
11875
 
11876
    public void validate() throws org.apache.thrift.TException {
11877
      // check for required fields
11878
    }
11879
 
11880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11881
      try {
11882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11883
      } catch (org.apache.thrift.TException te) {
11884
        throw new java.io.IOException(te);
11885
      }
11886
    }
11887
 
11888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11889
      try {
11890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11891
      } catch (org.apache.thrift.TException te) {
11892
        throw new java.io.IOException(te);
11893
      }
11894
    }
11895
 
11896
  }
11897
 
11898
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
11899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
11900
 
11901
    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);
11902
 
11903
    private List<PickupStore> success; // required
11904
 
11905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11907
      SUCCESS((short)0, "success");
11908
 
11909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11910
 
11911
      static {
11912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11913
          byName.put(field.getFieldName(), field);
11914
        }
11915
      }
11916
 
11917
      /**
11918
       * Find the _Fields constant that matches fieldId, or null if its not found.
11919
       */
11920
      public static _Fields findByThriftId(int fieldId) {
11921
        switch(fieldId) {
11922
          case 0: // SUCCESS
11923
            return SUCCESS;
11924
          default:
11925
            return null;
11926
        }
11927
      }
11928
 
11929
      /**
11930
       * Find the _Fields constant that matches fieldId, throwing an exception
11931
       * if it is not found.
11932
       */
11933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11934
        _Fields fields = findByThriftId(fieldId);
11935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11936
        return fields;
11937
      }
11938
 
11939
      /**
11940
       * Find the _Fields constant that matches name, or null if its not found.
11941
       */
11942
      public static _Fields findByName(String name) {
11943
        return byName.get(name);
11944
      }
11945
 
11946
      private final short _thriftId;
11947
      private final String _fieldName;
11948
 
11949
      _Fields(short thriftId, String fieldName) {
11950
        _thriftId = thriftId;
11951
        _fieldName = fieldName;
11952
      }
11953
 
11954
      public short getThriftFieldId() {
11955
        return _thriftId;
11956
      }
11957
 
11958
      public String getFieldName() {
11959
        return _fieldName;
11960
      }
11961
    }
11962
 
11963
    // isset id assignments
11964
 
11965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11966
    static {
11967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11968
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11969
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11970
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
11971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
11973
    }
11974
 
11975
    public getAllPickupStores_result() {
11976
    }
11977
 
11978
    public getAllPickupStores_result(
11979
      List<PickupStore> success)
11980
    {
11981
      this();
11982
      this.success = success;
11983
    }
11984
 
11985
    /**
11986
     * Performs a deep copy on <i>other</i>.
11987
     */
11988
    public getAllPickupStores_result(getAllPickupStores_result other) {
11989
      if (other.isSetSuccess()) {
11990
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
11991
        for (PickupStore other_element : other.success) {
11992
          __this__success.add(new PickupStore(other_element));
11993
        }
11994
        this.success = __this__success;
11995
      }
11996
    }
11997
 
11998
    public getAllPickupStores_result deepCopy() {
11999
      return new getAllPickupStores_result(this);
12000
    }
12001
 
12002
    @Override
12003
    public void clear() {
12004
      this.success = null;
12005
    }
12006
 
12007
    public int getSuccessSize() {
12008
      return (this.success == null) ? 0 : this.success.size();
12009
    }
12010
 
12011
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12012
      return (this.success == null) ? null : this.success.iterator();
12013
    }
12014
 
12015
    public void addToSuccess(PickupStore elem) {
12016
      if (this.success == null) {
12017
        this.success = new ArrayList<PickupStore>();
12018
      }
12019
      this.success.add(elem);
12020
    }
12021
 
12022
    public List<PickupStore> getSuccess() {
12023
      return this.success;
12024
    }
12025
 
12026
    public void setSuccess(List<PickupStore> success) {
12027
      this.success = success;
12028
    }
12029
 
12030
    public void unsetSuccess() {
12031
      this.success = null;
12032
    }
12033
 
12034
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12035
    public boolean isSetSuccess() {
12036
      return this.success != null;
12037
    }
12038
 
12039
    public void setSuccessIsSet(boolean value) {
12040
      if (!value) {
12041
        this.success = null;
12042
      }
12043
    }
12044
 
12045
    public void setFieldValue(_Fields field, Object value) {
12046
      switch (field) {
12047
      case SUCCESS:
12048
        if (value == null) {
12049
          unsetSuccess();
12050
        } else {
12051
          setSuccess((List<PickupStore>)value);
12052
        }
12053
        break;
12054
 
12055
      }
12056
    }
12057
 
12058
    public Object getFieldValue(_Fields field) {
12059
      switch (field) {
12060
      case SUCCESS:
12061
        return getSuccess();
12062
 
12063
      }
12064
      throw new IllegalStateException();
12065
    }
12066
 
12067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12068
    public boolean isSet(_Fields field) {
12069
      if (field == null) {
12070
        throw new IllegalArgumentException();
12071
      }
12072
 
12073
      switch (field) {
12074
      case SUCCESS:
12075
        return isSetSuccess();
12076
      }
12077
      throw new IllegalStateException();
12078
    }
12079
 
12080
    @Override
12081
    public boolean equals(Object that) {
12082
      if (that == null)
12083
        return false;
12084
      if (that instanceof getAllPickupStores_result)
12085
        return this.equals((getAllPickupStores_result)that);
12086
      return false;
12087
    }
12088
 
12089
    public boolean equals(getAllPickupStores_result that) {
12090
      if (that == null)
12091
        return false;
12092
 
12093
      boolean this_present_success = true && this.isSetSuccess();
12094
      boolean that_present_success = true && that.isSetSuccess();
12095
      if (this_present_success || that_present_success) {
12096
        if (!(this_present_success && that_present_success))
12097
          return false;
12098
        if (!this.success.equals(that.success))
12099
          return false;
12100
      }
12101
 
12102
      return true;
12103
    }
12104
 
12105
    @Override
12106
    public int hashCode() {
12107
      return 0;
12108
    }
12109
 
12110
    public int compareTo(getAllPickupStores_result other) {
12111
      if (!getClass().equals(other.getClass())) {
12112
        return getClass().getName().compareTo(other.getClass().getName());
12113
      }
12114
 
12115
      int lastComparison = 0;
12116
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12117
 
12118
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12119
      if (lastComparison != 0) {
12120
        return lastComparison;
12121
      }
12122
      if (isSetSuccess()) {
12123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12124
        if (lastComparison != 0) {
12125
          return lastComparison;
12126
        }
12127
      }
12128
      return 0;
12129
    }
12130
 
12131
    public _Fields fieldForId(int fieldId) {
12132
      return _Fields.findByThriftId(fieldId);
12133
    }
12134
 
12135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12136
      org.apache.thrift.protocol.TField field;
12137
      iprot.readStructBegin();
12138
      while (true)
12139
      {
12140
        field = iprot.readFieldBegin();
12141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12142
          break;
12143
        }
12144
        switch (field.id) {
12145
          case 0: // SUCCESS
12146
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12147
              {
7792 anupam.sin 12148
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12149
                this.success = new ArrayList<PickupStore>(_list20.size);
12150
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12151
                {
7792 anupam.sin 12152
                  PickupStore _elem22; // required
12153
                  _elem22 = new PickupStore();
12154
                  _elem22.read(iprot);
12155
                  this.success.add(_elem22);
5553 rajveer 12156
                }
12157
                iprot.readListEnd();
12158
              }
12159
            } else { 
12160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12161
            }
12162
            break;
12163
          default:
12164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12165
        }
12166
        iprot.readFieldEnd();
12167
      }
12168
      iprot.readStructEnd();
12169
      validate();
12170
    }
12171
 
12172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12173
      oprot.writeStructBegin(STRUCT_DESC);
12174
 
12175
      if (this.isSetSuccess()) {
12176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12177
        {
12178
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12179
          for (PickupStore _iter23 : this.success)
5553 rajveer 12180
          {
7792 anupam.sin 12181
            _iter23.write(oprot);
5553 rajveer 12182
          }
12183
          oprot.writeListEnd();
12184
        }
12185
        oprot.writeFieldEnd();
12186
      }
12187
      oprot.writeFieldStop();
12188
      oprot.writeStructEnd();
12189
    }
12190
 
12191
    @Override
12192
    public String toString() {
12193
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12194
      boolean first = true;
12195
 
12196
      sb.append("success:");
12197
      if (this.success == null) {
12198
        sb.append("null");
12199
      } else {
12200
        sb.append(this.success);
12201
      }
12202
      first = false;
12203
      sb.append(")");
12204
      return sb.toString();
12205
    }
12206
 
12207
    public void validate() throws org.apache.thrift.TException {
12208
      // check for required fields
12209
    }
12210
 
12211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12212
      try {
12213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12214
      } catch (org.apache.thrift.TException te) {
12215
        throw new java.io.IOException(te);
12216
      }
12217
    }
12218
 
12219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12220
      try {
12221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12222
      } catch (org.apache.thrift.TException te) {
12223
        throw new java.io.IOException(te);
12224
      }
12225
    }
12226
 
12227
  }
12228
 
12229
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12231
 
12232
    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);
12233
 
12234
    private long storeId; // required
12235
 
12236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12238
      STORE_ID((short)1, "storeId");
12239
 
12240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12241
 
12242
      static {
12243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12244
          byName.put(field.getFieldName(), field);
12245
        }
12246
      }
12247
 
12248
      /**
12249
       * Find the _Fields constant that matches fieldId, or null if its not found.
12250
       */
12251
      public static _Fields findByThriftId(int fieldId) {
12252
        switch(fieldId) {
12253
          case 1: // STORE_ID
12254
            return STORE_ID;
12255
          default:
12256
            return null;
12257
        }
12258
      }
12259
 
12260
      /**
12261
       * Find the _Fields constant that matches fieldId, throwing an exception
12262
       * if it is not found.
12263
       */
12264
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12265
        _Fields fields = findByThriftId(fieldId);
12266
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12267
        return fields;
12268
      }
12269
 
12270
      /**
12271
       * Find the _Fields constant that matches name, or null if its not found.
12272
       */
12273
      public static _Fields findByName(String name) {
12274
        return byName.get(name);
12275
      }
12276
 
12277
      private final short _thriftId;
12278
      private final String _fieldName;
12279
 
12280
      _Fields(short thriftId, String fieldName) {
12281
        _thriftId = thriftId;
12282
        _fieldName = fieldName;
12283
      }
12284
 
12285
      public short getThriftFieldId() {
12286
        return _thriftId;
12287
      }
12288
 
12289
      public String getFieldName() {
12290
        return _fieldName;
12291
      }
12292
    }
12293
 
12294
    // isset id assignments
12295
    private static final int __STOREID_ISSET_ID = 0;
12296
    private BitSet __isset_bit_vector = new BitSet(1);
12297
 
12298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12299
    static {
12300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12301
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12305
    }
12306
 
12307
    public getPickupStore_args() {
12308
    }
12309
 
12310
    public getPickupStore_args(
12311
      long storeId)
12312
    {
12313
      this();
12314
      this.storeId = storeId;
12315
      setStoreIdIsSet(true);
12316
    }
12317
 
12318
    /**
12319
     * Performs a deep copy on <i>other</i>.
12320
     */
12321
    public getPickupStore_args(getPickupStore_args other) {
12322
      __isset_bit_vector.clear();
12323
      __isset_bit_vector.or(other.__isset_bit_vector);
12324
      this.storeId = other.storeId;
12325
    }
12326
 
12327
    public getPickupStore_args deepCopy() {
12328
      return new getPickupStore_args(this);
12329
    }
12330
 
12331
    @Override
12332
    public void clear() {
12333
      setStoreIdIsSet(false);
12334
      this.storeId = 0;
12335
    }
12336
 
12337
    public long getStoreId() {
12338
      return this.storeId;
12339
    }
12340
 
12341
    public void setStoreId(long storeId) {
12342
      this.storeId = storeId;
12343
      setStoreIdIsSet(true);
12344
    }
12345
 
12346
    public void unsetStoreId() {
12347
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12348
    }
12349
 
12350
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12351
    public boolean isSetStoreId() {
12352
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12353
    }
12354
 
12355
    public void setStoreIdIsSet(boolean value) {
12356
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12357
    }
12358
 
12359
    public void setFieldValue(_Fields field, Object value) {
12360
      switch (field) {
12361
      case STORE_ID:
12362
        if (value == null) {
12363
          unsetStoreId();
12364
        } else {
12365
          setStoreId((Long)value);
12366
        }
12367
        break;
12368
 
12369
      }
12370
    }
12371
 
12372
    public Object getFieldValue(_Fields field) {
12373
      switch (field) {
12374
      case STORE_ID:
12375
        return Long.valueOf(getStoreId());
12376
 
12377
      }
12378
      throw new IllegalStateException();
12379
    }
12380
 
12381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12382
    public boolean isSet(_Fields field) {
12383
      if (field == null) {
12384
        throw new IllegalArgumentException();
12385
      }
12386
 
12387
      switch (field) {
12388
      case STORE_ID:
12389
        return isSetStoreId();
12390
      }
12391
      throw new IllegalStateException();
12392
    }
12393
 
12394
    @Override
12395
    public boolean equals(Object that) {
12396
      if (that == null)
12397
        return false;
12398
      if (that instanceof getPickupStore_args)
12399
        return this.equals((getPickupStore_args)that);
12400
      return false;
12401
    }
12402
 
12403
    public boolean equals(getPickupStore_args that) {
12404
      if (that == null)
12405
        return false;
12406
 
12407
      boolean this_present_storeId = true;
12408
      boolean that_present_storeId = true;
12409
      if (this_present_storeId || that_present_storeId) {
12410
        if (!(this_present_storeId && that_present_storeId))
12411
          return false;
12412
        if (this.storeId != that.storeId)
12413
          return false;
12414
      }
12415
 
12416
      return true;
12417
    }
12418
 
12419
    @Override
12420
    public int hashCode() {
12421
      return 0;
12422
    }
12423
 
12424
    public int compareTo(getPickupStore_args other) {
12425
      if (!getClass().equals(other.getClass())) {
12426
        return getClass().getName().compareTo(other.getClass().getName());
12427
      }
12428
 
12429
      int lastComparison = 0;
12430
      getPickupStore_args typedOther = (getPickupStore_args)other;
12431
 
12432
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12433
      if (lastComparison != 0) {
12434
        return lastComparison;
12435
      }
12436
      if (isSetStoreId()) {
12437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12438
        if (lastComparison != 0) {
12439
          return lastComparison;
12440
        }
12441
      }
12442
      return 0;
12443
    }
12444
 
12445
    public _Fields fieldForId(int fieldId) {
12446
      return _Fields.findByThriftId(fieldId);
12447
    }
12448
 
12449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12450
      org.apache.thrift.protocol.TField field;
12451
      iprot.readStructBegin();
12452
      while (true)
12453
      {
12454
        field = iprot.readFieldBegin();
12455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12456
          break;
12457
        }
12458
        switch (field.id) {
12459
          case 1: // STORE_ID
12460
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12461
              this.storeId = iprot.readI64();
12462
              setStoreIdIsSet(true);
12463
            } else { 
12464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12465
            }
12466
            break;
12467
          default:
12468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12469
        }
12470
        iprot.readFieldEnd();
12471
      }
12472
      iprot.readStructEnd();
12473
      validate();
12474
    }
12475
 
12476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12477
      validate();
12478
 
12479
      oprot.writeStructBegin(STRUCT_DESC);
12480
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12481
      oprot.writeI64(this.storeId);
12482
      oprot.writeFieldEnd();
12483
      oprot.writeFieldStop();
12484
      oprot.writeStructEnd();
12485
    }
12486
 
12487
    @Override
12488
    public String toString() {
12489
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12490
      boolean first = true;
12491
 
12492
      sb.append("storeId:");
12493
      sb.append(this.storeId);
12494
      first = false;
12495
      sb.append(")");
12496
      return sb.toString();
12497
    }
12498
 
12499
    public void validate() throws org.apache.thrift.TException {
12500
      // check for required fields
12501
    }
12502
 
12503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12504
      try {
12505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12506
      } catch (org.apache.thrift.TException te) {
12507
        throw new java.io.IOException(te);
12508
      }
12509
    }
12510
 
12511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12512
      try {
12513
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12514
        __isset_bit_vector = new BitSet(1);
12515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12516
      } catch (org.apache.thrift.TException te) {
12517
        throw new java.io.IOException(te);
12518
      }
12519
    }
12520
 
12521
  }
12522
 
12523
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12524
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12525
 
12526
    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);
12527
 
12528
    private PickupStore success; // required
12529
 
12530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12532
      SUCCESS((short)0, "success");
12533
 
12534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12535
 
12536
      static {
12537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12538
          byName.put(field.getFieldName(), field);
12539
        }
12540
      }
12541
 
12542
      /**
12543
       * Find the _Fields constant that matches fieldId, or null if its not found.
12544
       */
12545
      public static _Fields findByThriftId(int fieldId) {
12546
        switch(fieldId) {
12547
          case 0: // SUCCESS
12548
            return SUCCESS;
12549
          default:
12550
            return null;
12551
        }
12552
      }
12553
 
12554
      /**
12555
       * Find the _Fields constant that matches fieldId, throwing an exception
12556
       * if it is not found.
12557
       */
12558
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12559
        _Fields fields = findByThriftId(fieldId);
12560
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12561
        return fields;
12562
      }
12563
 
12564
      /**
12565
       * Find the _Fields constant that matches name, or null if its not found.
12566
       */
12567
      public static _Fields findByName(String name) {
12568
        return byName.get(name);
12569
      }
12570
 
12571
      private final short _thriftId;
12572
      private final String _fieldName;
12573
 
12574
      _Fields(short thriftId, String fieldName) {
12575
        _thriftId = thriftId;
12576
        _fieldName = fieldName;
12577
      }
12578
 
12579
      public short getThriftFieldId() {
12580
        return _thriftId;
12581
      }
12582
 
12583
      public String getFieldName() {
12584
        return _fieldName;
12585
      }
12586
    }
12587
 
12588
    // isset id assignments
12589
 
12590
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12591
    static {
12592
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12593
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12594
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12595
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12596
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12597
    }
12598
 
12599
    public getPickupStore_result() {
12600
    }
12601
 
12602
    public getPickupStore_result(
12603
      PickupStore success)
12604
    {
12605
      this();
12606
      this.success = success;
12607
    }
12608
 
12609
    /**
12610
     * Performs a deep copy on <i>other</i>.
12611
     */
12612
    public getPickupStore_result(getPickupStore_result other) {
12613
      if (other.isSetSuccess()) {
12614
        this.success = new PickupStore(other.success);
12615
      }
12616
    }
12617
 
12618
    public getPickupStore_result deepCopy() {
12619
      return new getPickupStore_result(this);
12620
    }
12621
 
12622
    @Override
12623
    public void clear() {
12624
      this.success = null;
12625
    }
12626
 
12627
    public PickupStore getSuccess() {
12628
      return this.success;
12629
    }
12630
 
12631
    public void setSuccess(PickupStore success) {
12632
      this.success = success;
12633
    }
12634
 
12635
    public void unsetSuccess() {
12636
      this.success = null;
12637
    }
12638
 
12639
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12640
    public boolean isSetSuccess() {
12641
      return this.success != null;
12642
    }
12643
 
12644
    public void setSuccessIsSet(boolean value) {
12645
      if (!value) {
12646
        this.success = null;
12647
      }
12648
    }
12649
 
12650
    public void setFieldValue(_Fields field, Object value) {
12651
      switch (field) {
12652
      case SUCCESS:
12653
        if (value == null) {
12654
          unsetSuccess();
12655
        } else {
12656
          setSuccess((PickupStore)value);
12657
        }
12658
        break;
12659
 
12660
      }
12661
    }
12662
 
12663
    public Object getFieldValue(_Fields field) {
12664
      switch (field) {
12665
      case SUCCESS:
12666
        return getSuccess();
12667
 
12668
      }
12669
      throw new IllegalStateException();
12670
    }
12671
 
12672
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12673
    public boolean isSet(_Fields field) {
12674
      if (field == null) {
12675
        throw new IllegalArgumentException();
12676
      }
12677
 
12678
      switch (field) {
12679
      case SUCCESS:
12680
        return isSetSuccess();
12681
      }
12682
      throw new IllegalStateException();
12683
    }
12684
 
12685
    @Override
12686
    public boolean equals(Object that) {
12687
      if (that == null)
12688
        return false;
12689
      if (that instanceof getPickupStore_result)
12690
        return this.equals((getPickupStore_result)that);
12691
      return false;
12692
    }
12693
 
12694
    public boolean equals(getPickupStore_result that) {
12695
      if (that == null)
12696
        return false;
12697
 
12698
      boolean this_present_success = true && this.isSetSuccess();
12699
      boolean that_present_success = true && that.isSetSuccess();
12700
      if (this_present_success || that_present_success) {
12701
        if (!(this_present_success && that_present_success))
12702
          return false;
12703
        if (!this.success.equals(that.success))
12704
          return false;
12705
      }
12706
 
12707
      return true;
12708
    }
12709
 
12710
    @Override
12711
    public int hashCode() {
12712
      return 0;
12713
    }
12714
 
12715
    public int compareTo(getPickupStore_result other) {
12716
      if (!getClass().equals(other.getClass())) {
12717
        return getClass().getName().compareTo(other.getClass().getName());
12718
      }
12719
 
12720
      int lastComparison = 0;
12721
      getPickupStore_result typedOther = (getPickupStore_result)other;
12722
 
12723
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12724
      if (lastComparison != 0) {
12725
        return lastComparison;
12726
      }
12727
      if (isSetSuccess()) {
12728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12729
        if (lastComparison != 0) {
12730
          return lastComparison;
12731
        }
12732
      }
12733
      return 0;
12734
    }
12735
 
12736
    public _Fields fieldForId(int fieldId) {
12737
      return _Fields.findByThriftId(fieldId);
12738
    }
12739
 
12740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12741
      org.apache.thrift.protocol.TField field;
12742
      iprot.readStructBegin();
12743
      while (true)
12744
      {
12745
        field = iprot.readFieldBegin();
12746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12747
          break;
12748
        }
12749
        switch (field.id) {
12750
          case 0: // SUCCESS
12751
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12752
              this.success = new PickupStore();
12753
              this.success.read(iprot);
12754
            } else { 
12755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12756
            }
12757
            break;
12758
          default:
12759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12760
        }
12761
        iprot.readFieldEnd();
12762
      }
12763
      iprot.readStructEnd();
12764
      validate();
12765
    }
12766
 
12767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12768
      oprot.writeStructBegin(STRUCT_DESC);
12769
 
12770
      if (this.isSetSuccess()) {
12771
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12772
        this.success.write(oprot);
12773
        oprot.writeFieldEnd();
12774
      }
12775
      oprot.writeFieldStop();
12776
      oprot.writeStructEnd();
12777
    }
12778
 
12779
    @Override
12780
    public String toString() {
12781
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
12782
      boolean first = true;
12783
 
12784
      sb.append("success:");
12785
      if (this.success == null) {
12786
        sb.append("null");
12787
      } else {
12788
        sb.append(this.success);
12789
      }
12790
      first = false;
12791
      sb.append(")");
12792
      return sb.toString();
12793
    }
12794
 
12795
    public void validate() throws org.apache.thrift.TException {
12796
      // check for required fields
12797
    }
12798
 
12799
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12800
      try {
12801
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12802
      } catch (org.apache.thrift.TException te) {
12803
        throw new java.io.IOException(te);
12804
      }
12805
    }
12806
 
12807
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12808
      try {
12809
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12810
      } catch (org.apache.thrift.TException te) {
12811
        throw new java.io.IOException(te);
12812
      }
12813
    }
12814
 
12815
  }
12816
 
5719 rajveer 12817
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
12818
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
12819
 
12820
    private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)1);
12821
 
12822
    private String hotspotId; // required
12823
 
12824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12826
      HOTSPOT_ID((short)1, "hotspotId");
12827
 
12828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12829
 
12830
      static {
12831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12832
          byName.put(field.getFieldName(), field);
12833
        }
12834
      }
12835
 
12836
      /**
12837
       * Find the _Fields constant that matches fieldId, or null if its not found.
12838
       */
12839
      public static _Fields findByThriftId(int fieldId) {
12840
        switch(fieldId) {
12841
          case 1: // HOTSPOT_ID
12842
            return HOTSPOT_ID;
12843
          default:
12844
            return null;
12845
        }
12846
      }
12847
 
12848
      /**
12849
       * Find the _Fields constant that matches fieldId, throwing an exception
12850
       * if it is not found.
12851
       */
12852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12853
        _Fields fields = findByThriftId(fieldId);
12854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12855
        return fields;
12856
      }
12857
 
12858
      /**
12859
       * Find the _Fields constant that matches name, or null if its not found.
12860
       */
12861
      public static _Fields findByName(String name) {
12862
        return byName.get(name);
12863
      }
12864
 
12865
      private final short _thriftId;
12866
      private final String _fieldName;
12867
 
12868
      _Fields(short thriftId, String fieldName) {
12869
        _thriftId = thriftId;
12870
        _fieldName = fieldName;
12871
      }
12872
 
12873
      public short getThriftFieldId() {
12874
        return _thriftId;
12875
      }
12876
 
12877
      public String getFieldName() {
12878
        return _fieldName;
12879
      }
12880
    }
12881
 
12882
    // isset id assignments
12883
 
12884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12885
    static {
12886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12887
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12888
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12889
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12890
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
12891
    }
12892
 
12893
    public getPickupStoreByHotspotId_args() {
12894
    }
12895
 
12896
    public getPickupStoreByHotspotId_args(
12897
      String hotspotId)
12898
    {
12899
      this();
12900
      this.hotspotId = hotspotId;
12901
    }
12902
 
12903
    /**
12904
     * Performs a deep copy on <i>other</i>.
12905
     */
12906
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
12907
      if (other.isSetHotspotId()) {
12908
        this.hotspotId = other.hotspotId;
12909
      }
12910
    }
12911
 
12912
    public getPickupStoreByHotspotId_args deepCopy() {
12913
      return new getPickupStoreByHotspotId_args(this);
12914
    }
12915
 
12916
    @Override
12917
    public void clear() {
12918
      this.hotspotId = null;
12919
    }
12920
 
12921
    public String getHotspotId() {
12922
      return this.hotspotId;
12923
    }
12924
 
12925
    public void setHotspotId(String hotspotId) {
12926
      this.hotspotId = hotspotId;
12927
    }
12928
 
12929
    public void unsetHotspotId() {
12930
      this.hotspotId = null;
12931
    }
12932
 
12933
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
12934
    public boolean isSetHotspotId() {
12935
      return this.hotspotId != null;
12936
    }
12937
 
12938
    public void setHotspotIdIsSet(boolean value) {
12939
      if (!value) {
12940
        this.hotspotId = null;
12941
      }
12942
    }
12943
 
12944
    public void setFieldValue(_Fields field, Object value) {
12945
      switch (field) {
12946
      case HOTSPOT_ID:
12947
        if (value == null) {
12948
          unsetHotspotId();
12949
        } else {
12950
          setHotspotId((String)value);
12951
        }
12952
        break;
12953
 
12954
      }
12955
    }
12956
 
12957
    public Object getFieldValue(_Fields field) {
12958
      switch (field) {
12959
      case HOTSPOT_ID:
12960
        return getHotspotId();
12961
 
12962
      }
12963
      throw new IllegalStateException();
12964
    }
12965
 
12966
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12967
    public boolean isSet(_Fields field) {
12968
      if (field == null) {
12969
        throw new IllegalArgumentException();
12970
      }
12971
 
12972
      switch (field) {
12973
      case HOTSPOT_ID:
12974
        return isSetHotspotId();
12975
      }
12976
      throw new IllegalStateException();
12977
    }
12978
 
12979
    @Override
12980
    public boolean equals(Object that) {
12981
      if (that == null)
12982
        return false;
12983
      if (that instanceof getPickupStoreByHotspotId_args)
12984
        return this.equals((getPickupStoreByHotspotId_args)that);
12985
      return false;
12986
    }
12987
 
12988
    public boolean equals(getPickupStoreByHotspotId_args that) {
12989
      if (that == null)
12990
        return false;
12991
 
12992
      boolean this_present_hotspotId = true && this.isSetHotspotId();
12993
      boolean that_present_hotspotId = true && that.isSetHotspotId();
12994
      if (this_present_hotspotId || that_present_hotspotId) {
12995
        if (!(this_present_hotspotId && that_present_hotspotId))
12996
          return false;
12997
        if (!this.hotspotId.equals(that.hotspotId))
12998
          return false;
12999
      }
13000
 
13001
      return true;
13002
    }
13003
 
13004
    @Override
13005
    public int hashCode() {
13006
      return 0;
13007
    }
13008
 
13009
    public int compareTo(getPickupStoreByHotspotId_args other) {
13010
      if (!getClass().equals(other.getClass())) {
13011
        return getClass().getName().compareTo(other.getClass().getName());
13012
      }
13013
 
13014
      int lastComparison = 0;
13015
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13016
 
13017
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13018
      if (lastComparison != 0) {
13019
        return lastComparison;
13020
      }
13021
      if (isSetHotspotId()) {
13022
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13023
        if (lastComparison != 0) {
13024
          return lastComparison;
13025
        }
13026
      }
13027
      return 0;
13028
    }
13029
 
13030
    public _Fields fieldForId(int fieldId) {
13031
      return _Fields.findByThriftId(fieldId);
13032
    }
13033
 
13034
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13035
      org.apache.thrift.protocol.TField field;
13036
      iprot.readStructBegin();
13037
      while (true)
13038
      {
13039
        field = iprot.readFieldBegin();
13040
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13041
          break;
13042
        }
13043
        switch (field.id) {
13044
          case 1: // HOTSPOT_ID
13045
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13046
              this.hotspotId = iprot.readString();
13047
            } else { 
13048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13049
            }
13050
            break;
13051
          default:
13052
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13053
        }
13054
        iprot.readFieldEnd();
13055
      }
13056
      iprot.readStructEnd();
13057
      validate();
13058
    }
13059
 
13060
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13061
      validate();
13062
 
13063
      oprot.writeStructBegin(STRUCT_DESC);
13064
      if (this.hotspotId != null) {
13065
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13066
        oprot.writeString(this.hotspotId);
13067
        oprot.writeFieldEnd();
13068
      }
13069
      oprot.writeFieldStop();
13070
      oprot.writeStructEnd();
13071
    }
13072
 
13073
    @Override
13074
    public String toString() {
13075
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13076
      boolean first = true;
13077
 
13078
      sb.append("hotspotId:");
13079
      if (this.hotspotId == null) {
13080
        sb.append("null");
13081
      } else {
13082
        sb.append(this.hotspotId);
13083
      }
13084
      first = false;
13085
      sb.append(")");
13086
      return sb.toString();
13087
    }
13088
 
13089
    public void validate() throws org.apache.thrift.TException {
13090
      // check for required fields
13091
    }
13092
 
13093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13094
      try {
13095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13096
      } catch (org.apache.thrift.TException te) {
13097
        throw new java.io.IOException(te);
13098
      }
13099
    }
13100
 
13101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13102
      try {
13103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13104
      } catch (org.apache.thrift.TException te) {
13105
        throw new java.io.IOException(te);
13106
      }
13107
    }
13108
 
13109
  }
13110
 
13111
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13113
 
13114
    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);
13115
 
13116
    private PickupStore success; // required
13117
 
13118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13120
      SUCCESS((short)0, "success");
13121
 
13122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13123
 
13124
      static {
13125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13126
          byName.put(field.getFieldName(), field);
13127
        }
13128
      }
13129
 
13130
      /**
13131
       * Find the _Fields constant that matches fieldId, or null if its not found.
13132
       */
13133
      public static _Fields findByThriftId(int fieldId) {
13134
        switch(fieldId) {
13135
          case 0: // SUCCESS
13136
            return SUCCESS;
13137
          default:
13138
            return null;
13139
        }
13140
      }
13141
 
13142
      /**
13143
       * Find the _Fields constant that matches fieldId, throwing an exception
13144
       * if it is not found.
13145
       */
13146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13147
        _Fields fields = findByThriftId(fieldId);
13148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13149
        return fields;
13150
      }
13151
 
13152
      /**
13153
       * Find the _Fields constant that matches name, or null if its not found.
13154
       */
13155
      public static _Fields findByName(String name) {
13156
        return byName.get(name);
13157
      }
13158
 
13159
      private final short _thriftId;
13160
      private final String _fieldName;
13161
 
13162
      _Fields(short thriftId, String fieldName) {
13163
        _thriftId = thriftId;
13164
        _fieldName = fieldName;
13165
      }
13166
 
13167
      public short getThriftFieldId() {
13168
        return _thriftId;
13169
      }
13170
 
13171
      public String getFieldName() {
13172
        return _fieldName;
13173
      }
13174
    }
13175
 
13176
    // isset id assignments
13177
 
13178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13179
    static {
13180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13181
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13182
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13185
    }
13186
 
13187
    public getPickupStoreByHotspotId_result() {
13188
    }
13189
 
13190
    public getPickupStoreByHotspotId_result(
13191
      PickupStore success)
13192
    {
13193
      this();
13194
      this.success = success;
13195
    }
13196
 
13197
    /**
13198
     * Performs a deep copy on <i>other</i>.
13199
     */
13200
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13201
      if (other.isSetSuccess()) {
13202
        this.success = new PickupStore(other.success);
13203
      }
13204
    }
13205
 
13206
    public getPickupStoreByHotspotId_result deepCopy() {
13207
      return new getPickupStoreByHotspotId_result(this);
13208
    }
13209
 
13210
    @Override
13211
    public void clear() {
13212
      this.success = null;
13213
    }
13214
 
13215
    public PickupStore getSuccess() {
13216
      return this.success;
13217
    }
13218
 
13219
    public void setSuccess(PickupStore success) {
13220
      this.success = success;
13221
    }
13222
 
13223
    public void unsetSuccess() {
13224
      this.success = null;
13225
    }
13226
 
13227
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13228
    public boolean isSetSuccess() {
13229
      return this.success != null;
13230
    }
13231
 
13232
    public void setSuccessIsSet(boolean value) {
13233
      if (!value) {
13234
        this.success = null;
13235
      }
13236
    }
13237
 
13238
    public void setFieldValue(_Fields field, Object value) {
13239
      switch (field) {
13240
      case SUCCESS:
13241
        if (value == null) {
13242
          unsetSuccess();
13243
        } else {
13244
          setSuccess((PickupStore)value);
13245
        }
13246
        break;
13247
 
13248
      }
13249
    }
13250
 
13251
    public Object getFieldValue(_Fields field) {
13252
      switch (field) {
13253
      case SUCCESS:
13254
        return getSuccess();
13255
 
13256
      }
13257
      throw new IllegalStateException();
13258
    }
13259
 
13260
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13261
    public boolean isSet(_Fields field) {
13262
      if (field == null) {
13263
        throw new IllegalArgumentException();
13264
      }
13265
 
13266
      switch (field) {
13267
      case SUCCESS:
13268
        return isSetSuccess();
13269
      }
13270
      throw new IllegalStateException();
13271
    }
13272
 
13273
    @Override
13274
    public boolean equals(Object that) {
13275
      if (that == null)
13276
        return false;
13277
      if (that instanceof getPickupStoreByHotspotId_result)
13278
        return this.equals((getPickupStoreByHotspotId_result)that);
13279
      return false;
13280
    }
13281
 
13282
    public boolean equals(getPickupStoreByHotspotId_result that) {
13283
      if (that == null)
13284
        return false;
13285
 
13286
      boolean this_present_success = true && this.isSetSuccess();
13287
      boolean that_present_success = true && that.isSetSuccess();
13288
      if (this_present_success || that_present_success) {
13289
        if (!(this_present_success && that_present_success))
13290
          return false;
13291
        if (!this.success.equals(that.success))
13292
          return false;
13293
      }
13294
 
13295
      return true;
13296
    }
13297
 
13298
    @Override
13299
    public int hashCode() {
13300
      return 0;
13301
    }
13302
 
13303
    public int compareTo(getPickupStoreByHotspotId_result other) {
13304
      if (!getClass().equals(other.getClass())) {
13305
        return getClass().getName().compareTo(other.getClass().getName());
13306
      }
13307
 
13308
      int lastComparison = 0;
13309
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13310
 
13311
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13312
      if (lastComparison != 0) {
13313
        return lastComparison;
13314
      }
13315
      if (isSetSuccess()) {
13316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13317
        if (lastComparison != 0) {
13318
          return lastComparison;
13319
        }
13320
      }
13321
      return 0;
13322
    }
13323
 
13324
    public _Fields fieldForId(int fieldId) {
13325
      return _Fields.findByThriftId(fieldId);
13326
    }
13327
 
13328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13329
      org.apache.thrift.protocol.TField field;
13330
      iprot.readStructBegin();
13331
      while (true)
13332
      {
13333
        field = iprot.readFieldBegin();
13334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13335
          break;
13336
        }
13337
        switch (field.id) {
13338
          case 0: // SUCCESS
13339
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13340
              this.success = new PickupStore();
13341
              this.success.read(iprot);
13342
            } else { 
13343
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13344
            }
13345
            break;
13346
          default:
13347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13348
        }
13349
        iprot.readFieldEnd();
13350
      }
13351
      iprot.readStructEnd();
13352
      validate();
13353
    }
13354
 
13355
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13356
      oprot.writeStructBegin(STRUCT_DESC);
13357
 
13358
      if (this.isSetSuccess()) {
13359
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13360
        this.success.write(oprot);
13361
        oprot.writeFieldEnd();
13362
      }
13363
      oprot.writeFieldStop();
13364
      oprot.writeStructEnd();
13365
    }
13366
 
13367
    @Override
13368
    public String toString() {
13369
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13370
      boolean first = true;
13371
 
13372
      sb.append("success:");
13373
      if (this.success == null) {
13374
        sb.append("null");
13375
      } else {
13376
        sb.append(this.success);
13377
      }
13378
      first = false;
13379
      sb.append(")");
13380
      return sb.toString();
13381
    }
13382
 
13383
    public void validate() throws org.apache.thrift.TException {
13384
      // check for required fields
13385
    }
13386
 
13387
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13388
      try {
13389
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13390
      } catch (org.apache.thrift.TException te) {
13391
        throw new java.io.IOException(te);
13392
      }
13393
    }
13394
 
13395
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13396
      try {
13397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13398
      } catch (org.apache.thrift.TException te) {
13399
        throw new java.io.IOException(te);
13400
      }
13401
    }
13402
 
13403
  }
13404
 
6322 amar.kumar 13405
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13407
 
13408
    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);
13409
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
13410
    private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
13411
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
13412
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
13413
    private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
6524 rajveer 13414
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)7);
6322 amar.kumar 13415
 
13416
    private long providerId; // required
13417
    private String pincode; // required
13418
    private String destCode; // required
13419
    private boolean exp; // required
13420
    private boolean cod; // required
13421
    private int stationType; // required
6524 rajveer 13422
    private boolean otgAvailable; // required
6322 amar.kumar 13423
 
13424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13426
      PROVIDER_ID((short)1, "providerId"),
13427
      PINCODE((short)2, "pincode"),
13428
      DEST_CODE((short)3, "destCode"),
13429
      EXP((short)4, "exp"),
13430
      COD((short)5, "cod"),
6524 rajveer 13431
      STATION_TYPE((short)6, "stationType"),
13432
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13433
 
13434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13435
 
13436
      static {
13437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13438
          byName.put(field.getFieldName(), field);
13439
        }
13440
      }
13441
 
13442
      /**
13443
       * Find the _Fields constant that matches fieldId, or null if its not found.
13444
       */
13445
      public static _Fields findByThriftId(int fieldId) {
13446
        switch(fieldId) {
13447
          case 1: // PROVIDER_ID
13448
            return PROVIDER_ID;
13449
          case 2: // PINCODE
13450
            return PINCODE;
13451
          case 3: // DEST_CODE
13452
            return DEST_CODE;
13453
          case 4: // EXP
13454
            return EXP;
13455
          case 5: // COD
13456
            return COD;
13457
          case 6: // STATION_TYPE
13458
            return STATION_TYPE;
6524 rajveer 13459
          case 7: // OTG_AVAILABLE
13460
            return OTG_AVAILABLE;
6322 amar.kumar 13461
          default:
13462
            return null;
13463
        }
13464
      }
13465
 
13466
      /**
13467
       * Find the _Fields constant that matches fieldId, throwing an exception
13468
       * if it is not found.
13469
       */
13470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13471
        _Fields fields = findByThriftId(fieldId);
13472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13473
        return fields;
13474
      }
13475
 
13476
      /**
13477
       * Find the _Fields constant that matches name, or null if its not found.
13478
       */
13479
      public static _Fields findByName(String name) {
13480
        return byName.get(name);
13481
      }
13482
 
13483
      private final short _thriftId;
13484
      private final String _fieldName;
13485
 
13486
      _Fields(short thriftId, String fieldName) {
13487
        _thriftId = thriftId;
13488
        _fieldName = fieldName;
13489
      }
13490
 
13491
      public short getThriftFieldId() {
13492
        return _thriftId;
13493
      }
13494
 
13495
      public String getFieldName() {
13496
        return _fieldName;
13497
      }
13498
    }
13499
 
13500
    // isset id assignments
13501
    private static final int __PROVIDERID_ISSET_ID = 0;
13502
    private static final int __EXP_ISSET_ID = 1;
13503
    private static final int __COD_ISSET_ID = 2;
13504
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13505
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13506
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13507
 
13508
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13509
    static {
13510
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13511
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13512
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13513
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13515
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13516
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13517
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13519
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13521
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13523
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13524
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13527
    }
13528
 
13529
    public addPincode_args() {
13530
    }
13531
 
13532
    public addPincode_args(
13533
      long providerId,
13534
      String pincode,
13535
      String destCode,
13536
      boolean exp,
13537
      boolean cod,
6524 rajveer 13538
      int stationType,
13539
      boolean otgAvailable)
6322 amar.kumar 13540
    {
13541
      this();
13542
      this.providerId = providerId;
13543
      setProviderIdIsSet(true);
13544
      this.pincode = pincode;
13545
      this.destCode = destCode;
13546
      this.exp = exp;
13547
      setExpIsSet(true);
13548
      this.cod = cod;
13549
      setCodIsSet(true);
13550
      this.stationType = stationType;
13551
      setStationTypeIsSet(true);
6524 rajveer 13552
      this.otgAvailable = otgAvailable;
13553
      setOtgAvailableIsSet(true);
6322 amar.kumar 13554
    }
13555
 
13556
    /**
13557
     * Performs a deep copy on <i>other</i>.
13558
     */
13559
    public addPincode_args(addPincode_args other) {
13560
      __isset_bit_vector.clear();
13561
      __isset_bit_vector.or(other.__isset_bit_vector);
13562
      this.providerId = other.providerId;
13563
      if (other.isSetPincode()) {
13564
        this.pincode = other.pincode;
13565
      }
13566
      if (other.isSetDestCode()) {
13567
        this.destCode = other.destCode;
13568
      }
13569
      this.exp = other.exp;
13570
      this.cod = other.cod;
13571
      this.stationType = other.stationType;
6524 rajveer 13572
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13573
    }
13574
 
13575
    public addPincode_args deepCopy() {
13576
      return new addPincode_args(this);
13577
    }
13578
 
13579
    @Override
13580
    public void clear() {
13581
      setProviderIdIsSet(false);
13582
      this.providerId = 0;
13583
      this.pincode = null;
13584
      this.destCode = null;
13585
      setExpIsSet(false);
13586
      this.exp = false;
13587
      setCodIsSet(false);
13588
      this.cod = false;
13589
      setStationTypeIsSet(false);
13590
      this.stationType = 0;
6524 rajveer 13591
      setOtgAvailableIsSet(false);
13592
      this.otgAvailable = false;
6322 amar.kumar 13593
    }
13594
 
13595
    public long getProviderId() {
13596
      return this.providerId;
13597
    }
13598
 
13599
    public void setProviderId(long providerId) {
13600
      this.providerId = providerId;
13601
      setProviderIdIsSet(true);
13602
    }
13603
 
13604
    public void unsetProviderId() {
13605
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13606
    }
13607
 
13608
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13609
    public boolean isSetProviderId() {
13610
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13611
    }
13612
 
13613
    public void setProviderIdIsSet(boolean value) {
13614
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13615
    }
13616
 
13617
    public String getPincode() {
13618
      return this.pincode;
13619
    }
13620
 
13621
    public void setPincode(String pincode) {
13622
      this.pincode = pincode;
13623
    }
13624
 
13625
    public void unsetPincode() {
13626
      this.pincode = null;
13627
    }
13628
 
13629
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13630
    public boolean isSetPincode() {
13631
      return this.pincode != null;
13632
    }
13633
 
13634
    public void setPincodeIsSet(boolean value) {
13635
      if (!value) {
13636
        this.pincode = null;
13637
      }
13638
    }
13639
 
13640
    public String getDestCode() {
13641
      return this.destCode;
13642
    }
13643
 
13644
    public void setDestCode(String destCode) {
13645
      this.destCode = destCode;
13646
    }
13647
 
13648
    public void unsetDestCode() {
13649
      this.destCode = null;
13650
    }
13651
 
13652
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
13653
    public boolean isSetDestCode() {
13654
      return this.destCode != null;
13655
    }
13656
 
13657
    public void setDestCodeIsSet(boolean value) {
13658
      if (!value) {
13659
        this.destCode = null;
13660
      }
13661
    }
13662
 
13663
    public boolean isExp() {
13664
      return this.exp;
13665
    }
13666
 
13667
    public void setExp(boolean exp) {
13668
      this.exp = exp;
13669
      setExpIsSet(true);
13670
    }
13671
 
13672
    public void unsetExp() {
13673
      __isset_bit_vector.clear(__EXP_ISSET_ID);
13674
    }
13675
 
13676
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
13677
    public boolean isSetExp() {
13678
      return __isset_bit_vector.get(__EXP_ISSET_ID);
13679
    }
13680
 
13681
    public void setExpIsSet(boolean value) {
13682
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
13683
    }
13684
 
13685
    public boolean isCod() {
13686
      return this.cod;
13687
    }
13688
 
13689
    public void setCod(boolean cod) {
13690
      this.cod = cod;
13691
      setCodIsSet(true);
13692
    }
13693
 
13694
    public void unsetCod() {
13695
      __isset_bit_vector.clear(__COD_ISSET_ID);
13696
    }
13697
 
13698
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
13699
    public boolean isSetCod() {
13700
      return __isset_bit_vector.get(__COD_ISSET_ID);
13701
    }
13702
 
13703
    public void setCodIsSet(boolean value) {
13704
      __isset_bit_vector.set(__COD_ISSET_ID, value);
13705
    }
13706
 
13707
    public int getStationType() {
13708
      return this.stationType;
13709
    }
13710
 
13711
    public void setStationType(int stationType) {
13712
      this.stationType = stationType;
13713
      setStationTypeIsSet(true);
13714
    }
13715
 
13716
    public void unsetStationType() {
13717
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
13718
    }
13719
 
13720
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
13721
    public boolean isSetStationType() {
13722
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
13723
    }
13724
 
13725
    public void setStationTypeIsSet(boolean value) {
13726
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
13727
    }
13728
 
6524 rajveer 13729
    public boolean isOtgAvailable() {
13730
      return this.otgAvailable;
13731
    }
13732
 
13733
    public void setOtgAvailable(boolean otgAvailable) {
13734
      this.otgAvailable = otgAvailable;
13735
      setOtgAvailableIsSet(true);
13736
    }
13737
 
13738
    public void unsetOtgAvailable() {
13739
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
13740
    }
13741
 
13742
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
13743
    public boolean isSetOtgAvailable() {
13744
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
13745
    }
13746
 
13747
    public void setOtgAvailableIsSet(boolean value) {
13748
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
13749
    }
13750
 
6322 amar.kumar 13751
    public void setFieldValue(_Fields field, Object value) {
13752
      switch (field) {
13753
      case PROVIDER_ID:
13754
        if (value == null) {
13755
          unsetProviderId();
13756
        } else {
13757
          setProviderId((Long)value);
13758
        }
13759
        break;
13760
 
13761
      case PINCODE:
13762
        if (value == null) {
13763
          unsetPincode();
13764
        } else {
13765
          setPincode((String)value);
13766
        }
13767
        break;
13768
 
13769
      case DEST_CODE:
13770
        if (value == null) {
13771
          unsetDestCode();
13772
        } else {
13773
          setDestCode((String)value);
13774
        }
13775
        break;
13776
 
13777
      case EXP:
13778
        if (value == null) {
13779
          unsetExp();
13780
        } else {
13781
          setExp((Boolean)value);
13782
        }
13783
        break;
13784
 
13785
      case COD:
13786
        if (value == null) {
13787
          unsetCod();
13788
        } else {
13789
          setCod((Boolean)value);
13790
        }
13791
        break;
13792
 
13793
      case STATION_TYPE:
13794
        if (value == null) {
13795
          unsetStationType();
13796
        } else {
13797
          setStationType((Integer)value);
13798
        }
13799
        break;
13800
 
6524 rajveer 13801
      case OTG_AVAILABLE:
13802
        if (value == null) {
13803
          unsetOtgAvailable();
13804
        } else {
13805
          setOtgAvailable((Boolean)value);
13806
        }
13807
        break;
13808
 
6322 amar.kumar 13809
      }
13810
    }
13811
 
13812
    public Object getFieldValue(_Fields field) {
13813
      switch (field) {
13814
      case PROVIDER_ID:
13815
        return Long.valueOf(getProviderId());
13816
 
13817
      case PINCODE:
13818
        return getPincode();
13819
 
13820
      case DEST_CODE:
13821
        return getDestCode();
13822
 
13823
      case EXP:
13824
        return Boolean.valueOf(isExp());
13825
 
13826
      case COD:
13827
        return Boolean.valueOf(isCod());
13828
 
13829
      case STATION_TYPE:
13830
        return Integer.valueOf(getStationType());
13831
 
6524 rajveer 13832
      case OTG_AVAILABLE:
13833
        return Boolean.valueOf(isOtgAvailable());
13834
 
6322 amar.kumar 13835
      }
13836
      throw new IllegalStateException();
13837
    }
13838
 
13839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13840
    public boolean isSet(_Fields field) {
13841
      if (field == null) {
13842
        throw new IllegalArgumentException();
13843
      }
13844
 
13845
      switch (field) {
13846
      case PROVIDER_ID:
13847
        return isSetProviderId();
13848
      case PINCODE:
13849
        return isSetPincode();
13850
      case DEST_CODE:
13851
        return isSetDestCode();
13852
      case EXP:
13853
        return isSetExp();
13854
      case COD:
13855
        return isSetCod();
13856
      case STATION_TYPE:
13857
        return isSetStationType();
6524 rajveer 13858
      case OTG_AVAILABLE:
13859
        return isSetOtgAvailable();
6322 amar.kumar 13860
      }
13861
      throw new IllegalStateException();
13862
    }
13863
 
13864
    @Override
13865
    public boolean equals(Object that) {
13866
      if (that == null)
13867
        return false;
13868
      if (that instanceof addPincode_args)
13869
        return this.equals((addPincode_args)that);
13870
      return false;
13871
    }
13872
 
13873
    public boolean equals(addPincode_args that) {
13874
      if (that == null)
13875
        return false;
13876
 
13877
      boolean this_present_providerId = true;
13878
      boolean that_present_providerId = true;
13879
      if (this_present_providerId || that_present_providerId) {
13880
        if (!(this_present_providerId && that_present_providerId))
13881
          return false;
13882
        if (this.providerId != that.providerId)
13883
          return false;
13884
      }
13885
 
13886
      boolean this_present_pincode = true && this.isSetPincode();
13887
      boolean that_present_pincode = true && that.isSetPincode();
13888
      if (this_present_pincode || that_present_pincode) {
13889
        if (!(this_present_pincode && that_present_pincode))
13890
          return false;
13891
        if (!this.pincode.equals(that.pincode))
13892
          return false;
13893
      }
13894
 
13895
      boolean this_present_destCode = true && this.isSetDestCode();
13896
      boolean that_present_destCode = true && that.isSetDestCode();
13897
      if (this_present_destCode || that_present_destCode) {
13898
        if (!(this_present_destCode && that_present_destCode))
13899
          return false;
13900
        if (!this.destCode.equals(that.destCode))
13901
          return false;
13902
      }
13903
 
13904
      boolean this_present_exp = true;
13905
      boolean that_present_exp = true;
13906
      if (this_present_exp || that_present_exp) {
13907
        if (!(this_present_exp && that_present_exp))
13908
          return false;
13909
        if (this.exp != that.exp)
13910
          return false;
13911
      }
13912
 
13913
      boolean this_present_cod = true;
13914
      boolean that_present_cod = true;
13915
      if (this_present_cod || that_present_cod) {
13916
        if (!(this_present_cod && that_present_cod))
13917
          return false;
13918
        if (this.cod != that.cod)
13919
          return false;
13920
      }
13921
 
13922
      boolean this_present_stationType = true;
13923
      boolean that_present_stationType = true;
13924
      if (this_present_stationType || that_present_stationType) {
13925
        if (!(this_present_stationType && that_present_stationType))
13926
          return false;
13927
        if (this.stationType != that.stationType)
13928
          return false;
13929
      }
13930
 
6524 rajveer 13931
      boolean this_present_otgAvailable = true;
13932
      boolean that_present_otgAvailable = true;
13933
      if (this_present_otgAvailable || that_present_otgAvailable) {
13934
        if (!(this_present_otgAvailable && that_present_otgAvailable))
13935
          return false;
13936
        if (this.otgAvailable != that.otgAvailable)
13937
          return false;
13938
      }
13939
 
6322 amar.kumar 13940
      return true;
13941
    }
13942
 
13943
    @Override
13944
    public int hashCode() {
13945
      return 0;
13946
    }
13947
 
13948
    public int compareTo(addPincode_args other) {
13949
      if (!getClass().equals(other.getClass())) {
13950
        return getClass().getName().compareTo(other.getClass().getName());
13951
      }
13952
 
13953
      int lastComparison = 0;
13954
      addPincode_args typedOther = (addPincode_args)other;
13955
 
13956
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
13957
      if (lastComparison != 0) {
13958
        return lastComparison;
13959
      }
13960
      if (isSetProviderId()) {
13961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
13962
        if (lastComparison != 0) {
13963
          return lastComparison;
13964
        }
13965
      }
13966
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
13967
      if (lastComparison != 0) {
13968
        return lastComparison;
13969
      }
13970
      if (isSetPincode()) {
13971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
13972
        if (lastComparison != 0) {
13973
          return lastComparison;
13974
        }
13975
      }
13976
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
13977
      if (lastComparison != 0) {
13978
        return lastComparison;
13979
      }
13980
      if (isSetDestCode()) {
13981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
13982
        if (lastComparison != 0) {
13983
          return lastComparison;
13984
        }
13985
      }
13986
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
13987
      if (lastComparison != 0) {
13988
        return lastComparison;
13989
      }
13990
      if (isSetExp()) {
13991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
13992
        if (lastComparison != 0) {
13993
          return lastComparison;
13994
        }
13995
      }
13996
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
13997
      if (lastComparison != 0) {
13998
        return lastComparison;
13999
      }
14000
      if (isSetCod()) {
14001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14002
        if (lastComparison != 0) {
14003
          return lastComparison;
14004
        }
14005
      }
14006
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14007
      if (lastComparison != 0) {
14008
        return lastComparison;
14009
      }
14010
      if (isSetStationType()) {
14011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14012
        if (lastComparison != 0) {
14013
          return lastComparison;
14014
        }
14015
      }
6524 rajveer 14016
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14017
      if (lastComparison != 0) {
14018
        return lastComparison;
14019
      }
14020
      if (isSetOtgAvailable()) {
14021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14022
        if (lastComparison != 0) {
14023
          return lastComparison;
14024
        }
14025
      }
6322 amar.kumar 14026
      return 0;
14027
    }
14028
 
14029
    public _Fields fieldForId(int fieldId) {
14030
      return _Fields.findByThriftId(fieldId);
14031
    }
14032
 
14033
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14034
      org.apache.thrift.protocol.TField field;
14035
      iprot.readStructBegin();
14036
      while (true)
14037
      {
14038
        field = iprot.readFieldBegin();
14039
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14040
          break;
14041
        }
14042
        switch (field.id) {
14043
          case 1: // PROVIDER_ID
14044
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14045
              this.providerId = iprot.readI64();
14046
              setProviderIdIsSet(true);
14047
            } else { 
14048
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14049
            }
14050
            break;
14051
          case 2: // PINCODE
14052
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14053
              this.pincode = iprot.readString();
14054
            } else { 
14055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14056
            }
14057
            break;
14058
          case 3: // DEST_CODE
14059
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14060
              this.destCode = iprot.readString();
14061
            } else { 
14062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14063
            }
14064
            break;
14065
          case 4: // EXP
14066
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14067
              this.exp = iprot.readBool();
14068
              setExpIsSet(true);
14069
            } else { 
14070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14071
            }
14072
            break;
14073
          case 5: // COD
14074
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14075
              this.cod = iprot.readBool();
14076
              setCodIsSet(true);
14077
            } else { 
14078
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14079
            }
14080
            break;
14081
          case 6: // STATION_TYPE
14082
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14083
              this.stationType = iprot.readI32();
14084
              setStationTypeIsSet(true);
14085
            } else { 
14086
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14087
            }
14088
            break;
6524 rajveer 14089
          case 7: // OTG_AVAILABLE
14090
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14091
              this.otgAvailable = iprot.readBool();
14092
              setOtgAvailableIsSet(true);
14093
            } else { 
14094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14095
            }
14096
            break;
6322 amar.kumar 14097
          default:
14098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14099
        }
14100
        iprot.readFieldEnd();
14101
      }
14102
      iprot.readStructEnd();
14103
      validate();
14104
    }
14105
 
14106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14107
      validate();
14108
 
14109
      oprot.writeStructBegin(STRUCT_DESC);
14110
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14111
      oprot.writeI64(this.providerId);
14112
      oprot.writeFieldEnd();
14113
      if (this.pincode != null) {
14114
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14115
        oprot.writeString(this.pincode);
14116
        oprot.writeFieldEnd();
14117
      }
14118
      if (this.destCode != null) {
14119
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14120
        oprot.writeString(this.destCode);
14121
        oprot.writeFieldEnd();
14122
      }
14123
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14124
      oprot.writeBool(this.exp);
14125
      oprot.writeFieldEnd();
14126
      oprot.writeFieldBegin(COD_FIELD_DESC);
14127
      oprot.writeBool(this.cod);
14128
      oprot.writeFieldEnd();
14129
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14130
      oprot.writeI32(this.stationType);
14131
      oprot.writeFieldEnd();
6524 rajveer 14132
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14133
      oprot.writeBool(this.otgAvailable);
14134
      oprot.writeFieldEnd();
6322 amar.kumar 14135
      oprot.writeFieldStop();
14136
      oprot.writeStructEnd();
14137
    }
14138
 
14139
    @Override
14140
    public String toString() {
14141
      StringBuilder sb = new StringBuilder("addPincode_args(");
14142
      boolean first = true;
14143
 
14144
      sb.append("providerId:");
14145
      sb.append(this.providerId);
14146
      first = false;
14147
      if (!first) sb.append(", ");
14148
      sb.append("pincode:");
14149
      if (this.pincode == null) {
14150
        sb.append("null");
14151
      } else {
14152
        sb.append(this.pincode);
14153
      }
14154
      first = false;
14155
      if (!first) sb.append(", ");
14156
      sb.append("destCode:");
14157
      if (this.destCode == null) {
14158
        sb.append("null");
14159
      } else {
14160
        sb.append(this.destCode);
14161
      }
14162
      first = false;
14163
      if (!first) sb.append(", ");
14164
      sb.append("exp:");
14165
      sb.append(this.exp);
14166
      first = false;
14167
      if (!first) sb.append(", ");
14168
      sb.append("cod:");
14169
      sb.append(this.cod);
14170
      first = false;
14171
      if (!first) sb.append(", ");
14172
      sb.append("stationType:");
14173
      sb.append(this.stationType);
14174
      first = false;
6524 rajveer 14175
      if (!first) sb.append(", ");
14176
      sb.append("otgAvailable:");
14177
      sb.append(this.otgAvailable);
14178
      first = false;
6322 amar.kumar 14179
      sb.append(")");
14180
      return sb.toString();
14181
    }
14182
 
14183
    public void validate() throws org.apache.thrift.TException {
14184
      // check for required fields
14185
    }
14186
 
14187
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14188
      try {
14189
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14190
      } catch (org.apache.thrift.TException te) {
14191
        throw new java.io.IOException(te);
14192
      }
14193
    }
14194
 
14195
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14196
      try {
14197
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14198
        __isset_bit_vector = new BitSet(1);
14199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14200
      } catch (org.apache.thrift.TException te) {
14201
        throw new java.io.IOException(te);
14202
      }
14203
    }
14204
 
14205
  }
14206
 
14207
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14208
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14209
 
14210
 
14211
 
14212
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14213
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14214
;
14215
 
14216
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14217
 
14218
      static {
14219
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14220
          byName.put(field.getFieldName(), field);
14221
        }
14222
      }
14223
 
14224
      /**
14225
       * Find the _Fields constant that matches fieldId, or null if its not found.
14226
       */
14227
      public static _Fields findByThriftId(int fieldId) {
14228
        switch(fieldId) {
14229
          default:
14230
            return null;
14231
        }
14232
      }
14233
 
14234
      /**
14235
       * Find the _Fields constant that matches fieldId, throwing an exception
14236
       * if it is not found.
14237
       */
14238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14239
        _Fields fields = findByThriftId(fieldId);
14240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14241
        return fields;
14242
      }
14243
 
14244
      /**
14245
       * Find the _Fields constant that matches name, or null if its not found.
14246
       */
14247
      public static _Fields findByName(String name) {
14248
        return byName.get(name);
14249
      }
14250
 
14251
      private final short _thriftId;
14252
      private final String _fieldName;
14253
 
14254
      _Fields(short thriftId, String fieldName) {
14255
        _thriftId = thriftId;
14256
        _fieldName = fieldName;
14257
      }
14258
 
14259
      public short getThriftFieldId() {
14260
        return _thriftId;
14261
      }
14262
 
14263
      public String getFieldName() {
14264
        return _fieldName;
14265
      }
14266
    }
14267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14268
    static {
14269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14272
    }
14273
 
14274
    public addPincode_result() {
14275
    }
14276
 
14277
    /**
14278
     * Performs a deep copy on <i>other</i>.
14279
     */
14280
    public addPincode_result(addPincode_result other) {
14281
    }
14282
 
14283
    public addPincode_result deepCopy() {
14284
      return new addPincode_result(this);
14285
    }
14286
 
14287
    @Override
14288
    public void clear() {
14289
    }
14290
 
14291
    public void setFieldValue(_Fields field, Object value) {
14292
      switch (field) {
14293
      }
14294
    }
14295
 
14296
    public Object getFieldValue(_Fields field) {
14297
      switch (field) {
14298
      }
14299
      throw new IllegalStateException();
14300
    }
14301
 
14302
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14303
    public boolean isSet(_Fields field) {
14304
      if (field == null) {
14305
        throw new IllegalArgumentException();
14306
      }
14307
 
14308
      switch (field) {
14309
      }
14310
      throw new IllegalStateException();
14311
    }
14312
 
14313
    @Override
14314
    public boolean equals(Object that) {
14315
      if (that == null)
14316
        return false;
14317
      if (that instanceof addPincode_result)
14318
        return this.equals((addPincode_result)that);
14319
      return false;
14320
    }
14321
 
14322
    public boolean equals(addPincode_result that) {
14323
      if (that == null)
14324
        return false;
14325
 
14326
      return true;
14327
    }
14328
 
14329
    @Override
14330
    public int hashCode() {
14331
      return 0;
14332
    }
14333
 
14334
    public int compareTo(addPincode_result other) {
14335
      if (!getClass().equals(other.getClass())) {
14336
        return getClass().getName().compareTo(other.getClass().getName());
14337
      }
14338
 
14339
      int lastComparison = 0;
14340
      addPincode_result typedOther = (addPincode_result)other;
14341
 
14342
      return 0;
14343
    }
14344
 
14345
    public _Fields fieldForId(int fieldId) {
14346
      return _Fields.findByThriftId(fieldId);
14347
    }
14348
 
14349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14350
      org.apache.thrift.protocol.TField field;
14351
      iprot.readStructBegin();
14352
      while (true)
14353
      {
14354
        field = iprot.readFieldBegin();
14355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14356
          break;
14357
        }
14358
        switch (field.id) {
14359
          default:
14360
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14361
        }
14362
        iprot.readFieldEnd();
14363
      }
14364
      iprot.readStructEnd();
14365
      validate();
14366
    }
14367
 
14368
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14369
      oprot.writeStructBegin(STRUCT_DESC);
14370
 
14371
      oprot.writeFieldStop();
14372
      oprot.writeStructEnd();
14373
    }
14374
 
14375
    @Override
14376
    public String toString() {
14377
      StringBuilder sb = new StringBuilder("addPincode_result(");
14378
      boolean first = true;
14379
 
14380
      sb.append(")");
14381
      return sb.toString();
14382
    }
14383
 
14384
    public void validate() throws org.apache.thrift.TException {
14385
      // check for required fields
14386
    }
14387
 
14388
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14389
      try {
14390
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14391
      } catch (org.apache.thrift.TException te) {
14392
        throw new java.io.IOException(te);
14393
      }
14394
    }
14395
 
14396
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14397
      try {
14398
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14399
      } catch (org.apache.thrift.TException te) {
14400
        throw new java.io.IOException(te);
14401
      }
14402
    }
14403
 
14404
  }
14405
 
14406
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14407
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14408
 
14409
    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);
14410
    private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
14411
    private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
14412
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
6524 rajveer 14413
    private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)5);
6322 amar.kumar 14414
 
14415
    private long providerId; // required
14416
    private String pincode; // required
14417
    private boolean exp; // required
14418
    private boolean cod; // required
6524 rajveer 14419
    private boolean otgAvailable; // required
6322 amar.kumar 14420
 
14421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14423
      PROVIDER_ID((short)1, "providerId"),
14424
      PINCODE((short)2, "pincode"),
14425
      EXP((short)3, "exp"),
6524 rajveer 14426
      COD((short)4, "cod"),
14427
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14428
 
14429
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14430
 
14431
      static {
14432
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14433
          byName.put(field.getFieldName(), field);
14434
        }
14435
      }
14436
 
14437
      /**
14438
       * Find the _Fields constant that matches fieldId, or null if its not found.
14439
       */
14440
      public static _Fields findByThriftId(int fieldId) {
14441
        switch(fieldId) {
14442
          case 1: // PROVIDER_ID
14443
            return PROVIDER_ID;
14444
          case 2: // PINCODE
14445
            return PINCODE;
14446
          case 3: // EXP
14447
            return EXP;
14448
          case 4: // COD
14449
            return COD;
6524 rajveer 14450
          case 5: // OTG_AVAILABLE
14451
            return OTG_AVAILABLE;
6322 amar.kumar 14452
          default:
14453
            return null;
14454
        }
14455
      }
14456
 
14457
      /**
14458
       * Find the _Fields constant that matches fieldId, throwing an exception
14459
       * if it is not found.
14460
       */
14461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14462
        _Fields fields = findByThriftId(fieldId);
14463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14464
        return fields;
14465
      }
14466
 
14467
      /**
14468
       * Find the _Fields constant that matches name, or null if its not found.
14469
       */
14470
      public static _Fields findByName(String name) {
14471
        return byName.get(name);
14472
      }
14473
 
14474
      private final short _thriftId;
14475
      private final String _fieldName;
14476
 
14477
      _Fields(short thriftId, String fieldName) {
14478
        _thriftId = thriftId;
14479
        _fieldName = fieldName;
14480
      }
14481
 
14482
      public short getThriftFieldId() {
14483
        return _thriftId;
14484
      }
14485
 
14486
      public String getFieldName() {
14487
        return _fieldName;
14488
      }
14489
    }
14490
 
14491
    // isset id assignments
14492
    private static final int __PROVIDERID_ISSET_ID = 0;
14493
    private static final int __EXP_ISSET_ID = 1;
14494
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14495
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14496
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14497
 
14498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14499
    static {
14500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14501
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14503
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14505
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14507
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14509
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14510
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14511
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14512
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14513
    }
14514
 
14515
    public updatePincode_args() {
14516
    }
14517
 
14518
    public updatePincode_args(
14519
      long providerId,
14520
      String pincode,
14521
      boolean exp,
6524 rajveer 14522
      boolean cod,
14523
      boolean otgAvailable)
6322 amar.kumar 14524
    {
14525
      this();
14526
      this.providerId = providerId;
14527
      setProviderIdIsSet(true);
14528
      this.pincode = pincode;
14529
      this.exp = exp;
14530
      setExpIsSet(true);
14531
      this.cod = cod;
14532
      setCodIsSet(true);
6524 rajveer 14533
      this.otgAvailable = otgAvailable;
14534
      setOtgAvailableIsSet(true);
6322 amar.kumar 14535
    }
14536
 
14537
    /**
14538
     * Performs a deep copy on <i>other</i>.
14539
     */
14540
    public updatePincode_args(updatePincode_args other) {
14541
      __isset_bit_vector.clear();
14542
      __isset_bit_vector.or(other.__isset_bit_vector);
14543
      this.providerId = other.providerId;
14544
      if (other.isSetPincode()) {
14545
        this.pincode = other.pincode;
14546
      }
14547
      this.exp = other.exp;
14548
      this.cod = other.cod;
6524 rajveer 14549
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14550
    }
14551
 
14552
    public updatePincode_args deepCopy() {
14553
      return new updatePincode_args(this);
14554
    }
14555
 
14556
    @Override
14557
    public void clear() {
14558
      setProviderIdIsSet(false);
14559
      this.providerId = 0;
14560
      this.pincode = null;
14561
      setExpIsSet(false);
14562
      this.exp = false;
14563
      setCodIsSet(false);
14564
      this.cod = false;
6524 rajveer 14565
      setOtgAvailableIsSet(false);
14566
      this.otgAvailable = false;
6322 amar.kumar 14567
    }
14568
 
14569
    public long getProviderId() {
14570
      return this.providerId;
14571
    }
14572
 
14573
    public void setProviderId(long providerId) {
14574
      this.providerId = providerId;
14575
      setProviderIdIsSet(true);
14576
    }
14577
 
14578
    public void unsetProviderId() {
14579
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14580
    }
14581
 
14582
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14583
    public boolean isSetProviderId() {
14584
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14585
    }
14586
 
14587
    public void setProviderIdIsSet(boolean value) {
14588
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14589
    }
14590
 
14591
    public String getPincode() {
14592
      return this.pincode;
14593
    }
14594
 
14595
    public void setPincode(String pincode) {
14596
      this.pincode = pincode;
14597
    }
14598
 
14599
    public void unsetPincode() {
14600
      this.pincode = null;
14601
    }
14602
 
14603
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14604
    public boolean isSetPincode() {
14605
      return this.pincode != null;
14606
    }
14607
 
14608
    public void setPincodeIsSet(boolean value) {
14609
      if (!value) {
14610
        this.pincode = null;
14611
      }
14612
    }
14613
 
14614
    public boolean isExp() {
14615
      return this.exp;
14616
    }
14617
 
14618
    public void setExp(boolean exp) {
14619
      this.exp = exp;
14620
      setExpIsSet(true);
14621
    }
14622
 
14623
    public void unsetExp() {
14624
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14625
    }
14626
 
14627
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14628
    public boolean isSetExp() {
14629
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14630
    }
14631
 
14632
    public void setExpIsSet(boolean value) {
14633
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14634
    }
14635
 
14636
    public boolean isCod() {
14637
      return this.cod;
14638
    }
14639
 
14640
    public void setCod(boolean cod) {
14641
      this.cod = cod;
14642
      setCodIsSet(true);
14643
    }
14644
 
14645
    public void unsetCod() {
14646
      __isset_bit_vector.clear(__COD_ISSET_ID);
14647
    }
14648
 
14649
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14650
    public boolean isSetCod() {
14651
      return __isset_bit_vector.get(__COD_ISSET_ID);
14652
    }
14653
 
14654
    public void setCodIsSet(boolean value) {
14655
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14656
    }
14657
 
6524 rajveer 14658
    public boolean isOtgAvailable() {
14659
      return this.otgAvailable;
14660
    }
14661
 
14662
    public void setOtgAvailable(boolean otgAvailable) {
14663
      this.otgAvailable = otgAvailable;
14664
      setOtgAvailableIsSet(true);
14665
    }
14666
 
14667
    public void unsetOtgAvailable() {
14668
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14669
    }
14670
 
14671
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14672
    public boolean isSetOtgAvailable() {
14673
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14674
    }
14675
 
14676
    public void setOtgAvailableIsSet(boolean value) {
14677
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14678
    }
14679
 
6322 amar.kumar 14680
    public void setFieldValue(_Fields field, Object value) {
14681
      switch (field) {
14682
      case PROVIDER_ID:
14683
        if (value == null) {
14684
          unsetProviderId();
14685
        } else {
14686
          setProviderId((Long)value);
14687
        }
14688
        break;
14689
 
14690
      case PINCODE:
14691
        if (value == null) {
14692
          unsetPincode();
14693
        } else {
14694
          setPincode((String)value);
14695
        }
14696
        break;
14697
 
14698
      case EXP:
14699
        if (value == null) {
14700
          unsetExp();
14701
        } else {
14702
          setExp((Boolean)value);
14703
        }
14704
        break;
14705
 
14706
      case COD:
14707
        if (value == null) {
14708
          unsetCod();
14709
        } else {
14710
          setCod((Boolean)value);
14711
        }
14712
        break;
14713
 
6524 rajveer 14714
      case OTG_AVAILABLE:
14715
        if (value == null) {
14716
          unsetOtgAvailable();
14717
        } else {
14718
          setOtgAvailable((Boolean)value);
14719
        }
14720
        break;
14721
 
6322 amar.kumar 14722
      }
14723
    }
14724
 
14725
    public Object getFieldValue(_Fields field) {
14726
      switch (field) {
14727
      case PROVIDER_ID:
14728
        return Long.valueOf(getProviderId());
14729
 
14730
      case PINCODE:
14731
        return getPincode();
14732
 
14733
      case EXP:
14734
        return Boolean.valueOf(isExp());
14735
 
14736
      case COD:
14737
        return Boolean.valueOf(isCod());
14738
 
6524 rajveer 14739
      case OTG_AVAILABLE:
14740
        return Boolean.valueOf(isOtgAvailable());
14741
 
6322 amar.kumar 14742
      }
14743
      throw new IllegalStateException();
14744
    }
14745
 
14746
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14747
    public boolean isSet(_Fields field) {
14748
      if (field == null) {
14749
        throw new IllegalArgumentException();
14750
      }
14751
 
14752
      switch (field) {
14753
      case PROVIDER_ID:
14754
        return isSetProviderId();
14755
      case PINCODE:
14756
        return isSetPincode();
14757
      case EXP:
14758
        return isSetExp();
14759
      case COD:
14760
        return isSetCod();
6524 rajveer 14761
      case OTG_AVAILABLE:
14762
        return isSetOtgAvailable();
6322 amar.kumar 14763
      }
14764
      throw new IllegalStateException();
14765
    }
14766
 
14767
    @Override
14768
    public boolean equals(Object that) {
14769
      if (that == null)
14770
        return false;
14771
      if (that instanceof updatePincode_args)
14772
        return this.equals((updatePincode_args)that);
14773
      return false;
14774
    }
14775
 
14776
    public boolean equals(updatePincode_args that) {
14777
      if (that == null)
14778
        return false;
14779
 
14780
      boolean this_present_providerId = true;
14781
      boolean that_present_providerId = true;
14782
      if (this_present_providerId || that_present_providerId) {
14783
        if (!(this_present_providerId && that_present_providerId))
14784
          return false;
14785
        if (this.providerId != that.providerId)
14786
          return false;
14787
      }
14788
 
14789
      boolean this_present_pincode = true && this.isSetPincode();
14790
      boolean that_present_pincode = true && that.isSetPincode();
14791
      if (this_present_pincode || that_present_pincode) {
14792
        if (!(this_present_pincode && that_present_pincode))
14793
          return false;
14794
        if (!this.pincode.equals(that.pincode))
14795
          return false;
14796
      }
14797
 
14798
      boolean this_present_exp = true;
14799
      boolean that_present_exp = true;
14800
      if (this_present_exp || that_present_exp) {
14801
        if (!(this_present_exp && that_present_exp))
14802
          return false;
14803
        if (this.exp != that.exp)
14804
          return false;
14805
      }
14806
 
14807
      boolean this_present_cod = true;
14808
      boolean that_present_cod = true;
14809
      if (this_present_cod || that_present_cod) {
14810
        if (!(this_present_cod && that_present_cod))
14811
          return false;
14812
        if (this.cod != that.cod)
14813
          return false;
14814
      }
14815
 
6524 rajveer 14816
      boolean this_present_otgAvailable = true;
14817
      boolean that_present_otgAvailable = true;
14818
      if (this_present_otgAvailable || that_present_otgAvailable) {
14819
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14820
          return false;
14821
        if (this.otgAvailable != that.otgAvailable)
14822
          return false;
14823
      }
14824
 
6322 amar.kumar 14825
      return true;
14826
    }
14827
 
14828
    @Override
14829
    public int hashCode() {
14830
      return 0;
14831
    }
14832
 
14833
    public int compareTo(updatePincode_args other) {
14834
      if (!getClass().equals(other.getClass())) {
14835
        return getClass().getName().compareTo(other.getClass().getName());
14836
      }
14837
 
14838
      int lastComparison = 0;
14839
      updatePincode_args typedOther = (updatePincode_args)other;
14840
 
14841
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14842
      if (lastComparison != 0) {
14843
        return lastComparison;
14844
      }
14845
      if (isSetProviderId()) {
14846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14847
        if (lastComparison != 0) {
14848
          return lastComparison;
14849
        }
14850
      }
14851
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14852
      if (lastComparison != 0) {
14853
        return lastComparison;
14854
      }
14855
      if (isSetPincode()) {
14856
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14857
        if (lastComparison != 0) {
14858
          return lastComparison;
14859
        }
14860
      }
14861
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14862
      if (lastComparison != 0) {
14863
        return lastComparison;
14864
      }
14865
      if (isSetExp()) {
14866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14867
        if (lastComparison != 0) {
14868
          return lastComparison;
14869
        }
14870
      }
14871
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14872
      if (lastComparison != 0) {
14873
        return lastComparison;
14874
      }
14875
      if (isSetCod()) {
14876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14877
        if (lastComparison != 0) {
14878
          return lastComparison;
14879
        }
14880
      }
6524 rajveer 14881
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14882
      if (lastComparison != 0) {
14883
        return lastComparison;
14884
      }
14885
      if (isSetOtgAvailable()) {
14886
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14887
        if (lastComparison != 0) {
14888
          return lastComparison;
14889
        }
14890
      }
6322 amar.kumar 14891
      return 0;
14892
    }
14893
 
14894
    public _Fields fieldForId(int fieldId) {
14895
      return _Fields.findByThriftId(fieldId);
14896
    }
14897
 
14898
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14899
      org.apache.thrift.protocol.TField field;
14900
      iprot.readStructBegin();
14901
      while (true)
14902
      {
14903
        field = iprot.readFieldBegin();
14904
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14905
          break;
14906
        }
14907
        switch (field.id) {
14908
          case 1: // PROVIDER_ID
14909
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14910
              this.providerId = iprot.readI64();
14911
              setProviderIdIsSet(true);
14912
            } else { 
14913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14914
            }
14915
            break;
14916
          case 2: // PINCODE
14917
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14918
              this.pincode = iprot.readString();
14919
            } else { 
14920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14921
            }
14922
            break;
14923
          case 3: // EXP
14924
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14925
              this.exp = iprot.readBool();
14926
              setExpIsSet(true);
14927
            } else { 
14928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14929
            }
14930
            break;
14931
          case 4: // COD
14932
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14933
              this.cod = iprot.readBool();
14934
              setCodIsSet(true);
14935
            } else { 
14936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14937
            }
14938
            break;
6524 rajveer 14939
          case 5: // OTG_AVAILABLE
14940
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14941
              this.otgAvailable = iprot.readBool();
14942
              setOtgAvailableIsSet(true);
14943
            } else { 
14944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14945
            }
14946
            break;
6322 amar.kumar 14947
          default:
14948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14949
        }
14950
        iprot.readFieldEnd();
14951
      }
14952
      iprot.readStructEnd();
14953
      validate();
14954
    }
14955
 
14956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14957
      validate();
14958
 
14959
      oprot.writeStructBegin(STRUCT_DESC);
14960
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14961
      oprot.writeI64(this.providerId);
14962
      oprot.writeFieldEnd();
14963
      if (this.pincode != null) {
14964
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14965
        oprot.writeString(this.pincode);
14966
        oprot.writeFieldEnd();
14967
      }
14968
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14969
      oprot.writeBool(this.exp);
14970
      oprot.writeFieldEnd();
14971
      oprot.writeFieldBegin(COD_FIELD_DESC);
14972
      oprot.writeBool(this.cod);
14973
      oprot.writeFieldEnd();
6524 rajveer 14974
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14975
      oprot.writeBool(this.otgAvailable);
14976
      oprot.writeFieldEnd();
6322 amar.kumar 14977
      oprot.writeFieldStop();
14978
      oprot.writeStructEnd();
14979
    }
14980
 
14981
    @Override
14982
    public String toString() {
14983
      StringBuilder sb = new StringBuilder("updatePincode_args(");
14984
      boolean first = true;
14985
 
14986
      sb.append("providerId:");
14987
      sb.append(this.providerId);
14988
      first = false;
14989
      if (!first) sb.append(", ");
14990
      sb.append("pincode:");
14991
      if (this.pincode == null) {
14992
        sb.append("null");
14993
      } else {
14994
        sb.append(this.pincode);
14995
      }
14996
      first = false;
14997
      if (!first) sb.append(", ");
14998
      sb.append("exp:");
14999
      sb.append(this.exp);
15000
      first = false;
15001
      if (!first) sb.append(", ");
15002
      sb.append("cod:");
15003
      sb.append(this.cod);
15004
      first = false;
6524 rajveer 15005
      if (!first) sb.append(", ");
15006
      sb.append("otgAvailable:");
15007
      sb.append(this.otgAvailable);
15008
      first = false;
6322 amar.kumar 15009
      sb.append(")");
15010
      return sb.toString();
15011
    }
15012
 
15013
    public void validate() throws org.apache.thrift.TException {
15014
      // check for required fields
15015
    }
15016
 
15017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15018
      try {
15019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15020
      } catch (org.apache.thrift.TException te) {
15021
        throw new java.io.IOException(te);
15022
      }
15023
    }
15024
 
15025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15026
      try {
15027
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15028
        __isset_bit_vector = new BitSet(1);
15029
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15030
      } catch (org.apache.thrift.TException te) {
15031
        throw new java.io.IOException(te);
15032
      }
15033
    }
15034
 
15035
  }
15036
 
15037
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15038
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15039
 
15040
 
15041
 
15042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15044
;
15045
 
15046
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15047
 
15048
      static {
15049
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15050
          byName.put(field.getFieldName(), field);
15051
        }
15052
      }
15053
 
15054
      /**
15055
       * Find the _Fields constant that matches fieldId, or null if its not found.
15056
       */
15057
      public static _Fields findByThriftId(int fieldId) {
15058
        switch(fieldId) {
15059
          default:
15060
            return null;
15061
        }
15062
      }
15063
 
15064
      /**
15065
       * Find the _Fields constant that matches fieldId, throwing an exception
15066
       * if it is not found.
15067
       */
15068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15069
        _Fields fields = findByThriftId(fieldId);
15070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15071
        return fields;
15072
      }
15073
 
15074
      /**
15075
       * Find the _Fields constant that matches name, or null if its not found.
15076
       */
15077
      public static _Fields findByName(String name) {
15078
        return byName.get(name);
15079
      }
15080
 
15081
      private final short _thriftId;
15082
      private final String _fieldName;
15083
 
15084
      _Fields(short thriftId, String fieldName) {
15085
        _thriftId = thriftId;
15086
        _fieldName = fieldName;
15087
      }
15088
 
15089
      public short getThriftFieldId() {
15090
        return _thriftId;
15091
      }
15092
 
15093
      public String getFieldName() {
15094
        return _fieldName;
15095
      }
15096
    }
15097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15098
    static {
15099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15102
    }
15103
 
15104
    public updatePincode_result() {
15105
    }
15106
 
15107
    /**
15108
     * Performs a deep copy on <i>other</i>.
15109
     */
15110
    public updatePincode_result(updatePincode_result other) {
15111
    }
15112
 
15113
    public updatePincode_result deepCopy() {
15114
      return new updatePincode_result(this);
15115
    }
15116
 
15117
    @Override
15118
    public void clear() {
15119
    }
15120
 
15121
    public void setFieldValue(_Fields field, Object value) {
15122
      switch (field) {
15123
      }
15124
    }
15125
 
15126
    public Object getFieldValue(_Fields field) {
15127
      switch (field) {
15128
      }
15129
      throw new IllegalStateException();
15130
    }
15131
 
15132
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15133
    public boolean isSet(_Fields field) {
15134
      if (field == null) {
15135
        throw new IllegalArgumentException();
15136
      }
15137
 
15138
      switch (field) {
15139
      }
15140
      throw new IllegalStateException();
15141
    }
15142
 
15143
    @Override
15144
    public boolean equals(Object that) {
15145
      if (that == null)
15146
        return false;
15147
      if (that instanceof updatePincode_result)
15148
        return this.equals((updatePincode_result)that);
15149
      return false;
15150
    }
15151
 
15152
    public boolean equals(updatePincode_result that) {
15153
      if (that == null)
15154
        return false;
15155
 
15156
      return true;
15157
    }
15158
 
15159
    @Override
15160
    public int hashCode() {
15161
      return 0;
15162
    }
15163
 
15164
    public int compareTo(updatePincode_result other) {
15165
      if (!getClass().equals(other.getClass())) {
15166
        return getClass().getName().compareTo(other.getClass().getName());
15167
      }
15168
 
15169
      int lastComparison = 0;
15170
      updatePincode_result typedOther = (updatePincode_result)other;
15171
 
15172
      return 0;
15173
    }
15174
 
15175
    public _Fields fieldForId(int fieldId) {
15176
      return _Fields.findByThriftId(fieldId);
15177
    }
15178
 
15179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15180
      org.apache.thrift.protocol.TField field;
15181
      iprot.readStructBegin();
15182
      while (true)
15183
      {
15184
        field = iprot.readFieldBegin();
15185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15186
          break;
15187
        }
15188
        switch (field.id) {
15189
          default:
15190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15191
        }
15192
        iprot.readFieldEnd();
15193
      }
15194
      iprot.readStructEnd();
15195
      validate();
15196
    }
15197
 
15198
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15199
      oprot.writeStructBegin(STRUCT_DESC);
15200
 
15201
      oprot.writeFieldStop();
15202
      oprot.writeStructEnd();
15203
    }
15204
 
15205
    @Override
15206
    public String toString() {
15207
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15208
      boolean first = true;
15209
 
15210
      sb.append(")");
15211
      return sb.toString();
15212
    }
15213
 
15214
    public void validate() throws org.apache.thrift.TException {
15215
      // check for required fields
15216
    }
15217
 
15218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15219
      try {
15220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15221
      } catch (org.apache.thrift.TException te) {
15222
        throw new java.io.IOException(te);
15223
      }
15224
    }
15225
 
15226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15227
      try {
15228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15229
      } catch (org.apache.thrift.TException te) {
15230
        throw new java.io.IOException(te);
15231
      }
15232
    }
15233
 
15234
  }
15235
 
7567 rajveer 15236
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15238
 
15239
    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);
15240
    private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)2);
15241
    private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);
15242
 
15243
    private long providerId; // required
15244
    private boolean cod; // required
15245
    private List<String> awbs; // required
15246
 
15247
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15248
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15249
      PROVIDER_ID((short)1, "providerId"),
15250
      COD((short)2, "cod"),
15251
      AWBS((short)3, "awbs");
15252
 
15253
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15254
 
15255
      static {
15256
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15257
          byName.put(field.getFieldName(), field);
15258
        }
15259
      }
15260
 
15261
      /**
15262
       * Find the _Fields constant that matches fieldId, or null if its not found.
15263
       */
15264
      public static _Fields findByThriftId(int fieldId) {
15265
        switch(fieldId) {
15266
          case 1: // PROVIDER_ID
15267
            return PROVIDER_ID;
15268
          case 2: // COD
15269
            return COD;
15270
          case 3: // AWBS
15271
            return AWBS;
15272
          default:
15273
            return null;
15274
        }
15275
      }
15276
 
15277
      /**
15278
       * Find the _Fields constant that matches fieldId, throwing an exception
15279
       * if it is not found.
15280
       */
15281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15282
        _Fields fields = findByThriftId(fieldId);
15283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15284
        return fields;
15285
      }
15286
 
15287
      /**
15288
       * Find the _Fields constant that matches name, or null if its not found.
15289
       */
15290
      public static _Fields findByName(String name) {
15291
        return byName.get(name);
15292
      }
15293
 
15294
      private final short _thriftId;
15295
      private final String _fieldName;
15296
 
15297
      _Fields(short thriftId, String fieldName) {
15298
        _thriftId = thriftId;
15299
        _fieldName = fieldName;
15300
      }
15301
 
15302
      public short getThriftFieldId() {
15303
        return _thriftId;
15304
      }
15305
 
15306
      public String getFieldName() {
15307
        return _fieldName;
15308
      }
15309
    }
15310
 
15311
    // isset id assignments
15312
    private static final int __PROVIDERID_ISSET_ID = 0;
15313
    private static final int __COD_ISSET_ID = 1;
15314
    private BitSet __isset_bit_vector = new BitSet(2);
15315
 
15316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15317
    static {
15318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15319
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15321
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15323
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15324
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15325
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
15326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15328
    }
15329
 
15330
    public addNewAwbs_args() {
15331
    }
15332
 
15333
    public addNewAwbs_args(
15334
      long providerId,
15335
      boolean cod,
15336
      List<String> awbs)
15337
    {
15338
      this();
15339
      this.providerId = providerId;
15340
      setProviderIdIsSet(true);
15341
      this.cod = cod;
15342
      setCodIsSet(true);
15343
      this.awbs = awbs;
15344
    }
15345
 
15346
    /**
15347
     * Performs a deep copy on <i>other</i>.
15348
     */
15349
    public addNewAwbs_args(addNewAwbs_args other) {
15350
      __isset_bit_vector.clear();
15351
      __isset_bit_vector.or(other.__isset_bit_vector);
15352
      this.providerId = other.providerId;
15353
      this.cod = other.cod;
15354
      if (other.isSetAwbs()) {
15355
        List<String> __this__awbs = new ArrayList<String>();
15356
        for (String other_element : other.awbs) {
15357
          __this__awbs.add(other_element);
15358
        }
15359
        this.awbs = __this__awbs;
15360
      }
15361
    }
15362
 
15363
    public addNewAwbs_args deepCopy() {
15364
      return new addNewAwbs_args(this);
15365
    }
15366
 
15367
    @Override
15368
    public void clear() {
15369
      setProviderIdIsSet(false);
15370
      this.providerId = 0;
15371
      setCodIsSet(false);
15372
      this.cod = false;
15373
      this.awbs = null;
15374
    }
15375
 
15376
    public long getProviderId() {
15377
      return this.providerId;
15378
    }
15379
 
15380
    public void setProviderId(long providerId) {
15381
      this.providerId = providerId;
15382
      setProviderIdIsSet(true);
15383
    }
15384
 
15385
    public void unsetProviderId() {
15386
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15387
    }
15388
 
15389
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15390
    public boolean isSetProviderId() {
15391
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15392
    }
15393
 
15394
    public void setProviderIdIsSet(boolean value) {
15395
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15396
    }
15397
 
15398
    public boolean isCod() {
15399
      return this.cod;
15400
    }
15401
 
15402
    public void setCod(boolean cod) {
15403
      this.cod = cod;
15404
      setCodIsSet(true);
15405
    }
15406
 
15407
    public void unsetCod() {
15408
      __isset_bit_vector.clear(__COD_ISSET_ID);
15409
    }
15410
 
15411
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15412
    public boolean isSetCod() {
15413
      return __isset_bit_vector.get(__COD_ISSET_ID);
15414
    }
15415
 
15416
    public void setCodIsSet(boolean value) {
15417
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15418
    }
15419
 
15420
    public int getAwbsSize() {
15421
      return (this.awbs == null) ? 0 : this.awbs.size();
15422
    }
15423
 
15424
    public java.util.Iterator<String> getAwbsIterator() {
15425
      return (this.awbs == null) ? null : this.awbs.iterator();
15426
    }
15427
 
15428
    public void addToAwbs(String elem) {
15429
      if (this.awbs == null) {
15430
        this.awbs = new ArrayList<String>();
15431
      }
15432
      this.awbs.add(elem);
15433
    }
15434
 
15435
    public List<String> getAwbs() {
15436
      return this.awbs;
15437
    }
15438
 
15439
    public void setAwbs(List<String> awbs) {
15440
      this.awbs = awbs;
15441
    }
15442
 
15443
    public void unsetAwbs() {
15444
      this.awbs = null;
15445
    }
15446
 
15447
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15448
    public boolean isSetAwbs() {
15449
      return this.awbs != null;
15450
    }
15451
 
15452
    public void setAwbsIsSet(boolean value) {
15453
      if (!value) {
15454
        this.awbs = null;
15455
      }
15456
    }
15457
 
15458
    public void setFieldValue(_Fields field, Object value) {
15459
      switch (field) {
15460
      case PROVIDER_ID:
15461
        if (value == null) {
15462
          unsetProviderId();
15463
        } else {
15464
          setProviderId((Long)value);
15465
        }
15466
        break;
15467
 
15468
      case COD:
15469
        if (value == null) {
15470
          unsetCod();
15471
        } else {
15472
          setCod((Boolean)value);
15473
        }
15474
        break;
15475
 
15476
      case AWBS:
15477
        if (value == null) {
15478
          unsetAwbs();
15479
        } else {
15480
          setAwbs((List<String>)value);
15481
        }
15482
        break;
15483
 
15484
      }
15485
    }
15486
 
15487
    public Object getFieldValue(_Fields field) {
15488
      switch (field) {
15489
      case PROVIDER_ID:
15490
        return Long.valueOf(getProviderId());
15491
 
15492
      case COD:
15493
        return Boolean.valueOf(isCod());
15494
 
15495
      case AWBS:
15496
        return getAwbs();
15497
 
15498
      }
15499
      throw new IllegalStateException();
15500
    }
15501
 
15502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15503
    public boolean isSet(_Fields field) {
15504
      if (field == null) {
15505
        throw new IllegalArgumentException();
15506
      }
15507
 
15508
      switch (field) {
15509
      case PROVIDER_ID:
15510
        return isSetProviderId();
15511
      case COD:
15512
        return isSetCod();
15513
      case AWBS:
15514
        return isSetAwbs();
15515
      }
15516
      throw new IllegalStateException();
15517
    }
15518
 
15519
    @Override
15520
    public boolean equals(Object that) {
15521
      if (that == null)
15522
        return false;
15523
      if (that instanceof addNewAwbs_args)
15524
        return this.equals((addNewAwbs_args)that);
15525
      return false;
15526
    }
15527
 
15528
    public boolean equals(addNewAwbs_args that) {
15529
      if (that == null)
15530
        return false;
15531
 
15532
      boolean this_present_providerId = true;
15533
      boolean that_present_providerId = true;
15534
      if (this_present_providerId || that_present_providerId) {
15535
        if (!(this_present_providerId && that_present_providerId))
15536
          return false;
15537
        if (this.providerId != that.providerId)
15538
          return false;
15539
      }
15540
 
15541
      boolean this_present_cod = true;
15542
      boolean that_present_cod = true;
15543
      if (this_present_cod || that_present_cod) {
15544
        if (!(this_present_cod && that_present_cod))
15545
          return false;
15546
        if (this.cod != that.cod)
15547
          return false;
15548
      }
15549
 
15550
      boolean this_present_awbs = true && this.isSetAwbs();
15551
      boolean that_present_awbs = true && that.isSetAwbs();
15552
      if (this_present_awbs || that_present_awbs) {
15553
        if (!(this_present_awbs && that_present_awbs))
15554
          return false;
15555
        if (!this.awbs.equals(that.awbs))
15556
          return false;
15557
      }
15558
 
15559
      return true;
15560
    }
15561
 
15562
    @Override
15563
    public int hashCode() {
15564
      return 0;
15565
    }
15566
 
15567
    public int compareTo(addNewAwbs_args other) {
15568
      if (!getClass().equals(other.getClass())) {
15569
        return getClass().getName().compareTo(other.getClass().getName());
15570
      }
15571
 
15572
      int lastComparison = 0;
15573
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15574
 
15575
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15576
      if (lastComparison != 0) {
15577
        return lastComparison;
15578
      }
15579
      if (isSetProviderId()) {
15580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15581
        if (lastComparison != 0) {
15582
          return lastComparison;
15583
        }
15584
      }
15585
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15586
      if (lastComparison != 0) {
15587
        return lastComparison;
15588
      }
15589
      if (isSetCod()) {
15590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15591
        if (lastComparison != 0) {
15592
          return lastComparison;
15593
        }
15594
      }
15595
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
15596
      if (lastComparison != 0) {
15597
        return lastComparison;
15598
      }
15599
      if (isSetAwbs()) {
15600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
15601
        if (lastComparison != 0) {
15602
          return lastComparison;
15603
        }
15604
      }
15605
      return 0;
15606
    }
15607
 
15608
    public _Fields fieldForId(int fieldId) {
15609
      return _Fields.findByThriftId(fieldId);
15610
    }
15611
 
15612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15613
      org.apache.thrift.protocol.TField field;
15614
      iprot.readStructBegin();
15615
      while (true)
15616
      {
15617
        field = iprot.readFieldBegin();
15618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15619
          break;
15620
        }
15621
        switch (field.id) {
15622
          case 1: // PROVIDER_ID
15623
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15624
              this.providerId = iprot.readI64();
15625
              setProviderIdIsSet(true);
15626
            } else { 
15627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15628
            }
15629
            break;
15630
          case 2: // COD
15631
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15632
              this.cod = iprot.readBool();
15633
              setCodIsSet(true);
15634
            } else { 
15635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15636
            }
15637
            break;
15638
          case 3: // AWBS
15639
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15640
              {
7792 anupam.sin 15641
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
15642
                this.awbs = new ArrayList<String>(_list24.size);
15643
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 15644
                {
7792 anupam.sin 15645
                  String _elem26; // required
15646
                  _elem26 = iprot.readString();
15647
                  this.awbs.add(_elem26);
7567 rajveer 15648
                }
15649
                iprot.readListEnd();
15650
              }
15651
            } else { 
15652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15653
            }
15654
            break;
15655
          default:
15656
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15657
        }
15658
        iprot.readFieldEnd();
15659
      }
15660
      iprot.readStructEnd();
15661
      validate();
15662
    }
15663
 
15664
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15665
      validate();
15666
 
15667
      oprot.writeStructBegin(STRUCT_DESC);
15668
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15669
      oprot.writeI64(this.providerId);
15670
      oprot.writeFieldEnd();
15671
      oprot.writeFieldBegin(COD_FIELD_DESC);
15672
      oprot.writeBool(this.cod);
15673
      oprot.writeFieldEnd();
15674
      if (this.awbs != null) {
15675
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
15676
        {
15677
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 15678
          for (String _iter27 : this.awbs)
7567 rajveer 15679
          {
7792 anupam.sin 15680
            oprot.writeString(_iter27);
7567 rajveer 15681
          }
15682
          oprot.writeListEnd();
15683
        }
15684
        oprot.writeFieldEnd();
15685
      }
15686
      oprot.writeFieldStop();
15687
      oprot.writeStructEnd();
15688
    }
15689
 
15690
    @Override
15691
    public String toString() {
15692
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
15693
      boolean first = true;
15694
 
15695
      sb.append("providerId:");
15696
      sb.append(this.providerId);
15697
      first = false;
15698
      if (!first) sb.append(", ");
15699
      sb.append("cod:");
15700
      sb.append(this.cod);
15701
      first = false;
15702
      if (!first) sb.append(", ");
15703
      sb.append("awbs:");
15704
      if (this.awbs == null) {
15705
        sb.append("null");
15706
      } else {
15707
        sb.append(this.awbs);
15708
      }
15709
      first = false;
15710
      sb.append(")");
15711
      return sb.toString();
15712
    }
15713
 
15714
    public void validate() throws org.apache.thrift.TException {
15715
      // check for required fields
15716
    }
15717
 
15718
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15719
      try {
15720
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15721
      } catch (org.apache.thrift.TException te) {
15722
        throw new java.io.IOException(te);
15723
      }
15724
    }
15725
 
15726
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15727
      try {
15728
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15729
        __isset_bit_vector = new BitSet(1);
15730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15731
      } catch (org.apache.thrift.TException te) {
15732
        throw new java.io.IOException(te);
15733
      }
15734
    }
15735
 
15736
  }
15737
 
15738
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
15739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
15740
 
15741
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
15742
 
15743
    private boolean success; // required
15744
 
15745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15747
      SUCCESS((short)0, "success");
15748
 
15749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15750
 
15751
      static {
15752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15753
          byName.put(field.getFieldName(), field);
15754
        }
15755
      }
15756
 
15757
      /**
15758
       * Find the _Fields constant that matches fieldId, or null if its not found.
15759
       */
15760
      public static _Fields findByThriftId(int fieldId) {
15761
        switch(fieldId) {
15762
          case 0: // SUCCESS
15763
            return SUCCESS;
15764
          default:
15765
            return null;
15766
        }
15767
      }
15768
 
15769
      /**
15770
       * Find the _Fields constant that matches fieldId, throwing an exception
15771
       * if it is not found.
15772
       */
15773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15774
        _Fields fields = findByThriftId(fieldId);
15775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15776
        return fields;
15777
      }
15778
 
15779
      /**
15780
       * Find the _Fields constant that matches name, or null if its not found.
15781
       */
15782
      public static _Fields findByName(String name) {
15783
        return byName.get(name);
15784
      }
15785
 
15786
      private final short _thriftId;
15787
      private final String _fieldName;
15788
 
15789
      _Fields(short thriftId, String fieldName) {
15790
        _thriftId = thriftId;
15791
        _fieldName = fieldName;
15792
      }
15793
 
15794
      public short getThriftFieldId() {
15795
        return _thriftId;
15796
      }
15797
 
15798
      public String getFieldName() {
15799
        return _fieldName;
15800
      }
15801
    }
15802
 
15803
    // isset id assignments
15804
    private static final int __SUCCESS_ISSET_ID = 0;
15805
    private BitSet __isset_bit_vector = new BitSet(1);
15806
 
15807
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15808
    static {
15809
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15810
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
15814
    }
15815
 
15816
    public addNewAwbs_result() {
15817
    }
15818
 
15819
    public addNewAwbs_result(
15820
      boolean success)
15821
    {
15822
      this();
15823
      this.success = success;
15824
      setSuccessIsSet(true);
15825
    }
15826
 
15827
    /**
15828
     * Performs a deep copy on <i>other</i>.
15829
     */
15830
    public addNewAwbs_result(addNewAwbs_result other) {
15831
      __isset_bit_vector.clear();
15832
      __isset_bit_vector.or(other.__isset_bit_vector);
15833
      this.success = other.success;
15834
    }
15835
 
15836
    public addNewAwbs_result deepCopy() {
15837
      return new addNewAwbs_result(this);
15838
    }
15839
 
15840
    @Override
15841
    public void clear() {
15842
      setSuccessIsSet(false);
15843
      this.success = false;
15844
    }
15845
 
15846
    public boolean isSuccess() {
15847
      return this.success;
15848
    }
15849
 
15850
    public void setSuccess(boolean success) {
15851
      this.success = success;
15852
      setSuccessIsSet(true);
15853
    }
15854
 
15855
    public void unsetSuccess() {
15856
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
15857
    }
15858
 
15859
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15860
    public boolean isSetSuccess() {
15861
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
15862
    }
15863
 
15864
    public void setSuccessIsSet(boolean value) {
15865
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
15866
    }
15867
 
15868
    public void setFieldValue(_Fields field, Object value) {
15869
      switch (field) {
15870
      case SUCCESS:
15871
        if (value == null) {
15872
          unsetSuccess();
15873
        } else {
15874
          setSuccess((Boolean)value);
15875
        }
15876
        break;
15877
 
15878
      }
15879
    }
15880
 
15881
    public Object getFieldValue(_Fields field) {
15882
      switch (field) {
15883
      case SUCCESS:
15884
        return Boolean.valueOf(isSuccess());
15885
 
15886
      }
15887
      throw new IllegalStateException();
15888
    }
15889
 
15890
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15891
    public boolean isSet(_Fields field) {
15892
      if (field == null) {
15893
        throw new IllegalArgumentException();
15894
      }
15895
 
15896
      switch (field) {
15897
      case SUCCESS:
15898
        return isSetSuccess();
15899
      }
15900
      throw new IllegalStateException();
15901
    }
15902
 
15903
    @Override
15904
    public boolean equals(Object that) {
15905
      if (that == null)
15906
        return false;
15907
      if (that instanceof addNewAwbs_result)
15908
        return this.equals((addNewAwbs_result)that);
15909
      return false;
15910
    }
15911
 
15912
    public boolean equals(addNewAwbs_result that) {
15913
      if (that == null)
15914
        return false;
15915
 
15916
      boolean this_present_success = true;
15917
      boolean that_present_success = true;
15918
      if (this_present_success || that_present_success) {
15919
        if (!(this_present_success && that_present_success))
15920
          return false;
15921
        if (this.success != that.success)
15922
          return false;
15923
      }
15924
 
15925
      return true;
15926
    }
15927
 
15928
    @Override
15929
    public int hashCode() {
15930
      return 0;
15931
    }
15932
 
15933
    public int compareTo(addNewAwbs_result other) {
15934
      if (!getClass().equals(other.getClass())) {
15935
        return getClass().getName().compareTo(other.getClass().getName());
15936
      }
15937
 
15938
      int lastComparison = 0;
15939
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
15940
 
15941
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15942
      if (lastComparison != 0) {
15943
        return lastComparison;
15944
      }
15945
      if (isSetSuccess()) {
15946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15947
        if (lastComparison != 0) {
15948
          return lastComparison;
15949
        }
15950
      }
15951
      return 0;
15952
    }
15953
 
15954
    public _Fields fieldForId(int fieldId) {
15955
      return _Fields.findByThriftId(fieldId);
15956
    }
15957
 
15958
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15959
      org.apache.thrift.protocol.TField field;
15960
      iprot.readStructBegin();
15961
      while (true)
15962
      {
15963
        field = iprot.readFieldBegin();
15964
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15965
          break;
15966
        }
15967
        switch (field.id) {
15968
          case 0: // SUCCESS
15969
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15970
              this.success = iprot.readBool();
15971
              setSuccessIsSet(true);
15972
            } else { 
15973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15974
            }
15975
            break;
15976
          default:
15977
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15978
        }
15979
        iprot.readFieldEnd();
15980
      }
15981
      iprot.readStructEnd();
15982
      validate();
15983
    }
15984
 
15985
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15986
      oprot.writeStructBegin(STRUCT_DESC);
15987
 
15988
      if (this.isSetSuccess()) {
15989
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15990
        oprot.writeBool(this.success);
15991
        oprot.writeFieldEnd();
15992
      }
15993
      oprot.writeFieldStop();
15994
      oprot.writeStructEnd();
15995
    }
15996
 
15997
    @Override
15998
    public String toString() {
15999
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16000
      boolean first = true;
16001
 
16002
      sb.append("success:");
16003
      sb.append(this.success);
16004
      first = false;
16005
      sb.append(")");
16006
      return sb.toString();
16007
    }
16008
 
16009
    public void validate() throws org.apache.thrift.TException {
16010
      // check for required fields
16011
    }
16012
 
16013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16014
      try {
16015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16016
      } catch (org.apache.thrift.TException te) {
16017
        throw new java.io.IOException(te);
16018
      }
16019
    }
16020
 
16021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16022
      try {
16023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16024
      } catch (org.apache.thrift.TException te) {
16025
        throw new java.io.IOException(te);
16026
      }
16027
    }
16028
 
16029
  }
16030
 
7788 manish.sha 16031
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16033
 
7788 manish.sha 16034
    private static final org.apache.thrift.protocol.TField LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsLocationInfoList", org.apache.thrift.protocol.TType.LIST, (short)1);
16035
    private static final org.apache.thrift.protocol.TField RUN_COMPLETE_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("runCompleteUpdate", org.apache.thrift.protocol.TType.BOOL, (short)2);
7737 manish.sha 16036
 
7788 manish.sha 16037
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16038
    private boolean runCompleteUpdate; // required
7737 manish.sha 16039
 
16040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16041
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16042
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16043
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16044
 
16045
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16046
 
16047
      static {
16048
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16049
          byName.put(field.getFieldName(), field);
16050
        }
16051
      }
16052
 
16053
      /**
16054
       * Find the _Fields constant that matches fieldId, or null if its not found.
16055
       */
16056
      public static _Fields findByThriftId(int fieldId) {
16057
        switch(fieldId) {
7788 manish.sha 16058
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16059
            return LOGISTICS_LOCATION_INFO_LIST;
16060
          case 2: // RUN_COMPLETE_UPDATE
16061
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16062
          default:
16063
            return null;
16064
        }
16065
      }
16066
 
16067
      /**
16068
       * Find the _Fields constant that matches fieldId, throwing an exception
16069
       * if it is not found.
16070
       */
16071
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16072
        _Fields fields = findByThriftId(fieldId);
16073
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16074
        return fields;
16075
      }
16076
 
16077
      /**
16078
       * Find the _Fields constant that matches name, or null if its not found.
16079
       */
16080
      public static _Fields findByName(String name) {
16081
        return byName.get(name);
16082
      }
16083
 
16084
      private final short _thriftId;
16085
      private final String _fieldName;
16086
 
16087
      _Fields(short thriftId, String fieldName) {
16088
        _thriftId = thriftId;
16089
        _fieldName = fieldName;
16090
      }
16091
 
16092
      public short getThriftFieldId() {
16093
        return _thriftId;
16094
      }
16095
 
16096
      public String getFieldName() {
16097
        return _fieldName;
16098
      }
16099
    }
16100
 
16101
    // isset id assignments
7788 manish.sha 16102
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16103
    private BitSet __isset_bit_vector = new BitSet(1);
16104
 
16105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16106
    static {
16107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16108
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16109
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16110
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16111
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16115
    }
16116
 
7788 manish.sha 16117
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16118
    }
16119
 
7788 manish.sha 16120
    public runLogisticsLocationInfoUpdate_args(
16121
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16122
      boolean runCompleteUpdate)
7737 manish.sha 16123
    {
16124
      this();
7788 manish.sha 16125
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16126
      this.runCompleteUpdate = runCompleteUpdate;
16127
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16128
    }
16129
 
16130
    /**
16131
     * Performs a deep copy on <i>other</i>.
16132
     */
7788 manish.sha 16133
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16134
      __isset_bit_vector.clear();
16135
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16136
      if (other.isSetLogisticsLocationInfoList()) {
16137
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16138
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16139
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16140
        }
16141
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16142
      }
7788 manish.sha 16143
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16144
    }
16145
 
7788 manish.sha 16146
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16147
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16148
    }
16149
 
16150
    @Override
16151
    public void clear() {
7788 manish.sha 16152
      this.logisticsLocationInfoList = null;
16153
      setRunCompleteUpdateIsSet(false);
16154
      this.runCompleteUpdate = false;
7737 manish.sha 16155
    }
16156
 
7788 manish.sha 16157
    public int getLogisticsLocationInfoListSize() {
16158
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16159
    }
16160
 
7788 manish.sha 16161
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16162
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16163
    }
16164
 
7788 manish.sha 16165
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16166
      if (this.logisticsLocationInfoList == null) {
16167
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16168
      }
16169
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16170
    }
16171
 
7788 manish.sha 16172
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16173
      return this.logisticsLocationInfoList;
7737 manish.sha 16174
    }
16175
 
7788 manish.sha 16176
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16177
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16178
    }
16179
 
7788 manish.sha 16180
    public void unsetLogisticsLocationInfoList() {
16181
      this.logisticsLocationInfoList = null;
7737 manish.sha 16182
    }
16183
 
7788 manish.sha 16184
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16185
    public boolean isSetLogisticsLocationInfoList() {
16186
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16187
    }
16188
 
7788 manish.sha 16189
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16190
      if (!value) {
16191
        this.logisticsLocationInfoList = null;
16192
      }
7737 manish.sha 16193
    }
16194
 
7788 manish.sha 16195
    public boolean isRunCompleteUpdate() {
16196
      return this.runCompleteUpdate;
7737 manish.sha 16197
    }
16198
 
7788 manish.sha 16199
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16200
      this.runCompleteUpdate = runCompleteUpdate;
16201
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16202
    }
16203
 
7788 manish.sha 16204
    public void unsetRunCompleteUpdate() {
16205
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16206
    }
16207
 
16208
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16209
    public boolean isSetRunCompleteUpdate() {
16210
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16211
    }
16212
 
16213
    public void setRunCompleteUpdateIsSet(boolean value) {
16214
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16215
    }
16216
 
7737 manish.sha 16217
    public void setFieldValue(_Fields field, Object value) {
16218
      switch (field) {
7788 manish.sha 16219
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16220
        if (value == null) {
7788 manish.sha 16221
          unsetLogisticsLocationInfoList();
7737 manish.sha 16222
        } else {
7788 manish.sha 16223
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16224
        }
16225
        break;
16226
 
7788 manish.sha 16227
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16228
        if (value == null) {
7788 manish.sha 16229
          unsetRunCompleteUpdate();
7737 manish.sha 16230
        } else {
7788 manish.sha 16231
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16232
        }
16233
        break;
16234
 
16235
      }
16236
    }
16237
 
16238
    public Object getFieldValue(_Fields field) {
16239
      switch (field) {
7788 manish.sha 16240
      case LOGISTICS_LOCATION_INFO_LIST:
16241
        return getLogisticsLocationInfoList();
7737 manish.sha 16242
 
7788 manish.sha 16243
      case RUN_COMPLETE_UPDATE:
16244
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16245
 
16246
      }
16247
      throw new IllegalStateException();
16248
    }
16249
 
16250
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16251
    public boolean isSet(_Fields field) {
16252
      if (field == null) {
16253
        throw new IllegalArgumentException();
16254
      }
16255
 
16256
      switch (field) {
7788 manish.sha 16257
      case LOGISTICS_LOCATION_INFO_LIST:
16258
        return isSetLogisticsLocationInfoList();
16259
      case RUN_COMPLETE_UPDATE:
16260
        return isSetRunCompleteUpdate();
7737 manish.sha 16261
      }
16262
      throw new IllegalStateException();
16263
    }
16264
 
16265
    @Override
16266
    public boolean equals(Object that) {
16267
      if (that == null)
16268
        return false;
7788 manish.sha 16269
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16270
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16271
      return false;
16272
    }
16273
 
7788 manish.sha 16274
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16275
      if (that == null)
16276
        return false;
16277
 
7788 manish.sha 16278
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16279
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16280
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16281
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16282
          return false;
7788 manish.sha 16283
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16284
          return false;
16285
      }
16286
 
7788 manish.sha 16287
      boolean this_present_runCompleteUpdate = true;
16288
      boolean that_present_runCompleteUpdate = true;
16289
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16290
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16291
          return false;
7788 manish.sha 16292
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16293
          return false;
16294
      }
16295
 
16296
      return true;
16297
    }
16298
 
16299
    @Override
16300
    public int hashCode() {
16301
      return 0;
16302
    }
16303
 
7788 manish.sha 16304
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16305
      if (!getClass().equals(other.getClass())) {
16306
        return getClass().getName().compareTo(other.getClass().getName());
16307
      }
16308
 
16309
      int lastComparison = 0;
7788 manish.sha 16310
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16311
 
7788 manish.sha 16312
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16313
      if (lastComparison != 0) {
16314
        return lastComparison;
16315
      }
7788 manish.sha 16316
      if (isSetLogisticsLocationInfoList()) {
16317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16318
        if (lastComparison != 0) {
16319
          return lastComparison;
16320
        }
16321
      }
7788 manish.sha 16322
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16323
      if (lastComparison != 0) {
16324
        return lastComparison;
16325
      }
7788 manish.sha 16326
      if (isSetRunCompleteUpdate()) {
16327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16328
        if (lastComparison != 0) {
16329
          return lastComparison;
16330
        }
16331
      }
16332
      return 0;
16333
    }
16334
 
16335
    public _Fields fieldForId(int fieldId) {
16336
      return _Fields.findByThriftId(fieldId);
16337
    }
16338
 
16339
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16340
      org.apache.thrift.protocol.TField field;
16341
      iprot.readStructBegin();
16342
      while (true)
16343
      {
16344
        field = iprot.readFieldBegin();
16345
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16346
          break;
16347
        }
16348
        switch (field.id) {
7788 manish.sha 16349
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16350
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16351
              {
7808 anupam.sin 16352
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16353
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16354
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16355
                {
7808 anupam.sin 16356
                  LogisticsLocationInfo _elem30; // required
16357
                  _elem30 = new LogisticsLocationInfo();
16358
                  _elem30.read(iprot);
16359
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16360
                }
16361
                iprot.readListEnd();
16362
              }
7737 manish.sha 16363
            } else { 
16364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16365
            }
16366
            break;
7788 manish.sha 16367
          case 2: // RUN_COMPLETE_UPDATE
16368
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16369
              this.runCompleteUpdate = iprot.readBool();
16370
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16371
            } else { 
16372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16373
            }
16374
            break;
16375
          default:
16376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16377
        }
16378
        iprot.readFieldEnd();
16379
      }
16380
      iprot.readStructEnd();
16381
      validate();
16382
    }
16383
 
16384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16385
      validate();
16386
 
16387
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16388
      if (this.logisticsLocationInfoList != null) {
16389
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16390
        {
16391
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16392
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16393
          {
7808 anupam.sin 16394
            _iter31.write(oprot);
7788 manish.sha 16395
          }
16396
          oprot.writeListEnd();
16397
        }
7737 manish.sha 16398
        oprot.writeFieldEnd();
16399
      }
7788 manish.sha 16400
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16401
      oprot.writeBool(this.runCompleteUpdate);
16402
      oprot.writeFieldEnd();
7737 manish.sha 16403
      oprot.writeFieldStop();
16404
      oprot.writeStructEnd();
16405
    }
16406
 
16407
    @Override
16408
    public String toString() {
7788 manish.sha 16409
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16410
      boolean first = true;
16411
 
7788 manish.sha 16412
      sb.append("logisticsLocationInfoList:");
16413
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16414
        sb.append("null");
16415
      } else {
7788 manish.sha 16416
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16417
      }
16418
      first = false;
7788 manish.sha 16419
      if (!first) sb.append(", ");
16420
      sb.append("runCompleteUpdate:");
16421
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16422
      first = false;
16423
      sb.append(")");
16424
      return sb.toString();
16425
    }
16426
 
16427
    public void validate() throws org.apache.thrift.TException {
16428
      // check for required fields
16429
    }
16430
 
16431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16432
      try {
16433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16434
      } catch (org.apache.thrift.TException te) {
16435
        throw new java.io.IOException(te);
16436
      }
16437
    }
16438
 
16439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16440
      try {
7788 manish.sha 16441
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16442
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16444
      } catch (org.apache.thrift.TException te) {
16445
        throw new java.io.IOException(te);
16446
      }
16447
    }
16448
 
16449
  }
16450
 
7788 manish.sha 16451
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16453
 
16454
 
16455
 
16456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16458
;
16459
 
16460
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16461
 
16462
      static {
16463
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16464
          byName.put(field.getFieldName(), field);
16465
        }
16466
      }
16467
 
16468
      /**
16469
       * Find the _Fields constant that matches fieldId, or null if its not found.
16470
       */
16471
      public static _Fields findByThriftId(int fieldId) {
16472
        switch(fieldId) {
16473
          default:
16474
            return null;
16475
        }
16476
      }
16477
 
16478
      /**
16479
       * Find the _Fields constant that matches fieldId, throwing an exception
16480
       * if it is not found.
16481
       */
16482
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16483
        _Fields fields = findByThriftId(fieldId);
16484
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16485
        return fields;
16486
      }
16487
 
16488
      /**
16489
       * Find the _Fields constant that matches name, or null if its not found.
16490
       */
16491
      public static _Fields findByName(String name) {
16492
        return byName.get(name);
16493
      }
16494
 
16495
      private final short _thriftId;
16496
      private final String _fieldName;
16497
 
16498
      _Fields(short thriftId, String fieldName) {
16499
        _thriftId = thriftId;
16500
        _fieldName = fieldName;
16501
      }
16502
 
16503
      public short getThriftFieldId() {
16504
        return _thriftId;
16505
      }
16506
 
16507
      public String getFieldName() {
16508
        return _fieldName;
16509
      }
16510
    }
16511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16512
    static {
16513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16514
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16515
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 16516
    }
16517
 
7788 manish.sha 16518
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 16519
    }
16520
 
16521
    /**
16522
     * Performs a deep copy on <i>other</i>.
16523
     */
7788 manish.sha 16524
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16525
    }
16526
 
7788 manish.sha 16527
    public runLogisticsLocationInfoUpdate_result deepCopy() {
16528
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 16529
    }
16530
 
16531
    @Override
16532
    public void clear() {
16533
    }
16534
 
16535
    public void setFieldValue(_Fields field, Object value) {
16536
      switch (field) {
16537
      }
16538
    }
16539
 
16540
    public Object getFieldValue(_Fields field) {
16541
      switch (field) {
16542
      }
16543
      throw new IllegalStateException();
16544
    }
16545
 
16546
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16547
    public boolean isSet(_Fields field) {
16548
      if (field == null) {
16549
        throw new IllegalArgumentException();
16550
      }
16551
 
16552
      switch (field) {
16553
      }
16554
      throw new IllegalStateException();
16555
    }
16556
 
16557
    @Override
16558
    public boolean equals(Object that) {
16559
      if (that == null)
16560
        return false;
7788 manish.sha 16561
      if (that instanceof runLogisticsLocationInfoUpdate_result)
16562
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 16563
      return false;
16564
    }
16565
 
7788 manish.sha 16566
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 16567
      if (that == null)
16568
        return false;
16569
 
16570
      return true;
16571
    }
16572
 
16573
    @Override
16574
    public int hashCode() {
16575
      return 0;
16576
    }
16577
 
7788 manish.sha 16578
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16579
      if (!getClass().equals(other.getClass())) {
16580
        return getClass().getName().compareTo(other.getClass().getName());
16581
      }
16582
 
16583
      int lastComparison = 0;
7788 manish.sha 16584
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 16585
 
16586
      return 0;
16587
    }
16588
 
16589
    public _Fields fieldForId(int fieldId) {
16590
      return _Fields.findByThriftId(fieldId);
16591
    }
16592
 
16593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16594
      org.apache.thrift.protocol.TField field;
16595
      iprot.readStructBegin();
16596
      while (true)
16597
      {
16598
        field = iprot.readFieldBegin();
16599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16600
          break;
16601
        }
16602
        switch (field.id) {
16603
          default:
16604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16605
        }
16606
        iprot.readFieldEnd();
16607
      }
16608
      iprot.readStructEnd();
16609
      validate();
16610
    }
16611
 
16612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16613
      oprot.writeStructBegin(STRUCT_DESC);
16614
 
16615
      oprot.writeFieldStop();
16616
      oprot.writeStructEnd();
16617
    }
16618
 
16619
    @Override
16620
    public String toString() {
7788 manish.sha 16621
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 16622
      boolean first = true;
16623
 
16624
      sb.append(")");
16625
      return sb.toString();
16626
    }
16627
 
16628
    public void validate() throws org.apache.thrift.TException {
16629
      // check for required fields
16630
    }
16631
 
16632
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16633
      try {
16634
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16635
      } catch (org.apache.thrift.TException te) {
16636
        throw new java.io.IOException(te);
16637
      }
16638
    }
16639
 
16640
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16641
      try {
16642
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16643
      } catch (org.apache.thrift.TException te) {
16644
        throw new java.io.IOException(te);
16645
      }
16646
    }
16647
 
16648
  }
16649
 
7888 rajveer 16650
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
16651
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
16652
 
16653
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
16654
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I64, (short)2);
16655
 
16656
    private long startDate; // required
16657
    private long days; // required
16658
 
16659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16661
      START_DATE((short)1, "startDate"),
16662
      DAYS((short)2, "days");
16663
 
16664
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16665
 
16666
      static {
16667
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16668
          byName.put(field.getFieldName(), field);
16669
        }
16670
      }
16671
 
16672
      /**
16673
       * Find the _Fields constant that matches fieldId, or null if its not found.
16674
       */
16675
      public static _Fields findByThriftId(int fieldId) {
16676
        switch(fieldId) {
16677
          case 1: // START_DATE
16678
            return START_DATE;
16679
          case 2: // DAYS
16680
            return DAYS;
16681
          default:
16682
            return null;
16683
        }
16684
      }
16685
 
16686
      /**
16687
       * Find the _Fields constant that matches fieldId, throwing an exception
16688
       * if it is not found.
16689
       */
16690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16691
        _Fields fields = findByThriftId(fieldId);
16692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16693
        return fields;
16694
      }
16695
 
16696
      /**
16697
       * Find the _Fields constant that matches name, or null if its not found.
16698
       */
16699
      public static _Fields findByName(String name) {
16700
        return byName.get(name);
16701
      }
16702
 
16703
      private final short _thriftId;
16704
      private final String _fieldName;
16705
 
16706
      _Fields(short thriftId, String fieldName) {
16707
        _thriftId = thriftId;
16708
        _fieldName = fieldName;
16709
      }
16710
 
16711
      public short getThriftFieldId() {
16712
        return _thriftId;
16713
      }
16714
 
16715
      public String getFieldName() {
16716
        return _fieldName;
16717
      }
16718
    }
16719
 
16720
    // isset id assignments
16721
    private static final int __STARTDATE_ISSET_ID = 0;
16722
    private static final int __DAYS_ISSET_ID = 1;
16723
    private BitSet __isset_bit_vector = new BitSet(2);
16724
 
16725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16726
    static {
16727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16728
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16730
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
16734
    }
16735
 
16736
    public adjustDeliveryDays_args() {
16737
    }
16738
 
16739
    public adjustDeliveryDays_args(
16740
      long startDate,
16741
      long days)
16742
    {
16743
      this();
16744
      this.startDate = startDate;
16745
      setStartDateIsSet(true);
16746
      this.days = days;
16747
      setDaysIsSet(true);
16748
    }
16749
 
16750
    /**
16751
     * Performs a deep copy on <i>other</i>.
16752
     */
16753
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
16754
      __isset_bit_vector.clear();
16755
      __isset_bit_vector.or(other.__isset_bit_vector);
16756
      this.startDate = other.startDate;
16757
      this.days = other.days;
16758
    }
16759
 
16760
    public adjustDeliveryDays_args deepCopy() {
16761
      return new adjustDeliveryDays_args(this);
16762
    }
16763
 
16764
    @Override
16765
    public void clear() {
16766
      setStartDateIsSet(false);
16767
      this.startDate = 0;
16768
      setDaysIsSet(false);
16769
      this.days = 0;
16770
    }
16771
 
16772
    public long getStartDate() {
16773
      return this.startDate;
16774
    }
16775
 
16776
    public void setStartDate(long startDate) {
16777
      this.startDate = startDate;
16778
      setStartDateIsSet(true);
16779
    }
16780
 
16781
    public void unsetStartDate() {
16782
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
16783
    }
16784
 
16785
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
16786
    public boolean isSetStartDate() {
16787
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
16788
    }
16789
 
16790
    public void setStartDateIsSet(boolean value) {
16791
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
16792
    }
16793
 
16794
    public long getDays() {
16795
      return this.days;
16796
    }
16797
 
16798
    public void setDays(long days) {
16799
      this.days = days;
16800
      setDaysIsSet(true);
16801
    }
16802
 
16803
    public void unsetDays() {
16804
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
16805
    }
16806
 
16807
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
16808
    public boolean isSetDays() {
16809
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
16810
    }
16811
 
16812
    public void setDaysIsSet(boolean value) {
16813
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
16814
    }
16815
 
16816
    public void setFieldValue(_Fields field, Object value) {
16817
      switch (field) {
16818
      case START_DATE:
16819
        if (value == null) {
16820
          unsetStartDate();
16821
        } else {
16822
          setStartDate((Long)value);
16823
        }
16824
        break;
16825
 
16826
      case DAYS:
16827
        if (value == null) {
16828
          unsetDays();
16829
        } else {
16830
          setDays((Long)value);
16831
        }
16832
        break;
16833
 
16834
      }
16835
    }
16836
 
16837
    public Object getFieldValue(_Fields field) {
16838
      switch (field) {
16839
      case START_DATE:
16840
        return Long.valueOf(getStartDate());
16841
 
16842
      case DAYS:
16843
        return Long.valueOf(getDays());
16844
 
16845
      }
16846
      throw new IllegalStateException();
16847
    }
16848
 
16849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16850
    public boolean isSet(_Fields field) {
16851
      if (field == null) {
16852
        throw new IllegalArgumentException();
16853
      }
16854
 
16855
      switch (field) {
16856
      case START_DATE:
16857
        return isSetStartDate();
16858
      case DAYS:
16859
        return isSetDays();
16860
      }
16861
      throw new IllegalStateException();
16862
    }
16863
 
16864
    @Override
16865
    public boolean equals(Object that) {
16866
      if (that == null)
16867
        return false;
16868
      if (that instanceof adjustDeliveryDays_args)
16869
        return this.equals((adjustDeliveryDays_args)that);
16870
      return false;
16871
    }
16872
 
16873
    public boolean equals(adjustDeliveryDays_args that) {
16874
      if (that == null)
16875
        return false;
16876
 
16877
      boolean this_present_startDate = true;
16878
      boolean that_present_startDate = true;
16879
      if (this_present_startDate || that_present_startDate) {
16880
        if (!(this_present_startDate && that_present_startDate))
16881
          return false;
16882
        if (this.startDate != that.startDate)
16883
          return false;
16884
      }
16885
 
16886
      boolean this_present_days = true;
16887
      boolean that_present_days = true;
16888
      if (this_present_days || that_present_days) {
16889
        if (!(this_present_days && that_present_days))
16890
          return false;
16891
        if (this.days != that.days)
16892
          return false;
16893
      }
16894
 
16895
      return true;
16896
    }
16897
 
16898
    @Override
16899
    public int hashCode() {
16900
      return 0;
16901
    }
16902
 
16903
    public int compareTo(adjustDeliveryDays_args other) {
16904
      if (!getClass().equals(other.getClass())) {
16905
        return getClass().getName().compareTo(other.getClass().getName());
16906
      }
16907
 
16908
      int lastComparison = 0;
16909
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
16910
 
16911
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
16912
      if (lastComparison != 0) {
16913
        return lastComparison;
16914
      }
16915
      if (isSetStartDate()) {
16916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
16917
        if (lastComparison != 0) {
16918
          return lastComparison;
16919
        }
16920
      }
16921
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
16922
      if (lastComparison != 0) {
16923
        return lastComparison;
16924
      }
16925
      if (isSetDays()) {
16926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
16927
        if (lastComparison != 0) {
16928
          return lastComparison;
16929
        }
16930
      }
16931
      return 0;
16932
    }
16933
 
16934
    public _Fields fieldForId(int fieldId) {
16935
      return _Fields.findByThriftId(fieldId);
16936
    }
16937
 
16938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16939
      org.apache.thrift.protocol.TField field;
16940
      iprot.readStructBegin();
16941
      while (true)
16942
      {
16943
        field = iprot.readFieldBegin();
16944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16945
          break;
16946
        }
16947
        switch (field.id) {
16948
          case 1: // START_DATE
16949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16950
              this.startDate = iprot.readI64();
16951
              setStartDateIsSet(true);
16952
            } else { 
16953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16954
            }
16955
            break;
16956
          case 2: // DAYS
16957
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16958
              this.days = iprot.readI64();
16959
              setDaysIsSet(true);
16960
            } else { 
16961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16962
            }
16963
            break;
16964
          default:
16965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16966
        }
16967
        iprot.readFieldEnd();
16968
      }
16969
      iprot.readStructEnd();
16970
      validate();
16971
    }
16972
 
16973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16974
      validate();
16975
 
16976
      oprot.writeStructBegin(STRUCT_DESC);
16977
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
16978
      oprot.writeI64(this.startDate);
16979
      oprot.writeFieldEnd();
16980
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
16981
      oprot.writeI64(this.days);
16982
      oprot.writeFieldEnd();
16983
      oprot.writeFieldStop();
16984
      oprot.writeStructEnd();
16985
    }
16986
 
16987
    @Override
16988
    public String toString() {
16989
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
16990
      boolean first = true;
16991
 
16992
      sb.append("startDate:");
16993
      sb.append(this.startDate);
16994
      first = false;
16995
      if (!first) sb.append(", ");
16996
      sb.append("days:");
16997
      sb.append(this.days);
16998
      first = false;
16999
      sb.append(")");
17000
      return sb.toString();
17001
    }
17002
 
17003
    public void validate() throws org.apache.thrift.TException {
17004
      // check for required fields
17005
    }
17006
 
17007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17008
      try {
17009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17010
      } catch (org.apache.thrift.TException te) {
17011
        throw new java.io.IOException(te);
17012
      }
17013
    }
17014
 
17015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17016
      try {
17017
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17018
        __isset_bit_vector = new BitSet(1);
17019
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17020
      } catch (org.apache.thrift.TException te) {
17021
        throw new java.io.IOException(te);
17022
      }
17023
    }
17024
 
17025
  }
17026
 
17027
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17028
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17029
 
17030
    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);
17031
 
17032
    private long success; // required
17033
 
17034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17036
      SUCCESS((short)0, "success");
17037
 
17038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17039
 
17040
      static {
17041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17042
          byName.put(field.getFieldName(), field);
17043
        }
17044
      }
17045
 
17046
      /**
17047
       * Find the _Fields constant that matches fieldId, or null if its not found.
17048
       */
17049
      public static _Fields findByThriftId(int fieldId) {
17050
        switch(fieldId) {
17051
          case 0: // SUCCESS
17052
            return SUCCESS;
17053
          default:
17054
            return null;
17055
        }
17056
      }
17057
 
17058
      /**
17059
       * Find the _Fields constant that matches fieldId, throwing an exception
17060
       * if it is not found.
17061
       */
17062
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17063
        _Fields fields = findByThriftId(fieldId);
17064
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17065
        return fields;
17066
      }
17067
 
17068
      /**
17069
       * Find the _Fields constant that matches name, or null if its not found.
17070
       */
17071
      public static _Fields findByName(String name) {
17072
        return byName.get(name);
17073
      }
17074
 
17075
      private final short _thriftId;
17076
      private final String _fieldName;
17077
 
17078
      _Fields(short thriftId, String fieldName) {
17079
        _thriftId = thriftId;
17080
        _fieldName = fieldName;
17081
      }
17082
 
17083
      public short getThriftFieldId() {
17084
        return _thriftId;
17085
      }
17086
 
17087
      public String getFieldName() {
17088
        return _fieldName;
17089
      }
17090
    }
17091
 
17092
    // isset id assignments
17093
    private static final int __SUCCESS_ISSET_ID = 0;
17094
    private BitSet __isset_bit_vector = new BitSet(1);
17095
 
17096
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17097
    static {
17098
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17099
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17100
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17101
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17102
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17103
    }
17104
 
17105
    public adjustDeliveryDays_result() {
17106
    }
17107
 
17108
    public adjustDeliveryDays_result(
17109
      long success)
17110
    {
17111
      this();
17112
      this.success = success;
17113
      setSuccessIsSet(true);
17114
    }
17115
 
17116
    /**
17117
     * Performs a deep copy on <i>other</i>.
17118
     */
17119
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17120
      __isset_bit_vector.clear();
17121
      __isset_bit_vector.or(other.__isset_bit_vector);
17122
      this.success = other.success;
17123
    }
17124
 
17125
    public adjustDeliveryDays_result deepCopy() {
17126
      return new adjustDeliveryDays_result(this);
17127
    }
17128
 
17129
    @Override
17130
    public void clear() {
17131
      setSuccessIsSet(false);
17132
      this.success = 0;
17133
    }
17134
 
17135
    public long getSuccess() {
17136
      return this.success;
17137
    }
17138
 
17139
    public void setSuccess(long success) {
17140
      this.success = success;
17141
      setSuccessIsSet(true);
17142
    }
17143
 
17144
    public void unsetSuccess() {
17145
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17146
    }
17147
 
17148
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17149
    public boolean isSetSuccess() {
17150
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17151
    }
17152
 
17153
    public void setSuccessIsSet(boolean value) {
17154
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17155
    }
17156
 
17157
    public void setFieldValue(_Fields field, Object value) {
17158
      switch (field) {
17159
      case SUCCESS:
17160
        if (value == null) {
17161
          unsetSuccess();
17162
        } else {
17163
          setSuccess((Long)value);
17164
        }
17165
        break;
17166
 
17167
      }
17168
    }
17169
 
17170
    public Object getFieldValue(_Fields field) {
17171
      switch (field) {
17172
      case SUCCESS:
17173
        return Long.valueOf(getSuccess());
17174
 
17175
      }
17176
      throw new IllegalStateException();
17177
    }
17178
 
17179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17180
    public boolean isSet(_Fields field) {
17181
      if (field == null) {
17182
        throw new IllegalArgumentException();
17183
      }
17184
 
17185
      switch (field) {
17186
      case SUCCESS:
17187
        return isSetSuccess();
17188
      }
17189
      throw new IllegalStateException();
17190
    }
17191
 
17192
    @Override
17193
    public boolean equals(Object that) {
17194
      if (that == null)
17195
        return false;
17196
      if (that instanceof adjustDeliveryDays_result)
17197
        return this.equals((adjustDeliveryDays_result)that);
17198
      return false;
17199
    }
17200
 
17201
    public boolean equals(adjustDeliveryDays_result that) {
17202
      if (that == null)
17203
        return false;
17204
 
17205
      boolean this_present_success = true;
17206
      boolean that_present_success = true;
17207
      if (this_present_success || that_present_success) {
17208
        if (!(this_present_success && that_present_success))
17209
          return false;
17210
        if (this.success != that.success)
17211
          return false;
17212
      }
17213
 
17214
      return true;
17215
    }
17216
 
17217
    @Override
17218
    public int hashCode() {
17219
      return 0;
17220
    }
17221
 
17222
    public int compareTo(adjustDeliveryDays_result other) {
17223
      if (!getClass().equals(other.getClass())) {
17224
        return getClass().getName().compareTo(other.getClass().getName());
17225
      }
17226
 
17227
      int lastComparison = 0;
17228
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17229
 
17230
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17231
      if (lastComparison != 0) {
17232
        return lastComparison;
17233
      }
17234
      if (isSetSuccess()) {
17235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17236
        if (lastComparison != 0) {
17237
          return lastComparison;
17238
        }
17239
      }
17240
      return 0;
17241
    }
17242
 
17243
    public _Fields fieldForId(int fieldId) {
17244
      return _Fields.findByThriftId(fieldId);
17245
    }
17246
 
17247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17248
      org.apache.thrift.protocol.TField field;
17249
      iprot.readStructBegin();
17250
      while (true)
17251
      {
17252
        field = iprot.readFieldBegin();
17253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17254
          break;
17255
        }
17256
        switch (field.id) {
17257
          case 0: // SUCCESS
17258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17259
              this.success = iprot.readI64();
17260
              setSuccessIsSet(true);
17261
            } else { 
17262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17263
            }
17264
            break;
17265
          default:
17266
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17267
        }
17268
        iprot.readFieldEnd();
17269
      }
17270
      iprot.readStructEnd();
17271
      validate();
17272
    }
17273
 
17274
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17275
      oprot.writeStructBegin(STRUCT_DESC);
17276
 
17277
      if (this.isSetSuccess()) {
17278
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17279
        oprot.writeI64(this.success);
17280
        oprot.writeFieldEnd();
17281
      }
17282
      oprot.writeFieldStop();
17283
      oprot.writeStructEnd();
17284
    }
17285
 
17286
    @Override
17287
    public String toString() {
17288
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17289
      boolean first = true;
17290
 
17291
      sb.append("success:");
17292
      sb.append(this.success);
17293
      first = false;
17294
      sb.append(")");
17295
      return sb.toString();
17296
    }
17297
 
17298
    public void validate() throws org.apache.thrift.TException {
17299
      // check for required fields
17300
    }
17301
 
17302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17303
      try {
17304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17305
      } catch (org.apache.thrift.TException te) {
17306
        throw new java.io.IOException(te);
17307
      }
17308
    }
17309
 
17310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17311
      try {
17312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17313
      } catch (org.apache.thrift.TException te) {
17314
        throw new java.io.IOException(te);
17315
      }
17316
    }
17317
 
17318
  }
17319
 
412 ashish 17320
}