Subversion Repositories SmartDukaan

Rev

Rev 20724 | Rev 23123 | 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
20724 kshitij.so 66
     * @param logisticsTransactionId
648 chandransh 67
     */
20724 kshitij.so 68
    public String getEmptyAWB(long providerId, String logisticsTransactionId) 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
 
13146 manish.sha 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException;
7567 rajveer 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
 
12895 manish.sha 147
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
148
 
13146 manish.sha 149
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
150
 
151
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
152
 
19413 amit.gupta 153
    /**
154
     * This returns map for locations and providers corresponding their serviceability and delay
155
     * 
156
     * @param destPincode
157
     * @param price
158
     */
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
160
 
19474 manish.sha 161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
19421 manish.sha 162
 
20744 kshitij.so 163
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException;
164
 
412 ashish 165
  }
166
 
3430 rajveer 167
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
168
 
169
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
172
 
4630 mandeep.dh 173
    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 174
 
7256 rajveer 175
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
176
 
5766 rajveer 177
    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 178
 
20724 kshitij.so 179
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 180
 
6643 rajveer 181
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 182
 
6643 rajveer 183
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
184
 
3430 rajveer 185
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
190
 
4934 amit.gupta 191
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
192
 
5527 anupam.sin 193
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
194
 
5553 rajveer 195
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
198
 
5719 rajveer 199
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
200
 
6524 rajveer 201
    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 202
 
6524 rajveer 203
    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 204
 
13146 manish.sha 205
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
7567 rajveer 206
 
7788 manish.sha 207
    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 208
 
7888 rajveer 209
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
210
 
12895 manish.sha 211
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
212
 
13146 manish.sha 213
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
216
 
19413 amit.gupta 217
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
218
 
19474 manish.sha 219
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
19421 manish.sha 220
 
20744 kshitij.so 221
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
222
 
3430 rajveer 223
  }
224
 
3374 rajveer 225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
227
      public Factory() {}
228
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
229
        return new Client(prot);
230
      }
231
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
232
        return new Client(iprot, oprot);
233
      }
234
    }
235
 
236
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 237
    {
3430 rajveer 238
      super(prot, prot);
412 ashish 239
    }
240
 
3430 rajveer 241
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 242
      super(iprot, oprot);
412 ashish 243
    }
244
 
3430 rajveer 245
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 246
    {
247
      send_getProvider(providerId);
248
      return recv_getProvider();
249
    }
250
 
3430 rajveer 251
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 252
    {
253
      getProvider_args args = new getProvider_args();
3430 rajveer 254
      args.setProviderId(providerId);
255
      sendBase("getProvider", args);
668 chandransh 256
    }
257
 
3430 rajveer 258
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 259
    {
260
      getProvider_result result = new getProvider_result();
3430 rajveer 261
      receiveBase(result, "getProvider");
668 chandransh 262
      if (result.isSetSuccess()) {
263
        return result.success;
264
      }
265
      if (result.lse != null) {
266
        throw result.lse;
267
      }
3430 rajveer 268
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 269
    }
270
 
3430 rajveer 271
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 272
    {
273
      send_getAllProviders();
274
      return recv_getAllProviders();
275
    }
276
 
3430 rajveer 277
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 278
    {
279
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 280
      sendBase("getAllProviders", args);
674 chandransh 281
    }
282
 
3430 rajveer 283
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 284
    {
285
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 286
      receiveBase(result, "getAllProviders");
674 chandransh 287
      if (result.isSetSuccess()) {
288
        return result.success;
289
      }
290
      if (result.lse != null) {
291
        throw result.lse;
292
      }
3430 rajveer 293
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 294
    }
295
 
4630 mandeep.dh 296
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 297
    {
4630 mandeep.dh 298
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 299
      return recv_getLogisticsEstimation();
300
    }
301
 
4630 mandeep.dh 302
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 303
    {
304
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 305
      args.setItemId(itemId);
306
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 307
      args.setType(type);
3430 rajveer 308
      sendBase("getLogisticsEstimation", args);
471 rajveer 309
    }
310
 
3430 rajveer 311
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 312
    {
313
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 314
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 315
      if (result.isSetSuccess()) {
316
        return result.success;
317
      }
318
      if (result.se != null) {
319
        throw result.se;
320
      }
3430 rajveer 321
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 322
    }
323
 
7256 rajveer 324
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
325
    {
326
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
327
      return recv_getLogisticsEstimationForStore();
328
    }
329
 
330
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
331
    {
332
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
333
      args.setItemId(itemId);
334
      args.setDestination_pin(destination_pin);
335
      args.setType(type);
336
      sendBase("getLogisticsEstimationForStore", args);
337
    }
338
 
339
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
340
    {
341
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
342
      receiveBase(result, "getLogisticsEstimationForStore");
343
      if (result.isSetSuccess()) {
344
        return result.success;
345
      }
346
      if (result.se != null) {
347
        throw result.se;
348
      }
349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
350
    }
351
 
5766 rajveer 352
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 353
    {
5766 rajveer 354
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 355
      return recv_getLogisticsInfo();
471 rajveer 356
    }
357
 
5766 rajveer 358
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 359
    {
648 chandransh 360
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 361
      args.setDestination_pincode(destination_pincode);
362
      args.setItem_id(item_id);
363
      args.setType(type);
5766 rajveer 364
      args.setPickUp(pickUp);
3430 rajveer 365
      sendBase("getLogisticsInfo", args);
471 rajveer 366
    }
367
 
3430 rajveer 368
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 369
    {
648 chandransh 370
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 371
      receiveBase(result, "getLogisticsInfo");
648 chandransh 372
      if (result.isSetSuccess()) {
373
        return result.success;
477 rajveer 374
      }
648 chandransh 375
      if (result.se != null) {
376
        throw result.se;
412 ashish 377
      }
3430 rajveer 378
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 379
    }
380
 
20724 kshitij.so 381
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 382
    {
20724 kshitij.so 383
      send_getEmptyAWB(providerId, logisticsTransactionId);
412 ashish 384
      return recv_getEmptyAWB();
385
    }
386
 
20724 kshitij.so 387
    public void send_getEmptyAWB(long providerId, String logisticsTransactionId) throws org.apache.thrift.TException
412 ashish 388
    {
389
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 390
      args.setProviderId(providerId);
20724 kshitij.so 391
      args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 392
      sendBase("getEmptyAWB", args);
412 ashish 393
    }
394
 
3430 rajveer 395
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 396
    {
397
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 398
      receiveBase(result, "getEmptyAWB");
412 ashish 399
      if (result.isSetSuccess()) {
400
        return result.success;
401
      }
648 chandransh 402
      if (result.se != null) {
403
        throw result.se;
404
      }
3430 rajveer 405
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 406
    }
407
 
6643 rajveer 408
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 409
    {
6643 rajveer 410
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 411
      return recv_getShipmentInfo();
412
    }
413
 
6643 rajveer 414
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 415
    {
416
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 417
      args.setAwbNumber(awbNumber);
3430 rajveer 418
      args.setProviderId(providerId);
419
      sendBase("getShipmentInfo", args);
412 ashish 420
    }
421
 
3430 rajveer 422
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 423
    {
424
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 425
      receiveBase(result, "getShipmentInfo");
412 ashish 426
      if (result.isSetSuccess()) {
427
        return result.success;
428
      }
648 chandransh 429
      if (result.se != null) {
430
        throw result.se;
431
      }
3430 rajveer 432
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 433
    }
434
 
6643 rajveer 435
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
436
    {
437
      send_storeShipmentInfo(update);
438
      recv_storeShipmentInfo();
439
    }
440
 
441
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
442
    {
443
      storeShipmentInfo_args args = new storeShipmentInfo_args();
444
      args.setUpdate(update);
445
      sendBase("storeShipmentInfo", args);
446
    }
447
 
448
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
449
    {
450
      storeShipmentInfo_result result = new storeShipmentInfo_result();
451
      receiveBase(result, "storeShipmentInfo");
452
      if (result.se != null) {
453
        throw result.se;
454
      }
455
      return;
456
    }
457
 
3430 rajveer 458
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 459
    {
460
      send_getDestinationCode(providerId, pinCode);
461
      return recv_getDestinationCode();
462
    }
463
 
3430 rajveer 464
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 465
    {
466
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 467
      args.setProviderId(providerId);
468
      args.setPinCode(pinCode);
469
      sendBase("getDestinationCode", args);
730 chandransh 470
    }
471
 
3430 rajveer 472
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 473
    {
474
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 475
      receiveBase(result, "getDestinationCode");
730 chandransh 476
      if (result.isSetSuccess()) {
477
        return result.success;
478
      }
479
      if (result.se != null) {
480
        throw result.se;
481
      }
3430 rajveer 482
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 483
    }
484
 
3430 rajveer 485
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 486
    {
3103 chandransh 487
      send_getFreeAwbCount(providerId, type);
1139 chandransh 488
      return recv_getFreeAwbCount();
489
    }
490
 
3430 rajveer 491
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 492
    {
493
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 494
      args.setProviderId(providerId);
495
      args.setType(type);
496
      sendBase("getFreeAwbCount", args);
1139 chandransh 497
    }
498
 
3430 rajveer 499
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 500
    {
501
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 502
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 503
      if (result.isSetSuccess()) {
504
        return result.success;
505
      }
3430 rajveer 506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 507
    }
508
 
3430 rajveer 509
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 510
    {
511
      send_getHolidays(fromDate, toDate);
512
      return recv_getHolidays();
513
    }
514
 
3430 rajveer 515
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 516
    {
517
      getHolidays_args args = new getHolidays_args();
3430 rajveer 518
      args.setFromDate(fromDate);
519
      args.setToDate(toDate);
520
      sendBase("getHolidays", args);
1730 ankur.sing 521
    }
522
 
3430 rajveer 523
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 524
    {
525
      getHolidays_result result = new getHolidays_result();
3430 rajveer 526
      receiveBase(result, "getHolidays");
1730 ankur.sing 527
      if (result.isSetSuccess()) {
528
        return result.success;
529
      }
3430 rajveer 530
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 531
    }
532
 
9840 amit.gupta 533
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 534
    {
535
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
536
      return recv_getEntityLogisticsEstimation();
537
    }
538
 
539
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
540
    {
541
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
542
      args.setCatalogItemId(catalogItemId);
543
      args.setDestination_pin(destination_pin);
544
      args.setType(type);
545
      sendBase("getEntityLogisticsEstimation", args);
546
    }
547
 
9840 amit.gupta 548
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 549
    {
550
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
551
      receiveBase(result, "getEntityLogisticsEstimation");
552
      if (result.isSetSuccess()) {
553
        return result.success;
554
      }
555
      if (result.se != null) {
556
        throw result.se;
557
      }
558
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
559
    }
560
 
5527 anupam.sin 561
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
562
    {
563
      send_getProviderForPickupType(pickUp);
564
      return recv_getProviderForPickupType();
565
    }
566
 
567
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
568
    {
569
      getProviderForPickupType_args args = new getProviderForPickupType_args();
570
      args.setPickUp(pickUp);
571
      sendBase("getProviderForPickupType", args);
572
    }
573
 
574
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
575
    {
576
      getProviderForPickupType_result result = new getProviderForPickupType_result();
577
      receiveBase(result, "getProviderForPickupType");
578
      if (result.isSetSuccess()) {
579
        return result.success;
580
      }
581
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
582
    }
583
 
5553 rajveer 584
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
585
    {
586
      send_getAllPickupStores();
587
      return recv_getAllPickupStores();
588
    }
589
 
590
    public void send_getAllPickupStores() throws org.apache.thrift.TException
591
    {
592
      getAllPickupStores_args args = new getAllPickupStores_args();
593
      sendBase("getAllPickupStores", args);
594
    }
595
 
596
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
597
    {
598
      getAllPickupStores_result result = new getAllPickupStores_result();
599
      receiveBase(result, "getAllPickupStores");
600
      if (result.isSetSuccess()) {
601
        return result.success;
602
      }
603
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
604
    }
605
 
606
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
607
    {
608
      send_getPickupStore(storeId);
609
      return recv_getPickupStore();
610
    }
611
 
612
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
613
    {
614
      getPickupStore_args args = new getPickupStore_args();
615
      args.setStoreId(storeId);
616
      sendBase("getPickupStore", args);
617
    }
618
 
619
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
620
    {
621
      getPickupStore_result result = new getPickupStore_result();
622
      receiveBase(result, "getPickupStore");
623
      if (result.isSetSuccess()) {
624
        return result.success;
625
      }
626
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
627
    }
628
 
5719 rajveer 629
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
630
    {
631
      send_getPickupStoreByHotspotId(hotspotId);
632
      return recv_getPickupStoreByHotspotId();
633
    }
634
 
635
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
636
    {
637
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
638
      args.setHotspotId(hotspotId);
639
      sendBase("getPickupStoreByHotspotId", args);
640
    }
641
 
642
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
643
    {
644
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
645
      receiveBase(result, "getPickupStoreByHotspotId");
646
      if (result.isSetSuccess()) {
647
        return result.success;
648
      }
649
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
650
    }
651
 
6524 rajveer 652
    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 653
    {
6524 rajveer 654
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 655
      recv_addPincode();
656
    }
657
 
6524 rajveer 658
    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 659
    {
660
      addPincode_args args = new addPincode_args();
661
      args.setProviderId(providerId);
662
      args.setPincode(pincode);
663
      args.setDestCode(destCode);
664
      args.setExp(exp);
665
      args.setCod(cod);
666
      args.setStationType(stationType);
6524 rajveer 667
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 668
      sendBase("addPincode", args);
669
    }
670
 
671
    public void recv_addPincode() throws org.apache.thrift.TException
672
    {
673
      addPincode_result result = new addPincode_result();
674
      receiveBase(result, "addPincode");
675
      return;
676
    }
677
 
6524 rajveer 678
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 679
    {
6524 rajveer 680
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 681
      recv_updatePincode();
682
    }
683
 
6524 rajveer 684
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 685
    {
686
      updatePincode_args args = new updatePincode_args();
687
      args.setProviderId(providerId);
688
      args.setPincode(pincode);
689
      args.setExp(exp);
690
      args.setCod(cod);
6524 rajveer 691
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 692
      sendBase("updatePincode", args);
693
    }
694
 
695
    public void recv_updatePincode() throws org.apache.thrift.TException
696
    {
697
      updatePincode_result result = new updatePincode_result();
698
      receiveBase(result, "updatePincode");
699
      return;
700
    }
701
 
13146 manish.sha 702
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 703
    {
13146 manish.sha 704
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 705
      return recv_addNewAwbs();
706
    }
707
 
13146 manish.sha 708
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 709
    {
710
      addNewAwbs_args args = new addNewAwbs_args();
711
      args.setProviderId(providerId);
712
      args.setCod(cod);
713
      args.setAwbs(awbs);
13146 manish.sha 714
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 715
      sendBase("addNewAwbs", args);
716
    }
717
 
718
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
719
    {
720
      addNewAwbs_result result = new addNewAwbs_result();
721
      receiveBase(result, "addNewAwbs");
722
      if (result.isSetSuccess()) {
723
        return result.success;
724
      }
725
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
726
    }
727
 
7788 manish.sha 728
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 729
    {
7788 manish.sha 730
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
731
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 732
    }
733
 
7788 manish.sha 734
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 735
    {
7788 manish.sha 736
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
737
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
738
      args.setRunCompleteUpdate(runCompleteUpdate);
739
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 740
    }
741
 
7788 manish.sha 742
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 743
    {
7788 manish.sha 744
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
745
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 746
      return;
747
    }
748
 
7888 rajveer 749
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
750
    {
751
      send_adjustDeliveryDays(startDate, days);
752
      return recv_adjustDeliveryDays();
753
    }
754
 
755
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
756
    {
757
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
758
      args.setStartDate(startDate);
759
      args.setDays(days);
760
      sendBase("adjustDeliveryDays", args);
761
    }
762
 
763
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
764
    {
765
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
766
      receiveBase(result, "adjustDeliveryDays");
767
      if (result.isSetSuccess()) {
768
        return result.success;
769
      }
770
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
771
    }
772
 
12895 manish.sha 773
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
774
    {
775
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
776
      return recv_getFirstDeliveryEstimateForWhLocation();
777
    }
778
 
779
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
780
    {
781
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
782
      args.setPincode(pincode);
783
      args.setWhLocation(whLocation);
784
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
785
    }
786
 
787
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
788
    {
789
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
790
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
791
      if (result.isSetSuccess()) {
792
        return result.success;
793
      }
794
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
795
    }
796
 
13146 manish.sha 797
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
798
    {
799
      send_getNewEmptyAwb(providerId, type, orderQuantity);
800
      return recv_getNewEmptyAwb();
801
    }
802
 
803
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
804
    {
805
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
806
      args.setProviderId(providerId);
807
      args.setType(type);
808
      args.setOrderQuantity(orderQuantity);
809
      sendBase("getNewEmptyAwb", args);
810
    }
811
 
812
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
813
    {
814
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
815
      receiveBase(result, "getNewEmptyAwb");
816
      if (result.isSetSuccess()) {
817
        return result.success;
818
      }
819
      if (result.se != null) {
820
        throw result.se;
821
      }
822
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
823
    }
824
 
825
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
826
    {
827
      send_getProviderLimitDetailsForPincode(providerId, pincode);
828
      return recv_getProviderLimitDetailsForPincode();
829
    }
830
 
831
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
832
    {
833
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
834
      args.setProviderId(providerId);
835
      args.setPincode(pincode);
836
      sendBase("getProviderLimitDetailsForPincode", args);
837
    }
838
 
839
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
840
    {
841
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
842
      receiveBase(result, "getProviderLimitDetailsForPincode");
843
      if (result.isSetSuccess()) {
844
        return result.success;
845
      }
846
      if (result.se != null) {
847
        throw result.se;
848
      }
849
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
850
    }
851
 
19413 amit.gupta 852
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
853
    {
854
      send_getLocationInfoMap(destPincode, price);
855
      return recv_getLocationInfoMap();
856
    }
857
 
858
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
859
    {
860
      getLocationInfoMap_args args = new getLocationInfoMap_args();
861
      args.setDestPincode(destPincode);
862
      args.setPrice(price);
863
      sendBase("getLocationInfoMap", args);
864
    }
865
 
866
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
867
    {
868
      getLocationInfoMap_result result = new getLocationInfoMap_result();
869
      receiveBase(result, "getLocationInfoMap");
870
      if (result.isSetSuccess()) {
871
        return result.success;
872
      }
873
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
874
    }
875
 
19474 manish.sha 876
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
19421 manish.sha 877
    {
19474 manish.sha 878
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
19421 manish.sha 879
      return recv_getCostingAndDeliveryEstimateForPincode();
880
    }
881
 
19474 manish.sha 882
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
19421 manish.sha 883
    {
884
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
885
      args.setPincode(pincode);
886
      args.setTransactionAmount(transactionAmount);
887
      args.setIsCod(isCod);
888
      args.setWeight(weight);
889
      args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 890
      args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 891
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
892
    }
893
 
894
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
895
    {
896
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
897
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
898
      if (result.isSetSuccess()) {
899
        return result.success;
900
      }
901
      if (result.se != null) {
902
        throw result.se;
903
      }
904
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
905
    }
906
 
20744 kshitij.so 907
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException
908
    {
909
      send_getBluedartAttributesForLogisticsTxnId(logisticsTxnId, name);
910
      return recv_getBluedartAttributesForLogisticsTxnId();
911
    }
912
 
913
    public void send_getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws org.apache.thrift.TException
914
    {
915
      getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
916
      args.setLogisticsTxnId(logisticsTxnId);
917
      args.setName(name);
918
      sendBase("getBluedartAttributesForLogisticsTxnId", args);
919
    }
920
 
921
    public BluedartAttributes recv_getBluedartAttributesForLogisticsTxnId() throws LogisticsServiceException, org.apache.thrift.TException
922
    {
923
      getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
924
      receiveBase(result, "getBluedartAttributesForLogisticsTxnId");
925
      if (result.isSetSuccess()) {
926
        return result.success;
927
      }
928
      if (result.se != null) {
929
        throw result.se;
930
      }
931
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
932
    }
933
 
412 ashish 934
  }
3430 rajveer 935
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
936
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
937
      private org.apache.thrift.async.TAsyncClientManager clientManager;
938
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
939
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
940
        this.clientManager = clientManager;
941
        this.protocolFactory = protocolFactory;
942
      }
943
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
944
        return new AsyncClient(protocolFactory, clientManager, transport);
945
      }
412 ashish 946
    }
947
 
3430 rajveer 948
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
949
      super(protocolFactory, clientManager, transport);
950
    }
412 ashish 951
 
3430 rajveer 952
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
953
      checkReady();
954
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
955
      this.___currentMethod = method_call;
956
      ___manager.call(method_call);
957
    }
958
 
959
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
960
      private long providerId;
961
      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 {
962
        super(client, protocolFactory, transport, resultHandler, false);
963
        this.providerId = providerId;
412 ashish 964
      }
3430 rajveer 965
 
966
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
967
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
968
        getProvider_args args = new getProvider_args();
969
        args.setProviderId(providerId);
970
        args.write(prot);
971
        prot.writeMessageEnd();
972
      }
973
 
974
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
975
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
976
          throw new IllegalStateException("Method call not finished!");
977
        }
978
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
979
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
980
        return (new Client(prot)).recv_getProvider();
981
      }
412 ashish 982
    }
983
 
3430 rajveer 984
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
985
      checkReady();
986
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
987
      this.___currentMethod = method_call;
988
      ___manager.call(method_call);
989
    }
990
 
991
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
992
      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 {
993
        super(client, protocolFactory, transport, resultHandler, false);
994
      }
995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        getAllProviders_args args = new getAllProviders_args();
999
        args.write(prot);
1000
        prot.writeMessageEnd();
1001
      }
1002
 
1003
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1004
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1005
          throw new IllegalStateException("Method call not finished!");
1006
        }
1007
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1008
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1009
        return (new Client(prot)).recv_getAllProviders();
1010
      }
1011
    }
1012
 
4630 mandeep.dh 1013
    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 1014
      checkReady();
4630 mandeep.dh 1015
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1016
      this.___currentMethod = method_call;
1017
      ___manager.call(method_call);
1018
    }
1019
 
1020
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1021
      private long itemId;
1022
      private String destination_pin;
4630 mandeep.dh 1023
      private DeliveryType type;
1024
      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 1025
        super(client, protocolFactory, transport, resultHandler, false);
1026
        this.itemId = itemId;
1027
        this.destination_pin = destination_pin;
4630 mandeep.dh 1028
        this.type = type;
3430 rajveer 1029
      }
1030
 
1031
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1032
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1033
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1034
        args.setItemId(itemId);
1035
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1036
        args.setType(type);
3430 rajveer 1037
        args.write(prot);
1038
        prot.writeMessageEnd();
1039
      }
1040
 
1041
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1043
          throw new IllegalStateException("Method call not finished!");
1044
        }
1045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1047
        return (new Client(prot)).recv_getLogisticsEstimation();
1048
      }
1049
    }
1050
 
7256 rajveer 1051
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1052
      checkReady();
1053
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1054
      this.___currentMethod = method_call;
1055
      ___manager.call(method_call);
1056
    }
1057
 
1058
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1059
      private long itemId;
1060
      private String destination_pin;
1061
      private DeliveryType type;
1062
      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 {
1063
        super(client, protocolFactory, transport, resultHandler, false);
1064
        this.itemId = itemId;
1065
        this.destination_pin = destination_pin;
1066
        this.type = type;
1067
      }
1068
 
1069
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1070
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1071
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1072
        args.setItemId(itemId);
1073
        args.setDestination_pin(destination_pin);
1074
        args.setType(type);
1075
        args.write(prot);
1076
        prot.writeMessageEnd();
1077
      }
1078
 
1079
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1080
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1081
          throw new IllegalStateException("Method call not finished!");
1082
        }
1083
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1084
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1085
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1086
      }
1087
    }
1088
 
5766 rajveer 1089
    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 1090
      checkReady();
5766 rajveer 1091
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1092
      this.___currentMethod = method_call;
1093
      ___manager.call(method_call);
1094
    }
1095
 
1096
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1097
      private String destination_pincode;
1098
      private long item_id;
1099
      private DeliveryType type;
5766 rajveer 1100
      private PickUpType pickUp;
1101
      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 1102
        super(client, protocolFactory, transport, resultHandler, false);
1103
        this.destination_pincode = destination_pincode;
1104
        this.item_id = item_id;
1105
        this.type = type;
5766 rajveer 1106
        this.pickUp = pickUp;
3430 rajveer 1107
      }
1108
 
1109
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1110
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1111
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1112
        args.setDestination_pincode(destination_pincode);
1113
        args.setItem_id(item_id);
1114
        args.setType(type);
5766 rajveer 1115
        args.setPickUp(pickUp);
3430 rajveer 1116
        args.write(prot);
1117
        prot.writeMessageEnd();
1118
      }
1119
 
1120
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1121
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1122
          throw new IllegalStateException("Method call not finished!");
1123
        }
1124
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1125
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1126
        return (new Client(prot)).recv_getLogisticsInfo();
1127
      }
1128
    }
1129
 
20724 kshitij.so 1130
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1131
      checkReady();
20724 kshitij.so 1132
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1133
      this.___currentMethod = method_call;
1134
      ___manager.call(method_call);
1135
    }
1136
 
1137
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1138
      private long providerId;
20724 kshitij.so 1139
      private String logisticsTransactionId;
1140
      public getEmptyAWB_call(long providerId, String logisticsTransactionId, 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 1141
        super(client, protocolFactory, transport, resultHandler, false);
1142
        this.providerId = providerId;
20724 kshitij.so 1143
        this.logisticsTransactionId = logisticsTransactionId;
3430 rajveer 1144
      }
1145
 
1146
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1147
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1148
        getEmptyAWB_args args = new getEmptyAWB_args();
1149
        args.setProviderId(providerId);
20724 kshitij.so 1150
        args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 1151
        args.write(prot);
1152
        prot.writeMessageEnd();
1153
      }
1154
 
1155
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1156
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1157
          throw new IllegalStateException("Method call not finished!");
1158
        }
1159
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1160
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1161
        return (new Client(prot)).recv_getEmptyAWB();
1162
      }
1163
    }
1164
 
6643 rajveer 1165
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1166
      checkReady();
6643 rajveer 1167
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1168
      this.___currentMethod = method_call;
1169
      ___manager.call(method_call);
1170
    }
1171
 
1172
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1173
      private String awbNumber;
3430 rajveer 1174
      private long providerId;
6643 rajveer 1175
      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 1176
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1177
        this.awbNumber = awbNumber;
3430 rajveer 1178
        this.providerId = providerId;
1179
      }
1180
 
1181
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1182
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1183
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1184
        args.setAwbNumber(awbNumber);
3430 rajveer 1185
        args.setProviderId(providerId);
1186
        args.write(prot);
1187
        prot.writeMessageEnd();
1188
      }
1189
 
1190
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1191
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1192
          throw new IllegalStateException("Method call not finished!");
1193
        }
1194
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1195
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1196
        return (new Client(prot)).recv_getShipmentInfo();
1197
      }
1198
    }
1199
 
6643 rajveer 1200
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1201
      checkReady();
1202
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1203
      this.___currentMethod = method_call;
1204
      ___manager.call(method_call);
1205
    }
1206
 
1207
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1208
      private AwbUpdate update;
1209
      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 {
1210
        super(client, protocolFactory, transport, resultHandler, false);
1211
        this.update = update;
1212
      }
1213
 
1214
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1215
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1216
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1217
        args.setUpdate(update);
1218
        args.write(prot);
1219
        prot.writeMessageEnd();
1220
      }
1221
 
1222
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1223
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1224
          throw new IllegalStateException("Method call not finished!");
1225
        }
1226
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1227
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1228
        (new Client(prot)).recv_storeShipmentInfo();
1229
      }
1230
    }
1231
 
3430 rajveer 1232
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1233
      checkReady();
1234
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1235
      this.___currentMethod = method_call;
1236
      ___manager.call(method_call);
1237
    }
1238
 
1239
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1240
      private long providerId;
1241
      private String pinCode;
1242
      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 {
1243
        super(client, protocolFactory, transport, resultHandler, false);
1244
        this.providerId = providerId;
1245
        this.pinCode = pinCode;
1246
      }
1247
 
1248
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1249
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1250
        getDestinationCode_args args = new getDestinationCode_args();
1251
        args.setProviderId(providerId);
1252
        args.setPinCode(pinCode);
1253
        args.write(prot);
1254
        prot.writeMessageEnd();
1255
      }
1256
 
1257
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1258
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1259
          throw new IllegalStateException("Method call not finished!");
1260
        }
1261
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1262
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1263
        return (new Client(prot)).recv_getDestinationCode();
1264
      }
1265
    }
1266
 
1267
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1268
      checkReady();
1269
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1270
      this.___currentMethod = method_call;
1271
      ___manager.call(method_call);
1272
    }
1273
 
1274
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1275
      private long providerId;
1276
      private String type;
1277
      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 {
1278
        super(client, protocolFactory, transport, resultHandler, false);
1279
        this.providerId = providerId;
1280
        this.type = type;
1281
      }
1282
 
1283
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1284
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1285
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1286
        args.setProviderId(providerId);
1287
        args.setType(type);
1288
        args.write(prot);
1289
        prot.writeMessageEnd();
1290
      }
1291
 
1292
      public long getResult() throws org.apache.thrift.TException {
1293
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1294
          throw new IllegalStateException("Method call not finished!");
1295
        }
1296
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1297
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1298
        return (new Client(prot)).recv_getFreeAwbCount();
1299
      }
1300
    }
1301
 
1302
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1303
      checkReady();
1304
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1305
      this.___currentMethod = method_call;
1306
      ___manager.call(method_call);
1307
    }
1308
 
1309
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1310
      private long fromDate;
1311
      private long toDate;
1312
      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 {
1313
        super(client, protocolFactory, transport, resultHandler, false);
1314
        this.fromDate = fromDate;
1315
        this.toDate = toDate;
1316
      }
1317
 
1318
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1319
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1320
        getHolidays_args args = new getHolidays_args();
1321
        args.setFromDate(fromDate);
1322
        args.setToDate(toDate);
1323
        args.write(prot);
1324
        prot.writeMessageEnd();
1325
      }
1326
 
1327
      public List<Long> getResult() throws org.apache.thrift.TException {
1328
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1329
          throw new IllegalStateException("Method call not finished!");
1330
        }
1331
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1332
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1333
        return (new Client(prot)).recv_getHolidays();
1334
      }
1335
    }
1336
 
4934 amit.gupta 1337
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1338
      checkReady();
1339
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1340
      this.___currentMethod = method_call;
1341
      ___manager.call(method_call);
1342
    }
1343
 
1344
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1345
      private long catalogItemId;
1346
      private String destination_pin;
1347
      private DeliveryType type;
1348
      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 {
1349
        super(client, protocolFactory, transport, resultHandler, false);
1350
        this.catalogItemId = catalogItemId;
1351
        this.destination_pin = destination_pin;
1352
        this.type = type;
1353
      }
1354
 
1355
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1356
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1357
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1358
        args.setCatalogItemId(catalogItemId);
1359
        args.setDestination_pin(destination_pin);
1360
        args.setType(type);
1361
        args.write(prot);
1362
        prot.writeMessageEnd();
1363
      }
1364
 
9840 amit.gupta 1365
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1367
          throw new IllegalStateException("Method call not finished!");
1368
        }
1369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1371
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1372
      }
1373
    }
1374
 
5527 anupam.sin 1375
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1376
      checkReady();
1377
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1378
      this.___currentMethod = method_call;
1379
      ___manager.call(method_call);
1380
    }
1381
 
1382
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1383
      private long pickUp;
1384
      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 {
1385
        super(client, protocolFactory, transport, resultHandler, false);
1386
        this.pickUp = pickUp;
1387
      }
1388
 
1389
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1390
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1391
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1392
        args.setPickUp(pickUp);
1393
        args.write(prot);
1394
        prot.writeMessageEnd();
1395
      }
1396
 
1397
      public long getResult() throws org.apache.thrift.TException {
1398
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1399
          throw new IllegalStateException("Method call not finished!");
1400
        }
1401
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1402
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1403
        return (new Client(prot)).recv_getProviderForPickupType();
1404
      }
1405
    }
1406
 
5553 rajveer 1407
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1408
      checkReady();
1409
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1410
      this.___currentMethod = method_call;
1411
      ___manager.call(method_call);
1412
    }
1413
 
1414
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1415
      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 {
1416
        super(client, protocolFactory, transport, resultHandler, false);
1417
      }
1418
 
1419
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1420
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1421
        getAllPickupStores_args args = new getAllPickupStores_args();
1422
        args.write(prot);
1423
        prot.writeMessageEnd();
1424
      }
1425
 
1426
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1427
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1428
          throw new IllegalStateException("Method call not finished!");
1429
        }
1430
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1432
        return (new Client(prot)).recv_getAllPickupStores();
1433
      }
1434
    }
1435
 
1436
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1437
      checkReady();
1438
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1439
      this.___currentMethod = method_call;
1440
      ___manager.call(method_call);
1441
    }
1442
 
1443
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1444
      private long storeId;
1445
      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 {
1446
        super(client, protocolFactory, transport, resultHandler, false);
1447
        this.storeId = storeId;
1448
      }
1449
 
1450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1452
        getPickupStore_args args = new getPickupStore_args();
1453
        args.setStoreId(storeId);
1454
        args.write(prot);
1455
        prot.writeMessageEnd();
1456
      }
1457
 
1458
      public PickupStore getResult() throws org.apache.thrift.TException {
1459
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1460
          throw new IllegalStateException("Method call not finished!");
1461
        }
1462
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1463
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1464
        return (new Client(prot)).recv_getPickupStore();
1465
      }
1466
    }
1467
 
5719 rajveer 1468
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1469
      checkReady();
1470
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1471
      this.___currentMethod = method_call;
1472
      ___manager.call(method_call);
1473
    }
1474
 
1475
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1476
      private String hotspotId;
1477
      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 {
1478
        super(client, protocolFactory, transport, resultHandler, false);
1479
        this.hotspotId = hotspotId;
1480
      }
1481
 
1482
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1483
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1484
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1485
        args.setHotspotId(hotspotId);
1486
        args.write(prot);
1487
        prot.writeMessageEnd();
1488
      }
1489
 
1490
      public PickupStore getResult() throws org.apache.thrift.TException {
1491
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1492
          throw new IllegalStateException("Method call not finished!");
1493
        }
1494
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1495
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1496
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1497
      }
1498
    }
1499
 
6524 rajveer 1500
    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 1501
      checkReady();
6524 rajveer 1502
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1503
      this.___currentMethod = method_call;
1504
      ___manager.call(method_call);
1505
    }
1506
 
1507
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1508
      private long providerId;
1509
      private String pincode;
1510
      private String destCode;
1511
      private boolean exp;
1512
      private boolean cod;
1513
      private int stationType;
6524 rajveer 1514
      private boolean otgAvailable;
1515
      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 1516
        super(client, protocolFactory, transport, resultHandler, false);
1517
        this.providerId = providerId;
1518
        this.pincode = pincode;
1519
        this.destCode = destCode;
1520
        this.exp = exp;
1521
        this.cod = cod;
1522
        this.stationType = stationType;
6524 rajveer 1523
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1524
      }
1525
 
1526
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1527
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1528
        addPincode_args args = new addPincode_args();
1529
        args.setProviderId(providerId);
1530
        args.setPincode(pincode);
1531
        args.setDestCode(destCode);
1532
        args.setExp(exp);
1533
        args.setCod(cod);
1534
        args.setStationType(stationType);
6524 rajveer 1535
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1536
        args.write(prot);
1537
        prot.writeMessageEnd();
1538
      }
1539
 
1540
      public void getResult() throws org.apache.thrift.TException {
1541
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1542
          throw new IllegalStateException("Method call not finished!");
1543
        }
1544
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1545
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1546
        (new Client(prot)).recv_addPincode();
1547
      }
1548
    }
1549
 
6524 rajveer 1550
    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 1551
      checkReady();
6524 rajveer 1552
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1553
      this.___currentMethod = method_call;
1554
      ___manager.call(method_call);
1555
    }
1556
 
1557
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1558
      private long providerId;
1559
      private String pincode;
1560
      private boolean exp;
1561
      private boolean cod;
6524 rajveer 1562
      private boolean otgAvailable;
1563
      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 1564
        super(client, protocolFactory, transport, resultHandler, false);
1565
        this.providerId = providerId;
1566
        this.pincode = pincode;
1567
        this.exp = exp;
1568
        this.cod = cod;
6524 rajveer 1569
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1570
      }
1571
 
1572
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1573
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1574
        updatePincode_args args = new updatePincode_args();
1575
        args.setProviderId(providerId);
1576
        args.setPincode(pincode);
1577
        args.setExp(exp);
1578
        args.setCod(cod);
6524 rajveer 1579
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1580
        args.write(prot);
1581
        prot.writeMessageEnd();
1582
      }
1583
 
1584
      public void getResult() throws org.apache.thrift.TException {
1585
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1586
          throw new IllegalStateException("Method call not finished!");
1587
        }
1588
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1590
        (new Client(prot)).recv_updatePincode();
1591
      }
1592
    }
1593
 
13146 manish.sha 1594
    public void addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
7567 rajveer 1595
      checkReady();
13146 manish.sha 1596
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1597
      this.___currentMethod = method_call;
1598
      ___manager.call(method_call);
1599
    }
1600
 
1601
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1602
      private long providerId;
1603
      private boolean cod;
1604
      private List<String> awbs;
13146 manish.sha 1605
      private long awbUsedFor;
1606
      public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, long awbUsedFor, 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 {
7567 rajveer 1607
        super(client, protocolFactory, transport, resultHandler, false);
1608
        this.providerId = providerId;
1609
        this.cod = cod;
1610
        this.awbs = awbs;
13146 manish.sha 1611
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1612
      }
1613
 
1614
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1615
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1616
        addNewAwbs_args args = new addNewAwbs_args();
1617
        args.setProviderId(providerId);
1618
        args.setCod(cod);
1619
        args.setAwbs(awbs);
13146 manish.sha 1620
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1621
        args.write(prot);
1622
        prot.writeMessageEnd();
1623
      }
1624
 
1625
      public boolean getResult() throws org.apache.thrift.TException {
1626
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1627
          throw new IllegalStateException("Method call not finished!");
1628
        }
1629
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1630
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1631
        return (new Client(prot)).recv_addNewAwbs();
1632
      }
1633
    }
1634
 
7788 manish.sha 1635
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1636
      checkReady();
7788 manish.sha 1637
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1638
      this.___currentMethod = method_call;
1639
      ___manager.call(method_call);
1640
    }
1641
 
7788 manish.sha 1642
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1643
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1644
      private boolean runCompleteUpdate;
1645
      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 1646
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1647
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1648
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1649
      }
1650
 
1651
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1652
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1653
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1654
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1655
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1656
        args.write(prot);
1657
        prot.writeMessageEnd();
1658
      }
1659
 
1660
      public void getResult() throws org.apache.thrift.TException {
1661
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1662
          throw new IllegalStateException("Method call not finished!");
1663
        }
1664
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1665
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1666
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1667
      }
1668
    }
1669
 
7888 rajveer 1670
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1671
      checkReady();
1672
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1673
      this.___currentMethod = method_call;
1674
      ___manager.call(method_call);
1675
    }
1676
 
1677
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1678
      private long startDate;
1679
      private long days;
1680
      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 {
1681
        super(client, protocolFactory, transport, resultHandler, false);
1682
        this.startDate = startDate;
1683
        this.days = days;
1684
      }
1685
 
1686
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1687
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1688
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1689
        args.setStartDate(startDate);
1690
        args.setDays(days);
1691
        args.write(prot);
1692
        prot.writeMessageEnd();
1693
      }
1694
 
1695
      public long getResult() throws org.apache.thrift.TException {
1696
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1697
          throw new IllegalStateException("Method call not finished!");
1698
        }
1699
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1700
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1701
        return (new Client(prot)).recv_adjustDeliveryDays();
1702
      }
1703
    }
1704
 
12895 manish.sha 1705
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1706
      checkReady();
1707
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1708
      this.___currentMethod = method_call;
1709
      ___manager.call(method_call);
1710
    }
1711
 
1712
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1713
      private String pincode;
1714
      private long whLocation;
1715
      public getFirstDeliveryEstimateForWhLocation_call(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_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 {
1716
        super(client, protocolFactory, transport, resultHandler, false);
1717
        this.pincode = pincode;
1718
        this.whLocation = whLocation;
1719
      }
1720
 
1721
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1722
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1723
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1724
        args.setPincode(pincode);
1725
        args.setWhLocation(whLocation);
1726
        args.write(prot);
1727
        prot.writeMessageEnd();
1728
      }
1729
 
1730
      public long getResult() throws org.apache.thrift.TException {
1731
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1732
          throw new IllegalStateException("Method call not finished!");
1733
        }
1734
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1735
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1736
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1737
      }
1738
    }
1739
 
13146 manish.sha 1740
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1741
      checkReady();
1742
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1743
      this.___currentMethod = method_call;
1744
      ___manager.call(method_call);
1745
    }
1746
 
1747
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1748
      private long providerId;
1749
      private DeliveryType type;
1750
      private long orderQuantity;
1751
      public getNewEmptyAwb_call(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_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 {
1752
        super(client, protocolFactory, transport, resultHandler, false);
1753
        this.providerId = providerId;
1754
        this.type = type;
1755
        this.orderQuantity = orderQuantity;
1756
      }
1757
 
1758
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1759
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1760
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1761
        args.setProviderId(providerId);
1762
        args.setType(type);
1763
        args.setOrderQuantity(orderQuantity);
1764
        args.write(prot);
1765
        prot.writeMessageEnd();
1766
      }
1767
 
1768
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1769
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1770
          throw new IllegalStateException("Method call not finished!");
1771
        }
1772
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1773
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1774
        return (new Client(prot)).recv_getNewEmptyAwb();
1775
      }
1776
    }
1777
 
1778
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1779
      checkReady();
1780
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1781
      this.___currentMethod = method_call;
1782
      ___manager.call(method_call);
1783
    }
1784
 
1785
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1786
      private long providerId;
1787
      private String pincode;
1788
      public getProviderLimitDetailsForPincode_call(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_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 {
1789
        super(client, protocolFactory, transport, resultHandler, false);
1790
        this.providerId = providerId;
1791
        this.pincode = pincode;
1792
      }
1793
 
1794
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1795
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1796
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1797
        args.setProviderId(providerId);
1798
        args.setPincode(pincode);
1799
        args.write(prot);
1800
        prot.writeMessageEnd();
1801
      }
1802
 
1803
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1804
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1805
          throw new IllegalStateException("Method call not finished!");
1806
        }
1807
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1809
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1810
      }
1811
    }
1812
 
19413 amit.gupta 1813
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1814
      checkReady();
1815
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1816
      this.___currentMethod = method_call;
1817
      ___manager.call(method_call);
1818
    }
1819
 
1820
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1821
      private String destPincode;
1822
      private List<Long> price;
1823
      public getLocationInfoMap_call(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_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 {
1824
        super(client, protocolFactory, transport, resultHandler, false);
1825
        this.destPincode = destPincode;
1826
        this.price = price;
1827
      }
1828
 
1829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1831
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1832
        args.setDestPincode(destPincode);
1833
        args.setPrice(price);
1834
        args.write(prot);
1835
        prot.writeMessageEnd();
1836
      }
1837
 
1838
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1839
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1840
          throw new IllegalStateException("Method call not finished!");
1841
        }
1842
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1843
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1844
        return (new Client(prot)).recv_getLocationInfoMap();
1845
      }
1846
    }
1847
 
19474 manish.sha 1848
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException {
19421 manish.sha 1849
      checkReady();
19474 manish.sha 1850
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
19421 manish.sha 1851
      this.___currentMethod = method_call;
1852
      ___manager.call(method_call);
1853
    }
1854
 
1855
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1856
      private String pincode;
1857
      private double transactionAmount;
1858
      private boolean isCod;
1859
      private double weight;
1860
      private long billingWarehouseId;
19474 manish.sha 1861
      private boolean isCompleteTxn;
1862
      public getCostingAndDeliveryEstimateForPincode_call(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_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 {
19421 manish.sha 1863
        super(client, protocolFactory, transport, resultHandler, false);
1864
        this.pincode = pincode;
1865
        this.transactionAmount = transactionAmount;
1866
        this.isCod = isCod;
1867
        this.weight = weight;
1868
        this.billingWarehouseId = billingWarehouseId;
19474 manish.sha 1869
        this.isCompleteTxn = isCompleteTxn;
19421 manish.sha 1870
      }
1871
 
1872
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1873
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1874
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1875
        args.setPincode(pincode);
1876
        args.setTransactionAmount(transactionAmount);
1877
        args.setIsCod(isCod);
1878
        args.setWeight(weight);
1879
        args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 1880
        args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 1881
        args.write(prot);
1882
        prot.writeMessageEnd();
1883
      }
1884
 
1885
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1886
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1887
          throw new IllegalStateException("Method call not finished!");
1888
        }
1889
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1890
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1891
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1892
      }
1893
    }
1894
 
20744 kshitij.so 1895
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
1896
      checkReady();
1897
      getBluedartAttributesForLogisticsTxnId_call method_call = new getBluedartAttributesForLogisticsTxnId_call(logisticsTxnId, name, resultHandler, this, ___protocolFactory, ___transport);
1898
      this.___currentMethod = method_call;
1899
      ___manager.call(method_call);
1900
    }
1901
 
1902
    public static class getBluedartAttributesForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1903
      private String logisticsTxnId;
1904
      private String name;
1905
      public getBluedartAttributesForLogisticsTxnId_call(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_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 {
1906
        super(client, protocolFactory, transport, resultHandler, false);
1907
        this.logisticsTxnId = logisticsTxnId;
1908
        this.name = name;
1909
      }
1910
 
1911
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1912
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBluedartAttributesForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1913
        getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
1914
        args.setLogisticsTxnId(logisticsTxnId);
1915
        args.setName(name);
1916
        args.write(prot);
1917
        prot.writeMessageEnd();
1918
      }
1919
 
1920
      public BluedartAttributes getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1921
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1922
          throw new IllegalStateException("Method call not finished!");
1923
        }
1924
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1926
        return (new Client(prot)).recv_getBluedartAttributesForLogisticsTxnId();
1927
      }
1928
    }
1929
 
3430 rajveer 1930
  }
1931
 
1932
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1933
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1934
    public Processor(I iface) {
1935
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1936
    }
1937
 
1938
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1939
      super(iface, getProcessMap(processMap));
1940
    }
1941
 
1942
    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) {
1943
      processMap.put("getProvider", new getProvider());
1944
      processMap.put("getAllProviders", new getAllProviders());
1945
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1946
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1947
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1948
      processMap.put("getEmptyAWB", new getEmptyAWB());
1949
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1950
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1951
      processMap.put("getDestinationCode", new getDestinationCode());
1952
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1953
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1954
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1955
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1956
      processMap.put("getAllPickupStores", new getAllPickupStores());
1957
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1958
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1959
      processMap.put("addPincode", new addPincode());
1960
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1961
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1962
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1963
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1964
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1965
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1966
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 1967
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 1968
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
20744 kshitij.so 1969
      processMap.put("getBluedartAttributesForLogisticsTxnId", new getBluedartAttributesForLogisticsTxnId());
3430 rajveer 1970
      return processMap;
1971
    }
1972
 
1973
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1974
      public getProvider() {
1975
        super("getProvider");
1976
      }
1977
 
1978
      protected getProvider_args getEmptyArgsInstance() {
1979
        return new getProvider_args();
1980
      }
1981
 
1982
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1983
        getProvider_result result = new getProvider_result();
1984
        try {
3430 rajveer 1985
          result.success = iface.getProvider(args.providerId);
668 chandransh 1986
        } catch (LogisticsServiceException lse) {
1987
          result.lse = lse;
1988
        }
3430 rajveer 1989
        return result;
668 chandransh 1990
      }
1991
    }
1992
 
3430 rajveer 1993
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1994
      public getAllProviders() {
1995
        super("getAllProviders");
1996
      }
1997
 
1998
      protected getAllProviders_args getEmptyArgsInstance() {
1999
        return new getAllProviders_args();
2000
      }
2001
 
2002
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 2003
        getAllProviders_result result = new getAllProviders_result();
2004
        try {
3430 rajveer 2005
          result.success = iface.getAllProviders();
674 chandransh 2006
        } catch (LogisticsServiceException lse) {
2007
          result.lse = lse;
2008
        }
3430 rajveer 2009
        return result;
674 chandransh 2010
      }
2011
    }
2012
 
3430 rajveer 2013
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
2014
      public getLogisticsEstimation() {
2015
        super("getLogisticsEstimation");
2016
      }
2017
 
2018
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
2019
        return new getLogisticsEstimation_args();
2020
      }
2021
 
2022
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 2023
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 2024
        try {
4630 mandeep.dh 2025
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 2026
        } catch (LogisticsServiceException se) {
2027
          result.se = se;
2028
        }
3430 rajveer 2029
        return result;
483 rajveer 2030
      }
2031
    }
2032
 
7256 rajveer 2033
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
2034
      public getLogisticsEstimationForStore() {
2035
        super("getLogisticsEstimationForStore");
2036
      }
2037
 
2038
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
2039
        return new getLogisticsEstimationForStore_args();
2040
      }
2041
 
2042
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
2043
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
2044
        try {
2045
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
2046
        } catch (LogisticsServiceException se) {
2047
          result.se = se;
2048
        }
2049
        return result;
2050
      }
2051
    }
2052
 
3430 rajveer 2053
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
2054
      public getLogisticsInfo() {
2055
        super("getLogisticsInfo");
2056
      }
2057
 
2058
      protected getLogisticsInfo_args getEmptyArgsInstance() {
2059
        return new getLogisticsInfo_args();
2060
      }
2061
 
2062
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 2063
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 2064
        try {
5766 rajveer 2065
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 2066
        } catch (LogisticsServiceException se) {
2067
          result.se = se;
2068
        }
3430 rajveer 2069
        return result;
471 rajveer 2070
      }
2071
    }
2072
 
3430 rajveer 2073
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2074
      public getEmptyAWB() {
2075
        super("getEmptyAWB");
2076
      }
2077
 
2078
      protected getEmptyAWB_args getEmptyArgsInstance() {
2079
        return new getEmptyAWB_args();
2080
      }
2081
 
2082
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2083
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2084
        try {
20724 kshitij.so 2085
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
648 chandransh 2086
        } catch (LogisticsServiceException se) {
2087
          result.se = se;
2088
        }
3430 rajveer 2089
        return result;
412 ashish 2090
      }
2091
    }
2092
 
3430 rajveer 2093
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2094
      public getShipmentInfo() {
2095
        super("getShipmentInfo");
2096
      }
2097
 
2098
      protected getShipmentInfo_args getEmptyArgsInstance() {
2099
        return new getShipmentInfo_args();
2100
      }
2101
 
2102
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2103
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2104
        try {
6643 rajveer 2105
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2106
        } catch (LogisticsServiceException se) {
2107
          result.se = se;
2108
        }
3430 rajveer 2109
        return result;
412 ashish 2110
      }
2111
    }
2112
 
6643 rajveer 2113
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2114
      public storeShipmentInfo() {
2115
        super("storeShipmentInfo");
2116
      }
2117
 
2118
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2119
        return new storeShipmentInfo_args();
2120
      }
2121
 
2122
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2123
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2124
        try {
2125
          iface.storeShipmentInfo(args.update);
2126
        } catch (LogisticsServiceException se) {
2127
          result.se = se;
2128
        }
2129
        return result;
2130
      }
2131
    }
2132
 
3430 rajveer 2133
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2134
      public getDestinationCode() {
2135
        super("getDestinationCode");
2136
      }
2137
 
2138
      protected getDestinationCode_args getEmptyArgsInstance() {
2139
        return new getDestinationCode_args();
2140
      }
2141
 
2142
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2143
        getDestinationCode_result result = new getDestinationCode_result();
2144
        try {
3430 rajveer 2145
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2146
        } catch (LogisticsServiceException se) {
2147
          result.se = se;
2148
        }
3430 rajveer 2149
        return result;
730 chandransh 2150
      }
2151
    }
2152
 
3430 rajveer 2153
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2154
      public getFreeAwbCount() {
2155
        super("getFreeAwbCount");
2156
      }
2157
 
2158
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2159
        return new getFreeAwbCount_args();
2160
      }
2161
 
2162
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2163
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2164
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2165
        result.setSuccessIsSet(true);
3430 rajveer 2166
        return result;
1139 chandransh 2167
      }
2168
    }
2169
 
3430 rajveer 2170
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2171
      public getHolidays() {
2172
        super("getHolidays");
2173
      }
2174
 
2175
      protected getHolidays_args getEmptyArgsInstance() {
2176
        return new getHolidays_args();
2177
      }
2178
 
2179
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2180
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2181
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2182
        return result;
1730 ankur.sing 2183
      }
2184
    }
2185
 
4934 amit.gupta 2186
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2187
      public getEntityLogisticsEstimation() {
2188
        super("getEntityLogisticsEstimation");
2189
      }
2190
 
2191
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2192
        return new getEntityLogisticsEstimation_args();
2193
      }
2194
 
2195
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2196
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2197
        try {
2198
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2199
        } catch (LogisticsServiceException se) {
2200
          result.se = se;
2201
        }
2202
        return result;
2203
      }
2204
    }
2205
 
5527 anupam.sin 2206
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2207
      public getProviderForPickupType() {
2208
        super("getProviderForPickupType");
2209
      }
2210
 
2211
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2212
        return new getProviderForPickupType_args();
2213
      }
2214
 
2215
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2216
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2217
        result.success = iface.getProviderForPickupType(args.pickUp);
2218
        result.setSuccessIsSet(true);
2219
        return result;
2220
      }
2221
    }
2222
 
5553 rajveer 2223
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2224
      public getAllPickupStores() {
2225
        super("getAllPickupStores");
2226
      }
2227
 
2228
      protected getAllPickupStores_args getEmptyArgsInstance() {
2229
        return new getAllPickupStores_args();
2230
      }
2231
 
2232
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2233
        getAllPickupStores_result result = new getAllPickupStores_result();
2234
        result.success = iface.getAllPickupStores();
2235
        return result;
2236
      }
2237
    }
2238
 
2239
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2240
      public getPickupStore() {
2241
        super("getPickupStore");
2242
      }
2243
 
2244
      protected getPickupStore_args getEmptyArgsInstance() {
2245
        return new getPickupStore_args();
2246
      }
2247
 
2248
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2249
        getPickupStore_result result = new getPickupStore_result();
2250
        result.success = iface.getPickupStore(args.storeId);
2251
        return result;
2252
      }
2253
    }
2254
 
5719 rajveer 2255
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2256
      public getPickupStoreByHotspotId() {
2257
        super("getPickupStoreByHotspotId");
2258
      }
2259
 
2260
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2261
        return new getPickupStoreByHotspotId_args();
2262
      }
2263
 
2264
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2265
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2266
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2267
        return result;
2268
      }
2269
    }
2270
 
6322 amar.kumar 2271
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2272
      public addPincode() {
2273
        super("addPincode");
2274
      }
2275
 
2276
      protected addPincode_args getEmptyArgsInstance() {
2277
        return new addPincode_args();
2278
      }
2279
 
2280
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2281
        addPincode_result result = new addPincode_result();
6524 rajveer 2282
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2283
        return result;
2284
      }
2285
    }
2286
 
2287
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2288
      public updatePincode() {
2289
        super("updatePincode");
2290
      }
2291
 
2292
      protected updatePincode_args getEmptyArgsInstance() {
2293
        return new updatePincode_args();
2294
      }
2295
 
2296
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2297
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2298
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2299
        return result;
2300
      }
2301
    }
2302
 
7567 rajveer 2303
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2304
      public addNewAwbs() {
2305
        super("addNewAwbs");
2306
      }
2307
 
2308
      protected addNewAwbs_args getEmptyArgsInstance() {
2309
        return new addNewAwbs_args();
2310
      }
2311
 
2312
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2313
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2314
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2315
        result.setSuccessIsSet(true);
2316
        return result;
2317
      }
2318
    }
2319
 
7788 manish.sha 2320
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2321
      public runLogisticsLocationInfoUpdate() {
2322
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2323
      }
2324
 
7788 manish.sha 2325
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2326
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2327
      }
2328
 
7788 manish.sha 2329
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2330
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
2331
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 2332
        return result;
2333
      }
2334
    }
2335
 
7888 rajveer 2336
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2337
      public adjustDeliveryDays() {
2338
        super("adjustDeliveryDays");
2339
      }
2340
 
2341
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2342
        return new adjustDeliveryDays_args();
2343
      }
2344
 
2345
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2346
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2347
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2348
        result.setSuccessIsSet(true);
2349
        return result;
2350
      }
2351
    }
2352
 
12895 manish.sha 2353
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2354
      public getFirstDeliveryEstimateForWhLocation() {
2355
        super("getFirstDeliveryEstimateForWhLocation");
2356
      }
2357
 
2358
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2359
        return new getFirstDeliveryEstimateForWhLocation_args();
2360
      }
2361
 
2362
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2363
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2364
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2365
        result.setSuccessIsSet(true);
2366
        return result;
2367
      }
2368
    }
2369
 
13146 manish.sha 2370
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2371
      public getNewEmptyAwb() {
2372
        super("getNewEmptyAwb");
2373
      }
2374
 
2375
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2376
        return new getNewEmptyAwb_args();
2377
      }
2378
 
2379
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2380
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2381
        try {
2382
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2383
        } catch (LogisticsServiceException se) {
2384
          result.se = se;
2385
        }
2386
        return result;
2387
      }
2388
    }
2389
 
2390
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2391
      public getProviderLimitDetailsForPincode() {
2392
        super("getProviderLimitDetailsForPincode");
2393
      }
2394
 
2395
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2396
        return new getProviderLimitDetailsForPincode_args();
2397
      }
2398
 
2399
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2400
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2401
        try {
2402
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2403
        } catch (LogisticsServiceException se) {
2404
          result.se = se;
2405
        }
2406
        return result;
2407
      }
2408
    }
2409
 
19413 amit.gupta 2410
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2411
      public getLocationInfoMap() {
2412
        super("getLocationInfoMap");
2413
      }
2414
 
2415
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2416
        return new getLocationInfoMap_args();
2417
      }
2418
 
2419
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2420
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2421
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2422
        return result;
2423
      }
2424
    }
2425
 
19421 manish.sha 2426
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2427
      public getCostingAndDeliveryEstimateForPincode() {
2428
        super("getCostingAndDeliveryEstimateForPincode");
2429
      }
2430
 
2431
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2432
        return new getCostingAndDeliveryEstimateForPincode_args();
2433
      }
2434
 
2435
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2436
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2437
        try {
19474 manish.sha 2438
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
19421 manish.sha 2439
        } catch (LogisticsServiceException se) {
2440
          result.se = se;
2441
        }
2442
        return result;
2443
      }
2444
    }
2445
 
20744 kshitij.so 2446
    private static class getBluedartAttributesForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBluedartAttributesForLogisticsTxnId_args> {
2447
      public getBluedartAttributesForLogisticsTxnId() {
2448
        super("getBluedartAttributesForLogisticsTxnId");
2449
      }
2450
 
2451
      protected getBluedartAttributesForLogisticsTxnId_args getEmptyArgsInstance() {
2452
        return new getBluedartAttributesForLogisticsTxnId_args();
2453
      }
2454
 
2455
      protected getBluedartAttributesForLogisticsTxnId_result getResult(I iface, getBluedartAttributesForLogisticsTxnId_args args) throws org.apache.thrift.TException {
2456
        getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
2457
        try {
2458
          result.success = iface.getBluedartAttributesForLogisticsTxnId(args.logisticsTxnId, args.name);
2459
        } catch (LogisticsServiceException se) {
2460
          result.se = se;
2461
        }
2462
        return result;
2463
      }
2464
    }
2465
 
412 ashish 2466
  }
2467
 
3430 rajveer 2468
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2470
 
3430 rajveer 2471
    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 2472
 
3430 rajveer 2473
    private long providerId; // required
668 chandransh 2474
 
2475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2477
      PROVIDER_ID((short)1, "providerId");
2478
 
2479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2480
 
2481
      static {
2482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2483
          byName.put(field.getFieldName(), field);
2484
        }
2485
      }
2486
 
2487
      /**
2488
       * Find the _Fields constant that matches fieldId, or null if its not found.
2489
       */
2490
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2491
        switch(fieldId) {
2492
          case 1: // PROVIDER_ID
2493
            return PROVIDER_ID;
2494
          default:
2495
            return null;
2496
        }
668 chandransh 2497
      }
2498
 
2499
      /**
2500
       * Find the _Fields constant that matches fieldId, throwing an exception
2501
       * if it is not found.
2502
       */
2503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2504
        _Fields fields = findByThriftId(fieldId);
2505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2506
        return fields;
2507
      }
2508
 
2509
      /**
2510
       * Find the _Fields constant that matches name, or null if its not found.
2511
       */
2512
      public static _Fields findByName(String name) {
2513
        return byName.get(name);
2514
      }
2515
 
2516
      private final short _thriftId;
2517
      private final String _fieldName;
2518
 
2519
      _Fields(short thriftId, String fieldName) {
2520
        _thriftId = thriftId;
2521
        _fieldName = fieldName;
2522
      }
2523
 
2524
      public short getThriftFieldId() {
2525
        return _thriftId;
2526
      }
2527
 
2528
      public String getFieldName() {
2529
        return _fieldName;
2530
      }
2531
    }
2532
 
2533
    // isset id assignments
2534
    private static final int __PROVIDERID_ISSET_ID = 0;
2535
    private BitSet __isset_bit_vector = new BitSet(1);
2536
 
3430 rajveer 2537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2538
    static {
3430 rajveer 2539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2540
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2542
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2543
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2544
    }
2545
 
2546
    public getProvider_args() {
2547
    }
2548
 
2549
    public getProvider_args(
2550
      long providerId)
2551
    {
2552
      this();
2553
      this.providerId = providerId;
2554
      setProviderIdIsSet(true);
2555
    }
2556
 
2557
    /**
2558
     * Performs a deep copy on <i>other</i>.
2559
     */
2560
    public getProvider_args(getProvider_args other) {
2561
      __isset_bit_vector.clear();
2562
      __isset_bit_vector.or(other.__isset_bit_vector);
2563
      this.providerId = other.providerId;
2564
    }
2565
 
2566
    public getProvider_args deepCopy() {
2567
      return new getProvider_args(this);
2568
    }
2569
 
3430 rajveer 2570
    @Override
2571
    public void clear() {
2572
      setProviderIdIsSet(false);
2573
      this.providerId = 0;
668 chandransh 2574
    }
2575
 
2576
    public long getProviderId() {
2577
      return this.providerId;
2578
    }
2579
 
3430 rajveer 2580
    public void setProviderId(long providerId) {
668 chandransh 2581
      this.providerId = providerId;
2582
      setProviderIdIsSet(true);
2583
    }
2584
 
2585
    public void unsetProviderId() {
2586
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2587
    }
2588
 
3430 rajveer 2589
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2590
    public boolean isSetProviderId() {
2591
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2592
    }
2593
 
2594
    public void setProviderIdIsSet(boolean value) {
2595
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2596
    }
2597
 
2598
    public void setFieldValue(_Fields field, Object value) {
2599
      switch (field) {
2600
      case PROVIDER_ID:
2601
        if (value == null) {
2602
          unsetProviderId();
2603
        } else {
2604
          setProviderId((Long)value);
2605
        }
2606
        break;
2607
 
2608
      }
2609
    }
2610
 
2611
    public Object getFieldValue(_Fields field) {
2612
      switch (field) {
2613
      case PROVIDER_ID:
3430 rajveer 2614
        return Long.valueOf(getProviderId());
668 chandransh 2615
 
2616
      }
2617
      throw new IllegalStateException();
2618
    }
2619
 
3430 rajveer 2620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2621
    public boolean isSet(_Fields field) {
2622
      if (field == null) {
2623
        throw new IllegalArgumentException();
2624
      }
668 chandransh 2625
 
2626
      switch (field) {
2627
      case PROVIDER_ID:
2628
        return isSetProviderId();
2629
      }
2630
      throw new IllegalStateException();
2631
    }
2632
 
2633
    @Override
2634
    public boolean equals(Object that) {
2635
      if (that == null)
2636
        return false;
2637
      if (that instanceof getProvider_args)
2638
        return this.equals((getProvider_args)that);
2639
      return false;
2640
    }
2641
 
2642
    public boolean equals(getProvider_args that) {
2643
      if (that == null)
2644
        return false;
2645
 
2646
      boolean this_present_providerId = true;
2647
      boolean that_present_providerId = true;
2648
      if (this_present_providerId || that_present_providerId) {
2649
        if (!(this_present_providerId && that_present_providerId))
2650
          return false;
2651
        if (this.providerId != that.providerId)
2652
          return false;
2653
      }
2654
 
2655
      return true;
2656
    }
2657
 
2658
    @Override
2659
    public int hashCode() {
2660
      return 0;
2661
    }
2662
 
2663
    public int compareTo(getProvider_args other) {
2664
      if (!getClass().equals(other.getClass())) {
2665
        return getClass().getName().compareTo(other.getClass().getName());
2666
      }
2667
 
2668
      int lastComparison = 0;
2669
      getProvider_args typedOther = (getProvider_args)other;
2670
 
3430 rajveer 2671
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2672
      if (lastComparison != 0) {
2673
        return lastComparison;
2674
      }
3430 rajveer 2675
      if (isSetProviderId()) {
2676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2677
        if (lastComparison != 0) {
2678
          return lastComparison;
2679
        }
668 chandransh 2680
      }
2681
      return 0;
2682
    }
2683
 
3430 rajveer 2684
    public _Fields fieldForId(int fieldId) {
2685
      return _Fields.findByThriftId(fieldId);
2686
    }
2687
 
2688
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2689
      org.apache.thrift.protocol.TField field;
668 chandransh 2690
      iprot.readStructBegin();
2691
      while (true)
2692
      {
2693
        field = iprot.readFieldBegin();
3430 rajveer 2694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2695
          break;
2696
        }
3430 rajveer 2697
        switch (field.id) {
2698
          case 1: // PROVIDER_ID
2699
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2700
              this.providerId = iprot.readI64();
2701
              setProviderIdIsSet(true);
2702
            } else { 
2703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2704
            }
2705
            break;
2706
          default:
2707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2708
        }
3430 rajveer 2709
        iprot.readFieldEnd();
668 chandransh 2710
      }
2711
      iprot.readStructEnd();
2712
      validate();
2713
    }
2714
 
3430 rajveer 2715
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2716
      validate();
2717
 
2718
      oprot.writeStructBegin(STRUCT_DESC);
2719
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2720
      oprot.writeI64(this.providerId);
2721
      oprot.writeFieldEnd();
2722
      oprot.writeFieldStop();
2723
      oprot.writeStructEnd();
2724
    }
2725
 
2726
    @Override
2727
    public String toString() {
2728
      StringBuilder sb = new StringBuilder("getProvider_args(");
2729
      boolean first = true;
2730
 
2731
      sb.append("providerId:");
2732
      sb.append(this.providerId);
2733
      first = false;
2734
      sb.append(")");
2735
      return sb.toString();
2736
    }
2737
 
3430 rajveer 2738
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2739
      // check for required fields
2740
    }
2741
 
3430 rajveer 2742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2743
      try {
2744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2745
      } catch (org.apache.thrift.TException te) {
2746
        throw new java.io.IOException(te);
2747
      }
2748
    }
2749
 
2750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2751
      try {
2752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2753
      } catch (org.apache.thrift.TException te) {
2754
        throw new java.io.IOException(te);
2755
      }
2756
    }
2757
 
668 chandransh 2758
  }
2759
 
3430 rajveer 2760
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2762
 
3430 rajveer 2763
    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);
2764
    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 2765
 
3430 rajveer 2766
    private Provider success; // required
2767
    private LogisticsServiceException lse; // required
668 chandransh 2768
 
2769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2771
      SUCCESS((short)0, "success"),
2772
      LSE((short)1, "lse");
2773
 
2774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2775
 
2776
      static {
2777
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2778
          byName.put(field.getFieldName(), field);
2779
        }
2780
      }
2781
 
2782
      /**
2783
       * Find the _Fields constant that matches fieldId, or null if its not found.
2784
       */
2785
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2786
        switch(fieldId) {
2787
          case 0: // SUCCESS
2788
            return SUCCESS;
2789
          case 1: // LSE
2790
            return LSE;
2791
          default:
2792
            return null;
2793
        }
668 chandransh 2794
      }
2795
 
2796
      /**
2797
       * Find the _Fields constant that matches fieldId, throwing an exception
2798
       * if it is not found.
2799
       */
2800
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2801
        _Fields fields = findByThriftId(fieldId);
2802
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2803
        return fields;
2804
      }
2805
 
2806
      /**
2807
       * Find the _Fields constant that matches name, or null if its not found.
2808
       */
2809
      public static _Fields findByName(String name) {
2810
        return byName.get(name);
2811
      }
2812
 
2813
      private final short _thriftId;
2814
      private final String _fieldName;
2815
 
2816
      _Fields(short thriftId, String fieldName) {
2817
        _thriftId = thriftId;
2818
        _fieldName = fieldName;
2819
      }
2820
 
2821
      public short getThriftFieldId() {
2822
        return _thriftId;
2823
      }
2824
 
2825
      public String getFieldName() {
2826
        return _fieldName;
2827
      }
2828
    }
2829
 
2830
    // isset id assignments
2831
 
3430 rajveer 2832
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2833
    static {
3430 rajveer 2834
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2835
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2836
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2837
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2841
    }
2842
 
2843
    public getProvider_result() {
2844
    }
2845
 
2846
    public getProvider_result(
2847
      Provider success,
2848
      LogisticsServiceException lse)
2849
    {
2850
      this();
2851
      this.success = success;
2852
      this.lse = lse;
2853
    }
2854
 
2855
    /**
2856
     * Performs a deep copy on <i>other</i>.
2857
     */
2858
    public getProvider_result(getProvider_result other) {
2859
      if (other.isSetSuccess()) {
2860
        this.success = new Provider(other.success);
2861
      }
2862
      if (other.isSetLse()) {
2863
        this.lse = new LogisticsServiceException(other.lse);
2864
      }
2865
    }
2866
 
2867
    public getProvider_result deepCopy() {
2868
      return new getProvider_result(this);
2869
    }
2870
 
3430 rajveer 2871
    @Override
2872
    public void clear() {
2873
      this.success = null;
2874
      this.lse = null;
668 chandransh 2875
    }
2876
 
2877
    public Provider getSuccess() {
2878
      return this.success;
2879
    }
2880
 
3430 rajveer 2881
    public void setSuccess(Provider success) {
668 chandransh 2882
      this.success = success;
2883
    }
2884
 
2885
    public void unsetSuccess() {
2886
      this.success = null;
2887
    }
2888
 
3430 rajveer 2889
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2890
    public boolean isSetSuccess() {
2891
      return this.success != null;
2892
    }
2893
 
2894
    public void setSuccessIsSet(boolean value) {
2895
      if (!value) {
2896
        this.success = null;
2897
      }
2898
    }
2899
 
2900
    public LogisticsServiceException getLse() {
2901
      return this.lse;
2902
    }
2903
 
3430 rajveer 2904
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2905
      this.lse = lse;
2906
    }
2907
 
2908
    public void unsetLse() {
2909
      this.lse = null;
2910
    }
2911
 
3430 rajveer 2912
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2913
    public boolean isSetLse() {
2914
      return this.lse != null;
2915
    }
2916
 
2917
    public void setLseIsSet(boolean value) {
2918
      if (!value) {
2919
        this.lse = null;
2920
      }
2921
    }
2922
 
2923
    public void setFieldValue(_Fields field, Object value) {
2924
      switch (field) {
2925
      case SUCCESS:
2926
        if (value == null) {
2927
          unsetSuccess();
2928
        } else {
2929
          setSuccess((Provider)value);
2930
        }
2931
        break;
2932
 
2933
      case LSE:
2934
        if (value == null) {
2935
          unsetLse();
2936
        } else {
2937
          setLse((LogisticsServiceException)value);
2938
        }
2939
        break;
2940
 
2941
      }
2942
    }
2943
 
2944
    public Object getFieldValue(_Fields field) {
2945
      switch (field) {
2946
      case SUCCESS:
2947
        return getSuccess();
2948
 
2949
      case LSE:
2950
        return getLse();
2951
 
2952
      }
2953
      throw new IllegalStateException();
2954
    }
2955
 
3430 rajveer 2956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2957
    public boolean isSet(_Fields field) {
2958
      if (field == null) {
2959
        throw new IllegalArgumentException();
2960
      }
668 chandransh 2961
 
2962
      switch (field) {
2963
      case SUCCESS:
2964
        return isSetSuccess();
2965
      case LSE:
2966
        return isSetLse();
2967
      }
2968
      throw new IllegalStateException();
2969
    }
2970
 
2971
    @Override
2972
    public boolean equals(Object that) {
2973
      if (that == null)
2974
        return false;
2975
      if (that instanceof getProvider_result)
2976
        return this.equals((getProvider_result)that);
2977
      return false;
2978
    }
2979
 
2980
    public boolean equals(getProvider_result that) {
2981
      if (that == null)
2982
        return false;
2983
 
2984
      boolean this_present_success = true && this.isSetSuccess();
2985
      boolean that_present_success = true && that.isSetSuccess();
2986
      if (this_present_success || that_present_success) {
2987
        if (!(this_present_success && that_present_success))
2988
          return false;
2989
        if (!this.success.equals(that.success))
2990
          return false;
2991
      }
2992
 
2993
      boolean this_present_lse = true && this.isSetLse();
2994
      boolean that_present_lse = true && that.isSetLse();
2995
      if (this_present_lse || that_present_lse) {
2996
        if (!(this_present_lse && that_present_lse))
2997
          return false;
2998
        if (!this.lse.equals(that.lse))
2999
          return false;
3000
      }
3001
 
3002
      return true;
3003
    }
3004
 
3005
    @Override
3006
    public int hashCode() {
3007
      return 0;
3008
    }
3009
 
3430 rajveer 3010
    public int compareTo(getProvider_result other) {
3011
      if (!getClass().equals(other.getClass())) {
3012
        return getClass().getName().compareTo(other.getClass().getName());
3013
      }
3014
 
3015
      int lastComparison = 0;
3016
      getProvider_result typedOther = (getProvider_result)other;
3017
 
3018
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3019
      if (lastComparison != 0) {
3020
        return lastComparison;
3021
      }
3022
      if (isSetSuccess()) {
3023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3024
        if (lastComparison != 0) {
3025
          return lastComparison;
3026
        }
3027
      }
3028
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3029
      if (lastComparison != 0) {
3030
        return lastComparison;
3031
      }
3032
      if (isSetLse()) {
3033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3034
        if (lastComparison != 0) {
3035
          return lastComparison;
3036
        }
3037
      }
3038
      return 0;
3039
    }
3040
 
3041
    public _Fields fieldForId(int fieldId) {
3042
      return _Fields.findByThriftId(fieldId);
3043
    }
3044
 
3045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3046
      org.apache.thrift.protocol.TField field;
668 chandransh 3047
      iprot.readStructBegin();
3048
      while (true)
3049
      {
3050
        field = iprot.readFieldBegin();
3430 rajveer 3051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 3052
          break;
3053
        }
3430 rajveer 3054
        switch (field.id) {
3055
          case 0: // SUCCESS
3056
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3057
              this.success = new Provider();
3058
              this.success.read(iprot);
3059
            } else { 
3060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3061
            }
3062
            break;
3063
          case 1: // LSE
3064
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3065
              this.lse = new LogisticsServiceException();
3066
              this.lse.read(iprot);
3067
            } else { 
3068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3069
            }
3070
            break;
3071
          default:
3072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 3073
        }
3430 rajveer 3074
        iprot.readFieldEnd();
668 chandransh 3075
      }
3076
      iprot.readStructEnd();
3077
      validate();
3078
    }
3079
 
3430 rajveer 3080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 3081
      oprot.writeStructBegin(STRUCT_DESC);
3082
 
3083
      if (this.isSetSuccess()) {
3084
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3085
        this.success.write(oprot);
3086
        oprot.writeFieldEnd();
3087
      } else if (this.isSetLse()) {
3088
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3089
        this.lse.write(oprot);
3090
        oprot.writeFieldEnd();
3091
      }
3092
      oprot.writeFieldStop();
3093
      oprot.writeStructEnd();
3094
    }
3095
 
3096
    @Override
3097
    public String toString() {
3098
      StringBuilder sb = new StringBuilder("getProvider_result(");
3099
      boolean first = true;
3100
 
3101
      sb.append("success:");
3102
      if (this.success == null) {
3103
        sb.append("null");
3104
      } else {
3105
        sb.append(this.success);
3106
      }
3107
      first = false;
3108
      if (!first) sb.append(", ");
3109
      sb.append("lse:");
3110
      if (this.lse == null) {
3111
        sb.append("null");
3112
      } else {
3113
        sb.append(this.lse);
3114
      }
3115
      first = false;
3116
      sb.append(")");
3117
      return sb.toString();
3118
    }
3119
 
3430 rajveer 3120
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3121
      // check for required fields
3122
    }
3123
 
3430 rajveer 3124
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3125
      try {
3126
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3127
      } catch (org.apache.thrift.TException te) {
3128
        throw new java.io.IOException(te);
3129
      }
3130
    }
3131
 
3132
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3133
      try {
3134
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3135
      } catch (org.apache.thrift.TException te) {
3136
        throw new java.io.IOException(te);
3137
      }
3138
    }
3139
 
668 chandransh 3140
  }
3141
 
3430 rajveer 3142
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3143
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3144
 
3145
 
3146
 
3147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3149
;
3150
 
3151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3152
 
3153
      static {
3154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3155
          byName.put(field.getFieldName(), field);
3156
        }
3157
      }
3158
 
3159
      /**
3160
       * Find the _Fields constant that matches fieldId, or null if its not found.
3161
       */
3162
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3163
        switch(fieldId) {
3164
          default:
3165
            return null;
3166
        }
674 chandransh 3167
      }
3168
 
3169
      /**
3170
       * Find the _Fields constant that matches fieldId, throwing an exception
3171
       * if it is not found.
3172
       */
3173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3174
        _Fields fields = findByThriftId(fieldId);
3175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3176
        return fields;
3177
      }
3178
 
3179
      /**
3180
       * Find the _Fields constant that matches name, or null if its not found.
3181
       */
3182
      public static _Fields findByName(String name) {
3183
        return byName.get(name);
3184
      }
3185
 
3186
      private final short _thriftId;
3187
      private final String _fieldName;
3188
 
3189
      _Fields(short thriftId, String fieldName) {
3190
        _thriftId = thriftId;
3191
        _fieldName = fieldName;
3192
      }
3193
 
3194
      public short getThriftFieldId() {
3195
        return _thriftId;
3196
      }
3197
 
3198
      public String getFieldName() {
3199
        return _fieldName;
3200
      }
3201
    }
3430 rajveer 3202
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3203
    static {
3430 rajveer 3204
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3205
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3206
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3207
    }
3208
 
3209
    public getAllProviders_args() {
3210
    }
3211
 
3212
    /**
3213
     * Performs a deep copy on <i>other</i>.
3214
     */
3215
    public getAllProviders_args(getAllProviders_args other) {
3216
    }
3217
 
3218
    public getAllProviders_args deepCopy() {
3219
      return new getAllProviders_args(this);
3220
    }
3221
 
3430 rajveer 3222
    @Override
3223
    public void clear() {
674 chandransh 3224
    }
3225
 
3226
    public void setFieldValue(_Fields field, Object value) {
3227
      switch (field) {
3228
      }
3229
    }
3230
 
3231
    public Object getFieldValue(_Fields field) {
3232
      switch (field) {
3233
      }
3234
      throw new IllegalStateException();
3235
    }
3236
 
3430 rajveer 3237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3238
    public boolean isSet(_Fields field) {
3239
      if (field == null) {
3240
        throw new IllegalArgumentException();
3241
      }
674 chandransh 3242
 
3243
      switch (field) {
3244
      }
3245
      throw new IllegalStateException();
3246
    }
3247
 
3248
    @Override
3249
    public boolean equals(Object that) {
3250
      if (that == null)
3251
        return false;
3252
      if (that instanceof getAllProviders_args)
3253
        return this.equals((getAllProviders_args)that);
3254
      return false;
3255
    }
3256
 
3257
    public boolean equals(getAllProviders_args that) {
3258
      if (that == null)
3259
        return false;
3260
 
3261
      return true;
3262
    }
3263
 
3264
    @Override
3265
    public int hashCode() {
3266
      return 0;
3267
    }
3268
 
3269
    public int compareTo(getAllProviders_args other) {
3270
      if (!getClass().equals(other.getClass())) {
3271
        return getClass().getName().compareTo(other.getClass().getName());
3272
      }
3273
 
3274
      int lastComparison = 0;
3275
      getAllProviders_args typedOther = (getAllProviders_args)other;
3276
 
3277
      return 0;
3278
    }
3279
 
3430 rajveer 3280
    public _Fields fieldForId(int fieldId) {
3281
      return _Fields.findByThriftId(fieldId);
3282
    }
3283
 
3284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3285
      org.apache.thrift.protocol.TField field;
674 chandransh 3286
      iprot.readStructBegin();
3287
      while (true)
3288
      {
3289
        field = iprot.readFieldBegin();
3430 rajveer 3290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3291
          break;
3292
        }
3430 rajveer 3293
        switch (field.id) {
3294
          default:
3295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3296
        }
3430 rajveer 3297
        iprot.readFieldEnd();
674 chandransh 3298
      }
3299
      iprot.readStructEnd();
3300
      validate();
3301
    }
3302
 
3430 rajveer 3303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3304
      validate();
3305
 
3306
      oprot.writeStructBegin(STRUCT_DESC);
3307
      oprot.writeFieldStop();
3308
      oprot.writeStructEnd();
3309
    }
3310
 
3311
    @Override
3312
    public String toString() {
3313
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3314
      boolean first = true;
3315
 
3316
      sb.append(")");
3317
      return sb.toString();
3318
    }
3319
 
3430 rajveer 3320
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3321
      // check for required fields
3322
    }
3323
 
3430 rajveer 3324
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3325
      try {
3326
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3327
      } catch (org.apache.thrift.TException te) {
3328
        throw new java.io.IOException(te);
3329
      }
3330
    }
3331
 
3332
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3333
      try {
3334
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3335
      } catch (org.apache.thrift.TException te) {
3336
        throw new java.io.IOException(te);
3337
      }
3338
    }
3339
 
674 chandransh 3340
  }
3341
 
3430 rajveer 3342
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3343
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3344
 
3430 rajveer 3345
    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);
3346
    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 3347
 
3430 rajveer 3348
    private List<Provider> success; // required
3349
    private LogisticsServiceException lse; // required
674 chandransh 3350
 
3351
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3352
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3353
      SUCCESS((short)0, "success"),
3354
      LSE((short)1, "lse");
3355
 
3356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3357
 
3358
      static {
3359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3360
          byName.put(field.getFieldName(), field);
3361
        }
3362
      }
3363
 
3364
      /**
3365
       * Find the _Fields constant that matches fieldId, or null if its not found.
3366
       */
3367
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3368
        switch(fieldId) {
3369
          case 0: // SUCCESS
3370
            return SUCCESS;
3371
          case 1: // LSE
3372
            return LSE;
3373
          default:
3374
            return null;
3375
        }
674 chandransh 3376
      }
3377
 
3378
      /**
3379
       * Find the _Fields constant that matches fieldId, throwing an exception
3380
       * if it is not found.
3381
       */
3382
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3383
        _Fields fields = findByThriftId(fieldId);
3384
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3385
        return fields;
3386
      }
3387
 
3388
      /**
3389
       * Find the _Fields constant that matches name, or null if its not found.
3390
       */
3391
      public static _Fields findByName(String name) {
3392
        return byName.get(name);
3393
      }
3394
 
3395
      private final short _thriftId;
3396
      private final String _fieldName;
3397
 
3398
      _Fields(short thriftId, String fieldName) {
3399
        _thriftId = thriftId;
3400
        _fieldName = fieldName;
3401
      }
3402
 
3403
      public short getThriftFieldId() {
3404
        return _thriftId;
3405
      }
3406
 
3407
      public String getFieldName() {
3408
        return _fieldName;
3409
      }
3410
    }
3411
 
3412
    // isset id assignments
3413
 
3430 rajveer 3414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3415
    static {
3430 rajveer 3416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3417
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3418
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3419
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3420
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3424
    }
3425
 
3426
    public getAllProviders_result() {
3427
    }
3428
 
3429
    public getAllProviders_result(
3430
      List<Provider> success,
3431
      LogisticsServiceException lse)
3432
    {
3433
      this();
3434
      this.success = success;
3435
      this.lse = lse;
3436
    }
3437
 
3438
    /**
3439
     * Performs a deep copy on <i>other</i>.
3440
     */
3441
    public getAllProviders_result(getAllProviders_result other) {
3442
      if (other.isSetSuccess()) {
3443
        List<Provider> __this__success = new ArrayList<Provider>();
3444
        for (Provider other_element : other.success) {
3445
          __this__success.add(new Provider(other_element));
3446
        }
3447
        this.success = __this__success;
3448
      }
3449
      if (other.isSetLse()) {
3450
        this.lse = new LogisticsServiceException(other.lse);
3451
      }
3452
    }
3453
 
3454
    public getAllProviders_result deepCopy() {
3455
      return new getAllProviders_result(this);
3456
    }
3457
 
3430 rajveer 3458
    @Override
3459
    public void clear() {
3460
      this.success = null;
3461
      this.lse = null;
674 chandransh 3462
    }
3463
 
3464
    public int getSuccessSize() {
3465
      return (this.success == null) ? 0 : this.success.size();
3466
    }
3467
 
3468
    public java.util.Iterator<Provider> getSuccessIterator() {
3469
      return (this.success == null) ? null : this.success.iterator();
3470
    }
3471
 
3472
    public void addToSuccess(Provider elem) {
3473
      if (this.success == null) {
3474
        this.success = new ArrayList<Provider>();
3475
      }
3476
      this.success.add(elem);
3477
    }
3478
 
3479
    public List<Provider> getSuccess() {
3480
      return this.success;
3481
    }
3482
 
3430 rajveer 3483
    public void setSuccess(List<Provider> success) {
674 chandransh 3484
      this.success = success;
3485
    }
3486
 
3487
    public void unsetSuccess() {
3488
      this.success = null;
3489
    }
3490
 
3430 rajveer 3491
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3492
    public boolean isSetSuccess() {
3493
      return this.success != null;
3494
    }
3495
 
3496
    public void setSuccessIsSet(boolean value) {
3497
      if (!value) {
3498
        this.success = null;
3499
      }
3500
    }
3501
 
3502
    public LogisticsServiceException getLse() {
3503
      return this.lse;
3504
    }
3505
 
3430 rajveer 3506
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3507
      this.lse = lse;
3508
    }
3509
 
3510
    public void unsetLse() {
3511
      this.lse = null;
3512
    }
3513
 
3430 rajveer 3514
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3515
    public boolean isSetLse() {
3516
      return this.lse != null;
3517
    }
3518
 
3519
    public void setLseIsSet(boolean value) {
3520
      if (!value) {
3521
        this.lse = null;
3522
      }
3523
    }
3524
 
3525
    public void setFieldValue(_Fields field, Object value) {
3526
      switch (field) {
3527
      case SUCCESS:
3528
        if (value == null) {
3529
          unsetSuccess();
3530
        } else {
3531
          setSuccess((List<Provider>)value);
3532
        }
3533
        break;
3534
 
3535
      case LSE:
3536
        if (value == null) {
3537
          unsetLse();
3538
        } else {
3539
          setLse((LogisticsServiceException)value);
3540
        }
3541
        break;
3542
 
3543
      }
3544
    }
3545
 
3546
    public Object getFieldValue(_Fields field) {
3547
      switch (field) {
3548
      case SUCCESS:
3549
        return getSuccess();
3550
 
3551
      case LSE:
3552
        return getLse();
3553
 
3554
      }
3555
      throw new IllegalStateException();
3556
    }
3557
 
3430 rajveer 3558
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3559
    public boolean isSet(_Fields field) {
3560
      if (field == null) {
3561
        throw new IllegalArgumentException();
3562
      }
674 chandransh 3563
 
3564
      switch (field) {
3565
      case SUCCESS:
3566
        return isSetSuccess();
3567
      case LSE:
3568
        return isSetLse();
3569
      }
3570
      throw new IllegalStateException();
3571
    }
3572
 
3573
    @Override
3574
    public boolean equals(Object that) {
3575
      if (that == null)
3576
        return false;
3577
      if (that instanceof getAllProviders_result)
3578
        return this.equals((getAllProviders_result)that);
3579
      return false;
3580
    }
3581
 
3582
    public boolean equals(getAllProviders_result that) {
3583
      if (that == null)
3584
        return false;
3585
 
3586
      boolean this_present_success = true && this.isSetSuccess();
3587
      boolean that_present_success = true && that.isSetSuccess();
3588
      if (this_present_success || that_present_success) {
3589
        if (!(this_present_success && that_present_success))
3590
          return false;
3591
        if (!this.success.equals(that.success))
3592
          return false;
3593
      }
3594
 
3595
      boolean this_present_lse = true && this.isSetLse();
3596
      boolean that_present_lse = true && that.isSetLse();
3597
      if (this_present_lse || that_present_lse) {
3598
        if (!(this_present_lse && that_present_lse))
3599
          return false;
3600
        if (!this.lse.equals(that.lse))
3601
          return false;
3602
      }
3603
 
3604
      return true;
3605
    }
3606
 
3607
    @Override
3608
    public int hashCode() {
3609
      return 0;
3610
    }
3611
 
3430 rajveer 3612
    public int compareTo(getAllProviders_result other) {
3613
      if (!getClass().equals(other.getClass())) {
3614
        return getClass().getName().compareTo(other.getClass().getName());
3615
      }
3616
 
3617
      int lastComparison = 0;
3618
      getAllProviders_result typedOther = (getAllProviders_result)other;
3619
 
3620
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3621
      if (lastComparison != 0) {
3622
        return lastComparison;
3623
      }
3624
      if (isSetSuccess()) {
3625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3626
        if (lastComparison != 0) {
3627
          return lastComparison;
3628
        }
3629
      }
3630
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3631
      if (lastComparison != 0) {
3632
        return lastComparison;
3633
      }
3634
      if (isSetLse()) {
3635
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3636
        if (lastComparison != 0) {
3637
          return lastComparison;
3638
        }
3639
      }
3640
      return 0;
3641
    }
3642
 
3643
    public _Fields fieldForId(int fieldId) {
3644
      return _Fields.findByThriftId(fieldId);
3645
    }
3646
 
3647
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3648
      org.apache.thrift.protocol.TField field;
674 chandransh 3649
      iprot.readStructBegin();
3650
      while (true)
3651
      {
3652
        field = iprot.readFieldBegin();
3430 rajveer 3653
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3654
          break;
3655
        }
3430 rajveer 3656
        switch (field.id) {
3657
          case 0: // SUCCESS
3658
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3659
              {
7792 anupam.sin 3660
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3661
                this.success = new ArrayList<Provider>(_list4.size);
3662
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3663
                {
7792 anupam.sin 3664
                  Provider _elem6; // required
3665
                  _elem6 = new Provider();
3666
                  _elem6.read(iprot);
3667
                  this.success.add(_elem6);
674 chandransh 3668
                }
3430 rajveer 3669
                iprot.readListEnd();
674 chandransh 3670
              }
3430 rajveer 3671
            } else { 
3672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3673
            }
3674
            break;
3675
          case 1: // LSE
3676
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3677
              this.lse = new LogisticsServiceException();
3678
              this.lse.read(iprot);
3679
            } else { 
3680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3681
            }
3682
            break;
3683
          default:
3684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3685
        }
3430 rajveer 3686
        iprot.readFieldEnd();
674 chandransh 3687
      }
3688
      iprot.readStructEnd();
3689
      validate();
3690
    }
3691
 
3430 rajveer 3692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3693
      oprot.writeStructBegin(STRUCT_DESC);
3694
 
3695
      if (this.isSetSuccess()) {
3696
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3697
        {
3430 rajveer 3698
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3699
          for (Provider _iter7 : this.success)
674 chandransh 3700
          {
7792 anupam.sin 3701
            _iter7.write(oprot);
674 chandransh 3702
          }
3703
          oprot.writeListEnd();
3704
        }
3705
        oprot.writeFieldEnd();
3706
      } else if (this.isSetLse()) {
3707
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3708
        this.lse.write(oprot);
3709
        oprot.writeFieldEnd();
3710
      }
3711
      oprot.writeFieldStop();
3712
      oprot.writeStructEnd();
3713
    }
3714
 
3715
    @Override
3716
    public String toString() {
3717
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3718
      boolean first = true;
3719
 
3720
      sb.append("success:");
3721
      if (this.success == null) {
3722
        sb.append("null");
3723
      } else {
3724
        sb.append(this.success);
3725
      }
3726
      first = false;
3727
      if (!first) sb.append(", ");
3728
      sb.append("lse:");
3729
      if (this.lse == null) {
3730
        sb.append("null");
3731
      } else {
3732
        sb.append(this.lse);
3733
      }
3734
      first = false;
3735
      sb.append(")");
3736
      return sb.toString();
3737
    }
3738
 
3430 rajveer 3739
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3740
      // check for required fields
3741
    }
3742
 
3430 rajveer 3743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3744
      try {
3745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3746
      } catch (org.apache.thrift.TException te) {
3747
        throw new java.io.IOException(te);
3748
      }
3749
    }
3750
 
3751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3752
      try {
3753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3754
      } catch (org.apache.thrift.TException te) {
3755
        throw new java.io.IOException(te);
3756
      }
3757
    }
3758
 
674 chandransh 3759
  }
3760
 
3430 rajveer 3761
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3763
 
3430 rajveer 3764
    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);
3765
    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 3766
    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 3767
 
3430 rajveer 3768
    private long itemId; // required
3769
    private String destination_pin; // required
4630 mandeep.dh 3770
    private DeliveryType type; // required
471 rajveer 3771
 
3772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3774
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3775
      DESTINATION_PIN((short)2, "destination_pin"),
3776
      /**
3777
       * 
3778
       * @see DeliveryType
3779
       */
3780
      TYPE((short)3, "type");
471 rajveer 3781
 
3782
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3783
 
3784
      static {
3785
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3786
          byName.put(field.getFieldName(), field);
3787
        }
3788
      }
3789
 
3790
      /**
3791
       * Find the _Fields constant that matches fieldId, or null if its not found.
3792
       */
3793
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3794
        switch(fieldId) {
3795
          case 1: // ITEM_ID
3796
            return ITEM_ID;
3797
          case 2: // DESTINATION_PIN
3798
            return DESTINATION_PIN;
4630 mandeep.dh 3799
          case 3: // TYPE
3800
            return TYPE;
3430 rajveer 3801
          default:
3802
            return null;
3803
        }
471 rajveer 3804
      }
3805
 
3806
      /**
3807
       * Find the _Fields constant that matches fieldId, throwing an exception
3808
       * if it is not found.
3809
       */
3810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3811
        _Fields fields = findByThriftId(fieldId);
3812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3813
        return fields;
3814
      }
3815
 
3816
      /**
3817
       * Find the _Fields constant that matches name, or null if its not found.
3818
       */
3819
      public static _Fields findByName(String name) {
3820
        return byName.get(name);
3821
      }
3822
 
3823
      private final short _thriftId;
3824
      private final String _fieldName;
3825
 
3826
      _Fields(short thriftId, String fieldName) {
3827
        _thriftId = thriftId;
3828
        _fieldName = fieldName;
3829
      }
3830
 
3831
      public short getThriftFieldId() {
3832
        return _thriftId;
3833
      }
3834
 
3835
      public String getFieldName() {
3836
        return _fieldName;
3837
      }
3838
    }
3839
 
3840
    // isset id assignments
3841
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3842
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3843
 
3430 rajveer 3844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3845
    static {
3430 rajveer 3846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3847
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3849
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3851
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3852
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3853
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3854
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3855
    }
3856
 
3857
    public getLogisticsEstimation_args() {
3858
    }
3859
 
3860
    public getLogisticsEstimation_args(
3861
      long itemId,
4630 mandeep.dh 3862
      String destination_pin,
3863
      DeliveryType type)
471 rajveer 3864
    {
3865
      this();
3866
      this.itemId = itemId;
3867
      setItemIdIsSet(true);
3868
      this.destination_pin = destination_pin;
4630 mandeep.dh 3869
      this.type = type;
471 rajveer 3870
    }
3871
 
3872
    /**
3873
     * Performs a deep copy on <i>other</i>.
3874
     */
3875
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3876
      __isset_bit_vector.clear();
3877
      __isset_bit_vector.or(other.__isset_bit_vector);
3878
      this.itemId = other.itemId;
3879
      if (other.isSetDestination_pin()) {
3880
        this.destination_pin = other.destination_pin;
3881
      }
4630 mandeep.dh 3882
      if (other.isSetType()) {
3883
        this.type = other.type;
3884
      }
471 rajveer 3885
    }
3886
 
3887
    public getLogisticsEstimation_args deepCopy() {
3888
      return new getLogisticsEstimation_args(this);
3889
    }
3890
 
3430 rajveer 3891
    @Override
3892
    public void clear() {
3893
      setItemIdIsSet(false);
3894
      this.itemId = 0;
3895
      this.destination_pin = null;
4630 mandeep.dh 3896
      this.type = null;
471 rajveer 3897
    }
3898
 
3899
    public long getItemId() {
3900
      return this.itemId;
3901
    }
3902
 
3430 rajveer 3903
    public void setItemId(long itemId) {
471 rajveer 3904
      this.itemId = itemId;
3905
      setItemIdIsSet(true);
3906
    }
3907
 
3908
    public void unsetItemId() {
3909
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3910
    }
3911
 
3430 rajveer 3912
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3913
    public boolean isSetItemId() {
3914
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3915
    }
3916
 
3917
    public void setItemIdIsSet(boolean value) {
3918
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3919
    }
3920
 
3921
    public String getDestination_pin() {
3922
      return this.destination_pin;
3923
    }
3924
 
3430 rajveer 3925
    public void setDestination_pin(String destination_pin) {
471 rajveer 3926
      this.destination_pin = destination_pin;
3927
    }
3928
 
3929
    public void unsetDestination_pin() {
3930
      this.destination_pin = null;
3931
    }
3932
 
3430 rajveer 3933
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3934
    public boolean isSetDestination_pin() {
3935
      return this.destination_pin != null;
3936
    }
3937
 
3938
    public void setDestination_pinIsSet(boolean value) {
3939
      if (!value) {
3940
        this.destination_pin = null;
3941
      }
3942
    }
3943
 
4630 mandeep.dh 3944
    /**
3945
     * 
3946
     * @see DeliveryType
3947
     */
3948
    public DeliveryType getType() {
3949
      return this.type;
3950
    }
3951
 
3952
    /**
3953
     * 
3954
     * @see DeliveryType
3955
     */
3956
    public void setType(DeliveryType type) {
3957
      this.type = type;
3958
    }
3959
 
3960
    public void unsetType() {
3961
      this.type = null;
3962
    }
3963
 
3964
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3965
    public boolean isSetType() {
3966
      return this.type != null;
3967
    }
3968
 
3969
    public void setTypeIsSet(boolean value) {
3970
      if (!value) {
3971
        this.type = null;
3972
      }
3973
    }
3974
 
471 rajveer 3975
    public void setFieldValue(_Fields field, Object value) {
3976
      switch (field) {
3977
      case ITEM_ID:
3978
        if (value == null) {
3979
          unsetItemId();
3980
        } else {
3981
          setItemId((Long)value);
3982
        }
3983
        break;
3984
 
3985
      case DESTINATION_PIN:
3986
        if (value == null) {
3987
          unsetDestination_pin();
3988
        } else {
3989
          setDestination_pin((String)value);
3990
        }
3991
        break;
3992
 
4630 mandeep.dh 3993
      case TYPE:
3994
        if (value == null) {
3995
          unsetType();
3996
        } else {
3997
          setType((DeliveryType)value);
3998
        }
3999
        break;
4000
 
471 rajveer 4001
      }
4002
    }
4003
 
4004
    public Object getFieldValue(_Fields field) {
4005
      switch (field) {
4006
      case ITEM_ID:
3430 rajveer 4007
        return Long.valueOf(getItemId());
471 rajveer 4008
 
4009
      case DESTINATION_PIN:
4010
        return getDestination_pin();
4011
 
4630 mandeep.dh 4012
      case TYPE:
4013
        return getType();
4014
 
471 rajveer 4015
      }
4016
      throw new IllegalStateException();
4017
    }
4018
 
3430 rajveer 4019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4020
    public boolean isSet(_Fields field) {
4021
      if (field == null) {
4022
        throw new IllegalArgumentException();
4023
      }
471 rajveer 4024
 
4025
      switch (field) {
4026
      case ITEM_ID:
4027
        return isSetItemId();
4028
      case DESTINATION_PIN:
4029
        return isSetDestination_pin();
4630 mandeep.dh 4030
      case TYPE:
4031
        return isSetType();
471 rajveer 4032
      }
4033
      throw new IllegalStateException();
4034
    }
4035
 
4036
    @Override
4037
    public boolean equals(Object that) {
4038
      if (that == null)
4039
        return false;
4040
      if (that instanceof getLogisticsEstimation_args)
4041
        return this.equals((getLogisticsEstimation_args)that);
4042
      return false;
4043
    }
4044
 
4045
    public boolean equals(getLogisticsEstimation_args that) {
4046
      if (that == null)
4047
        return false;
4048
 
4049
      boolean this_present_itemId = true;
4050
      boolean that_present_itemId = true;
4051
      if (this_present_itemId || that_present_itemId) {
4052
        if (!(this_present_itemId && that_present_itemId))
4053
          return false;
4054
        if (this.itemId != that.itemId)
4055
          return false;
4056
      }
4057
 
4058
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4059
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4060
      if (this_present_destination_pin || that_present_destination_pin) {
4061
        if (!(this_present_destination_pin && that_present_destination_pin))
4062
          return false;
4063
        if (!this.destination_pin.equals(that.destination_pin))
4064
          return false;
4065
      }
4066
 
4630 mandeep.dh 4067
      boolean this_present_type = true && this.isSetType();
4068
      boolean that_present_type = true && that.isSetType();
4069
      if (this_present_type || that_present_type) {
4070
        if (!(this_present_type && that_present_type))
4071
          return false;
4072
        if (!this.type.equals(that.type))
4073
          return false;
4074
      }
4075
 
471 rajveer 4076
      return true;
4077
    }
4078
 
4079
    @Override
4080
    public int hashCode() {
4081
      return 0;
4082
    }
4083
 
4084
    public int compareTo(getLogisticsEstimation_args other) {
4085
      if (!getClass().equals(other.getClass())) {
4086
        return getClass().getName().compareTo(other.getClass().getName());
4087
      }
4088
 
4089
      int lastComparison = 0;
4090
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4091
 
3430 rajveer 4092
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4093
      if (lastComparison != 0) {
4094
        return lastComparison;
4095
      }
3430 rajveer 4096
      if (isSetItemId()) {
4097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4098
        if (lastComparison != 0) {
4099
          return lastComparison;
4100
        }
471 rajveer 4101
      }
3430 rajveer 4102
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4103
      if (lastComparison != 0) {
4104
        return lastComparison;
4105
      }
3430 rajveer 4106
      if (isSetDestination_pin()) {
4107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4108
        if (lastComparison != 0) {
4109
          return lastComparison;
4110
        }
471 rajveer 4111
      }
4630 mandeep.dh 4112
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4113
      if (lastComparison != 0) {
4114
        return lastComparison;
4115
      }
4116
      if (isSetType()) {
4117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4118
        if (lastComparison != 0) {
4119
          return lastComparison;
4120
        }
4121
      }
471 rajveer 4122
      return 0;
4123
    }
4124
 
3430 rajveer 4125
    public _Fields fieldForId(int fieldId) {
4126
      return _Fields.findByThriftId(fieldId);
4127
    }
4128
 
4129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4130
      org.apache.thrift.protocol.TField field;
471 rajveer 4131
      iprot.readStructBegin();
4132
      while (true)
4133
      {
4134
        field = iprot.readFieldBegin();
3430 rajveer 4135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4136
          break;
4137
        }
3430 rajveer 4138
        switch (field.id) {
4139
          case 1: // ITEM_ID
4140
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4141
              this.itemId = iprot.readI64();
4142
              setItemIdIsSet(true);
4143
            } else { 
4144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4145
            }
4146
            break;
4147
          case 2: // DESTINATION_PIN
4148
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4149
              this.destination_pin = iprot.readString();
4150
            } else { 
4151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4152
            }
4153
            break;
4630 mandeep.dh 4154
          case 3: // TYPE
4155
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4156
              this.type = DeliveryType.findByValue(iprot.readI32());
4157
            } else { 
4158
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4159
            }
4160
            break;
3430 rajveer 4161
          default:
4162
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4163
        }
3430 rajveer 4164
        iprot.readFieldEnd();
471 rajveer 4165
      }
4166
      iprot.readStructEnd();
4167
      validate();
4168
    }
4169
 
3430 rajveer 4170
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4171
      validate();
4172
 
4173
      oprot.writeStructBegin(STRUCT_DESC);
4174
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4175
      oprot.writeI64(this.itemId);
4176
      oprot.writeFieldEnd();
4177
      if (this.destination_pin != null) {
4178
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4179
        oprot.writeString(this.destination_pin);
4180
        oprot.writeFieldEnd();
4181
      }
4630 mandeep.dh 4182
      if (this.type != null) {
4183
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4184
        oprot.writeI32(this.type.getValue());
4185
        oprot.writeFieldEnd();
4186
      }
471 rajveer 4187
      oprot.writeFieldStop();
4188
      oprot.writeStructEnd();
4189
    }
4190
 
4191
    @Override
4192
    public String toString() {
4193
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4194
      boolean first = true;
4195
 
4196
      sb.append("itemId:");
4197
      sb.append(this.itemId);
4198
      first = false;
4199
      if (!first) sb.append(", ");
4200
      sb.append("destination_pin:");
4201
      if (this.destination_pin == null) {
4202
        sb.append("null");
4203
      } else {
4204
        sb.append(this.destination_pin);
4205
      }
4206
      first = false;
4630 mandeep.dh 4207
      if (!first) sb.append(", ");
4208
      sb.append("type:");
4209
      if (this.type == null) {
4210
        sb.append("null");
4211
      } else {
4212
        sb.append(this.type);
4213
      }
4214
      first = false;
471 rajveer 4215
      sb.append(")");
4216
      return sb.toString();
4217
    }
4218
 
3430 rajveer 4219
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4220
      // check for required fields
4221
    }
4222
 
3430 rajveer 4223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4224
      try {
4225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4226
      } catch (org.apache.thrift.TException te) {
4227
        throw new java.io.IOException(te);
4228
      }
4229
    }
4230
 
4231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4232
      try {
4233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4234
      } catch (org.apache.thrift.TException te) {
4235
        throw new java.io.IOException(te);
4236
      }
4237
    }
4238
 
471 rajveer 4239
  }
4240
 
3430 rajveer 4241
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4243
 
3430 rajveer 4244
    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);
4245
    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 4246
 
3430 rajveer 4247
    private LogisticsInfo success; // required
4248
    private LogisticsServiceException se; // required
471 rajveer 4249
 
4250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4251
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4252
      SUCCESS((short)0, "success"),
4253
      SE((short)1, "se");
4254
 
4255
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4256
 
4257
      static {
4258
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4259
          byName.put(field.getFieldName(), field);
4260
        }
4261
      }
4262
 
4263
      /**
4264
       * Find the _Fields constant that matches fieldId, or null if its not found.
4265
       */
4266
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4267
        switch(fieldId) {
4268
          case 0: // SUCCESS
4269
            return SUCCESS;
4270
          case 1: // SE
4271
            return SE;
4272
          default:
4273
            return null;
4274
        }
471 rajveer 4275
      }
4276
 
4277
      /**
4278
       * Find the _Fields constant that matches fieldId, throwing an exception
4279
       * if it is not found.
4280
       */
4281
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4282
        _Fields fields = findByThriftId(fieldId);
4283
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4284
        return fields;
4285
      }
4286
 
4287
      /**
4288
       * Find the _Fields constant that matches name, or null if its not found.
4289
       */
4290
      public static _Fields findByName(String name) {
4291
        return byName.get(name);
4292
      }
4293
 
4294
      private final short _thriftId;
4295
      private final String _fieldName;
4296
 
4297
      _Fields(short thriftId, String fieldName) {
4298
        _thriftId = thriftId;
4299
        _fieldName = fieldName;
4300
      }
4301
 
4302
      public short getThriftFieldId() {
4303
        return _thriftId;
4304
      }
4305
 
4306
      public String getFieldName() {
4307
        return _fieldName;
4308
      }
4309
    }
4310
 
4311
    // isset id assignments
4312
 
3430 rajveer 4313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4314
    static {
3430 rajveer 4315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4316
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4317
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4318
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4319
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4322
    }
4323
 
4324
    public getLogisticsEstimation_result() {
4325
    }
4326
 
4327
    public getLogisticsEstimation_result(
648 chandransh 4328
      LogisticsInfo success,
471 rajveer 4329
      LogisticsServiceException se)
4330
    {
4331
      this();
4332
      this.success = success;
4333
      this.se = se;
4334
    }
4335
 
4336
    /**
4337
     * Performs a deep copy on <i>other</i>.
4338
     */
4339
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4340
      if (other.isSetSuccess()) {
648 chandransh 4341
        this.success = new LogisticsInfo(other.success);
471 rajveer 4342
      }
4343
      if (other.isSetSe()) {
4344
        this.se = new LogisticsServiceException(other.se);
4345
      }
4346
    }
4347
 
4348
    public getLogisticsEstimation_result deepCopy() {
4349
      return new getLogisticsEstimation_result(this);
4350
    }
4351
 
3430 rajveer 4352
    @Override
4353
    public void clear() {
4354
      this.success = null;
4355
      this.se = null;
471 rajveer 4356
    }
4357
 
648 chandransh 4358
    public LogisticsInfo getSuccess() {
471 rajveer 4359
      return this.success;
4360
    }
4361
 
3430 rajveer 4362
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4363
      this.success = success;
4364
    }
4365
 
4366
    public void unsetSuccess() {
4367
      this.success = null;
4368
    }
4369
 
3430 rajveer 4370
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4371
    public boolean isSetSuccess() {
4372
      return this.success != null;
4373
    }
4374
 
4375
    public void setSuccessIsSet(boolean value) {
4376
      if (!value) {
4377
        this.success = null;
4378
      }
4379
    }
4380
 
4381
    public LogisticsServiceException getSe() {
4382
      return this.se;
4383
    }
4384
 
3430 rajveer 4385
    public void setSe(LogisticsServiceException se) {
471 rajveer 4386
      this.se = se;
4387
    }
4388
 
4389
    public void unsetSe() {
4390
      this.se = null;
4391
    }
4392
 
3430 rajveer 4393
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4394
    public boolean isSetSe() {
4395
      return this.se != null;
4396
    }
4397
 
4398
    public void setSeIsSet(boolean value) {
4399
      if (!value) {
4400
        this.se = null;
4401
      }
4402
    }
4403
 
4404
    public void setFieldValue(_Fields field, Object value) {
4405
      switch (field) {
4406
      case SUCCESS:
4407
        if (value == null) {
4408
          unsetSuccess();
4409
        } else {
648 chandransh 4410
          setSuccess((LogisticsInfo)value);
471 rajveer 4411
        }
4412
        break;
4413
 
4414
      case SE:
4415
        if (value == null) {
4416
          unsetSe();
4417
        } else {
4418
          setSe((LogisticsServiceException)value);
4419
        }
4420
        break;
4421
 
4422
      }
4423
    }
4424
 
4425
    public Object getFieldValue(_Fields field) {
4426
      switch (field) {
4427
      case SUCCESS:
4428
        return getSuccess();
4429
 
4430
      case SE:
4431
        return getSe();
4432
 
4433
      }
4434
      throw new IllegalStateException();
4435
    }
4436
 
3430 rajveer 4437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4438
    public boolean isSet(_Fields field) {
4439
      if (field == null) {
4440
        throw new IllegalArgumentException();
4441
      }
471 rajveer 4442
 
4443
      switch (field) {
4444
      case SUCCESS:
4445
        return isSetSuccess();
4446
      case SE:
4447
        return isSetSe();
4448
      }
4449
      throw new IllegalStateException();
4450
    }
4451
 
4452
    @Override
4453
    public boolean equals(Object that) {
4454
      if (that == null)
4455
        return false;
4456
      if (that instanceof getLogisticsEstimation_result)
4457
        return this.equals((getLogisticsEstimation_result)that);
4458
      return false;
4459
    }
4460
 
4461
    public boolean equals(getLogisticsEstimation_result that) {
4462
      if (that == null)
4463
        return false;
4464
 
4465
      boolean this_present_success = true && this.isSetSuccess();
4466
      boolean that_present_success = true && that.isSetSuccess();
4467
      if (this_present_success || that_present_success) {
4468
        if (!(this_present_success && that_present_success))
4469
          return false;
4470
        if (!this.success.equals(that.success))
4471
          return false;
4472
      }
4473
 
4474
      boolean this_present_se = true && this.isSetSe();
4475
      boolean that_present_se = true && that.isSetSe();
4476
      if (this_present_se || that_present_se) {
4477
        if (!(this_present_se && that_present_se))
4478
          return false;
4479
        if (!this.se.equals(that.se))
4480
          return false;
4481
      }
4482
 
4483
      return true;
4484
    }
4485
 
4486
    @Override
4487
    public int hashCode() {
4488
      return 0;
4489
    }
4490
 
4491
    public int compareTo(getLogisticsEstimation_result other) {
4492
      if (!getClass().equals(other.getClass())) {
4493
        return getClass().getName().compareTo(other.getClass().getName());
4494
      }
4495
 
4496
      int lastComparison = 0;
4497
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4498
 
3430 rajveer 4499
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4500
      if (lastComparison != 0) {
4501
        return lastComparison;
4502
      }
3430 rajveer 4503
      if (isSetSuccess()) {
4504
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4505
        if (lastComparison != 0) {
4506
          return lastComparison;
4507
        }
471 rajveer 4508
      }
3430 rajveer 4509
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4510
      if (lastComparison != 0) {
4511
        return lastComparison;
4512
      }
3430 rajveer 4513
      if (isSetSe()) {
4514
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4515
        if (lastComparison != 0) {
4516
          return lastComparison;
4517
        }
471 rajveer 4518
      }
4519
      return 0;
4520
    }
4521
 
3430 rajveer 4522
    public _Fields fieldForId(int fieldId) {
4523
      return _Fields.findByThriftId(fieldId);
4524
    }
4525
 
4526
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4527
      org.apache.thrift.protocol.TField field;
471 rajveer 4528
      iprot.readStructBegin();
4529
      while (true)
4530
      {
4531
        field = iprot.readFieldBegin();
3430 rajveer 4532
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4533
          break;
4534
        }
3430 rajveer 4535
        switch (field.id) {
4536
          case 0: // SUCCESS
4537
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4538
              this.success = new LogisticsInfo();
4539
              this.success.read(iprot);
4540
            } else { 
4541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4542
            }
4543
            break;
4544
          case 1: // SE
4545
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4546
              this.se = new LogisticsServiceException();
4547
              this.se.read(iprot);
4548
            } else { 
4549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4550
            }
4551
            break;
4552
          default:
4553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4554
        }
3430 rajveer 4555
        iprot.readFieldEnd();
471 rajveer 4556
      }
4557
      iprot.readStructEnd();
4558
      validate();
4559
    }
4560
 
3430 rajveer 4561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4562
      oprot.writeStructBegin(STRUCT_DESC);
4563
 
4564
      if (this.isSetSuccess()) {
4565
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4566
        this.success.write(oprot);
4567
        oprot.writeFieldEnd();
4568
      } else if (this.isSetSe()) {
4569
        oprot.writeFieldBegin(SE_FIELD_DESC);
4570
        this.se.write(oprot);
4571
        oprot.writeFieldEnd();
4572
      }
4573
      oprot.writeFieldStop();
4574
      oprot.writeStructEnd();
4575
    }
4576
 
4577
    @Override
4578
    public String toString() {
4579
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4580
      boolean first = true;
4581
 
4582
      sb.append("success:");
4583
      if (this.success == null) {
4584
        sb.append("null");
4585
      } else {
4586
        sb.append(this.success);
4587
      }
4588
      first = false;
4589
      if (!first) sb.append(", ");
4590
      sb.append("se:");
4591
      if (this.se == null) {
4592
        sb.append("null");
4593
      } else {
4594
        sb.append(this.se);
4595
      }
4596
      first = false;
4597
      sb.append(")");
4598
      return sb.toString();
4599
    }
4600
 
3430 rajveer 4601
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4602
      // check for required fields
4603
    }
4604
 
3430 rajveer 4605
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4606
      try {
4607
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4608
      } catch (org.apache.thrift.TException te) {
4609
        throw new java.io.IOException(te);
4610
      }
4611
    }
4612
 
4613
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4614
      try {
4615
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4616
      } catch (org.apache.thrift.TException te) {
4617
        throw new java.io.IOException(te);
4618
      }
4619
    }
4620
 
471 rajveer 4621
  }
4622
 
7256 rajveer 4623
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4624
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4625
 
4626
    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);
4627
    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);
4628
    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);
4629
 
4630
    private long itemId; // required
4631
    private String destination_pin; // required
4632
    private DeliveryType type; // required
4633
 
4634
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4635
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4636
      ITEM_ID((short)1, "itemId"),
4637
      DESTINATION_PIN((short)2, "destination_pin"),
4638
      /**
4639
       * 
4640
       * @see DeliveryType
4641
       */
4642
      TYPE((short)3, "type");
4643
 
4644
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4645
 
4646
      static {
4647
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4648
          byName.put(field.getFieldName(), field);
4649
        }
4650
      }
4651
 
4652
      /**
4653
       * Find the _Fields constant that matches fieldId, or null if its not found.
4654
       */
4655
      public static _Fields findByThriftId(int fieldId) {
4656
        switch(fieldId) {
4657
          case 1: // ITEM_ID
4658
            return ITEM_ID;
4659
          case 2: // DESTINATION_PIN
4660
            return DESTINATION_PIN;
4661
          case 3: // TYPE
4662
            return TYPE;
4663
          default:
4664
            return null;
4665
        }
4666
      }
4667
 
4668
      /**
4669
       * Find the _Fields constant that matches fieldId, throwing an exception
4670
       * if it is not found.
4671
       */
4672
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4673
        _Fields fields = findByThriftId(fieldId);
4674
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4675
        return fields;
4676
      }
4677
 
4678
      /**
4679
       * Find the _Fields constant that matches name, or null if its not found.
4680
       */
4681
      public static _Fields findByName(String name) {
4682
        return byName.get(name);
4683
      }
4684
 
4685
      private final short _thriftId;
4686
      private final String _fieldName;
4687
 
4688
      _Fields(short thriftId, String fieldName) {
4689
        _thriftId = thriftId;
4690
        _fieldName = fieldName;
4691
      }
4692
 
4693
      public short getThriftFieldId() {
4694
        return _thriftId;
4695
      }
4696
 
4697
      public String getFieldName() {
4698
        return _fieldName;
4699
      }
4700
    }
4701
 
4702
    // isset id assignments
4703
    private static final int __ITEMID_ISSET_ID = 0;
4704
    private BitSet __isset_bit_vector = new BitSet(1);
4705
 
4706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4707
    static {
4708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4709
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4711
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4713
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4714
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4715
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4716
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4717
    }
4718
 
4719
    public getLogisticsEstimationForStore_args() {
4720
    }
4721
 
4722
    public getLogisticsEstimationForStore_args(
4723
      long itemId,
4724
      String destination_pin,
4725
      DeliveryType type)
4726
    {
4727
      this();
4728
      this.itemId = itemId;
4729
      setItemIdIsSet(true);
4730
      this.destination_pin = destination_pin;
4731
      this.type = type;
4732
    }
4733
 
4734
    /**
4735
     * Performs a deep copy on <i>other</i>.
4736
     */
4737
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4738
      __isset_bit_vector.clear();
4739
      __isset_bit_vector.or(other.__isset_bit_vector);
4740
      this.itemId = other.itemId;
4741
      if (other.isSetDestination_pin()) {
4742
        this.destination_pin = other.destination_pin;
4743
      }
4744
      if (other.isSetType()) {
4745
        this.type = other.type;
4746
      }
4747
    }
4748
 
4749
    public getLogisticsEstimationForStore_args deepCopy() {
4750
      return new getLogisticsEstimationForStore_args(this);
4751
    }
4752
 
4753
    @Override
4754
    public void clear() {
4755
      setItemIdIsSet(false);
4756
      this.itemId = 0;
4757
      this.destination_pin = null;
4758
      this.type = null;
4759
    }
4760
 
4761
    public long getItemId() {
4762
      return this.itemId;
4763
    }
4764
 
4765
    public void setItemId(long itemId) {
4766
      this.itemId = itemId;
4767
      setItemIdIsSet(true);
4768
    }
4769
 
4770
    public void unsetItemId() {
4771
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4772
    }
4773
 
4774
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4775
    public boolean isSetItemId() {
4776
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4777
    }
4778
 
4779
    public void setItemIdIsSet(boolean value) {
4780
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4781
    }
4782
 
4783
    public String getDestination_pin() {
4784
      return this.destination_pin;
4785
    }
4786
 
4787
    public void setDestination_pin(String destination_pin) {
4788
      this.destination_pin = destination_pin;
4789
    }
4790
 
4791
    public void unsetDestination_pin() {
4792
      this.destination_pin = null;
4793
    }
4794
 
4795
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4796
    public boolean isSetDestination_pin() {
4797
      return this.destination_pin != null;
4798
    }
4799
 
4800
    public void setDestination_pinIsSet(boolean value) {
4801
      if (!value) {
4802
        this.destination_pin = null;
4803
      }
4804
    }
4805
 
4806
    /**
4807
     * 
4808
     * @see DeliveryType
4809
     */
4810
    public DeliveryType getType() {
4811
      return this.type;
4812
    }
4813
 
4814
    /**
4815
     * 
4816
     * @see DeliveryType
4817
     */
4818
    public void setType(DeliveryType type) {
4819
      this.type = type;
4820
    }
4821
 
4822
    public void unsetType() {
4823
      this.type = null;
4824
    }
4825
 
4826
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4827
    public boolean isSetType() {
4828
      return this.type != null;
4829
    }
4830
 
4831
    public void setTypeIsSet(boolean value) {
4832
      if (!value) {
4833
        this.type = null;
4834
      }
4835
    }
4836
 
4837
    public void setFieldValue(_Fields field, Object value) {
4838
      switch (field) {
4839
      case ITEM_ID:
4840
        if (value == null) {
4841
          unsetItemId();
4842
        } else {
4843
          setItemId((Long)value);
4844
        }
4845
        break;
4846
 
4847
      case DESTINATION_PIN:
4848
        if (value == null) {
4849
          unsetDestination_pin();
4850
        } else {
4851
          setDestination_pin((String)value);
4852
        }
4853
        break;
4854
 
4855
      case TYPE:
4856
        if (value == null) {
4857
          unsetType();
4858
        } else {
4859
          setType((DeliveryType)value);
4860
        }
4861
        break;
4862
 
4863
      }
4864
    }
4865
 
4866
    public Object getFieldValue(_Fields field) {
4867
      switch (field) {
4868
      case ITEM_ID:
4869
        return Long.valueOf(getItemId());
4870
 
4871
      case DESTINATION_PIN:
4872
        return getDestination_pin();
4873
 
4874
      case TYPE:
4875
        return getType();
4876
 
4877
      }
4878
      throw new IllegalStateException();
4879
    }
4880
 
4881
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4882
    public boolean isSet(_Fields field) {
4883
      if (field == null) {
4884
        throw new IllegalArgumentException();
4885
      }
4886
 
4887
      switch (field) {
4888
      case ITEM_ID:
4889
        return isSetItemId();
4890
      case DESTINATION_PIN:
4891
        return isSetDestination_pin();
4892
      case TYPE:
4893
        return isSetType();
4894
      }
4895
      throw new IllegalStateException();
4896
    }
4897
 
4898
    @Override
4899
    public boolean equals(Object that) {
4900
      if (that == null)
4901
        return false;
4902
      if (that instanceof getLogisticsEstimationForStore_args)
4903
        return this.equals((getLogisticsEstimationForStore_args)that);
4904
      return false;
4905
    }
4906
 
4907
    public boolean equals(getLogisticsEstimationForStore_args that) {
4908
      if (that == null)
4909
        return false;
4910
 
4911
      boolean this_present_itemId = true;
4912
      boolean that_present_itemId = true;
4913
      if (this_present_itemId || that_present_itemId) {
4914
        if (!(this_present_itemId && that_present_itemId))
4915
          return false;
4916
        if (this.itemId != that.itemId)
4917
          return false;
4918
      }
4919
 
4920
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4921
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4922
      if (this_present_destination_pin || that_present_destination_pin) {
4923
        if (!(this_present_destination_pin && that_present_destination_pin))
4924
          return false;
4925
        if (!this.destination_pin.equals(that.destination_pin))
4926
          return false;
4927
      }
4928
 
4929
      boolean this_present_type = true && this.isSetType();
4930
      boolean that_present_type = true && that.isSetType();
4931
      if (this_present_type || that_present_type) {
4932
        if (!(this_present_type && that_present_type))
4933
          return false;
4934
        if (!this.type.equals(that.type))
4935
          return false;
4936
      }
4937
 
4938
      return true;
4939
    }
4940
 
4941
    @Override
4942
    public int hashCode() {
4943
      return 0;
4944
    }
4945
 
4946
    public int compareTo(getLogisticsEstimationForStore_args other) {
4947
      if (!getClass().equals(other.getClass())) {
4948
        return getClass().getName().compareTo(other.getClass().getName());
4949
      }
4950
 
4951
      int lastComparison = 0;
4952
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4953
 
4954
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4955
      if (lastComparison != 0) {
4956
        return lastComparison;
4957
      }
4958
      if (isSetItemId()) {
4959
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4960
        if (lastComparison != 0) {
4961
          return lastComparison;
4962
        }
4963
      }
4964
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4965
      if (lastComparison != 0) {
4966
        return lastComparison;
4967
      }
4968
      if (isSetDestination_pin()) {
4969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4970
        if (lastComparison != 0) {
4971
          return lastComparison;
4972
        }
4973
      }
4974
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4975
      if (lastComparison != 0) {
4976
        return lastComparison;
4977
      }
4978
      if (isSetType()) {
4979
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4980
        if (lastComparison != 0) {
4981
          return lastComparison;
4982
        }
4983
      }
4984
      return 0;
4985
    }
4986
 
4987
    public _Fields fieldForId(int fieldId) {
4988
      return _Fields.findByThriftId(fieldId);
4989
    }
4990
 
4991
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4992
      org.apache.thrift.protocol.TField field;
4993
      iprot.readStructBegin();
4994
      while (true)
4995
      {
4996
        field = iprot.readFieldBegin();
4997
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4998
          break;
4999
        }
5000
        switch (field.id) {
5001
          case 1: // ITEM_ID
5002
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5003
              this.itemId = iprot.readI64();
5004
              setItemIdIsSet(true);
5005
            } else { 
5006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5007
            }
5008
            break;
5009
          case 2: // DESTINATION_PIN
5010
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5011
              this.destination_pin = iprot.readString();
5012
            } else { 
5013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5014
            }
5015
            break;
5016
          case 3: // TYPE
5017
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5018
              this.type = DeliveryType.findByValue(iprot.readI32());
5019
            } else { 
5020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5021
            }
5022
            break;
5023
          default:
5024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5025
        }
5026
        iprot.readFieldEnd();
5027
      }
5028
      iprot.readStructEnd();
5029
      validate();
5030
    }
5031
 
5032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5033
      validate();
5034
 
5035
      oprot.writeStructBegin(STRUCT_DESC);
5036
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5037
      oprot.writeI64(this.itemId);
5038
      oprot.writeFieldEnd();
5039
      if (this.destination_pin != null) {
5040
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
5041
        oprot.writeString(this.destination_pin);
5042
        oprot.writeFieldEnd();
5043
      }
5044
      if (this.type != null) {
5045
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5046
        oprot.writeI32(this.type.getValue());
5047
        oprot.writeFieldEnd();
5048
      }
5049
      oprot.writeFieldStop();
5050
      oprot.writeStructEnd();
5051
    }
5052
 
5053
    @Override
5054
    public String toString() {
5055
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
5056
      boolean first = true;
5057
 
5058
      sb.append("itemId:");
5059
      sb.append(this.itemId);
5060
      first = false;
5061
      if (!first) sb.append(", ");
5062
      sb.append("destination_pin:");
5063
      if (this.destination_pin == null) {
5064
        sb.append("null");
5065
      } else {
5066
        sb.append(this.destination_pin);
5067
      }
5068
      first = false;
5069
      if (!first) sb.append(", ");
5070
      sb.append("type:");
5071
      if (this.type == null) {
5072
        sb.append("null");
5073
      } else {
5074
        sb.append(this.type);
5075
      }
5076
      first = false;
5077
      sb.append(")");
5078
      return sb.toString();
5079
    }
5080
 
5081
    public void validate() throws org.apache.thrift.TException {
5082
      // check for required fields
5083
    }
5084
 
5085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5086
      try {
5087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5088
      } catch (org.apache.thrift.TException te) {
5089
        throw new java.io.IOException(te);
5090
      }
5091
    }
5092
 
5093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5094
      try {
5095
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5096
        __isset_bit_vector = new BitSet(1);
5097
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5098
      } catch (org.apache.thrift.TException te) {
5099
        throw new java.io.IOException(te);
5100
      }
5101
    }
5102
 
5103
  }
5104
 
5105
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5106
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5107
 
5108
    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);
5109
    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);
5110
 
5111
    private LogisticsInfo success; // required
5112
    private LogisticsServiceException se; // required
5113
 
5114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5116
      SUCCESS((short)0, "success"),
5117
      SE((short)1, "se");
5118
 
5119
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5120
 
5121
      static {
5122
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5123
          byName.put(field.getFieldName(), field);
5124
        }
5125
      }
5126
 
5127
      /**
5128
       * Find the _Fields constant that matches fieldId, or null if its not found.
5129
       */
5130
      public static _Fields findByThriftId(int fieldId) {
5131
        switch(fieldId) {
5132
          case 0: // SUCCESS
5133
            return SUCCESS;
5134
          case 1: // SE
5135
            return SE;
5136
          default:
5137
            return null;
5138
        }
5139
      }
5140
 
5141
      /**
5142
       * Find the _Fields constant that matches fieldId, throwing an exception
5143
       * if it is not found.
5144
       */
5145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5146
        _Fields fields = findByThriftId(fieldId);
5147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5148
        return fields;
5149
      }
5150
 
5151
      /**
5152
       * Find the _Fields constant that matches name, or null if its not found.
5153
       */
5154
      public static _Fields findByName(String name) {
5155
        return byName.get(name);
5156
      }
5157
 
5158
      private final short _thriftId;
5159
      private final String _fieldName;
5160
 
5161
      _Fields(short thriftId, String fieldName) {
5162
        _thriftId = thriftId;
5163
        _fieldName = fieldName;
5164
      }
5165
 
5166
      public short getThriftFieldId() {
5167
        return _thriftId;
5168
      }
5169
 
5170
      public String getFieldName() {
5171
        return _fieldName;
5172
      }
5173
    }
5174
 
5175
    // isset id assignments
5176
 
5177
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5178
    static {
5179
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5180
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5181
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5182
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5183
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5186
    }
5187
 
5188
    public getLogisticsEstimationForStore_result() {
5189
    }
5190
 
5191
    public getLogisticsEstimationForStore_result(
5192
      LogisticsInfo success,
5193
      LogisticsServiceException se)
5194
    {
5195
      this();
5196
      this.success = success;
5197
      this.se = se;
5198
    }
5199
 
5200
    /**
5201
     * Performs a deep copy on <i>other</i>.
5202
     */
5203
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5204
      if (other.isSetSuccess()) {
5205
        this.success = new LogisticsInfo(other.success);
5206
      }
5207
      if (other.isSetSe()) {
5208
        this.se = new LogisticsServiceException(other.se);
5209
      }
5210
    }
5211
 
5212
    public getLogisticsEstimationForStore_result deepCopy() {
5213
      return new getLogisticsEstimationForStore_result(this);
5214
    }
5215
 
5216
    @Override
5217
    public void clear() {
5218
      this.success = null;
5219
      this.se = null;
5220
    }
5221
 
5222
    public LogisticsInfo getSuccess() {
5223
      return this.success;
5224
    }
5225
 
5226
    public void setSuccess(LogisticsInfo success) {
5227
      this.success = success;
5228
    }
5229
 
5230
    public void unsetSuccess() {
5231
      this.success = null;
5232
    }
5233
 
5234
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5235
    public boolean isSetSuccess() {
5236
      return this.success != null;
5237
    }
5238
 
5239
    public void setSuccessIsSet(boolean value) {
5240
      if (!value) {
5241
        this.success = null;
5242
      }
5243
    }
5244
 
5245
    public LogisticsServiceException getSe() {
5246
      return this.se;
5247
    }
5248
 
5249
    public void setSe(LogisticsServiceException se) {
5250
      this.se = se;
5251
    }
5252
 
5253
    public void unsetSe() {
5254
      this.se = null;
5255
    }
5256
 
5257
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5258
    public boolean isSetSe() {
5259
      return this.se != null;
5260
    }
5261
 
5262
    public void setSeIsSet(boolean value) {
5263
      if (!value) {
5264
        this.se = null;
5265
      }
5266
    }
5267
 
5268
    public void setFieldValue(_Fields field, Object value) {
5269
      switch (field) {
5270
      case SUCCESS:
5271
        if (value == null) {
5272
          unsetSuccess();
5273
        } else {
5274
          setSuccess((LogisticsInfo)value);
5275
        }
5276
        break;
5277
 
5278
      case SE:
5279
        if (value == null) {
5280
          unsetSe();
5281
        } else {
5282
          setSe((LogisticsServiceException)value);
5283
        }
5284
        break;
5285
 
5286
      }
5287
    }
5288
 
5289
    public Object getFieldValue(_Fields field) {
5290
      switch (field) {
5291
      case SUCCESS:
5292
        return getSuccess();
5293
 
5294
      case SE:
5295
        return getSe();
5296
 
5297
      }
5298
      throw new IllegalStateException();
5299
    }
5300
 
5301
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5302
    public boolean isSet(_Fields field) {
5303
      if (field == null) {
5304
        throw new IllegalArgumentException();
5305
      }
5306
 
5307
      switch (field) {
5308
      case SUCCESS:
5309
        return isSetSuccess();
5310
      case SE:
5311
        return isSetSe();
5312
      }
5313
      throw new IllegalStateException();
5314
    }
5315
 
5316
    @Override
5317
    public boolean equals(Object that) {
5318
      if (that == null)
5319
        return false;
5320
      if (that instanceof getLogisticsEstimationForStore_result)
5321
        return this.equals((getLogisticsEstimationForStore_result)that);
5322
      return false;
5323
    }
5324
 
5325
    public boolean equals(getLogisticsEstimationForStore_result that) {
5326
      if (that == null)
5327
        return false;
5328
 
5329
      boolean this_present_success = true && this.isSetSuccess();
5330
      boolean that_present_success = true && that.isSetSuccess();
5331
      if (this_present_success || that_present_success) {
5332
        if (!(this_present_success && that_present_success))
5333
          return false;
5334
        if (!this.success.equals(that.success))
5335
          return false;
5336
      }
5337
 
5338
      boolean this_present_se = true && this.isSetSe();
5339
      boolean that_present_se = true && that.isSetSe();
5340
      if (this_present_se || that_present_se) {
5341
        if (!(this_present_se && that_present_se))
5342
          return false;
5343
        if (!this.se.equals(that.se))
5344
          return false;
5345
      }
5346
 
5347
      return true;
5348
    }
5349
 
5350
    @Override
5351
    public int hashCode() {
5352
      return 0;
5353
    }
5354
 
5355
    public int compareTo(getLogisticsEstimationForStore_result other) {
5356
      if (!getClass().equals(other.getClass())) {
5357
        return getClass().getName().compareTo(other.getClass().getName());
5358
      }
5359
 
5360
      int lastComparison = 0;
5361
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5362
 
5363
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5364
      if (lastComparison != 0) {
5365
        return lastComparison;
5366
      }
5367
      if (isSetSuccess()) {
5368
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5369
        if (lastComparison != 0) {
5370
          return lastComparison;
5371
        }
5372
      }
5373
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5374
      if (lastComparison != 0) {
5375
        return lastComparison;
5376
      }
5377
      if (isSetSe()) {
5378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5379
        if (lastComparison != 0) {
5380
          return lastComparison;
5381
        }
5382
      }
5383
      return 0;
5384
    }
5385
 
5386
    public _Fields fieldForId(int fieldId) {
5387
      return _Fields.findByThriftId(fieldId);
5388
    }
5389
 
5390
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5391
      org.apache.thrift.protocol.TField field;
5392
      iprot.readStructBegin();
5393
      while (true)
5394
      {
5395
        field = iprot.readFieldBegin();
5396
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5397
          break;
5398
        }
5399
        switch (field.id) {
5400
          case 0: // SUCCESS
5401
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5402
              this.success = new LogisticsInfo();
5403
              this.success.read(iprot);
5404
            } else { 
5405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5406
            }
5407
            break;
5408
          case 1: // SE
5409
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5410
              this.se = new LogisticsServiceException();
5411
              this.se.read(iprot);
5412
            } else { 
5413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5414
            }
5415
            break;
5416
          default:
5417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5418
        }
5419
        iprot.readFieldEnd();
5420
      }
5421
      iprot.readStructEnd();
5422
      validate();
5423
    }
5424
 
5425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5426
      oprot.writeStructBegin(STRUCT_DESC);
5427
 
5428
      if (this.isSetSuccess()) {
5429
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5430
        this.success.write(oprot);
5431
        oprot.writeFieldEnd();
5432
      } else if (this.isSetSe()) {
5433
        oprot.writeFieldBegin(SE_FIELD_DESC);
5434
        this.se.write(oprot);
5435
        oprot.writeFieldEnd();
5436
      }
5437
      oprot.writeFieldStop();
5438
      oprot.writeStructEnd();
5439
    }
5440
 
5441
    @Override
5442
    public String toString() {
5443
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5444
      boolean first = true;
5445
 
5446
      sb.append("success:");
5447
      if (this.success == null) {
5448
        sb.append("null");
5449
      } else {
5450
        sb.append(this.success);
5451
      }
5452
      first = false;
5453
      if (!first) sb.append(", ");
5454
      sb.append("se:");
5455
      if (this.se == null) {
5456
        sb.append("null");
5457
      } else {
5458
        sb.append(this.se);
5459
      }
5460
      first = false;
5461
      sb.append(")");
5462
      return sb.toString();
5463
    }
5464
 
5465
    public void validate() throws org.apache.thrift.TException {
5466
      // check for required fields
5467
    }
5468
 
5469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5470
      try {
5471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5472
      } catch (org.apache.thrift.TException te) {
5473
        throw new java.io.IOException(te);
5474
      }
5475
    }
5476
 
5477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5478
      try {
5479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5480
      } catch (org.apache.thrift.TException te) {
5481
        throw new java.io.IOException(te);
5482
      }
5483
    }
5484
 
5485
  }
5486
 
3430 rajveer 5487
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5489
 
3430 rajveer 5490
    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);
5491
    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);
5492
    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 5493
    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 5494
 
3430 rajveer 5495
    private String destination_pincode; // required
5496
    private long item_id; // required
5497
    private DeliveryType type; // required
5766 rajveer 5498
    private PickUpType pickUp; // required
471 rajveer 5499
 
5500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5502
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5503
      ITEM_ID((short)2, "item_id"),
5504
      /**
5505
       * 
5506
       * @see DeliveryType
5507
       */
5766 rajveer 5508
      TYPE((short)3, "type"),
5509
      /**
5510
       * 
5511
       * @see PickUpType
5512
       */
5513
      PICK_UP((short)4, "pickUp");
471 rajveer 5514
 
5515
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5516
 
5517
      static {
5518
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5519
          byName.put(field.getFieldName(), field);
5520
        }
5521
      }
5522
 
5523
      /**
5524
       * Find the _Fields constant that matches fieldId, or null if its not found.
5525
       */
5526
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5527
        switch(fieldId) {
5528
          case 1: // DESTINATION_PINCODE
5529
            return DESTINATION_PINCODE;
5530
          case 2: // ITEM_ID
5531
            return ITEM_ID;
5532
          case 3: // TYPE
5533
            return TYPE;
5766 rajveer 5534
          case 4: // PICK_UP
5535
            return PICK_UP;
3430 rajveer 5536
          default:
5537
            return null;
5538
        }
471 rajveer 5539
      }
5540
 
5541
      /**
5542
       * Find the _Fields constant that matches fieldId, throwing an exception
5543
       * if it is not found.
5544
       */
5545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5546
        _Fields fields = findByThriftId(fieldId);
5547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5548
        return fields;
5549
      }
5550
 
5551
      /**
5552
       * Find the _Fields constant that matches name, or null if its not found.
5553
       */
5554
      public static _Fields findByName(String name) {
5555
        return byName.get(name);
5556
      }
5557
 
5558
      private final short _thriftId;
5559
      private final String _fieldName;
5560
 
5561
      _Fields(short thriftId, String fieldName) {
5562
        _thriftId = thriftId;
5563
        _fieldName = fieldName;
5564
      }
5565
 
5566
      public short getThriftFieldId() {
5567
        return _thriftId;
5568
      }
5569
 
5570
      public String getFieldName() {
5571
        return _fieldName;
5572
      }
5573
    }
5574
 
5575
    // isset id assignments
715 rajveer 5576
    private static final int __ITEM_ID_ISSET_ID = 0;
5577
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5578
 
3430 rajveer 5579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5580
    static {
3430 rajveer 5581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5582
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5583
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5584
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5586
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5587
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5588
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5589
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5592
    }
5593
 
648 chandransh 5594
    public getLogisticsInfo_args() {
477 rajveer 5595
    }
5596
 
648 chandransh 5597
    public getLogisticsInfo_args(
5598
      String destination_pincode,
3044 chandransh 5599
      long item_id,
5766 rajveer 5600
      DeliveryType type,
5601
      PickUpType pickUp)
477 rajveer 5602
    {
5603
      this();
648 chandransh 5604
      this.destination_pincode = destination_pincode;
5605
      this.item_id = item_id;
715 rajveer 5606
      setItem_idIsSet(true);
3044 chandransh 5607
      this.type = type;
5766 rajveer 5608
      this.pickUp = pickUp;
477 rajveer 5609
    }
5610
 
5611
    /**
5612
     * Performs a deep copy on <i>other</i>.
5613
     */
648 chandransh 5614
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5615
      __isset_bit_vector.clear();
5616
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5617
      if (other.isSetDestination_pincode()) {
5618
        this.destination_pincode = other.destination_pincode;
477 rajveer 5619
      }
715 rajveer 5620
      this.item_id = other.item_id;
3044 chandransh 5621
      if (other.isSetType()) {
5622
        this.type = other.type;
5623
      }
5766 rajveer 5624
      if (other.isSetPickUp()) {
5625
        this.pickUp = other.pickUp;
5626
      }
477 rajveer 5627
    }
5628
 
648 chandransh 5629
    public getLogisticsInfo_args deepCopy() {
5630
      return new getLogisticsInfo_args(this);
477 rajveer 5631
    }
5632
 
3430 rajveer 5633
    @Override
5634
    public void clear() {
5635
      this.destination_pincode = null;
5636
      setItem_idIsSet(false);
5637
      this.item_id = 0;
5638
      this.type = null;
5766 rajveer 5639
      this.pickUp = null;
477 rajveer 5640
    }
5641
 
648 chandransh 5642
    public String getDestination_pincode() {
5643
      return this.destination_pincode;
477 rajveer 5644
    }
5645
 
3430 rajveer 5646
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5647
      this.destination_pincode = destination_pincode;
477 rajveer 5648
    }
5649
 
648 chandransh 5650
    public void unsetDestination_pincode() {
5651
      this.destination_pincode = null;
477 rajveer 5652
    }
5653
 
3430 rajveer 5654
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5655
    public boolean isSetDestination_pincode() {
5656
      return this.destination_pincode != null;
477 rajveer 5657
    }
5658
 
648 chandransh 5659
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5660
      if (!value) {
648 chandransh 5661
        this.destination_pincode = null;
477 rajveer 5662
      }
5663
    }
5664
 
715 rajveer 5665
    public long getItem_id() {
648 chandransh 5666
      return this.item_id;
477 rajveer 5667
    }
5668
 
3430 rajveer 5669
    public void setItem_id(long item_id) {
648 chandransh 5670
      this.item_id = item_id;
715 rajveer 5671
      setItem_idIsSet(true);
477 rajveer 5672
    }
5673
 
648 chandransh 5674
    public void unsetItem_id() {
715 rajveer 5675
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5676
    }
5677
 
3430 rajveer 5678
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5679
    public boolean isSetItem_id() {
715 rajveer 5680
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5681
    }
5682
 
648 chandransh 5683
    public void setItem_idIsSet(boolean value) {
715 rajveer 5684
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5685
    }
5686
 
3044 chandransh 5687
    /**
5688
     * 
5689
     * @see DeliveryType
5690
     */
5691
    public DeliveryType getType() {
5692
      return this.type;
5693
    }
5694
 
5695
    /**
5696
     * 
5697
     * @see DeliveryType
5698
     */
3430 rajveer 5699
    public void setType(DeliveryType type) {
3044 chandransh 5700
      this.type = type;
5701
    }
5702
 
5703
    public void unsetType() {
5704
      this.type = null;
5705
    }
5706
 
3430 rajveer 5707
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5708
    public boolean isSetType() {
5709
      return this.type != null;
5710
    }
5711
 
5712
    public void setTypeIsSet(boolean value) {
5713
      if (!value) {
5714
        this.type = null;
5715
      }
5716
    }
5717
 
5766 rajveer 5718
    /**
5719
     * 
5720
     * @see PickUpType
5721
     */
5722
    public PickUpType getPickUp() {
5723
      return this.pickUp;
5724
    }
5725
 
5726
    /**
5727
     * 
5728
     * @see PickUpType
5729
     */
5730
    public void setPickUp(PickUpType pickUp) {
5731
      this.pickUp = pickUp;
5732
    }
5733
 
5734
    public void unsetPickUp() {
5735
      this.pickUp = null;
5736
    }
5737
 
5738
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5739
    public boolean isSetPickUp() {
5740
      return this.pickUp != null;
5741
    }
5742
 
5743
    public void setPickUpIsSet(boolean value) {
5744
      if (!value) {
5745
        this.pickUp = null;
5746
      }
5747
    }
5748
 
477 rajveer 5749
    public void setFieldValue(_Fields field, Object value) {
5750
      switch (field) {
648 chandransh 5751
      case DESTINATION_PINCODE:
477 rajveer 5752
        if (value == null) {
648 chandransh 5753
          unsetDestination_pincode();
477 rajveer 5754
        } else {
648 chandransh 5755
          setDestination_pincode((String)value);
477 rajveer 5756
        }
5757
        break;
5758
 
648 chandransh 5759
      case ITEM_ID:
477 rajveer 5760
        if (value == null) {
648 chandransh 5761
          unsetItem_id();
477 rajveer 5762
        } else {
715 rajveer 5763
          setItem_id((Long)value);
477 rajveer 5764
        }
5765
        break;
5766
 
3044 chandransh 5767
      case TYPE:
5768
        if (value == null) {
5769
          unsetType();
5770
        } else {
5771
          setType((DeliveryType)value);
5772
        }
5773
        break;
5774
 
5766 rajveer 5775
      case PICK_UP:
5776
        if (value == null) {
5777
          unsetPickUp();
5778
        } else {
5779
          setPickUp((PickUpType)value);
5780
        }
5781
        break;
5782
 
477 rajveer 5783
      }
5784
    }
5785
 
5786
    public Object getFieldValue(_Fields field) {
5787
      switch (field) {
648 chandransh 5788
      case DESTINATION_PINCODE:
5789
        return getDestination_pincode();
477 rajveer 5790
 
648 chandransh 5791
      case ITEM_ID:
3430 rajveer 5792
        return Long.valueOf(getItem_id());
477 rajveer 5793
 
3044 chandransh 5794
      case TYPE:
5795
        return getType();
5796
 
5766 rajveer 5797
      case PICK_UP:
5798
        return getPickUp();
5799
 
477 rajveer 5800
      }
5801
      throw new IllegalStateException();
5802
    }
5803
 
3430 rajveer 5804
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5805
    public boolean isSet(_Fields field) {
5806
      if (field == null) {
5807
        throw new IllegalArgumentException();
5808
      }
477 rajveer 5809
 
5810
      switch (field) {
648 chandransh 5811
      case DESTINATION_PINCODE:
5812
        return isSetDestination_pincode();
5813
      case ITEM_ID:
5814
        return isSetItem_id();
3044 chandransh 5815
      case TYPE:
5816
        return isSetType();
5766 rajveer 5817
      case PICK_UP:
5818
        return isSetPickUp();
477 rajveer 5819
      }
5820
      throw new IllegalStateException();
5821
    }
5822
 
5823
    @Override
5824
    public boolean equals(Object that) {
5825
      if (that == null)
5826
        return false;
648 chandransh 5827
      if (that instanceof getLogisticsInfo_args)
5828
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5829
      return false;
5830
    }
5831
 
648 chandransh 5832
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5833
      if (that == null)
5834
        return false;
5835
 
648 chandransh 5836
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5837
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5838
      if (this_present_destination_pincode || that_present_destination_pincode) {
5839
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5840
          return false;
648 chandransh 5841
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5842
          return false;
5843
      }
5844
 
715 rajveer 5845
      boolean this_present_item_id = true;
5846
      boolean that_present_item_id = true;
648 chandransh 5847
      if (this_present_item_id || that_present_item_id) {
5848
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5849
          return false;
715 rajveer 5850
        if (this.item_id != that.item_id)
477 rajveer 5851
          return false;
5852
      }
5853
 
3044 chandransh 5854
      boolean this_present_type = true && this.isSetType();
5855
      boolean that_present_type = true && that.isSetType();
5856
      if (this_present_type || that_present_type) {
5857
        if (!(this_present_type && that_present_type))
5858
          return false;
5859
        if (!this.type.equals(that.type))
5860
          return false;
5861
      }
5862
 
5766 rajveer 5863
      boolean this_present_pickUp = true && this.isSetPickUp();
5864
      boolean that_present_pickUp = true && that.isSetPickUp();
5865
      if (this_present_pickUp || that_present_pickUp) {
5866
        if (!(this_present_pickUp && that_present_pickUp))
5867
          return false;
5868
        if (!this.pickUp.equals(that.pickUp))
5869
          return false;
5870
      }
5871
 
477 rajveer 5872
      return true;
5873
    }
5874
 
5875
    @Override
5876
    public int hashCode() {
5877
      return 0;
5878
    }
5879
 
648 chandransh 5880
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5881
      if (!getClass().equals(other.getClass())) {
5882
        return getClass().getName().compareTo(other.getClass().getName());
5883
      }
5884
 
5885
      int lastComparison = 0;
648 chandransh 5886
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5887
 
3430 rajveer 5888
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5889
      if (lastComparison != 0) {
5890
        return lastComparison;
5891
      }
3430 rajveer 5892
      if (isSetDestination_pincode()) {
5893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5894
        if (lastComparison != 0) {
5895
          return lastComparison;
5896
        }
477 rajveer 5897
      }
3430 rajveer 5898
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5899
      if (lastComparison != 0) {
5900
        return lastComparison;
5901
      }
3430 rajveer 5902
      if (isSetItem_id()) {
5903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5904
        if (lastComparison != 0) {
5905
          return lastComparison;
5906
        }
477 rajveer 5907
      }
3430 rajveer 5908
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5909
      if (lastComparison != 0) {
5910
        return lastComparison;
5911
      }
3430 rajveer 5912
      if (isSetType()) {
5913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5914
        if (lastComparison != 0) {
5915
          return lastComparison;
5916
        }
3044 chandransh 5917
      }
5766 rajveer 5918
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5919
      if (lastComparison != 0) {
5920
        return lastComparison;
5921
      }
5922
      if (isSetPickUp()) {
5923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5924
        if (lastComparison != 0) {
5925
          return lastComparison;
5926
        }
5927
      }
477 rajveer 5928
      return 0;
5929
    }
5930
 
3430 rajveer 5931
    public _Fields fieldForId(int fieldId) {
5932
      return _Fields.findByThriftId(fieldId);
5933
    }
5934
 
5935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5936
      org.apache.thrift.protocol.TField field;
477 rajveer 5937
      iprot.readStructBegin();
5938
      while (true)
5939
      {
5940
        field = iprot.readFieldBegin();
3430 rajveer 5941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5942
          break;
5943
        }
3430 rajveer 5944
        switch (field.id) {
5945
          case 1: // DESTINATION_PINCODE
5946
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5947
              this.destination_pincode = iprot.readString();
5948
            } else { 
5949
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5950
            }
5951
            break;
5952
          case 2: // ITEM_ID
5953
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5954
              this.item_id = iprot.readI64();
5955
              setItem_idIsSet(true);
5956
            } else { 
5957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5958
            }
5959
            break;
5960
          case 3: // TYPE
5961
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5962
              this.type = DeliveryType.findByValue(iprot.readI32());
5963
            } else { 
5964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5965
            }
5966
            break;
5766 rajveer 5967
          case 4: // PICK_UP
5968
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5969
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5970
            } else { 
5971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5972
            }
5973
            break;
3430 rajveer 5974
          default:
5975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5976
        }
3430 rajveer 5977
        iprot.readFieldEnd();
477 rajveer 5978
      }
5979
      iprot.readStructEnd();
5980
      validate();
5981
    }
5982
 
3430 rajveer 5983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5984
      validate();
5985
 
5986
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5987
      if (this.destination_pincode != null) {
5988
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5989
        oprot.writeString(this.destination_pincode);
477 rajveer 5990
        oprot.writeFieldEnd();
5991
      }
715 rajveer 5992
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5993
      oprot.writeI64(this.item_id);
5994
      oprot.writeFieldEnd();
3044 chandransh 5995
      if (this.type != null) {
5996
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5997
        oprot.writeI32(this.type.getValue());
5998
        oprot.writeFieldEnd();
5999
      }
5766 rajveer 6000
      if (this.pickUp != null) {
6001
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
6002
        oprot.writeI32(this.pickUp.getValue());
6003
        oprot.writeFieldEnd();
6004
      }
477 rajveer 6005
      oprot.writeFieldStop();
6006
      oprot.writeStructEnd();
6007
    }
6008
 
6009
    @Override
6010
    public String toString() {
648 chandransh 6011
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 6012
      boolean first = true;
6013
 
648 chandransh 6014
      sb.append("destination_pincode:");
6015
      if (this.destination_pincode == null) {
477 rajveer 6016
        sb.append("null");
6017
      } else {
648 chandransh 6018
        sb.append(this.destination_pincode);
477 rajveer 6019
      }
6020
      first = false;
6021
      if (!first) sb.append(", ");
648 chandransh 6022
      sb.append("item_id:");
715 rajveer 6023
      sb.append(this.item_id);
477 rajveer 6024
      first = false;
3044 chandransh 6025
      if (!first) sb.append(", ");
6026
      sb.append("type:");
6027
      if (this.type == null) {
6028
        sb.append("null");
6029
      } else {
6030
        sb.append(this.type);
6031
      }
6032
      first = false;
5766 rajveer 6033
      if (!first) sb.append(", ");
6034
      sb.append("pickUp:");
6035
      if (this.pickUp == null) {
6036
        sb.append("null");
6037
      } else {
6038
        sb.append(this.pickUp);
6039
      }
6040
      first = false;
477 rajveer 6041
      sb.append(")");
6042
      return sb.toString();
6043
    }
6044
 
3430 rajveer 6045
    public void validate() throws org.apache.thrift.TException {
477 rajveer 6046
      // check for required fields
6047
    }
6048
 
3430 rajveer 6049
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6050
      try {
6051
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6052
      } catch (org.apache.thrift.TException te) {
6053
        throw new java.io.IOException(te);
6054
      }
6055
    }
6056
 
6057
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6058
      try {
6059
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6060
      } catch (org.apache.thrift.TException te) {
6061
        throw new java.io.IOException(te);
6062
      }
6063
    }
6064
 
477 rajveer 6065
  }
6066
 
3430 rajveer 6067
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
6068
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 6069
 
3430 rajveer 6070
    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);
6071
    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 6072
 
3430 rajveer 6073
    private LogisticsInfo success; // required
6074
    private LogisticsServiceException se; // required
477 rajveer 6075
 
6076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6078
      SUCCESS((short)0, "success"),
6079
      SE((short)1, "se");
477 rajveer 6080
 
6081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6082
 
6083
      static {
6084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6085
          byName.put(field.getFieldName(), field);
6086
        }
6087
      }
6088
 
6089
      /**
6090
       * Find the _Fields constant that matches fieldId, or null if its not found.
6091
       */
6092
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6093
        switch(fieldId) {
6094
          case 0: // SUCCESS
6095
            return SUCCESS;
6096
          case 1: // SE
6097
            return SE;
6098
          default:
6099
            return null;
6100
        }
477 rajveer 6101
      }
6102
 
6103
      /**
6104
       * Find the _Fields constant that matches fieldId, throwing an exception
6105
       * if it is not found.
6106
       */
6107
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6108
        _Fields fields = findByThriftId(fieldId);
6109
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6110
        return fields;
6111
      }
6112
 
6113
      /**
6114
       * Find the _Fields constant that matches name, or null if its not found.
6115
       */
6116
      public static _Fields findByName(String name) {
6117
        return byName.get(name);
6118
      }
6119
 
6120
      private final short _thriftId;
6121
      private final String _fieldName;
6122
 
6123
      _Fields(short thriftId, String fieldName) {
6124
        _thriftId = thriftId;
6125
        _fieldName = fieldName;
6126
      }
6127
 
6128
      public short getThriftFieldId() {
6129
        return _thriftId;
6130
      }
6131
 
6132
      public String getFieldName() {
6133
        return _fieldName;
6134
      }
6135
    }
6136
 
412 ashish 6137
    // isset id assignments
6138
 
3430 rajveer 6139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6140
    static {
3430 rajveer 6141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6142
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6143
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6144
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6148
    }
6149
 
648 chandransh 6150
    public getLogisticsInfo_result() {
412 ashish 6151
    }
6152
 
648 chandransh 6153
    public getLogisticsInfo_result(
6154
      LogisticsInfo success,
6155
      LogisticsServiceException se)
412 ashish 6156
    {
6157
      this();
648 chandransh 6158
      this.success = success;
6159
      this.se = se;
412 ashish 6160
    }
6161
 
6162
    /**
6163
     * Performs a deep copy on <i>other</i>.
6164
     */
648 chandransh 6165
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6166
      if (other.isSetSuccess()) {
6167
        this.success = new LogisticsInfo(other.success);
412 ashish 6168
      }
648 chandransh 6169
      if (other.isSetSe()) {
6170
        this.se = new LogisticsServiceException(other.se);
6171
      }
412 ashish 6172
    }
6173
 
648 chandransh 6174
    public getLogisticsInfo_result deepCopy() {
6175
      return new getLogisticsInfo_result(this);
412 ashish 6176
    }
6177
 
3430 rajveer 6178
    @Override
6179
    public void clear() {
6180
      this.success = null;
6181
      this.se = null;
412 ashish 6182
    }
6183
 
648 chandransh 6184
    public LogisticsInfo getSuccess() {
6185
      return this.success;
412 ashish 6186
    }
6187
 
3430 rajveer 6188
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6189
      this.success = success;
412 ashish 6190
    }
6191
 
648 chandransh 6192
    public void unsetSuccess() {
6193
      this.success = null;
412 ashish 6194
    }
6195
 
3430 rajveer 6196
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6197
    public boolean isSetSuccess() {
6198
      return this.success != null;
412 ashish 6199
    }
6200
 
648 chandransh 6201
    public void setSuccessIsSet(boolean value) {
412 ashish 6202
      if (!value) {
648 chandransh 6203
        this.success = null;
412 ashish 6204
      }
6205
    }
6206
 
648 chandransh 6207
    public LogisticsServiceException getSe() {
6208
      return this.se;
412 ashish 6209
    }
6210
 
3430 rajveer 6211
    public void setSe(LogisticsServiceException se) {
648 chandransh 6212
      this.se = se;
412 ashish 6213
    }
6214
 
648 chandransh 6215
    public void unsetSe() {
6216
      this.se = null;
412 ashish 6217
    }
6218
 
3430 rajveer 6219
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6220
    public boolean isSetSe() {
6221
      return this.se != null;
412 ashish 6222
    }
6223
 
648 chandransh 6224
    public void setSeIsSet(boolean value) {
6225
      if (!value) {
6226
        this.se = null;
6227
      }
412 ashish 6228
    }
6229
 
6230
    public void setFieldValue(_Fields field, Object value) {
6231
      switch (field) {
648 chandransh 6232
      case SUCCESS:
412 ashish 6233
        if (value == null) {
648 chandransh 6234
          unsetSuccess();
412 ashish 6235
        } else {
648 chandransh 6236
          setSuccess((LogisticsInfo)value);
412 ashish 6237
        }
6238
        break;
6239
 
648 chandransh 6240
      case SE:
412 ashish 6241
        if (value == null) {
648 chandransh 6242
          unsetSe();
412 ashish 6243
        } else {
648 chandransh 6244
          setSe((LogisticsServiceException)value);
412 ashish 6245
        }
6246
        break;
6247
 
6248
      }
6249
    }
6250
 
6251
    public Object getFieldValue(_Fields field) {
6252
      switch (field) {
648 chandransh 6253
      case SUCCESS:
6254
        return getSuccess();
412 ashish 6255
 
648 chandransh 6256
      case SE:
6257
        return getSe();
412 ashish 6258
 
6259
      }
6260
      throw new IllegalStateException();
6261
    }
6262
 
3430 rajveer 6263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6264
    public boolean isSet(_Fields field) {
6265
      if (field == null) {
6266
        throw new IllegalArgumentException();
6267
      }
412 ashish 6268
 
6269
      switch (field) {
648 chandransh 6270
      case SUCCESS:
6271
        return isSetSuccess();
6272
      case SE:
6273
        return isSetSe();
412 ashish 6274
      }
6275
      throw new IllegalStateException();
6276
    }
6277
 
6278
    @Override
6279
    public boolean equals(Object that) {
6280
      if (that == null)
6281
        return false;
648 chandransh 6282
      if (that instanceof getLogisticsInfo_result)
6283
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6284
      return false;
6285
    }
6286
 
648 chandransh 6287
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6288
      if (that == null)
6289
        return false;
6290
 
648 chandransh 6291
      boolean this_present_success = true && this.isSetSuccess();
6292
      boolean that_present_success = true && that.isSetSuccess();
6293
      if (this_present_success || that_present_success) {
6294
        if (!(this_present_success && that_present_success))
412 ashish 6295
          return false;
648 chandransh 6296
        if (!this.success.equals(that.success))
412 ashish 6297
          return false;
6298
      }
6299
 
648 chandransh 6300
      boolean this_present_se = true && this.isSetSe();
6301
      boolean that_present_se = true && that.isSetSe();
6302
      if (this_present_se || that_present_se) {
6303
        if (!(this_present_se && that_present_se))
412 ashish 6304
          return false;
648 chandransh 6305
        if (!this.se.equals(that.se))
412 ashish 6306
          return false;
6307
      }
6308
 
6309
      return true;
6310
    }
6311
 
6312
    @Override
6313
    public int hashCode() {
6314
      return 0;
6315
    }
6316
 
648 chandransh 6317
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6318
      if (!getClass().equals(other.getClass())) {
6319
        return getClass().getName().compareTo(other.getClass().getName());
6320
      }
6321
 
6322
      int lastComparison = 0;
648 chandransh 6323
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6324
 
3430 rajveer 6325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6326
      if (lastComparison != 0) {
6327
        return lastComparison;
6328
      }
3430 rajveer 6329
      if (isSetSuccess()) {
6330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6331
        if (lastComparison != 0) {
6332
          return lastComparison;
6333
        }
412 ashish 6334
      }
3430 rajveer 6335
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6336
      if (lastComparison != 0) {
6337
        return lastComparison;
6338
      }
3430 rajveer 6339
      if (isSetSe()) {
6340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6341
        if (lastComparison != 0) {
6342
          return lastComparison;
6343
        }
412 ashish 6344
      }
6345
      return 0;
6346
    }
6347
 
3430 rajveer 6348
    public _Fields fieldForId(int fieldId) {
6349
      return _Fields.findByThriftId(fieldId);
6350
    }
6351
 
6352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6353
      org.apache.thrift.protocol.TField field;
412 ashish 6354
      iprot.readStructBegin();
6355
      while (true)
6356
      {
6357
        field = iprot.readFieldBegin();
3430 rajveer 6358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6359
          break;
6360
        }
3430 rajveer 6361
        switch (field.id) {
6362
          case 0: // SUCCESS
6363
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6364
              this.success = new LogisticsInfo();
6365
              this.success.read(iprot);
6366
            } else { 
6367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6368
            }
6369
            break;
6370
          case 1: // SE
6371
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6372
              this.se = new LogisticsServiceException();
6373
              this.se.read(iprot);
6374
            } else { 
6375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6376
            }
6377
            break;
6378
          default:
6379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6380
        }
3430 rajveer 6381
        iprot.readFieldEnd();
412 ashish 6382
      }
6383
      iprot.readStructEnd();
6384
      validate();
6385
    }
6386
 
3430 rajveer 6387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6388
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6389
 
648 chandransh 6390
      if (this.isSetSuccess()) {
6391
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6392
        this.success.write(oprot);
412 ashish 6393
        oprot.writeFieldEnd();
648 chandransh 6394
      } else if (this.isSetSe()) {
6395
        oprot.writeFieldBegin(SE_FIELD_DESC);
6396
        this.se.write(oprot);
6397
        oprot.writeFieldEnd();
412 ashish 6398
      }
6399
      oprot.writeFieldStop();
6400
      oprot.writeStructEnd();
6401
    }
6402
 
6403
    @Override
6404
    public String toString() {
648 chandransh 6405
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6406
      boolean first = true;
6407
 
648 chandransh 6408
      sb.append("success:");
6409
      if (this.success == null) {
412 ashish 6410
        sb.append("null");
6411
      } else {
648 chandransh 6412
        sb.append(this.success);
412 ashish 6413
      }
6414
      first = false;
6415
      if (!first) sb.append(", ");
648 chandransh 6416
      sb.append("se:");
6417
      if (this.se == null) {
6418
        sb.append("null");
6419
      } else {
6420
        sb.append(this.se);
6421
      }
412 ashish 6422
      first = false;
6423
      sb.append(")");
6424
      return sb.toString();
6425
    }
6426
 
3430 rajveer 6427
    public void validate() throws org.apache.thrift.TException {
412 ashish 6428
      // check for required fields
6429
    }
6430
 
3430 rajveer 6431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6432
      try {
6433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6434
      } catch (org.apache.thrift.TException te) {
6435
        throw new java.io.IOException(te);
6436
      }
6437
    }
6438
 
6439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6440
      try {
6441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6442
      } catch (org.apache.thrift.TException te) {
6443
        throw new java.io.IOException(te);
6444
      }
6445
    }
6446
 
412 ashish 6447
  }
6448
 
3430 rajveer 6449
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6451
 
3430 rajveer 6452
    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);
20724 kshitij.so 6453
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)2);
412 ashish 6454
 
3430 rajveer 6455
    private long providerId; // required
20724 kshitij.so 6456
    private String logisticsTransactionId; // required
412 ashish 6457
 
6458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6460
      PROVIDER_ID((short)1, "providerId"),
20724 kshitij.so 6461
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
412 ashish 6462
 
6463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6464
 
6465
      static {
6466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6467
          byName.put(field.getFieldName(), field);
6468
        }
6469
      }
6470
 
6471
      /**
6472
       * Find the _Fields constant that matches fieldId, or null if its not found.
6473
       */
6474
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6475
        switch(fieldId) {
6476
          case 1: // PROVIDER_ID
6477
            return PROVIDER_ID;
20724 kshitij.so 6478
          case 2: // LOGISTICS_TRANSACTION_ID
6479
            return LOGISTICS_TRANSACTION_ID;
3430 rajveer 6480
          default:
6481
            return null;
6482
        }
412 ashish 6483
      }
6484
 
6485
      /**
6486
       * Find the _Fields constant that matches fieldId, throwing an exception
6487
       * if it is not found.
6488
       */
6489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6490
        _Fields fields = findByThriftId(fieldId);
6491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6492
        return fields;
6493
      }
6494
 
6495
      /**
6496
       * Find the _Fields constant that matches name, or null if its not found.
6497
       */
6498
      public static _Fields findByName(String name) {
6499
        return byName.get(name);
6500
      }
6501
 
6502
      private final short _thriftId;
6503
      private final String _fieldName;
6504
 
6505
      _Fields(short thriftId, String fieldName) {
6506
        _thriftId = thriftId;
6507
        _fieldName = fieldName;
6508
      }
6509
 
6510
      public short getThriftFieldId() {
6511
        return _thriftId;
6512
      }
6513
 
6514
      public String getFieldName() {
6515
        return _fieldName;
6516
      }
6517
    }
6518
 
6519
    // isset id assignments
648 chandransh 6520
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6521
    private BitSet __isset_bit_vector = new BitSet(1);
6522
 
3430 rajveer 6523
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6524
    static {
3430 rajveer 6525
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6526
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6527
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20724 kshitij.so 6528
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6532
    }
6533
 
6534
    public getEmptyAWB_args() {
6535
    }
6536
 
6537
    public getEmptyAWB_args(
5247 rajveer 6538
      long providerId,
20724 kshitij.so 6539
      String logisticsTransactionId)
412 ashish 6540
    {
6541
      this();
648 chandransh 6542
      this.providerId = providerId;
6543
      setProviderIdIsSet(true);
20724 kshitij.so 6544
      this.logisticsTransactionId = logisticsTransactionId;
412 ashish 6545
    }
6546
 
6547
    /**
6548
     * Performs a deep copy on <i>other</i>.
6549
     */
6550
    public getEmptyAWB_args(getEmptyAWB_args other) {
6551
      __isset_bit_vector.clear();
6552
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6553
      this.providerId = other.providerId;
20724 kshitij.so 6554
      if (other.isSetLogisticsTransactionId()) {
6555
        this.logisticsTransactionId = other.logisticsTransactionId;
5247 rajveer 6556
      }
412 ashish 6557
    }
6558
 
6559
    public getEmptyAWB_args deepCopy() {
6560
      return new getEmptyAWB_args(this);
6561
    }
6562
 
3430 rajveer 6563
    @Override
6564
    public void clear() {
6565
      setProviderIdIsSet(false);
6566
      this.providerId = 0;
20724 kshitij.so 6567
      this.logisticsTransactionId = null;
412 ashish 6568
    }
6569
 
648 chandransh 6570
    public long getProviderId() {
6571
      return this.providerId;
412 ashish 6572
    }
6573
 
3430 rajveer 6574
    public void setProviderId(long providerId) {
648 chandransh 6575
      this.providerId = providerId;
6576
      setProviderIdIsSet(true);
412 ashish 6577
    }
6578
 
648 chandransh 6579
    public void unsetProviderId() {
6580
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6581
    }
6582
 
3430 rajveer 6583
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6584
    public boolean isSetProviderId() {
6585
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6586
    }
6587
 
648 chandransh 6588
    public void setProviderIdIsSet(boolean value) {
6589
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6590
    }
6591
 
20724 kshitij.so 6592
    public String getLogisticsTransactionId() {
6593
      return this.logisticsTransactionId;
5247 rajveer 6594
    }
6595
 
20724 kshitij.so 6596
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6597
      this.logisticsTransactionId = logisticsTransactionId;
5247 rajveer 6598
    }
6599
 
20724 kshitij.so 6600
    public void unsetLogisticsTransactionId() {
6601
      this.logisticsTransactionId = null;
5247 rajveer 6602
    }
6603
 
20724 kshitij.so 6604
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6605
    public boolean isSetLogisticsTransactionId() {
6606
      return this.logisticsTransactionId != null;
5247 rajveer 6607
    }
6608
 
20724 kshitij.so 6609
    public void setLogisticsTransactionIdIsSet(boolean value) {
5247 rajveer 6610
      if (!value) {
20724 kshitij.so 6611
        this.logisticsTransactionId = null;
5247 rajveer 6612
      }
6613
    }
6614
 
412 ashish 6615
    public void setFieldValue(_Fields field, Object value) {
6616
      switch (field) {
6617
      case PROVIDER_ID:
6618
        if (value == null) {
648 chandransh 6619
          unsetProviderId();
412 ashish 6620
        } else {
648 chandransh 6621
          setProviderId((Long)value);
412 ashish 6622
        }
6623
        break;
6624
 
20724 kshitij.so 6625
      case LOGISTICS_TRANSACTION_ID:
5247 rajveer 6626
        if (value == null) {
20724 kshitij.so 6627
          unsetLogisticsTransactionId();
5247 rajveer 6628
        } else {
20724 kshitij.so 6629
          setLogisticsTransactionId((String)value);
5247 rajveer 6630
        }
6631
        break;
6632
 
412 ashish 6633
      }
6634
    }
6635
 
6636
    public Object getFieldValue(_Fields field) {
6637
      switch (field) {
6638
      case PROVIDER_ID:
3430 rajveer 6639
        return Long.valueOf(getProviderId());
412 ashish 6640
 
20724 kshitij.so 6641
      case LOGISTICS_TRANSACTION_ID:
6642
        return getLogisticsTransactionId();
5247 rajveer 6643
 
412 ashish 6644
      }
6645
      throw new IllegalStateException();
6646
    }
6647
 
3430 rajveer 6648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6649
    public boolean isSet(_Fields field) {
6650
      if (field == null) {
6651
        throw new IllegalArgumentException();
6652
      }
412 ashish 6653
 
6654
      switch (field) {
6655
      case PROVIDER_ID:
648 chandransh 6656
        return isSetProviderId();
20724 kshitij.so 6657
      case LOGISTICS_TRANSACTION_ID:
6658
        return isSetLogisticsTransactionId();
412 ashish 6659
      }
6660
      throw new IllegalStateException();
6661
    }
6662
 
6663
    @Override
6664
    public boolean equals(Object that) {
6665
      if (that == null)
6666
        return false;
6667
      if (that instanceof getEmptyAWB_args)
6668
        return this.equals((getEmptyAWB_args)that);
6669
      return false;
6670
    }
6671
 
6672
    public boolean equals(getEmptyAWB_args that) {
6673
      if (that == null)
6674
        return false;
6675
 
648 chandransh 6676
      boolean this_present_providerId = true;
6677
      boolean that_present_providerId = true;
6678
      if (this_present_providerId || that_present_providerId) {
6679
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6680
          return false;
648 chandransh 6681
        if (this.providerId != that.providerId)
412 ashish 6682
          return false;
6683
      }
6684
 
20724 kshitij.so 6685
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6686
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6687
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6688
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
5247 rajveer 6689
          return false;
20724 kshitij.so 6690
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
5247 rajveer 6691
          return false;
6692
      }
6693
 
412 ashish 6694
      return true;
6695
    }
6696
 
6697
    @Override
6698
    public int hashCode() {
6699
      return 0;
6700
    }
6701
 
6702
    public int compareTo(getEmptyAWB_args other) {
6703
      if (!getClass().equals(other.getClass())) {
6704
        return getClass().getName().compareTo(other.getClass().getName());
6705
      }
6706
 
6707
      int lastComparison = 0;
6708
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6709
 
3430 rajveer 6710
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6711
      if (lastComparison != 0) {
6712
        return lastComparison;
6713
      }
3430 rajveer 6714
      if (isSetProviderId()) {
6715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6716
        if (lastComparison != 0) {
6717
          return lastComparison;
6718
        }
412 ashish 6719
      }
20724 kshitij.so 6720
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
5247 rajveer 6721
      if (lastComparison != 0) {
6722
        return lastComparison;
6723
      }
20724 kshitij.so 6724
      if (isSetLogisticsTransactionId()) {
6725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
5247 rajveer 6726
        if (lastComparison != 0) {
6727
          return lastComparison;
6728
        }
6729
      }
412 ashish 6730
      return 0;
6731
    }
6732
 
3430 rajveer 6733
    public _Fields fieldForId(int fieldId) {
6734
      return _Fields.findByThriftId(fieldId);
6735
    }
6736
 
6737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6738
      org.apache.thrift.protocol.TField field;
412 ashish 6739
      iprot.readStructBegin();
6740
      while (true)
6741
      {
6742
        field = iprot.readFieldBegin();
3430 rajveer 6743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6744
          break;
6745
        }
3430 rajveer 6746
        switch (field.id) {
6747
          case 1: // PROVIDER_ID
6748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6749
              this.providerId = iprot.readI64();
6750
              setProviderIdIsSet(true);
6751
            } else { 
6752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6753
            }
6754
            break;
20724 kshitij.so 6755
          case 2: // LOGISTICS_TRANSACTION_ID
6756
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6757
              this.logisticsTransactionId = iprot.readString();
5247 rajveer 6758
            } else { 
6759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6760
            }
6761
            break;
3430 rajveer 6762
          default:
6763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6764
        }
3430 rajveer 6765
        iprot.readFieldEnd();
412 ashish 6766
      }
6767
      iprot.readStructEnd();
6768
      validate();
6769
    }
6770
 
3430 rajveer 6771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6772
      validate();
6773
 
6774
      oprot.writeStructBegin(STRUCT_DESC);
6775
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6776
      oprot.writeI64(this.providerId);
412 ashish 6777
      oprot.writeFieldEnd();
20724 kshitij.so 6778
      if (this.logisticsTransactionId != null) {
6779
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
6780
        oprot.writeString(this.logisticsTransactionId);
6781
        oprot.writeFieldEnd();
6782
      }
412 ashish 6783
      oprot.writeFieldStop();
6784
      oprot.writeStructEnd();
6785
    }
6786
 
6787
    @Override
6788
    public String toString() {
6789
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6790
      boolean first = true;
6791
 
648 chandransh 6792
      sb.append("providerId:");
6793
      sb.append(this.providerId);
412 ashish 6794
      first = false;
5247 rajveer 6795
      if (!first) sb.append(", ");
20724 kshitij.so 6796
      sb.append("logisticsTransactionId:");
6797
      if (this.logisticsTransactionId == null) {
5247 rajveer 6798
        sb.append("null");
6799
      } else {
20724 kshitij.so 6800
        sb.append(this.logisticsTransactionId);
5247 rajveer 6801
      }
6802
      first = false;
412 ashish 6803
      sb.append(")");
6804
      return sb.toString();
6805
    }
6806
 
3430 rajveer 6807
    public void validate() throws org.apache.thrift.TException {
412 ashish 6808
      // check for required fields
6809
    }
6810
 
3430 rajveer 6811
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6812
      try {
6813
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6814
      } catch (org.apache.thrift.TException te) {
6815
        throw new java.io.IOException(te);
6816
      }
6817
    }
6818
 
6819
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6820
      try {
6821
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6822
        __isset_bit_vector = new BitSet(1);
6823
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6824
      } catch (org.apache.thrift.TException te) {
6825
        throw new java.io.IOException(te);
6826
      }
6827
    }
6828
 
412 ashish 6829
  }
6830
 
3430 rajveer 6831
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6832
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6833
 
3430 rajveer 6834
    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);
6835
    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 6836
 
3430 rajveer 6837
    private String success; // required
6838
    private LogisticsServiceException se; // required
412 ashish 6839
 
6840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6842
      SUCCESS((short)0, "success"),
6843
      SE((short)1, "se");
412 ashish 6844
 
6845
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6846
 
6847
      static {
6848
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6849
          byName.put(field.getFieldName(), field);
6850
        }
6851
      }
6852
 
6853
      /**
6854
       * Find the _Fields constant that matches fieldId, or null if its not found.
6855
       */
6856
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6857
        switch(fieldId) {
6858
          case 0: // SUCCESS
6859
            return SUCCESS;
6860
          case 1: // SE
6861
            return SE;
6862
          default:
6863
            return null;
6864
        }
412 ashish 6865
      }
6866
 
6867
      /**
6868
       * Find the _Fields constant that matches fieldId, throwing an exception
6869
       * if it is not found.
6870
       */
6871
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6872
        _Fields fields = findByThriftId(fieldId);
6873
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6874
        return fields;
6875
      }
6876
 
6877
      /**
6878
       * Find the _Fields constant that matches name, or null if its not found.
6879
       */
6880
      public static _Fields findByName(String name) {
6881
        return byName.get(name);
6882
      }
6883
 
6884
      private final short _thriftId;
6885
      private final String _fieldName;
6886
 
6887
      _Fields(short thriftId, String fieldName) {
6888
        _thriftId = thriftId;
6889
        _fieldName = fieldName;
6890
      }
6891
 
6892
      public short getThriftFieldId() {
6893
        return _thriftId;
6894
      }
6895
 
6896
      public String getFieldName() {
6897
        return _fieldName;
6898
      }
6899
    }
6900
 
6901
    // isset id assignments
6902
 
3430 rajveer 6903
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6904
    static {
3430 rajveer 6905
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6906
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6908
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6909
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6910
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6911
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6912
    }
6913
 
6914
    public getEmptyAWB_result() {
6915
    }
6916
 
6917
    public getEmptyAWB_result(
648 chandransh 6918
      String success,
6919
      LogisticsServiceException se)
412 ashish 6920
    {
6921
      this();
6922
      this.success = success;
648 chandransh 6923
      this.se = se;
412 ashish 6924
    }
6925
 
6926
    /**
6927
     * Performs a deep copy on <i>other</i>.
6928
     */
6929
    public getEmptyAWB_result(getEmptyAWB_result other) {
6930
      if (other.isSetSuccess()) {
6931
        this.success = other.success;
6932
      }
648 chandransh 6933
      if (other.isSetSe()) {
6934
        this.se = new LogisticsServiceException(other.se);
6935
      }
412 ashish 6936
    }
6937
 
6938
    public getEmptyAWB_result deepCopy() {
6939
      return new getEmptyAWB_result(this);
6940
    }
6941
 
3430 rajveer 6942
    @Override
6943
    public void clear() {
6944
      this.success = null;
6945
      this.se = null;
412 ashish 6946
    }
6947
 
6948
    public String getSuccess() {
6949
      return this.success;
6950
    }
6951
 
3430 rajveer 6952
    public void setSuccess(String success) {
412 ashish 6953
      this.success = success;
6954
    }
6955
 
6956
    public void unsetSuccess() {
6957
      this.success = null;
6958
    }
6959
 
3430 rajveer 6960
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6961
    public boolean isSetSuccess() {
6962
      return this.success != null;
6963
    }
6964
 
6965
    public void setSuccessIsSet(boolean value) {
6966
      if (!value) {
6967
        this.success = null;
6968
      }
6969
    }
6970
 
648 chandransh 6971
    public LogisticsServiceException getSe() {
6972
      return this.se;
412 ashish 6973
    }
6974
 
3430 rajveer 6975
    public void setSe(LogisticsServiceException se) {
648 chandransh 6976
      this.se = se;
412 ashish 6977
    }
6978
 
648 chandransh 6979
    public void unsetSe() {
6980
      this.se = null;
412 ashish 6981
    }
6982
 
3430 rajveer 6983
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6984
    public boolean isSetSe() {
6985
      return this.se != null;
412 ashish 6986
    }
6987
 
648 chandransh 6988
    public void setSeIsSet(boolean value) {
412 ashish 6989
      if (!value) {
648 chandransh 6990
        this.se = null;
412 ashish 6991
      }
6992
    }
6993
 
6994
    public void setFieldValue(_Fields field, Object value) {
6995
      switch (field) {
6996
      case SUCCESS:
6997
        if (value == null) {
6998
          unsetSuccess();
6999
        } else {
648 chandransh 7000
          setSuccess((String)value);
412 ashish 7001
        }
7002
        break;
7003
 
648 chandransh 7004
      case SE:
7005
        if (value == null) {
7006
          unsetSe();
7007
        } else {
7008
          setSe((LogisticsServiceException)value);
7009
        }
7010
        break;
7011
 
412 ashish 7012
      }
7013
    }
7014
 
7015
    public Object getFieldValue(_Fields field) {
7016
      switch (field) {
7017
      case SUCCESS:
7018
        return getSuccess();
7019
 
648 chandransh 7020
      case SE:
7021
        return getSe();
7022
 
412 ashish 7023
      }
7024
      throw new IllegalStateException();
7025
    }
7026
 
3430 rajveer 7027
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7028
    public boolean isSet(_Fields field) {
7029
      if (field == null) {
7030
        throw new IllegalArgumentException();
7031
      }
412 ashish 7032
 
7033
      switch (field) {
7034
      case SUCCESS:
7035
        return isSetSuccess();
648 chandransh 7036
      case SE:
7037
        return isSetSe();
412 ashish 7038
      }
7039
      throw new IllegalStateException();
7040
    }
7041
 
7042
    @Override
7043
    public boolean equals(Object that) {
7044
      if (that == null)
7045
        return false;
648 chandransh 7046
      if (that instanceof getEmptyAWB_result)
7047
        return this.equals((getEmptyAWB_result)that);
412 ashish 7048
      return false;
7049
    }
7050
 
648 chandransh 7051
    public boolean equals(getEmptyAWB_result that) {
412 ashish 7052
      if (that == null)
7053
        return false;
7054
 
7055
      boolean this_present_success = true && this.isSetSuccess();
7056
      boolean that_present_success = true && that.isSetSuccess();
7057
      if (this_present_success || that_present_success) {
7058
        if (!(this_present_success && that_present_success))
7059
          return false;
7060
        if (!this.success.equals(that.success))
7061
          return false;
7062
      }
7063
 
648 chandransh 7064
      boolean this_present_se = true && this.isSetSe();
7065
      boolean that_present_se = true && that.isSetSe();
7066
      if (this_present_se || that_present_se) {
7067
        if (!(this_present_se && that_present_se))
7068
          return false;
7069
        if (!this.se.equals(that.se))
7070
          return false;
7071
      }
7072
 
412 ashish 7073
      return true;
7074
    }
7075
 
7076
    @Override
7077
    public int hashCode() {
7078
      return 0;
7079
    }
7080
 
648 chandransh 7081
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7082
      if (!getClass().equals(other.getClass())) {
7083
        return getClass().getName().compareTo(other.getClass().getName());
7084
      }
7085
 
7086
      int lastComparison = 0;
648 chandransh 7087
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7088
 
3430 rajveer 7089
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7090
      if (lastComparison != 0) {
7091
        return lastComparison;
7092
      }
3430 rajveer 7093
      if (isSetSuccess()) {
7094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7095
        if (lastComparison != 0) {
7096
          return lastComparison;
7097
        }
412 ashish 7098
      }
3430 rajveer 7099
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7100
      if (lastComparison != 0) {
7101
        return lastComparison;
7102
      }
3430 rajveer 7103
      if (isSetSe()) {
7104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7105
        if (lastComparison != 0) {
7106
          return lastComparison;
7107
        }
412 ashish 7108
      }
7109
      return 0;
7110
    }
7111
 
3430 rajveer 7112
    public _Fields fieldForId(int fieldId) {
7113
      return _Fields.findByThriftId(fieldId);
7114
    }
7115
 
7116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7117
      org.apache.thrift.protocol.TField field;
412 ashish 7118
      iprot.readStructBegin();
7119
      while (true)
7120
      {
7121
        field = iprot.readFieldBegin();
3430 rajveer 7122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7123
          break;
7124
        }
3430 rajveer 7125
        switch (field.id) {
7126
          case 0: // SUCCESS
7127
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7128
              this.success = iprot.readString();
7129
            } else { 
7130
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7131
            }
7132
            break;
7133
          case 1: // SE
7134
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7135
              this.se = new LogisticsServiceException();
7136
              this.se.read(iprot);
7137
            } else { 
7138
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7139
            }
7140
            break;
7141
          default:
7142
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7143
        }
3430 rajveer 7144
        iprot.readFieldEnd();
412 ashish 7145
      }
7146
      iprot.readStructEnd();
7147
      validate();
7148
    }
7149
 
3430 rajveer 7150
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7151
      oprot.writeStructBegin(STRUCT_DESC);
7152
 
7153
      if (this.isSetSuccess()) {
7154
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7155
        oprot.writeString(this.success);
412 ashish 7156
        oprot.writeFieldEnd();
648 chandransh 7157
      } else if (this.isSetSe()) {
7158
        oprot.writeFieldBegin(SE_FIELD_DESC);
7159
        this.se.write(oprot);
7160
        oprot.writeFieldEnd();
412 ashish 7161
      }
7162
      oprot.writeFieldStop();
7163
      oprot.writeStructEnd();
7164
    }
7165
 
7166
    @Override
7167
    public String toString() {
648 chandransh 7168
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7169
      boolean first = true;
7170
 
7171
      sb.append("success:");
7172
      if (this.success == null) {
7173
        sb.append("null");
7174
      } else {
7175
        sb.append(this.success);
7176
      }
7177
      first = false;
648 chandransh 7178
      if (!first) sb.append(", ");
7179
      sb.append("se:");
7180
      if (this.se == null) {
442 rajveer 7181
        sb.append("null");
7182
      } else {
648 chandransh 7183
        sb.append(this.se);
442 rajveer 7184
      }
7185
      first = false;
7186
      sb.append(")");
7187
      return sb.toString();
7188
    }
7189
 
3430 rajveer 7190
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7191
      // check for required fields
7192
    }
7193
 
3430 rajveer 7194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7195
      try {
7196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7197
      } catch (org.apache.thrift.TException te) {
7198
        throw new java.io.IOException(te);
7199
      }
7200
    }
7201
 
7202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7203
      try {
7204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7205
      } catch (org.apache.thrift.TException te) {
7206
        throw new java.io.IOException(te);
7207
      }
7208
    }
7209
 
442 rajveer 7210
  }
7211
 
3430 rajveer 7212
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7214
 
6643 rajveer 7215
    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 7216
    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 7217
 
6643 rajveer 7218
    private String awbNumber; // required
3430 rajveer 7219
    private long providerId; // required
442 rajveer 7220
 
7221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7223
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7224
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7225
 
7226
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7227
 
7228
      static {
7229
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7230
          byName.put(field.getFieldName(), field);
7231
        }
7232
      }
7233
 
7234
      /**
7235
       * Find the _Fields constant that matches fieldId, or null if its not found.
7236
       */
7237
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7238
        switch(fieldId) {
6643 rajveer 7239
          case 1: // AWB_NUMBER
7240
            return AWB_NUMBER;
3430 rajveer 7241
          case 2: // PROVIDER_ID
7242
            return PROVIDER_ID;
7243
          default:
7244
            return null;
7245
        }
442 rajveer 7246
      }
7247
 
7248
      /**
7249
       * Find the _Fields constant that matches fieldId, throwing an exception
7250
       * if it is not found.
7251
       */
7252
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7253
        _Fields fields = findByThriftId(fieldId);
7254
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7255
        return fields;
7256
      }
7257
 
7258
      /**
7259
       * Find the _Fields constant that matches name, or null if its not found.
7260
       */
7261
      public static _Fields findByName(String name) {
7262
        return byName.get(name);
7263
      }
7264
 
7265
      private final short _thriftId;
7266
      private final String _fieldName;
7267
 
7268
      _Fields(short thriftId, String fieldName) {
7269
        _thriftId = thriftId;
7270
        _fieldName = fieldName;
7271
      }
7272
 
7273
      public short getThriftFieldId() {
7274
        return _thriftId;
7275
      }
7276
 
7277
      public String getFieldName() {
7278
        return _fieldName;
7279
      }
7280
    }
7281
 
7282
    // isset id assignments
648 chandransh 7283
    private static final int __PROVIDERID_ISSET_ID = 0;
7284
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7285
 
3430 rajveer 7286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7287
    static {
3430 rajveer 7288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7289
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7291
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7292
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7293
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7294
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7295
    }
7296
 
648 chandransh 7297
    public getShipmentInfo_args() {
442 rajveer 7298
    }
7299
 
648 chandransh 7300
    public getShipmentInfo_args(
6643 rajveer 7301
      String awbNumber,
648 chandransh 7302
      long providerId)
442 rajveer 7303
    {
7304
      this();
6643 rajveer 7305
      this.awbNumber = awbNumber;
648 chandransh 7306
      this.providerId = providerId;
7307
      setProviderIdIsSet(true);
442 rajveer 7308
    }
7309
 
7310
    /**
7311
     * Performs a deep copy on <i>other</i>.
7312
     */
648 chandransh 7313
    public getShipmentInfo_args(getShipmentInfo_args other) {
7314
      __isset_bit_vector.clear();
7315
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7316
      if (other.isSetAwbNumber()) {
7317
        this.awbNumber = other.awbNumber;
442 rajveer 7318
      }
648 chandransh 7319
      this.providerId = other.providerId;
442 rajveer 7320
    }
7321
 
648 chandransh 7322
    public getShipmentInfo_args deepCopy() {
7323
      return new getShipmentInfo_args(this);
442 rajveer 7324
    }
7325
 
3430 rajveer 7326
    @Override
7327
    public void clear() {
6643 rajveer 7328
      this.awbNumber = null;
3430 rajveer 7329
      setProviderIdIsSet(false);
7330
      this.providerId = 0;
442 rajveer 7331
    }
7332
 
6643 rajveer 7333
    public String getAwbNumber() {
7334
      return this.awbNumber;
442 rajveer 7335
    }
7336
 
6643 rajveer 7337
    public void setAwbNumber(String awbNumber) {
7338
      this.awbNumber = awbNumber;
442 rajveer 7339
    }
7340
 
6643 rajveer 7341
    public void unsetAwbNumber() {
7342
      this.awbNumber = null;
442 rajveer 7343
    }
7344
 
6643 rajveer 7345
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7346
    public boolean isSetAwbNumber() {
7347
      return this.awbNumber != null;
442 rajveer 7348
    }
7349
 
6643 rajveer 7350
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7351
      if (!value) {
6643 rajveer 7352
        this.awbNumber = null;
442 rajveer 7353
      }
7354
    }
7355
 
648 chandransh 7356
    public long getProviderId() {
7357
      return this.providerId;
442 rajveer 7358
    }
7359
 
3430 rajveer 7360
    public void setProviderId(long providerId) {
648 chandransh 7361
      this.providerId = providerId;
7362
      setProviderIdIsSet(true);
442 rajveer 7363
    }
7364
 
648 chandransh 7365
    public void unsetProviderId() {
7366
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7367
    }
7368
 
3430 rajveer 7369
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7370
    public boolean isSetProviderId() {
7371
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7372
    }
7373
 
648 chandransh 7374
    public void setProviderIdIsSet(boolean value) {
7375
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7376
    }
7377
 
7378
    public void setFieldValue(_Fields field, Object value) {
7379
      switch (field) {
6643 rajveer 7380
      case AWB_NUMBER:
442 rajveer 7381
        if (value == null) {
6643 rajveer 7382
          unsetAwbNumber();
442 rajveer 7383
        } else {
6643 rajveer 7384
          setAwbNumber((String)value);
442 rajveer 7385
        }
7386
        break;
7387
 
648 chandransh 7388
      case PROVIDER_ID:
442 rajveer 7389
        if (value == null) {
648 chandransh 7390
          unsetProviderId();
442 rajveer 7391
        } else {
648 chandransh 7392
          setProviderId((Long)value);
442 rajveer 7393
        }
7394
        break;
7395
 
7396
      }
7397
    }
7398
 
7399
    public Object getFieldValue(_Fields field) {
7400
      switch (field) {
6643 rajveer 7401
      case AWB_NUMBER:
7402
        return getAwbNumber();
442 rajveer 7403
 
648 chandransh 7404
      case PROVIDER_ID:
3430 rajveer 7405
        return Long.valueOf(getProviderId());
442 rajveer 7406
 
7407
      }
7408
      throw new IllegalStateException();
7409
    }
7410
 
3430 rajveer 7411
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7412
    public boolean isSet(_Fields field) {
7413
      if (field == null) {
7414
        throw new IllegalArgumentException();
7415
      }
442 rajveer 7416
 
7417
      switch (field) {
6643 rajveer 7418
      case AWB_NUMBER:
7419
        return isSetAwbNumber();
648 chandransh 7420
      case PROVIDER_ID:
7421
        return isSetProviderId();
442 rajveer 7422
      }
7423
      throw new IllegalStateException();
7424
    }
7425
 
7426
    @Override
7427
    public boolean equals(Object that) {
7428
      if (that == null)
7429
        return false;
648 chandransh 7430
      if (that instanceof getShipmentInfo_args)
7431
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7432
      return false;
7433
    }
7434
 
648 chandransh 7435
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7436
      if (that == null)
7437
        return false;
7438
 
6643 rajveer 7439
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7440
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7441
      if (this_present_awbNumber || that_present_awbNumber) {
7442
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7443
          return false;
6643 rajveer 7444
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7445
          return false;
7446
      }
7447
 
648 chandransh 7448
      boolean this_present_providerId = true;
7449
      boolean that_present_providerId = true;
7450
      if (this_present_providerId || that_present_providerId) {
7451
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7452
          return false;
648 chandransh 7453
        if (this.providerId != that.providerId)
442 rajveer 7454
          return false;
7455
      }
7456
 
7457
      return true;
7458
    }
7459
 
7460
    @Override
7461
    public int hashCode() {
7462
      return 0;
7463
    }
7464
 
648 chandransh 7465
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7466
      if (!getClass().equals(other.getClass())) {
7467
        return getClass().getName().compareTo(other.getClass().getName());
7468
      }
7469
 
7470
      int lastComparison = 0;
648 chandransh 7471
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7472
 
6643 rajveer 7473
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7474
      if (lastComparison != 0) {
7475
        return lastComparison;
7476
      }
6643 rajveer 7477
      if (isSetAwbNumber()) {
7478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7479
        if (lastComparison != 0) {
7480
          return lastComparison;
7481
        }
442 rajveer 7482
      }
3430 rajveer 7483
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7484
      if (lastComparison != 0) {
7485
        return lastComparison;
7486
      }
3430 rajveer 7487
      if (isSetProviderId()) {
7488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7489
        if (lastComparison != 0) {
7490
          return lastComparison;
7491
        }
442 rajveer 7492
      }
7493
      return 0;
7494
    }
7495
 
3430 rajveer 7496
    public _Fields fieldForId(int fieldId) {
7497
      return _Fields.findByThriftId(fieldId);
7498
    }
7499
 
7500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7501
      org.apache.thrift.protocol.TField field;
442 rajveer 7502
      iprot.readStructBegin();
7503
      while (true)
7504
      {
7505
        field = iprot.readFieldBegin();
3430 rajveer 7506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7507
          break;
7508
        }
3430 rajveer 7509
        switch (field.id) {
6643 rajveer 7510
          case 1: // AWB_NUMBER
3430 rajveer 7511
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7512
              this.awbNumber = iprot.readString();
3430 rajveer 7513
            } else { 
7514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7515
            }
7516
            break;
7517
          case 2: // PROVIDER_ID
7518
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7519
              this.providerId = iprot.readI64();
7520
              setProviderIdIsSet(true);
7521
            } else { 
7522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7523
            }
7524
            break;
7525
          default:
7526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7527
        }
3430 rajveer 7528
        iprot.readFieldEnd();
442 rajveer 7529
      }
7530
      iprot.readStructEnd();
7531
      validate();
7532
    }
7533
 
3430 rajveer 7534
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7535
      validate();
7536
 
7537
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7538
      if (this.awbNumber != null) {
7539
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7540
        oprot.writeString(this.awbNumber);
442 rajveer 7541
        oprot.writeFieldEnd();
7542
      }
648 chandransh 7543
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7544
      oprot.writeI64(this.providerId);
7545
      oprot.writeFieldEnd();
442 rajveer 7546
      oprot.writeFieldStop();
7547
      oprot.writeStructEnd();
7548
    }
7549
 
7550
    @Override
7551
    public String toString() {
648 chandransh 7552
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7553
      boolean first = true;
7554
 
6643 rajveer 7555
      sb.append("awbNumber:");
7556
      if (this.awbNumber == null) {
442 rajveer 7557
        sb.append("null");
7558
      } else {
6643 rajveer 7559
        sb.append(this.awbNumber);
442 rajveer 7560
      }
7561
      first = false;
7562
      if (!first) sb.append(", ");
648 chandransh 7563
      sb.append("providerId:");
7564
      sb.append(this.providerId);
442 rajveer 7565
      first = false;
7566
      sb.append(")");
7567
      return sb.toString();
7568
    }
7569
 
3430 rajveer 7570
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7571
      // check for required fields
7572
    }
7573
 
3430 rajveer 7574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7575
      try {
7576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7577
      } catch (org.apache.thrift.TException te) {
7578
        throw new java.io.IOException(te);
7579
      }
7580
    }
7581
 
7582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7583
      try {
7584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7585
      } catch (org.apache.thrift.TException te) {
7586
        throw new java.io.IOException(te);
7587
      }
7588
    }
7589
 
442 rajveer 7590
  }
7591
 
3430 rajveer 7592
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7594
 
3430 rajveer 7595
    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);
7596
    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 7597
 
3430 rajveer 7598
    private List<AwbUpdate> success; // required
7599
    private LogisticsServiceException se; // required
412 ashish 7600
 
7601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7602
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7603
      SUCCESS((short)0, "success"),
7604
      SE((short)1, "se");
412 ashish 7605
 
7606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7607
 
7608
      static {
7609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7610
          byName.put(field.getFieldName(), field);
7611
        }
7612
      }
7613
 
7614
      /**
7615
       * Find the _Fields constant that matches fieldId, or null if its not found.
7616
       */
7617
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7618
        switch(fieldId) {
7619
          case 0: // SUCCESS
7620
            return SUCCESS;
7621
          case 1: // SE
7622
            return SE;
7623
          default:
7624
            return null;
7625
        }
412 ashish 7626
      }
7627
 
7628
      /**
7629
       * Find the _Fields constant that matches fieldId, throwing an exception
7630
       * if it is not found.
7631
       */
7632
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7633
        _Fields fields = findByThriftId(fieldId);
7634
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7635
        return fields;
7636
      }
7637
 
7638
      /**
7639
       * Find the _Fields constant that matches name, or null if its not found.
7640
       */
7641
      public static _Fields findByName(String name) {
7642
        return byName.get(name);
7643
      }
7644
 
7645
      private final short _thriftId;
7646
      private final String _fieldName;
7647
 
7648
      _Fields(short thriftId, String fieldName) {
7649
        _thriftId = thriftId;
7650
        _fieldName = fieldName;
7651
      }
7652
 
7653
      public short getThriftFieldId() {
7654
        return _thriftId;
7655
      }
7656
 
7657
      public String getFieldName() {
7658
        return _fieldName;
7659
      }
7660
    }
7661
 
7662
    // isset id assignments
7663
 
3430 rajveer 7664
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7665
    static {
3430 rajveer 7666
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7667
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7668
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7669
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7670
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7674
    }
7675
 
7676
    public getShipmentInfo_result() {
7677
    }
7678
 
7679
    public getShipmentInfo_result(
648 chandransh 7680
      List<AwbUpdate> success,
7681
      LogisticsServiceException se)
412 ashish 7682
    {
7683
      this();
7684
      this.success = success;
648 chandransh 7685
      this.se = se;
412 ashish 7686
    }
7687
 
7688
    /**
7689
     * Performs a deep copy on <i>other</i>.
7690
     */
7691
    public getShipmentInfo_result(getShipmentInfo_result other) {
7692
      if (other.isSetSuccess()) {
648 chandransh 7693
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7694
        for (AwbUpdate other_element : other.success) {
7695
          __this__success.add(new AwbUpdate(other_element));
7696
        }
7697
        this.success = __this__success;
412 ashish 7698
      }
648 chandransh 7699
      if (other.isSetSe()) {
7700
        this.se = new LogisticsServiceException(other.se);
7701
      }
412 ashish 7702
    }
7703
 
7704
    public getShipmentInfo_result deepCopy() {
7705
      return new getShipmentInfo_result(this);
7706
    }
7707
 
3430 rajveer 7708
    @Override
7709
    public void clear() {
7710
      this.success = null;
7711
      this.se = null;
412 ashish 7712
    }
7713
 
7714
    public int getSuccessSize() {
7715
      return (this.success == null) ? 0 : this.success.size();
7716
    }
7717
 
648 chandransh 7718
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7719
      return (this.success == null) ? null : this.success.iterator();
7720
    }
7721
 
648 chandransh 7722
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7723
      if (this.success == null) {
648 chandransh 7724
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7725
      }
7726
      this.success.add(elem);
7727
    }
7728
 
648 chandransh 7729
    public List<AwbUpdate> getSuccess() {
412 ashish 7730
      return this.success;
7731
    }
7732
 
3430 rajveer 7733
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7734
      this.success = success;
7735
    }
7736
 
7737
    public void unsetSuccess() {
7738
      this.success = null;
7739
    }
7740
 
3430 rajveer 7741
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7742
    public boolean isSetSuccess() {
7743
      return this.success != null;
7744
    }
7745
 
7746
    public void setSuccessIsSet(boolean value) {
7747
      if (!value) {
7748
        this.success = null;
7749
      }
7750
    }
7751
 
648 chandransh 7752
    public LogisticsServiceException getSe() {
7753
      return this.se;
412 ashish 7754
    }
7755
 
3430 rajveer 7756
    public void setSe(LogisticsServiceException se) {
648 chandransh 7757
      this.se = se;
412 ashish 7758
    }
7759
 
648 chandransh 7760
    public void unsetSe() {
7761
      this.se = null;
412 ashish 7762
    }
7763
 
3430 rajveer 7764
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7765
    public boolean isSetSe() {
7766
      return this.se != null;
412 ashish 7767
    }
7768
 
648 chandransh 7769
    public void setSeIsSet(boolean value) {
7770
      if (!value) {
7771
        this.se = null;
412 ashish 7772
      }
7773
    }
7774
 
7775
    public void setFieldValue(_Fields field, Object value) {
7776
      switch (field) {
648 chandransh 7777
      case SUCCESS:
412 ashish 7778
        if (value == null) {
648 chandransh 7779
          unsetSuccess();
412 ashish 7780
        } else {
648 chandransh 7781
          setSuccess((List<AwbUpdate>)value);
412 ashish 7782
        }
7783
        break;
7784
 
648 chandransh 7785
      case SE:
412 ashish 7786
        if (value == null) {
648 chandransh 7787
          unsetSe();
412 ashish 7788
        } else {
648 chandransh 7789
          setSe((LogisticsServiceException)value);
412 ashish 7790
        }
7791
        break;
7792
 
7793
      }
7794
    }
7795
 
7796
    public Object getFieldValue(_Fields field) {
7797
      switch (field) {
648 chandransh 7798
      case SUCCESS:
7799
        return getSuccess();
412 ashish 7800
 
648 chandransh 7801
      case SE:
7802
        return getSe();
412 ashish 7803
 
7804
      }
7805
      throw new IllegalStateException();
7806
    }
7807
 
3430 rajveer 7808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7809
    public boolean isSet(_Fields field) {
7810
      if (field == null) {
7811
        throw new IllegalArgumentException();
7812
      }
412 ashish 7813
 
7814
      switch (field) {
648 chandransh 7815
      case SUCCESS:
7816
        return isSetSuccess();
7817
      case SE:
7818
        return isSetSe();
412 ashish 7819
      }
7820
      throw new IllegalStateException();
7821
    }
7822
 
7823
    @Override
7824
    public boolean equals(Object that) {
7825
      if (that == null)
7826
        return false;
648 chandransh 7827
      if (that instanceof getShipmentInfo_result)
7828
        return this.equals((getShipmentInfo_result)that);
412 ashish 7829
      return false;
7830
    }
7831
 
648 chandransh 7832
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7833
      if (that == null)
7834
        return false;
7835
 
648 chandransh 7836
      boolean this_present_success = true && this.isSetSuccess();
7837
      boolean that_present_success = true && that.isSetSuccess();
7838
      if (this_present_success || that_present_success) {
7839
        if (!(this_present_success && that_present_success))
412 ashish 7840
          return false;
648 chandransh 7841
        if (!this.success.equals(that.success))
412 ashish 7842
          return false;
7843
      }
7844
 
648 chandransh 7845
      boolean this_present_se = true && this.isSetSe();
7846
      boolean that_present_se = true && that.isSetSe();
7847
      if (this_present_se || that_present_se) {
7848
        if (!(this_present_se && that_present_se))
412 ashish 7849
          return false;
648 chandransh 7850
        if (!this.se.equals(that.se))
412 ashish 7851
          return false;
7852
      }
7853
 
7854
      return true;
7855
    }
7856
 
7857
    @Override
7858
    public int hashCode() {
7859
      return 0;
7860
    }
7861
 
648 chandransh 7862
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7863
      if (!getClass().equals(other.getClass())) {
7864
        return getClass().getName().compareTo(other.getClass().getName());
7865
      }
7866
 
7867
      int lastComparison = 0;
648 chandransh 7868
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7869
 
3430 rajveer 7870
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7871
      if (lastComparison != 0) {
7872
        return lastComparison;
7873
      }
3430 rajveer 7874
      if (isSetSuccess()) {
7875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7876
        if (lastComparison != 0) {
7877
          return lastComparison;
7878
        }
412 ashish 7879
      }
3430 rajveer 7880
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7881
      if (lastComparison != 0) {
7882
        return lastComparison;
7883
      }
3430 rajveer 7884
      if (isSetSe()) {
7885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7886
        if (lastComparison != 0) {
7887
          return lastComparison;
7888
        }
412 ashish 7889
      }
7890
      return 0;
7891
    }
7892
 
3430 rajveer 7893
    public _Fields fieldForId(int fieldId) {
7894
      return _Fields.findByThriftId(fieldId);
7895
    }
7896
 
7897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7898
      org.apache.thrift.protocol.TField field;
412 ashish 7899
      iprot.readStructBegin();
7900
      while (true)
7901
      {
7902
        field = iprot.readFieldBegin();
3430 rajveer 7903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7904
          break;
7905
        }
3430 rajveer 7906
        switch (field.id) {
7907
          case 0: // SUCCESS
7908
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7909
              {
7792 anupam.sin 7910
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7911
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7912
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7913
                {
7792 anupam.sin 7914
                  AwbUpdate _elem10; // required
7915
                  _elem10 = new AwbUpdate();
7916
                  _elem10.read(iprot);
7917
                  this.success.add(_elem10);
412 ashish 7918
                }
3430 rajveer 7919
                iprot.readListEnd();
412 ashish 7920
              }
3430 rajveer 7921
            } else { 
7922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7923
            }
7924
            break;
7925
          case 1: // SE
7926
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7927
              this.se = new LogisticsServiceException();
7928
              this.se.read(iprot);
7929
            } else { 
7930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7931
            }
7932
            break;
7933
          default:
7934
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7935
        }
3430 rajveer 7936
        iprot.readFieldEnd();
412 ashish 7937
      }
7938
      iprot.readStructEnd();
7939
      validate();
7940
    }
7941
 
3430 rajveer 7942
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7943
      oprot.writeStructBegin(STRUCT_DESC);
7944
 
7945
      if (this.isSetSuccess()) {
7946
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7947
        {
3430 rajveer 7948
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7949
          for (AwbUpdate _iter11 : this.success)
412 ashish 7950
          {
7792 anupam.sin 7951
            _iter11.write(oprot);
412 ashish 7952
          }
7953
          oprot.writeListEnd();
7954
        }
7955
        oprot.writeFieldEnd();
648 chandransh 7956
      } else if (this.isSetSe()) {
7957
        oprot.writeFieldBegin(SE_FIELD_DESC);
7958
        this.se.write(oprot);
7959
        oprot.writeFieldEnd();
412 ashish 7960
      }
7961
      oprot.writeFieldStop();
7962
      oprot.writeStructEnd();
7963
    }
7964
 
7965
    @Override
7966
    public String toString() {
648 chandransh 7967
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7968
      boolean first = true;
7969
 
7970
      sb.append("success:");
7971
      if (this.success == null) {
7972
        sb.append("null");
7973
      } else {
7974
        sb.append(this.success);
7975
      }
7976
      first = false;
648 chandransh 7977
      if (!first) sb.append(", ");
7978
      sb.append("se:");
7979
      if (this.se == null) {
7980
        sb.append("null");
7981
      } else {
7982
        sb.append(this.se);
7983
      }
7984
      first = false;
412 ashish 7985
      sb.append(")");
7986
      return sb.toString();
7987
    }
7988
 
3430 rajveer 7989
    public void validate() throws org.apache.thrift.TException {
412 ashish 7990
      // check for required fields
7991
    }
7992
 
3430 rajveer 7993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7994
      try {
7995
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7996
      } catch (org.apache.thrift.TException te) {
7997
        throw new java.io.IOException(te);
7998
      }
7999
    }
8000
 
8001
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8002
      try {
8003
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8004
      } catch (org.apache.thrift.TException te) {
8005
        throw new java.io.IOException(te);
8006
      }
8007
    }
8008
 
412 ashish 8009
  }
8010
 
6643 rajveer 8011
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
8012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
8013
 
8014
    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);
8015
 
8016
    private AwbUpdate update; // required
8017
 
8018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8020
      UPDATE((short)1, "update");
8021
 
8022
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8023
 
8024
      static {
8025
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8026
          byName.put(field.getFieldName(), field);
8027
        }
8028
      }
8029
 
8030
      /**
8031
       * Find the _Fields constant that matches fieldId, or null if its not found.
8032
       */
8033
      public static _Fields findByThriftId(int fieldId) {
8034
        switch(fieldId) {
8035
          case 1: // UPDATE
8036
            return UPDATE;
8037
          default:
8038
            return null;
8039
        }
8040
      }
8041
 
8042
      /**
8043
       * Find the _Fields constant that matches fieldId, throwing an exception
8044
       * if it is not found.
8045
       */
8046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8047
        _Fields fields = findByThriftId(fieldId);
8048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8049
        return fields;
8050
      }
8051
 
8052
      /**
8053
       * Find the _Fields constant that matches name, or null if its not found.
8054
       */
8055
      public static _Fields findByName(String name) {
8056
        return byName.get(name);
8057
      }
8058
 
8059
      private final short _thriftId;
8060
      private final String _fieldName;
8061
 
8062
      _Fields(short thriftId, String fieldName) {
8063
        _thriftId = thriftId;
8064
        _fieldName = fieldName;
8065
      }
8066
 
8067
      public short getThriftFieldId() {
8068
        return _thriftId;
8069
      }
8070
 
8071
      public String getFieldName() {
8072
        return _fieldName;
8073
      }
8074
    }
8075
 
8076
    // isset id assignments
8077
 
8078
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8079
    static {
8080
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8081
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8082
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8083
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8084
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8085
    }
8086
 
8087
    public storeShipmentInfo_args() {
8088
    }
8089
 
8090
    public storeShipmentInfo_args(
8091
      AwbUpdate update)
8092
    {
8093
      this();
8094
      this.update = update;
8095
    }
8096
 
8097
    /**
8098
     * Performs a deep copy on <i>other</i>.
8099
     */
8100
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8101
      if (other.isSetUpdate()) {
8102
        this.update = new AwbUpdate(other.update);
8103
      }
8104
    }
8105
 
8106
    public storeShipmentInfo_args deepCopy() {
8107
      return new storeShipmentInfo_args(this);
8108
    }
8109
 
8110
    @Override
8111
    public void clear() {
8112
      this.update = null;
8113
    }
8114
 
8115
    public AwbUpdate getUpdate() {
8116
      return this.update;
8117
    }
8118
 
8119
    public void setUpdate(AwbUpdate update) {
8120
      this.update = update;
8121
    }
8122
 
8123
    public void unsetUpdate() {
8124
      this.update = null;
8125
    }
8126
 
8127
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8128
    public boolean isSetUpdate() {
8129
      return this.update != null;
8130
    }
8131
 
8132
    public void setUpdateIsSet(boolean value) {
8133
      if (!value) {
8134
        this.update = null;
8135
      }
8136
    }
8137
 
8138
    public void setFieldValue(_Fields field, Object value) {
8139
      switch (field) {
8140
      case UPDATE:
8141
        if (value == null) {
8142
          unsetUpdate();
8143
        } else {
8144
          setUpdate((AwbUpdate)value);
8145
        }
8146
        break;
8147
 
8148
      }
8149
    }
8150
 
8151
    public Object getFieldValue(_Fields field) {
8152
      switch (field) {
8153
      case UPDATE:
8154
        return getUpdate();
8155
 
8156
      }
8157
      throw new IllegalStateException();
8158
    }
8159
 
8160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8161
    public boolean isSet(_Fields field) {
8162
      if (field == null) {
8163
        throw new IllegalArgumentException();
8164
      }
8165
 
8166
      switch (field) {
8167
      case UPDATE:
8168
        return isSetUpdate();
8169
      }
8170
      throw new IllegalStateException();
8171
    }
8172
 
8173
    @Override
8174
    public boolean equals(Object that) {
8175
      if (that == null)
8176
        return false;
8177
      if (that instanceof storeShipmentInfo_args)
8178
        return this.equals((storeShipmentInfo_args)that);
8179
      return false;
8180
    }
8181
 
8182
    public boolean equals(storeShipmentInfo_args that) {
8183
      if (that == null)
8184
        return false;
8185
 
8186
      boolean this_present_update = true && this.isSetUpdate();
8187
      boolean that_present_update = true && that.isSetUpdate();
8188
      if (this_present_update || that_present_update) {
8189
        if (!(this_present_update && that_present_update))
8190
          return false;
8191
        if (!this.update.equals(that.update))
8192
          return false;
8193
      }
8194
 
8195
      return true;
8196
    }
8197
 
8198
    @Override
8199
    public int hashCode() {
8200
      return 0;
8201
    }
8202
 
8203
    public int compareTo(storeShipmentInfo_args other) {
8204
      if (!getClass().equals(other.getClass())) {
8205
        return getClass().getName().compareTo(other.getClass().getName());
8206
      }
8207
 
8208
      int lastComparison = 0;
8209
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8210
 
8211
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8212
      if (lastComparison != 0) {
8213
        return lastComparison;
8214
      }
8215
      if (isSetUpdate()) {
8216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8217
        if (lastComparison != 0) {
8218
          return lastComparison;
8219
        }
8220
      }
8221
      return 0;
8222
    }
8223
 
8224
    public _Fields fieldForId(int fieldId) {
8225
      return _Fields.findByThriftId(fieldId);
8226
    }
8227
 
8228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8229
      org.apache.thrift.protocol.TField field;
8230
      iprot.readStructBegin();
8231
      while (true)
8232
      {
8233
        field = iprot.readFieldBegin();
8234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8235
          break;
8236
        }
8237
        switch (field.id) {
8238
          case 1: // UPDATE
8239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8240
              this.update = new AwbUpdate();
8241
              this.update.read(iprot);
8242
            } else { 
8243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8244
            }
8245
            break;
8246
          default:
8247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8248
        }
8249
        iprot.readFieldEnd();
8250
      }
8251
      iprot.readStructEnd();
8252
      validate();
8253
    }
8254
 
8255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8256
      validate();
8257
 
8258
      oprot.writeStructBegin(STRUCT_DESC);
8259
      if (this.update != null) {
8260
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8261
        this.update.write(oprot);
8262
        oprot.writeFieldEnd();
8263
      }
8264
      oprot.writeFieldStop();
8265
      oprot.writeStructEnd();
8266
    }
8267
 
8268
    @Override
8269
    public String toString() {
8270
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8271
      boolean first = true;
8272
 
8273
      sb.append("update:");
8274
      if (this.update == null) {
8275
        sb.append("null");
8276
      } else {
8277
        sb.append(this.update);
8278
      }
8279
      first = false;
8280
      sb.append(")");
8281
      return sb.toString();
8282
    }
8283
 
8284
    public void validate() throws org.apache.thrift.TException {
8285
      // check for required fields
8286
    }
8287
 
8288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8289
      try {
8290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8291
      } catch (org.apache.thrift.TException te) {
8292
        throw new java.io.IOException(te);
8293
      }
8294
    }
8295
 
8296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8297
      try {
8298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8299
      } catch (org.apache.thrift.TException te) {
8300
        throw new java.io.IOException(te);
8301
      }
8302
    }
8303
 
8304
  }
8305
 
8306
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8308
 
8309
    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);
8310
 
8311
    private LogisticsServiceException se; // required
8312
 
8313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8315
      SE((short)1, "se");
8316
 
8317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8318
 
8319
      static {
8320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8321
          byName.put(field.getFieldName(), field);
8322
        }
8323
      }
8324
 
8325
      /**
8326
       * Find the _Fields constant that matches fieldId, or null if its not found.
8327
       */
8328
      public static _Fields findByThriftId(int fieldId) {
8329
        switch(fieldId) {
8330
          case 1: // SE
8331
            return SE;
8332
          default:
8333
            return null;
8334
        }
8335
      }
8336
 
8337
      /**
8338
       * Find the _Fields constant that matches fieldId, throwing an exception
8339
       * if it is not found.
8340
       */
8341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8342
        _Fields fields = findByThriftId(fieldId);
8343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8344
        return fields;
8345
      }
8346
 
8347
      /**
8348
       * Find the _Fields constant that matches name, or null if its not found.
8349
       */
8350
      public static _Fields findByName(String name) {
8351
        return byName.get(name);
8352
      }
8353
 
8354
      private final short _thriftId;
8355
      private final String _fieldName;
8356
 
8357
      _Fields(short thriftId, String fieldName) {
8358
        _thriftId = thriftId;
8359
        _fieldName = fieldName;
8360
      }
8361
 
8362
      public short getThriftFieldId() {
8363
        return _thriftId;
8364
      }
8365
 
8366
      public String getFieldName() {
8367
        return _fieldName;
8368
      }
8369
    }
8370
 
8371
    // isset id assignments
8372
 
8373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8374
    static {
8375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8376
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8377
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8378
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8379
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8380
    }
8381
 
8382
    public storeShipmentInfo_result() {
8383
    }
8384
 
8385
    public storeShipmentInfo_result(
8386
      LogisticsServiceException se)
8387
    {
8388
      this();
8389
      this.se = se;
8390
    }
8391
 
8392
    /**
8393
     * Performs a deep copy on <i>other</i>.
8394
     */
8395
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8396
      if (other.isSetSe()) {
8397
        this.se = new LogisticsServiceException(other.se);
8398
      }
8399
    }
8400
 
8401
    public storeShipmentInfo_result deepCopy() {
8402
      return new storeShipmentInfo_result(this);
8403
    }
8404
 
8405
    @Override
8406
    public void clear() {
8407
      this.se = null;
8408
    }
8409
 
8410
    public LogisticsServiceException getSe() {
8411
      return this.se;
8412
    }
8413
 
8414
    public void setSe(LogisticsServiceException se) {
8415
      this.se = se;
8416
    }
8417
 
8418
    public void unsetSe() {
8419
      this.se = null;
8420
    }
8421
 
8422
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8423
    public boolean isSetSe() {
8424
      return this.se != null;
8425
    }
8426
 
8427
    public void setSeIsSet(boolean value) {
8428
      if (!value) {
8429
        this.se = null;
8430
      }
8431
    }
8432
 
8433
    public void setFieldValue(_Fields field, Object value) {
8434
      switch (field) {
8435
      case SE:
8436
        if (value == null) {
8437
          unsetSe();
8438
        } else {
8439
          setSe((LogisticsServiceException)value);
8440
        }
8441
        break;
8442
 
8443
      }
8444
    }
8445
 
8446
    public Object getFieldValue(_Fields field) {
8447
      switch (field) {
8448
      case SE:
8449
        return getSe();
8450
 
8451
      }
8452
      throw new IllegalStateException();
8453
    }
8454
 
8455
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8456
    public boolean isSet(_Fields field) {
8457
      if (field == null) {
8458
        throw new IllegalArgumentException();
8459
      }
8460
 
8461
      switch (field) {
8462
      case SE:
8463
        return isSetSe();
8464
      }
8465
      throw new IllegalStateException();
8466
    }
8467
 
8468
    @Override
8469
    public boolean equals(Object that) {
8470
      if (that == null)
8471
        return false;
8472
      if (that instanceof storeShipmentInfo_result)
8473
        return this.equals((storeShipmentInfo_result)that);
8474
      return false;
8475
    }
8476
 
8477
    public boolean equals(storeShipmentInfo_result that) {
8478
      if (that == null)
8479
        return false;
8480
 
8481
      boolean this_present_se = true && this.isSetSe();
8482
      boolean that_present_se = true && that.isSetSe();
8483
      if (this_present_se || that_present_se) {
8484
        if (!(this_present_se && that_present_se))
8485
          return false;
8486
        if (!this.se.equals(that.se))
8487
          return false;
8488
      }
8489
 
8490
      return true;
8491
    }
8492
 
8493
    @Override
8494
    public int hashCode() {
8495
      return 0;
8496
    }
8497
 
8498
    public int compareTo(storeShipmentInfo_result other) {
8499
      if (!getClass().equals(other.getClass())) {
8500
        return getClass().getName().compareTo(other.getClass().getName());
8501
      }
8502
 
8503
      int lastComparison = 0;
8504
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8505
 
8506
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8507
      if (lastComparison != 0) {
8508
        return lastComparison;
8509
      }
8510
      if (isSetSe()) {
8511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8512
        if (lastComparison != 0) {
8513
          return lastComparison;
8514
        }
8515
      }
8516
      return 0;
8517
    }
8518
 
8519
    public _Fields fieldForId(int fieldId) {
8520
      return _Fields.findByThriftId(fieldId);
8521
    }
8522
 
8523
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8524
      org.apache.thrift.protocol.TField field;
8525
      iprot.readStructBegin();
8526
      while (true)
8527
      {
8528
        field = iprot.readFieldBegin();
8529
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8530
          break;
8531
        }
8532
        switch (field.id) {
8533
          case 1: // SE
8534
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8535
              this.se = new LogisticsServiceException();
8536
              this.se.read(iprot);
8537
            } else { 
8538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8539
            }
8540
            break;
8541
          default:
8542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8543
        }
8544
        iprot.readFieldEnd();
8545
      }
8546
      iprot.readStructEnd();
8547
      validate();
8548
    }
8549
 
8550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8551
      oprot.writeStructBegin(STRUCT_DESC);
8552
 
8553
      if (this.isSetSe()) {
8554
        oprot.writeFieldBegin(SE_FIELD_DESC);
8555
        this.se.write(oprot);
8556
        oprot.writeFieldEnd();
8557
      }
8558
      oprot.writeFieldStop();
8559
      oprot.writeStructEnd();
8560
    }
8561
 
8562
    @Override
8563
    public String toString() {
8564
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8565
      boolean first = true;
8566
 
8567
      sb.append("se:");
8568
      if (this.se == null) {
8569
        sb.append("null");
8570
      } else {
8571
        sb.append(this.se);
8572
      }
8573
      first = false;
8574
      sb.append(")");
8575
      return sb.toString();
8576
    }
8577
 
8578
    public void validate() throws org.apache.thrift.TException {
8579
      // check for required fields
8580
    }
8581
 
8582
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8583
      try {
8584
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8585
      } catch (org.apache.thrift.TException te) {
8586
        throw new java.io.IOException(te);
8587
      }
8588
    }
8589
 
8590
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8591
      try {
8592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8593
      } catch (org.apache.thrift.TException te) {
8594
        throw new java.io.IOException(te);
8595
      }
8596
    }
8597
 
8598
  }
8599
 
3430 rajveer 8600
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8602
 
3430 rajveer 8603
    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);
8604
    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 8605
 
3430 rajveer 8606
    private long providerId; // required
8607
    private String pinCode; // required
730 chandransh 8608
 
8609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8611
      PROVIDER_ID((short)1, "providerId"),
8612
      PIN_CODE((short)2, "pinCode");
8613
 
8614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8615
 
8616
      static {
8617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8618
          byName.put(field.getFieldName(), field);
8619
        }
8620
      }
8621
 
8622
      /**
8623
       * Find the _Fields constant that matches fieldId, or null if its not found.
8624
       */
8625
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8626
        switch(fieldId) {
8627
          case 1: // PROVIDER_ID
8628
            return PROVIDER_ID;
8629
          case 2: // PIN_CODE
8630
            return PIN_CODE;
8631
          default:
8632
            return null;
8633
        }
730 chandransh 8634
      }
8635
 
8636
      /**
8637
       * Find the _Fields constant that matches fieldId, throwing an exception
8638
       * if it is not found.
8639
       */
8640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8641
        _Fields fields = findByThriftId(fieldId);
8642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8643
        return fields;
8644
      }
8645
 
8646
      /**
8647
       * Find the _Fields constant that matches name, or null if its not found.
8648
       */
8649
      public static _Fields findByName(String name) {
8650
        return byName.get(name);
8651
      }
8652
 
8653
      private final short _thriftId;
8654
      private final String _fieldName;
8655
 
8656
      _Fields(short thriftId, String fieldName) {
8657
        _thriftId = thriftId;
8658
        _fieldName = fieldName;
8659
      }
8660
 
8661
      public short getThriftFieldId() {
8662
        return _thriftId;
8663
      }
8664
 
8665
      public String getFieldName() {
8666
        return _fieldName;
8667
      }
8668
    }
8669
 
8670
    // isset id assignments
8671
    private static final int __PROVIDERID_ISSET_ID = 0;
8672
    private BitSet __isset_bit_vector = new BitSet(1);
8673
 
3430 rajveer 8674
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8675
    static {
3430 rajveer 8676
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8677
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8678
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8679
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8680
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8681
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8682
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8683
    }
8684
 
8685
    public getDestinationCode_args() {
8686
    }
8687
 
8688
    public getDestinationCode_args(
8689
      long providerId,
8690
      String pinCode)
8691
    {
8692
      this();
8693
      this.providerId = providerId;
8694
      setProviderIdIsSet(true);
8695
      this.pinCode = pinCode;
8696
    }
8697
 
8698
    /**
8699
     * Performs a deep copy on <i>other</i>.
8700
     */
8701
    public getDestinationCode_args(getDestinationCode_args other) {
8702
      __isset_bit_vector.clear();
8703
      __isset_bit_vector.or(other.__isset_bit_vector);
8704
      this.providerId = other.providerId;
8705
      if (other.isSetPinCode()) {
8706
        this.pinCode = other.pinCode;
8707
      }
8708
    }
8709
 
8710
    public getDestinationCode_args deepCopy() {
8711
      return new getDestinationCode_args(this);
8712
    }
8713
 
3430 rajveer 8714
    @Override
8715
    public void clear() {
8716
      setProviderIdIsSet(false);
8717
      this.providerId = 0;
8718
      this.pinCode = null;
730 chandransh 8719
    }
8720
 
8721
    public long getProviderId() {
8722
      return this.providerId;
8723
    }
8724
 
3430 rajveer 8725
    public void setProviderId(long providerId) {
730 chandransh 8726
      this.providerId = providerId;
8727
      setProviderIdIsSet(true);
8728
    }
8729
 
8730
    public void unsetProviderId() {
8731
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8732
    }
8733
 
3430 rajveer 8734
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8735
    public boolean isSetProviderId() {
8736
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8737
    }
8738
 
8739
    public void setProviderIdIsSet(boolean value) {
8740
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8741
    }
8742
 
8743
    public String getPinCode() {
8744
      return this.pinCode;
8745
    }
8746
 
3430 rajveer 8747
    public void setPinCode(String pinCode) {
730 chandransh 8748
      this.pinCode = pinCode;
8749
    }
8750
 
8751
    public void unsetPinCode() {
8752
      this.pinCode = null;
8753
    }
8754
 
3430 rajveer 8755
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8756
    public boolean isSetPinCode() {
8757
      return this.pinCode != null;
8758
    }
8759
 
8760
    public void setPinCodeIsSet(boolean value) {
8761
      if (!value) {
8762
        this.pinCode = null;
8763
      }
8764
    }
8765
 
8766
    public void setFieldValue(_Fields field, Object value) {
8767
      switch (field) {
8768
      case PROVIDER_ID:
8769
        if (value == null) {
8770
          unsetProviderId();
8771
        } else {
8772
          setProviderId((Long)value);
8773
        }
8774
        break;
8775
 
8776
      case PIN_CODE:
8777
        if (value == null) {
8778
          unsetPinCode();
8779
        } else {
8780
          setPinCode((String)value);
8781
        }
8782
        break;
8783
 
8784
      }
8785
    }
8786
 
8787
    public Object getFieldValue(_Fields field) {
8788
      switch (field) {
8789
      case PROVIDER_ID:
3430 rajveer 8790
        return Long.valueOf(getProviderId());
730 chandransh 8791
 
8792
      case PIN_CODE:
8793
        return getPinCode();
8794
 
8795
      }
8796
      throw new IllegalStateException();
8797
    }
8798
 
3430 rajveer 8799
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8800
    public boolean isSet(_Fields field) {
8801
      if (field == null) {
8802
        throw new IllegalArgumentException();
8803
      }
730 chandransh 8804
 
8805
      switch (field) {
8806
      case PROVIDER_ID:
8807
        return isSetProviderId();
8808
      case PIN_CODE:
8809
        return isSetPinCode();
8810
      }
8811
      throw new IllegalStateException();
8812
    }
8813
 
8814
    @Override
8815
    public boolean equals(Object that) {
8816
      if (that == null)
8817
        return false;
8818
      if (that instanceof getDestinationCode_args)
8819
        return this.equals((getDestinationCode_args)that);
8820
      return false;
8821
    }
8822
 
8823
    public boolean equals(getDestinationCode_args that) {
8824
      if (that == null)
8825
        return false;
8826
 
8827
      boolean this_present_providerId = true;
8828
      boolean that_present_providerId = true;
8829
      if (this_present_providerId || that_present_providerId) {
8830
        if (!(this_present_providerId && that_present_providerId))
8831
          return false;
8832
        if (this.providerId != that.providerId)
8833
          return false;
8834
      }
8835
 
8836
      boolean this_present_pinCode = true && this.isSetPinCode();
8837
      boolean that_present_pinCode = true && that.isSetPinCode();
8838
      if (this_present_pinCode || that_present_pinCode) {
8839
        if (!(this_present_pinCode && that_present_pinCode))
8840
          return false;
8841
        if (!this.pinCode.equals(that.pinCode))
8842
          return false;
8843
      }
8844
 
8845
      return true;
8846
    }
8847
 
8848
    @Override
8849
    public int hashCode() {
8850
      return 0;
8851
    }
8852
 
8853
    public int compareTo(getDestinationCode_args other) {
8854
      if (!getClass().equals(other.getClass())) {
8855
        return getClass().getName().compareTo(other.getClass().getName());
8856
      }
8857
 
8858
      int lastComparison = 0;
8859
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8860
 
3430 rajveer 8861
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8862
      if (lastComparison != 0) {
8863
        return lastComparison;
8864
      }
3430 rajveer 8865
      if (isSetProviderId()) {
8866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8867
        if (lastComparison != 0) {
8868
          return lastComparison;
8869
        }
730 chandransh 8870
      }
3430 rajveer 8871
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8872
      if (lastComparison != 0) {
8873
        return lastComparison;
8874
      }
3430 rajveer 8875
      if (isSetPinCode()) {
8876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8877
        if (lastComparison != 0) {
8878
          return lastComparison;
8879
        }
730 chandransh 8880
      }
8881
      return 0;
8882
    }
8883
 
3430 rajveer 8884
    public _Fields fieldForId(int fieldId) {
8885
      return _Fields.findByThriftId(fieldId);
8886
    }
8887
 
8888
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8889
      org.apache.thrift.protocol.TField field;
730 chandransh 8890
      iprot.readStructBegin();
8891
      while (true)
8892
      {
8893
        field = iprot.readFieldBegin();
3430 rajveer 8894
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8895
          break;
8896
        }
3430 rajveer 8897
        switch (field.id) {
8898
          case 1: // PROVIDER_ID
8899
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8900
              this.providerId = iprot.readI64();
8901
              setProviderIdIsSet(true);
8902
            } else { 
8903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8904
            }
8905
            break;
8906
          case 2: // PIN_CODE
8907
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8908
              this.pinCode = iprot.readString();
8909
            } else { 
8910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8911
            }
8912
            break;
8913
          default:
8914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8915
        }
3430 rajveer 8916
        iprot.readFieldEnd();
730 chandransh 8917
      }
8918
      iprot.readStructEnd();
8919
      validate();
8920
    }
8921
 
3430 rajveer 8922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8923
      validate();
8924
 
8925
      oprot.writeStructBegin(STRUCT_DESC);
8926
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8927
      oprot.writeI64(this.providerId);
8928
      oprot.writeFieldEnd();
8929
      if (this.pinCode != null) {
8930
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8931
        oprot.writeString(this.pinCode);
8932
        oprot.writeFieldEnd();
8933
      }
8934
      oprot.writeFieldStop();
8935
      oprot.writeStructEnd();
8936
    }
8937
 
8938
    @Override
8939
    public String toString() {
8940
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8941
      boolean first = true;
8942
 
8943
      sb.append("providerId:");
8944
      sb.append(this.providerId);
8945
      first = false;
8946
      if (!first) sb.append(", ");
8947
      sb.append("pinCode:");
8948
      if (this.pinCode == null) {
8949
        sb.append("null");
8950
      } else {
8951
        sb.append(this.pinCode);
8952
      }
8953
      first = false;
8954
      sb.append(")");
8955
      return sb.toString();
8956
    }
8957
 
3430 rajveer 8958
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8959
      // check for required fields
8960
    }
8961
 
3430 rajveer 8962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8963
      try {
8964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8965
      } catch (org.apache.thrift.TException te) {
8966
        throw new java.io.IOException(te);
8967
      }
8968
    }
8969
 
8970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8971
      try {
8972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8973
      } catch (org.apache.thrift.TException te) {
8974
        throw new java.io.IOException(te);
8975
      }
8976
    }
8977
 
730 chandransh 8978
  }
8979
 
3430 rajveer 8980
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8982
 
3430 rajveer 8983
    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);
8984
    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 8985
 
3430 rajveer 8986
    private String success; // required
8987
    private LogisticsServiceException se; // required
730 chandransh 8988
 
8989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8991
      SUCCESS((short)0, "success"),
8992
      SE((short)1, "se");
8993
 
8994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8995
 
8996
      static {
8997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8998
          byName.put(field.getFieldName(), field);
8999
        }
9000
      }
9001
 
9002
      /**
9003
       * Find the _Fields constant that matches fieldId, or null if its not found.
9004
       */
9005
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9006
        switch(fieldId) {
9007
          case 0: // SUCCESS
9008
            return SUCCESS;
9009
          case 1: // SE
9010
            return SE;
9011
          default:
9012
            return null;
9013
        }
730 chandransh 9014
      }
9015
 
9016
      /**
9017
       * Find the _Fields constant that matches fieldId, throwing an exception
9018
       * if it is not found.
9019
       */
9020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9021
        _Fields fields = findByThriftId(fieldId);
9022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9023
        return fields;
9024
      }
9025
 
9026
      /**
9027
       * Find the _Fields constant that matches name, or null if its not found.
9028
       */
9029
      public static _Fields findByName(String name) {
9030
        return byName.get(name);
9031
      }
9032
 
9033
      private final short _thriftId;
9034
      private final String _fieldName;
9035
 
9036
      _Fields(short thriftId, String fieldName) {
9037
        _thriftId = thriftId;
9038
        _fieldName = fieldName;
9039
      }
9040
 
9041
      public short getThriftFieldId() {
9042
        return _thriftId;
9043
      }
9044
 
9045
      public String getFieldName() {
9046
        return _fieldName;
9047
      }
9048
    }
9049
 
9050
    // isset id assignments
9051
 
3430 rajveer 9052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 9053
    static {
3430 rajveer 9054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9057
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 9061
    }
9062
 
9063
    public getDestinationCode_result() {
9064
    }
9065
 
9066
    public getDestinationCode_result(
9067
      String success,
9068
      LogisticsServiceException se)
9069
    {
9070
      this();
9071
      this.success = success;
9072
      this.se = se;
9073
    }
9074
 
9075
    /**
9076
     * Performs a deep copy on <i>other</i>.
9077
     */
9078
    public getDestinationCode_result(getDestinationCode_result other) {
9079
      if (other.isSetSuccess()) {
9080
        this.success = other.success;
9081
      }
9082
      if (other.isSetSe()) {
9083
        this.se = new LogisticsServiceException(other.se);
9084
      }
9085
    }
9086
 
9087
    public getDestinationCode_result deepCopy() {
9088
      return new getDestinationCode_result(this);
9089
    }
9090
 
3430 rajveer 9091
    @Override
9092
    public void clear() {
9093
      this.success = null;
9094
      this.se = null;
730 chandransh 9095
    }
9096
 
9097
    public String getSuccess() {
9098
      return this.success;
9099
    }
9100
 
3430 rajveer 9101
    public void setSuccess(String success) {
730 chandransh 9102
      this.success = success;
9103
    }
9104
 
9105
    public void unsetSuccess() {
9106
      this.success = null;
9107
    }
9108
 
3430 rajveer 9109
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9110
    public boolean isSetSuccess() {
9111
      return this.success != null;
9112
    }
9113
 
9114
    public void setSuccessIsSet(boolean value) {
9115
      if (!value) {
9116
        this.success = null;
9117
      }
9118
    }
9119
 
9120
    public LogisticsServiceException getSe() {
9121
      return this.se;
9122
    }
9123
 
3430 rajveer 9124
    public void setSe(LogisticsServiceException se) {
730 chandransh 9125
      this.se = se;
9126
    }
9127
 
9128
    public void unsetSe() {
9129
      this.se = null;
9130
    }
9131
 
3430 rajveer 9132
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9133
    public boolean isSetSe() {
9134
      return this.se != null;
9135
    }
9136
 
9137
    public void setSeIsSet(boolean value) {
9138
      if (!value) {
9139
        this.se = null;
9140
      }
9141
    }
9142
 
9143
    public void setFieldValue(_Fields field, Object value) {
9144
      switch (field) {
9145
      case SUCCESS:
9146
        if (value == null) {
9147
          unsetSuccess();
9148
        } else {
9149
          setSuccess((String)value);
9150
        }
9151
        break;
9152
 
9153
      case SE:
9154
        if (value == null) {
9155
          unsetSe();
9156
        } else {
9157
          setSe((LogisticsServiceException)value);
9158
        }
9159
        break;
9160
 
9161
      }
9162
    }
9163
 
9164
    public Object getFieldValue(_Fields field) {
9165
      switch (field) {
9166
      case SUCCESS:
9167
        return getSuccess();
9168
 
9169
      case SE:
9170
        return getSe();
9171
 
9172
      }
9173
      throw new IllegalStateException();
9174
    }
9175
 
3430 rajveer 9176
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9177
    public boolean isSet(_Fields field) {
9178
      if (field == null) {
9179
        throw new IllegalArgumentException();
9180
      }
730 chandransh 9181
 
9182
      switch (field) {
9183
      case SUCCESS:
9184
        return isSetSuccess();
9185
      case SE:
9186
        return isSetSe();
9187
      }
9188
      throw new IllegalStateException();
9189
    }
9190
 
9191
    @Override
9192
    public boolean equals(Object that) {
9193
      if (that == null)
9194
        return false;
9195
      if (that instanceof getDestinationCode_result)
9196
        return this.equals((getDestinationCode_result)that);
9197
      return false;
9198
    }
9199
 
9200
    public boolean equals(getDestinationCode_result that) {
9201
      if (that == null)
9202
        return false;
9203
 
9204
      boolean this_present_success = true && this.isSetSuccess();
9205
      boolean that_present_success = true && that.isSetSuccess();
9206
      if (this_present_success || that_present_success) {
9207
        if (!(this_present_success && that_present_success))
9208
          return false;
9209
        if (!this.success.equals(that.success))
9210
          return false;
9211
      }
9212
 
9213
      boolean this_present_se = true && this.isSetSe();
9214
      boolean that_present_se = true && that.isSetSe();
9215
      if (this_present_se || that_present_se) {
9216
        if (!(this_present_se && that_present_se))
9217
          return false;
9218
        if (!this.se.equals(that.se))
9219
          return false;
9220
      }
9221
 
9222
      return true;
9223
    }
9224
 
9225
    @Override
9226
    public int hashCode() {
9227
      return 0;
9228
    }
9229
 
9230
    public int compareTo(getDestinationCode_result other) {
9231
      if (!getClass().equals(other.getClass())) {
9232
        return getClass().getName().compareTo(other.getClass().getName());
9233
      }
9234
 
9235
      int lastComparison = 0;
9236
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9237
 
3430 rajveer 9238
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9239
      if (lastComparison != 0) {
9240
        return lastComparison;
9241
      }
3430 rajveer 9242
      if (isSetSuccess()) {
9243
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9244
        if (lastComparison != 0) {
9245
          return lastComparison;
9246
        }
730 chandransh 9247
      }
3430 rajveer 9248
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9249
      if (lastComparison != 0) {
9250
        return lastComparison;
9251
      }
3430 rajveer 9252
      if (isSetSe()) {
9253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9254
        if (lastComparison != 0) {
9255
          return lastComparison;
9256
        }
730 chandransh 9257
      }
9258
      return 0;
9259
    }
9260
 
3430 rajveer 9261
    public _Fields fieldForId(int fieldId) {
9262
      return _Fields.findByThriftId(fieldId);
9263
    }
9264
 
9265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9266
      org.apache.thrift.protocol.TField field;
730 chandransh 9267
      iprot.readStructBegin();
9268
      while (true)
9269
      {
9270
        field = iprot.readFieldBegin();
3430 rajveer 9271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9272
          break;
9273
        }
3430 rajveer 9274
        switch (field.id) {
9275
          case 0: // SUCCESS
9276
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9277
              this.success = iprot.readString();
9278
            } else { 
9279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9280
            }
9281
            break;
9282
          case 1: // SE
9283
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9284
              this.se = new LogisticsServiceException();
9285
              this.se.read(iprot);
9286
            } else { 
9287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9288
            }
9289
            break;
9290
          default:
9291
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9292
        }
3430 rajveer 9293
        iprot.readFieldEnd();
730 chandransh 9294
      }
9295
      iprot.readStructEnd();
9296
      validate();
9297
    }
9298
 
3430 rajveer 9299
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9300
      oprot.writeStructBegin(STRUCT_DESC);
9301
 
9302
      if (this.isSetSuccess()) {
9303
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9304
        oprot.writeString(this.success);
9305
        oprot.writeFieldEnd();
9306
      } else if (this.isSetSe()) {
9307
        oprot.writeFieldBegin(SE_FIELD_DESC);
9308
        this.se.write(oprot);
9309
        oprot.writeFieldEnd();
9310
      }
9311
      oprot.writeFieldStop();
9312
      oprot.writeStructEnd();
9313
    }
9314
 
9315
    @Override
9316
    public String toString() {
9317
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9318
      boolean first = true;
9319
 
9320
      sb.append("success:");
9321
      if (this.success == null) {
9322
        sb.append("null");
9323
      } else {
9324
        sb.append(this.success);
9325
      }
9326
      first = false;
9327
      if (!first) sb.append(", ");
9328
      sb.append("se:");
9329
      if (this.se == null) {
9330
        sb.append("null");
9331
      } else {
9332
        sb.append(this.se);
9333
      }
9334
      first = false;
9335
      sb.append(")");
9336
      return sb.toString();
9337
    }
9338
 
3430 rajveer 9339
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9340
      // check for required fields
9341
    }
9342
 
3430 rajveer 9343
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9344
      try {
9345
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9346
      } catch (org.apache.thrift.TException te) {
9347
        throw new java.io.IOException(te);
9348
      }
9349
    }
9350
 
9351
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9352
      try {
9353
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9354
      } catch (org.apache.thrift.TException te) {
9355
        throw new java.io.IOException(te);
9356
      }
9357
    }
9358
 
730 chandransh 9359
  }
9360
 
3430 rajveer 9361
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9362
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9363
 
3430 rajveer 9364
    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);
9365
    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 9366
 
3430 rajveer 9367
    private long providerId; // required
9368
    private String type; // required
1139 chandransh 9369
 
9370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9371
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9372
      PROVIDER_ID((short)1, "providerId"),
9373
      TYPE((short)2, "type");
1139 chandransh 9374
 
9375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9376
 
9377
      static {
9378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9379
          byName.put(field.getFieldName(), field);
9380
        }
9381
      }
9382
 
9383
      /**
9384
       * Find the _Fields constant that matches fieldId, or null if its not found.
9385
       */
9386
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9387
        switch(fieldId) {
9388
          case 1: // PROVIDER_ID
9389
            return PROVIDER_ID;
9390
          case 2: // TYPE
9391
            return TYPE;
9392
          default:
9393
            return null;
9394
        }
1139 chandransh 9395
      }
9396
 
9397
      /**
9398
       * Find the _Fields constant that matches fieldId, throwing an exception
9399
       * if it is not found.
9400
       */
9401
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9402
        _Fields fields = findByThriftId(fieldId);
9403
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9404
        return fields;
9405
      }
9406
 
9407
      /**
9408
       * Find the _Fields constant that matches name, or null if its not found.
9409
       */
9410
      public static _Fields findByName(String name) {
9411
        return byName.get(name);
9412
      }
9413
 
9414
      private final short _thriftId;
9415
      private final String _fieldName;
9416
 
9417
      _Fields(short thriftId, String fieldName) {
9418
        _thriftId = thriftId;
9419
        _fieldName = fieldName;
9420
      }
9421
 
9422
      public short getThriftFieldId() {
9423
        return _thriftId;
9424
      }
9425
 
9426
      public String getFieldName() {
9427
        return _fieldName;
9428
      }
9429
    }
9430
 
9431
    // isset id assignments
9432
    private static final int __PROVIDERID_ISSET_ID = 0;
9433
    private BitSet __isset_bit_vector = new BitSet(1);
9434
 
3430 rajveer 9435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9436
    static {
3430 rajveer 9437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9438
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9439
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9440
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9441
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9442
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9443
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9444
    }
9445
 
9446
    public getFreeAwbCount_args() {
9447
    }
9448
 
9449
    public getFreeAwbCount_args(
3103 chandransh 9450
      long providerId,
9451
      String type)
1139 chandransh 9452
    {
9453
      this();
9454
      this.providerId = providerId;
9455
      setProviderIdIsSet(true);
3103 chandransh 9456
      this.type = type;
1139 chandransh 9457
    }
9458
 
9459
    /**
9460
     * Performs a deep copy on <i>other</i>.
9461
     */
9462
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9463
      __isset_bit_vector.clear();
9464
      __isset_bit_vector.or(other.__isset_bit_vector);
9465
      this.providerId = other.providerId;
3103 chandransh 9466
      if (other.isSetType()) {
9467
        this.type = other.type;
9468
      }
1139 chandransh 9469
    }
9470
 
9471
    public getFreeAwbCount_args deepCopy() {
9472
      return new getFreeAwbCount_args(this);
9473
    }
9474
 
3430 rajveer 9475
    @Override
9476
    public void clear() {
9477
      setProviderIdIsSet(false);
9478
      this.providerId = 0;
9479
      this.type = null;
1139 chandransh 9480
    }
9481
 
9482
    public long getProviderId() {
9483
      return this.providerId;
9484
    }
9485
 
3430 rajveer 9486
    public void setProviderId(long providerId) {
1139 chandransh 9487
      this.providerId = providerId;
9488
      setProviderIdIsSet(true);
9489
    }
9490
 
9491
    public void unsetProviderId() {
9492
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9493
    }
9494
 
3430 rajveer 9495
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9496
    public boolean isSetProviderId() {
9497
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9498
    }
9499
 
9500
    public void setProviderIdIsSet(boolean value) {
9501
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9502
    }
9503
 
3103 chandransh 9504
    public String getType() {
9505
      return this.type;
9506
    }
9507
 
3430 rajveer 9508
    public void setType(String type) {
3103 chandransh 9509
      this.type = type;
9510
    }
9511
 
9512
    public void unsetType() {
9513
      this.type = null;
9514
    }
9515
 
3430 rajveer 9516
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9517
    public boolean isSetType() {
9518
      return this.type != null;
9519
    }
9520
 
9521
    public void setTypeIsSet(boolean value) {
9522
      if (!value) {
9523
        this.type = null;
9524
      }
9525
    }
9526
 
1139 chandransh 9527
    public void setFieldValue(_Fields field, Object value) {
9528
      switch (field) {
9529
      case PROVIDER_ID:
9530
        if (value == null) {
9531
          unsetProviderId();
9532
        } else {
9533
          setProviderId((Long)value);
9534
        }
9535
        break;
9536
 
3103 chandransh 9537
      case TYPE:
9538
        if (value == null) {
9539
          unsetType();
9540
        } else {
9541
          setType((String)value);
9542
        }
9543
        break;
9544
 
1139 chandransh 9545
      }
9546
    }
9547
 
9548
    public Object getFieldValue(_Fields field) {
9549
      switch (field) {
9550
      case PROVIDER_ID:
3430 rajveer 9551
        return Long.valueOf(getProviderId());
1139 chandransh 9552
 
3103 chandransh 9553
      case TYPE:
9554
        return getType();
9555
 
1139 chandransh 9556
      }
9557
      throw new IllegalStateException();
9558
    }
9559
 
3430 rajveer 9560
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9561
    public boolean isSet(_Fields field) {
9562
      if (field == null) {
9563
        throw new IllegalArgumentException();
9564
      }
1139 chandransh 9565
 
9566
      switch (field) {
9567
      case PROVIDER_ID:
9568
        return isSetProviderId();
3103 chandransh 9569
      case TYPE:
9570
        return isSetType();
1139 chandransh 9571
      }
9572
      throw new IllegalStateException();
9573
    }
9574
 
9575
    @Override
9576
    public boolean equals(Object that) {
9577
      if (that == null)
9578
        return false;
9579
      if (that instanceof getFreeAwbCount_args)
9580
        return this.equals((getFreeAwbCount_args)that);
9581
      return false;
9582
    }
9583
 
9584
    public boolean equals(getFreeAwbCount_args that) {
9585
      if (that == null)
9586
        return false;
9587
 
9588
      boolean this_present_providerId = true;
9589
      boolean that_present_providerId = true;
9590
      if (this_present_providerId || that_present_providerId) {
9591
        if (!(this_present_providerId && that_present_providerId))
9592
          return false;
9593
        if (this.providerId != that.providerId)
9594
          return false;
9595
      }
9596
 
3103 chandransh 9597
      boolean this_present_type = true && this.isSetType();
9598
      boolean that_present_type = true && that.isSetType();
9599
      if (this_present_type || that_present_type) {
9600
        if (!(this_present_type && that_present_type))
9601
          return false;
9602
        if (!this.type.equals(that.type))
9603
          return false;
9604
      }
9605
 
1139 chandransh 9606
      return true;
9607
    }
9608
 
9609
    @Override
9610
    public int hashCode() {
9611
      return 0;
9612
    }
9613
 
9614
    public int compareTo(getFreeAwbCount_args other) {
9615
      if (!getClass().equals(other.getClass())) {
9616
        return getClass().getName().compareTo(other.getClass().getName());
9617
      }
9618
 
9619
      int lastComparison = 0;
9620
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9621
 
3430 rajveer 9622
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9623
      if (lastComparison != 0) {
9624
        return lastComparison;
9625
      }
3430 rajveer 9626
      if (isSetProviderId()) {
9627
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9628
        if (lastComparison != 0) {
9629
          return lastComparison;
9630
        }
1139 chandransh 9631
      }
3430 rajveer 9632
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9633
      if (lastComparison != 0) {
9634
        return lastComparison;
9635
      }
3430 rajveer 9636
      if (isSetType()) {
9637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9638
        if (lastComparison != 0) {
9639
          return lastComparison;
9640
        }
3103 chandransh 9641
      }
1139 chandransh 9642
      return 0;
9643
    }
9644
 
3430 rajveer 9645
    public _Fields fieldForId(int fieldId) {
9646
      return _Fields.findByThriftId(fieldId);
9647
    }
9648
 
9649
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9650
      org.apache.thrift.protocol.TField field;
1139 chandransh 9651
      iprot.readStructBegin();
9652
      while (true)
9653
      {
9654
        field = iprot.readFieldBegin();
3430 rajveer 9655
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9656
          break;
9657
        }
3430 rajveer 9658
        switch (field.id) {
9659
          case 1: // PROVIDER_ID
9660
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9661
              this.providerId = iprot.readI64();
9662
              setProviderIdIsSet(true);
9663
            } else { 
9664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9665
            }
9666
            break;
9667
          case 2: // TYPE
9668
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9669
              this.type = iprot.readString();
9670
            } else { 
9671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9672
            }
9673
            break;
9674
          default:
9675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9676
        }
3430 rajveer 9677
        iprot.readFieldEnd();
1139 chandransh 9678
      }
9679
      iprot.readStructEnd();
9680
      validate();
9681
    }
9682
 
3430 rajveer 9683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9684
      validate();
9685
 
9686
      oprot.writeStructBegin(STRUCT_DESC);
9687
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9688
      oprot.writeI64(this.providerId);
9689
      oprot.writeFieldEnd();
3103 chandransh 9690
      if (this.type != null) {
9691
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9692
        oprot.writeString(this.type);
9693
        oprot.writeFieldEnd();
9694
      }
1139 chandransh 9695
      oprot.writeFieldStop();
9696
      oprot.writeStructEnd();
9697
    }
9698
 
9699
    @Override
9700
    public String toString() {
9701
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9702
      boolean first = true;
9703
 
9704
      sb.append("providerId:");
9705
      sb.append(this.providerId);
9706
      first = false;
3103 chandransh 9707
      if (!first) sb.append(", ");
9708
      sb.append("type:");
9709
      if (this.type == null) {
9710
        sb.append("null");
9711
      } else {
9712
        sb.append(this.type);
9713
      }
9714
      first = false;
1139 chandransh 9715
      sb.append(")");
9716
      return sb.toString();
9717
    }
9718
 
3430 rajveer 9719
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9720
      // check for required fields
9721
    }
9722
 
3430 rajveer 9723
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9724
      try {
9725
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9726
      } catch (org.apache.thrift.TException te) {
9727
        throw new java.io.IOException(te);
9728
      }
9729
    }
9730
 
9731
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9732
      try {
9733
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9734
      } catch (org.apache.thrift.TException te) {
9735
        throw new java.io.IOException(te);
9736
      }
9737
    }
9738
 
1139 chandransh 9739
  }
9740
 
3430 rajveer 9741
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9742
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9743
 
3430 rajveer 9744
    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 9745
 
3430 rajveer 9746
    private long success; // required
1139 chandransh 9747
 
9748
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9749
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9750
      SUCCESS((short)0, "success");
9751
 
9752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9753
 
9754
      static {
9755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9756
          byName.put(field.getFieldName(), field);
9757
        }
9758
      }
9759
 
9760
      /**
9761
       * Find the _Fields constant that matches fieldId, or null if its not found.
9762
       */
9763
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9764
        switch(fieldId) {
9765
          case 0: // SUCCESS
9766
            return SUCCESS;
9767
          default:
9768
            return null;
9769
        }
1139 chandransh 9770
      }
9771
 
9772
      /**
9773
       * Find the _Fields constant that matches fieldId, throwing an exception
9774
       * if it is not found.
9775
       */
9776
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9777
        _Fields fields = findByThriftId(fieldId);
9778
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9779
        return fields;
9780
      }
9781
 
9782
      /**
9783
       * Find the _Fields constant that matches name, or null if its not found.
9784
       */
9785
      public static _Fields findByName(String name) {
9786
        return byName.get(name);
9787
      }
9788
 
9789
      private final short _thriftId;
9790
      private final String _fieldName;
9791
 
9792
      _Fields(short thriftId, String fieldName) {
9793
        _thriftId = thriftId;
9794
        _fieldName = fieldName;
9795
      }
9796
 
9797
      public short getThriftFieldId() {
9798
        return _thriftId;
9799
      }
9800
 
9801
      public String getFieldName() {
9802
        return _fieldName;
9803
      }
9804
    }
9805
 
9806
    // isset id assignments
9807
    private static final int __SUCCESS_ISSET_ID = 0;
9808
    private BitSet __isset_bit_vector = new BitSet(1);
9809
 
3430 rajveer 9810
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9811
    static {
3430 rajveer 9812
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9813
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9814
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9815
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9816
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9817
    }
9818
 
9819
    public getFreeAwbCount_result() {
9820
    }
9821
 
9822
    public getFreeAwbCount_result(
9823
      long success)
9824
    {
9825
      this();
9826
      this.success = success;
9827
      setSuccessIsSet(true);
9828
    }
9829
 
9830
    /**
9831
     * Performs a deep copy on <i>other</i>.
9832
     */
9833
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9834
      __isset_bit_vector.clear();
9835
      __isset_bit_vector.or(other.__isset_bit_vector);
9836
      this.success = other.success;
9837
    }
9838
 
9839
    public getFreeAwbCount_result deepCopy() {
9840
      return new getFreeAwbCount_result(this);
9841
    }
9842
 
3430 rajveer 9843
    @Override
9844
    public void clear() {
9845
      setSuccessIsSet(false);
9846
      this.success = 0;
1139 chandransh 9847
    }
9848
 
9849
    public long getSuccess() {
9850
      return this.success;
9851
    }
9852
 
3430 rajveer 9853
    public void setSuccess(long success) {
1139 chandransh 9854
      this.success = success;
9855
      setSuccessIsSet(true);
9856
    }
9857
 
9858
    public void unsetSuccess() {
9859
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9860
    }
9861
 
3430 rajveer 9862
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9863
    public boolean isSetSuccess() {
9864
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9865
    }
9866
 
9867
    public void setSuccessIsSet(boolean value) {
9868
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9869
    }
9870
 
9871
    public void setFieldValue(_Fields field, Object value) {
9872
      switch (field) {
9873
      case SUCCESS:
9874
        if (value == null) {
9875
          unsetSuccess();
9876
        } else {
9877
          setSuccess((Long)value);
9878
        }
9879
        break;
9880
 
9881
      }
9882
    }
9883
 
9884
    public Object getFieldValue(_Fields field) {
9885
      switch (field) {
9886
      case SUCCESS:
3430 rajveer 9887
        return Long.valueOf(getSuccess());
1139 chandransh 9888
 
9889
      }
9890
      throw new IllegalStateException();
9891
    }
9892
 
3430 rajveer 9893
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9894
    public boolean isSet(_Fields field) {
9895
      if (field == null) {
9896
        throw new IllegalArgumentException();
9897
      }
1139 chandransh 9898
 
9899
      switch (field) {
9900
      case SUCCESS:
9901
        return isSetSuccess();
9902
      }
9903
      throw new IllegalStateException();
9904
    }
9905
 
9906
    @Override
9907
    public boolean equals(Object that) {
9908
      if (that == null)
9909
        return false;
9910
      if (that instanceof getFreeAwbCount_result)
9911
        return this.equals((getFreeAwbCount_result)that);
9912
      return false;
9913
    }
9914
 
9915
    public boolean equals(getFreeAwbCount_result that) {
9916
      if (that == null)
9917
        return false;
9918
 
9919
      boolean this_present_success = true;
9920
      boolean that_present_success = true;
9921
      if (this_present_success || that_present_success) {
9922
        if (!(this_present_success && that_present_success))
9923
          return false;
9924
        if (this.success != that.success)
9925
          return false;
9926
      }
9927
 
9928
      return true;
9929
    }
9930
 
9931
    @Override
9932
    public int hashCode() {
9933
      return 0;
9934
    }
9935
 
9936
    public int compareTo(getFreeAwbCount_result other) {
9937
      if (!getClass().equals(other.getClass())) {
9938
        return getClass().getName().compareTo(other.getClass().getName());
9939
      }
9940
 
9941
      int lastComparison = 0;
9942
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9943
 
3430 rajveer 9944
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9945
      if (lastComparison != 0) {
9946
        return lastComparison;
9947
      }
3430 rajveer 9948
      if (isSetSuccess()) {
9949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9950
        if (lastComparison != 0) {
9951
          return lastComparison;
9952
        }
1139 chandransh 9953
      }
9954
      return 0;
9955
    }
9956
 
3430 rajveer 9957
    public _Fields fieldForId(int fieldId) {
9958
      return _Fields.findByThriftId(fieldId);
9959
    }
9960
 
9961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9962
      org.apache.thrift.protocol.TField field;
1139 chandransh 9963
      iprot.readStructBegin();
9964
      while (true)
9965
      {
9966
        field = iprot.readFieldBegin();
3430 rajveer 9967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9968
          break;
9969
        }
3430 rajveer 9970
        switch (field.id) {
9971
          case 0: // SUCCESS
9972
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9973
              this.success = iprot.readI64();
9974
              setSuccessIsSet(true);
9975
            } else { 
9976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9977
            }
9978
            break;
9979
          default:
9980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9981
        }
3430 rajveer 9982
        iprot.readFieldEnd();
1139 chandransh 9983
      }
9984
      iprot.readStructEnd();
9985
      validate();
9986
    }
9987
 
3430 rajveer 9988
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9989
      oprot.writeStructBegin(STRUCT_DESC);
9990
 
9991
      if (this.isSetSuccess()) {
9992
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9993
        oprot.writeI64(this.success);
9994
        oprot.writeFieldEnd();
9995
      }
9996
      oprot.writeFieldStop();
9997
      oprot.writeStructEnd();
9998
    }
9999
 
10000
    @Override
10001
    public String toString() {
10002
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
10003
      boolean first = true;
10004
 
10005
      sb.append("success:");
10006
      sb.append(this.success);
10007
      first = false;
10008
      sb.append(")");
10009
      return sb.toString();
10010
    }
10011
 
3430 rajveer 10012
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 10013
      // check for required fields
10014
    }
10015
 
3430 rajveer 10016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10017
      try {
10018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10019
      } catch (org.apache.thrift.TException te) {
10020
        throw new java.io.IOException(te);
10021
      }
10022
    }
10023
 
10024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10025
      try {
10026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10027
      } catch (org.apache.thrift.TException te) {
10028
        throw new java.io.IOException(te);
10029
      }
10030
    }
10031
 
1139 chandransh 10032
  }
10033
 
3430 rajveer 10034
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
10035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 10036
 
3430 rajveer 10037
    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);
10038
    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 10039
 
3430 rajveer 10040
    private long fromDate; // required
10041
    private long toDate; // required
1730 ankur.sing 10042
 
10043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10045
      FROM_DATE((short)1, "fromDate"),
10046
      TO_DATE((short)2, "toDate");
10047
 
10048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10049
 
10050
      static {
10051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10052
          byName.put(field.getFieldName(), field);
10053
        }
10054
      }
10055
 
10056
      /**
10057
       * Find the _Fields constant that matches fieldId, or null if its not found.
10058
       */
10059
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10060
        switch(fieldId) {
10061
          case 1: // FROM_DATE
10062
            return FROM_DATE;
10063
          case 2: // TO_DATE
10064
            return TO_DATE;
10065
          default:
10066
            return null;
10067
        }
1730 ankur.sing 10068
      }
10069
 
10070
      /**
10071
       * Find the _Fields constant that matches fieldId, throwing an exception
10072
       * if it is not found.
10073
       */
10074
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10075
        _Fields fields = findByThriftId(fieldId);
10076
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10077
        return fields;
10078
      }
10079
 
10080
      /**
10081
       * Find the _Fields constant that matches name, or null if its not found.
10082
       */
10083
      public static _Fields findByName(String name) {
10084
        return byName.get(name);
10085
      }
10086
 
10087
      private final short _thriftId;
10088
      private final String _fieldName;
10089
 
10090
      _Fields(short thriftId, String fieldName) {
10091
        _thriftId = thriftId;
10092
        _fieldName = fieldName;
10093
      }
10094
 
10095
      public short getThriftFieldId() {
10096
        return _thriftId;
10097
      }
10098
 
10099
      public String getFieldName() {
10100
        return _fieldName;
10101
      }
10102
    }
10103
 
10104
    // isset id assignments
10105
    private static final int __FROMDATE_ISSET_ID = 0;
10106
    private static final int __TODATE_ISSET_ID = 1;
10107
    private BitSet __isset_bit_vector = new BitSet(2);
10108
 
3430 rajveer 10109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10110
    static {
3430 rajveer 10111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10112
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10114
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10118
    }
10119
 
10120
    public getHolidays_args() {
10121
    }
10122
 
10123
    public getHolidays_args(
10124
      long fromDate,
10125
      long toDate)
10126
    {
10127
      this();
10128
      this.fromDate = fromDate;
10129
      setFromDateIsSet(true);
10130
      this.toDate = toDate;
10131
      setToDateIsSet(true);
10132
    }
10133
 
10134
    /**
10135
     * Performs a deep copy on <i>other</i>.
10136
     */
10137
    public getHolidays_args(getHolidays_args other) {
10138
      __isset_bit_vector.clear();
10139
      __isset_bit_vector.or(other.__isset_bit_vector);
10140
      this.fromDate = other.fromDate;
10141
      this.toDate = other.toDate;
10142
    }
10143
 
10144
    public getHolidays_args deepCopy() {
10145
      return new getHolidays_args(this);
10146
    }
10147
 
3430 rajveer 10148
    @Override
10149
    public void clear() {
10150
      setFromDateIsSet(false);
10151
      this.fromDate = 0;
10152
      setToDateIsSet(false);
10153
      this.toDate = 0;
1730 ankur.sing 10154
    }
10155
 
10156
    public long getFromDate() {
10157
      return this.fromDate;
10158
    }
10159
 
3430 rajveer 10160
    public void setFromDate(long fromDate) {
1730 ankur.sing 10161
      this.fromDate = fromDate;
10162
      setFromDateIsSet(true);
10163
    }
10164
 
10165
    public void unsetFromDate() {
10166
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10167
    }
10168
 
3430 rajveer 10169
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10170
    public boolean isSetFromDate() {
10171
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10172
    }
10173
 
10174
    public void setFromDateIsSet(boolean value) {
10175
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10176
    }
10177
 
10178
    public long getToDate() {
10179
      return this.toDate;
10180
    }
10181
 
3430 rajveer 10182
    public void setToDate(long toDate) {
1730 ankur.sing 10183
      this.toDate = toDate;
10184
      setToDateIsSet(true);
10185
    }
10186
 
10187
    public void unsetToDate() {
10188
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10189
    }
10190
 
3430 rajveer 10191
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10192
    public boolean isSetToDate() {
10193
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10194
    }
10195
 
10196
    public void setToDateIsSet(boolean value) {
10197
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10198
    }
10199
 
10200
    public void setFieldValue(_Fields field, Object value) {
10201
      switch (field) {
10202
      case FROM_DATE:
10203
        if (value == null) {
10204
          unsetFromDate();
10205
        } else {
10206
          setFromDate((Long)value);
10207
        }
10208
        break;
10209
 
10210
      case TO_DATE:
10211
        if (value == null) {
10212
          unsetToDate();
10213
        } else {
10214
          setToDate((Long)value);
10215
        }
10216
        break;
10217
 
10218
      }
10219
    }
10220
 
10221
    public Object getFieldValue(_Fields field) {
10222
      switch (field) {
10223
      case FROM_DATE:
3430 rajveer 10224
        return Long.valueOf(getFromDate());
1730 ankur.sing 10225
 
10226
      case TO_DATE:
3430 rajveer 10227
        return Long.valueOf(getToDate());
1730 ankur.sing 10228
 
10229
      }
10230
      throw new IllegalStateException();
10231
    }
10232
 
3430 rajveer 10233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10234
    public boolean isSet(_Fields field) {
10235
      if (field == null) {
10236
        throw new IllegalArgumentException();
10237
      }
1730 ankur.sing 10238
 
10239
      switch (field) {
10240
      case FROM_DATE:
10241
        return isSetFromDate();
10242
      case TO_DATE:
10243
        return isSetToDate();
10244
      }
10245
      throw new IllegalStateException();
10246
    }
10247
 
10248
    @Override
10249
    public boolean equals(Object that) {
10250
      if (that == null)
10251
        return false;
10252
      if (that instanceof getHolidays_args)
10253
        return this.equals((getHolidays_args)that);
10254
      return false;
10255
    }
10256
 
10257
    public boolean equals(getHolidays_args that) {
10258
      if (that == null)
10259
        return false;
10260
 
10261
      boolean this_present_fromDate = true;
10262
      boolean that_present_fromDate = true;
10263
      if (this_present_fromDate || that_present_fromDate) {
10264
        if (!(this_present_fromDate && that_present_fromDate))
10265
          return false;
10266
        if (this.fromDate != that.fromDate)
10267
          return false;
10268
      }
10269
 
10270
      boolean this_present_toDate = true;
10271
      boolean that_present_toDate = true;
10272
      if (this_present_toDate || that_present_toDate) {
10273
        if (!(this_present_toDate && that_present_toDate))
10274
          return false;
10275
        if (this.toDate != that.toDate)
10276
          return false;
10277
      }
10278
 
10279
      return true;
10280
    }
10281
 
10282
    @Override
10283
    public int hashCode() {
10284
      return 0;
10285
    }
10286
 
10287
    public int compareTo(getHolidays_args other) {
10288
      if (!getClass().equals(other.getClass())) {
10289
        return getClass().getName().compareTo(other.getClass().getName());
10290
      }
10291
 
10292
      int lastComparison = 0;
10293
      getHolidays_args typedOther = (getHolidays_args)other;
10294
 
3430 rajveer 10295
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10296
      if (lastComparison != 0) {
10297
        return lastComparison;
10298
      }
3430 rajveer 10299
      if (isSetFromDate()) {
10300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10301
        if (lastComparison != 0) {
10302
          return lastComparison;
10303
        }
1730 ankur.sing 10304
      }
3430 rajveer 10305
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10306
      if (lastComparison != 0) {
10307
        return lastComparison;
10308
      }
3430 rajveer 10309
      if (isSetToDate()) {
10310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10311
        if (lastComparison != 0) {
10312
          return lastComparison;
10313
        }
1730 ankur.sing 10314
      }
10315
      return 0;
10316
    }
10317
 
3430 rajveer 10318
    public _Fields fieldForId(int fieldId) {
10319
      return _Fields.findByThriftId(fieldId);
10320
    }
10321
 
10322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10323
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10324
      iprot.readStructBegin();
10325
      while (true)
10326
      {
10327
        field = iprot.readFieldBegin();
3430 rajveer 10328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10329
          break;
10330
        }
3430 rajveer 10331
        switch (field.id) {
10332
          case 1: // FROM_DATE
10333
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10334
              this.fromDate = iprot.readI64();
10335
              setFromDateIsSet(true);
10336
            } else { 
10337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10338
            }
10339
            break;
10340
          case 2: // TO_DATE
10341
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10342
              this.toDate = iprot.readI64();
10343
              setToDateIsSet(true);
10344
            } else { 
10345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10346
            }
10347
            break;
10348
          default:
10349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10350
        }
3430 rajveer 10351
        iprot.readFieldEnd();
1730 ankur.sing 10352
      }
10353
      iprot.readStructEnd();
10354
      validate();
10355
    }
10356
 
3430 rajveer 10357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10358
      validate();
10359
 
10360
      oprot.writeStructBegin(STRUCT_DESC);
10361
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10362
      oprot.writeI64(this.fromDate);
10363
      oprot.writeFieldEnd();
10364
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10365
      oprot.writeI64(this.toDate);
10366
      oprot.writeFieldEnd();
10367
      oprot.writeFieldStop();
10368
      oprot.writeStructEnd();
10369
    }
10370
 
10371
    @Override
10372
    public String toString() {
10373
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10374
      boolean first = true;
10375
 
10376
      sb.append("fromDate:");
10377
      sb.append(this.fromDate);
10378
      first = false;
10379
      if (!first) sb.append(", ");
10380
      sb.append("toDate:");
10381
      sb.append(this.toDate);
10382
      first = false;
10383
      sb.append(")");
10384
      return sb.toString();
10385
    }
10386
 
3430 rajveer 10387
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10388
      // check for required fields
10389
    }
10390
 
3430 rajveer 10391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10392
      try {
10393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10394
      } catch (org.apache.thrift.TException te) {
10395
        throw new java.io.IOException(te);
10396
      }
10397
    }
10398
 
10399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10400
      try {
10401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10402
      } catch (org.apache.thrift.TException te) {
10403
        throw new java.io.IOException(te);
10404
      }
10405
    }
10406
 
1730 ankur.sing 10407
  }
10408
 
3430 rajveer 10409
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10411
 
3430 rajveer 10412
    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 10413
 
3430 rajveer 10414
    private List<Long> success; // required
1730 ankur.sing 10415
 
10416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10418
      SUCCESS((short)0, "success");
10419
 
10420
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10421
 
10422
      static {
10423
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10424
          byName.put(field.getFieldName(), field);
10425
        }
10426
      }
10427
 
10428
      /**
10429
       * Find the _Fields constant that matches fieldId, or null if its not found.
10430
       */
10431
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10432
        switch(fieldId) {
10433
          case 0: // SUCCESS
10434
            return SUCCESS;
10435
          default:
10436
            return null;
10437
        }
1730 ankur.sing 10438
      }
10439
 
10440
      /**
10441
       * Find the _Fields constant that matches fieldId, throwing an exception
10442
       * if it is not found.
10443
       */
10444
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10445
        _Fields fields = findByThriftId(fieldId);
10446
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10447
        return fields;
10448
      }
10449
 
10450
      /**
10451
       * Find the _Fields constant that matches name, or null if its not found.
10452
       */
10453
      public static _Fields findByName(String name) {
10454
        return byName.get(name);
10455
      }
10456
 
10457
      private final short _thriftId;
10458
      private final String _fieldName;
10459
 
10460
      _Fields(short thriftId, String fieldName) {
10461
        _thriftId = thriftId;
10462
        _fieldName = fieldName;
10463
      }
10464
 
10465
      public short getThriftFieldId() {
10466
        return _thriftId;
10467
      }
10468
 
10469
      public String getFieldName() {
10470
        return _fieldName;
10471
      }
10472
    }
10473
 
10474
    // isset id assignments
10475
 
3430 rajveer 10476
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10477
    static {
3430 rajveer 10478
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10479
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10480
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10481
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10482
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10483
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10484
    }
10485
 
10486
    public getHolidays_result() {
10487
    }
10488
 
10489
    public getHolidays_result(
10490
      List<Long> success)
10491
    {
10492
      this();
10493
      this.success = success;
10494
    }
10495
 
10496
    /**
10497
     * Performs a deep copy on <i>other</i>.
10498
     */
10499
    public getHolidays_result(getHolidays_result other) {
10500
      if (other.isSetSuccess()) {
10501
        List<Long> __this__success = new ArrayList<Long>();
10502
        for (Long other_element : other.success) {
10503
          __this__success.add(other_element);
10504
        }
10505
        this.success = __this__success;
10506
      }
10507
    }
10508
 
10509
    public getHolidays_result deepCopy() {
10510
      return new getHolidays_result(this);
10511
    }
10512
 
3430 rajveer 10513
    @Override
10514
    public void clear() {
10515
      this.success = null;
1730 ankur.sing 10516
    }
10517
 
10518
    public int getSuccessSize() {
10519
      return (this.success == null) ? 0 : this.success.size();
10520
    }
10521
 
10522
    public java.util.Iterator<Long> getSuccessIterator() {
10523
      return (this.success == null) ? null : this.success.iterator();
10524
    }
10525
 
10526
    public void addToSuccess(long elem) {
10527
      if (this.success == null) {
10528
        this.success = new ArrayList<Long>();
10529
      }
10530
      this.success.add(elem);
10531
    }
10532
 
10533
    public List<Long> getSuccess() {
10534
      return this.success;
10535
    }
10536
 
3430 rajveer 10537
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10538
      this.success = success;
10539
    }
10540
 
10541
    public void unsetSuccess() {
10542
      this.success = null;
10543
    }
10544
 
3430 rajveer 10545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10546
    public boolean isSetSuccess() {
10547
      return this.success != null;
10548
    }
10549
 
10550
    public void setSuccessIsSet(boolean value) {
10551
      if (!value) {
10552
        this.success = null;
10553
      }
10554
    }
10555
 
10556
    public void setFieldValue(_Fields field, Object value) {
10557
      switch (field) {
10558
      case SUCCESS:
10559
        if (value == null) {
10560
          unsetSuccess();
10561
        } else {
10562
          setSuccess((List<Long>)value);
10563
        }
10564
        break;
10565
 
10566
      }
10567
    }
10568
 
10569
    public Object getFieldValue(_Fields field) {
10570
      switch (field) {
10571
      case SUCCESS:
10572
        return getSuccess();
10573
 
10574
      }
10575
      throw new IllegalStateException();
10576
    }
10577
 
3430 rajveer 10578
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10579
    public boolean isSet(_Fields field) {
10580
      if (field == null) {
10581
        throw new IllegalArgumentException();
10582
      }
1730 ankur.sing 10583
 
10584
      switch (field) {
10585
      case SUCCESS:
10586
        return isSetSuccess();
10587
      }
10588
      throw new IllegalStateException();
10589
    }
10590
 
10591
    @Override
10592
    public boolean equals(Object that) {
10593
      if (that == null)
10594
        return false;
10595
      if (that instanceof getHolidays_result)
10596
        return this.equals((getHolidays_result)that);
10597
      return false;
10598
    }
10599
 
10600
    public boolean equals(getHolidays_result that) {
10601
      if (that == null)
10602
        return false;
10603
 
10604
      boolean this_present_success = true && this.isSetSuccess();
10605
      boolean that_present_success = true && that.isSetSuccess();
10606
      if (this_present_success || that_present_success) {
10607
        if (!(this_present_success && that_present_success))
10608
          return false;
10609
        if (!this.success.equals(that.success))
10610
          return false;
10611
      }
10612
 
10613
      return true;
10614
    }
10615
 
10616
    @Override
10617
    public int hashCode() {
10618
      return 0;
10619
    }
10620
 
10621
    public int compareTo(getHolidays_result other) {
10622
      if (!getClass().equals(other.getClass())) {
10623
        return getClass().getName().compareTo(other.getClass().getName());
10624
      }
10625
 
10626
      int lastComparison = 0;
10627
      getHolidays_result typedOther = (getHolidays_result)other;
10628
 
3430 rajveer 10629
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10630
      if (lastComparison != 0) {
10631
        return lastComparison;
10632
      }
3430 rajveer 10633
      if (isSetSuccess()) {
10634
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10635
        if (lastComparison != 0) {
10636
          return lastComparison;
10637
        }
1730 ankur.sing 10638
      }
10639
      return 0;
10640
    }
10641
 
3430 rajveer 10642
    public _Fields fieldForId(int fieldId) {
10643
      return _Fields.findByThriftId(fieldId);
10644
    }
10645
 
10646
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10647
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10648
      iprot.readStructBegin();
10649
      while (true)
10650
      {
10651
        field = iprot.readFieldBegin();
3430 rajveer 10652
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10653
          break;
10654
        }
3430 rajveer 10655
        switch (field.id) {
10656
          case 0: // SUCCESS
10657
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10658
              {
7792 anupam.sin 10659
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10660
                this.success = new ArrayList<Long>(_list12.size);
10661
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10662
                {
7792 anupam.sin 10663
                  long _elem14; // required
10664
                  _elem14 = iprot.readI64();
10665
                  this.success.add(_elem14);
1730 ankur.sing 10666
                }
3430 rajveer 10667
                iprot.readListEnd();
1730 ankur.sing 10668
              }
3430 rajveer 10669
            } else { 
10670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10671
            }
10672
            break;
10673
          default:
10674
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10675
        }
3430 rajveer 10676
        iprot.readFieldEnd();
1730 ankur.sing 10677
      }
10678
      iprot.readStructEnd();
10679
      validate();
10680
    }
10681
 
3430 rajveer 10682
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10683
      oprot.writeStructBegin(STRUCT_DESC);
10684
 
10685
      if (this.isSetSuccess()) {
10686
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10687
        {
3430 rajveer 10688
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10689
          for (long _iter15 : this.success)
1730 ankur.sing 10690
          {
7792 anupam.sin 10691
            oprot.writeI64(_iter15);
1730 ankur.sing 10692
          }
10693
          oprot.writeListEnd();
10694
        }
10695
        oprot.writeFieldEnd();
10696
      }
10697
      oprot.writeFieldStop();
10698
      oprot.writeStructEnd();
10699
    }
10700
 
10701
    @Override
10702
    public String toString() {
10703
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10704
      boolean first = true;
10705
 
10706
      sb.append("success:");
10707
      if (this.success == null) {
10708
        sb.append("null");
10709
      } else {
10710
        sb.append(this.success);
10711
      }
10712
      first = false;
10713
      sb.append(")");
10714
      return sb.toString();
10715
    }
10716
 
3430 rajveer 10717
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10718
      // check for required fields
10719
    }
10720
 
3430 rajveer 10721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10722
      try {
10723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10724
      } catch (org.apache.thrift.TException te) {
10725
        throw new java.io.IOException(te);
10726
      }
10727
    }
10728
 
10729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10730
      try {
10731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10732
      } catch (org.apache.thrift.TException te) {
10733
        throw new java.io.IOException(te);
10734
      }
10735
    }
10736
 
1730 ankur.sing 10737
  }
10738
 
4934 amit.gupta 10739
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10741
 
10742
    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);
10743
    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);
10744
    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);
10745
 
10746
    private long catalogItemId; // required
10747
    private String destination_pin; // required
10748
    private DeliveryType type; // required
10749
 
10750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10751
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10752
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10753
      DESTINATION_PIN((short)2, "destination_pin"),
10754
      /**
10755
       * 
10756
       * @see DeliveryType
10757
       */
10758
      TYPE((short)3, "type");
10759
 
10760
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10761
 
10762
      static {
10763
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10764
          byName.put(field.getFieldName(), field);
10765
        }
10766
      }
10767
 
10768
      /**
10769
       * Find the _Fields constant that matches fieldId, or null if its not found.
10770
       */
10771
      public static _Fields findByThriftId(int fieldId) {
10772
        switch(fieldId) {
10773
          case 1: // CATALOG_ITEM_ID
10774
            return CATALOG_ITEM_ID;
10775
          case 2: // DESTINATION_PIN
10776
            return DESTINATION_PIN;
10777
          case 3: // TYPE
10778
            return TYPE;
10779
          default:
10780
            return null;
10781
        }
10782
      }
10783
 
10784
      /**
10785
       * Find the _Fields constant that matches fieldId, throwing an exception
10786
       * if it is not found.
10787
       */
10788
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10789
        _Fields fields = findByThriftId(fieldId);
10790
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10791
        return fields;
10792
      }
10793
 
10794
      /**
10795
       * Find the _Fields constant that matches name, or null if its not found.
10796
       */
10797
      public static _Fields findByName(String name) {
10798
        return byName.get(name);
10799
      }
10800
 
10801
      private final short _thriftId;
10802
      private final String _fieldName;
10803
 
10804
      _Fields(short thriftId, String fieldName) {
10805
        _thriftId = thriftId;
10806
        _fieldName = fieldName;
10807
      }
10808
 
10809
      public short getThriftFieldId() {
10810
        return _thriftId;
10811
      }
10812
 
10813
      public String getFieldName() {
10814
        return _fieldName;
10815
      }
10816
    }
10817
 
10818
    // isset id assignments
10819
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10820
    private BitSet __isset_bit_vector = new BitSet(1);
10821
 
10822
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10823
    static {
10824
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10825
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10826
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10827
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10829
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10830
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10831
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10832
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10833
    }
10834
 
10835
    public getEntityLogisticsEstimation_args() {
10836
    }
10837
 
10838
    public getEntityLogisticsEstimation_args(
10839
      long catalogItemId,
10840
      String destination_pin,
10841
      DeliveryType type)
10842
    {
10843
      this();
10844
      this.catalogItemId = catalogItemId;
10845
      setCatalogItemIdIsSet(true);
10846
      this.destination_pin = destination_pin;
10847
      this.type = type;
10848
    }
10849
 
10850
    /**
10851
     * Performs a deep copy on <i>other</i>.
10852
     */
10853
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10854
      __isset_bit_vector.clear();
10855
      __isset_bit_vector.or(other.__isset_bit_vector);
10856
      this.catalogItemId = other.catalogItemId;
10857
      if (other.isSetDestination_pin()) {
10858
        this.destination_pin = other.destination_pin;
10859
      }
10860
      if (other.isSetType()) {
10861
        this.type = other.type;
10862
      }
10863
    }
10864
 
10865
    public getEntityLogisticsEstimation_args deepCopy() {
10866
      return new getEntityLogisticsEstimation_args(this);
10867
    }
10868
 
10869
    @Override
10870
    public void clear() {
10871
      setCatalogItemIdIsSet(false);
10872
      this.catalogItemId = 0;
10873
      this.destination_pin = null;
10874
      this.type = null;
10875
    }
10876
 
10877
    public long getCatalogItemId() {
10878
      return this.catalogItemId;
10879
    }
10880
 
10881
    public void setCatalogItemId(long catalogItemId) {
10882
      this.catalogItemId = catalogItemId;
10883
      setCatalogItemIdIsSet(true);
10884
    }
10885
 
10886
    public void unsetCatalogItemId() {
10887
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10888
    }
10889
 
10890
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10891
    public boolean isSetCatalogItemId() {
10892
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10893
    }
10894
 
10895
    public void setCatalogItemIdIsSet(boolean value) {
10896
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10897
    }
10898
 
10899
    public String getDestination_pin() {
10900
      return this.destination_pin;
10901
    }
10902
 
10903
    public void setDestination_pin(String destination_pin) {
10904
      this.destination_pin = destination_pin;
10905
    }
10906
 
10907
    public void unsetDestination_pin() {
10908
      this.destination_pin = null;
10909
    }
10910
 
10911
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10912
    public boolean isSetDestination_pin() {
10913
      return this.destination_pin != null;
10914
    }
10915
 
10916
    public void setDestination_pinIsSet(boolean value) {
10917
      if (!value) {
10918
        this.destination_pin = null;
10919
      }
10920
    }
10921
 
10922
    /**
10923
     * 
10924
     * @see DeliveryType
10925
     */
10926
    public DeliveryType getType() {
10927
      return this.type;
10928
    }
10929
 
10930
    /**
10931
     * 
10932
     * @see DeliveryType
10933
     */
10934
    public void setType(DeliveryType type) {
10935
      this.type = type;
10936
    }
10937
 
10938
    public void unsetType() {
10939
      this.type = null;
10940
    }
10941
 
10942
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10943
    public boolean isSetType() {
10944
      return this.type != null;
10945
    }
10946
 
10947
    public void setTypeIsSet(boolean value) {
10948
      if (!value) {
10949
        this.type = null;
10950
      }
10951
    }
10952
 
10953
    public void setFieldValue(_Fields field, Object value) {
10954
      switch (field) {
10955
      case CATALOG_ITEM_ID:
10956
        if (value == null) {
10957
          unsetCatalogItemId();
10958
        } else {
10959
          setCatalogItemId((Long)value);
10960
        }
10961
        break;
10962
 
10963
      case DESTINATION_PIN:
10964
        if (value == null) {
10965
          unsetDestination_pin();
10966
        } else {
10967
          setDestination_pin((String)value);
10968
        }
10969
        break;
10970
 
10971
      case TYPE:
10972
        if (value == null) {
10973
          unsetType();
10974
        } else {
10975
          setType((DeliveryType)value);
10976
        }
10977
        break;
10978
 
10979
      }
10980
    }
10981
 
10982
    public Object getFieldValue(_Fields field) {
10983
      switch (field) {
10984
      case CATALOG_ITEM_ID:
10985
        return Long.valueOf(getCatalogItemId());
10986
 
10987
      case DESTINATION_PIN:
10988
        return getDestination_pin();
10989
 
10990
      case TYPE:
10991
        return getType();
10992
 
10993
      }
10994
      throw new IllegalStateException();
10995
    }
10996
 
10997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10998
    public boolean isSet(_Fields field) {
10999
      if (field == null) {
11000
        throw new IllegalArgumentException();
11001
      }
11002
 
11003
      switch (field) {
11004
      case CATALOG_ITEM_ID:
11005
        return isSetCatalogItemId();
11006
      case DESTINATION_PIN:
11007
        return isSetDestination_pin();
11008
      case TYPE:
11009
        return isSetType();
11010
      }
11011
      throw new IllegalStateException();
11012
    }
11013
 
11014
    @Override
11015
    public boolean equals(Object that) {
11016
      if (that == null)
11017
        return false;
11018
      if (that instanceof getEntityLogisticsEstimation_args)
11019
        return this.equals((getEntityLogisticsEstimation_args)that);
11020
      return false;
11021
    }
11022
 
11023
    public boolean equals(getEntityLogisticsEstimation_args that) {
11024
      if (that == null)
11025
        return false;
11026
 
11027
      boolean this_present_catalogItemId = true;
11028
      boolean that_present_catalogItemId = true;
11029
      if (this_present_catalogItemId || that_present_catalogItemId) {
11030
        if (!(this_present_catalogItemId && that_present_catalogItemId))
11031
          return false;
11032
        if (this.catalogItemId != that.catalogItemId)
11033
          return false;
11034
      }
11035
 
11036
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
11037
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
11038
      if (this_present_destination_pin || that_present_destination_pin) {
11039
        if (!(this_present_destination_pin && that_present_destination_pin))
11040
          return false;
11041
        if (!this.destination_pin.equals(that.destination_pin))
11042
          return false;
11043
      }
11044
 
11045
      boolean this_present_type = true && this.isSetType();
11046
      boolean that_present_type = true && that.isSetType();
11047
      if (this_present_type || that_present_type) {
11048
        if (!(this_present_type && that_present_type))
11049
          return false;
11050
        if (!this.type.equals(that.type))
11051
          return false;
11052
      }
11053
 
11054
      return true;
11055
    }
11056
 
11057
    @Override
11058
    public int hashCode() {
11059
      return 0;
11060
    }
11061
 
11062
    public int compareTo(getEntityLogisticsEstimation_args other) {
11063
      if (!getClass().equals(other.getClass())) {
11064
        return getClass().getName().compareTo(other.getClass().getName());
11065
      }
11066
 
11067
      int lastComparison = 0;
11068
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
11069
 
11070
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
11071
      if (lastComparison != 0) {
11072
        return lastComparison;
11073
      }
11074
      if (isSetCatalogItemId()) {
11075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
11076
        if (lastComparison != 0) {
11077
          return lastComparison;
11078
        }
11079
      }
11080
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11081
      if (lastComparison != 0) {
11082
        return lastComparison;
11083
      }
11084
      if (isSetDestination_pin()) {
11085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11086
        if (lastComparison != 0) {
11087
          return lastComparison;
11088
        }
11089
      }
11090
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11091
      if (lastComparison != 0) {
11092
        return lastComparison;
11093
      }
11094
      if (isSetType()) {
11095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11096
        if (lastComparison != 0) {
11097
          return lastComparison;
11098
        }
11099
      }
11100
      return 0;
11101
    }
11102
 
11103
    public _Fields fieldForId(int fieldId) {
11104
      return _Fields.findByThriftId(fieldId);
11105
    }
11106
 
11107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11108
      org.apache.thrift.protocol.TField field;
11109
      iprot.readStructBegin();
11110
      while (true)
11111
      {
11112
        field = iprot.readFieldBegin();
11113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11114
          break;
11115
        }
11116
        switch (field.id) {
11117
          case 1: // CATALOG_ITEM_ID
11118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11119
              this.catalogItemId = iprot.readI64();
11120
              setCatalogItemIdIsSet(true);
11121
            } else { 
11122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11123
            }
11124
            break;
11125
          case 2: // DESTINATION_PIN
11126
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11127
              this.destination_pin = iprot.readString();
11128
            } else { 
11129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11130
            }
11131
            break;
11132
          case 3: // TYPE
11133
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11134
              this.type = DeliveryType.findByValue(iprot.readI32());
11135
            } else { 
11136
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11137
            }
11138
            break;
11139
          default:
11140
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11141
        }
11142
        iprot.readFieldEnd();
11143
      }
11144
      iprot.readStructEnd();
11145
      validate();
11146
    }
11147
 
11148
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11149
      validate();
11150
 
11151
      oprot.writeStructBegin(STRUCT_DESC);
11152
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11153
      oprot.writeI64(this.catalogItemId);
11154
      oprot.writeFieldEnd();
11155
      if (this.destination_pin != null) {
11156
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11157
        oprot.writeString(this.destination_pin);
11158
        oprot.writeFieldEnd();
11159
      }
11160
      if (this.type != null) {
11161
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11162
        oprot.writeI32(this.type.getValue());
11163
        oprot.writeFieldEnd();
11164
      }
11165
      oprot.writeFieldStop();
11166
      oprot.writeStructEnd();
11167
    }
11168
 
11169
    @Override
11170
    public String toString() {
11171
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11172
      boolean first = true;
11173
 
11174
      sb.append("catalogItemId:");
11175
      sb.append(this.catalogItemId);
11176
      first = false;
11177
      if (!first) sb.append(", ");
11178
      sb.append("destination_pin:");
11179
      if (this.destination_pin == null) {
11180
        sb.append("null");
11181
      } else {
11182
        sb.append(this.destination_pin);
11183
      }
11184
      first = false;
11185
      if (!first) sb.append(", ");
11186
      sb.append("type:");
11187
      if (this.type == null) {
11188
        sb.append("null");
11189
      } else {
11190
        sb.append(this.type);
11191
      }
11192
      first = false;
11193
      sb.append(")");
11194
      return sb.toString();
11195
    }
11196
 
11197
    public void validate() throws org.apache.thrift.TException {
11198
      // check for required fields
11199
    }
11200
 
11201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11202
      try {
11203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11204
      } catch (org.apache.thrift.TException te) {
11205
        throw new java.io.IOException(te);
11206
      }
11207
    }
11208
 
11209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11210
      try {
11211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11212
      } catch (org.apache.thrift.TException te) {
11213
        throw new java.io.IOException(te);
11214
      }
11215
    }
11216
 
11217
  }
11218
 
11219
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11221
 
11222
    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);
11223
    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);
11224
 
9840 amit.gupta 11225
    private List<ItemText> success; // required
4934 amit.gupta 11226
    private LogisticsServiceException se; // required
11227
 
11228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11230
      SUCCESS((short)0, "success"),
11231
      SE((short)1, "se");
11232
 
11233
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11234
 
11235
      static {
11236
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11237
          byName.put(field.getFieldName(), field);
11238
        }
11239
      }
11240
 
11241
      /**
11242
       * Find the _Fields constant that matches fieldId, or null if its not found.
11243
       */
11244
      public static _Fields findByThriftId(int fieldId) {
11245
        switch(fieldId) {
11246
          case 0: // SUCCESS
11247
            return SUCCESS;
11248
          case 1: // SE
11249
            return SE;
11250
          default:
11251
            return null;
11252
        }
11253
      }
11254
 
11255
      /**
11256
       * Find the _Fields constant that matches fieldId, throwing an exception
11257
       * if it is not found.
11258
       */
11259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11260
        _Fields fields = findByThriftId(fieldId);
11261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11262
        return fields;
11263
      }
11264
 
11265
      /**
11266
       * Find the _Fields constant that matches name, or null if its not found.
11267
       */
11268
      public static _Fields findByName(String name) {
11269
        return byName.get(name);
11270
      }
11271
 
11272
      private final short _thriftId;
11273
      private final String _fieldName;
11274
 
11275
      _Fields(short thriftId, String fieldName) {
11276
        _thriftId = thriftId;
11277
        _fieldName = fieldName;
11278
      }
11279
 
11280
      public short getThriftFieldId() {
11281
        return _thriftId;
11282
      }
11283
 
11284
      public String getFieldName() {
11285
        return _fieldName;
11286
      }
11287
    }
11288
 
11289
    // isset id assignments
11290
 
11291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11292
    static {
11293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11294
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11295
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11296
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11297
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11301
    }
11302
 
11303
    public getEntityLogisticsEstimation_result() {
11304
    }
11305
 
11306
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11307
      List<ItemText> success,
4934 amit.gupta 11308
      LogisticsServiceException se)
11309
    {
11310
      this();
11311
      this.success = success;
11312
      this.se = se;
11313
    }
11314
 
11315
    /**
11316
     * Performs a deep copy on <i>other</i>.
11317
     */
11318
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11319
      if (other.isSetSuccess()) {
9840 amit.gupta 11320
        List<ItemText> __this__success = new ArrayList<ItemText>();
11321
        for (ItemText other_element : other.success) {
11322
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11323
        }
11324
        this.success = __this__success;
11325
      }
11326
      if (other.isSetSe()) {
11327
        this.se = new LogisticsServiceException(other.se);
11328
      }
11329
    }
11330
 
11331
    public getEntityLogisticsEstimation_result deepCopy() {
11332
      return new getEntityLogisticsEstimation_result(this);
11333
    }
11334
 
11335
    @Override
11336
    public void clear() {
11337
      this.success = null;
11338
      this.se = null;
11339
    }
11340
 
11341
    public int getSuccessSize() {
11342
      return (this.success == null) ? 0 : this.success.size();
11343
    }
11344
 
9840 amit.gupta 11345
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11346
      return (this.success == null) ? null : this.success.iterator();
11347
    }
11348
 
9840 amit.gupta 11349
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11350
      if (this.success == null) {
9840 amit.gupta 11351
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11352
      }
11353
      this.success.add(elem);
11354
    }
11355
 
9840 amit.gupta 11356
    public List<ItemText> getSuccess() {
4934 amit.gupta 11357
      return this.success;
11358
    }
11359
 
9840 amit.gupta 11360
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11361
      this.success = success;
11362
    }
11363
 
11364
    public void unsetSuccess() {
11365
      this.success = null;
11366
    }
11367
 
11368
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11369
    public boolean isSetSuccess() {
11370
      return this.success != null;
11371
    }
11372
 
11373
    public void setSuccessIsSet(boolean value) {
11374
      if (!value) {
11375
        this.success = null;
11376
      }
11377
    }
11378
 
11379
    public LogisticsServiceException getSe() {
11380
      return this.se;
11381
    }
11382
 
11383
    public void setSe(LogisticsServiceException se) {
11384
      this.se = se;
11385
    }
11386
 
11387
    public void unsetSe() {
11388
      this.se = null;
11389
    }
11390
 
11391
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11392
    public boolean isSetSe() {
11393
      return this.se != null;
11394
    }
11395
 
11396
    public void setSeIsSet(boolean value) {
11397
      if (!value) {
11398
        this.se = null;
11399
      }
11400
    }
11401
 
11402
    public void setFieldValue(_Fields field, Object value) {
11403
      switch (field) {
11404
      case SUCCESS:
11405
        if (value == null) {
11406
          unsetSuccess();
11407
        } else {
9840 amit.gupta 11408
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11409
        }
11410
        break;
11411
 
11412
      case SE:
11413
        if (value == null) {
11414
          unsetSe();
11415
        } else {
11416
          setSe((LogisticsServiceException)value);
11417
        }
11418
        break;
11419
 
11420
      }
11421
    }
11422
 
11423
    public Object getFieldValue(_Fields field) {
11424
      switch (field) {
11425
      case SUCCESS:
11426
        return getSuccess();
11427
 
11428
      case SE:
11429
        return getSe();
11430
 
11431
      }
11432
      throw new IllegalStateException();
11433
    }
11434
 
11435
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11436
    public boolean isSet(_Fields field) {
11437
      if (field == null) {
11438
        throw new IllegalArgumentException();
11439
      }
11440
 
11441
      switch (field) {
11442
      case SUCCESS:
11443
        return isSetSuccess();
11444
      case SE:
11445
        return isSetSe();
11446
      }
11447
      throw new IllegalStateException();
11448
    }
11449
 
11450
    @Override
11451
    public boolean equals(Object that) {
11452
      if (that == null)
11453
        return false;
11454
      if (that instanceof getEntityLogisticsEstimation_result)
11455
        return this.equals((getEntityLogisticsEstimation_result)that);
11456
      return false;
11457
    }
11458
 
11459
    public boolean equals(getEntityLogisticsEstimation_result that) {
11460
      if (that == null)
11461
        return false;
11462
 
11463
      boolean this_present_success = true && this.isSetSuccess();
11464
      boolean that_present_success = true && that.isSetSuccess();
11465
      if (this_present_success || that_present_success) {
11466
        if (!(this_present_success && that_present_success))
11467
          return false;
11468
        if (!this.success.equals(that.success))
11469
          return false;
11470
      }
11471
 
11472
      boolean this_present_se = true && this.isSetSe();
11473
      boolean that_present_se = true && that.isSetSe();
11474
      if (this_present_se || that_present_se) {
11475
        if (!(this_present_se && that_present_se))
11476
          return false;
11477
        if (!this.se.equals(that.se))
11478
          return false;
11479
      }
11480
 
11481
      return true;
11482
    }
11483
 
11484
    @Override
11485
    public int hashCode() {
11486
      return 0;
11487
    }
11488
 
11489
    public int compareTo(getEntityLogisticsEstimation_result other) {
11490
      if (!getClass().equals(other.getClass())) {
11491
        return getClass().getName().compareTo(other.getClass().getName());
11492
      }
11493
 
11494
      int lastComparison = 0;
11495
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11496
 
11497
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11498
      if (lastComparison != 0) {
11499
        return lastComparison;
11500
      }
11501
      if (isSetSuccess()) {
11502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11503
        if (lastComparison != 0) {
11504
          return lastComparison;
11505
        }
11506
      }
11507
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11508
      if (lastComparison != 0) {
11509
        return lastComparison;
11510
      }
11511
      if (isSetSe()) {
11512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11513
        if (lastComparison != 0) {
11514
          return lastComparison;
11515
        }
11516
      }
11517
      return 0;
11518
    }
11519
 
11520
    public _Fields fieldForId(int fieldId) {
11521
      return _Fields.findByThriftId(fieldId);
11522
    }
11523
 
11524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11525
      org.apache.thrift.protocol.TField field;
11526
      iprot.readStructBegin();
11527
      while (true)
11528
      {
11529
        field = iprot.readFieldBegin();
11530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11531
          break;
11532
        }
11533
        switch (field.id) {
11534
          case 0: // SUCCESS
11535
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11536
              {
7792 anupam.sin 11537
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11538
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11539
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11540
                {
9840 amit.gupta 11541
                  ItemText _elem18; // required
11542
                  _elem18 = new ItemText();
11543
                  _elem18.read(iprot);
7792 anupam.sin 11544
                  this.success.add(_elem18);
4934 amit.gupta 11545
                }
11546
                iprot.readListEnd();
11547
              }
11548
            } else { 
11549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11550
            }
11551
            break;
11552
          case 1: // SE
11553
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11554
              this.se = new LogisticsServiceException();
11555
              this.se.read(iprot);
11556
            } else { 
11557
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11558
            }
11559
            break;
11560
          default:
11561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11562
        }
11563
        iprot.readFieldEnd();
11564
      }
11565
      iprot.readStructEnd();
11566
      validate();
11567
    }
11568
 
11569
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11570
      oprot.writeStructBegin(STRUCT_DESC);
11571
 
11572
      if (this.isSetSuccess()) {
11573
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11574
        {
9840 amit.gupta 11575
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11576
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11577
          {
9840 amit.gupta 11578
            _iter19.write(oprot);
4934 amit.gupta 11579
          }
11580
          oprot.writeListEnd();
11581
        }
11582
        oprot.writeFieldEnd();
11583
      } else if (this.isSetSe()) {
11584
        oprot.writeFieldBegin(SE_FIELD_DESC);
11585
        this.se.write(oprot);
11586
        oprot.writeFieldEnd();
11587
      }
11588
      oprot.writeFieldStop();
11589
      oprot.writeStructEnd();
11590
    }
11591
 
11592
    @Override
11593
    public String toString() {
11594
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11595
      boolean first = true;
11596
 
11597
      sb.append("success:");
11598
      if (this.success == null) {
11599
        sb.append("null");
11600
      } else {
11601
        sb.append(this.success);
11602
      }
11603
      first = false;
11604
      if (!first) sb.append(", ");
11605
      sb.append("se:");
11606
      if (this.se == null) {
11607
        sb.append("null");
11608
      } else {
11609
        sb.append(this.se);
11610
      }
11611
      first = false;
11612
      sb.append(")");
11613
      return sb.toString();
11614
    }
11615
 
11616
    public void validate() throws org.apache.thrift.TException {
11617
      // check for required fields
11618
    }
11619
 
11620
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11621
      try {
11622
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11623
      } catch (org.apache.thrift.TException te) {
11624
        throw new java.io.IOException(te);
11625
      }
11626
    }
11627
 
11628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11629
      try {
11630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11631
      } catch (org.apache.thrift.TException te) {
11632
        throw new java.io.IOException(te);
11633
      }
11634
    }
11635
 
11636
  }
11637
 
5527 anupam.sin 11638
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11640
 
11641
    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);
11642
 
11643
    private long pickUp; // required
11644
 
11645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11647
      PICK_UP((short)1, "pickUp");
11648
 
11649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11650
 
11651
      static {
11652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11653
          byName.put(field.getFieldName(), field);
11654
        }
11655
      }
11656
 
11657
      /**
11658
       * Find the _Fields constant that matches fieldId, or null if its not found.
11659
       */
11660
      public static _Fields findByThriftId(int fieldId) {
11661
        switch(fieldId) {
11662
          case 1: // PICK_UP
11663
            return PICK_UP;
11664
          default:
11665
            return null;
11666
        }
11667
      }
11668
 
11669
      /**
11670
       * Find the _Fields constant that matches fieldId, throwing an exception
11671
       * if it is not found.
11672
       */
11673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11674
        _Fields fields = findByThriftId(fieldId);
11675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11676
        return fields;
11677
      }
11678
 
11679
      /**
11680
       * Find the _Fields constant that matches name, or null if its not found.
11681
       */
11682
      public static _Fields findByName(String name) {
11683
        return byName.get(name);
11684
      }
11685
 
11686
      private final short _thriftId;
11687
      private final String _fieldName;
11688
 
11689
      _Fields(short thriftId, String fieldName) {
11690
        _thriftId = thriftId;
11691
        _fieldName = fieldName;
11692
      }
11693
 
11694
      public short getThriftFieldId() {
11695
        return _thriftId;
11696
      }
11697
 
11698
      public String getFieldName() {
11699
        return _fieldName;
11700
      }
11701
    }
11702
 
11703
    // isset id assignments
11704
    private static final int __PICKUP_ISSET_ID = 0;
11705
    private BitSet __isset_bit_vector = new BitSet(1);
11706
 
11707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11708
    static {
11709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11710
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11711
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11712
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11713
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11714
    }
11715
 
11716
    public getProviderForPickupType_args() {
11717
    }
11718
 
11719
    public getProviderForPickupType_args(
11720
      long pickUp)
11721
    {
11722
      this();
11723
      this.pickUp = pickUp;
11724
      setPickUpIsSet(true);
11725
    }
11726
 
11727
    /**
11728
     * Performs a deep copy on <i>other</i>.
11729
     */
11730
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11731
      __isset_bit_vector.clear();
11732
      __isset_bit_vector.or(other.__isset_bit_vector);
11733
      this.pickUp = other.pickUp;
11734
    }
11735
 
11736
    public getProviderForPickupType_args deepCopy() {
11737
      return new getProviderForPickupType_args(this);
11738
    }
11739
 
11740
    @Override
11741
    public void clear() {
11742
      setPickUpIsSet(false);
11743
      this.pickUp = 0;
11744
    }
11745
 
11746
    public long getPickUp() {
11747
      return this.pickUp;
11748
    }
11749
 
11750
    public void setPickUp(long pickUp) {
11751
      this.pickUp = pickUp;
11752
      setPickUpIsSet(true);
11753
    }
11754
 
11755
    public void unsetPickUp() {
11756
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11757
    }
11758
 
11759
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11760
    public boolean isSetPickUp() {
11761
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11762
    }
11763
 
11764
    public void setPickUpIsSet(boolean value) {
11765
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11766
    }
11767
 
11768
    public void setFieldValue(_Fields field, Object value) {
11769
      switch (field) {
11770
      case PICK_UP:
11771
        if (value == null) {
11772
          unsetPickUp();
11773
        } else {
11774
          setPickUp((Long)value);
11775
        }
11776
        break;
11777
 
11778
      }
11779
    }
11780
 
11781
    public Object getFieldValue(_Fields field) {
11782
      switch (field) {
11783
      case PICK_UP:
11784
        return Long.valueOf(getPickUp());
11785
 
11786
      }
11787
      throw new IllegalStateException();
11788
    }
11789
 
11790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11791
    public boolean isSet(_Fields field) {
11792
      if (field == null) {
11793
        throw new IllegalArgumentException();
11794
      }
11795
 
11796
      switch (field) {
11797
      case PICK_UP:
11798
        return isSetPickUp();
11799
      }
11800
      throw new IllegalStateException();
11801
    }
11802
 
11803
    @Override
11804
    public boolean equals(Object that) {
11805
      if (that == null)
11806
        return false;
11807
      if (that instanceof getProviderForPickupType_args)
11808
        return this.equals((getProviderForPickupType_args)that);
11809
      return false;
11810
    }
11811
 
11812
    public boolean equals(getProviderForPickupType_args that) {
11813
      if (that == null)
11814
        return false;
11815
 
11816
      boolean this_present_pickUp = true;
11817
      boolean that_present_pickUp = true;
11818
      if (this_present_pickUp || that_present_pickUp) {
11819
        if (!(this_present_pickUp && that_present_pickUp))
11820
          return false;
11821
        if (this.pickUp != that.pickUp)
11822
          return false;
11823
      }
11824
 
11825
      return true;
11826
    }
11827
 
11828
    @Override
11829
    public int hashCode() {
11830
      return 0;
11831
    }
11832
 
11833
    public int compareTo(getProviderForPickupType_args other) {
11834
      if (!getClass().equals(other.getClass())) {
11835
        return getClass().getName().compareTo(other.getClass().getName());
11836
      }
11837
 
11838
      int lastComparison = 0;
11839
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11840
 
11841
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11842
      if (lastComparison != 0) {
11843
        return lastComparison;
11844
      }
11845
      if (isSetPickUp()) {
11846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11847
        if (lastComparison != 0) {
11848
          return lastComparison;
11849
        }
11850
      }
11851
      return 0;
11852
    }
11853
 
11854
    public _Fields fieldForId(int fieldId) {
11855
      return _Fields.findByThriftId(fieldId);
11856
    }
11857
 
11858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11859
      org.apache.thrift.protocol.TField field;
11860
      iprot.readStructBegin();
11861
      while (true)
11862
      {
11863
        field = iprot.readFieldBegin();
11864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11865
          break;
11866
        }
11867
        switch (field.id) {
11868
          case 1: // PICK_UP
11869
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11870
              this.pickUp = iprot.readI64();
11871
              setPickUpIsSet(true);
11872
            } else { 
11873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11874
            }
11875
            break;
11876
          default:
11877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11878
        }
11879
        iprot.readFieldEnd();
11880
      }
11881
      iprot.readStructEnd();
11882
      validate();
11883
    }
11884
 
11885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11886
      validate();
11887
 
11888
      oprot.writeStructBegin(STRUCT_DESC);
11889
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11890
      oprot.writeI64(this.pickUp);
11891
      oprot.writeFieldEnd();
11892
      oprot.writeFieldStop();
11893
      oprot.writeStructEnd();
11894
    }
11895
 
11896
    @Override
11897
    public String toString() {
11898
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11899
      boolean first = true;
11900
 
11901
      sb.append("pickUp:");
11902
      sb.append(this.pickUp);
11903
      first = false;
11904
      sb.append(")");
11905
      return sb.toString();
11906
    }
11907
 
11908
    public void validate() throws org.apache.thrift.TException {
11909
      // check for required fields
11910
    }
11911
 
11912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11913
      try {
11914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11915
      } catch (org.apache.thrift.TException te) {
11916
        throw new java.io.IOException(te);
11917
      }
11918
    }
11919
 
11920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11921
      try {
11922
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11923
        __isset_bit_vector = new BitSet(1);
11924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11925
      } catch (org.apache.thrift.TException te) {
11926
        throw new java.io.IOException(te);
11927
      }
11928
    }
11929
 
11930
  }
11931
 
11932
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11934
 
11935
    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);
11936
 
11937
    private long success; // required
11938
 
11939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11941
      SUCCESS((short)0, "success");
11942
 
11943
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11944
 
11945
      static {
11946
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11947
          byName.put(field.getFieldName(), field);
11948
        }
11949
      }
11950
 
11951
      /**
11952
       * Find the _Fields constant that matches fieldId, or null if its not found.
11953
       */
11954
      public static _Fields findByThriftId(int fieldId) {
11955
        switch(fieldId) {
11956
          case 0: // SUCCESS
11957
            return SUCCESS;
11958
          default:
11959
            return null;
11960
        }
11961
      }
11962
 
11963
      /**
11964
       * Find the _Fields constant that matches fieldId, throwing an exception
11965
       * if it is not found.
11966
       */
11967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11968
        _Fields fields = findByThriftId(fieldId);
11969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11970
        return fields;
11971
      }
11972
 
11973
      /**
11974
       * Find the _Fields constant that matches name, or null if its not found.
11975
       */
11976
      public static _Fields findByName(String name) {
11977
        return byName.get(name);
11978
      }
11979
 
11980
      private final short _thriftId;
11981
      private final String _fieldName;
11982
 
11983
      _Fields(short thriftId, String fieldName) {
11984
        _thriftId = thriftId;
11985
        _fieldName = fieldName;
11986
      }
11987
 
11988
      public short getThriftFieldId() {
11989
        return _thriftId;
11990
      }
11991
 
11992
      public String getFieldName() {
11993
        return _fieldName;
11994
      }
11995
    }
11996
 
11997
    // isset id assignments
11998
    private static final int __SUCCESS_ISSET_ID = 0;
11999
    private BitSet __isset_bit_vector = new BitSet(1);
12000
 
12001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12002
    static {
12003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12004
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12005
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
12008
    }
12009
 
12010
    public getProviderForPickupType_result() {
12011
    }
12012
 
12013
    public getProviderForPickupType_result(
12014
      long success)
12015
    {
12016
      this();
12017
      this.success = success;
12018
      setSuccessIsSet(true);
12019
    }
12020
 
12021
    /**
12022
     * Performs a deep copy on <i>other</i>.
12023
     */
12024
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
12025
      __isset_bit_vector.clear();
12026
      __isset_bit_vector.or(other.__isset_bit_vector);
12027
      this.success = other.success;
12028
    }
12029
 
12030
    public getProviderForPickupType_result deepCopy() {
12031
      return new getProviderForPickupType_result(this);
12032
    }
12033
 
12034
    @Override
12035
    public void clear() {
12036
      setSuccessIsSet(false);
12037
      this.success = 0;
12038
    }
12039
 
12040
    public long getSuccess() {
12041
      return this.success;
12042
    }
12043
 
12044
    public void setSuccess(long success) {
12045
      this.success = success;
12046
      setSuccessIsSet(true);
12047
    }
12048
 
12049
    public void unsetSuccess() {
12050
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12051
    }
12052
 
12053
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12054
    public boolean isSetSuccess() {
12055
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12056
    }
12057
 
12058
    public void setSuccessIsSet(boolean value) {
12059
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12060
    }
12061
 
12062
    public void setFieldValue(_Fields field, Object value) {
12063
      switch (field) {
12064
      case SUCCESS:
12065
        if (value == null) {
12066
          unsetSuccess();
12067
        } else {
12068
          setSuccess((Long)value);
12069
        }
12070
        break;
12071
 
12072
      }
12073
    }
12074
 
12075
    public Object getFieldValue(_Fields field) {
12076
      switch (field) {
12077
      case SUCCESS:
12078
        return Long.valueOf(getSuccess());
12079
 
12080
      }
12081
      throw new IllegalStateException();
12082
    }
12083
 
12084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12085
    public boolean isSet(_Fields field) {
12086
      if (field == null) {
12087
        throw new IllegalArgumentException();
12088
      }
12089
 
12090
      switch (field) {
12091
      case SUCCESS:
12092
        return isSetSuccess();
12093
      }
12094
      throw new IllegalStateException();
12095
    }
12096
 
12097
    @Override
12098
    public boolean equals(Object that) {
12099
      if (that == null)
12100
        return false;
12101
      if (that instanceof getProviderForPickupType_result)
12102
        return this.equals((getProviderForPickupType_result)that);
12103
      return false;
12104
    }
12105
 
12106
    public boolean equals(getProviderForPickupType_result that) {
12107
      if (that == null)
12108
        return false;
12109
 
12110
      boolean this_present_success = true;
12111
      boolean that_present_success = true;
12112
      if (this_present_success || that_present_success) {
12113
        if (!(this_present_success && that_present_success))
12114
          return false;
12115
        if (this.success != that.success)
12116
          return false;
12117
      }
12118
 
12119
      return true;
12120
    }
12121
 
12122
    @Override
12123
    public int hashCode() {
12124
      return 0;
12125
    }
12126
 
12127
    public int compareTo(getProviderForPickupType_result other) {
12128
      if (!getClass().equals(other.getClass())) {
12129
        return getClass().getName().compareTo(other.getClass().getName());
12130
      }
12131
 
12132
      int lastComparison = 0;
12133
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12134
 
12135
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12136
      if (lastComparison != 0) {
12137
        return lastComparison;
12138
      }
12139
      if (isSetSuccess()) {
12140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12141
        if (lastComparison != 0) {
12142
          return lastComparison;
12143
        }
12144
      }
12145
      return 0;
12146
    }
12147
 
12148
    public _Fields fieldForId(int fieldId) {
12149
      return _Fields.findByThriftId(fieldId);
12150
    }
12151
 
12152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12153
      org.apache.thrift.protocol.TField field;
12154
      iprot.readStructBegin();
12155
      while (true)
12156
      {
12157
        field = iprot.readFieldBegin();
12158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12159
          break;
12160
        }
12161
        switch (field.id) {
12162
          case 0: // SUCCESS
12163
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12164
              this.success = iprot.readI64();
12165
              setSuccessIsSet(true);
12166
            } else { 
12167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12168
            }
12169
            break;
12170
          default:
12171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12172
        }
12173
        iprot.readFieldEnd();
12174
      }
12175
      iprot.readStructEnd();
12176
      validate();
12177
    }
12178
 
12179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12180
      oprot.writeStructBegin(STRUCT_DESC);
12181
 
12182
      if (this.isSetSuccess()) {
12183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12184
        oprot.writeI64(this.success);
12185
        oprot.writeFieldEnd();
12186
      }
12187
      oprot.writeFieldStop();
12188
      oprot.writeStructEnd();
12189
    }
12190
 
12191
    @Override
12192
    public String toString() {
12193
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12194
      boolean first = true;
12195
 
12196
      sb.append("success:");
12197
      sb.append(this.success);
12198
      first = false;
12199
      sb.append(")");
12200
      return sb.toString();
12201
    }
12202
 
12203
    public void validate() throws org.apache.thrift.TException {
12204
      // check for required fields
12205
    }
12206
 
12207
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12208
      try {
12209
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12210
      } catch (org.apache.thrift.TException te) {
12211
        throw new java.io.IOException(te);
12212
      }
12213
    }
12214
 
12215
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12216
      try {
12217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12218
      } catch (org.apache.thrift.TException te) {
12219
        throw new java.io.IOException(te);
12220
      }
12221
    }
12222
 
12223
  }
12224
 
5553 rajveer 12225
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12227
 
12228
 
12229
 
12230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12232
;
12233
 
12234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12235
 
12236
      static {
12237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12238
          byName.put(field.getFieldName(), field);
12239
        }
12240
      }
12241
 
12242
      /**
12243
       * Find the _Fields constant that matches fieldId, or null if its not found.
12244
       */
12245
      public static _Fields findByThriftId(int fieldId) {
12246
        switch(fieldId) {
12247
          default:
12248
            return null;
12249
        }
12250
      }
12251
 
12252
      /**
12253
       * Find the _Fields constant that matches fieldId, throwing an exception
12254
       * if it is not found.
12255
       */
12256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12257
        _Fields fields = findByThriftId(fieldId);
12258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12259
        return fields;
12260
      }
12261
 
12262
      /**
12263
       * Find the _Fields constant that matches name, or null if its not found.
12264
       */
12265
      public static _Fields findByName(String name) {
12266
        return byName.get(name);
12267
      }
12268
 
12269
      private final short _thriftId;
12270
      private final String _fieldName;
12271
 
12272
      _Fields(short thriftId, String fieldName) {
12273
        _thriftId = thriftId;
12274
        _fieldName = fieldName;
12275
      }
12276
 
12277
      public short getThriftFieldId() {
12278
        return _thriftId;
12279
      }
12280
 
12281
      public String getFieldName() {
12282
        return _fieldName;
12283
      }
12284
    }
12285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12286
    static {
12287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12290
    }
12291
 
12292
    public getAllPickupStores_args() {
12293
    }
12294
 
12295
    /**
12296
     * Performs a deep copy on <i>other</i>.
12297
     */
12298
    public getAllPickupStores_args(getAllPickupStores_args other) {
12299
    }
12300
 
12301
    public getAllPickupStores_args deepCopy() {
12302
      return new getAllPickupStores_args(this);
12303
    }
12304
 
12305
    @Override
12306
    public void clear() {
12307
    }
12308
 
12309
    public void setFieldValue(_Fields field, Object value) {
12310
      switch (field) {
12311
      }
12312
    }
12313
 
12314
    public Object getFieldValue(_Fields field) {
12315
      switch (field) {
12316
      }
12317
      throw new IllegalStateException();
12318
    }
12319
 
12320
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12321
    public boolean isSet(_Fields field) {
12322
      if (field == null) {
12323
        throw new IllegalArgumentException();
12324
      }
12325
 
12326
      switch (field) {
12327
      }
12328
      throw new IllegalStateException();
12329
    }
12330
 
12331
    @Override
12332
    public boolean equals(Object that) {
12333
      if (that == null)
12334
        return false;
12335
      if (that instanceof getAllPickupStores_args)
12336
        return this.equals((getAllPickupStores_args)that);
12337
      return false;
12338
    }
12339
 
12340
    public boolean equals(getAllPickupStores_args that) {
12341
      if (that == null)
12342
        return false;
12343
 
12344
      return true;
12345
    }
12346
 
12347
    @Override
12348
    public int hashCode() {
12349
      return 0;
12350
    }
12351
 
12352
    public int compareTo(getAllPickupStores_args other) {
12353
      if (!getClass().equals(other.getClass())) {
12354
        return getClass().getName().compareTo(other.getClass().getName());
12355
      }
12356
 
12357
      int lastComparison = 0;
12358
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12359
 
12360
      return 0;
12361
    }
12362
 
12363
    public _Fields fieldForId(int fieldId) {
12364
      return _Fields.findByThriftId(fieldId);
12365
    }
12366
 
12367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12368
      org.apache.thrift.protocol.TField field;
12369
      iprot.readStructBegin();
12370
      while (true)
12371
      {
12372
        field = iprot.readFieldBegin();
12373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12374
          break;
12375
        }
12376
        switch (field.id) {
12377
          default:
12378
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12379
        }
12380
        iprot.readFieldEnd();
12381
      }
12382
      iprot.readStructEnd();
12383
      validate();
12384
    }
12385
 
12386
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12387
      validate();
12388
 
12389
      oprot.writeStructBegin(STRUCT_DESC);
12390
      oprot.writeFieldStop();
12391
      oprot.writeStructEnd();
12392
    }
12393
 
12394
    @Override
12395
    public String toString() {
12396
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12397
      boolean first = true;
12398
 
12399
      sb.append(")");
12400
      return sb.toString();
12401
    }
12402
 
12403
    public void validate() throws org.apache.thrift.TException {
12404
      // check for required fields
12405
    }
12406
 
12407
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12408
      try {
12409
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12410
      } catch (org.apache.thrift.TException te) {
12411
        throw new java.io.IOException(te);
12412
      }
12413
    }
12414
 
12415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12416
      try {
12417
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12418
      } catch (org.apache.thrift.TException te) {
12419
        throw new java.io.IOException(te);
12420
      }
12421
    }
12422
 
12423
  }
12424
 
12425
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12426
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12427
 
12428
    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);
12429
 
12430
    private List<PickupStore> success; // required
12431
 
12432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12434
      SUCCESS((short)0, "success");
12435
 
12436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12437
 
12438
      static {
12439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12440
          byName.put(field.getFieldName(), field);
12441
        }
12442
      }
12443
 
12444
      /**
12445
       * Find the _Fields constant that matches fieldId, or null if its not found.
12446
       */
12447
      public static _Fields findByThriftId(int fieldId) {
12448
        switch(fieldId) {
12449
          case 0: // SUCCESS
12450
            return SUCCESS;
12451
          default:
12452
            return null;
12453
        }
12454
      }
12455
 
12456
      /**
12457
       * Find the _Fields constant that matches fieldId, throwing an exception
12458
       * if it is not found.
12459
       */
12460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12461
        _Fields fields = findByThriftId(fieldId);
12462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12463
        return fields;
12464
      }
12465
 
12466
      /**
12467
       * Find the _Fields constant that matches name, or null if its not found.
12468
       */
12469
      public static _Fields findByName(String name) {
12470
        return byName.get(name);
12471
      }
12472
 
12473
      private final short _thriftId;
12474
      private final String _fieldName;
12475
 
12476
      _Fields(short thriftId, String fieldName) {
12477
        _thriftId = thriftId;
12478
        _fieldName = fieldName;
12479
      }
12480
 
12481
      public short getThriftFieldId() {
12482
        return _thriftId;
12483
      }
12484
 
12485
      public String getFieldName() {
12486
        return _fieldName;
12487
      }
12488
    }
12489
 
12490
    // isset id assignments
12491
 
12492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12493
    static {
12494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12495
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12496
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12497
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12498
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12499
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12500
    }
12501
 
12502
    public getAllPickupStores_result() {
12503
    }
12504
 
12505
    public getAllPickupStores_result(
12506
      List<PickupStore> success)
12507
    {
12508
      this();
12509
      this.success = success;
12510
    }
12511
 
12512
    /**
12513
     * Performs a deep copy on <i>other</i>.
12514
     */
12515
    public getAllPickupStores_result(getAllPickupStores_result other) {
12516
      if (other.isSetSuccess()) {
12517
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12518
        for (PickupStore other_element : other.success) {
12519
          __this__success.add(new PickupStore(other_element));
12520
        }
12521
        this.success = __this__success;
12522
      }
12523
    }
12524
 
12525
    public getAllPickupStores_result deepCopy() {
12526
      return new getAllPickupStores_result(this);
12527
    }
12528
 
12529
    @Override
12530
    public void clear() {
12531
      this.success = null;
12532
    }
12533
 
12534
    public int getSuccessSize() {
12535
      return (this.success == null) ? 0 : this.success.size();
12536
    }
12537
 
12538
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12539
      return (this.success == null) ? null : this.success.iterator();
12540
    }
12541
 
12542
    public void addToSuccess(PickupStore elem) {
12543
      if (this.success == null) {
12544
        this.success = new ArrayList<PickupStore>();
12545
      }
12546
      this.success.add(elem);
12547
    }
12548
 
12549
    public List<PickupStore> getSuccess() {
12550
      return this.success;
12551
    }
12552
 
12553
    public void setSuccess(List<PickupStore> success) {
12554
      this.success = success;
12555
    }
12556
 
12557
    public void unsetSuccess() {
12558
      this.success = null;
12559
    }
12560
 
12561
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12562
    public boolean isSetSuccess() {
12563
      return this.success != null;
12564
    }
12565
 
12566
    public void setSuccessIsSet(boolean value) {
12567
      if (!value) {
12568
        this.success = null;
12569
      }
12570
    }
12571
 
12572
    public void setFieldValue(_Fields field, Object value) {
12573
      switch (field) {
12574
      case SUCCESS:
12575
        if (value == null) {
12576
          unsetSuccess();
12577
        } else {
12578
          setSuccess((List<PickupStore>)value);
12579
        }
12580
        break;
12581
 
12582
      }
12583
    }
12584
 
12585
    public Object getFieldValue(_Fields field) {
12586
      switch (field) {
12587
      case SUCCESS:
12588
        return getSuccess();
12589
 
12590
      }
12591
      throw new IllegalStateException();
12592
    }
12593
 
12594
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12595
    public boolean isSet(_Fields field) {
12596
      if (field == null) {
12597
        throw new IllegalArgumentException();
12598
      }
12599
 
12600
      switch (field) {
12601
      case SUCCESS:
12602
        return isSetSuccess();
12603
      }
12604
      throw new IllegalStateException();
12605
    }
12606
 
12607
    @Override
12608
    public boolean equals(Object that) {
12609
      if (that == null)
12610
        return false;
12611
      if (that instanceof getAllPickupStores_result)
12612
        return this.equals((getAllPickupStores_result)that);
12613
      return false;
12614
    }
12615
 
12616
    public boolean equals(getAllPickupStores_result that) {
12617
      if (that == null)
12618
        return false;
12619
 
12620
      boolean this_present_success = true && this.isSetSuccess();
12621
      boolean that_present_success = true && that.isSetSuccess();
12622
      if (this_present_success || that_present_success) {
12623
        if (!(this_present_success && that_present_success))
12624
          return false;
12625
        if (!this.success.equals(that.success))
12626
          return false;
12627
      }
12628
 
12629
      return true;
12630
    }
12631
 
12632
    @Override
12633
    public int hashCode() {
12634
      return 0;
12635
    }
12636
 
12637
    public int compareTo(getAllPickupStores_result other) {
12638
      if (!getClass().equals(other.getClass())) {
12639
        return getClass().getName().compareTo(other.getClass().getName());
12640
      }
12641
 
12642
      int lastComparison = 0;
12643
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12644
 
12645
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12646
      if (lastComparison != 0) {
12647
        return lastComparison;
12648
      }
12649
      if (isSetSuccess()) {
12650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12651
        if (lastComparison != 0) {
12652
          return lastComparison;
12653
        }
12654
      }
12655
      return 0;
12656
    }
12657
 
12658
    public _Fields fieldForId(int fieldId) {
12659
      return _Fields.findByThriftId(fieldId);
12660
    }
12661
 
12662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12663
      org.apache.thrift.protocol.TField field;
12664
      iprot.readStructBegin();
12665
      while (true)
12666
      {
12667
        field = iprot.readFieldBegin();
12668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12669
          break;
12670
        }
12671
        switch (field.id) {
12672
          case 0: // SUCCESS
12673
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12674
              {
7792 anupam.sin 12675
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12676
                this.success = new ArrayList<PickupStore>(_list20.size);
12677
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12678
                {
7792 anupam.sin 12679
                  PickupStore _elem22; // required
12680
                  _elem22 = new PickupStore();
12681
                  _elem22.read(iprot);
12682
                  this.success.add(_elem22);
5553 rajveer 12683
                }
12684
                iprot.readListEnd();
12685
              }
12686
            } else { 
12687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12688
            }
12689
            break;
12690
          default:
12691
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12692
        }
12693
        iprot.readFieldEnd();
12694
      }
12695
      iprot.readStructEnd();
12696
      validate();
12697
    }
12698
 
12699
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12700
      oprot.writeStructBegin(STRUCT_DESC);
12701
 
12702
      if (this.isSetSuccess()) {
12703
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12704
        {
12705
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12706
          for (PickupStore _iter23 : this.success)
5553 rajveer 12707
          {
7792 anupam.sin 12708
            _iter23.write(oprot);
5553 rajveer 12709
          }
12710
          oprot.writeListEnd();
12711
        }
12712
        oprot.writeFieldEnd();
12713
      }
12714
      oprot.writeFieldStop();
12715
      oprot.writeStructEnd();
12716
    }
12717
 
12718
    @Override
12719
    public String toString() {
12720
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12721
      boolean first = true;
12722
 
12723
      sb.append("success:");
12724
      if (this.success == null) {
12725
        sb.append("null");
12726
      } else {
12727
        sb.append(this.success);
12728
      }
12729
      first = false;
12730
      sb.append(")");
12731
      return sb.toString();
12732
    }
12733
 
12734
    public void validate() throws org.apache.thrift.TException {
12735
      // check for required fields
12736
    }
12737
 
12738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12739
      try {
12740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12741
      } catch (org.apache.thrift.TException te) {
12742
        throw new java.io.IOException(te);
12743
      }
12744
    }
12745
 
12746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12747
      try {
12748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12749
      } catch (org.apache.thrift.TException te) {
12750
        throw new java.io.IOException(te);
12751
      }
12752
    }
12753
 
12754
  }
12755
 
12756
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12758
 
12759
    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);
12760
 
12761
    private long storeId; // required
12762
 
12763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12765
      STORE_ID((short)1, "storeId");
12766
 
12767
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12768
 
12769
      static {
12770
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12771
          byName.put(field.getFieldName(), field);
12772
        }
12773
      }
12774
 
12775
      /**
12776
       * Find the _Fields constant that matches fieldId, or null if its not found.
12777
       */
12778
      public static _Fields findByThriftId(int fieldId) {
12779
        switch(fieldId) {
12780
          case 1: // STORE_ID
12781
            return STORE_ID;
12782
          default:
12783
            return null;
12784
        }
12785
      }
12786
 
12787
      /**
12788
       * Find the _Fields constant that matches fieldId, throwing an exception
12789
       * if it is not found.
12790
       */
12791
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12792
        _Fields fields = findByThriftId(fieldId);
12793
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12794
        return fields;
12795
      }
12796
 
12797
      /**
12798
       * Find the _Fields constant that matches name, or null if its not found.
12799
       */
12800
      public static _Fields findByName(String name) {
12801
        return byName.get(name);
12802
      }
12803
 
12804
      private final short _thriftId;
12805
      private final String _fieldName;
12806
 
12807
      _Fields(short thriftId, String fieldName) {
12808
        _thriftId = thriftId;
12809
        _fieldName = fieldName;
12810
      }
12811
 
12812
      public short getThriftFieldId() {
12813
        return _thriftId;
12814
      }
12815
 
12816
      public String getFieldName() {
12817
        return _fieldName;
12818
      }
12819
    }
12820
 
12821
    // isset id assignments
12822
    private static final int __STOREID_ISSET_ID = 0;
12823
    private BitSet __isset_bit_vector = new BitSet(1);
12824
 
12825
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12826
    static {
12827
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12828
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12832
    }
12833
 
12834
    public getPickupStore_args() {
12835
    }
12836
 
12837
    public getPickupStore_args(
12838
      long storeId)
12839
    {
12840
      this();
12841
      this.storeId = storeId;
12842
      setStoreIdIsSet(true);
12843
    }
12844
 
12845
    /**
12846
     * Performs a deep copy on <i>other</i>.
12847
     */
12848
    public getPickupStore_args(getPickupStore_args other) {
12849
      __isset_bit_vector.clear();
12850
      __isset_bit_vector.or(other.__isset_bit_vector);
12851
      this.storeId = other.storeId;
12852
    }
12853
 
12854
    public getPickupStore_args deepCopy() {
12855
      return new getPickupStore_args(this);
12856
    }
12857
 
12858
    @Override
12859
    public void clear() {
12860
      setStoreIdIsSet(false);
12861
      this.storeId = 0;
12862
    }
12863
 
12864
    public long getStoreId() {
12865
      return this.storeId;
12866
    }
12867
 
12868
    public void setStoreId(long storeId) {
12869
      this.storeId = storeId;
12870
      setStoreIdIsSet(true);
12871
    }
12872
 
12873
    public void unsetStoreId() {
12874
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12875
    }
12876
 
12877
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12878
    public boolean isSetStoreId() {
12879
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12880
    }
12881
 
12882
    public void setStoreIdIsSet(boolean value) {
12883
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12884
    }
12885
 
12886
    public void setFieldValue(_Fields field, Object value) {
12887
      switch (field) {
12888
      case STORE_ID:
12889
        if (value == null) {
12890
          unsetStoreId();
12891
        } else {
12892
          setStoreId((Long)value);
12893
        }
12894
        break;
12895
 
12896
      }
12897
    }
12898
 
12899
    public Object getFieldValue(_Fields field) {
12900
      switch (field) {
12901
      case STORE_ID:
12902
        return Long.valueOf(getStoreId());
12903
 
12904
      }
12905
      throw new IllegalStateException();
12906
    }
12907
 
12908
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12909
    public boolean isSet(_Fields field) {
12910
      if (field == null) {
12911
        throw new IllegalArgumentException();
12912
      }
12913
 
12914
      switch (field) {
12915
      case STORE_ID:
12916
        return isSetStoreId();
12917
      }
12918
      throw new IllegalStateException();
12919
    }
12920
 
12921
    @Override
12922
    public boolean equals(Object that) {
12923
      if (that == null)
12924
        return false;
12925
      if (that instanceof getPickupStore_args)
12926
        return this.equals((getPickupStore_args)that);
12927
      return false;
12928
    }
12929
 
12930
    public boolean equals(getPickupStore_args that) {
12931
      if (that == null)
12932
        return false;
12933
 
12934
      boolean this_present_storeId = true;
12935
      boolean that_present_storeId = true;
12936
      if (this_present_storeId || that_present_storeId) {
12937
        if (!(this_present_storeId && that_present_storeId))
12938
          return false;
12939
        if (this.storeId != that.storeId)
12940
          return false;
12941
      }
12942
 
12943
      return true;
12944
    }
12945
 
12946
    @Override
12947
    public int hashCode() {
12948
      return 0;
12949
    }
12950
 
12951
    public int compareTo(getPickupStore_args other) {
12952
      if (!getClass().equals(other.getClass())) {
12953
        return getClass().getName().compareTo(other.getClass().getName());
12954
      }
12955
 
12956
      int lastComparison = 0;
12957
      getPickupStore_args typedOther = (getPickupStore_args)other;
12958
 
12959
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12960
      if (lastComparison != 0) {
12961
        return lastComparison;
12962
      }
12963
      if (isSetStoreId()) {
12964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12965
        if (lastComparison != 0) {
12966
          return lastComparison;
12967
        }
12968
      }
12969
      return 0;
12970
    }
12971
 
12972
    public _Fields fieldForId(int fieldId) {
12973
      return _Fields.findByThriftId(fieldId);
12974
    }
12975
 
12976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12977
      org.apache.thrift.protocol.TField field;
12978
      iprot.readStructBegin();
12979
      while (true)
12980
      {
12981
        field = iprot.readFieldBegin();
12982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12983
          break;
12984
        }
12985
        switch (field.id) {
12986
          case 1: // STORE_ID
12987
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12988
              this.storeId = iprot.readI64();
12989
              setStoreIdIsSet(true);
12990
            } else { 
12991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12992
            }
12993
            break;
12994
          default:
12995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12996
        }
12997
        iprot.readFieldEnd();
12998
      }
12999
      iprot.readStructEnd();
13000
      validate();
13001
    }
13002
 
13003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13004
      validate();
13005
 
13006
      oprot.writeStructBegin(STRUCT_DESC);
13007
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
13008
      oprot.writeI64(this.storeId);
13009
      oprot.writeFieldEnd();
13010
      oprot.writeFieldStop();
13011
      oprot.writeStructEnd();
13012
    }
13013
 
13014
    @Override
13015
    public String toString() {
13016
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
13017
      boolean first = true;
13018
 
13019
      sb.append("storeId:");
13020
      sb.append(this.storeId);
13021
      first = false;
13022
      sb.append(")");
13023
      return sb.toString();
13024
    }
13025
 
13026
    public void validate() throws org.apache.thrift.TException {
13027
      // check for required fields
13028
    }
13029
 
13030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13031
      try {
13032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13033
      } catch (org.apache.thrift.TException te) {
13034
        throw new java.io.IOException(te);
13035
      }
13036
    }
13037
 
13038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13039
      try {
13040
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13041
        __isset_bit_vector = new BitSet(1);
13042
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13043
      } catch (org.apache.thrift.TException te) {
13044
        throw new java.io.IOException(te);
13045
      }
13046
    }
13047
 
13048
  }
13049
 
13050
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
13051
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
13052
 
13053
    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);
13054
 
13055
    private PickupStore success; // required
13056
 
13057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13059
      SUCCESS((short)0, "success");
13060
 
13061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13062
 
13063
      static {
13064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13065
          byName.put(field.getFieldName(), field);
13066
        }
13067
      }
13068
 
13069
      /**
13070
       * Find the _Fields constant that matches fieldId, or null if its not found.
13071
       */
13072
      public static _Fields findByThriftId(int fieldId) {
13073
        switch(fieldId) {
13074
          case 0: // SUCCESS
13075
            return SUCCESS;
13076
          default:
13077
            return null;
13078
        }
13079
      }
13080
 
13081
      /**
13082
       * Find the _Fields constant that matches fieldId, throwing an exception
13083
       * if it is not found.
13084
       */
13085
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13086
        _Fields fields = findByThriftId(fieldId);
13087
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13088
        return fields;
13089
      }
13090
 
13091
      /**
13092
       * Find the _Fields constant that matches name, or null if its not found.
13093
       */
13094
      public static _Fields findByName(String name) {
13095
        return byName.get(name);
13096
      }
13097
 
13098
      private final short _thriftId;
13099
      private final String _fieldName;
13100
 
13101
      _Fields(short thriftId, String fieldName) {
13102
        _thriftId = thriftId;
13103
        _fieldName = fieldName;
13104
      }
13105
 
13106
      public short getThriftFieldId() {
13107
        return _thriftId;
13108
      }
13109
 
13110
      public String getFieldName() {
13111
        return _fieldName;
13112
      }
13113
    }
13114
 
13115
    // isset id assignments
13116
 
13117
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13118
    static {
13119
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13120
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13121
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13122
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13123
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13124
    }
13125
 
13126
    public getPickupStore_result() {
13127
    }
13128
 
13129
    public getPickupStore_result(
13130
      PickupStore success)
13131
    {
13132
      this();
13133
      this.success = success;
13134
    }
13135
 
13136
    /**
13137
     * Performs a deep copy on <i>other</i>.
13138
     */
13139
    public getPickupStore_result(getPickupStore_result other) {
13140
      if (other.isSetSuccess()) {
13141
        this.success = new PickupStore(other.success);
13142
      }
13143
    }
13144
 
13145
    public getPickupStore_result deepCopy() {
13146
      return new getPickupStore_result(this);
13147
    }
13148
 
13149
    @Override
13150
    public void clear() {
13151
      this.success = null;
13152
    }
13153
 
13154
    public PickupStore getSuccess() {
13155
      return this.success;
13156
    }
13157
 
13158
    public void setSuccess(PickupStore success) {
13159
      this.success = success;
13160
    }
13161
 
13162
    public void unsetSuccess() {
13163
      this.success = null;
13164
    }
13165
 
13166
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13167
    public boolean isSetSuccess() {
13168
      return this.success != null;
13169
    }
13170
 
13171
    public void setSuccessIsSet(boolean value) {
13172
      if (!value) {
13173
        this.success = null;
13174
      }
13175
    }
13176
 
13177
    public void setFieldValue(_Fields field, Object value) {
13178
      switch (field) {
13179
      case SUCCESS:
13180
        if (value == null) {
13181
          unsetSuccess();
13182
        } else {
13183
          setSuccess((PickupStore)value);
13184
        }
13185
        break;
13186
 
13187
      }
13188
    }
13189
 
13190
    public Object getFieldValue(_Fields field) {
13191
      switch (field) {
13192
      case SUCCESS:
13193
        return getSuccess();
13194
 
13195
      }
13196
      throw new IllegalStateException();
13197
    }
13198
 
13199
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13200
    public boolean isSet(_Fields field) {
13201
      if (field == null) {
13202
        throw new IllegalArgumentException();
13203
      }
13204
 
13205
      switch (field) {
13206
      case SUCCESS:
13207
        return isSetSuccess();
13208
      }
13209
      throw new IllegalStateException();
13210
    }
13211
 
13212
    @Override
13213
    public boolean equals(Object that) {
13214
      if (that == null)
13215
        return false;
13216
      if (that instanceof getPickupStore_result)
13217
        return this.equals((getPickupStore_result)that);
13218
      return false;
13219
    }
13220
 
13221
    public boolean equals(getPickupStore_result that) {
13222
      if (that == null)
13223
        return false;
13224
 
13225
      boolean this_present_success = true && this.isSetSuccess();
13226
      boolean that_present_success = true && that.isSetSuccess();
13227
      if (this_present_success || that_present_success) {
13228
        if (!(this_present_success && that_present_success))
13229
          return false;
13230
        if (!this.success.equals(that.success))
13231
          return false;
13232
      }
13233
 
13234
      return true;
13235
    }
13236
 
13237
    @Override
13238
    public int hashCode() {
13239
      return 0;
13240
    }
13241
 
13242
    public int compareTo(getPickupStore_result other) {
13243
      if (!getClass().equals(other.getClass())) {
13244
        return getClass().getName().compareTo(other.getClass().getName());
13245
      }
13246
 
13247
      int lastComparison = 0;
13248
      getPickupStore_result typedOther = (getPickupStore_result)other;
13249
 
13250
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13251
      if (lastComparison != 0) {
13252
        return lastComparison;
13253
      }
13254
      if (isSetSuccess()) {
13255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13256
        if (lastComparison != 0) {
13257
          return lastComparison;
13258
        }
13259
      }
13260
      return 0;
13261
    }
13262
 
13263
    public _Fields fieldForId(int fieldId) {
13264
      return _Fields.findByThriftId(fieldId);
13265
    }
13266
 
13267
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13268
      org.apache.thrift.protocol.TField field;
13269
      iprot.readStructBegin();
13270
      while (true)
13271
      {
13272
        field = iprot.readFieldBegin();
13273
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13274
          break;
13275
        }
13276
        switch (field.id) {
13277
          case 0: // SUCCESS
13278
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13279
              this.success = new PickupStore();
13280
              this.success.read(iprot);
13281
            } else { 
13282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13283
            }
13284
            break;
13285
          default:
13286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13287
        }
13288
        iprot.readFieldEnd();
13289
      }
13290
      iprot.readStructEnd();
13291
      validate();
13292
    }
13293
 
13294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13295
      oprot.writeStructBegin(STRUCT_DESC);
13296
 
13297
      if (this.isSetSuccess()) {
13298
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13299
        this.success.write(oprot);
13300
        oprot.writeFieldEnd();
13301
      }
13302
      oprot.writeFieldStop();
13303
      oprot.writeStructEnd();
13304
    }
13305
 
13306
    @Override
13307
    public String toString() {
13308
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13309
      boolean first = true;
13310
 
13311
      sb.append("success:");
13312
      if (this.success == null) {
13313
        sb.append("null");
13314
      } else {
13315
        sb.append(this.success);
13316
      }
13317
      first = false;
13318
      sb.append(")");
13319
      return sb.toString();
13320
    }
13321
 
13322
    public void validate() throws org.apache.thrift.TException {
13323
      // check for required fields
13324
    }
13325
 
13326
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13327
      try {
13328
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13329
      } catch (org.apache.thrift.TException te) {
13330
        throw new java.io.IOException(te);
13331
      }
13332
    }
13333
 
13334
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13335
      try {
13336
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13337
      } catch (org.apache.thrift.TException te) {
13338
        throw new java.io.IOException(te);
13339
      }
13340
    }
13341
 
13342
  }
13343
 
5719 rajveer 13344
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13345
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13346
 
13347
    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);
13348
 
13349
    private String hotspotId; // required
13350
 
13351
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13352
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13353
      HOTSPOT_ID((short)1, "hotspotId");
13354
 
13355
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13356
 
13357
      static {
13358
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13359
          byName.put(field.getFieldName(), field);
13360
        }
13361
      }
13362
 
13363
      /**
13364
       * Find the _Fields constant that matches fieldId, or null if its not found.
13365
       */
13366
      public static _Fields findByThriftId(int fieldId) {
13367
        switch(fieldId) {
13368
          case 1: // HOTSPOT_ID
13369
            return HOTSPOT_ID;
13370
          default:
13371
            return null;
13372
        }
13373
      }
13374
 
13375
      /**
13376
       * Find the _Fields constant that matches fieldId, throwing an exception
13377
       * if it is not found.
13378
       */
13379
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13380
        _Fields fields = findByThriftId(fieldId);
13381
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13382
        return fields;
13383
      }
13384
 
13385
      /**
13386
       * Find the _Fields constant that matches name, or null if its not found.
13387
       */
13388
      public static _Fields findByName(String name) {
13389
        return byName.get(name);
13390
      }
13391
 
13392
      private final short _thriftId;
13393
      private final String _fieldName;
13394
 
13395
      _Fields(short thriftId, String fieldName) {
13396
        _thriftId = thriftId;
13397
        _fieldName = fieldName;
13398
      }
13399
 
13400
      public short getThriftFieldId() {
13401
        return _thriftId;
13402
      }
13403
 
13404
      public String getFieldName() {
13405
        return _fieldName;
13406
      }
13407
    }
13408
 
13409
    // isset id assignments
13410
 
13411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13412
    static {
13413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13414
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13416
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13417
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13418
    }
13419
 
13420
    public getPickupStoreByHotspotId_args() {
13421
    }
13422
 
13423
    public getPickupStoreByHotspotId_args(
13424
      String hotspotId)
13425
    {
13426
      this();
13427
      this.hotspotId = hotspotId;
13428
    }
13429
 
13430
    /**
13431
     * Performs a deep copy on <i>other</i>.
13432
     */
13433
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13434
      if (other.isSetHotspotId()) {
13435
        this.hotspotId = other.hotspotId;
13436
      }
13437
    }
13438
 
13439
    public getPickupStoreByHotspotId_args deepCopy() {
13440
      return new getPickupStoreByHotspotId_args(this);
13441
    }
13442
 
13443
    @Override
13444
    public void clear() {
13445
      this.hotspotId = null;
13446
    }
13447
 
13448
    public String getHotspotId() {
13449
      return this.hotspotId;
13450
    }
13451
 
13452
    public void setHotspotId(String hotspotId) {
13453
      this.hotspotId = hotspotId;
13454
    }
13455
 
13456
    public void unsetHotspotId() {
13457
      this.hotspotId = null;
13458
    }
13459
 
13460
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13461
    public boolean isSetHotspotId() {
13462
      return this.hotspotId != null;
13463
    }
13464
 
13465
    public void setHotspotIdIsSet(boolean value) {
13466
      if (!value) {
13467
        this.hotspotId = null;
13468
      }
13469
    }
13470
 
13471
    public void setFieldValue(_Fields field, Object value) {
13472
      switch (field) {
13473
      case HOTSPOT_ID:
13474
        if (value == null) {
13475
          unsetHotspotId();
13476
        } else {
13477
          setHotspotId((String)value);
13478
        }
13479
        break;
13480
 
13481
      }
13482
    }
13483
 
13484
    public Object getFieldValue(_Fields field) {
13485
      switch (field) {
13486
      case HOTSPOT_ID:
13487
        return getHotspotId();
13488
 
13489
      }
13490
      throw new IllegalStateException();
13491
    }
13492
 
13493
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13494
    public boolean isSet(_Fields field) {
13495
      if (field == null) {
13496
        throw new IllegalArgumentException();
13497
      }
13498
 
13499
      switch (field) {
13500
      case HOTSPOT_ID:
13501
        return isSetHotspotId();
13502
      }
13503
      throw new IllegalStateException();
13504
    }
13505
 
13506
    @Override
13507
    public boolean equals(Object that) {
13508
      if (that == null)
13509
        return false;
13510
      if (that instanceof getPickupStoreByHotspotId_args)
13511
        return this.equals((getPickupStoreByHotspotId_args)that);
13512
      return false;
13513
    }
13514
 
13515
    public boolean equals(getPickupStoreByHotspotId_args that) {
13516
      if (that == null)
13517
        return false;
13518
 
13519
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13520
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13521
      if (this_present_hotspotId || that_present_hotspotId) {
13522
        if (!(this_present_hotspotId && that_present_hotspotId))
13523
          return false;
13524
        if (!this.hotspotId.equals(that.hotspotId))
13525
          return false;
13526
      }
13527
 
13528
      return true;
13529
    }
13530
 
13531
    @Override
13532
    public int hashCode() {
13533
      return 0;
13534
    }
13535
 
13536
    public int compareTo(getPickupStoreByHotspotId_args other) {
13537
      if (!getClass().equals(other.getClass())) {
13538
        return getClass().getName().compareTo(other.getClass().getName());
13539
      }
13540
 
13541
      int lastComparison = 0;
13542
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13543
 
13544
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13545
      if (lastComparison != 0) {
13546
        return lastComparison;
13547
      }
13548
      if (isSetHotspotId()) {
13549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13550
        if (lastComparison != 0) {
13551
          return lastComparison;
13552
        }
13553
      }
13554
      return 0;
13555
    }
13556
 
13557
    public _Fields fieldForId(int fieldId) {
13558
      return _Fields.findByThriftId(fieldId);
13559
    }
13560
 
13561
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13562
      org.apache.thrift.protocol.TField field;
13563
      iprot.readStructBegin();
13564
      while (true)
13565
      {
13566
        field = iprot.readFieldBegin();
13567
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13568
          break;
13569
        }
13570
        switch (field.id) {
13571
          case 1: // HOTSPOT_ID
13572
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13573
              this.hotspotId = iprot.readString();
13574
            } else { 
13575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13576
            }
13577
            break;
13578
          default:
13579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13580
        }
13581
        iprot.readFieldEnd();
13582
      }
13583
      iprot.readStructEnd();
13584
      validate();
13585
    }
13586
 
13587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13588
      validate();
13589
 
13590
      oprot.writeStructBegin(STRUCT_DESC);
13591
      if (this.hotspotId != null) {
13592
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13593
        oprot.writeString(this.hotspotId);
13594
        oprot.writeFieldEnd();
13595
      }
13596
      oprot.writeFieldStop();
13597
      oprot.writeStructEnd();
13598
    }
13599
 
13600
    @Override
13601
    public String toString() {
13602
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13603
      boolean first = true;
13604
 
13605
      sb.append("hotspotId:");
13606
      if (this.hotspotId == null) {
13607
        sb.append("null");
13608
      } else {
13609
        sb.append(this.hotspotId);
13610
      }
13611
      first = false;
13612
      sb.append(")");
13613
      return sb.toString();
13614
    }
13615
 
13616
    public void validate() throws org.apache.thrift.TException {
13617
      // check for required fields
13618
    }
13619
 
13620
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13621
      try {
13622
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13623
      } catch (org.apache.thrift.TException te) {
13624
        throw new java.io.IOException(te);
13625
      }
13626
    }
13627
 
13628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13629
      try {
13630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13631
      } catch (org.apache.thrift.TException te) {
13632
        throw new java.io.IOException(te);
13633
      }
13634
    }
13635
 
13636
  }
13637
 
13638
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13640
 
13641
    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);
13642
 
13643
    private PickupStore success; // required
13644
 
13645
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13646
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13647
      SUCCESS((short)0, "success");
13648
 
13649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13650
 
13651
      static {
13652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13653
          byName.put(field.getFieldName(), field);
13654
        }
13655
      }
13656
 
13657
      /**
13658
       * Find the _Fields constant that matches fieldId, or null if its not found.
13659
       */
13660
      public static _Fields findByThriftId(int fieldId) {
13661
        switch(fieldId) {
13662
          case 0: // SUCCESS
13663
            return SUCCESS;
13664
          default:
13665
            return null;
13666
        }
13667
      }
13668
 
13669
      /**
13670
       * Find the _Fields constant that matches fieldId, throwing an exception
13671
       * if it is not found.
13672
       */
13673
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13674
        _Fields fields = findByThriftId(fieldId);
13675
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13676
        return fields;
13677
      }
13678
 
13679
      /**
13680
       * Find the _Fields constant that matches name, or null if its not found.
13681
       */
13682
      public static _Fields findByName(String name) {
13683
        return byName.get(name);
13684
      }
13685
 
13686
      private final short _thriftId;
13687
      private final String _fieldName;
13688
 
13689
      _Fields(short thriftId, String fieldName) {
13690
        _thriftId = thriftId;
13691
        _fieldName = fieldName;
13692
      }
13693
 
13694
      public short getThriftFieldId() {
13695
        return _thriftId;
13696
      }
13697
 
13698
      public String getFieldName() {
13699
        return _fieldName;
13700
      }
13701
    }
13702
 
13703
    // isset id assignments
13704
 
13705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13706
    static {
13707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13708
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13709
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13712
    }
13713
 
13714
    public getPickupStoreByHotspotId_result() {
13715
    }
13716
 
13717
    public getPickupStoreByHotspotId_result(
13718
      PickupStore success)
13719
    {
13720
      this();
13721
      this.success = success;
13722
    }
13723
 
13724
    /**
13725
     * Performs a deep copy on <i>other</i>.
13726
     */
13727
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13728
      if (other.isSetSuccess()) {
13729
        this.success = new PickupStore(other.success);
13730
      }
13731
    }
13732
 
13733
    public getPickupStoreByHotspotId_result deepCopy() {
13734
      return new getPickupStoreByHotspotId_result(this);
13735
    }
13736
 
13737
    @Override
13738
    public void clear() {
13739
      this.success = null;
13740
    }
13741
 
13742
    public PickupStore getSuccess() {
13743
      return this.success;
13744
    }
13745
 
13746
    public void setSuccess(PickupStore success) {
13747
      this.success = success;
13748
    }
13749
 
13750
    public void unsetSuccess() {
13751
      this.success = null;
13752
    }
13753
 
13754
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13755
    public boolean isSetSuccess() {
13756
      return this.success != null;
13757
    }
13758
 
13759
    public void setSuccessIsSet(boolean value) {
13760
      if (!value) {
13761
        this.success = null;
13762
      }
13763
    }
13764
 
13765
    public void setFieldValue(_Fields field, Object value) {
13766
      switch (field) {
13767
      case SUCCESS:
13768
        if (value == null) {
13769
          unsetSuccess();
13770
        } else {
13771
          setSuccess((PickupStore)value);
13772
        }
13773
        break;
13774
 
13775
      }
13776
    }
13777
 
13778
    public Object getFieldValue(_Fields field) {
13779
      switch (field) {
13780
      case SUCCESS:
13781
        return getSuccess();
13782
 
13783
      }
13784
      throw new IllegalStateException();
13785
    }
13786
 
13787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13788
    public boolean isSet(_Fields field) {
13789
      if (field == null) {
13790
        throw new IllegalArgumentException();
13791
      }
13792
 
13793
      switch (field) {
13794
      case SUCCESS:
13795
        return isSetSuccess();
13796
      }
13797
      throw new IllegalStateException();
13798
    }
13799
 
13800
    @Override
13801
    public boolean equals(Object that) {
13802
      if (that == null)
13803
        return false;
13804
      if (that instanceof getPickupStoreByHotspotId_result)
13805
        return this.equals((getPickupStoreByHotspotId_result)that);
13806
      return false;
13807
    }
13808
 
13809
    public boolean equals(getPickupStoreByHotspotId_result that) {
13810
      if (that == null)
13811
        return false;
13812
 
13813
      boolean this_present_success = true && this.isSetSuccess();
13814
      boolean that_present_success = true && that.isSetSuccess();
13815
      if (this_present_success || that_present_success) {
13816
        if (!(this_present_success && that_present_success))
13817
          return false;
13818
        if (!this.success.equals(that.success))
13819
          return false;
13820
      }
13821
 
13822
      return true;
13823
    }
13824
 
13825
    @Override
13826
    public int hashCode() {
13827
      return 0;
13828
    }
13829
 
13830
    public int compareTo(getPickupStoreByHotspotId_result other) {
13831
      if (!getClass().equals(other.getClass())) {
13832
        return getClass().getName().compareTo(other.getClass().getName());
13833
      }
13834
 
13835
      int lastComparison = 0;
13836
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13837
 
13838
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13839
      if (lastComparison != 0) {
13840
        return lastComparison;
13841
      }
13842
      if (isSetSuccess()) {
13843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13844
        if (lastComparison != 0) {
13845
          return lastComparison;
13846
        }
13847
      }
13848
      return 0;
13849
    }
13850
 
13851
    public _Fields fieldForId(int fieldId) {
13852
      return _Fields.findByThriftId(fieldId);
13853
    }
13854
 
13855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13856
      org.apache.thrift.protocol.TField field;
13857
      iprot.readStructBegin();
13858
      while (true)
13859
      {
13860
        field = iprot.readFieldBegin();
13861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13862
          break;
13863
        }
13864
        switch (field.id) {
13865
          case 0: // SUCCESS
13866
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13867
              this.success = new PickupStore();
13868
              this.success.read(iprot);
13869
            } else { 
13870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13871
            }
13872
            break;
13873
          default:
13874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13875
        }
13876
        iprot.readFieldEnd();
13877
      }
13878
      iprot.readStructEnd();
13879
      validate();
13880
    }
13881
 
13882
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13883
      oprot.writeStructBegin(STRUCT_DESC);
13884
 
13885
      if (this.isSetSuccess()) {
13886
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13887
        this.success.write(oprot);
13888
        oprot.writeFieldEnd();
13889
      }
13890
      oprot.writeFieldStop();
13891
      oprot.writeStructEnd();
13892
    }
13893
 
13894
    @Override
13895
    public String toString() {
13896
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13897
      boolean first = true;
13898
 
13899
      sb.append("success:");
13900
      if (this.success == null) {
13901
        sb.append("null");
13902
      } else {
13903
        sb.append(this.success);
13904
      }
13905
      first = false;
13906
      sb.append(")");
13907
      return sb.toString();
13908
    }
13909
 
13910
    public void validate() throws org.apache.thrift.TException {
13911
      // check for required fields
13912
    }
13913
 
13914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13915
      try {
13916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13917
      } catch (org.apache.thrift.TException te) {
13918
        throw new java.io.IOException(te);
13919
      }
13920
    }
13921
 
13922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13923
      try {
13924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13925
      } catch (org.apache.thrift.TException te) {
13926
        throw new java.io.IOException(te);
13927
      }
13928
    }
13929
 
13930
  }
13931
 
6322 amar.kumar 13932
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13934
 
13935
    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);
13936
    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);
13937
    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);
13938
    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);
13939
    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);
13940
    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 13941
    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 13942
 
13943
    private long providerId; // required
13944
    private String pincode; // required
13945
    private String destCode; // required
13946
    private boolean exp; // required
13947
    private boolean cod; // required
13948
    private int stationType; // required
6524 rajveer 13949
    private boolean otgAvailable; // required
6322 amar.kumar 13950
 
13951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13953
      PROVIDER_ID((short)1, "providerId"),
13954
      PINCODE((short)2, "pincode"),
13955
      DEST_CODE((short)3, "destCode"),
13956
      EXP((short)4, "exp"),
13957
      COD((short)5, "cod"),
6524 rajveer 13958
      STATION_TYPE((short)6, "stationType"),
13959
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13960
 
13961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13962
 
13963
      static {
13964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13965
          byName.put(field.getFieldName(), field);
13966
        }
13967
      }
13968
 
13969
      /**
13970
       * Find the _Fields constant that matches fieldId, or null if its not found.
13971
       */
13972
      public static _Fields findByThriftId(int fieldId) {
13973
        switch(fieldId) {
13974
          case 1: // PROVIDER_ID
13975
            return PROVIDER_ID;
13976
          case 2: // PINCODE
13977
            return PINCODE;
13978
          case 3: // DEST_CODE
13979
            return DEST_CODE;
13980
          case 4: // EXP
13981
            return EXP;
13982
          case 5: // COD
13983
            return COD;
13984
          case 6: // STATION_TYPE
13985
            return STATION_TYPE;
6524 rajveer 13986
          case 7: // OTG_AVAILABLE
13987
            return OTG_AVAILABLE;
6322 amar.kumar 13988
          default:
13989
            return null;
13990
        }
13991
      }
13992
 
13993
      /**
13994
       * Find the _Fields constant that matches fieldId, throwing an exception
13995
       * if it is not found.
13996
       */
13997
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13998
        _Fields fields = findByThriftId(fieldId);
13999
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14000
        return fields;
14001
      }
14002
 
14003
      /**
14004
       * Find the _Fields constant that matches name, or null if its not found.
14005
       */
14006
      public static _Fields findByName(String name) {
14007
        return byName.get(name);
14008
      }
14009
 
14010
      private final short _thriftId;
14011
      private final String _fieldName;
14012
 
14013
      _Fields(short thriftId, String fieldName) {
14014
        _thriftId = thriftId;
14015
        _fieldName = fieldName;
14016
      }
14017
 
14018
      public short getThriftFieldId() {
14019
        return _thriftId;
14020
      }
14021
 
14022
      public String getFieldName() {
14023
        return _fieldName;
14024
      }
14025
    }
14026
 
14027
    // isset id assignments
14028
    private static final int __PROVIDERID_ISSET_ID = 0;
14029
    private static final int __EXP_ISSET_ID = 1;
14030
    private static final int __COD_ISSET_ID = 2;
14031
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 14032
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
14033
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 14034
 
14035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14036
    static {
14037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14038
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14040
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14042
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14044
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14045
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14046
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14047
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14048
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 14050
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
14054
    }
14055
 
14056
    public addPincode_args() {
14057
    }
14058
 
14059
    public addPincode_args(
14060
      long providerId,
14061
      String pincode,
14062
      String destCode,
14063
      boolean exp,
14064
      boolean cod,
6524 rajveer 14065
      int stationType,
14066
      boolean otgAvailable)
6322 amar.kumar 14067
    {
14068
      this();
14069
      this.providerId = providerId;
14070
      setProviderIdIsSet(true);
14071
      this.pincode = pincode;
14072
      this.destCode = destCode;
14073
      this.exp = exp;
14074
      setExpIsSet(true);
14075
      this.cod = cod;
14076
      setCodIsSet(true);
14077
      this.stationType = stationType;
14078
      setStationTypeIsSet(true);
6524 rajveer 14079
      this.otgAvailable = otgAvailable;
14080
      setOtgAvailableIsSet(true);
6322 amar.kumar 14081
    }
14082
 
14083
    /**
14084
     * Performs a deep copy on <i>other</i>.
14085
     */
14086
    public addPincode_args(addPincode_args other) {
14087
      __isset_bit_vector.clear();
14088
      __isset_bit_vector.or(other.__isset_bit_vector);
14089
      this.providerId = other.providerId;
14090
      if (other.isSetPincode()) {
14091
        this.pincode = other.pincode;
14092
      }
14093
      if (other.isSetDestCode()) {
14094
        this.destCode = other.destCode;
14095
      }
14096
      this.exp = other.exp;
14097
      this.cod = other.cod;
14098
      this.stationType = other.stationType;
6524 rajveer 14099
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14100
    }
14101
 
14102
    public addPincode_args deepCopy() {
14103
      return new addPincode_args(this);
14104
    }
14105
 
14106
    @Override
14107
    public void clear() {
14108
      setProviderIdIsSet(false);
14109
      this.providerId = 0;
14110
      this.pincode = null;
14111
      this.destCode = null;
14112
      setExpIsSet(false);
14113
      this.exp = false;
14114
      setCodIsSet(false);
14115
      this.cod = false;
14116
      setStationTypeIsSet(false);
14117
      this.stationType = 0;
6524 rajveer 14118
      setOtgAvailableIsSet(false);
14119
      this.otgAvailable = false;
6322 amar.kumar 14120
    }
14121
 
14122
    public long getProviderId() {
14123
      return this.providerId;
14124
    }
14125
 
14126
    public void setProviderId(long providerId) {
14127
      this.providerId = providerId;
14128
      setProviderIdIsSet(true);
14129
    }
14130
 
14131
    public void unsetProviderId() {
14132
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14133
    }
14134
 
14135
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14136
    public boolean isSetProviderId() {
14137
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14138
    }
14139
 
14140
    public void setProviderIdIsSet(boolean value) {
14141
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14142
    }
14143
 
14144
    public String getPincode() {
14145
      return this.pincode;
14146
    }
14147
 
14148
    public void setPincode(String pincode) {
14149
      this.pincode = pincode;
14150
    }
14151
 
14152
    public void unsetPincode() {
14153
      this.pincode = null;
14154
    }
14155
 
14156
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14157
    public boolean isSetPincode() {
14158
      return this.pincode != null;
14159
    }
14160
 
14161
    public void setPincodeIsSet(boolean value) {
14162
      if (!value) {
14163
        this.pincode = null;
14164
      }
14165
    }
14166
 
14167
    public String getDestCode() {
14168
      return this.destCode;
14169
    }
14170
 
14171
    public void setDestCode(String destCode) {
14172
      this.destCode = destCode;
14173
    }
14174
 
14175
    public void unsetDestCode() {
14176
      this.destCode = null;
14177
    }
14178
 
14179
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14180
    public boolean isSetDestCode() {
14181
      return this.destCode != null;
14182
    }
14183
 
14184
    public void setDestCodeIsSet(boolean value) {
14185
      if (!value) {
14186
        this.destCode = null;
14187
      }
14188
    }
14189
 
14190
    public boolean isExp() {
14191
      return this.exp;
14192
    }
14193
 
14194
    public void setExp(boolean exp) {
14195
      this.exp = exp;
14196
      setExpIsSet(true);
14197
    }
14198
 
14199
    public void unsetExp() {
14200
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14201
    }
14202
 
14203
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14204
    public boolean isSetExp() {
14205
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14206
    }
14207
 
14208
    public void setExpIsSet(boolean value) {
14209
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14210
    }
14211
 
14212
    public boolean isCod() {
14213
      return this.cod;
14214
    }
14215
 
14216
    public void setCod(boolean cod) {
14217
      this.cod = cod;
14218
      setCodIsSet(true);
14219
    }
14220
 
14221
    public void unsetCod() {
14222
      __isset_bit_vector.clear(__COD_ISSET_ID);
14223
    }
14224
 
14225
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14226
    public boolean isSetCod() {
14227
      return __isset_bit_vector.get(__COD_ISSET_ID);
14228
    }
14229
 
14230
    public void setCodIsSet(boolean value) {
14231
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14232
    }
14233
 
14234
    public int getStationType() {
14235
      return this.stationType;
14236
    }
14237
 
14238
    public void setStationType(int stationType) {
14239
      this.stationType = stationType;
14240
      setStationTypeIsSet(true);
14241
    }
14242
 
14243
    public void unsetStationType() {
14244
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14245
    }
14246
 
14247
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14248
    public boolean isSetStationType() {
14249
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14250
    }
14251
 
14252
    public void setStationTypeIsSet(boolean value) {
14253
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14254
    }
14255
 
6524 rajveer 14256
    public boolean isOtgAvailable() {
14257
      return this.otgAvailable;
14258
    }
14259
 
14260
    public void setOtgAvailable(boolean otgAvailable) {
14261
      this.otgAvailable = otgAvailable;
14262
      setOtgAvailableIsSet(true);
14263
    }
14264
 
14265
    public void unsetOtgAvailable() {
14266
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14267
    }
14268
 
14269
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14270
    public boolean isSetOtgAvailable() {
14271
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14272
    }
14273
 
14274
    public void setOtgAvailableIsSet(boolean value) {
14275
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14276
    }
14277
 
6322 amar.kumar 14278
    public void setFieldValue(_Fields field, Object value) {
14279
      switch (field) {
14280
      case PROVIDER_ID:
14281
        if (value == null) {
14282
          unsetProviderId();
14283
        } else {
14284
          setProviderId((Long)value);
14285
        }
14286
        break;
14287
 
14288
      case PINCODE:
14289
        if (value == null) {
14290
          unsetPincode();
14291
        } else {
14292
          setPincode((String)value);
14293
        }
14294
        break;
14295
 
14296
      case DEST_CODE:
14297
        if (value == null) {
14298
          unsetDestCode();
14299
        } else {
14300
          setDestCode((String)value);
14301
        }
14302
        break;
14303
 
14304
      case EXP:
14305
        if (value == null) {
14306
          unsetExp();
14307
        } else {
14308
          setExp((Boolean)value);
14309
        }
14310
        break;
14311
 
14312
      case COD:
14313
        if (value == null) {
14314
          unsetCod();
14315
        } else {
14316
          setCod((Boolean)value);
14317
        }
14318
        break;
14319
 
14320
      case STATION_TYPE:
14321
        if (value == null) {
14322
          unsetStationType();
14323
        } else {
14324
          setStationType((Integer)value);
14325
        }
14326
        break;
14327
 
6524 rajveer 14328
      case OTG_AVAILABLE:
14329
        if (value == null) {
14330
          unsetOtgAvailable();
14331
        } else {
14332
          setOtgAvailable((Boolean)value);
14333
        }
14334
        break;
14335
 
6322 amar.kumar 14336
      }
14337
    }
14338
 
14339
    public Object getFieldValue(_Fields field) {
14340
      switch (field) {
14341
      case PROVIDER_ID:
14342
        return Long.valueOf(getProviderId());
14343
 
14344
      case PINCODE:
14345
        return getPincode();
14346
 
14347
      case DEST_CODE:
14348
        return getDestCode();
14349
 
14350
      case EXP:
14351
        return Boolean.valueOf(isExp());
14352
 
14353
      case COD:
14354
        return Boolean.valueOf(isCod());
14355
 
14356
      case STATION_TYPE:
14357
        return Integer.valueOf(getStationType());
14358
 
6524 rajveer 14359
      case OTG_AVAILABLE:
14360
        return Boolean.valueOf(isOtgAvailable());
14361
 
6322 amar.kumar 14362
      }
14363
      throw new IllegalStateException();
14364
    }
14365
 
14366
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14367
    public boolean isSet(_Fields field) {
14368
      if (field == null) {
14369
        throw new IllegalArgumentException();
14370
      }
14371
 
14372
      switch (field) {
14373
      case PROVIDER_ID:
14374
        return isSetProviderId();
14375
      case PINCODE:
14376
        return isSetPincode();
14377
      case DEST_CODE:
14378
        return isSetDestCode();
14379
      case EXP:
14380
        return isSetExp();
14381
      case COD:
14382
        return isSetCod();
14383
      case STATION_TYPE:
14384
        return isSetStationType();
6524 rajveer 14385
      case OTG_AVAILABLE:
14386
        return isSetOtgAvailable();
6322 amar.kumar 14387
      }
14388
      throw new IllegalStateException();
14389
    }
14390
 
14391
    @Override
14392
    public boolean equals(Object that) {
14393
      if (that == null)
14394
        return false;
14395
      if (that instanceof addPincode_args)
14396
        return this.equals((addPincode_args)that);
14397
      return false;
14398
    }
14399
 
14400
    public boolean equals(addPincode_args that) {
14401
      if (that == null)
14402
        return false;
14403
 
14404
      boolean this_present_providerId = true;
14405
      boolean that_present_providerId = true;
14406
      if (this_present_providerId || that_present_providerId) {
14407
        if (!(this_present_providerId && that_present_providerId))
14408
          return false;
14409
        if (this.providerId != that.providerId)
14410
          return false;
14411
      }
14412
 
14413
      boolean this_present_pincode = true && this.isSetPincode();
14414
      boolean that_present_pincode = true && that.isSetPincode();
14415
      if (this_present_pincode || that_present_pincode) {
14416
        if (!(this_present_pincode && that_present_pincode))
14417
          return false;
14418
        if (!this.pincode.equals(that.pincode))
14419
          return false;
14420
      }
14421
 
14422
      boolean this_present_destCode = true && this.isSetDestCode();
14423
      boolean that_present_destCode = true && that.isSetDestCode();
14424
      if (this_present_destCode || that_present_destCode) {
14425
        if (!(this_present_destCode && that_present_destCode))
14426
          return false;
14427
        if (!this.destCode.equals(that.destCode))
14428
          return false;
14429
      }
14430
 
14431
      boolean this_present_exp = true;
14432
      boolean that_present_exp = true;
14433
      if (this_present_exp || that_present_exp) {
14434
        if (!(this_present_exp && that_present_exp))
14435
          return false;
14436
        if (this.exp != that.exp)
14437
          return false;
14438
      }
14439
 
14440
      boolean this_present_cod = true;
14441
      boolean that_present_cod = true;
14442
      if (this_present_cod || that_present_cod) {
14443
        if (!(this_present_cod && that_present_cod))
14444
          return false;
14445
        if (this.cod != that.cod)
14446
          return false;
14447
      }
14448
 
14449
      boolean this_present_stationType = true;
14450
      boolean that_present_stationType = true;
14451
      if (this_present_stationType || that_present_stationType) {
14452
        if (!(this_present_stationType && that_present_stationType))
14453
          return false;
14454
        if (this.stationType != that.stationType)
14455
          return false;
14456
      }
14457
 
6524 rajveer 14458
      boolean this_present_otgAvailable = true;
14459
      boolean that_present_otgAvailable = true;
14460
      if (this_present_otgAvailable || that_present_otgAvailable) {
14461
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14462
          return false;
14463
        if (this.otgAvailable != that.otgAvailable)
14464
          return false;
14465
      }
14466
 
6322 amar.kumar 14467
      return true;
14468
    }
14469
 
14470
    @Override
14471
    public int hashCode() {
14472
      return 0;
14473
    }
14474
 
14475
    public int compareTo(addPincode_args other) {
14476
      if (!getClass().equals(other.getClass())) {
14477
        return getClass().getName().compareTo(other.getClass().getName());
14478
      }
14479
 
14480
      int lastComparison = 0;
14481
      addPincode_args typedOther = (addPincode_args)other;
14482
 
14483
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14484
      if (lastComparison != 0) {
14485
        return lastComparison;
14486
      }
14487
      if (isSetProviderId()) {
14488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14489
        if (lastComparison != 0) {
14490
          return lastComparison;
14491
        }
14492
      }
14493
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14494
      if (lastComparison != 0) {
14495
        return lastComparison;
14496
      }
14497
      if (isSetPincode()) {
14498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14499
        if (lastComparison != 0) {
14500
          return lastComparison;
14501
        }
14502
      }
14503
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14504
      if (lastComparison != 0) {
14505
        return lastComparison;
14506
      }
14507
      if (isSetDestCode()) {
14508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14509
        if (lastComparison != 0) {
14510
          return lastComparison;
14511
        }
14512
      }
14513
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14514
      if (lastComparison != 0) {
14515
        return lastComparison;
14516
      }
14517
      if (isSetExp()) {
14518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14519
        if (lastComparison != 0) {
14520
          return lastComparison;
14521
        }
14522
      }
14523
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14524
      if (lastComparison != 0) {
14525
        return lastComparison;
14526
      }
14527
      if (isSetCod()) {
14528
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14529
        if (lastComparison != 0) {
14530
          return lastComparison;
14531
        }
14532
      }
14533
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14534
      if (lastComparison != 0) {
14535
        return lastComparison;
14536
      }
14537
      if (isSetStationType()) {
14538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14539
        if (lastComparison != 0) {
14540
          return lastComparison;
14541
        }
14542
      }
6524 rajveer 14543
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14544
      if (lastComparison != 0) {
14545
        return lastComparison;
14546
      }
14547
      if (isSetOtgAvailable()) {
14548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14549
        if (lastComparison != 0) {
14550
          return lastComparison;
14551
        }
14552
      }
6322 amar.kumar 14553
      return 0;
14554
    }
14555
 
14556
    public _Fields fieldForId(int fieldId) {
14557
      return _Fields.findByThriftId(fieldId);
14558
    }
14559
 
14560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14561
      org.apache.thrift.protocol.TField field;
14562
      iprot.readStructBegin();
14563
      while (true)
14564
      {
14565
        field = iprot.readFieldBegin();
14566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14567
          break;
14568
        }
14569
        switch (field.id) {
14570
          case 1: // PROVIDER_ID
14571
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14572
              this.providerId = iprot.readI64();
14573
              setProviderIdIsSet(true);
14574
            } else { 
14575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14576
            }
14577
            break;
14578
          case 2: // PINCODE
14579
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14580
              this.pincode = iprot.readString();
14581
            } else { 
14582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14583
            }
14584
            break;
14585
          case 3: // DEST_CODE
14586
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14587
              this.destCode = iprot.readString();
14588
            } else { 
14589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14590
            }
14591
            break;
14592
          case 4: // EXP
14593
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14594
              this.exp = iprot.readBool();
14595
              setExpIsSet(true);
14596
            } else { 
14597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14598
            }
14599
            break;
14600
          case 5: // COD
14601
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14602
              this.cod = iprot.readBool();
14603
              setCodIsSet(true);
14604
            } else { 
14605
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14606
            }
14607
            break;
14608
          case 6: // STATION_TYPE
14609
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14610
              this.stationType = iprot.readI32();
14611
              setStationTypeIsSet(true);
14612
            } else { 
14613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14614
            }
14615
            break;
6524 rajveer 14616
          case 7: // OTG_AVAILABLE
14617
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14618
              this.otgAvailable = iprot.readBool();
14619
              setOtgAvailableIsSet(true);
14620
            } else { 
14621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14622
            }
14623
            break;
6322 amar.kumar 14624
          default:
14625
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14626
        }
14627
        iprot.readFieldEnd();
14628
      }
14629
      iprot.readStructEnd();
14630
      validate();
14631
    }
14632
 
14633
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14634
      validate();
14635
 
14636
      oprot.writeStructBegin(STRUCT_DESC);
14637
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14638
      oprot.writeI64(this.providerId);
14639
      oprot.writeFieldEnd();
14640
      if (this.pincode != null) {
14641
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14642
        oprot.writeString(this.pincode);
14643
        oprot.writeFieldEnd();
14644
      }
14645
      if (this.destCode != null) {
14646
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14647
        oprot.writeString(this.destCode);
14648
        oprot.writeFieldEnd();
14649
      }
14650
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14651
      oprot.writeBool(this.exp);
14652
      oprot.writeFieldEnd();
14653
      oprot.writeFieldBegin(COD_FIELD_DESC);
14654
      oprot.writeBool(this.cod);
14655
      oprot.writeFieldEnd();
14656
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14657
      oprot.writeI32(this.stationType);
14658
      oprot.writeFieldEnd();
6524 rajveer 14659
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14660
      oprot.writeBool(this.otgAvailable);
14661
      oprot.writeFieldEnd();
6322 amar.kumar 14662
      oprot.writeFieldStop();
14663
      oprot.writeStructEnd();
14664
    }
14665
 
14666
    @Override
14667
    public String toString() {
14668
      StringBuilder sb = new StringBuilder("addPincode_args(");
14669
      boolean first = true;
14670
 
14671
      sb.append("providerId:");
14672
      sb.append(this.providerId);
14673
      first = false;
14674
      if (!first) sb.append(", ");
14675
      sb.append("pincode:");
14676
      if (this.pincode == null) {
14677
        sb.append("null");
14678
      } else {
14679
        sb.append(this.pincode);
14680
      }
14681
      first = false;
14682
      if (!first) sb.append(", ");
14683
      sb.append("destCode:");
14684
      if (this.destCode == null) {
14685
        sb.append("null");
14686
      } else {
14687
        sb.append(this.destCode);
14688
      }
14689
      first = false;
14690
      if (!first) sb.append(", ");
14691
      sb.append("exp:");
14692
      sb.append(this.exp);
14693
      first = false;
14694
      if (!first) sb.append(", ");
14695
      sb.append("cod:");
14696
      sb.append(this.cod);
14697
      first = false;
14698
      if (!first) sb.append(", ");
14699
      sb.append("stationType:");
14700
      sb.append(this.stationType);
14701
      first = false;
6524 rajveer 14702
      if (!first) sb.append(", ");
14703
      sb.append("otgAvailable:");
14704
      sb.append(this.otgAvailable);
14705
      first = false;
6322 amar.kumar 14706
      sb.append(")");
14707
      return sb.toString();
14708
    }
14709
 
14710
    public void validate() throws org.apache.thrift.TException {
14711
      // check for required fields
14712
    }
14713
 
14714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14715
      try {
14716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14717
      } catch (org.apache.thrift.TException te) {
14718
        throw new java.io.IOException(te);
14719
      }
14720
    }
14721
 
14722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14723
      try {
14724
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14725
        __isset_bit_vector = new BitSet(1);
14726
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14727
      } catch (org.apache.thrift.TException te) {
14728
        throw new java.io.IOException(te);
14729
      }
14730
    }
14731
 
14732
  }
14733
 
14734
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14735
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14736
 
14737
 
14738
 
14739
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14740
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14741
;
14742
 
14743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14744
 
14745
      static {
14746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14747
          byName.put(field.getFieldName(), field);
14748
        }
14749
      }
14750
 
14751
      /**
14752
       * Find the _Fields constant that matches fieldId, or null if its not found.
14753
       */
14754
      public static _Fields findByThriftId(int fieldId) {
14755
        switch(fieldId) {
14756
          default:
14757
            return null;
14758
        }
14759
      }
14760
 
14761
      /**
14762
       * Find the _Fields constant that matches fieldId, throwing an exception
14763
       * if it is not found.
14764
       */
14765
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14766
        _Fields fields = findByThriftId(fieldId);
14767
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14768
        return fields;
14769
      }
14770
 
14771
      /**
14772
       * Find the _Fields constant that matches name, or null if its not found.
14773
       */
14774
      public static _Fields findByName(String name) {
14775
        return byName.get(name);
14776
      }
14777
 
14778
      private final short _thriftId;
14779
      private final String _fieldName;
14780
 
14781
      _Fields(short thriftId, String fieldName) {
14782
        _thriftId = thriftId;
14783
        _fieldName = fieldName;
14784
      }
14785
 
14786
      public short getThriftFieldId() {
14787
        return _thriftId;
14788
      }
14789
 
14790
      public String getFieldName() {
14791
        return _fieldName;
14792
      }
14793
    }
14794
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14795
    static {
14796
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14797
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14798
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14799
    }
14800
 
14801
    public addPincode_result() {
14802
    }
14803
 
14804
    /**
14805
     * Performs a deep copy on <i>other</i>.
14806
     */
14807
    public addPincode_result(addPincode_result other) {
14808
    }
14809
 
14810
    public addPincode_result deepCopy() {
14811
      return new addPincode_result(this);
14812
    }
14813
 
14814
    @Override
14815
    public void clear() {
14816
    }
14817
 
14818
    public void setFieldValue(_Fields field, Object value) {
14819
      switch (field) {
14820
      }
14821
    }
14822
 
14823
    public Object getFieldValue(_Fields field) {
14824
      switch (field) {
14825
      }
14826
      throw new IllegalStateException();
14827
    }
14828
 
14829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14830
    public boolean isSet(_Fields field) {
14831
      if (field == null) {
14832
        throw new IllegalArgumentException();
14833
      }
14834
 
14835
      switch (field) {
14836
      }
14837
      throw new IllegalStateException();
14838
    }
14839
 
14840
    @Override
14841
    public boolean equals(Object that) {
14842
      if (that == null)
14843
        return false;
14844
      if (that instanceof addPincode_result)
14845
        return this.equals((addPincode_result)that);
14846
      return false;
14847
    }
14848
 
14849
    public boolean equals(addPincode_result that) {
14850
      if (that == null)
14851
        return false;
14852
 
14853
      return true;
14854
    }
14855
 
14856
    @Override
14857
    public int hashCode() {
14858
      return 0;
14859
    }
14860
 
14861
    public int compareTo(addPincode_result other) {
14862
      if (!getClass().equals(other.getClass())) {
14863
        return getClass().getName().compareTo(other.getClass().getName());
14864
      }
14865
 
14866
      int lastComparison = 0;
14867
      addPincode_result typedOther = (addPincode_result)other;
14868
 
14869
      return 0;
14870
    }
14871
 
14872
    public _Fields fieldForId(int fieldId) {
14873
      return _Fields.findByThriftId(fieldId);
14874
    }
14875
 
14876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14877
      org.apache.thrift.protocol.TField field;
14878
      iprot.readStructBegin();
14879
      while (true)
14880
      {
14881
        field = iprot.readFieldBegin();
14882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14883
          break;
14884
        }
14885
        switch (field.id) {
14886
          default:
14887
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14888
        }
14889
        iprot.readFieldEnd();
14890
      }
14891
      iprot.readStructEnd();
14892
      validate();
14893
    }
14894
 
14895
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14896
      oprot.writeStructBegin(STRUCT_DESC);
14897
 
14898
      oprot.writeFieldStop();
14899
      oprot.writeStructEnd();
14900
    }
14901
 
14902
    @Override
14903
    public String toString() {
14904
      StringBuilder sb = new StringBuilder("addPincode_result(");
14905
      boolean first = true;
14906
 
14907
      sb.append(")");
14908
      return sb.toString();
14909
    }
14910
 
14911
    public void validate() throws org.apache.thrift.TException {
14912
      // check for required fields
14913
    }
14914
 
14915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14916
      try {
14917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14918
      } catch (org.apache.thrift.TException te) {
14919
        throw new java.io.IOException(te);
14920
      }
14921
    }
14922
 
14923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14924
      try {
14925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14926
      } catch (org.apache.thrift.TException te) {
14927
        throw new java.io.IOException(te);
14928
      }
14929
    }
14930
 
14931
  }
14932
 
14933
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14935
 
14936
    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);
14937
    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);
14938
    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);
14939
    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 14940
    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 14941
 
14942
    private long providerId; // required
14943
    private String pincode; // required
14944
    private boolean exp; // required
14945
    private boolean cod; // required
6524 rajveer 14946
    private boolean otgAvailable; // required
6322 amar.kumar 14947
 
14948
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14949
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14950
      PROVIDER_ID((short)1, "providerId"),
14951
      PINCODE((short)2, "pincode"),
14952
      EXP((short)3, "exp"),
6524 rajveer 14953
      COD((short)4, "cod"),
14954
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14955
 
14956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14957
 
14958
      static {
14959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14960
          byName.put(field.getFieldName(), field);
14961
        }
14962
      }
14963
 
14964
      /**
14965
       * Find the _Fields constant that matches fieldId, or null if its not found.
14966
       */
14967
      public static _Fields findByThriftId(int fieldId) {
14968
        switch(fieldId) {
14969
          case 1: // PROVIDER_ID
14970
            return PROVIDER_ID;
14971
          case 2: // PINCODE
14972
            return PINCODE;
14973
          case 3: // EXP
14974
            return EXP;
14975
          case 4: // COD
14976
            return COD;
6524 rajveer 14977
          case 5: // OTG_AVAILABLE
14978
            return OTG_AVAILABLE;
6322 amar.kumar 14979
          default:
14980
            return null;
14981
        }
14982
      }
14983
 
14984
      /**
14985
       * Find the _Fields constant that matches fieldId, throwing an exception
14986
       * if it is not found.
14987
       */
14988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14989
        _Fields fields = findByThriftId(fieldId);
14990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14991
        return fields;
14992
      }
14993
 
14994
      /**
14995
       * Find the _Fields constant that matches name, or null if its not found.
14996
       */
14997
      public static _Fields findByName(String name) {
14998
        return byName.get(name);
14999
      }
15000
 
15001
      private final short _thriftId;
15002
      private final String _fieldName;
15003
 
15004
      _Fields(short thriftId, String fieldName) {
15005
        _thriftId = thriftId;
15006
        _fieldName = fieldName;
15007
      }
15008
 
15009
      public short getThriftFieldId() {
15010
        return _thriftId;
15011
      }
15012
 
15013
      public String getFieldName() {
15014
        return _fieldName;
15015
      }
15016
    }
15017
 
15018
    // isset id assignments
15019
    private static final int __PROVIDERID_ISSET_ID = 0;
15020
    private static final int __EXP_ISSET_ID = 1;
15021
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 15022
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
15023
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 15024
 
15025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15026
    static {
15027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15028
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15030
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15031
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15032
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15034
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15035
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 15036
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 15038
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15039
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
15040
    }
15041
 
15042
    public updatePincode_args() {
15043
    }
15044
 
15045
    public updatePincode_args(
15046
      long providerId,
15047
      String pincode,
15048
      boolean exp,
6524 rajveer 15049
      boolean cod,
15050
      boolean otgAvailable)
6322 amar.kumar 15051
    {
15052
      this();
15053
      this.providerId = providerId;
15054
      setProviderIdIsSet(true);
15055
      this.pincode = pincode;
15056
      this.exp = exp;
15057
      setExpIsSet(true);
15058
      this.cod = cod;
15059
      setCodIsSet(true);
6524 rajveer 15060
      this.otgAvailable = otgAvailable;
15061
      setOtgAvailableIsSet(true);
6322 amar.kumar 15062
    }
15063
 
15064
    /**
15065
     * Performs a deep copy on <i>other</i>.
15066
     */
15067
    public updatePincode_args(updatePincode_args other) {
15068
      __isset_bit_vector.clear();
15069
      __isset_bit_vector.or(other.__isset_bit_vector);
15070
      this.providerId = other.providerId;
15071
      if (other.isSetPincode()) {
15072
        this.pincode = other.pincode;
15073
      }
15074
      this.exp = other.exp;
15075
      this.cod = other.cod;
6524 rajveer 15076
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 15077
    }
15078
 
15079
    public updatePincode_args deepCopy() {
15080
      return new updatePincode_args(this);
15081
    }
15082
 
15083
    @Override
15084
    public void clear() {
15085
      setProviderIdIsSet(false);
15086
      this.providerId = 0;
15087
      this.pincode = null;
15088
      setExpIsSet(false);
15089
      this.exp = false;
15090
      setCodIsSet(false);
15091
      this.cod = false;
6524 rajveer 15092
      setOtgAvailableIsSet(false);
15093
      this.otgAvailable = false;
6322 amar.kumar 15094
    }
15095
 
15096
    public long getProviderId() {
15097
      return this.providerId;
15098
    }
15099
 
15100
    public void setProviderId(long providerId) {
15101
      this.providerId = providerId;
15102
      setProviderIdIsSet(true);
15103
    }
15104
 
15105
    public void unsetProviderId() {
15106
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15107
    }
15108
 
15109
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15110
    public boolean isSetProviderId() {
15111
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15112
    }
15113
 
15114
    public void setProviderIdIsSet(boolean value) {
15115
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15116
    }
15117
 
15118
    public String getPincode() {
15119
      return this.pincode;
15120
    }
15121
 
15122
    public void setPincode(String pincode) {
15123
      this.pincode = pincode;
15124
    }
15125
 
15126
    public void unsetPincode() {
15127
      this.pincode = null;
15128
    }
15129
 
15130
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15131
    public boolean isSetPincode() {
15132
      return this.pincode != null;
15133
    }
15134
 
15135
    public void setPincodeIsSet(boolean value) {
15136
      if (!value) {
15137
        this.pincode = null;
15138
      }
15139
    }
15140
 
15141
    public boolean isExp() {
15142
      return this.exp;
15143
    }
15144
 
15145
    public void setExp(boolean exp) {
15146
      this.exp = exp;
15147
      setExpIsSet(true);
15148
    }
15149
 
15150
    public void unsetExp() {
15151
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15152
    }
15153
 
15154
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15155
    public boolean isSetExp() {
15156
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15157
    }
15158
 
15159
    public void setExpIsSet(boolean value) {
15160
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15161
    }
15162
 
15163
    public boolean isCod() {
15164
      return this.cod;
15165
    }
15166
 
15167
    public void setCod(boolean cod) {
15168
      this.cod = cod;
15169
      setCodIsSet(true);
15170
    }
15171
 
15172
    public void unsetCod() {
15173
      __isset_bit_vector.clear(__COD_ISSET_ID);
15174
    }
15175
 
15176
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15177
    public boolean isSetCod() {
15178
      return __isset_bit_vector.get(__COD_ISSET_ID);
15179
    }
15180
 
15181
    public void setCodIsSet(boolean value) {
15182
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15183
    }
15184
 
6524 rajveer 15185
    public boolean isOtgAvailable() {
15186
      return this.otgAvailable;
15187
    }
15188
 
15189
    public void setOtgAvailable(boolean otgAvailable) {
15190
      this.otgAvailable = otgAvailable;
15191
      setOtgAvailableIsSet(true);
15192
    }
15193
 
15194
    public void unsetOtgAvailable() {
15195
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15196
    }
15197
 
15198
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15199
    public boolean isSetOtgAvailable() {
15200
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15201
    }
15202
 
15203
    public void setOtgAvailableIsSet(boolean value) {
15204
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15205
    }
15206
 
6322 amar.kumar 15207
    public void setFieldValue(_Fields field, Object value) {
15208
      switch (field) {
15209
      case PROVIDER_ID:
15210
        if (value == null) {
15211
          unsetProviderId();
15212
        } else {
15213
          setProviderId((Long)value);
15214
        }
15215
        break;
15216
 
15217
      case PINCODE:
15218
        if (value == null) {
15219
          unsetPincode();
15220
        } else {
15221
          setPincode((String)value);
15222
        }
15223
        break;
15224
 
15225
      case EXP:
15226
        if (value == null) {
15227
          unsetExp();
15228
        } else {
15229
          setExp((Boolean)value);
15230
        }
15231
        break;
15232
 
15233
      case COD:
15234
        if (value == null) {
15235
          unsetCod();
15236
        } else {
15237
          setCod((Boolean)value);
15238
        }
15239
        break;
15240
 
6524 rajveer 15241
      case OTG_AVAILABLE:
15242
        if (value == null) {
15243
          unsetOtgAvailable();
15244
        } else {
15245
          setOtgAvailable((Boolean)value);
15246
        }
15247
        break;
15248
 
6322 amar.kumar 15249
      }
15250
    }
15251
 
15252
    public Object getFieldValue(_Fields field) {
15253
      switch (field) {
15254
      case PROVIDER_ID:
15255
        return Long.valueOf(getProviderId());
15256
 
15257
      case PINCODE:
15258
        return getPincode();
15259
 
15260
      case EXP:
15261
        return Boolean.valueOf(isExp());
15262
 
15263
      case COD:
15264
        return Boolean.valueOf(isCod());
15265
 
6524 rajveer 15266
      case OTG_AVAILABLE:
15267
        return Boolean.valueOf(isOtgAvailable());
15268
 
6322 amar.kumar 15269
      }
15270
      throw new IllegalStateException();
15271
    }
15272
 
15273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15274
    public boolean isSet(_Fields field) {
15275
      if (field == null) {
15276
        throw new IllegalArgumentException();
15277
      }
15278
 
15279
      switch (field) {
15280
      case PROVIDER_ID:
15281
        return isSetProviderId();
15282
      case PINCODE:
15283
        return isSetPincode();
15284
      case EXP:
15285
        return isSetExp();
15286
      case COD:
15287
        return isSetCod();
6524 rajveer 15288
      case OTG_AVAILABLE:
15289
        return isSetOtgAvailable();
6322 amar.kumar 15290
      }
15291
      throw new IllegalStateException();
15292
    }
15293
 
15294
    @Override
15295
    public boolean equals(Object that) {
15296
      if (that == null)
15297
        return false;
15298
      if (that instanceof updatePincode_args)
15299
        return this.equals((updatePincode_args)that);
15300
      return false;
15301
    }
15302
 
15303
    public boolean equals(updatePincode_args that) {
15304
      if (that == null)
15305
        return false;
15306
 
15307
      boolean this_present_providerId = true;
15308
      boolean that_present_providerId = true;
15309
      if (this_present_providerId || that_present_providerId) {
15310
        if (!(this_present_providerId && that_present_providerId))
15311
          return false;
15312
        if (this.providerId != that.providerId)
15313
          return false;
15314
      }
15315
 
15316
      boolean this_present_pincode = true && this.isSetPincode();
15317
      boolean that_present_pincode = true && that.isSetPincode();
15318
      if (this_present_pincode || that_present_pincode) {
15319
        if (!(this_present_pincode && that_present_pincode))
15320
          return false;
15321
        if (!this.pincode.equals(that.pincode))
15322
          return false;
15323
      }
15324
 
15325
      boolean this_present_exp = true;
15326
      boolean that_present_exp = true;
15327
      if (this_present_exp || that_present_exp) {
15328
        if (!(this_present_exp && that_present_exp))
15329
          return false;
15330
        if (this.exp != that.exp)
15331
          return false;
15332
      }
15333
 
15334
      boolean this_present_cod = true;
15335
      boolean that_present_cod = true;
15336
      if (this_present_cod || that_present_cod) {
15337
        if (!(this_present_cod && that_present_cod))
15338
          return false;
15339
        if (this.cod != that.cod)
15340
          return false;
15341
      }
15342
 
6524 rajveer 15343
      boolean this_present_otgAvailable = true;
15344
      boolean that_present_otgAvailable = true;
15345
      if (this_present_otgAvailable || that_present_otgAvailable) {
15346
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15347
          return false;
15348
        if (this.otgAvailable != that.otgAvailable)
15349
          return false;
15350
      }
15351
 
6322 amar.kumar 15352
      return true;
15353
    }
15354
 
15355
    @Override
15356
    public int hashCode() {
15357
      return 0;
15358
    }
15359
 
15360
    public int compareTo(updatePincode_args other) {
15361
      if (!getClass().equals(other.getClass())) {
15362
        return getClass().getName().compareTo(other.getClass().getName());
15363
      }
15364
 
15365
      int lastComparison = 0;
15366
      updatePincode_args typedOther = (updatePincode_args)other;
15367
 
15368
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15369
      if (lastComparison != 0) {
15370
        return lastComparison;
15371
      }
15372
      if (isSetProviderId()) {
15373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15374
        if (lastComparison != 0) {
15375
          return lastComparison;
15376
        }
15377
      }
15378
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15379
      if (lastComparison != 0) {
15380
        return lastComparison;
15381
      }
15382
      if (isSetPincode()) {
15383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15384
        if (lastComparison != 0) {
15385
          return lastComparison;
15386
        }
15387
      }
15388
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15389
      if (lastComparison != 0) {
15390
        return lastComparison;
15391
      }
15392
      if (isSetExp()) {
15393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15394
        if (lastComparison != 0) {
15395
          return lastComparison;
15396
        }
15397
      }
15398
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15399
      if (lastComparison != 0) {
15400
        return lastComparison;
15401
      }
15402
      if (isSetCod()) {
15403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15404
        if (lastComparison != 0) {
15405
          return lastComparison;
15406
        }
15407
      }
6524 rajveer 15408
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15409
      if (lastComparison != 0) {
15410
        return lastComparison;
15411
      }
15412
      if (isSetOtgAvailable()) {
15413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15414
        if (lastComparison != 0) {
15415
          return lastComparison;
15416
        }
15417
      }
6322 amar.kumar 15418
      return 0;
15419
    }
15420
 
15421
    public _Fields fieldForId(int fieldId) {
15422
      return _Fields.findByThriftId(fieldId);
15423
    }
15424
 
15425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15426
      org.apache.thrift.protocol.TField field;
15427
      iprot.readStructBegin();
15428
      while (true)
15429
      {
15430
        field = iprot.readFieldBegin();
15431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15432
          break;
15433
        }
15434
        switch (field.id) {
15435
          case 1: // PROVIDER_ID
15436
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15437
              this.providerId = iprot.readI64();
15438
              setProviderIdIsSet(true);
15439
            } else { 
15440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15441
            }
15442
            break;
15443
          case 2: // PINCODE
15444
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15445
              this.pincode = iprot.readString();
15446
            } else { 
15447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15448
            }
15449
            break;
15450
          case 3: // EXP
15451
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15452
              this.exp = iprot.readBool();
15453
              setExpIsSet(true);
15454
            } else { 
15455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15456
            }
15457
            break;
15458
          case 4: // COD
15459
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15460
              this.cod = iprot.readBool();
15461
              setCodIsSet(true);
15462
            } else { 
15463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15464
            }
15465
            break;
6524 rajveer 15466
          case 5: // OTG_AVAILABLE
15467
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15468
              this.otgAvailable = iprot.readBool();
15469
              setOtgAvailableIsSet(true);
15470
            } else { 
15471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15472
            }
15473
            break;
6322 amar.kumar 15474
          default:
15475
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15476
        }
15477
        iprot.readFieldEnd();
15478
      }
15479
      iprot.readStructEnd();
15480
      validate();
15481
    }
15482
 
15483
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15484
      validate();
15485
 
15486
      oprot.writeStructBegin(STRUCT_DESC);
15487
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15488
      oprot.writeI64(this.providerId);
15489
      oprot.writeFieldEnd();
15490
      if (this.pincode != null) {
15491
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15492
        oprot.writeString(this.pincode);
15493
        oprot.writeFieldEnd();
15494
      }
15495
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15496
      oprot.writeBool(this.exp);
15497
      oprot.writeFieldEnd();
15498
      oprot.writeFieldBegin(COD_FIELD_DESC);
15499
      oprot.writeBool(this.cod);
15500
      oprot.writeFieldEnd();
6524 rajveer 15501
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15502
      oprot.writeBool(this.otgAvailable);
15503
      oprot.writeFieldEnd();
6322 amar.kumar 15504
      oprot.writeFieldStop();
15505
      oprot.writeStructEnd();
15506
    }
15507
 
15508
    @Override
15509
    public String toString() {
15510
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15511
      boolean first = true;
15512
 
15513
      sb.append("providerId:");
15514
      sb.append(this.providerId);
15515
      first = false;
15516
      if (!first) sb.append(", ");
15517
      sb.append("pincode:");
15518
      if (this.pincode == null) {
15519
        sb.append("null");
15520
      } else {
15521
        sb.append(this.pincode);
15522
      }
15523
      first = false;
15524
      if (!first) sb.append(", ");
15525
      sb.append("exp:");
15526
      sb.append(this.exp);
15527
      first = false;
15528
      if (!first) sb.append(", ");
15529
      sb.append("cod:");
15530
      sb.append(this.cod);
15531
      first = false;
6524 rajveer 15532
      if (!first) sb.append(", ");
15533
      sb.append("otgAvailable:");
15534
      sb.append(this.otgAvailable);
15535
      first = false;
6322 amar.kumar 15536
      sb.append(")");
15537
      return sb.toString();
15538
    }
15539
 
15540
    public void validate() throws org.apache.thrift.TException {
15541
      // check for required fields
15542
    }
15543
 
15544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15545
      try {
15546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15547
      } catch (org.apache.thrift.TException te) {
15548
        throw new java.io.IOException(te);
15549
      }
15550
    }
15551
 
15552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15553
      try {
15554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15555
        __isset_bit_vector = new BitSet(1);
15556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15557
      } catch (org.apache.thrift.TException te) {
15558
        throw new java.io.IOException(te);
15559
      }
15560
    }
15561
 
15562
  }
15563
 
15564
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15566
 
15567
 
15568
 
15569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15571
;
15572
 
15573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15574
 
15575
      static {
15576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15577
          byName.put(field.getFieldName(), field);
15578
        }
15579
      }
15580
 
15581
      /**
15582
       * Find the _Fields constant that matches fieldId, or null if its not found.
15583
       */
15584
      public static _Fields findByThriftId(int fieldId) {
15585
        switch(fieldId) {
15586
          default:
15587
            return null;
15588
        }
15589
      }
15590
 
15591
      /**
15592
       * Find the _Fields constant that matches fieldId, throwing an exception
15593
       * if it is not found.
15594
       */
15595
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15596
        _Fields fields = findByThriftId(fieldId);
15597
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15598
        return fields;
15599
      }
15600
 
15601
      /**
15602
       * Find the _Fields constant that matches name, or null if its not found.
15603
       */
15604
      public static _Fields findByName(String name) {
15605
        return byName.get(name);
15606
      }
15607
 
15608
      private final short _thriftId;
15609
      private final String _fieldName;
15610
 
15611
      _Fields(short thriftId, String fieldName) {
15612
        _thriftId = thriftId;
15613
        _fieldName = fieldName;
15614
      }
15615
 
15616
      public short getThriftFieldId() {
15617
        return _thriftId;
15618
      }
15619
 
15620
      public String getFieldName() {
15621
        return _fieldName;
15622
      }
15623
    }
15624
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15625
    static {
15626
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15627
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15628
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15629
    }
15630
 
15631
    public updatePincode_result() {
15632
    }
15633
 
15634
    /**
15635
     * Performs a deep copy on <i>other</i>.
15636
     */
15637
    public updatePincode_result(updatePincode_result other) {
15638
    }
15639
 
15640
    public updatePincode_result deepCopy() {
15641
      return new updatePincode_result(this);
15642
    }
15643
 
15644
    @Override
15645
    public void clear() {
15646
    }
15647
 
15648
    public void setFieldValue(_Fields field, Object value) {
15649
      switch (field) {
15650
      }
15651
    }
15652
 
15653
    public Object getFieldValue(_Fields field) {
15654
      switch (field) {
15655
      }
15656
      throw new IllegalStateException();
15657
    }
15658
 
15659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15660
    public boolean isSet(_Fields field) {
15661
      if (field == null) {
15662
        throw new IllegalArgumentException();
15663
      }
15664
 
15665
      switch (field) {
15666
      }
15667
      throw new IllegalStateException();
15668
    }
15669
 
15670
    @Override
15671
    public boolean equals(Object that) {
15672
      if (that == null)
15673
        return false;
15674
      if (that instanceof updatePincode_result)
15675
        return this.equals((updatePincode_result)that);
15676
      return false;
15677
    }
15678
 
15679
    public boolean equals(updatePincode_result that) {
15680
      if (that == null)
15681
        return false;
15682
 
15683
      return true;
15684
    }
15685
 
15686
    @Override
15687
    public int hashCode() {
15688
      return 0;
15689
    }
15690
 
15691
    public int compareTo(updatePincode_result other) {
15692
      if (!getClass().equals(other.getClass())) {
15693
        return getClass().getName().compareTo(other.getClass().getName());
15694
      }
15695
 
15696
      int lastComparison = 0;
15697
      updatePincode_result typedOther = (updatePincode_result)other;
15698
 
15699
      return 0;
15700
    }
15701
 
15702
    public _Fields fieldForId(int fieldId) {
15703
      return _Fields.findByThriftId(fieldId);
15704
    }
15705
 
15706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15707
      org.apache.thrift.protocol.TField field;
15708
      iprot.readStructBegin();
15709
      while (true)
15710
      {
15711
        field = iprot.readFieldBegin();
15712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15713
          break;
15714
        }
15715
        switch (field.id) {
15716
          default:
15717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15718
        }
15719
        iprot.readFieldEnd();
15720
      }
15721
      iprot.readStructEnd();
15722
      validate();
15723
    }
15724
 
15725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15726
      oprot.writeStructBegin(STRUCT_DESC);
15727
 
15728
      oprot.writeFieldStop();
15729
      oprot.writeStructEnd();
15730
    }
15731
 
15732
    @Override
15733
    public String toString() {
15734
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15735
      boolean first = true;
15736
 
15737
      sb.append(")");
15738
      return sb.toString();
15739
    }
15740
 
15741
    public void validate() throws org.apache.thrift.TException {
15742
      // check for required fields
15743
    }
15744
 
15745
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15746
      try {
15747
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15748
      } catch (org.apache.thrift.TException te) {
15749
        throw new java.io.IOException(te);
15750
      }
15751
    }
15752
 
15753
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15754
      try {
15755
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15756
      } catch (org.apache.thrift.TException te) {
15757
        throw new java.io.IOException(te);
15758
      }
15759
    }
15760
 
15761
  }
15762
 
7567 rajveer 15763
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15764
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15765
 
15766
    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);
15767
    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);
15768
    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);
13146 manish.sha 15769
    private static final org.apache.thrift.protocol.TField AWB_USED_FOR_FIELD_DESC = new org.apache.thrift.protocol.TField("awbUsedFor", org.apache.thrift.protocol.TType.I64, (short)4);
7567 rajveer 15770
 
15771
    private long providerId; // required
15772
    private boolean cod; // required
15773
    private List<String> awbs; // required
13146 manish.sha 15774
    private long awbUsedFor; // required
7567 rajveer 15775
 
15776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15778
      PROVIDER_ID((short)1, "providerId"),
15779
      COD((short)2, "cod"),
13146 manish.sha 15780
      AWBS((short)3, "awbs"),
15781
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15782
 
15783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15784
 
15785
      static {
15786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15787
          byName.put(field.getFieldName(), field);
15788
        }
15789
      }
15790
 
15791
      /**
15792
       * Find the _Fields constant that matches fieldId, or null if its not found.
15793
       */
15794
      public static _Fields findByThriftId(int fieldId) {
15795
        switch(fieldId) {
15796
          case 1: // PROVIDER_ID
15797
            return PROVIDER_ID;
15798
          case 2: // COD
15799
            return COD;
15800
          case 3: // AWBS
15801
            return AWBS;
13146 manish.sha 15802
          case 4: // AWB_USED_FOR
15803
            return AWB_USED_FOR;
7567 rajveer 15804
          default:
15805
            return null;
15806
        }
15807
      }
15808
 
15809
      /**
15810
       * Find the _Fields constant that matches fieldId, throwing an exception
15811
       * if it is not found.
15812
       */
15813
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15814
        _Fields fields = findByThriftId(fieldId);
15815
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15816
        return fields;
15817
      }
15818
 
15819
      /**
15820
       * Find the _Fields constant that matches name, or null if its not found.
15821
       */
15822
      public static _Fields findByName(String name) {
15823
        return byName.get(name);
15824
      }
15825
 
15826
      private final short _thriftId;
15827
      private final String _fieldName;
15828
 
15829
      _Fields(short thriftId, String fieldName) {
15830
        _thriftId = thriftId;
15831
        _fieldName = fieldName;
15832
      }
15833
 
15834
      public short getThriftFieldId() {
15835
        return _thriftId;
15836
      }
15837
 
15838
      public String getFieldName() {
15839
        return _fieldName;
15840
      }
15841
    }
15842
 
15843
    // isset id assignments
15844
    private static final int __PROVIDERID_ISSET_ID = 0;
15845
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15846
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15847
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15848
 
15849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15850
    static {
15851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15852
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15854
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15856
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15857
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15858
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15859
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15860
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15861
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15862
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15863
    }
15864
 
15865
    public addNewAwbs_args() {
15866
    }
15867
 
15868
    public addNewAwbs_args(
15869
      long providerId,
15870
      boolean cod,
13146 manish.sha 15871
      List<String> awbs,
15872
      long awbUsedFor)
7567 rajveer 15873
    {
15874
      this();
15875
      this.providerId = providerId;
15876
      setProviderIdIsSet(true);
15877
      this.cod = cod;
15878
      setCodIsSet(true);
15879
      this.awbs = awbs;
13146 manish.sha 15880
      this.awbUsedFor = awbUsedFor;
15881
      setAwbUsedForIsSet(true);
7567 rajveer 15882
    }
15883
 
15884
    /**
15885
     * Performs a deep copy on <i>other</i>.
15886
     */
15887
    public addNewAwbs_args(addNewAwbs_args other) {
15888
      __isset_bit_vector.clear();
15889
      __isset_bit_vector.or(other.__isset_bit_vector);
15890
      this.providerId = other.providerId;
15891
      this.cod = other.cod;
15892
      if (other.isSetAwbs()) {
15893
        List<String> __this__awbs = new ArrayList<String>();
15894
        for (String other_element : other.awbs) {
15895
          __this__awbs.add(other_element);
15896
        }
15897
        this.awbs = __this__awbs;
15898
      }
13146 manish.sha 15899
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15900
    }
15901
 
15902
    public addNewAwbs_args deepCopy() {
15903
      return new addNewAwbs_args(this);
15904
    }
15905
 
15906
    @Override
15907
    public void clear() {
15908
      setProviderIdIsSet(false);
15909
      this.providerId = 0;
15910
      setCodIsSet(false);
15911
      this.cod = false;
15912
      this.awbs = null;
13146 manish.sha 15913
      setAwbUsedForIsSet(false);
15914
      this.awbUsedFor = 0;
7567 rajveer 15915
    }
15916
 
15917
    public long getProviderId() {
15918
      return this.providerId;
15919
    }
15920
 
15921
    public void setProviderId(long providerId) {
15922
      this.providerId = providerId;
15923
      setProviderIdIsSet(true);
15924
    }
15925
 
15926
    public void unsetProviderId() {
15927
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15928
    }
15929
 
15930
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15931
    public boolean isSetProviderId() {
15932
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15933
    }
15934
 
15935
    public void setProviderIdIsSet(boolean value) {
15936
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15937
    }
15938
 
15939
    public boolean isCod() {
15940
      return this.cod;
15941
    }
15942
 
15943
    public void setCod(boolean cod) {
15944
      this.cod = cod;
15945
      setCodIsSet(true);
15946
    }
15947
 
15948
    public void unsetCod() {
15949
      __isset_bit_vector.clear(__COD_ISSET_ID);
15950
    }
15951
 
15952
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15953
    public boolean isSetCod() {
15954
      return __isset_bit_vector.get(__COD_ISSET_ID);
15955
    }
15956
 
15957
    public void setCodIsSet(boolean value) {
15958
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15959
    }
15960
 
15961
    public int getAwbsSize() {
15962
      return (this.awbs == null) ? 0 : this.awbs.size();
15963
    }
15964
 
15965
    public java.util.Iterator<String> getAwbsIterator() {
15966
      return (this.awbs == null) ? null : this.awbs.iterator();
15967
    }
15968
 
15969
    public void addToAwbs(String elem) {
15970
      if (this.awbs == null) {
15971
        this.awbs = new ArrayList<String>();
15972
      }
15973
      this.awbs.add(elem);
15974
    }
15975
 
15976
    public List<String> getAwbs() {
15977
      return this.awbs;
15978
    }
15979
 
15980
    public void setAwbs(List<String> awbs) {
15981
      this.awbs = awbs;
15982
    }
15983
 
15984
    public void unsetAwbs() {
15985
      this.awbs = null;
15986
    }
15987
 
15988
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15989
    public boolean isSetAwbs() {
15990
      return this.awbs != null;
15991
    }
15992
 
15993
    public void setAwbsIsSet(boolean value) {
15994
      if (!value) {
15995
        this.awbs = null;
15996
      }
15997
    }
15998
 
13146 manish.sha 15999
    public long getAwbUsedFor() {
16000
      return this.awbUsedFor;
16001
    }
16002
 
16003
    public void setAwbUsedFor(long awbUsedFor) {
16004
      this.awbUsedFor = awbUsedFor;
16005
      setAwbUsedForIsSet(true);
16006
    }
16007
 
16008
    public void unsetAwbUsedFor() {
16009
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
16010
    }
16011
 
16012
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
16013
    public boolean isSetAwbUsedFor() {
16014
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
16015
    }
16016
 
16017
    public void setAwbUsedForIsSet(boolean value) {
16018
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
16019
    }
16020
 
7567 rajveer 16021
    public void setFieldValue(_Fields field, Object value) {
16022
      switch (field) {
16023
      case PROVIDER_ID:
16024
        if (value == null) {
16025
          unsetProviderId();
16026
        } else {
16027
          setProviderId((Long)value);
16028
        }
16029
        break;
16030
 
16031
      case COD:
16032
        if (value == null) {
16033
          unsetCod();
16034
        } else {
16035
          setCod((Boolean)value);
16036
        }
16037
        break;
16038
 
16039
      case AWBS:
16040
        if (value == null) {
16041
          unsetAwbs();
16042
        } else {
16043
          setAwbs((List<String>)value);
16044
        }
16045
        break;
16046
 
13146 manish.sha 16047
      case AWB_USED_FOR:
16048
        if (value == null) {
16049
          unsetAwbUsedFor();
16050
        } else {
16051
          setAwbUsedFor((Long)value);
16052
        }
16053
        break;
16054
 
7567 rajveer 16055
      }
16056
    }
16057
 
16058
    public Object getFieldValue(_Fields field) {
16059
      switch (field) {
16060
      case PROVIDER_ID:
16061
        return Long.valueOf(getProviderId());
16062
 
16063
      case COD:
16064
        return Boolean.valueOf(isCod());
16065
 
16066
      case AWBS:
16067
        return getAwbs();
16068
 
13146 manish.sha 16069
      case AWB_USED_FOR:
16070
        return Long.valueOf(getAwbUsedFor());
16071
 
7567 rajveer 16072
      }
16073
      throw new IllegalStateException();
16074
    }
16075
 
16076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16077
    public boolean isSet(_Fields field) {
16078
      if (field == null) {
16079
        throw new IllegalArgumentException();
16080
      }
16081
 
16082
      switch (field) {
16083
      case PROVIDER_ID:
16084
        return isSetProviderId();
16085
      case COD:
16086
        return isSetCod();
16087
      case AWBS:
16088
        return isSetAwbs();
13146 manish.sha 16089
      case AWB_USED_FOR:
16090
        return isSetAwbUsedFor();
7567 rajveer 16091
      }
16092
      throw new IllegalStateException();
16093
    }
16094
 
16095
    @Override
16096
    public boolean equals(Object that) {
16097
      if (that == null)
16098
        return false;
16099
      if (that instanceof addNewAwbs_args)
16100
        return this.equals((addNewAwbs_args)that);
16101
      return false;
16102
    }
16103
 
16104
    public boolean equals(addNewAwbs_args that) {
16105
      if (that == null)
16106
        return false;
16107
 
16108
      boolean this_present_providerId = true;
16109
      boolean that_present_providerId = true;
16110
      if (this_present_providerId || that_present_providerId) {
16111
        if (!(this_present_providerId && that_present_providerId))
16112
          return false;
16113
        if (this.providerId != that.providerId)
16114
          return false;
16115
      }
16116
 
16117
      boolean this_present_cod = true;
16118
      boolean that_present_cod = true;
16119
      if (this_present_cod || that_present_cod) {
16120
        if (!(this_present_cod && that_present_cod))
16121
          return false;
16122
        if (this.cod != that.cod)
16123
          return false;
16124
      }
16125
 
16126
      boolean this_present_awbs = true && this.isSetAwbs();
16127
      boolean that_present_awbs = true && that.isSetAwbs();
16128
      if (this_present_awbs || that_present_awbs) {
16129
        if (!(this_present_awbs && that_present_awbs))
16130
          return false;
16131
        if (!this.awbs.equals(that.awbs))
16132
          return false;
16133
      }
16134
 
13146 manish.sha 16135
      boolean this_present_awbUsedFor = true;
16136
      boolean that_present_awbUsedFor = true;
16137
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16138
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16139
          return false;
16140
        if (this.awbUsedFor != that.awbUsedFor)
16141
          return false;
16142
      }
16143
 
7567 rajveer 16144
      return true;
16145
    }
16146
 
16147
    @Override
16148
    public int hashCode() {
16149
      return 0;
16150
    }
16151
 
16152
    public int compareTo(addNewAwbs_args other) {
16153
      if (!getClass().equals(other.getClass())) {
16154
        return getClass().getName().compareTo(other.getClass().getName());
16155
      }
16156
 
16157
      int lastComparison = 0;
16158
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16159
 
16160
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16161
      if (lastComparison != 0) {
16162
        return lastComparison;
16163
      }
16164
      if (isSetProviderId()) {
16165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16166
        if (lastComparison != 0) {
16167
          return lastComparison;
16168
        }
16169
      }
16170
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16171
      if (lastComparison != 0) {
16172
        return lastComparison;
16173
      }
16174
      if (isSetCod()) {
16175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16176
        if (lastComparison != 0) {
16177
          return lastComparison;
16178
        }
16179
      }
16180
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16181
      if (lastComparison != 0) {
16182
        return lastComparison;
16183
      }
16184
      if (isSetAwbs()) {
16185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16186
        if (lastComparison != 0) {
16187
          return lastComparison;
16188
        }
16189
      }
13146 manish.sha 16190
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16191
      if (lastComparison != 0) {
16192
        return lastComparison;
16193
      }
16194
      if (isSetAwbUsedFor()) {
16195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16196
        if (lastComparison != 0) {
16197
          return lastComparison;
16198
        }
16199
      }
7567 rajveer 16200
      return 0;
16201
    }
16202
 
16203
    public _Fields fieldForId(int fieldId) {
16204
      return _Fields.findByThriftId(fieldId);
16205
    }
16206
 
16207
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16208
      org.apache.thrift.protocol.TField field;
16209
      iprot.readStructBegin();
16210
      while (true)
16211
      {
16212
        field = iprot.readFieldBegin();
16213
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16214
          break;
16215
        }
16216
        switch (field.id) {
16217
          case 1: // PROVIDER_ID
16218
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16219
              this.providerId = iprot.readI64();
16220
              setProviderIdIsSet(true);
16221
            } else { 
16222
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16223
            }
16224
            break;
16225
          case 2: // COD
16226
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16227
              this.cod = iprot.readBool();
16228
              setCodIsSet(true);
16229
            } else { 
16230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16231
            }
16232
            break;
16233
          case 3: // AWBS
16234
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16235
              {
7792 anupam.sin 16236
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16237
                this.awbs = new ArrayList<String>(_list24.size);
16238
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16239
                {
7792 anupam.sin 16240
                  String _elem26; // required
16241
                  _elem26 = iprot.readString();
16242
                  this.awbs.add(_elem26);
7567 rajveer 16243
                }
16244
                iprot.readListEnd();
16245
              }
16246
            } else { 
16247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16248
            }
16249
            break;
13146 manish.sha 16250
          case 4: // AWB_USED_FOR
16251
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16252
              this.awbUsedFor = iprot.readI64();
16253
              setAwbUsedForIsSet(true);
16254
            } else { 
16255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16256
            }
16257
            break;
7567 rajveer 16258
          default:
16259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16260
        }
16261
        iprot.readFieldEnd();
16262
      }
16263
      iprot.readStructEnd();
16264
      validate();
16265
    }
16266
 
16267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16268
      validate();
16269
 
16270
      oprot.writeStructBegin(STRUCT_DESC);
16271
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16272
      oprot.writeI64(this.providerId);
16273
      oprot.writeFieldEnd();
16274
      oprot.writeFieldBegin(COD_FIELD_DESC);
16275
      oprot.writeBool(this.cod);
16276
      oprot.writeFieldEnd();
16277
      if (this.awbs != null) {
16278
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16279
        {
16280
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16281
          for (String _iter27 : this.awbs)
7567 rajveer 16282
          {
7792 anupam.sin 16283
            oprot.writeString(_iter27);
7567 rajveer 16284
          }
16285
          oprot.writeListEnd();
16286
        }
16287
        oprot.writeFieldEnd();
16288
      }
13146 manish.sha 16289
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16290
      oprot.writeI64(this.awbUsedFor);
16291
      oprot.writeFieldEnd();
7567 rajveer 16292
      oprot.writeFieldStop();
16293
      oprot.writeStructEnd();
16294
    }
16295
 
16296
    @Override
16297
    public String toString() {
16298
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16299
      boolean first = true;
16300
 
16301
      sb.append("providerId:");
16302
      sb.append(this.providerId);
16303
      first = false;
16304
      if (!first) sb.append(", ");
16305
      sb.append("cod:");
16306
      sb.append(this.cod);
16307
      first = false;
16308
      if (!first) sb.append(", ");
16309
      sb.append("awbs:");
16310
      if (this.awbs == null) {
16311
        sb.append("null");
16312
      } else {
16313
        sb.append(this.awbs);
16314
      }
16315
      first = false;
13146 manish.sha 16316
      if (!first) sb.append(", ");
16317
      sb.append("awbUsedFor:");
16318
      sb.append(this.awbUsedFor);
16319
      first = false;
7567 rajveer 16320
      sb.append(")");
16321
      return sb.toString();
16322
    }
16323
 
16324
    public void validate() throws org.apache.thrift.TException {
16325
      // check for required fields
16326
    }
16327
 
16328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16329
      try {
16330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16331
      } catch (org.apache.thrift.TException te) {
16332
        throw new java.io.IOException(te);
16333
      }
16334
    }
16335
 
16336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16337
      try {
16338
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16339
        __isset_bit_vector = new BitSet(1);
16340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16341
      } catch (org.apache.thrift.TException te) {
16342
        throw new java.io.IOException(te);
16343
      }
16344
    }
16345
 
16346
  }
16347
 
16348
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16350
 
16351
    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);
16352
 
16353
    private boolean success; // required
16354
 
16355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16357
      SUCCESS((short)0, "success");
16358
 
16359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16360
 
16361
      static {
16362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16363
          byName.put(field.getFieldName(), field);
16364
        }
16365
      }
16366
 
16367
      /**
16368
       * Find the _Fields constant that matches fieldId, or null if its not found.
16369
       */
16370
      public static _Fields findByThriftId(int fieldId) {
16371
        switch(fieldId) {
16372
          case 0: // SUCCESS
16373
            return SUCCESS;
16374
          default:
16375
            return null;
16376
        }
16377
      }
16378
 
16379
      /**
16380
       * Find the _Fields constant that matches fieldId, throwing an exception
16381
       * if it is not found.
16382
       */
16383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16384
        _Fields fields = findByThriftId(fieldId);
16385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16386
        return fields;
16387
      }
16388
 
16389
      /**
16390
       * Find the _Fields constant that matches name, or null if its not found.
16391
       */
16392
      public static _Fields findByName(String name) {
16393
        return byName.get(name);
16394
      }
16395
 
16396
      private final short _thriftId;
16397
      private final String _fieldName;
16398
 
16399
      _Fields(short thriftId, String fieldName) {
16400
        _thriftId = thriftId;
16401
        _fieldName = fieldName;
16402
      }
16403
 
16404
      public short getThriftFieldId() {
16405
        return _thriftId;
16406
      }
16407
 
16408
      public String getFieldName() {
16409
        return _fieldName;
16410
      }
16411
    }
16412
 
16413
    // isset id assignments
16414
    private static final int __SUCCESS_ISSET_ID = 0;
16415
    private BitSet __isset_bit_vector = new BitSet(1);
16416
 
16417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16418
    static {
16419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16424
    }
16425
 
16426
    public addNewAwbs_result() {
16427
    }
16428
 
16429
    public addNewAwbs_result(
16430
      boolean success)
16431
    {
16432
      this();
16433
      this.success = success;
16434
      setSuccessIsSet(true);
16435
    }
16436
 
16437
    /**
16438
     * Performs a deep copy on <i>other</i>.
16439
     */
16440
    public addNewAwbs_result(addNewAwbs_result other) {
16441
      __isset_bit_vector.clear();
16442
      __isset_bit_vector.or(other.__isset_bit_vector);
16443
      this.success = other.success;
16444
    }
16445
 
16446
    public addNewAwbs_result deepCopy() {
16447
      return new addNewAwbs_result(this);
16448
    }
16449
 
16450
    @Override
16451
    public void clear() {
16452
      setSuccessIsSet(false);
16453
      this.success = false;
16454
    }
16455
 
16456
    public boolean isSuccess() {
16457
      return this.success;
16458
    }
16459
 
16460
    public void setSuccess(boolean success) {
16461
      this.success = success;
16462
      setSuccessIsSet(true);
16463
    }
16464
 
16465
    public void unsetSuccess() {
16466
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16467
    }
16468
 
16469
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16470
    public boolean isSetSuccess() {
16471
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16472
    }
16473
 
16474
    public void setSuccessIsSet(boolean value) {
16475
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16476
    }
16477
 
16478
    public void setFieldValue(_Fields field, Object value) {
16479
      switch (field) {
16480
      case SUCCESS:
16481
        if (value == null) {
16482
          unsetSuccess();
16483
        } else {
16484
          setSuccess((Boolean)value);
16485
        }
16486
        break;
16487
 
16488
      }
16489
    }
16490
 
16491
    public Object getFieldValue(_Fields field) {
16492
      switch (field) {
16493
      case SUCCESS:
16494
        return Boolean.valueOf(isSuccess());
16495
 
16496
      }
16497
      throw new IllegalStateException();
16498
    }
16499
 
16500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16501
    public boolean isSet(_Fields field) {
16502
      if (field == null) {
16503
        throw new IllegalArgumentException();
16504
      }
16505
 
16506
      switch (field) {
16507
      case SUCCESS:
16508
        return isSetSuccess();
16509
      }
16510
      throw new IllegalStateException();
16511
    }
16512
 
16513
    @Override
16514
    public boolean equals(Object that) {
16515
      if (that == null)
16516
        return false;
16517
      if (that instanceof addNewAwbs_result)
16518
        return this.equals((addNewAwbs_result)that);
16519
      return false;
16520
    }
16521
 
16522
    public boolean equals(addNewAwbs_result that) {
16523
      if (that == null)
16524
        return false;
16525
 
16526
      boolean this_present_success = true;
16527
      boolean that_present_success = true;
16528
      if (this_present_success || that_present_success) {
16529
        if (!(this_present_success && that_present_success))
16530
          return false;
16531
        if (this.success != that.success)
16532
          return false;
16533
      }
16534
 
16535
      return true;
16536
    }
16537
 
16538
    @Override
16539
    public int hashCode() {
16540
      return 0;
16541
    }
16542
 
16543
    public int compareTo(addNewAwbs_result other) {
16544
      if (!getClass().equals(other.getClass())) {
16545
        return getClass().getName().compareTo(other.getClass().getName());
16546
      }
16547
 
16548
      int lastComparison = 0;
16549
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16550
 
16551
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16552
      if (lastComparison != 0) {
16553
        return lastComparison;
16554
      }
16555
      if (isSetSuccess()) {
16556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16557
        if (lastComparison != 0) {
16558
          return lastComparison;
16559
        }
16560
      }
16561
      return 0;
16562
    }
16563
 
16564
    public _Fields fieldForId(int fieldId) {
16565
      return _Fields.findByThriftId(fieldId);
16566
    }
16567
 
16568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16569
      org.apache.thrift.protocol.TField field;
16570
      iprot.readStructBegin();
16571
      while (true)
16572
      {
16573
        field = iprot.readFieldBegin();
16574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16575
          break;
16576
        }
16577
        switch (field.id) {
16578
          case 0: // SUCCESS
16579
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16580
              this.success = iprot.readBool();
16581
              setSuccessIsSet(true);
16582
            } else { 
16583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16584
            }
16585
            break;
16586
          default:
16587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16588
        }
16589
        iprot.readFieldEnd();
16590
      }
16591
      iprot.readStructEnd();
16592
      validate();
16593
    }
16594
 
16595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16596
      oprot.writeStructBegin(STRUCT_DESC);
16597
 
16598
      if (this.isSetSuccess()) {
16599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16600
        oprot.writeBool(this.success);
16601
        oprot.writeFieldEnd();
16602
      }
16603
      oprot.writeFieldStop();
16604
      oprot.writeStructEnd();
16605
    }
16606
 
16607
    @Override
16608
    public String toString() {
16609
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16610
      boolean first = true;
16611
 
16612
      sb.append("success:");
16613
      sb.append(this.success);
16614
      first = false;
16615
      sb.append(")");
16616
      return sb.toString();
16617
    }
16618
 
16619
    public void validate() throws org.apache.thrift.TException {
16620
      // check for required fields
16621
    }
16622
 
16623
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16624
      try {
16625
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16626
      } catch (org.apache.thrift.TException te) {
16627
        throw new java.io.IOException(te);
16628
      }
16629
    }
16630
 
16631
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16632
      try {
16633
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16634
      } catch (org.apache.thrift.TException te) {
16635
        throw new java.io.IOException(te);
16636
      }
16637
    }
16638
 
16639
  }
16640
 
7788 manish.sha 16641
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16642
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16643
 
7788 manish.sha 16644
    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);
16645
    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 16646
 
7788 manish.sha 16647
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16648
    private boolean runCompleteUpdate; // required
7737 manish.sha 16649
 
16650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16652
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16653
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16654
 
16655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16656
 
16657
      static {
16658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16659
          byName.put(field.getFieldName(), field);
16660
        }
16661
      }
16662
 
16663
      /**
16664
       * Find the _Fields constant that matches fieldId, or null if its not found.
16665
       */
16666
      public static _Fields findByThriftId(int fieldId) {
16667
        switch(fieldId) {
7788 manish.sha 16668
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16669
            return LOGISTICS_LOCATION_INFO_LIST;
16670
          case 2: // RUN_COMPLETE_UPDATE
16671
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16672
          default:
16673
            return null;
16674
        }
16675
      }
16676
 
16677
      /**
16678
       * Find the _Fields constant that matches fieldId, throwing an exception
16679
       * if it is not found.
16680
       */
16681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16682
        _Fields fields = findByThriftId(fieldId);
16683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16684
        return fields;
16685
      }
16686
 
16687
      /**
16688
       * Find the _Fields constant that matches name, or null if its not found.
16689
       */
16690
      public static _Fields findByName(String name) {
16691
        return byName.get(name);
16692
      }
16693
 
16694
      private final short _thriftId;
16695
      private final String _fieldName;
16696
 
16697
      _Fields(short thriftId, String fieldName) {
16698
        _thriftId = thriftId;
16699
        _fieldName = fieldName;
16700
      }
16701
 
16702
      public short getThriftFieldId() {
16703
        return _thriftId;
16704
      }
16705
 
16706
      public String getFieldName() {
16707
        return _fieldName;
16708
      }
16709
    }
16710
 
16711
    // isset id assignments
7788 manish.sha 16712
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16713
    private BitSet __isset_bit_vector = new BitSet(1);
16714
 
16715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16716
    static {
16717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16718
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16719
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16720
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16721
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16725
    }
16726
 
7788 manish.sha 16727
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16728
    }
16729
 
7788 manish.sha 16730
    public runLogisticsLocationInfoUpdate_args(
16731
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16732
      boolean runCompleteUpdate)
7737 manish.sha 16733
    {
16734
      this();
7788 manish.sha 16735
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16736
      this.runCompleteUpdate = runCompleteUpdate;
16737
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16738
    }
16739
 
16740
    /**
16741
     * Performs a deep copy on <i>other</i>.
16742
     */
7788 manish.sha 16743
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16744
      __isset_bit_vector.clear();
16745
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16746
      if (other.isSetLogisticsLocationInfoList()) {
16747
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16748
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16749
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16750
        }
16751
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16752
      }
7788 manish.sha 16753
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16754
    }
16755
 
7788 manish.sha 16756
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16757
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16758
    }
16759
 
16760
    @Override
16761
    public void clear() {
7788 manish.sha 16762
      this.logisticsLocationInfoList = null;
16763
      setRunCompleteUpdateIsSet(false);
16764
      this.runCompleteUpdate = false;
7737 manish.sha 16765
    }
16766
 
7788 manish.sha 16767
    public int getLogisticsLocationInfoListSize() {
16768
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16769
    }
16770
 
7788 manish.sha 16771
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16772
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16773
    }
16774
 
7788 manish.sha 16775
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16776
      if (this.logisticsLocationInfoList == null) {
16777
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16778
      }
16779
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16780
    }
16781
 
7788 manish.sha 16782
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16783
      return this.logisticsLocationInfoList;
7737 manish.sha 16784
    }
16785
 
7788 manish.sha 16786
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16787
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16788
    }
16789
 
7788 manish.sha 16790
    public void unsetLogisticsLocationInfoList() {
16791
      this.logisticsLocationInfoList = null;
7737 manish.sha 16792
    }
16793
 
7788 manish.sha 16794
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16795
    public boolean isSetLogisticsLocationInfoList() {
16796
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16797
    }
16798
 
7788 manish.sha 16799
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16800
      if (!value) {
16801
        this.logisticsLocationInfoList = null;
16802
      }
7737 manish.sha 16803
    }
16804
 
7788 manish.sha 16805
    public boolean isRunCompleteUpdate() {
16806
      return this.runCompleteUpdate;
7737 manish.sha 16807
    }
16808
 
7788 manish.sha 16809
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16810
      this.runCompleteUpdate = runCompleteUpdate;
16811
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16812
    }
16813
 
7788 manish.sha 16814
    public void unsetRunCompleteUpdate() {
16815
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16816
    }
16817
 
16818
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16819
    public boolean isSetRunCompleteUpdate() {
16820
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16821
    }
16822
 
16823
    public void setRunCompleteUpdateIsSet(boolean value) {
16824
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16825
    }
16826
 
7737 manish.sha 16827
    public void setFieldValue(_Fields field, Object value) {
16828
      switch (field) {
7788 manish.sha 16829
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16830
        if (value == null) {
7788 manish.sha 16831
          unsetLogisticsLocationInfoList();
7737 manish.sha 16832
        } else {
7788 manish.sha 16833
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16834
        }
16835
        break;
16836
 
7788 manish.sha 16837
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16838
        if (value == null) {
7788 manish.sha 16839
          unsetRunCompleteUpdate();
7737 manish.sha 16840
        } else {
7788 manish.sha 16841
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16842
        }
16843
        break;
16844
 
16845
      }
16846
    }
16847
 
16848
    public Object getFieldValue(_Fields field) {
16849
      switch (field) {
7788 manish.sha 16850
      case LOGISTICS_LOCATION_INFO_LIST:
16851
        return getLogisticsLocationInfoList();
7737 manish.sha 16852
 
7788 manish.sha 16853
      case RUN_COMPLETE_UPDATE:
16854
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16855
 
16856
      }
16857
      throw new IllegalStateException();
16858
    }
16859
 
16860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16861
    public boolean isSet(_Fields field) {
16862
      if (field == null) {
16863
        throw new IllegalArgumentException();
16864
      }
16865
 
16866
      switch (field) {
7788 manish.sha 16867
      case LOGISTICS_LOCATION_INFO_LIST:
16868
        return isSetLogisticsLocationInfoList();
16869
      case RUN_COMPLETE_UPDATE:
16870
        return isSetRunCompleteUpdate();
7737 manish.sha 16871
      }
16872
      throw new IllegalStateException();
16873
    }
16874
 
16875
    @Override
16876
    public boolean equals(Object that) {
16877
      if (that == null)
16878
        return false;
7788 manish.sha 16879
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16880
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16881
      return false;
16882
    }
16883
 
7788 manish.sha 16884
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16885
      if (that == null)
16886
        return false;
16887
 
7788 manish.sha 16888
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16889
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16890
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16891
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16892
          return false;
7788 manish.sha 16893
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16894
          return false;
16895
      }
16896
 
7788 manish.sha 16897
      boolean this_present_runCompleteUpdate = true;
16898
      boolean that_present_runCompleteUpdate = true;
16899
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16900
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16901
          return false;
7788 manish.sha 16902
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16903
          return false;
16904
      }
16905
 
16906
      return true;
16907
    }
16908
 
16909
    @Override
16910
    public int hashCode() {
16911
      return 0;
16912
    }
16913
 
7788 manish.sha 16914
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16915
      if (!getClass().equals(other.getClass())) {
16916
        return getClass().getName().compareTo(other.getClass().getName());
16917
      }
16918
 
16919
      int lastComparison = 0;
7788 manish.sha 16920
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16921
 
7788 manish.sha 16922
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16923
      if (lastComparison != 0) {
16924
        return lastComparison;
16925
      }
7788 manish.sha 16926
      if (isSetLogisticsLocationInfoList()) {
16927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16928
        if (lastComparison != 0) {
16929
          return lastComparison;
16930
        }
16931
      }
7788 manish.sha 16932
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16933
      if (lastComparison != 0) {
16934
        return lastComparison;
16935
      }
7788 manish.sha 16936
      if (isSetRunCompleteUpdate()) {
16937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16938
        if (lastComparison != 0) {
16939
          return lastComparison;
16940
        }
16941
      }
16942
      return 0;
16943
    }
16944
 
16945
    public _Fields fieldForId(int fieldId) {
16946
      return _Fields.findByThriftId(fieldId);
16947
    }
16948
 
16949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16950
      org.apache.thrift.protocol.TField field;
16951
      iprot.readStructBegin();
16952
      while (true)
16953
      {
16954
        field = iprot.readFieldBegin();
16955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16956
          break;
16957
        }
16958
        switch (field.id) {
7788 manish.sha 16959
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16960
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16961
              {
7808 anupam.sin 16962
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16963
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16964
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16965
                {
7808 anupam.sin 16966
                  LogisticsLocationInfo _elem30; // required
16967
                  _elem30 = new LogisticsLocationInfo();
16968
                  _elem30.read(iprot);
16969
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16970
                }
16971
                iprot.readListEnd();
16972
              }
7737 manish.sha 16973
            } else { 
16974
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16975
            }
16976
            break;
7788 manish.sha 16977
          case 2: // RUN_COMPLETE_UPDATE
16978
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16979
              this.runCompleteUpdate = iprot.readBool();
16980
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16981
            } else { 
16982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16983
            }
16984
            break;
16985
          default:
16986
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16987
        }
16988
        iprot.readFieldEnd();
16989
      }
16990
      iprot.readStructEnd();
16991
      validate();
16992
    }
16993
 
16994
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16995
      validate();
16996
 
16997
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16998
      if (this.logisticsLocationInfoList != null) {
16999
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
17000
        {
17001
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 17002
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 17003
          {
7808 anupam.sin 17004
            _iter31.write(oprot);
7788 manish.sha 17005
          }
17006
          oprot.writeListEnd();
17007
        }
7737 manish.sha 17008
        oprot.writeFieldEnd();
17009
      }
7788 manish.sha 17010
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
17011
      oprot.writeBool(this.runCompleteUpdate);
17012
      oprot.writeFieldEnd();
7737 manish.sha 17013
      oprot.writeFieldStop();
17014
      oprot.writeStructEnd();
17015
    }
17016
 
17017
    @Override
17018
    public String toString() {
7788 manish.sha 17019
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 17020
      boolean first = true;
17021
 
7788 manish.sha 17022
      sb.append("logisticsLocationInfoList:");
17023
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 17024
        sb.append("null");
17025
      } else {
7788 manish.sha 17026
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 17027
      }
17028
      first = false;
7788 manish.sha 17029
      if (!first) sb.append(", ");
17030
      sb.append("runCompleteUpdate:");
17031
      sb.append(this.runCompleteUpdate);
7737 manish.sha 17032
      first = false;
17033
      sb.append(")");
17034
      return sb.toString();
17035
    }
17036
 
17037
    public void validate() throws org.apache.thrift.TException {
17038
      // check for required fields
17039
    }
17040
 
17041
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17042
      try {
17043
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17044
      } catch (org.apache.thrift.TException te) {
17045
        throw new java.io.IOException(te);
17046
      }
17047
    }
17048
 
17049
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17050
      try {
7788 manish.sha 17051
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17052
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 17053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17054
      } catch (org.apache.thrift.TException te) {
17055
        throw new java.io.IOException(te);
17056
      }
17057
    }
17058
 
17059
  }
17060
 
7788 manish.sha 17061
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
17062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 17063
 
17064
 
17065
 
17066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17067
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17068
;
17069
 
17070
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17071
 
17072
      static {
17073
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17074
          byName.put(field.getFieldName(), field);
17075
        }
17076
      }
17077
 
17078
      /**
17079
       * Find the _Fields constant that matches fieldId, or null if its not found.
17080
       */
17081
      public static _Fields findByThriftId(int fieldId) {
17082
        switch(fieldId) {
17083
          default:
17084
            return null;
17085
        }
17086
      }
17087
 
17088
      /**
17089
       * Find the _Fields constant that matches fieldId, throwing an exception
17090
       * if it is not found.
17091
       */
17092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17093
        _Fields fields = findByThriftId(fieldId);
17094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17095
        return fields;
17096
      }
17097
 
17098
      /**
17099
       * Find the _Fields constant that matches name, or null if its not found.
17100
       */
17101
      public static _Fields findByName(String name) {
17102
        return byName.get(name);
17103
      }
17104
 
17105
      private final short _thriftId;
17106
      private final String _fieldName;
17107
 
17108
      _Fields(short thriftId, String fieldName) {
17109
        _thriftId = thriftId;
17110
        _fieldName = fieldName;
17111
      }
17112
 
17113
      public short getThriftFieldId() {
17114
        return _thriftId;
17115
      }
17116
 
17117
      public String getFieldName() {
17118
        return _fieldName;
17119
      }
17120
    }
17121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17122
    static {
17123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17124
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17125
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17126
    }
17127
 
7788 manish.sha 17128
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17129
    }
17130
 
17131
    /**
17132
     * Performs a deep copy on <i>other</i>.
17133
     */
7788 manish.sha 17134
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17135
    }
17136
 
7788 manish.sha 17137
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17138
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17139
    }
17140
 
17141
    @Override
17142
    public void clear() {
17143
    }
17144
 
17145
    public void setFieldValue(_Fields field, Object value) {
17146
      switch (field) {
17147
      }
17148
    }
17149
 
17150
    public Object getFieldValue(_Fields field) {
17151
      switch (field) {
17152
      }
17153
      throw new IllegalStateException();
17154
    }
17155
 
17156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17157
    public boolean isSet(_Fields field) {
17158
      if (field == null) {
17159
        throw new IllegalArgumentException();
17160
      }
17161
 
17162
      switch (field) {
17163
      }
17164
      throw new IllegalStateException();
17165
    }
17166
 
17167
    @Override
17168
    public boolean equals(Object that) {
17169
      if (that == null)
17170
        return false;
7788 manish.sha 17171
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17172
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17173
      return false;
17174
    }
17175
 
7788 manish.sha 17176
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17177
      if (that == null)
17178
        return false;
17179
 
17180
      return true;
17181
    }
17182
 
17183
    @Override
17184
    public int hashCode() {
17185
      return 0;
17186
    }
17187
 
7788 manish.sha 17188
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17189
      if (!getClass().equals(other.getClass())) {
17190
        return getClass().getName().compareTo(other.getClass().getName());
17191
      }
17192
 
17193
      int lastComparison = 0;
7788 manish.sha 17194
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17195
 
17196
      return 0;
17197
    }
17198
 
17199
    public _Fields fieldForId(int fieldId) {
17200
      return _Fields.findByThriftId(fieldId);
17201
    }
17202
 
17203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17204
      org.apache.thrift.protocol.TField field;
17205
      iprot.readStructBegin();
17206
      while (true)
17207
      {
17208
        field = iprot.readFieldBegin();
17209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17210
          break;
17211
        }
17212
        switch (field.id) {
17213
          default:
17214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17215
        }
17216
        iprot.readFieldEnd();
17217
      }
17218
      iprot.readStructEnd();
17219
      validate();
17220
    }
17221
 
17222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17223
      oprot.writeStructBegin(STRUCT_DESC);
17224
 
17225
      oprot.writeFieldStop();
17226
      oprot.writeStructEnd();
17227
    }
17228
 
17229
    @Override
17230
    public String toString() {
7788 manish.sha 17231
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17232
      boolean first = true;
17233
 
17234
      sb.append(")");
17235
      return sb.toString();
17236
    }
17237
 
17238
    public void validate() throws org.apache.thrift.TException {
17239
      // check for required fields
17240
    }
17241
 
17242
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17243
      try {
17244
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17245
      } catch (org.apache.thrift.TException te) {
17246
        throw new java.io.IOException(te);
17247
      }
17248
    }
17249
 
17250
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17251
      try {
17252
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17253
      } catch (org.apache.thrift.TException te) {
17254
        throw new java.io.IOException(te);
17255
      }
17256
    }
17257
 
17258
  }
17259
 
7888 rajveer 17260
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17261
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17262
 
17263
    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);
17264
    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);
17265
 
17266
    private long startDate; // required
17267
    private long days; // required
17268
 
17269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17271
      START_DATE((short)1, "startDate"),
17272
      DAYS((short)2, "days");
17273
 
17274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17275
 
17276
      static {
17277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17278
          byName.put(field.getFieldName(), field);
17279
        }
17280
      }
17281
 
17282
      /**
17283
       * Find the _Fields constant that matches fieldId, or null if its not found.
17284
       */
17285
      public static _Fields findByThriftId(int fieldId) {
17286
        switch(fieldId) {
17287
          case 1: // START_DATE
17288
            return START_DATE;
17289
          case 2: // DAYS
17290
            return DAYS;
17291
          default:
17292
            return null;
17293
        }
17294
      }
17295
 
17296
      /**
17297
       * Find the _Fields constant that matches fieldId, throwing an exception
17298
       * if it is not found.
17299
       */
17300
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17301
        _Fields fields = findByThriftId(fieldId);
17302
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17303
        return fields;
17304
      }
17305
 
17306
      /**
17307
       * Find the _Fields constant that matches name, or null if its not found.
17308
       */
17309
      public static _Fields findByName(String name) {
17310
        return byName.get(name);
17311
      }
17312
 
17313
      private final short _thriftId;
17314
      private final String _fieldName;
17315
 
17316
      _Fields(short thriftId, String fieldName) {
17317
        _thriftId = thriftId;
17318
        _fieldName = fieldName;
17319
      }
17320
 
17321
      public short getThriftFieldId() {
17322
        return _thriftId;
17323
      }
17324
 
17325
      public String getFieldName() {
17326
        return _fieldName;
17327
      }
17328
    }
17329
 
17330
    // isset id assignments
17331
    private static final int __STARTDATE_ISSET_ID = 0;
17332
    private static final int __DAYS_ISSET_ID = 1;
17333
    private BitSet __isset_bit_vector = new BitSet(2);
17334
 
17335
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17336
    static {
17337
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17338
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17340
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17342
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17343
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17344
    }
17345
 
17346
    public adjustDeliveryDays_args() {
17347
    }
17348
 
17349
    public adjustDeliveryDays_args(
17350
      long startDate,
17351
      long days)
17352
    {
17353
      this();
17354
      this.startDate = startDate;
17355
      setStartDateIsSet(true);
17356
      this.days = days;
17357
      setDaysIsSet(true);
17358
    }
17359
 
17360
    /**
17361
     * Performs a deep copy on <i>other</i>.
17362
     */
17363
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17364
      __isset_bit_vector.clear();
17365
      __isset_bit_vector.or(other.__isset_bit_vector);
17366
      this.startDate = other.startDate;
17367
      this.days = other.days;
17368
    }
17369
 
17370
    public adjustDeliveryDays_args deepCopy() {
17371
      return new adjustDeliveryDays_args(this);
17372
    }
17373
 
17374
    @Override
17375
    public void clear() {
17376
      setStartDateIsSet(false);
17377
      this.startDate = 0;
17378
      setDaysIsSet(false);
17379
      this.days = 0;
17380
    }
17381
 
17382
    public long getStartDate() {
17383
      return this.startDate;
17384
    }
17385
 
17386
    public void setStartDate(long startDate) {
17387
      this.startDate = startDate;
17388
      setStartDateIsSet(true);
17389
    }
17390
 
17391
    public void unsetStartDate() {
17392
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17393
    }
17394
 
17395
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17396
    public boolean isSetStartDate() {
17397
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17398
    }
17399
 
17400
    public void setStartDateIsSet(boolean value) {
17401
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17402
    }
17403
 
17404
    public long getDays() {
17405
      return this.days;
17406
    }
17407
 
17408
    public void setDays(long days) {
17409
      this.days = days;
17410
      setDaysIsSet(true);
17411
    }
17412
 
17413
    public void unsetDays() {
17414
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17415
    }
17416
 
17417
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17418
    public boolean isSetDays() {
17419
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17420
    }
17421
 
17422
    public void setDaysIsSet(boolean value) {
17423
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17424
    }
17425
 
17426
    public void setFieldValue(_Fields field, Object value) {
17427
      switch (field) {
17428
      case START_DATE:
17429
        if (value == null) {
17430
          unsetStartDate();
17431
        } else {
17432
          setStartDate((Long)value);
17433
        }
17434
        break;
17435
 
17436
      case DAYS:
17437
        if (value == null) {
17438
          unsetDays();
17439
        } else {
17440
          setDays((Long)value);
17441
        }
17442
        break;
17443
 
17444
      }
17445
    }
17446
 
17447
    public Object getFieldValue(_Fields field) {
17448
      switch (field) {
17449
      case START_DATE:
17450
        return Long.valueOf(getStartDate());
17451
 
17452
      case DAYS:
17453
        return Long.valueOf(getDays());
17454
 
17455
      }
17456
      throw new IllegalStateException();
17457
    }
17458
 
17459
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17460
    public boolean isSet(_Fields field) {
17461
      if (field == null) {
17462
        throw new IllegalArgumentException();
17463
      }
17464
 
17465
      switch (field) {
17466
      case START_DATE:
17467
        return isSetStartDate();
17468
      case DAYS:
17469
        return isSetDays();
17470
      }
17471
      throw new IllegalStateException();
17472
    }
17473
 
17474
    @Override
17475
    public boolean equals(Object that) {
17476
      if (that == null)
17477
        return false;
17478
      if (that instanceof adjustDeliveryDays_args)
17479
        return this.equals((adjustDeliveryDays_args)that);
17480
      return false;
17481
    }
17482
 
17483
    public boolean equals(adjustDeliveryDays_args that) {
17484
      if (that == null)
17485
        return false;
17486
 
17487
      boolean this_present_startDate = true;
17488
      boolean that_present_startDate = true;
17489
      if (this_present_startDate || that_present_startDate) {
17490
        if (!(this_present_startDate && that_present_startDate))
17491
          return false;
17492
        if (this.startDate != that.startDate)
17493
          return false;
17494
      }
17495
 
17496
      boolean this_present_days = true;
17497
      boolean that_present_days = true;
17498
      if (this_present_days || that_present_days) {
17499
        if (!(this_present_days && that_present_days))
17500
          return false;
17501
        if (this.days != that.days)
17502
          return false;
17503
      }
17504
 
17505
      return true;
17506
    }
17507
 
17508
    @Override
17509
    public int hashCode() {
17510
      return 0;
17511
    }
17512
 
17513
    public int compareTo(adjustDeliveryDays_args other) {
17514
      if (!getClass().equals(other.getClass())) {
17515
        return getClass().getName().compareTo(other.getClass().getName());
17516
      }
17517
 
17518
      int lastComparison = 0;
17519
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17520
 
17521
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17522
      if (lastComparison != 0) {
17523
        return lastComparison;
17524
      }
17525
      if (isSetStartDate()) {
17526
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17527
        if (lastComparison != 0) {
17528
          return lastComparison;
17529
        }
17530
      }
17531
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17532
      if (lastComparison != 0) {
17533
        return lastComparison;
17534
      }
17535
      if (isSetDays()) {
17536
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17537
        if (lastComparison != 0) {
17538
          return lastComparison;
17539
        }
17540
      }
17541
      return 0;
17542
    }
17543
 
17544
    public _Fields fieldForId(int fieldId) {
17545
      return _Fields.findByThriftId(fieldId);
17546
    }
17547
 
17548
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17549
      org.apache.thrift.protocol.TField field;
17550
      iprot.readStructBegin();
17551
      while (true)
17552
      {
17553
        field = iprot.readFieldBegin();
17554
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17555
          break;
17556
        }
17557
        switch (field.id) {
17558
          case 1: // START_DATE
17559
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17560
              this.startDate = iprot.readI64();
17561
              setStartDateIsSet(true);
17562
            } else { 
17563
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17564
            }
17565
            break;
17566
          case 2: // DAYS
17567
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17568
              this.days = iprot.readI64();
17569
              setDaysIsSet(true);
17570
            } else { 
17571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17572
            }
17573
            break;
17574
          default:
17575
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17576
        }
17577
        iprot.readFieldEnd();
17578
      }
17579
      iprot.readStructEnd();
17580
      validate();
17581
    }
17582
 
17583
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17584
      validate();
17585
 
17586
      oprot.writeStructBegin(STRUCT_DESC);
17587
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17588
      oprot.writeI64(this.startDate);
17589
      oprot.writeFieldEnd();
17590
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17591
      oprot.writeI64(this.days);
17592
      oprot.writeFieldEnd();
17593
      oprot.writeFieldStop();
17594
      oprot.writeStructEnd();
17595
    }
17596
 
17597
    @Override
17598
    public String toString() {
17599
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17600
      boolean first = true;
17601
 
17602
      sb.append("startDate:");
17603
      sb.append(this.startDate);
17604
      first = false;
17605
      if (!first) sb.append(", ");
17606
      sb.append("days:");
17607
      sb.append(this.days);
17608
      first = false;
17609
      sb.append(")");
17610
      return sb.toString();
17611
    }
17612
 
17613
    public void validate() throws org.apache.thrift.TException {
17614
      // check for required fields
17615
    }
17616
 
17617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17618
      try {
17619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17620
      } catch (org.apache.thrift.TException te) {
17621
        throw new java.io.IOException(te);
17622
      }
17623
    }
17624
 
17625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17626
      try {
17627
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17628
        __isset_bit_vector = new BitSet(1);
17629
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17630
      } catch (org.apache.thrift.TException te) {
17631
        throw new java.io.IOException(te);
17632
      }
17633
    }
17634
 
17635
  }
17636
 
17637
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17639
 
17640
    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);
17641
 
17642
    private long success; // required
17643
 
17644
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17645
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17646
      SUCCESS((short)0, "success");
17647
 
17648
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17649
 
17650
      static {
17651
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17652
          byName.put(field.getFieldName(), field);
17653
        }
17654
      }
17655
 
17656
      /**
17657
       * Find the _Fields constant that matches fieldId, or null if its not found.
17658
       */
17659
      public static _Fields findByThriftId(int fieldId) {
17660
        switch(fieldId) {
17661
          case 0: // SUCCESS
17662
            return SUCCESS;
17663
          default:
17664
            return null;
17665
        }
17666
      }
17667
 
17668
      /**
17669
       * Find the _Fields constant that matches fieldId, throwing an exception
17670
       * if it is not found.
17671
       */
17672
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17673
        _Fields fields = findByThriftId(fieldId);
17674
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17675
        return fields;
17676
      }
17677
 
17678
      /**
17679
       * Find the _Fields constant that matches name, or null if its not found.
17680
       */
17681
      public static _Fields findByName(String name) {
17682
        return byName.get(name);
17683
      }
17684
 
17685
      private final short _thriftId;
17686
      private final String _fieldName;
17687
 
17688
      _Fields(short thriftId, String fieldName) {
17689
        _thriftId = thriftId;
17690
        _fieldName = fieldName;
17691
      }
17692
 
17693
      public short getThriftFieldId() {
17694
        return _thriftId;
17695
      }
17696
 
17697
      public String getFieldName() {
17698
        return _fieldName;
17699
      }
17700
    }
17701
 
17702
    // isset id assignments
17703
    private static final int __SUCCESS_ISSET_ID = 0;
17704
    private BitSet __isset_bit_vector = new BitSet(1);
17705
 
17706
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17707
    static {
17708
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17709
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17711
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17712
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17713
    }
17714
 
17715
    public adjustDeliveryDays_result() {
17716
    }
17717
 
17718
    public adjustDeliveryDays_result(
17719
      long success)
17720
    {
17721
      this();
17722
      this.success = success;
17723
      setSuccessIsSet(true);
17724
    }
17725
 
17726
    /**
17727
     * Performs a deep copy on <i>other</i>.
17728
     */
17729
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17730
      __isset_bit_vector.clear();
17731
      __isset_bit_vector.or(other.__isset_bit_vector);
17732
      this.success = other.success;
17733
    }
17734
 
17735
    public adjustDeliveryDays_result deepCopy() {
17736
      return new adjustDeliveryDays_result(this);
17737
    }
17738
 
17739
    @Override
17740
    public void clear() {
17741
      setSuccessIsSet(false);
17742
      this.success = 0;
17743
    }
17744
 
17745
    public long getSuccess() {
17746
      return this.success;
17747
    }
17748
 
17749
    public void setSuccess(long success) {
17750
      this.success = success;
17751
      setSuccessIsSet(true);
17752
    }
17753
 
17754
    public void unsetSuccess() {
17755
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17756
    }
17757
 
17758
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17759
    public boolean isSetSuccess() {
17760
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17761
    }
17762
 
17763
    public void setSuccessIsSet(boolean value) {
17764
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17765
    }
17766
 
17767
    public void setFieldValue(_Fields field, Object value) {
17768
      switch (field) {
17769
      case SUCCESS:
17770
        if (value == null) {
17771
          unsetSuccess();
17772
        } else {
17773
          setSuccess((Long)value);
17774
        }
17775
        break;
17776
 
17777
      }
17778
    }
17779
 
17780
    public Object getFieldValue(_Fields field) {
17781
      switch (field) {
17782
      case SUCCESS:
17783
        return Long.valueOf(getSuccess());
17784
 
17785
      }
17786
      throw new IllegalStateException();
17787
    }
17788
 
17789
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17790
    public boolean isSet(_Fields field) {
17791
      if (field == null) {
17792
        throw new IllegalArgumentException();
17793
      }
17794
 
17795
      switch (field) {
17796
      case SUCCESS:
17797
        return isSetSuccess();
17798
      }
17799
      throw new IllegalStateException();
17800
    }
17801
 
17802
    @Override
17803
    public boolean equals(Object that) {
17804
      if (that == null)
17805
        return false;
17806
      if (that instanceof adjustDeliveryDays_result)
17807
        return this.equals((adjustDeliveryDays_result)that);
17808
      return false;
17809
    }
17810
 
17811
    public boolean equals(adjustDeliveryDays_result that) {
17812
      if (that == null)
17813
        return false;
17814
 
17815
      boolean this_present_success = true;
17816
      boolean that_present_success = true;
17817
      if (this_present_success || that_present_success) {
17818
        if (!(this_present_success && that_present_success))
17819
          return false;
17820
        if (this.success != that.success)
17821
          return false;
17822
      }
17823
 
17824
      return true;
17825
    }
17826
 
17827
    @Override
17828
    public int hashCode() {
17829
      return 0;
17830
    }
17831
 
17832
    public int compareTo(adjustDeliveryDays_result other) {
17833
      if (!getClass().equals(other.getClass())) {
17834
        return getClass().getName().compareTo(other.getClass().getName());
17835
      }
17836
 
17837
      int lastComparison = 0;
17838
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17839
 
17840
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17841
      if (lastComparison != 0) {
17842
        return lastComparison;
17843
      }
17844
      if (isSetSuccess()) {
17845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17846
        if (lastComparison != 0) {
17847
          return lastComparison;
17848
        }
17849
      }
17850
      return 0;
17851
    }
17852
 
17853
    public _Fields fieldForId(int fieldId) {
17854
      return _Fields.findByThriftId(fieldId);
17855
    }
17856
 
17857
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17858
      org.apache.thrift.protocol.TField field;
17859
      iprot.readStructBegin();
17860
      while (true)
17861
      {
17862
        field = iprot.readFieldBegin();
17863
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17864
          break;
17865
        }
17866
        switch (field.id) {
17867
          case 0: // SUCCESS
17868
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17869
              this.success = iprot.readI64();
17870
              setSuccessIsSet(true);
17871
            } else { 
17872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17873
            }
17874
            break;
17875
          default:
17876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17877
        }
17878
        iprot.readFieldEnd();
17879
      }
17880
      iprot.readStructEnd();
17881
      validate();
17882
    }
17883
 
17884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17885
      oprot.writeStructBegin(STRUCT_DESC);
17886
 
17887
      if (this.isSetSuccess()) {
17888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17889
        oprot.writeI64(this.success);
17890
        oprot.writeFieldEnd();
17891
      }
17892
      oprot.writeFieldStop();
17893
      oprot.writeStructEnd();
17894
    }
17895
 
17896
    @Override
17897
    public String toString() {
17898
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17899
      boolean first = true;
17900
 
17901
      sb.append("success:");
17902
      sb.append(this.success);
17903
      first = false;
17904
      sb.append(")");
17905
      return sb.toString();
17906
    }
17907
 
17908
    public void validate() throws org.apache.thrift.TException {
17909
      // check for required fields
17910
    }
17911
 
17912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17913
      try {
17914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17915
      } catch (org.apache.thrift.TException te) {
17916
        throw new java.io.IOException(te);
17917
      }
17918
    }
17919
 
17920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17921
      try {
17922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17923
      } catch (org.apache.thrift.TException te) {
17924
        throw new java.io.IOException(te);
17925
      }
17926
    }
17927
 
17928
  }
17929
 
12895 manish.sha 17930
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17932
 
17933
    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)1);
17934
    private static final org.apache.thrift.protocol.TField WH_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("whLocation", org.apache.thrift.protocol.TType.I64, (short)2);
17935
 
17936
    private String pincode; // required
17937
    private long whLocation; // required
17938
 
17939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17941
      PINCODE((short)1, "pincode"),
17942
      WH_LOCATION((short)2, "whLocation");
17943
 
17944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17945
 
17946
      static {
17947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17948
          byName.put(field.getFieldName(), field);
17949
        }
17950
      }
17951
 
17952
      /**
17953
       * Find the _Fields constant that matches fieldId, or null if its not found.
17954
       */
17955
      public static _Fields findByThriftId(int fieldId) {
17956
        switch(fieldId) {
17957
          case 1: // PINCODE
17958
            return PINCODE;
17959
          case 2: // WH_LOCATION
17960
            return WH_LOCATION;
17961
          default:
17962
            return null;
17963
        }
17964
      }
17965
 
17966
      /**
17967
       * Find the _Fields constant that matches fieldId, throwing an exception
17968
       * if it is not found.
17969
       */
17970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17971
        _Fields fields = findByThriftId(fieldId);
17972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17973
        return fields;
17974
      }
17975
 
17976
      /**
17977
       * Find the _Fields constant that matches name, or null if its not found.
17978
       */
17979
      public static _Fields findByName(String name) {
17980
        return byName.get(name);
17981
      }
17982
 
17983
      private final short _thriftId;
17984
      private final String _fieldName;
17985
 
17986
      _Fields(short thriftId, String fieldName) {
17987
        _thriftId = thriftId;
17988
        _fieldName = fieldName;
17989
      }
17990
 
17991
      public short getThriftFieldId() {
17992
        return _thriftId;
17993
      }
17994
 
17995
      public String getFieldName() {
17996
        return _fieldName;
17997
      }
17998
    }
17999
 
18000
    // isset id assignments
18001
    private static final int __WHLOCATION_ISSET_ID = 0;
18002
    private BitSet __isset_bit_vector = new BitSet(1);
18003
 
18004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18005
    static {
18006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18007
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18008
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18009
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18010
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18011
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18012
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
18013
    }
18014
 
18015
    public getFirstDeliveryEstimateForWhLocation_args() {
18016
    }
18017
 
18018
    public getFirstDeliveryEstimateForWhLocation_args(
18019
      String pincode,
18020
      long whLocation)
18021
    {
18022
      this();
18023
      this.pincode = pincode;
18024
      this.whLocation = whLocation;
18025
      setWhLocationIsSet(true);
18026
    }
18027
 
18028
    /**
18029
     * Performs a deep copy on <i>other</i>.
18030
     */
18031
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
18032
      __isset_bit_vector.clear();
18033
      __isset_bit_vector.or(other.__isset_bit_vector);
18034
      if (other.isSetPincode()) {
18035
        this.pincode = other.pincode;
18036
      }
18037
      this.whLocation = other.whLocation;
18038
    }
18039
 
18040
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
18041
      return new getFirstDeliveryEstimateForWhLocation_args(this);
18042
    }
18043
 
18044
    @Override
18045
    public void clear() {
18046
      this.pincode = null;
18047
      setWhLocationIsSet(false);
18048
      this.whLocation = 0;
18049
    }
18050
 
18051
    public String getPincode() {
18052
      return this.pincode;
18053
    }
18054
 
18055
    public void setPincode(String pincode) {
18056
      this.pincode = pincode;
18057
    }
18058
 
18059
    public void unsetPincode() {
18060
      this.pincode = null;
18061
    }
18062
 
18063
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
18064
    public boolean isSetPincode() {
18065
      return this.pincode != null;
18066
    }
18067
 
18068
    public void setPincodeIsSet(boolean value) {
18069
      if (!value) {
18070
        this.pincode = null;
18071
      }
18072
    }
18073
 
18074
    public long getWhLocation() {
18075
      return this.whLocation;
18076
    }
18077
 
18078
    public void setWhLocation(long whLocation) {
18079
      this.whLocation = whLocation;
18080
      setWhLocationIsSet(true);
18081
    }
18082
 
18083
    public void unsetWhLocation() {
18084
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18085
    }
18086
 
18087
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18088
    public boolean isSetWhLocation() {
18089
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18090
    }
18091
 
18092
    public void setWhLocationIsSet(boolean value) {
18093
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18094
    }
18095
 
18096
    public void setFieldValue(_Fields field, Object value) {
18097
      switch (field) {
18098
      case PINCODE:
18099
        if (value == null) {
18100
          unsetPincode();
18101
        } else {
18102
          setPincode((String)value);
18103
        }
18104
        break;
18105
 
18106
      case WH_LOCATION:
18107
        if (value == null) {
18108
          unsetWhLocation();
18109
        } else {
18110
          setWhLocation((Long)value);
18111
        }
18112
        break;
18113
 
18114
      }
18115
    }
18116
 
18117
    public Object getFieldValue(_Fields field) {
18118
      switch (field) {
18119
      case PINCODE:
18120
        return getPincode();
18121
 
18122
      case WH_LOCATION:
18123
        return Long.valueOf(getWhLocation());
18124
 
18125
      }
18126
      throw new IllegalStateException();
18127
    }
18128
 
18129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18130
    public boolean isSet(_Fields field) {
18131
      if (field == null) {
18132
        throw new IllegalArgumentException();
18133
      }
18134
 
18135
      switch (field) {
18136
      case PINCODE:
18137
        return isSetPincode();
18138
      case WH_LOCATION:
18139
        return isSetWhLocation();
18140
      }
18141
      throw new IllegalStateException();
18142
    }
18143
 
18144
    @Override
18145
    public boolean equals(Object that) {
18146
      if (that == null)
18147
        return false;
18148
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18149
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18150
      return false;
18151
    }
18152
 
18153
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18154
      if (that == null)
18155
        return false;
18156
 
18157
      boolean this_present_pincode = true && this.isSetPincode();
18158
      boolean that_present_pincode = true && that.isSetPincode();
18159
      if (this_present_pincode || that_present_pincode) {
18160
        if (!(this_present_pincode && that_present_pincode))
18161
          return false;
18162
        if (!this.pincode.equals(that.pincode))
18163
          return false;
18164
      }
18165
 
18166
      boolean this_present_whLocation = true;
18167
      boolean that_present_whLocation = true;
18168
      if (this_present_whLocation || that_present_whLocation) {
18169
        if (!(this_present_whLocation && that_present_whLocation))
18170
          return false;
18171
        if (this.whLocation != that.whLocation)
18172
          return false;
18173
      }
18174
 
18175
      return true;
18176
    }
18177
 
18178
    @Override
18179
    public int hashCode() {
18180
      return 0;
18181
    }
18182
 
18183
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18184
      if (!getClass().equals(other.getClass())) {
18185
        return getClass().getName().compareTo(other.getClass().getName());
18186
      }
18187
 
18188
      int lastComparison = 0;
18189
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18190
 
18191
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18192
      if (lastComparison != 0) {
18193
        return lastComparison;
18194
      }
18195
      if (isSetPincode()) {
18196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18197
        if (lastComparison != 0) {
18198
          return lastComparison;
18199
        }
18200
      }
18201
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18202
      if (lastComparison != 0) {
18203
        return lastComparison;
18204
      }
18205
      if (isSetWhLocation()) {
18206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18207
        if (lastComparison != 0) {
18208
          return lastComparison;
18209
        }
18210
      }
18211
      return 0;
18212
    }
18213
 
18214
    public _Fields fieldForId(int fieldId) {
18215
      return _Fields.findByThriftId(fieldId);
18216
    }
18217
 
18218
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18219
      org.apache.thrift.protocol.TField field;
18220
      iprot.readStructBegin();
18221
      while (true)
18222
      {
18223
        field = iprot.readFieldBegin();
18224
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18225
          break;
18226
        }
18227
        switch (field.id) {
18228
          case 1: // PINCODE
18229
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18230
              this.pincode = iprot.readString();
18231
            } else { 
18232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18233
            }
18234
            break;
18235
          case 2: // WH_LOCATION
18236
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18237
              this.whLocation = iprot.readI64();
18238
              setWhLocationIsSet(true);
18239
            } else { 
18240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18241
            }
18242
            break;
18243
          default:
18244
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18245
        }
18246
        iprot.readFieldEnd();
18247
      }
18248
      iprot.readStructEnd();
18249
      validate();
18250
    }
18251
 
18252
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18253
      validate();
18254
 
18255
      oprot.writeStructBegin(STRUCT_DESC);
18256
      if (this.pincode != null) {
18257
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18258
        oprot.writeString(this.pincode);
18259
        oprot.writeFieldEnd();
18260
      }
18261
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18262
      oprot.writeI64(this.whLocation);
18263
      oprot.writeFieldEnd();
18264
      oprot.writeFieldStop();
18265
      oprot.writeStructEnd();
18266
    }
18267
 
18268
    @Override
18269
    public String toString() {
18270
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18271
      boolean first = true;
18272
 
18273
      sb.append("pincode:");
18274
      if (this.pincode == null) {
18275
        sb.append("null");
18276
      } else {
18277
        sb.append(this.pincode);
18278
      }
18279
      first = false;
18280
      if (!first) sb.append(", ");
18281
      sb.append("whLocation:");
18282
      sb.append(this.whLocation);
18283
      first = false;
18284
      sb.append(")");
18285
      return sb.toString();
18286
    }
18287
 
18288
    public void validate() throws org.apache.thrift.TException {
18289
      // check for required fields
18290
    }
18291
 
18292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18293
      try {
18294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18295
      } catch (org.apache.thrift.TException te) {
18296
        throw new java.io.IOException(te);
18297
      }
18298
    }
18299
 
18300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18301
      try {
18302
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18303
        __isset_bit_vector = new BitSet(1);
18304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18305
      } catch (org.apache.thrift.TException te) {
18306
        throw new java.io.IOException(te);
18307
      }
18308
    }
18309
 
18310
  }
18311
 
18312
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18314
 
18315
    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);
18316
 
18317
    private long success; // required
18318
 
18319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18321
      SUCCESS((short)0, "success");
18322
 
18323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18324
 
18325
      static {
18326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18327
          byName.put(field.getFieldName(), field);
18328
        }
18329
      }
18330
 
18331
      /**
18332
       * Find the _Fields constant that matches fieldId, or null if its not found.
18333
       */
18334
      public static _Fields findByThriftId(int fieldId) {
18335
        switch(fieldId) {
18336
          case 0: // SUCCESS
18337
            return SUCCESS;
18338
          default:
18339
            return null;
18340
        }
18341
      }
18342
 
18343
      /**
18344
       * Find the _Fields constant that matches fieldId, throwing an exception
18345
       * if it is not found.
18346
       */
18347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18348
        _Fields fields = findByThriftId(fieldId);
18349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18350
        return fields;
18351
      }
18352
 
18353
      /**
18354
       * Find the _Fields constant that matches name, or null if its not found.
18355
       */
18356
      public static _Fields findByName(String name) {
18357
        return byName.get(name);
18358
      }
18359
 
18360
      private final short _thriftId;
18361
      private final String _fieldName;
18362
 
18363
      _Fields(short thriftId, String fieldName) {
18364
        _thriftId = thriftId;
18365
        _fieldName = fieldName;
18366
      }
18367
 
18368
      public short getThriftFieldId() {
18369
        return _thriftId;
18370
      }
18371
 
18372
      public String getFieldName() {
18373
        return _fieldName;
18374
      }
18375
    }
18376
 
18377
    // isset id assignments
18378
    private static final int __SUCCESS_ISSET_ID = 0;
18379
    private BitSet __isset_bit_vector = new BitSet(1);
18380
 
18381
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18382
    static {
18383
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18384
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18385
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18386
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18387
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18388
    }
18389
 
18390
    public getFirstDeliveryEstimateForWhLocation_result() {
18391
    }
18392
 
18393
    public getFirstDeliveryEstimateForWhLocation_result(
18394
      long success)
18395
    {
18396
      this();
18397
      this.success = success;
18398
      setSuccessIsSet(true);
18399
    }
18400
 
18401
    /**
18402
     * Performs a deep copy on <i>other</i>.
18403
     */
18404
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18405
      __isset_bit_vector.clear();
18406
      __isset_bit_vector.or(other.__isset_bit_vector);
18407
      this.success = other.success;
18408
    }
18409
 
18410
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18411
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18412
    }
18413
 
18414
    @Override
18415
    public void clear() {
18416
      setSuccessIsSet(false);
18417
      this.success = 0;
18418
    }
18419
 
18420
    public long getSuccess() {
18421
      return this.success;
18422
    }
18423
 
18424
    public void setSuccess(long success) {
18425
      this.success = success;
18426
      setSuccessIsSet(true);
18427
    }
18428
 
18429
    public void unsetSuccess() {
18430
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18431
    }
18432
 
18433
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18434
    public boolean isSetSuccess() {
18435
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18436
    }
18437
 
18438
    public void setSuccessIsSet(boolean value) {
18439
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18440
    }
18441
 
18442
    public void setFieldValue(_Fields field, Object value) {
18443
      switch (field) {
18444
      case SUCCESS:
18445
        if (value == null) {
18446
          unsetSuccess();
18447
        } else {
18448
          setSuccess((Long)value);
18449
        }
18450
        break;
18451
 
18452
      }
18453
    }
18454
 
18455
    public Object getFieldValue(_Fields field) {
18456
      switch (field) {
18457
      case SUCCESS:
18458
        return Long.valueOf(getSuccess());
18459
 
18460
      }
18461
      throw new IllegalStateException();
18462
    }
18463
 
18464
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18465
    public boolean isSet(_Fields field) {
18466
      if (field == null) {
18467
        throw new IllegalArgumentException();
18468
      }
18469
 
18470
      switch (field) {
18471
      case SUCCESS:
18472
        return isSetSuccess();
18473
      }
18474
      throw new IllegalStateException();
18475
    }
18476
 
18477
    @Override
18478
    public boolean equals(Object that) {
18479
      if (that == null)
18480
        return false;
18481
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18482
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18483
      return false;
18484
    }
18485
 
18486
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18487
      if (that == null)
18488
        return false;
18489
 
18490
      boolean this_present_success = true;
18491
      boolean that_present_success = true;
18492
      if (this_present_success || that_present_success) {
18493
        if (!(this_present_success && that_present_success))
18494
          return false;
18495
        if (this.success != that.success)
18496
          return false;
18497
      }
18498
 
18499
      return true;
18500
    }
18501
 
18502
    @Override
18503
    public int hashCode() {
18504
      return 0;
18505
    }
18506
 
18507
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18508
      if (!getClass().equals(other.getClass())) {
18509
        return getClass().getName().compareTo(other.getClass().getName());
18510
      }
18511
 
18512
      int lastComparison = 0;
18513
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18514
 
18515
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18516
      if (lastComparison != 0) {
18517
        return lastComparison;
18518
      }
18519
      if (isSetSuccess()) {
18520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18521
        if (lastComparison != 0) {
18522
          return lastComparison;
18523
        }
18524
      }
18525
      return 0;
18526
    }
18527
 
18528
    public _Fields fieldForId(int fieldId) {
18529
      return _Fields.findByThriftId(fieldId);
18530
    }
18531
 
18532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18533
      org.apache.thrift.protocol.TField field;
18534
      iprot.readStructBegin();
18535
      while (true)
18536
      {
18537
        field = iprot.readFieldBegin();
18538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18539
          break;
18540
        }
18541
        switch (field.id) {
18542
          case 0: // SUCCESS
18543
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18544
              this.success = iprot.readI64();
18545
              setSuccessIsSet(true);
18546
            } else { 
18547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18548
            }
18549
            break;
18550
          default:
18551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18552
        }
18553
        iprot.readFieldEnd();
18554
      }
18555
      iprot.readStructEnd();
18556
      validate();
18557
    }
18558
 
18559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18560
      oprot.writeStructBegin(STRUCT_DESC);
18561
 
18562
      if (this.isSetSuccess()) {
18563
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18564
        oprot.writeI64(this.success);
18565
        oprot.writeFieldEnd();
18566
      }
18567
      oprot.writeFieldStop();
18568
      oprot.writeStructEnd();
18569
    }
18570
 
18571
    @Override
18572
    public String toString() {
18573
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18574
      boolean first = true;
18575
 
18576
      sb.append("success:");
18577
      sb.append(this.success);
18578
      first = false;
18579
      sb.append(")");
18580
      return sb.toString();
18581
    }
18582
 
18583
    public void validate() throws org.apache.thrift.TException {
18584
      // check for required fields
18585
    }
18586
 
18587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18588
      try {
18589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18590
      } catch (org.apache.thrift.TException te) {
18591
        throw new java.io.IOException(te);
18592
      }
18593
    }
18594
 
18595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18596
      try {
18597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18598
      } catch (org.apache.thrift.TException te) {
18599
        throw new java.io.IOException(te);
18600
      }
18601
    }
18602
 
18603
  }
18604
 
13146 manish.sha 18605
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18607
 
18608
    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);
18609
    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)2);
18610
    private static final org.apache.thrift.protocol.TField ORDER_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("orderQuantity", org.apache.thrift.protocol.TType.I64, (short)3);
18611
 
18612
    private long providerId; // required
18613
    private DeliveryType type; // required
18614
    private long orderQuantity; // required
18615
 
18616
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18617
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18618
      PROVIDER_ID((short)1, "providerId"),
18619
      /**
18620
       * 
18621
       * @see DeliveryType
18622
       */
18623
      TYPE((short)2, "type"),
18624
      ORDER_QUANTITY((short)3, "orderQuantity");
18625
 
18626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18627
 
18628
      static {
18629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18630
          byName.put(field.getFieldName(), field);
18631
        }
18632
      }
18633
 
18634
      /**
18635
       * Find the _Fields constant that matches fieldId, or null if its not found.
18636
       */
18637
      public static _Fields findByThriftId(int fieldId) {
18638
        switch(fieldId) {
18639
          case 1: // PROVIDER_ID
18640
            return PROVIDER_ID;
18641
          case 2: // TYPE
18642
            return TYPE;
18643
          case 3: // ORDER_QUANTITY
18644
            return ORDER_QUANTITY;
18645
          default:
18646
            return null;
18647
        }
18648
      }
18649
 
18650
      /**
18651
       * Find the _Fields constant that matches fieldId, throwing an exception
18652
       * if it is not found.
18653
       */
18654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18655
        _Fields fields = findByThriftId(fieldId);
18656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18657
        return fields;
18658
      }
18659
 
18660
      /**
18661
       * Find the _Fields constant that matches name, or null if its not found.
18662
       */
18663
      public static _Fields findByName(String name) {
18664
        return byName.get(name);
18665
      }
18666
 
18667
      private final short _thriftId;
18668
      private final String _fieldName;
18669
 
18670
      _Fields(short thriftId, String fieldName) {
18671
        _thriftId = thriftId;
18672
        _fieldName = fieldName;
18673
      }
18674
 
18675
      public short getThriftFieldId() {
18676
        return _thriftId;
18677
      }
18678
 
18679
      public String getFieldName() {
18680
        return _fieldName;
18681
      }
18682
    }
18683
 
18684
    // isset id assignments
18685
    private static final int __PROVIDERID_ISSET_ID = 0;
18686
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18687
    private BitSet __isset_bit_vector = new BitSet(2);
18688
 
18689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18690
    static {
18691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18692
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18694
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18695
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18696
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18700
    }
18701
 
18702
    public getNewEmptyAwb_args() {
18703
    }
18704
 
18705
    public getNewEmptyAwb_args(
18706
      long providerId,
18707
      DeliveryType type,
18708
      long orderQuantity)
18709
    {
18710
      this();
18711
      this.providerId = providerId;
18712
      setProviderIdIsSet(true);
18713
      this.type = type;
18714
      this.orderQuantity = orderQuantity;
18715
      setOrderQuantityIsSet(true);
18716
    }
18717
 
18718
    /**
18719
     * Performs a deep copy on <i>other</i>.
18720
     */
18721
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18722
      __isset_bit_vector.clear();
18723
      __isset_bit_vector.or(other.__isset_bit_vector);
18724
      this.providerId = other.providerId;
18725
      if (other.isSetType()) {
18726
        this.type = other.type;
18727
      }
18728
      this.orderQuantity = other.orderQuantity;
18729
    }
18730
 
18731
    public getNewEmptyAwb_args deepCopy() {
18732
      return new getNewEmptyAwb_args(this);
18733
    }
18734
 
18735
    @Override
18736
    public void clear() {
18737
      setProviderIdIsSet(false);
18738
      this.providerId = 0;
18739
      this.type = null;
18740
      setOrderQuantityIsSet(false);
18741
      this.orderQuantity = 0;
18742
    }
18743
 
18744
    public long getProviderId() {
18745
      return this.providerId;
18746
    }
18747
 
18748
    public void setProviderId(long providerId) {
18749
      this.providerId = providerId;
18750
      setProviderIdIsSet(true);
18751
    }
18752
 
18753
    public void unsetProviderId() {
18754
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18755
    }
18756
 
18757
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18758
    public boolean isSetProviderId() {
18759
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18760
    }
18761
 
18762
    public void setProviderIdIsSet(boolean value) {
18763
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18764
    }
18765
 
18766
    /**
18767
     * 
18768
     * @see DeliveryType
18769
     */
18770
    public DeliveryType getType() {
18771
      return this.type;
18772
    }
18773
 
18774
    /**
18775
     * 
18776
     * @see DeliveryType
18777
     */
18778
    public void setType(DeliveryType type) {
18779
      this.type = type;
18780
    }
18781
 
18782
    public void unsetType() {
18783
      this.type = null;
18784
    }
18785
 
18786
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18787
    public boolean isSetType() {
18788
      return this.type != null;
18789
    }
18790
 
18791
    public void setTypeIsSet(boolean value) {
18792
      if (!value) {
18793
        this.type = null;
18794
      }
18795
    }
18796
 
18797
    public long getOrderQuantity() {
18798
      return this.orderQuantity;
18799
    }
18800
 
18801
    public void setOrderQuantity(long orderQuantity) {
18802
      this.orderQuantity = orderQuantity;
18803
      setOrderQuantityIsSet(true);
18804
    }
18805
 
18806
    public void unsetOrderQuantity() {
18807
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18808
    }
18809
 
18810
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18811
    public boolean isSetOrderQuantity() {
18812
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18813
    }
18814
 
18815
    public void setOrderQuantityIsSet(boolean value) {
18816
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18817
    }
18818
 
18819
    public void setFieldValue(_Fields field, Object value) {
18820
      switch (field) {
18821
      case PROVIDER_ID:
18822
        if (value == null) {
18823
          unsetProviderId();
18824
        } else {
18825
          setProviderId((Long)value);
18826
        }
18827
        break;
18828
 
18829
      case TYPE:
18830
        if (value == null) {
18831
          unsetType();
18832
        } else {
18833
          setType((DeliveryType)value);
18834
        }
18835
        break;
18836
 
18837
      case ORDER_QUANTITY:
18838
        if (value == null) {
18839
          unsetOrderQuantity();
18840
        } else {
18841
          setOrderQuantity((Long)value);
18842
        }
18843
        break;
18844
 
18845
      }
18846
    }
18847
 
18848
    public Object getFieldValue(_Fields field) {
18849
      switch (field) {
18850
      case PROVIDER_ID:
18851
        return Long.valueOf(getProviderId());
18852
 
18853
      case TYPE:
18854
        return getType();
18855
 
18856
      case ORDER_QUANTITY:
18857
        return Long.valueOf(getOrderQuantity());
18858
 
18859
      }
18860
      throw new IllegalStateException();
18861
    }
18862
 
18863
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18864
    public boolean isSet(_Fields field) {
18865
      if (field == null) {
18866
        throw new IllegalArgumentException();
18867
      }
18868
 
18869
      switch (field) {
18870
      case PROVIDER_ID:
18871
        return isSetProviderId();
18872
      case TYPE:
18873
        return isSetType();
18874
      case ORDER_QUANTITY:
18875
        return isSetOrderQuantity();
18876
      }
18877
      throw new IllegalStateException();
18878
    }
18879
 
18880
    @Override
18881
    public boolean equals(Object that) {
18882
      if (that == null)
18883
        return false;
18884
      if (that instanceof getNewEmptyAwb_args)
18885
        return this.equals((getNewEmptyAwb_args)that);
18886
      return false;
18887
    }
18888
 
18889
    public boolean equals(getNewEmptyAwb_args that) {
18890
      if (that == null)
18891
        return false;
18892
 
18893
      boolean this_present_providerId = true;
18894
      boolean that_present_providerId = true;
18895
      if (this_present_providerId || that_present_providerId) {
18896
        if (!(this_present_providerId && that_present_providerId))
18897
          return false;
18898
        if (this.providerId != that.providerId)
18899
          return false;
18900
      }
18901
 
18902
      boolean this_present_type = true && this.isSetType();
18903
      boolean that_present_type = true && that.isSetType();
18904
      if (this_present_type || that_present_type) {
18905
        if (!(this_present_type && that_present_type))
18906
          return false;
18907
        if (!this.type.equals(that.type))
18908
          return false;
18909
      }
18910
 
18911
      boolean this_present_orderQuantity = true;
18912
      boolean that_present_orderQuantity = true;
18913
      if (this_present_orderQuantity || that_present_orderQuantity) {
18914
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18915
          return false;
18916
        if (this.orderQuantity != that.orderQuantity)
18917
          return false;
18918
      }
18919
 
18920
      return true;
18921
    }
18922
 
18923
    @Override
18924
    public int hashCode() {
18925
      return 0;
18926
    }
18927
 
18928
    public int compareTo(getNewEmptyAwb_args other) {
18929
      if (!getClass().equals(other.getClass())) {
18930
        return getClass().getName().compareTo(other.getClass().getName());
18931
      }
18932
 
18933
      int lastComparison = 0;
18934
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18935
 
18936
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18937
      if (lastComparison != 0) {
18938
        return lastComparison;
18939
      }
18940
      if (isSetProviderId()) {
18941
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18942
        if (lastComparison != 0) {
18943
          return lastComparison;
18944
        }
18945
      }
18946
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18947
      if (lastComparison != 0) {
18948
        return lastComparison;
18949
      }
18950
      if (isSetType()) {
18951
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18952
        if (lastComparison != 0) {
18953
          return lastComparison;
18954
        }
18955
      }
18956
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18957
      if (lastComparison != 0) {
18958
        return lastComparison;
18959
      }
18960
      if (isSetOrderQuantity()) {
18961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18962
        if (lastComparison != 0) {
18963
          return lastComparison;
18964
        }
18965
      }
18966
      return 0;
18967
    }
18968
 
18969
    public _Fields fieldForId(int fieldId) {
18970
      return _Fields.findByThriftId(fieldId);
18971
    }
18972
 
18973
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18974
      org.apache.thrift.protocol.TField field;
18975
      iprot.readStructBegin();
18976
      while (true)
18977
      {
18978
        field = iprot.readFieldBegin();
18979
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18980
          break;
18981
        }
18982
        switch (field.id) {
18983
          case 1: // PROVIDER_ID
18984
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18985
              this.providerId = iprot.readI64();
18986
              setProviderIdIsSet(true);
18987
            } else { 
18988
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18989
            }
18990
            break;
18991
          case 2: // TYPE
18992
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18993
              this.type = DeliveryType.findByValue(iprot.readI32());
18994
            } else { 
18995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18996
            }
18997
            break;
18998
          case 3: // ORDER_QUANTITY
18999
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19000
              this.orderQuantity = iprot.readI64();
19001
              setOrderQuantityIsSet(true);
19002
            } else { 
19003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19004
            }
19005
            break;
19006
          default:
19007
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19008
        }
19009
        iprot.readFieldEnd();
19010
      }
19011
      iprot.readStructEnd();
19012
      validate();
19013
    }
19014
 
19015
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19016
      validate();
19017
 
19018
      oprot.writeStructBegin(STRUCT_DESC);
19019
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19020
      oprot.writeI64(this.providerId);
19021
      oprot.writeFieldEnd();
19022
      if (this.type != null) {
19023
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
19024
        oprot.writeI32(this.type.getValue());
19025
        oprot.writeFieldEnd();
19026
      }
19027
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
19028
      oprot.writeI64(this.orderQuantity);
19029
      oprot.writeFieldEnd();
19030
      oprot.writeFieldStop();
19031
      oprot.writeStructEnd();
19032
    }
19033
 
19034
    @Override
19035
    public String toString() {
19036
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
19037
      boolean first = true;
19038
 
19039
      sb.append("providerId:");
19040
      sb.append(this.providerId);
19041
      first = false;
19042
      if (!first) sb.append(", ");
19043
      sb.append("type:");
19044
      if (this.type == null) {
19045
        sb.append("null");
19046
      } else {
19047
        sb.append(this.type);
19048
      }
19049
      first = false;
19050
      if (!first) sb.append(", ");
19051
      sb.append("orderQuantity:");
19052
      sb.append(this.orderQuantity);
19053
      first = false;
19054
      sb.append(")");
19055
      return sb.toString();
19056
    }
19057
 
19058
    public void validate() throws org.apache.thrift.TException {
19059
      // check for required fields
19060
    }
19061
 
19062
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19063
      try {
19064
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19065
      } catch (org.apache.thrift.TException te) {
19066
        throw new java.io.IOException(te);
19067
      }
19068
    }
19069
 
19070
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19071
      try {
19072
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19073
        __isset_bit_vector = new BitSet(1);
19074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19075
      } catch (org.apache.thrift.TException te) {
19076
        throw new java.io.IOException(te);
19077
      }
19078
    }
19079
 
19080
  }
19081
 
19082
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19084
 
19085
    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);
19086
    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);
19087
 
19088
    private String success; // required
19089
    private LogisticsServiceException se; // required
19090
 
19091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19093
      SUCCESS((short)0, "success"),
19094
      SE((short)1, "se");
19095
 
19096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19097
 
19098
      static {
19099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19100
          byName.put(field.getFieldName(), field);
19101
        }
19102
      }
19103
 
19104
      /**
19105
       * Find the _Fields constant that matches fieldId, or null if its not found.
19106
       */
19107
      public static _Fields findByThriftId(int fieldId) {
19108
        switch(fieldId) {
19109
          case 0: // SUCCESS
19110
            return SUCCESS;
19111
          case 1: // SE
19112
            return SE;
19113
          default:
19114
            return null;
19115
        }
19116
      }
19117
 
19118
      /**
19119
       * Find the _Fields constant that matches fieldId, throwing an exception
19120
       * if it is not found.
19121
       */
19122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19123
        _Fields fields = findByThriftId(fieldId);
19124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19125
        return fields;
19126
      }
19127
 
19128
      /**
19129
       * Find the _Fields constant that matches name, or null if its not found.
19130
       */
19131
      public static _Fields findByName(String name) {
19132
        return byName.get(name);
19133
      }
19134
 
19135
      private final short _thriftId;
19136
      private final String _fieldName;
19137
 
19138
      _Fields(short thriftId, String fieldName) {
19139
        _thriftId = thriftId;
19140
        _fieldName = fieldName;
19141
      }
19142
 
19143
      public short getThriftFieldId() {
19144
        return _thriftId;
19145
      }
19146
 
19147
      public String getFieldName() {
19148
        return _fieldName;
19149
      }
19150
    }
19151
 
19152
    // isset id assignments
19153
 
19154
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19155
    static {
19156
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19157
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19158
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19159
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19163
    }
19164
 
19165
    public getNewEmptyAwb_result() {
19166
    }
19167
 
19168
    public getNewEmptyAwb_result(
19169
      String success,
19170
      LogisticsServiceException se)
19171
    {
19172
      this();
19173
      this.success = success;
19174
      this.se = se;
19175
    }
19176
 
19177
    /**
19178
     * Performs a deep copy on <i>other</i>.
19179
     */
19180
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19181
      if (other.isSetSuccess()) {
19182
        this.success = other.success;
19183
      }
19184
      if (other.isSetSe()) {
19185
        this.se = new LogisticsServiceException(other.se);
19186
      }
19187
    }
19188
 
19189
    public getNewEmptyAwb_result deepCopy() {
19190
      return new getNewEmptyAwb_result(this);
19191
    }
19192
 
19193
    @Override
19194
    public void clear() {
19195
      this.success = null;
19196
      this.se = null;
19197
    }
19198
 
19199
    public String getSuccess() {
19200
      return this.success;
19201
    }
19202
 
19203
    public void setSuccess(String success) {
19204
      this.success = success;
19205
    }
19206
 
19207
    public void unsetSuccess() {
19208
      this.success = null;
19209
    }
19210
 
19211
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19212
    public boolean isSetSuccess() {
19213
      return this.success != null;
19214
    }
19215
 
19216
    public void setSuccessIsSet(boolean value) {
19217
      if (!value) {
19218
        this.success = null;
19219
      }
19220
    }
19221
 
19222
    public LogisticsServiceException getSe() {
19223
      return this.se;
19224
    }
19225
 
19226
    public void setSe(LogisticsServiceException se) {
19227
      this.se = se;
19228
    }
19229
 
19230
    public void unsetSe() {
19231
      this.se = null;
19232
    }
19233
 
19234
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19235
    public boolean isSetSe() {
19236
      return this.se != null;
19237
    }
19238
 
19239
    public void setSeIsSet(boolean value) {
19240
      if (!value) {
19241
        this.se = null;
19242
      }
19243
    }
19244
 
19245
    public void setFieldValue(_Fields field, Object value) {
19246
      switch (field) {
19247
      case SUCCESS:
19248
        if (value == null) {
19249
          unsetSuccess();
19250
        } else {
19251
          setSuccess((String)value);
19252
        }
19253
        break;
19254
 
19255
      case SE:
19256
        if (value == null) {
19257
          unsetSe();
19258
        } else {
19259
          setSe((LogisticsServiceException)value);
19260
        }
19261
        break;
19262
 
19263
      }
19264
    }
19265
 
19266
    public Object getFieldValue(_Fields field) {
19267
      switch (field) {
19268
      case SUCCESS:
19269
        return getSuccess();
19270
 
19271
      case SE:
19272
        return getSe();
19273
 
19274
      }
19275
      throw new IllegalStateException();
19276
    }
19277
 
19278
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19279
    public boolean isSet(_Fields field) {
19280
      if (field == null) {
19281
        throw new IllegalArgumentException();
19282
      }
19283
 
19284
      switch (field) {
19285
      case SUCCESS:
19286
        return isSetSuccess();
19287
      case SE:
19288
        return isSetSe();
19289
      }
19290
      throw new IllegalStateException();
19291
    }
19292
 
19293
    @Override
19294
    public boolean equals(Object that) {
19295
      if (that == null)
19296
        return false;
19297
      if (that instanceof getNewEmptyAwb_result)
19298
        return this.equals((getNewEmptyAwb_result)that);
19299
      return false;
19300
    }
19301
 
19302
    public boolean equals(getNewEmptyAwb_result that) {
19303
      if (that == null)
19304
        return false;
19305
 
19306
      boolean this_present_success = true && this.isSetSuccess();
19307
      boolean that_present_success = true && that.isSetSuccess();
19308
      if (this_present_success || that_present_success) {
19309
        if (!(this_present_success && that_present_success))
19310
          return false;
19311
        if (!this.success.equals(that.success))
19312
          return false;
19313
      }
19314
 
19315
      boolean this_present_se = true && this.isSetSe();
19316
      boolean that_present_se = true && that.isSetSe();
19317
      if (this_present_se || that_present_se) {
19318
        if (!(this_present_se && that_present_se))
19319
          return false;
19320
        if (!this.se.equals(that.se))
19321
          return false;
19322
      }
19323
 
19324
      return true;
19325
    }
19326
 
19327
    @Override
19328
    public int hashCode() {
19329
      return 0;
19330
    }
19331
 
19332
    public int compareTo(getNewEmptyAwb_result other) {
19333
      if (!getClass().equals(other.getClass())) {
19334
        return getClass().getName().compareTo(other.getClass().getName());
19335
      }
19336
 
19337
      int lastComparison = 0;
19338
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19339
 
19340
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19341
      if (lastComparison != 0) {
19342
        return lastComparison;
19343
      }
19344
      if (isSetSuccess()) {
19345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19346
        if (lastComparison != 0) {
19347
          return lastComparison;
19348
        }
19349
      }
19350
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19351
      if (lastComparison != 0) {
19352
        return lastComparison;
19353
      }
19354
      if (isSetSe()) {
19355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19356
        if (lastComparison != 0) {
19357
          return lastComparison;
19358
        }
19359
      }
19360
      return 0;
19361
    }
19362
 
19363
    public _Fields fieldForId(int fieldId) {
19364
      return _Fields.findByThriftId(fieldId);
19365
    }
19366
 
19367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19368
      org.apache.thrift.protocol.TField field;
19369
      iprot.readStructBegin();
19370
      while (true)
19371
      {
19372
        field = iprot.readFieldBegin();
19373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19374
          break;
19375
        }
19376
        switch (field.id) {
19377
          case 0: // SUCCESS
19378
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19379
              this.success = iprot.readString();
19380
            } else { 
19381
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19382
            }
19383
            break;
19384
          case 1: // SE
19385
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19386
              this.se = new LogisticsServiceException();
19387
              this.se.read(iprot);
19388
            } else { 
19389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19390
            }
19391
            break;
19392
          default:
19393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19394
        }
19395
        iprot.readFieldEnd();
19396
      }
19397
      iprot.readStructEnd();
19398
      validate();
19399
    }
19400
 
19401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19402
      oprot.writeStructBegin(STRUCT_DESC);
19403
 
19404
      if (this.isSetSuccess()) {
19405
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19406
        oprot.writeString(this.success);
19407
        oprot.writeFieldEnd();
19408
      } else if (this.isSetSe()) {
19409
        oprot.writeFieldBegin(SE_FIELD_DESC);
19410
        this.se.write(oprot);
19411
        oprot.writeFieldEnd();
19412
      }
19413
      oprot.writeFieldStop();
19414
      oprot.writeStructEnd();
19415
    }
19416
 
19417
    @Override
19418
    public String toString() {
19419
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19420
      boolean first = true;
19421
 
19422
      sb.append("success:");
19423
      if (this.success == null) {
19424
        sb.append("null");
19425
      } else {
19426
        sb.append(this.success);
19427
      }
19428
      first = false;
19429
      if (!first) sb.append(", ");
19430
      sb.append("se:");
19431
      if (this.se == null) {
19432
        sb.append("null");
19433
      } else {
19434
        sb.append(this.se);
19435
      }
19436
      first = false;
19437
      sb.append(")");
19438
      return sb.toString();
19439
    }
19440
 
19441
    public void validate() throws org.apache.thrift.TException {
19442
      // check for required fields
19443
    }
19444
 
19445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19446
      try {
19447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19448
      } catch (org.apache.thrift.TException te) {
19449
        throw new java.io.IOException(te);
19450
      }
19451
    }
19452
 
19453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19454
      try {
19455
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19456
      } catch (org.apache.thrift.TException te) {
19457
        throw new java.io.IOException(te);
19458
      }
19459
    }
19460
 
19461
  }
19462
 
19463
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19464
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19465
 
19466
    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);
19467
    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);
19468
 
19469
    private long providerId; // required
19470
    private String pincode; // required
19471
 
19472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19474
      PROVIDER_ID((short)1, "providerId"),
19475
      PINCODE((short)2, "pincode");
19476
 
19477
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19478
 
19479
      static {
19480
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19481
          byName.put(field.getFieldName(), field);
19482
        }
19483
      }
19484
 
19485
      /**
19486
       * Find the _Fields constant that matches fieldId, or null if its not found.
19487
       */
19488
      public static _Fields findByThriftId(int fieldId) {
19489
        switch(fieldId) {
19490
          case 1: // PROVIDER_ID
19491
            return PROVIDER_ID;
19492
          case 2: // PINCODE
19493
            return PINCODE;
19494
          default:
19495
            return null;
19496
        }
19497
      }
19498
 
19499
      /**
19500
       * Find the _Fields constant that matches fieldId, throwing an exception
19501
       * if it is not found.
19502
       */
19503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19504
        _Fields fields = findByThriftId(fieldId);
19505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19506
        return fields;
19507
      }
19508
 
19509
      /**
19510
       * Find the _Fields constant that matches name, or null if its not found.
19511
       */
19512
      public static _Fields findByName(String name) {
19513
        return byName.get(name);
19514
      }
19515
 
19516
      private final short _thriftId;
19517
      private final String _fieldName;
19518
 
19519
      _Fields(short thriftId, String fieldName) {
19520
        _thriftId = thriftId;
19521
        _fieldName = fieldName;
19522
      }
19523
 
19524
      public short getThriftFieldId() {
19525
        return _thriftId;
19526
      }
19527
 
19528
      public String getFieldName() {
19529
        return _fieldName;
19530
      }
19531
    }
19532
 
19533
    // isset id assignments
19534
    private static final int __PROVIDERID_ISSET_ID = 0;
19535
    private BitSet __isset_bit_vector = new BitSet(1);
19536
 
19537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19538
    static {
19539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19540
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19542
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19543
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19544
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19545
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19546
    }
19547
 
19548
    public getProviderLimitDetailsForPincode_args() {
19549
    }
19550
 
19551
    public getProviderLimitDetailsForPincode_args(
19552
      long providerId,
19553
      String pincode)
19554
    {
19555
      this();
19556
      this.providerId = providerId;
19557
      setProviderIdIsSet(true);
19558
      this.pincode = pincode;
19559
    }
19560
 
19561
    /**
19562
     * Performs a deep copy on <i>other</i>.
19563
     */
19564
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19565
      __isset_bit_vector.clear();
19566
      __isset_bit_vector.or(other.__isset_bit_vector);
19567
      this.providerId = other.providerId;
19568
      if (other.isSetPincode()) {
19569
        this.pincode = other.pincode;
19570
      }
19571
    }
19572
 
19573
    public getProviderLimitDetailsForPincode_args deepCopy() {
19574
      return new getProviderLimitDetailsForPincode_args(this);
19575
    }
19576
 
19577
    @Override
19578
    public void clear() {
19579
      setProviderIdIsSet(false);
19580
      this.providerId = 0;
19581
      this.pincode = null;
19582
    }
19583
 
19584
    public long getProviderId() {
19585
      return this.providerId;
19586
    }
19587
 
19588
    public void setProviderId(long providerId) {
19589
      this.providerId = providerId;
19590
      setProviderIdIsSet(true);
19591
    }
19592
 
19593
    public void unsetProviderId() {
19594
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19595
    }
19596
 
19597
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19598
    public boolean isSetProviderId() {
19599
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19600
    }
19601
 
19602
    public void setProviderIdIsSet(boolean value) {
19603
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19604
    }
19605
 
19606
    public String getPincode() {
19607
      return this.pincode;
19608
    }
19609
 
19610
    public void setPincode(String pincode) {
19611
      this.pincode = pincode;
19612
    }
19613
 
19614
    public void unsetPincode() {
19615
      this.pincode = null;
19616
    }
19617
 
19618
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19619
    public boolean isSetPincode() {
19620
      return this.pincode != null;
19621
    }
19622
 
19623
    public void setPincodeIsSet(boolean value) {
19624
      if (!value) {
19625
        this.pincode = null;
19626
      }
19627
    }
19628
 
19629
    public void setFieldValue(_Fields field, Object value) {
19630
      switch (field) {
19631
      case PROVIDER_ID:
19632
        if (value == null) {
19633
          unsetProviderId();
19634
        } else {
19635
          setProviderId((Long)value);
19636
        }
19637
        break;
19638
 
19639
      case PINCODE:
19640
        if (value == null) {
19641
          unsetPincode();
19642
        } else {
19643
          setPincode((String)value);
19644
        }
19645
        break;
19646
 
19647
      }
19648
    }
19649
 
19650
    public Object getFieldValue(_Fields field) {
19651
      switch (field) {
19652
      case PROVIDER_ID:
19653
        return Long.valueOf(getProviderId());
19654
 
19655
      case PINCODE:
19656
        return getPincode();
19657
 
19658
      }
19659
      throw new IllegalStateException();
19660
    }
19661
 
19662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19663
    public boolean isSet(_Fields field) {
19664
      if (field == null) {
19665
        throw new IllegalArgumentException();
19666
      }
19667
 
19668
      switch (field) {
19669
      case PROVIDER_ID:
19670
        return isSetProviderId();
19671
      case PINCODE:
19672
        return isSetPincode();
19673
      }
19674
      throw new IllegalStateException();
19675
    }
19676
 
19677
    @Override
19678
    public boolean equals(Object that) {
19679
      if (that == null)
19680
        return false;
19681
      if (that instanceof getProviderLimitDetailsForPincode_args)
19682
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19683
      return false;
19684
    }
19685
 
19686
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19687
      if (that == null)
19688
        return false;
19689
 
19690
      boolean this_present_providerId = true;
19691
      boolean that_present_providerId = true;
19692
      if (this_present_providerId || that_present_providerId) {
19693
        if (!(this_present_providerId && that_present_providerId))
19694
          return false;
19695
        if (this.providerId != that.providerId)
19696
          return false;
19697
      }
19698
 
19699
      boolean this_present_pincode = true && this.isSetPincode();
19700
      boolean that_present_pincode = true && that.isSetPincode();
19701
      if (this_present_pincode || that_present_pincode) {
19702
        if (!(this_present_pincode && that_present_pincode))
19703
          return false;
19704
        if (!this.pincode.equals(that.pincode))
19705
          return false;
19706
      }
19707
 
19708
      return true;
19709
    }
19710
 
19711
    @Override
19712
    public int hashCode() {
19713
      return 0;
19714
    }
19715
 
19716
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19717
      if (!getClass().equals(other.getClass())) {
19718
        return getClass().getName().compareTo(other.getClass().getName());
19719
      }
19720
 
19721
      int lastComparison = 0;
19722
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19723
 
19724
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19725
      if (lastComparison != 0) {
19726
        return lastComparison;
19727
      }
19728
      if (isSetProviderId()) {
19729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19730
        if (lastComparison != 0) {
19731
          return lastComparison;
19732
        }
19733
      }
19734
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19735
      if (lastComparison != 0) {
19736
        return lastComparison;
19737
      }
19738
      if (isSetPincode()) {
19739
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19740
        if (lastComparison != 0) {
19741
          return lastComparison;
19742
        }
19743
      }
19744
      return 0;
19745
    }
19746
 
19747
    public _Fields fieldForId(int fieldId) {
19748
      return _Fields.findByThriftId(fieldId);
19749
    }
19750
 
19751
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19752
      org.apache.thrift.protocol.TField field;
19753
      iprot.readStructBegin();
19754
      while (true)
19755
      {
19756
        field = iprot.readFieldBegin();
19757
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19758
          break;
19759
        }
19760
        switch (field.id) {
19761
          case 1: // PROVIDER_ID
19762
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19763
              this.providerId = iprot.readI64();
19764
              setProviderIdIsSet(true);
19765
            } else { 
19766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19767
            }
19768
            break;
19769
          case 2: // PINCODE
19770
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19771
              this.pincode = iprot.readString();
19772
            } else { 
19773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19774
            }
19775
            break;
19776
          default:
19777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19778
        }
19779
        iprot.readFieldEnd();
19780
      }
19781
      iprot.readStructEnd();
19782
      validate();
19783
    }
19784
 
19785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19786
      validate();
19787
 
19788
      oprot.writeStructBegin(STRUCT_DESC);
19789
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19790
      oprot.writeI64(this.providerId);
19791
      oprot.writeFieldEnd();
19792
      if (this.pincode != null) {
19793
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19794
        oprot.writeString(this.pincode);
19795
        oprot.writeFieldEnd();
19796
      }
19797
      oprot.writeFieldStop();
19798
      oprot.writeStructEnd();
19799
    }
19800
 
19801
    @Override
19802
    public String toString() {
19803
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19804
      boolean first = true;
19805
 
19806
      sb.append("providerId:");
19807
      sb.append(this.providerId);
19808
      first = false;
19809
      if (!first) sb.append(", ");
19810
      sb.append("pincode:");
19811
      if (this.pincode == null) {
19812
        sb.append("null");
19813
      } else {
19814
        sb.append(this.pincode);
19815
      }
19816
      first = false;
19817
      sb.append(")");
19818
      return sb.toString();
19819
    }
19820
 
19821
    public void validate() throws org.apache.thrift.TException {
19822
      // check for required fields
19823
    }
19824
 
19825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19826
      try {
19827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19828
      } catch (org.apache.thrift.TException te) {
19829
        throw new java.io.IOException(te);
19830
      }
19831
    }
19832
 
19833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19834
      try {
19835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19836
        __isset_bit_vector = new BitSet(1);
19837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19838
      } catch (org.apache.thrift.TException te) {
19839
        throw new java.io.IOException(te);
19840
      }
19841
    }
19842
 
19843
  }
19844
 
19845
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19847
 
19848
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
19849
    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);
19850
 
19851
    private Map<String,String> success; // required
19852
    private LogisticsServiceException se; // required
19853
 
19854
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19855
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19856
      SUCCESS((short)0, "success"),
19857
      SE((short)1, "se");
19858
 
19859
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19860
 
19861
      static {
19862
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19863
          byName.put(field.getFieldName(), field);
19864
        }
19865
      }
19866
 
19867
      /**
19868
       * Find the _Fields constant that matches fieldId, or null if its not found.
19869
       */
19870
      public static _Fields findByThriftId(int fieldId) {
19871
        switch(fieldId) {
19872
          case 0: // SUCCESS
19873
            return SUCCESS;
19874
          case 1: // SE
19875
            return SE;
19876
          default:
19877
            return null;
19878
        }
19879
      }
19880
 
19881
      /**
19882
       * Find the _Fields constant that matches fieldId, throwing an exception
19883
       * if it is not found.
19884
       */
19885
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19886
        _Fields fields = findByThriftId(fieldId);
19887
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19888
        return fields;
19889
      }
19890
 
19891
      /**
19892
       * Find the _Fields constant that matches name, or null if its not found.
19893
       */
19894
      public static _Fields findByName(String name) {
19895
        return byName.get(name);
19896
      }
19897
 
19898
      private final short _thriftId;
19899
      private final String _fieldName;
19900
 
19901
      _Fields(short thriftId, String fieldName) {
19902
        _thriftId = thriftId;
19903
        _fieldName = fieldName;
19904
      }
19905
 
19906
      public short getThriftFieldId() {
19907
        return _thriftId;
19908
      }
19909
 
19910
      public String getFieldName() {
19911
        return _fieldName;
19912
      }
19913
    }
19914
 
19915
    // isset id assignments
19916
 
19917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19918
    static {
19919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19920
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19921
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19922
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19923
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19924
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19928
    }
19929
 
19930
    public getProviderLimitDetailsForPincode_result() {
19931
    }
19932
 
19933
    public getProviderLimitDetailsForPincode_result(
19934
      Map<String,String> success,
19935
      LogisticsServiceException se)
19936
    {
19937
      this();
19938
      this.success = success;
19939
      this.se = se;
19940
    }
19941
 
19942
    /**
19943
     * Performs a deep copy on <i>other</i>.
19944
     */
19945
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19946
      if (other.isSetSuccess()) {
19947
        Map<String,String> __this__success = new HashMap<String,String>();
19948
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19949
 
19950
          String other_element_key = other_element.getKey();
19951
          String other_element_value = other_element.getValue();
19952
 
19953
          String __this__success_copy_key = other_element_key;
19954
 
19955
          String __this__success_copy_value = other_element_value;
19956
 
19957
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19958
        }
19959
        this.success = __this__success;
19960
      }
19961
      if (other.isSetSe()) {
19962
        this.se = new LogisticsServiceException(other.se);
19963
      }
19964
    }
19965
 
19966
    public getProviderLimitDetailsForPincode_result deepCopy() {
19967
      return new getProviderLimitDetailsForPincode_result(this);
19968
    }
19969
 
19970
    @Override
19971
    public void clear() {
19972
      this.success = null;
19973
      this.se = null;
19974
    }
19975
 
19976
    public int getSuccessSize() {
19977
      return (this.success == null) ? 0 : this.success.size();
19978
    }
19979
 
19980
    public void putToSuccess(String key, String val) {
19981
      if (this.success == null) {
19982
        this.success = new HashMap<String,String>();
19983
      }
19984
      this.success.put(key, val);
19985
    }
19986
 
19987
    public Map<String,String> getSuccess() {
19988
      return this.success;
19989
    }
19990
 
19991
    public void setSuccess(Map<String,String> success) {
19992
      this.success = success;
19993
    }
19994
 
19995
    public void unsetSuccess() {
19996
      this.success = null;
19997
    }
19998
 
19999
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20000
    public boolean isSetSuccess() {
20001
      return this.success != null;
20002
    }
20003
 
20004
    public void setSuccessIsSet(boolean value) {
20005
      if (!value) {
20006
        this.success = null;
20007
      }
20008
    }
20009
 
20010
    public LogisticsServiceException getSe() {
20011
      return this.se;
20012
    }
20013
 
20014
    public void setSe(LogisticsServiceException se) {
20015
      this.se = se;
20016
    }
20017
 
20018
    public void unsetSe() {
20019
      this.se = null;
20020
    }
20021
 
20022
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
20023
    public boolean isSetSe() {
20024
      return this.se != null;
20025
    }
20026
 
20027
    public void setSeIsSet(boolean value) {
20028
      if (!value) {
20029
        this.se = null;
20030
      }
20031
    }
20032
 
20033
    public void setFieldValue(_Fields field, Object value) {
20034
      switch (field) {
20035
      case SUCCESS:
20036
        if (value == null) {
20037
          unsetSuccess();
20038
        } else {
20039
          setSuccess((Map<String,String>)value);
20040
        }
20041
        break;
20042
 
20043
      case SE:
20044
        if (value == null) {
20045
          unsetSe();
20046
        } else {
20047
          setSe((LogisticsServiceException)value);
20048
        }
20049
        break;
20050
 
20051
      }
20052
    }
20053
 
20054
    public Object getFieldValue(_Fields field) {
20055
      switch (field) {
20056
      case SUCCESS:
20057
        return getSuccess();
20058
 
20059
      case SE:
20060
        return getSe();
20061
 
20062
      }
20063
      throw new IllegalStateException();
20064
    }
20065
 
20066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20067
    public boolean isSet(_Fields field) {
20068
      if (field == null) {
20069
        throw new IllegalArgumentException();
20070
      }
20071
 
20072
      switch (field) {
20073
      case SUCCESS:
20074
        return isSetSuccess();
20075
      case SE:
20076
        return isSetSe();
20077
      }
20078
      throw new IllegalStateException();
20079
    }
20080
 
20081
    @Override
20082
    public boolean equals(Object that) {
20083
      if (that == null)
20084
        return false;
20085
      if (that instanceof getProviderLimitDetailsForPincode_result)
20086
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20087
      return false;
20088
    }
20089
 
20090
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20091
      if (that == null)
20092
        return false;
20093
 
20094
      boolean this_present_success = true && this.isSetSuccess();
20095
      boolean that_present_success = true && that.isSetSuccess();
20096
      if (this_present_success || that_present_success) {
20097
        if (!(this_present_success && that_present_success))
20098
          return false;
20099
        if (!this.success.equals(that.success))
20100
          return false;
20101
      }
20102
 
20103
      boolean this_present_se = true && this.isSetSe();
20104
      boolean that_present_se = true && that.isSetSe();
20105
      if (this_present_se || that_present_se) {
20106
        if (!(this_present_se && that_present_se))
20107
          return false;
20108
        if (!this.se.equals(that.se))
20109
          return false;
20110
      }
20111
 
20112
      return true;
20113
    }
20114
 
20115
    @Override
20116
    public int hashCode() {
20117
      return 0;
20118
    }
20119
 
20120
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20121
      if (!getClass().equals(other.getClass())) {
20122
        return getClass().getName().compareTo(other.getClass().getName());
20123
      }
20124
 
20125
      int lastComparison = 0;
20126
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20127
 
20128
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20129
      if (lastComparison != 0) {
20130
        return lastComparison;
20131
      }
20132
      if (isSetSuccess()) {
20133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20134
        if (lastComparison != 0) {
20135
          return lastComparison;
20136
        }
20137
      }
20138
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20139
      if (lastComparison != 0) {
20140
        return lastComparison;
20141
      }
20142
      if (isSetSe()) {
20143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20144
        if (lastComparison != 0) {
20145
          return lastComparison;
20146
        }
20147
      }
20148
      return 0;
20149
    }
20150
 
20151
    public _Fields fieldForId(int fieldId) {
20152
      return _Fields.findByThriftId(fieldId);
20153
    }
20154
 
20155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20156
      org.apache.thrift.protocol.TField field;
20157
      iprot.readStructBegin();
20158
      while (true)
20159
      {
20160
        field = iprot.readFieldBegin();
20161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20162
          break;
20163
        }
20164
        switch (field.id) {
20165
          case 0: // SUCCESS
20166
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20167
              {
20168
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20169
                this.success = new HashMap<String,String>(2*_map32.size);
20170
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20171
                {
20172
                  String _key34; // required
20173
                  String _val35; // required
20174
                  _key34 = iprot.readString();
20175
                  _val35 = iprot.readString();
20176
                  this.success.put(_key34, _val35);
20177
                }
20178
                iprot.readMapEnd();
20179
              }
20180
            } else { 
20181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20182
            }
20183
            break;
20184
          case 1: // SE
20185
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20186
              this.se = new LogisticsServiceException();
20187
              this.se.read(iprot);
20188
            } else { 
20189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20190
            }
20191
            break;
20192
          default:
20193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20194
        }
20195
        iprot.readFieldEnd();
20196
      }
20197
      iprot.readStructEnd();
20198
      validate();
20199
    }
20200
 
20201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20202
      oprot.writeStructBegin(STRUCT_DESC);
20203
 
20204
      if (this.isSetSuccess()) {
20205
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20206
        {
20207
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20208
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20209
          {
20210
            oprot.writeString(_iter36.getKey());
20211
            oprot.writeString(_iter36.getValue());
20212
          }
20213
          oprot.writeMapEnd();
20214
        }
20215
        oprot.writeFieldEnd();
20216
      } else if (this.isSetSe()) {
20217
        oprot.writeFieldBegin(SE_FIELD_DESC);
20218
        this.se.write(oprot);
20219
        oprot.writeFieldEnd();
20220
      }
20221
      oprot.writeFieldStop();
20222
      oprot.writeStructEnd();
20223
    }
20224
 
20225
    @Override
20226
    public String toString() {
20227
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20228
      boolean first = true;
20229
 
20230
      sb.append("success:");
20231
      if (this.success == null) {
20232
        sb.append("null");
20233
      } else {
20234
        sb.append(this.success);
20235
      }
20236
      first = false;
20237
      if (!first) sb.append(", ");
20238
      sb.append("se:");
20239
      if (this.se == null) {
20240
        sb.append("null");
20241
      } else {
20242
        sb.append(this.se);
20243
      }
20244
      first = false;
20245
      sb.append(")");
20246
      return sb.toString();
20247
    }
20248
 
20249
    public void validate() throws org.apache.thrift.TException {
20250
      // check for required fields
20251
    }
20252
 
20253
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20254
      try {
20255
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20256
      } catch (org.apache.thrift.TException te) {
20257
        throw new java.io.IOException(te);
20258
      }
20259
    }
20260
 
20261
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20262
      try {
20263
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20264
      } catch (org.apache.thrift.TException te) {
20265
        throw new java.io.IOException(te);
20266
      }
20267
    }
20268
 
20269
  }
20270
 
19413 amit.gupta 20271
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20272
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20273
 
20274
    private static final org.apache.thrift.protocol.TField DEST_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destPincode", org.apache.thrift.protocol.TType.STRING, (short)1);
20275
    private static final org.apache.thrift.protocol.TField PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("price", org.apache.thrift.protocol.TType.LIST, (short)2);
20276
 
20277
    private String destPincode; // required
20278
    private List<Long> price; // required
20279
 
20280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20282
      DEST_PINCODE((short)1, "destPincode"),
20283
      PRICE((short)2, "price");
20284
 
20285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20286
 
20287
      static {
20288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20289
          byName.put(field.getFieldName(), field);
20290
        }
20291
      }
20292
 
20293
      /**
20294
       * Find the _Fields constant that matches fieldId, or null if its not found.
20295
       */
20296
      public static _Fields findByThriftId(int fieldId) {
20297
        switch(fieldId) {
20298
          case 1: // DEST_PINCODE
20299
            return DEST_PINCODE;
20300
          case 2: // PRICE
20301
            return PRICE;
20302
          default:
20303
            return null;
20304
        }
20305
      }
20306
 
20307
      /**
20308
       * Find the _Fields constant that matches fieldId, throwing an exception
20309
       * if it is not found.
20310
       */
20311
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20312
        _Fields fields = findByThriftId(fieldId);
20313
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20314
        return fields;
20315
      }
20316
 
20317
      /**
20318
       * Find the _Fields constant that matches name, or null if its not found.
20319
       */
20320
      public static _Fields findByName(String name) {
20321
        return byName.get(name);
20322
      }
20323
 
20324
      private final short _thriftId;
20325
      private final String _fieldName;
20326
 
20327
      _Fields(short thriftId, String fieldName) {
20328
        _thriftId = thriftId;
20329
        _fieldName = fieldName;
20330
      }
20331
 
20332
      public short getThriftFieldId() {
20333
        return _thriftId;
20334
      }
20335
 
20336
      public String getFieldName() {
20337
        return _fieldName;
20338
      }
20339
    }
20340
 
20341
    // isset id assignments
20342
 
20343
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20344
    static {
20345
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20346
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20348
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20349
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20350
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20353
    }
20354
 
20355
    public getLocationInfoMap_args() {
20356
    }
20357
 
20358
    public getLocationInfoMap_args(
20359
      String destPincode,
20360
      List<Long> price)
20361
    {
20362
      this();
20363
      this.destPincode = destPincode;
20364
      this.price = price;
20365
    }
20366
 
20367
    /**
20368
     * Performs a deep copy on <i>other</i>.
20369
     */
20370
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20371
      if (other.isSetDestPincode()) {
20372
        this.destPincode = other.destPincode;
20373
      }
20374
      if (other.isSetPrice()) {
20375
        List<Long> __this__price = new ArrayList<Long>();
20376
        for (Long other_element : other.price) {
20377
          __this__price.add(other_element);
20378
        }
20379
        this.price = __this__price;
20380
      }
20381
    }
20382
 
20383
    public getLocationInfoMap_args deepCopy() {
20384
      return new getLocationInfoMap_args(this);
20385
    }
20386
 
20387
    @Override
20388
    public void clear() {
20389
      this.destPincode = null;
20390
      this.price = null;
20391
    }
20392
 
20393
    public String getDestPincode() {
20394
      return this.destPincode;
20395
    }
20396
 
20397
    public void setDestPincode(String destPincode) {
20398
      this.destPincode = destPincode;
20399
    }
20400
 
20401
    public void unsetDestPincode() {
20402
      this.destPincode = null;
20403
    }
20404
 
20405
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20406
    public boolean isSetDestPincode() {
20407
      return this.destPincode != null;
20408
    }
20409
 
20410
    public void setDestPincodeIsSet(boolean value) {
20411
      if (!value) {
20412
        this.destPincode = null;
20413
      }
20414
    }
20415
 
20416
    public int getPriceSize() {
20417
      return (this.price == null) ? 0 : this.price.size();
20418
    }
20419
 
20420
    public java.util.Iterator<Long> getPriceIterator() {
20421
      return (this.price == null) ? null : this.price.iterator();
20422
    }
20423
 
20424
    public void addToPrice(long elem) {
20425
      if (this.price == null) {
20426
        this.price = new ArrayList<Long>();
20427
      }
20428
      this.price.add(elem);
20429
    }
20430
 
20431
    public List<Long> getPrice() {
20432
      return this.price;
20433
    }
20434
 
20435
    public void setPrice(List<Long> price) {
20436
      this.price = price;
20437
    }
20438
 
20439
    public void unsetPrice() {
20440
      this.price = null;
20441
    }
20442
 
20443
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20444
    public boolean isSetPrice() {
20445
      return this.price != null;
20446
    }
20447
 
20448
    public void setPriceIsSet(boolean value) {
20449
      if (!value) {
20450
        this.price = null;
20451
      }
20452
    }
20453
 
20454
    public void setFieldValue(_Fields field, Object value) {
20455
      switch (field) {
20456
      case DEST_PINCODE:
20457
        if (value == null) {
20458
          unsetDestPincode();
20459
        } else {
20460
          setDestPincode((String)value);
20461
        }
20462
        break;
20463
 
20464
      case PRICE:
20465
        if (value == null) {
20466
          unsetPrice();
20467
        } else {
20468
          setPrice((List<Long>)value);
20469
        }
20470
        break;
20471
 
20472
      }
20473
    }
20474
 
20475
    public Object getFieldValue(_Fields field) {
20476
      switch (field) {
20477
      case DEST_PINCODE:
20478
        return getDestPincode();
20479
 
20480
      case PRICE:
20481
        return getPrice();
20482
 
20483
      }
20484
      throw new IllegalStateException();
20485
    }
20486
 
20487
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20488
    public boolean isSet(_Fields field) {
20489
      if (field == null) {
20490
        throw new IllegalArgumentException();
20491
      }
20492
 
20493
      switch (field) {
20494
      case DEST_PINCODE:
20495
        return isSetDestPincode();
20496
      case PRICE:
20497
        return isSetPrice();
20498
      }
20499
      throw new IllegalStateException();
20500
    }
20501
 
20502
    @Override
20503
    public boolean equals(Object that) {
20504
      if (that == null)
20505
        return false;
20506
      if (that instanceof getLocationInfoMap_args)
20507
        return this.equals((getLocationInfoMap_args)that);
20508
      return false;
20509
    }
20510
 
20511
    public boolean equals(getLocationInfoMap_args that) {
20512
      if (that == null)
20513
        return false;
20514
 
20515
      boolean this_present_destPincode = true && this.isSetDestPincode();
20516
      boolean that_present_destPincode = true && that.isSetDestPincode();
20517
      if (this_present_destPincode || that_present_destPincode) {
20518
        if (!(this_present_destPincode && that_present_destPincode))
20519
          return false;
20520
        if (!this.destPincode.equals(that.destPincode))
20521
          return false;
20522
      }
20523
 
20524
      boolean this_present_price = true && this.isSetPrice();
20525
      boolean that_present_price = true && that.isSetPrice();
20526
      if (this_present_price || that_present_price) {
20527
        if (!(this_present_price && that_present_price))
20528
          return false;
20529
        if (!this.price.equals(that.price))
20530
          return false;
20531
      }
20532
 
20533
      return true;
20534
    }
20535
 
20536
    @Override
20537
    public int hashCode() {
20538
      return 0;
20539
    }
20540
 
20541
    public int compareTo(getLocationInfoMap_args other) {
20542
      if (!getClass().equals(other.getClass())) {
20543
        return getClass().getName().compareTo(other.getClass().getName());
20544
      }
20545
 
20546
      int lastComparison = 0;
20547
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20548
 
20549
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20550
      if (lastComparison != 0) {
20551
        return lastComparison;
20552
      }
20553
      if (isSetDestPincode()) {
20554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20555
        if (lastComparison != 0) {
20556
          return lastComparison;
20557
        }
20558
      }
20559
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20560
      if (lastComparison != 0) {
20561
        return lastComparison;
20562
      }
20563
      if (isSetPrice()) {
20564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20565
        if (lastComparison != 0) {
20566
          return lastComparison;
20567
        }
20568
      }
20569
      return 0;
20570
    }
20571
 
20572
    public _Fields fieldForId(int fieldId) {
20573
      return _Fields.findByThriftId(fieldId);
20574
    }
20575
 
20576
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20577
      org.apache.thrift.protocol.TField field;
20578
      iprot.readStructBegin();
20579
      while (true)
20580
      {
20581
        field = iprot.readFieldBegin();
20582
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20583
          break;
20584
        }
20585
        switch (field.id) {
20586
          case 1: // DEST_PINCODE
20587
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20588
              this.destPincode = iprot.readString();
20589
            } else { 
20590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20591
            }
20592
            break;
20593
          case 2: // PRICE
20594
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20595
              {
20596
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20597
                this.price = new ArrayList<Long>(_list37.size);
20598
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20599
                {
20600
                  long _elem39; // required
20601
                  _elem39 = iprot.readI64();
20602
                  this.price.add(_elem39);
20603
                }
20604
                iprot.readListEnd();
20605
              }
20606
            } else { 
20607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20608
            }
20609
            break;
20610
          default:
20611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20612
        }
20613
        iprot.readFieldEnd();
20614
      }
20615
      iprot.readStructEnd();
20616
      validate();
20617
    }
20618
 
20619
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20620
      validate();
20621
 
20622
      oprot.writeStructBegin(STRUCT_DESC);
20623
      if (this.destPincode != null) {
20624
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20625
        oprot.writeString(this.destPincode);
20626
        oprot.writeFieldEnd();
20627
      }
20628
      if (this.price != null) {
20629
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20630
        {
20631
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20632
          for (long _iter40 : this.price)
20633
          {
20634
            oprot.writeI64(_iter40);
20635
          }
20636
          oprot.writeListEnd();
20637
        }
20638
        oprot.writeFieldEnd();
20639
      }
20640
      oprot.writeFieldStop();
20641
      oprot.writeStructEnd();
20642
    }
20643
 
20644
    @Override
20645
    public String toString() {
20646
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20647
      boolean first = true;
20648
 
20649
      sb.append("destPincode:");
20650
      if (this.destPincode == null) {
20651
        sb.append("null");
20652
      } else {
20653
        sb.append(this.destPincode);
20654
      }
20655
      first = false;
20656
      if (!first) sb.append(", ");
20657
      sb.append("price:");
20658
      if (this.price == null) {
20659
        sb.append("null");
20660
      } else {
20661
        sb.append(this.price);
20662
      }
20663
      first = false;
20664
      sb.append(")");
20665
      return sb.toString();
20666
    }
20667
 
20668
    public void validate() throws org.apache.thrift.TException {
20669
      // check for required fields
20670
    }
20671
 
20672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20673
      try {
20674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20675
      } catch (org.apache.thrift.TException te) {
20676
        throw new java.io.IOException(te);
20677
      }
20678
    }
20679
 
20680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20681
      try {
20682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20683
      } catch (org.apache.thrift.TException te) {
20684
        throw new java.io.IOException(te);
20685
      }
20686
    }
20687
 
20688
  }
20689
 
20690
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20692
 
20693
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
20694
 
20695
    private Map<Long,Map<Long,LocationInfo>> success; // required
20696
 
20697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20699
      SUCCESS((short)0, "success");
20700
 
20701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20702
 
20703
      static {
20704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20705
          byName.put(field.getFieldName(), field);
20706
        }
20707
      }
20708
 
20709
      /**
20710
       * Find the _Fields constant that matches fieldId, or null if its not found.
20711
       */
20712
      public static _Fields findByThriftId(int fieldId) {
20713
        switch(fieldId) {
20714
          case 0: // SUCCESS
20715
            return SUCCESS;
20716
          default:
20717
            return null;
20718
        }
20719
      }
20720
 
20721
      /**
20722
       * Find the _Fields constant that matches fieldId, throwing an exception
20723
       * if it is not found.
20724
       */
20725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20726
        _Fields fields = findByThriftId(fieldId);
20727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20728
        return fields;
20729
      }
20730
 
20731
      /**
20732
       * Find the _Fields constant that matches name, or null if its not found.
20733
       */
20734
      public static _Fields findByName(String name) {
20735
        return byName.get(name);
20736
      }
20737
 
20738
      private final short _thriftId;
20739
      private final String _fieldName;
20740
 
20741
      _Fields(short thriftId, String fieldName) {
20742
        _thriftId = thriftId;
20743
        _fieldName = fieldName;
20744
      }
20745
 
20746
      public short getThriftFieldId() {
20747
        return _thriftId;
20748
      }
20749
 
20750
      public String getFieldName() {
20751
        return _fieldName;
20752
      }
20753
    }
20754
 
20755
    // isset id assignments
20756
 
20757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20758
    static {
20759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20760
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20761
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20762
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20763
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20764
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20765
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20768
    }
20769
 
20770
    public getLocationInfoMap_result() {
20771
    }
20772
 
20773
    public getLocationInfoMap_result(
20774
      Map<Long,Map<Long,LocationInfo>> success)
20775
    {
20776
      this();
20777
      this.success = success;
20778
    }
20779
 
20780
    /**
20781
     * Performs a deep copy on <i>other</i>.
20782
     */
20783
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20784
      if (other.isSetSuccess()) {
20785
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20786
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20787
 
20788
          Long other_element_key = other_element.getKey();
20789
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20790
 
20791
          Long __this__success_copy_key = other_element_key;
20792
 
20793
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20794
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20795
 
20796
            Long other_element_value_element_key = other_element_value_element.getKey();
20797
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20798
 
20799
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20800
 
20801
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20802
 
20803
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20804
          }
20805
 
20806
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20807
        }
20808
        this.success = __this__success;
20809
      }
20810
    }
20811
 
20812
    public getLocationInfoMap_result deepCopy() {
20813
      return new getLocationInfoMap_result(this);
20814
    }
20815
 
20816
    @Override
20817
    public void clear() {
20818
      this.success = null;
20819
    }
20820
 
20821
    public int getSuccessSize() {
20822
      return (this.success == null) ? 0 : this.success.size();
20823
    }
20824
 
20825
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20826
      if (this.success == null) {
20827
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20828
      }
20829
      this.success.put(key, val);
20830
    }
20831
 
20832
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20833
      return this.success;
20834
    }
20835
 
20836
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20837
      this.success = success;
20838
    }
20839
 
20840
    public void unsetSuccess() {
20841
      this.success = null;
20842
    }
20843
 
20844
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20845
    public boolean isSetSuccess() {
20846
      return this.success != null;
20847
    }
20848
 
20849
    public void setSuccessIsSet(boolean value) {
20850
      if (!value) {
20851
        this.success = null;
20852
      }
20853
    }
20854
 
20855
    public void setFieldValue(_Fields field, Object value) {
20856
      switch (field) {
20857
      case SUCCESS:
20858
        if (value == null) {
20859
          unsetSuccess();
20860
        } else {
20861
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20862
        }
20863
        break;
20864
 
20865
      }
20866
    }
20867
 
20868
    public Object getFieldValue(_Fields field) {
20869
      switch (field) {
20870
      case SUCCESS:
20871
        return getSuccess();
20872
 
20873
      }
20874
      throw new IllegalStateException();
20875
    }
20876
 
20877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20878
    public boolean isSet(_Fields field) {
20879
      if (field == null) {
20880
        throw new IllegalArgumentException();
20881
      }
20882
 
20883
      switch (field) {
20884
      case SUCCESS:
20885
        return isSetSuccess();
20886
      }
20887
      throw new IllegalStateException();
20888
    }
20889
 
20890
    @Override
20891
    public boolean equals(Object that) {
20892
      if (that == null)
20893
        return false;
20894
      if (that instanceof getLocationInfoMap_result)
20895
        return this.equals((getLocationInfoMap_result)that);
20896
      return false;
20897
    }
20898
 
20899
    public boolean equals(getLocationInfoMap_result that) {
20900
      if (that == null)
20901
        return false;
20902
 
20903
      boolean this_present_success = true && this.isSetSuccess();
20904
      boolean that_present_success = true && that.isSetSuccess();
20905
      if (this_present_success || that_present_success) {
20906
        if (!(this_present_success && that_present_success))
20907
          return false;
20908
        if (!this.success.equals(that.success))
20909
          return false;
20910
      }
20911
 
20912
      return true;
20913
    }
20914
 
20915
    @Override
20916
    public int hashCode() {
20917
      return 0;
20918
    }
20919
 
20920
    public int compareTo(getLocationInfoMap_result other) {
20921
      if (!getClass().equals(other.getClass())) {
20922
        return getClass().getName().compareTo(other.getClass().getName());
20923
      }
20924
 
20925
      int lastComparison = 0;
20926
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
20927
 
20928
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20929
      if (lastComparison != 0) {
20930
        return lastComparison;
20931
      }
20932
      if (isSetSuccess()) {
20933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20934
        if (lastComparison != 0) {
20935
          return lastComparison;
20936
        }
20937
      }
20938
      return 0;
20939
    }
20940
 
20941
    public _Fields fieldForId(int fieldId) {
20942
      return _Fields.findByThriftId(fieldId);
20943
    }
20944
 
20945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20946
      org.apache.thrift.protocol.TField field;
20947
      iprot.readStructBegin();
20948
      while (true)
20949
      {
20950
        field = iprot.readFieldBegin();
20951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20952
          break;
20953
        }
20954
        switch (field.id) {
20955
          case 0: // SUCCESS
20956
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20957
              {
20958
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
20959
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
20960
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
20961
                {
20962
                  long _key43; // required
20963
                  Map<Long,LocationInfo> _val44; // required
20964
                  _key43 = iprot.readI64();
20965
                  {
20966
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
20967
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
20968
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
20969
                    {
20970
                      long _key47; // required
20971
                      LocationInfo _val48; // required
20972
                      _key47 = iprot.readI64();
20973
                      _val48 = new LocationInfo();
20974
                      _val48.read(iprot);
20975
                      _val44.put(_key47, _val48);
20976
                    }
20977
                    iprot.readMapEnd();
20978
                  }
20979
                  this.success.put(_key43, _val44);
20980
                }
20981
                iprot.readMapEnd();
20982
              }
20983
            } else { 
20984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20985
            }
20986
            break;
20987
          default:
20988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20989
        }
20990
        iprot.readFieldEnd();
20991
      }
20992
      iprot.readStructEnd();
20993
      validate();
20994
    }
20995
 
20996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20997
      oprot.writeStructBegin(STRUCT_DESC);
20998
 
20999
      if (this.isSetSuccess()) {
21000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21001
        {
21002
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
21003
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
21004
          {
21005
            oprot.writeI64(_iter49.getKey());
21006
            {
21007
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
21008
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
21009
              {
21010
                oprot.writeI64(_iter50.getKey());
21011
                _iter50.getValue().write(oprot);
21012
              }
21013
              oprot.writeMapEnd();
21014
            }
21015
          }
21016
          oprot.writeMapEnd();
21017
        }
21018
        oprot.writeFieldEnd();
21019
      }
21020
      oprot.writeFieldStop();
21021
      oprot.writeStructEnd();
21022
    }
21023
 
21024
    @Override
21025
    public String toString() {
21026
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
21027
      boolean first = true;
21028
 
21029
      sb.append("success:");
21030
      if (this.success == null) {
21031
        sb.append("null");
21032
      } else {
21033
        sb.append(this.success);
21034
      }
21035
      first = false;
21036
      sb.append(")");
21037
      return sb.toString();
21038
    }
21039
 
21040
    public void validate() throws org.apache.thrift.TException {
21041
      // check for required fields
21042
    }
21043
 
21044
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21045
      try {
21046
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21047
      } catch (org.apache.thrift.TException te) {
21048
        throw new java.io.IOException(te);
21049
      }
21050
    }
21051
 
21052
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21053
      try {
21054
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21055
      } catch (org.apache.thrift.TException te) {
21056
        throw new java.io.IOException(te);
21057
      }
21058
    }
21059
 
21060
  }
21061
 
19421 manish.sha 21062
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
21063
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
21064
 
21065
    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)1);
21066
    private static final org.apache.thrift.protocol.TField TRANSACTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
21067
    private static final org.apache.thrift.protocol.TField IS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("isCod", org.apache.thrift.protocol.TType.BOOL, (short)3);
21068
    private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
21069
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
19474 manish.sha 21070
    private static final org.apache.thrift.protocol.TField IS_COMPLETE_TXN_FIELD_DESC = new org.apache.thrift.protocol.TField("isCompleteTxn", org.apache.thrift.protocol.TType.BOOL, (short)6);
19421 manish.sha 21071
 
21072
    private String pincode; // required
21073
    private double transactionAmount; // required
21074
    private boolean isCod; // required
21075
    private double weight; // required
21076
    private long billingWarehouseId; // required
19474 manish.sha 21077
    private boolean isCompleteTxn; // required
19421 manish.sha 21078
 
21079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21080
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21081
      PINCODE((short)1, "pincode"),
21082
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21083
      IS_COD((short)3, "isCod"),
21084
      WEIGHT((short)4, "weight"),
19474 manish.sha 21085
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
21086
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21087
 
21088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21089
 
21090
      static {
21091
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21092
          byName.put(field.getFieldName(), field);
21093
        }
21094
      }
21095
 
21096
      /**
21097
       * Find the _Fields constant that matches fieldId, or null if its not found.
21098
       */
21099
      public static _Fields findByThriftId(int fieldId) {
21100
        switch(fieldId) {
21101
          case 1: // PINCODE
21102
            return PINCODE;
21103
          case 2: // TRANSACTION_AMOUNT
21104
            return TRANSACTION_AMOUNT;
21105
          case 3: // IS_COD
21106
            return IS_COD;
21107
          case 4: // WEIGHT
21108
            return WEIGHT;
21109
          case 5: // BILLING_WAREHOUSE_ID
21110
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21111
          case 6: // IS_COMPLETE_TXN
21112
            return IS_COMPLETE_TXN;
19421 manish.sha 21113
          default:
21114
            return null;
21115
        }
21116
      }
21117
 
21118
      /**
21119
       * Find the _Fields constant that matches fieldId, throwing an exception
21120
       * if it is not found.
21121
       */
21122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21123
        _Fields fields = findByThriftId(fieldId);
21124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21125
        return fields;
21126
      }
21127
 
21128
      /**
21129
       * Find the _Fields constant that matches name, or null if its not found.
21130
       */
21131
      public static _Fields findByName(String name) {
21132
        return byName.get(name);
21133
      }
21134
 
21135
      private final short _thriftId;
21136
      private final String _fieldName;
21137
 
21138
      _Fields(short thriftId, String fieldName) {
21139
        _thriftId = thriftId;
21140
        _fieldName = fieldName;
21141
      }
21142
 
21143
      public short getThriftFieldId() {
21144
        return _thriftId;
21145
      }
21146
 
21147
      public String getFieldName() {
21148
        return _fieldName;
21149
      }
21150
    }
21151
 
21152
    // isset id assignments
21153
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21154
    private static final int __ISCOD_ISSET_ID = 1;
21155
    private static final int __WEIGHT_ISSET_ID = 2;
21156
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21157
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21158
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21159
 
21160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21161
    static {
21162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21163
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21165
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21166
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21167
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21169
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21171
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21173
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21177
    }
21178
 
21179
    public getCostingAndDeliveryEstimateForPincode_args() {
21180
    }
21181
 
21182
    public getCostingAndDeliveryEstimateForPincode_args(
21183
      String pincode,
21184
      double transactionAmount,
21185
      boolean isCod,
21186
      double weight,
19474 manish.sha 21187
      long billingWarehouseId,
21188
      boolean isCompleteTxn)
19421 manish.sha 21189
    {
21190
      this();
21191
      this.pincode = pincode;
21192
      this.transactionAmount = transactionAmount;
21193
      setTransactionAmountIsSet(true);
21194
      this.isCod = isCod;
21195
      setIsCodIsSet(true);
21196
      this.weight = weight;
21197
      setWeightIsSet(true);
21198
      this.billingWarehouseId = billingWarehouseId;
21199
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21200
      this.isCompleteTxn = isCompleteTxn;
21201
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21202
    }
21203
 
21204
    /**
21205
     * Performs a deep copy on <i>other</i>.
21206
     */
21207
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21208
      __isset_bit_vector.clear();
21209
      __isset_bit_vector.or(other.__isset_bit_vector);
21210
      if (other.isSetPincode()) {
21211
        this.pincode = other.pincode;
21212
      }
21213
      this.transactionAmount = other.transactionAmount;
21214
      this.isCod = other.isCod;
21215
      this.weight = other.weight;
21216
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21217
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21218
    }
21219
 
21220
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21221
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21222
    }
21223
 
21224
    @Override
21225
    public void clear() {
21226
      this.pincode = null;
21227
      setTransactionAmountIsSet(false);
21228
      this.transactionAmount = 0.0;
21229
      setIsCodIsSet(false);
21230
      this.isCod = false;
21231
      setWeightIsSet(false);
21232
      this.weight = 0.0;
21233
      setBillingWarehouseIdIsSet(false);
21234
      this.billingWarehouseId = 0;
19474 manish.sha 21235
      setIsCompleteTxnIsSet(false);
21236
      this.isCompleteTxn = false;
19421 manish.sha 21237
    }
21238
 
21239
    public String getPincode() {
21240
      return this.pincode;
21241
    }
21242
 
21243
    public void setPincode(String pincode) {
21244
      this.pincode = pincode;
21245
    }
21246
 
21247
    public void unsetPincode() {
21248
      this.pincode = null;
21249
    }
21250
 
21251
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21252
    public boolean isSetPincode() {
21253
      return this.pincode != null;
21254
    }
21255
 
21256
    public void setPincodeIsSet(boolean value) {
21257
      if (!value) {
21258
        this.pincode = null;
21259
      }
21260
    }
21261
 
21262
    public double getTransactionAmount() {
21263
      return this.transactionAmount;
21264
    }
21265
 
21266
    public void setTransactionAmount(double transactionAmount) {
21267
      this.transactionAmount = transactionAmount;
21268
      setTransactionAmountIsSet(true);
21269
    }
21270
 
21271
    public void unsetTransactionAmount() {
21272
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21273
    }
21274
 
21275
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21276
    public boolean isSetTransactionAmount() {
21277
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21278
    }
21279
 
21280
    public void setTransactionAmountIsSet(boolean value) {
21281
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21282
    }
21283
 
21284
    public boolean isIsCod() {
21285
      return this.isCod;
21286
    }
21287
 
21288
    public void setIsCod(boolean isCod) {
21289
      this.isCod = isCod;
21290
      setIsCodIsSet(true);
21291
    }
21292
 
21293
    public void unsetIsCod() {
21294
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21295
    }
21296
 
21297
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21298
    public boolean isSetIsCod() {
21299
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21300
    }
21301
 
21302
    public void setIsCodIsSet(boolean value) {
21303
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21304
    }
21305
 
21306
    public double getWeight() {
21307
      return this.weight;
21308
    }
21309
 
21310
    public void setWeight(double weight) {
21311
      this.weight = weight;
21312
      setWeightIsSet(true);
21313
    }
21314
 
21315
    public void unsetWeight() {
21316
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21317
    }
21318
 
21319
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21320
    public boolean isSetWeight() {
21321
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21322
    }
21323
 
21324
    public void setWeightIsSet(boolean value) {
21325
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21326
    }
21327
 
21328
    public long getBillingWarehouseId() {
21329
      return this.billingWarehouseId;
21330
    }
21331
 
21332
    public void setBillingWarehouseId(long billingWarehouseId) {
21333
      this.billingWarehouseId = billingWarehouseId;
21334
      setBillingWarehouseIdIsSet(true);
21335
    }
21336
 
21337
    public void unsetBillingWarehouseId() {
21338
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21339
    }
21340
 
21341
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21342
    public boolean isSetBillingWarehouseId() {
21343
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21344
    }
21345
 
21346
    public void setBillingWarehouseIdIsSet(boolean value) {
21347
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21348
    }
21349
 
19474 manish.sha 21350
    public boolean isIsCompleteTxn() {
21351
      return this.isCompleteTxn;
21352
    }
21353
 
21354
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21355
      this.isCompleteTxn = isCompleteTxn;
21356
      setIsCompleteTxnIsSet(true);
21357
    }
21358
 
21359
    public void unsetIsCompleteTxn() {
21360
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21361
    }
21362
 
21363
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21364
    public boolean isSetIsCompleteTxn() {
21365
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21366
    }
21367
 
21368
    public void setIsCompleteTxnIsSet(boolean value) {
21369
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21370
    }
21371
 
19421 manish.sha 21372
    public void setFieldValue(_Fields field, Object value) {
21373
      switch (field) {
21374
      case PINCODE:
21375
        if (value == null) {
21376
          unsetPincode();
21377
        } else {
21378
          setPincode((String)value);
21379
        }
21380
        break;
21381
 
21382
      case TRANSACTION_AMOUNT:
21383
        if (value == null) {
21384
          unsetTransactionAmount();
21385
        } else {
21386
          setTransactionAmount((Double)value);
21387
        }
21388
        break;
21389
 
21390
      case IS_COD:
21391
        if (value == null) {
21392
          unsetIsCod();
21393
        } else {
21394
          setIsCod((Boolean)value);
21395
        }
21396
        break;
21397
 
21398
      case WEIGHT:
21399
        if (value == null) {
21400
          unsetWeight();
21401
        } else {
21402
          setWeight((Double)value);
21403
        }
21404
        break;
21405
 
21406
      case BILLING_WAREHOUSE_ID:
21407
        if (value == null) {
21408
          unsetBillingWarehouseId();
21409
        } else {
21410
          setBillingWarehouseId((Long)value);
21411
        }
21412
        break;
21413
 
19474 manish.sha 21414
      case IS_COMPLETE_TXN:
21415
        if (value == null) {
21416
          unsetIsCompleteTxn();
21417
        } else {
21418
          setIsCompleteTxn((Boolean)value);
21419
        }
21420
        break;
21421
 
19421 manish.sha 21422
      }
21423
    }
21424
 
21425
    public Object getFieldValue(_Fields field) {
21426
      switch (field) {
21427
      case PINCODE:
21428
        return getPincode();
21429
 
21430
      case TRANSACTION_AMOUNT:
21431
        return Double.valueOf(getTransactionAmount());
21432
 
21433
      case IS_COD:
21434
        return Boolean.valueOf(isIsCod());
21435
 
21436
      case WEIGHT:
21437
        return Double.valueOf(getWeight());
21438
 
21439
      case BILLING_WAREHOUSE_ID:
21440
        return Long.valueOf(getBillingWarehouseId());
21441
 
19474 manish.sha 21442
      case IS_COMPLETE_TXN:
21443
        return Boolean.valueOf(isIsCompleteTxn());
21444
 
19421 manish.sha 21445
      }
21446
      throw new IllegalStateException();
21447
    }
21448
 
21449
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21450
    public boolean isSet(_Fields field) {
21451
      if (field == null) {
21452
        throw new IllegalArgumentException();
21453
      }
21454
 
21455
      switch (field) {
21456
      case PINCODE:
21457
        return isSetPincode();
21458
      case TRANSACTION_AMOUNT:
21459
        return isSetTransactionAmount();
21460
      case IS_COD:
21461
        return isSetIsCod();
21462
      case WEIGHT:
21463
        return isSetWeight();
21464
      case BILLING_WAREHOUSE_ID:
21465
        return isSetBillingWarehouseId();
19474 manish.sha 21466
      case IS_COMPLETE_TXN:
21467
        return isSetIsCompleteTxn();
19421 manish.sha 21468
      }
21469
      throw new IllegalStateException();
21470
    }
21471
 
21472
    @Override
21473
    public boolean equals(Object that) {
21474
      if (that == null)
21475
        return false;
21476
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21477
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21478
      return false;
21479
    }
21480
 
21481
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21482
      if (that == null)
21483
        return false;
21484
 
21485
      boolean this_present_pincode = true && this.isSetPincode();
21486
      boolean that_present_pincode = true && that.isSetPincode();
21487
      if (this_present_pincode || that_present_pincode) {
21488
        if (!(this_present_pincode && that_present_pincode))
21489
          return false;
21490
        if (!this.pincode.equals(that.pincode))
21491
          return false;
21492
      }
21493
 
21494
      boolean this_present_transactionAmount = true;
21495
      boolean that_present_transactionAmount = true;
21496
      if (this_present_transactionAmount || that_present_transactionAmount) {
21497
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21498
          return false;
21499
        if (this.transactionAmount != that.transactionAmount)
21500
          return false;
21501
      }
21502
 
21503
      boolean this_present_isCod = true;
21504
      boolean that_present_isCod = true;
21505
      if (this_present_isCod || that_present_isCod) {
21506
        if (!(this_present_isCod && that_present_isCod))
21507
          return false;
21508
        if (this.isCod != that.isCod)
21509
          return false;
21510
      }
21511
 
21512
      boolean this_present_weight = true;
21513
      boolean that_present_weight = true;
21514
      if (this_present_weight || that_present_weight) {
21515
        if (!(this_present_weight && that_present_weight))
21516
          return false;
21517
        if (this.weight != that.weight)
21518
          return false;
21519
      }
21520
 
21521
      boolean this_present_billingWarehouseId = true;
21522
      boolean that_present_billingWarehouseId = true;
21523
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21524
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21525
          return false;
21526
        if (this.billingWarehouseId != that.billingWarehouseId)
21527
          return false;
21528
      }
21529
 
19474 manish.sha 21530
      boolean this_present_isCompleteTxn = true;
21531
      boolean that_present_isCompleteTxn = true;
21532
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21533
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21534
          return false;
21535
        if (this.isCompleteTxn != that.isCompleteTxn)
21536
          return false;
21537
      }
21538
 
19421 manish.sha 21539
      return true;
21540
    }
21541
 
21542
    @Override
21543
    public int hashCode() {
21544
      return 0;
21545
    }
21546
 
21547
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21548
      if (!getClass().equals(other.getClass())) {
21549
        return getClass().getName().compareTo(other.getClass().getName());
21550
      }
21551
 
21552
      int lastComparison = 0;
21553
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21554
 
21555
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21556
      if (lastComparison != 0) {
21557
        return lastComparison;
21558
      }
21559
      if (isSetPincode()) {
21560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21561
        if (lastComparison != 0) {
21562
          return lastComparison;
21563
        }
21564
      }
21565
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21566
      if (lastComparison != 0) {
21567
        return lastComparison;
21568
      }
21569
      if (isSetTransactionAmount()) {
21570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21571
        if (lastComparison != 0) {
21572
          return lastComparison;
21573
        }
21574
      }
21575
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21576
      if (lastComparison != 0) {
21577
        return lastComparison;
21578
      }
21579
      if (isSetIsCod()) {
21580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21581
        if (lastComparison != 0) {
21582
          return lastComparison;
21583
        }
21584
      }
21585
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21586
      if (lastComparison != 0) {
21587
        return lastComparison;
21588
      }
21589
      if (isSetWeight()) {
21590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21591
        if (lastComparison != 0) {
21592
          return lastComparison;
21593
        }
21594
      }
21595
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21596
      if (lastComparison != 0) {
21597
        return lastComparison;
21598
      }
21599
      if (isSetBillingWarehouseId()) {
21600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21601
        if (lastComparison != 0) {
21602
          return lastComparison;
21603
        }
21604
      }
19474 manish.sha 21605
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21606
      if (lastComparison != 0) {
21607
        return lastComparison;
21608
      }
21609
      if (isSetIsCompleteTxn()) {
21610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21611
        if (lastComparison != 0) {
21612
          return lastComparison;
21613
        }
21614
      }
19421 manish.sha 21615
      return 0;
21616
    }
21617
 
21618
    public _Fields fieldForId(int fieldId) {
21619
      return _Fields.findByThriftId(fieldId);
21620
    }
21621
 
21622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21623
      org.apache.thrift.protocol.TField field;
21624
      iprot.readStructBegin();
21625
      while (true)
21626
      {
21627
        field = iprot.readFieldBegin();
21628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21629
          break;
21630
        }
21631
        switch (field.id) {
21632
          case 1: // PINCODE
21633
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21634
              this.pincode = iprot.readString();
21635
            } else { 
21636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21637
            }
21638
            break;
21639
          case 2: // TRANSACTION_AMOUNT
21640
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21641
              this.transactionAmount = iprot.readDouble();
21642
              setTransactionAmountIsSet(true);
21643
            } else { 
21644
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21645
            }
21646
            break;
21647
          case 3: // IS_COD
21648
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21649
              this.isCod = iprot.readBool();
21650
              setIsCodIsSet(true);
21651
            } else { 
21652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21653
            }
21654
            break;
21655
          case 4: // WEIGHT
21656
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21657
              this.weight = iprot.readDouble();
21658
              setWeightIsSet(true);
21659
            } else { 
21660
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21661
            }
21662
            break;
21663
          case 5: // BILLING_WAREHOUSE_ID
21664
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21665
              this.billingWarehouseId = iprot.readI64();
21666
              setBillingWarehouseIdIsSet(true);
21667
            } else { 
21668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21669
            }
21670
            break;
19474 manish.sha 21671
          case 6: // IS_COMPLETE_TXN
21672
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21673
              this.isCompleteTxn = iprot.readBool();
21674
              setIsCompleteTxnIsSet(true);
21675
            } else { 
21676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21677
            }
21678
            break;
19421 manish.sha 21679
          default:
21680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21681
        }
21682
        iprot.readFieldEnd();
21683
      }
21684
      iprot.readStructEnd();
21685
      validate();
21686
    }
21687
 
21688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21689
      validate();
21690
 
21691
      oprot.writeStructBegin(STRUCT_DESC);
21692
      if (this.pincode != null) {
21693
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21694
        oprot.writeString(this.pincode);
21695
        oprot.writeFieldEnd();
21696
      }
21697
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21698
      oprot.writeDouble(this.transactionAmount);
21699
      oprot.writeFieldEnd();
21700
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21701
      oprot.writeBool(this.isCod);
21702
      oprot.writeFieldEnd();
21703
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21704
      oprot.writeDouble(this.weight);
21705
      oprot.writeFieldEnd();
21706
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21707
      oprot.writeI64(this.billingWarehouseId);
21708
      oprot.writeFieldEnd();
19474 manish.sha 21709
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21710
      oprot.writeBool(this.isCompleteTxn);
21711
      oprot.writeFieldEnd();
19421 manish.sha 21712
      oprot.writeFieldStop();
21713
      oprot.writeStructEnd();
21714
    }
21715
 
21716
    @Override
21717
    public String toString() {
21718
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21719
      boolean first = true;
21720
 
21721
      sb.append("pincode:");
21722
      if (this.pincode == null) {
21723
        sb.append("null");
21724
      } else {
21725
        sb.append(this.pincode);
21726
      }
21727
      first = false;
21728
      if (!first) sb.append(", ");
21729
      sb.append("transactionAmount:");
21730
      sb.append(this.transactionAmount);
21731
      first = false;
21732
      if (!first) sb.append(", ");
21733
      sb.append("isCod:");
21734
      sb.append(this.isCod);
21735
      first = false;
21736
      if (!first) sb.append(", ");
21737
      sb.append("weight:");
21738
      sb.append(this.weight);
21739
      first = false;
21740
      if (!first) sb.append(", ");
21741
      sb.append("billingWarehouseId:");
21742
      sb.append(this.billingWarehouseId);
21743
      first = false;
19474 manish.sha 21744
      if (!first) sb.append(", ");
21745
      sb.append("isCompleteTxn:");
21746
      sb.append(this.isCompleteTxn);
21747
      first = false;
19421 manish.sha 21748
      sb.append(")");
21749
      return sb.toString();
21750
    }
21751
 
21752
    public void validate() throws org.apache.thrift.TException {
21753
      // check for required fields
21754
    }
21755
 
21756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21757
      try {
21758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21759
      } catch (org.apache.thrift.TException te) {
21760
        throw new java.io.IOException(te);
21761
      }
21762
    }
21763
 
21764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21765
      try {
21766
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21767
        __isset_bit_vector = new BitSet(1);
21768
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21769
      } catch (org.apache.thrift.TException te) {
21770
        throw new java.io.IOException(te);
21771
      }
21772
    }
21773
 
21774
  }
21775
 
21776
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21777
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21778
 
21779
    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);
21780
    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);
21781
 
21782
    private DeliveryEstimateAndCosting success; // required
21783
    private LogisticsServiceException se; // required
21784
 
21785
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21786
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21787
      SUCCESS((short)0, "success"),
21788
      SE((short)1, "se");
21789
 
21790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21791
 
21792
      static {
21793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21794
          byName.put(field.getFieldName(), field);
21795
        }
21796
      }
21797
 
21798
      /**
21799
       * Find the _Fields constant that matches fieldId, or null if its not found.
21800
       */
21801
      public static _Fields findByThriftId(int fieldId) {
21802
        switch(fieldId) {
21803
          case 0: // SUCCESS
21804
            return SUCCESS;
21805
          case 1: // SE
21806
            return SE;
21807
          default:
21808
            return null;
21809
        }
21810
      }
21811
 
21812
      /**
21813
       * Find the _Fields constant that matches fieldId, throwing an exception
21814
       * if it is not found.
21815
       */
21816
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21817
        _Fields fields = findByThriftId(fieldId);
21818
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21819
        return fields;
21820
      }
21821
 
21822
      /**
21823
       * Find the _Fields constant that matches name, or null if its not found.
21824
       */
21825
      public static _Fields findByName(String name) {
21826
        return byName.get(name);
21827
      }
21828
 
21829
      private final short _thriftId;
21830
      private final String _fieldName;
21831
 
21832
      _Fields(short thriftId, String fieldName) {
21833
        _thriftId = thriftId;
21834
        _fieldName = fieldName;
21835
      }
21836
 
21837
      public short getThriftFieldId() {
21838
        return _thriftId;
21839
      }
21840
 
21841
      public String getFieldName() {
21842
        return _fieldName;
21843
      }
21844
    }
21845
 
21846
    // isset id assignments
21847
 
21848
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21849
    static {
21850
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21851
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21852
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
21853
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21855
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21856
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
21857
    }
21858
 
21859
    public getCostingAndDeliveryEstimateForPincode_result() {
21860
    }
21861
 
21862
    public getCostingAndDeliveryEstimateForPincode_result(
21863
      DeliveryEstimateAndCosting success,
21864
      LogisticsServiceException se)
21865
    {
21866
      this();
21867
      this.success = success;
21868
      this.se = se;
21869
    }
21870
 
21871
    /**
21872
     * Performs a deep copy on <i>other</i>.
21873
     */
21874
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
21875
      if (other.isSetSuccess()) {
21876
        this.success = new DeliveryEstimateAndCosting(other.success);
21877
      }
21878
      if (other.isSetSe()) {
21879
        this.se = new LogisticsServiceException(other.se);
21880
      }
21881
    }
21882
 
21883
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
21884
      return new getCostingAndDeliveryEstimateForPincode_result(this);
21885
    }
21886
 
21887
    @Override
21888
    public void clear() {
21889
      this.success = null;
21890
      this.se = null;
21891
    }
21892
 
21893
    public DeliveryEstimateAndCosting getSuccess() {
21894
      return this.success;
21895
    }
21896
 
21897
    public void setSuccess(DeliveryEstimateAndCosting success) {
21898
      this.success = success;
21899
    }
21900
 
21901
    public void unsetSuccess() {
21902
      this.success = null;
21903
    }
21904
 
21905
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21906
    public boolean isSetSuccess() {
21907
      return this.success != null;
21908
    }
21909
 
21910
    public void setSuccessIsSet(boolean value) {
21911
      if (!value) {
21912
        this.success = null;
21913
      }
21914
    }
21915
 
21916
    public LogisticsServiceException getSe() {
21917
      return this.se;
21918
    }
21919
 
21920
    public void setSe(LogisticsServiceException se) {
21921
      this.se = se;
21922
    }
21923
 
21924
    public void unsetSe() {
21925
      this.se = null;
21926
    }
21927
 
21928
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
21929
    public boolean isSetSe() {
21930
      return this.se != null;
21931
    }
21932
 
21933
    public void setSeIsSet(boolean value) {
21934
      if (!value) {
21935
        this.se = null;
21936
      }
21937
    }
21938
 
21939
    public void setFieldValue(_Fields field, Object value) {
21940
      switch (field) {
21941
      case SUCCESS:
21942
        if (value == null) {
21943
          unsetSuccess();
21944
        } else {
21945
          setSuccess((DeliveryEstimateAndCosting)value);
21946
        }
21947
        break;
21948
 
21949
      case SE:
21950
        if (value == null) {
21951
          unsetSe();
21952
        } else {
21953
          setSe((LogisticsServiceException)value);
21954
        }
21955
        break;
21956
 
21957
      }
21958
    }
21959
 
21960
    public Object getFieldValue(_Fields field) {
21961
      switch (field) {
21962
      case SUCCESS:
21963
        return getSuccess();
21964
 
21965
      case SE:
21966
        return getSe();
21967
 
21968
      }
21969
      throw new IllegalStateException();
21970
    }
21971
 
21972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21973
    public boolean isSet(_Fields field) {
21974
      if (field == null) {
21975
        throw new IllegalArgumentException();
21976
      }
21977
 
21978
      switch (field) {
21979
      case SUCCESS:
21980
        return isSetSuccess();
21981
      case SE:
21982
        return isSetSe();
21983
      }
21984
      throw new IllegalStateException();
21985
    }
21986
 
21987
    @Override
21988
    public boolean equals(Object that) {
21989
      if (that == null)
21990
        return false;
21991
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
21992
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
21993
      return false;
21994
    }
21995
 
21996
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
21997
      if (that == null)
21998
        return false;
21999
 
22000
      boolean this_present_success = true && this.isSetSuccess();
22001
      boolean that_present_success = true && that.isSetSuccess();
22002
      if (this_present_success || that_present_success) {
22003
        if (!(this_present_success && that_present_success))
22004
          return false;
22005
        if (!this.success.equals(that.success))
22006
          return false;
22007
      }
22008
 
22009
      boolean this_present_se = true && this.isSetSe();
22010
      boolean that_present_se = true && that.isSetSe();
22011
      if (this_present_se || that_present_se) {
22012
        if (!(this_present_se && that_present_se))
22013
          return false;
22014
        if (!this.se.equals(that.se))
22015
          return false;
22016
      }
22017
 
22018
      return true;
22019
    }
22020
 
22021
    @Override
22022
    public int hashCode() {
22023
      return 0;
22024
    }
22025
 
22026
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
22027
      if (!getClass().equals(other.getClass())) {
22028
        return getClass().getName().compareTo(other.getClass().getName());
22029
      }
22030
 
22031
      int lastComparison = 0;
22032
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
22033
 
22034
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22035
      if (lastComparison != 0) {
22036
        return lastComparison;
22037
      }
22038
      if (isSetSuccess()) {
22039
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22040
        if (lastComparison != 0) {
22041
          return lastComparison;
22042
        }
22043
      }
22044
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22045
      if (lastComparison != 0) {
22046
        return lastComparison;
22047
      }
22048
      if (isSetSe()) {
22049
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22050
        if (lastComparison != 0) {
22051
          return lastComparison;
22052
        }
22053
      }
22054
      return 0;
22055
    }
22056
 
22057
    public _Fields fieldForId(int fieldId) {
22058
      return _Fields.findByThriftId(fieldId);
22059
    }
22060
 
22061
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22062
      org.apache.thrift.protocol.TField field;
22063
      iprot.readStructBegin();
22064
      while (true)
22065
      {
22066
        field = iprot.readFieldBegin();
22067
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22068
          break;
22069
        }
22070
        switch (field.id) {
22071
          case 0: // SUCCESS
22072
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22073
              this.success = new DeliveryEstimateAndCosting();
22074
              this.success.read(iprot);
22075
            } else { 
22076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22077
            }
22078
            break;
22079
          case 1: // SE
22080
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22081
              this.se = new LogisticsServiceException();
22082
              this.se.read(iprot);
22083
            } else { 
22084
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22085
            }
22086
            break;
22087
          default:
22088
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22089
        }
22090
        iprot.readFieldEnd();
22091
      }
22092
      iprot.readStructEnd();
22093
      validate();
22094
    }
22095
 
22096
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22097
      oprot.writeStructBegin(STRUCT_DESC);
22098
 
22099
      if (this.isSetSuccess()) {
22100
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22101
        this.success.write(oprot);
22102
        oprot.writeFieldEnd();
22103
      } else if (this.isSetSe()) {
22104
        oprot.writeFieldBegin(SE_FIELD_DESC);
22105
        this.se.write(oprot);
22106
        oprot.writeFieldEnd();
22107
      }
22108
      oprot.writeFieldStop();
22109
      oprot.writeStructEnd();
22110
    }
22111
 
22112
    @Override
22113
    public String toString() {
22114
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22115
      boolean first = true;
22116
 
22117
      sb.append("success:");
22118
      if (this.success == null) {
22119
        sb.append("null");
22120
      } else {
22121
        sb.append(this.success);
22122
      }
22123
      first = false;
22124
      if (!first) sb.append(", ");
22125
      sb.append("se:");
22126
      if (this.se == null) {
22127
        sb.append("null");
22128
      } else {
22129
        sb.append(this.se);
22130
      }
22131
      first = false;
22132
      sb.append(")");
22133
      return sb.toString();
22134
    }
22135
 
22136
    public void validate() throws org.apache.thrift.TException {
22137
      // check for required fields
22138
    }
22139
 
22140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22141
      try {
22142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22143
      } catch (org.apache.thrift.TException te) {
22144
        throw new java.io.IOException(te);
22145
      }
22146
    }
22147
 
22148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22149
      try {
22150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22151
      } catch (org.apache.thrift.TException te) {
22152
        throw new java.io.IOException(te);
22153
      }
22154
    }
22155
 
22156
  }
22157
 
20744 kshitij.so 22158
  public static class getBluedartAttributesForLogisticsTxnId_args implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_args, getBluedartAttributesForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
22159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_args");
22160
 
22161
    private static final org.apache.thrift.protocol.TField LOGISTICS_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTxnId", org.apache.thrift.protocol.TType.STRING, (short)1);
22162
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
22163
 
22164
    private String logisticsTxnId; // required
22165
    private String name; // required
22166
 
22167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22169
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId"),
22170
      NAME((short)2, "name");
22171
 
22172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22173
 
22174
      static {
22175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22176
          byName.put(field.getFieldName(), field);
22177
        }
22178
      }
22179
 
22180
      /**
22181
       * Find the _Fields constant that matches fieldId, or null if its not found.
22182
       */
22183
      public static _Fields findByThriftId(int fieldId) {
22184
        switch(fieldId) {
22185
          case 1: // LOGISTICS_TXN_ID
22186
            return LOGISTICS_TXN_ID;
22187
          case 2: // NAME
22188
            return NAME;
22189
          default:
22190
            return null;
22191
        }
22192
      }
22193
 
22194
      /**
22195
       * Find the _Fields constant that matches fieldId, throwing an exception
22196
       * if it is not found.
22197
       */
22198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22199
        _Fields fields = findByThriftId(fieldId);
22200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22201
        return fields;
22202
      }
22203
 
22204
      /**
22205
       * Find the _Fields constant that matches name, or null if its not found.
22206
       */
22207
      public static _Fields findByName(String name) {
22208
        return byName.get(name);
22209
      }
22210
 
22211
      private final short _thriftId;
22212
      private final String _fieldName;
22213
 
22214
      _Fields(short thriftId, String fieldName) {
22215
        _thriftId = thriftId;
22216
        _fieldName = fieldName;
22217
      }
22218
 
22219
      public short getThriftFieldId() {
22220
        return _thriftId;
22221
      }
22222
 
22223
      public String getFieldName() {
22224
        return _fieldName;
22225
      }
22226
    }
22227
 
22228
    // isset id assignments
22229
 
22230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22231
    static {
22232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22233
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22235
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22237
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22238
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_args.class, metaDataMap);
22239
    }
22240
 
22241
    public getBluedartAttributesForLogisticsTxnId_args() {
22242
    }
22243
 
22244
    public getBluedartAttributesForLogisticsTxnId_args(
22245
      String logisticsTxnId,
22246
      String name)
22247
    {
22248
      this();
22249
      this.logisticsTxnId = logisticsTxnId;
22250
      this.name = name;
22251
    }
22252
 
22253
    /**
22254
     * Performs a deep copy on <i>other</i>.
22255
     */
22256
    public getBluedartAttributesForLogisticsTxnId_args(getBluedartAttributesForLogisticsTxnId_args other) {
22257
      if (other.isSetLogisticsTxnId()) {
22258
        this.logisticsTxnId = other.logisticsTxnId;
22259
      }
22260
      if (other.isSetName()) {
22261
        this.name = other.name;
22262
      }
22263
    }
22264
 
22265
    public getBluedartAttributesForLogisticsTxnId_args deepCopy() {
22266
      return new getBluedartAttributesForLogisticsTxnId_args(this);
22267
    }
22268
 
22269
    @Override
22270
    public void clear() {
22271
      this.logisticsTxnId = null;
22272
      this.name = null;
22273
    }
22274
 
22275
    public String getLogisticsTxnId() {
22276
      return this.logisticsTxnId;
22277
    }
22278
 
22279
    public void setLogisticsTxnId(String logisticsTxnId) {
22280
      this.logisticsTxnId = logisticsTxnId;
22281
    }
22282
 
22283
    public void unsetLogisticsTxnId() {
22284
      this.logisticsTxnId = null;
22285
    }
22286
 
22287
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
22288
    public boolean isSetLogisticsTxnId() {
22289
      return this.logisticsTxnId != null;
22290
    }
22291
 
22292
    public void setLogisticsTxnIdIsSet(boolean value) {
22293
      if (!value) {
22294
        this.logisticsTxnId = null;
22295
      }
22296
    }
22297
 
22298
    public String getName() {
22299
      return this.name;
22300
    }
22301
 
22302
    public void setName(String name) {
22303
      this.name = name;
22304
    }
22305
 
22306
    public void unsetName() {
22307
      this.name = null;
22308
    }
22309
 
22310
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
22311
    public boolean isSetName() {
22312
      return this.name != null;
22313
    }
22314
 
22315
    public void setNameIsSet(boolean value) {
22316
      if (!value) {
22317
        this.name = null;
22318
      }
22319
    }
22320
 
22321
    public void setFieldValue(_Fields field, Object value) {
22322
      switch (field) {
22323
      case LOGISTICS_TXN_ID:
22324
        if (value == null) {
22325
          unsetLogisticsTxnId();
22326
        } else {
22327
          setLogisticsTxnId((String)value);
22328
        }
22329
        break;
22330
 
22331
      case NAME:
22332
        if (value == null) {
22333
          unsetName();
22334
        } else {
22335
          setName((String)value);
22336
        }
22337
        break;
22338
 
22339
      }
22340
    }
22341
 
22342
    public Object getFieldValue(_Fields field) {
22343
      switch (field) {
22344
      case LOGISTICS_TXN_ID:
22345
        return getLogisticsTxnId();
22346
 
22347
      case NAME:
22348
        return getName();
22349
 
22350
      }
22351
      throw new IllegalStateException();
22352
    }
22353
 
22354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22355
    public boolean isSet(_Fields field) {
22356
      if (field == null) {
22357
        throw new IllegalArgumentException();
22358
      }
22359
 
22360
      switch (field) {
22361
      case LOGISTICS_TXN_ID:
22362
        return isSetLogisticsTxnId();
22363
      case NAME:
22364
        return isSetName();
22365
      }
22366
      throw new IllegalStateException();
22367
    }
22368
 
22369
    @Override
22370
    public boolean equals(Object that) {
22371
      if (that == null)
22372
        return false;
22373
      if (that instanceof getBluedartAttributesForLogisticsTxnId_args)
22374
        return this.equals((getBluedartAttributesForLogisticsTxnId_args)that);
22375
      return false;
22376
    }
22377
 
22378
    public boolean equals(getBluedartAttributesForLogisticsTxnId_args that) {
22379
      if (that == null)
22380
        return false;
22381
 
22382
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
22383
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
22384
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
22385
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
22386
          return false;
22387
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
22388
          return false;
22389
      }
22390
 
22391
      boolean this_present_name = true && this.isSetName();
22392
      boolean that_present_name = true && that.isSetName();
22393
      if (this_present_name || that_present_name) {
22394
        if (!(this_present_name && that_present_name))
22395
          return false;
22396
        if (!this.name.equals(that.name))
22397
          return false;
22398
      }
22399
 
22400
      return true;
22401
    }
22402
 
22403
    @Override
22404
    public int hashCode() {
22405
      return 0;
22406
    }
22407
 
22408
    public int compareTo(getBluedartAttributesForLogisticsTxnId_args other) {
22409
      if (!getClass().equals(other.getClass())) {
22410
        return getClass().getName().compareTo(other.getClass().getName());
22411
      }
22412
 
22413
      int lastComparison = 0;
22414
      getBluedartAttributesForLogisticsTxnId_args typedOther = (getBluedartAttributesForLogisticsTxnId_args)other;
22415
 
22416
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
22417
      if (lastComparison != 0) {
22418
        return lastComparison;
22419
      }
22420
      if (isSetLogisticsTxnId()) {
22421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
22422
        if (lastComparison != 0) {
22423
          return lastComparison;
22424
        }
22425
      }
22426
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
22427
      if (lastComparison != 0) {
22428
        return lastComparison;
22429
      }
22430
      if (isSetName()) {
22431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
22432
        if (lastComparison != 0) {
22433
          return lastComparison;
22434
        }
22435
      }
22436
      return 0;
22437
    }
22438
 
22439
    public _Fields fieldForId(int fieldId) {
22440
      return _Fields.findByThriftId(fieldId);
22441
    }
22442
 
22443
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22444
      org.apache.thrift.protocol.TField field;
22445
      iprot.readStructBegin();
22446
      while (true)
22447
      {
22448
        field = iprot.readFieldBegin();
22449
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22450
          break;
22451
        }
22452
        switch (field.id) {
22453
          case 1: // LOGISTICS_TXN_ID
22454
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22455
              this.logisticsTxnId = iprot.readString();
22456
            } else { 
22457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22458
            }
22459
            break;
22460
          case 2: // NAME
22461
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22462
              this.name = iprot.readString();
22463
            } else { 
22464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22465
            }
22466
            break;
22467
          default:
22468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22469
        }
22470
        iprot.readFieldEnd();
22471
      }
22472
      iprot.readStructEnd();
22473
      validate();
22474
    }
22475
 
22476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22477
      validate();
22478
 
22479
      oprot.writeStructBegin(STRUCT_DESC);
22480
      if (this.logisticsTxnId != null) {
22481
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
22482
        oprot.writeString(this.logisticsTxnId);
22483
        oprot.writeFieldEnd();
22484
      }
22485
      if (this.name != null) {
22486
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22487
        oprot.writeString(this.name);
22488
        oprot.writeFieldEnd();
22489
      }
22490
      oprot.writeFieldStop();
22491
      oprot.writeStructEnd();
22492
    }
22493
 
22494
    @Override
22495
    public String toString() {
22496
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_args(");
22497
      boolean first = true;
22498
 
22499
      sb.append("logisticsTxnId:");
22500
      if (this.logisticsTxnId == null) {
22501
        sb.append("null");
22502
      } else {
22503
        sb.append(this.logisticsTxnId);
22504
      }
22505
      first = false;
22506
      if (!first) sb.append(", ");
22507
      sb.append("name:");
22508
      if (this.name == null) {
22509
        sb.append("null");
22510
      } else {
22511
        sb.append(this.name);
22512
      }
22513
      first = false;
22514
      sb.append(")");
22515
      return sb.toString();
22516
    }
22517
 
22518
    public void validate() throws org.apache.thrift.TException {
22519
      // check for required fields
22520
    }
22521
 
22522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22523
      try {
22524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22525
      } catch (org.apache.thrift.TException te) {
22526
        throw new java.io.IOException(te);
22527
      }
22528
    }
22529
 
22530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22531
      try {
22532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22533
      } catch (org.apache.thrift.TException te) {
22534
        throw new java.io.IOException(te);
22535
      }
22536
    }
22537
 
22538
  }
22539
 
22540
  public static class getBluedartAttributesForLogisticsTxnId_result implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_result, getBluedartAttributesForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
22541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_result");
22542
 
22543
    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);
22544
    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);
22545
 
22546
    private BluedartAttributes success; // required
22547
    private LogisticsServiceException se; // required
22548
 
22549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22551
      SUCCESS((short)0, "success"),
22552
      SE((short)1, "se");
22553
 
22554
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22555
 
22556
      static {
22557
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22558
          byName.put(field.getFieldName(), field);
22559
        }
22560
      }
22561
 
22562
      /**
22563
       * Find the _Fields constant that matches fieldId, or null if its not found.
22564
       */
22565
      public static _Fields findByThriftId(int fieldId) {
22566
        switch(fieldId) {
22567
          case 0: // SUCCESS
22568
            return SUCCESS;
22569
          case 1: // SE
22570
            return SE;
22571
          default:
22572
            return null;
22573
        }
22574
      }
22575
 
22576
      /**
22577
       * Find the _Fields constant that matches fieldId, throwing an exception
22578
       * if it is not found.
22579
       */
22580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22581
        _Fields fields = findByThriftId(fieldId);
22582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22583
        return fields;
22584
      }
22585
 
22586
      /**
22587
       * Find the _Fields constant that matches name, or null if its not found.
22588
       */
22589
      public static _Fields findByName(String name) {
22590
        return byName.get(name);
22591
      }
22592
 
22593
      private final short _thriftId;
22594
      private final String _fieldName;
22595
 
22596
      _Fields(short thriftId, String fieldName) {
22597
        _thriftId = thriftId;
22598
        _fieldName = fieldName;
22599
      }
22600
 
22601
      public short getThriftFieldId() {
22602
        return _thriftId;
22603
      }
22604
 
22605
      public String getFieldName() {
22606
        return _fieldName;
22607
      }
22608
    }
22609
 
22610
    // isset id assignments
22611
 
22612
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22613
    static {
22614
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22615
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22616
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BluedartAttributes.class)));
22617
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_result.class, metaDataMap);
22621
    }
22622
 
22623
    public getBluedartAttributesForLogisticsTxnId_result() {
22624
    }
22625
 
22626
    public getBluedartAttributesForLogisticsTxnId_result(
22627
      BluedartAttributes success,
22628
      LogisticsServiceException se)
22629
    {
22630
      this();
22631
      this.success = success;
22632
      this.se = se;
22633
    }
22634
 
22635
    /**
22636
     * Performs a deep copy on <i>other</i>.
22637
     */
22638
    public getBluedartAttributesForLogisticsTxnId_result(getBluedartAttributesForLogisticsTxnId_result other) {
22639
      if (other.isSetSuccess()) {
22640
        this.success = new BluedartAttributes(other.success);
22641
      }
22642
      if (other.isSetSe()) {
22643
        this.se = new LogisticsServiceException(other.se);
22644
      }
22645
    }
22646
 
22647
    public getBluedartAttributesForLogisticsTxnId_result deepCopy() {
22648
      return new getBluedartAttributesForLogisticsTxnId_result(this);
22649
    }
22650
 
22651
    @Override
22652
    public void clear() {
22653
      this.success = null;
22654
      this.se = null;
22655
    }
22656
 
22657
    public BluedartAttributes getSuccess() {
22658
      return this.success;
22659
    }
22660
 
22661
    public void setSuccess(BluedartAttributes success) {
22662
      this.success = success;
22663
    }
22664
 
22665
    public void unsetSuccess() {
22666
      this.success = null;
22667
    }
22668
 
22669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22670
    public boolean isSetSuccess() {
22671
      return this.success != null;
22672
    }
22673
 
22674
    public void setSuccessIsSet(boolean value) {
22675
      if (!value) {
22676
        this.success = null;
22677
      }
22678
    }
22679
 
22680
    public LogisticsServiceException getSe() {
22681
      return this.se;
22682
    }
22683
 
22684
    public void setSe(LogisticsServiceException se) {
22685
      this.se = se;
22686
    }
22687
 
22688
    public void unsetSe() {
22689
      this.se = null;
22690
    }
22691
 
22692
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22693
    public boolean isSetSe() {
22694
      return this.se != null;
22695
    }
22696
 
22697
    public void setSeIsSet(boolean value) {
22698
      if (!value) {
22699
        this.se = null;
22700
      }
22701
    }
22702
 
22703
    public void setFieldValue(_Fields field, Object value) {
22704
      switch (field) {
22705
      case SUCCESS:
22706
        if (value == null) {
22707
          unsetSuccess();
22708
        } else {
22709
          setSuccess((BluedartAttributes)value);
22710
        }
22711
        break;
22712
 
22713
      case SE:
22714
        if (value == null) {
22715
          unsetSe();
22716
        } else {
22717
          setSe((LogisticsServiceException)value);
22718
        }
22719
        break;
22720
 
22721
      }
22722
    }
22723
 
22724
    public Object getFieldValue(_Fields field) {
22725
      switch (field) {
22726
      case SUCCESS:
22727
        return getSuccess();
22728
 
22729
      case SE:
22730
        return getSe();
22731
 
22732
      }
22733
      throw new IllegalStateException();
22734
    }
22735
 
22736
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22737
    public boolean isSet(_Fields field) {
22738
      if (field == null) {
22739
        throw new IllegalArgumentException();
22740
      }
22741
 
22742
      switch (field) {
22743
      case SUCCESS:
22744
        return isSetSuccess();
22745
      case SE:
22746
        return isSetSe();
22747
      }
22748
      throw new IllegalStateException();
22749
    }
22750
 
22751
    @Override
22752
    public boolean equals(Object that) {
22753
      if (that == null)
22754
        return false;
22755
      if (that instanceof getBluedartAttributesForLogisticsTxnId_result)
22756
        return this.equals((getBluedartAttributesForLogisticsTxnId_result)that);
22757
      return false;
22758
    }
22759
 
22760
    public boolean equals(getBluedartAttributesForLogisticsTxnId_result that) {
22761
      if (that == null)
22762
        return false;
22763
 
22764
      boolean this_present_success = true && this.isSetSuccess();
22765
      boolean that_present_success = true && that.isSetSuccess();
22766
      if (this_present_success || that_present_success) {
22767
        if (!(this_present_success && that_present_success))
22768
          return false;
22769
        if (!this.success.equals(that.success))
22770
          return false;
22771
      }
22772
 
22773
      boolean this_present_se = true && this.isSetSe();
22774
      boolean that_present_se = true && that.isSetSe();
22775
      if (this_present_se || that_present_se) {
22776
        if (!(this_present_se && that_present_se))
22777
          return false;
22778
        if (!this.se.equals(that.se))
22779
          return false;
22780
      }
22781
 
22782
      return true;
22783
    }
22784
 
22785
    @Override
22786
    public int hashCode() {
22787
      return 0;
22788
    }
22789
 
22790
    public int compareTo(getBluedartAttributesForLogisticsTxnId_result other) {
22791
      if (!getClass().equals(other.getClass())) {
22792
        return getClass().getName().compareTo(other.getClass().getName());
22793
      }
22794
 
22795
      int lastComparison = 0;
22796
      getBluedartAttributesForLogisticsTxnId_result typedOther = (getBluedartAttributesForLogisticsTxnId_result)other;
22797
 
22798
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22799
      if (lastComparison != 0) {
22800
        return lastComparison;
22801
      }
22802
      if (isSetSuccess()) {
22803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22804
        if (lastComparison != 0) {
22805
          return lastComparison;
22806
        }
22807
      }
22808
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22809
      if (lastComparison != 0) {
22810
        return lastComparison;
22811
      }
22812
      if (isSetSe()) {
22813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22814
        if (lastComparison != 0) {
22815
          return lastComparison;
22816
        }
22817
      }
22818
      return 0;
22819
    }
22820
 
22821
    public _Fields fieldForId(int fieldId) {
22822
      return _Fields.findByThriftId(fieldId);
22823
    }
22824
 
22825
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22826
      org.apache.thrift.protocol.TField field;
22827
      iprot.readStructBegin();
22828
      while (true)
22829
      {
22830
        field = iprot.readFieldBegin();
22831
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22832
          break;
22833
        }
22834
        switch (field.id) {
22835
          case 0: // SUCCESS
22836
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22837
              this.success = new BluedartAttributes();
22838
              this.success.read(iprot);
22839
            } else { 
22840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22841
            }
22842
            break;
22843
          case 1: // SE
22844
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22845
              this.se = new LogisticsServiceException();
22846
              this.se.read(iprot);
22847
            } else { 
22848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22849
            }
22850
            break;
22851
          default:
22852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22853
        }
22854
        iprot.readFieldEnd();
22855
      }
22856
      iprot.readStructEnd();
22857
      validate();
22858
    }
22859
 
22860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22861
      oprot.writeStructBegin(STRUCT_DESC);
22862
 
22863
      if (this.isSetSuccess()) {
22864
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22865
        this.success.write(oprot);
22866
        oprot.writeFieldEnd();
22867
      } else if (this.isSetSe()) {
22868
        oprot.writeFieldBegin(SE_FIELD_DESC);
22869
        this.se.write(oprot);
22870
        oprot.writeFieldEnd();
22871
      }
22872
      oprot.writeFieldStop();
22873
      oprot.writeStructEnd();
22874
    }
22875
 
22876
    @Override
22877
    public String toString() {
22878
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_result(");
22879
      boolean first = true;
22880
 
22881
      sb.append("success:");
22882
      if (this.success == null) {
22883
        sb.append("null");
22884
      } else {
22885
        sb.append(this.success);
22886
      }
22887
      first = false;
22888
      if (!first) sb.append(", ");
22889
      sb.append("se:");
22890
      if (this.se == null) {
22891
        sb.append("null");
22892
      } else {
22893
        sb.append(this.se);
22894
      }
22895
      first = false;
22896
      sb.append(")");
22897
      return sb.toString();
22898
    }
22899
 
22900
    public void validate() throws org.apache.thrift.TException {
22901
      // check for required fields
22902
    }
22903
 
22904
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22905
      try {
22906
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22907
      } catch (org.apache.thrift.TException te) {
22908
        throw new java.io.IOException(te);
22909
      }
22910
    }
22911
 
22912
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22913
      try {
22914
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22915
      } catch (org.apache.thrift.TException te) {
22916
        throw new java.io.IOException(te);
22917
      }
22918
    }
22919
 
22920
  }
22921
 
412 ashish 22922
}