Subversion Repositories SmartDukaan

Rev

Rev 20744 | Rev 23218 | 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
 
23123 amit.gupta 143
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) 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
 
23123 amit.gupta 207
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider, 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
 
23123 amit.gupta 728
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException
7737 manish.sha 729
    {
23123 amit.gupta 730
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate, provider);
7788 manish.sha 731
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 732
    }
733
 
23123 amit.gupta 734
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) 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);
23123 amit.gupta 739
      args.setProvider(provider);
7788 manish.sha 740
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 741
    }
742
 
7788 manish.sha 743
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 744
    {
7788 manish.sha 745
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
746
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 747
      return;
748
    }
749
 
7888 rajveer 750
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
751
    {
752
      send_adjustDeliveryDays(startDate, days);
753
      return recv_adjustDeliveryDays();
754
    }
755
 
756
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
757
    {
758
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
759
      args.setStartDate(startDate);
760
      args.setDays(days);
761
      sendBase("adjustDeliveryDays", args);
762
    }
763
 
764
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
765
    {
766
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
767
      receiveBase(result, "adjustDeliveryDays");
768
      if (result.isSetSuccess()) {
769
        return result.success;
770
      }
771
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
772
    }
773
 
12895 manish.sha 774
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
775
    {
776
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
777
      return recv_getFirstDeliveryEstimateForWhLocation();
778
    }
779
 
780
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
781
    {
782
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
783
      args.setPincode(pincode);
784
      args.setWhLocation(whLocation);
785
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
786
    }
787
 
788
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
789
    {
790
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
791
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
792
      if (result.isSetSuccess()) {
793
        return result.success;
794
      }
795
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
796
    }
797
 
13146 manish.sha 798
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
799
    {
800
      send_getNewEmptyAwb(providerId, type, orderQuantity);
801
      return recv_getNewEmptyAwb();
802
    }
803
 
804
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
805
    {
806
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
807
      args.setProviderId(providerId);
808
      args.setType(type);
809
      args.setOrderQuantity(orderQuantity);
810
      sendBase("getNewEmptyAwb", args);
811
    }
812
 
813
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
814
    {
815
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
816
      receiveBase(result, "getNewEmptyAwb");
817
      if (result.isSetSuccess()) {
818
        return result.success;
819
      }
820
      if (result.se != null) {
821
        throw result.se;
822
      }
823
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
824
    }
825
 
826
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
827
    {
828
      send_getProviderLimitDetailsForPincode(providerId, pincode);
829
      return recv_getProviderLimitDetailsForPincode();
830
    }
831
 
832
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
833
    {
834
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
835
      args.setProviderId(providerId);
836
      args.setPincode(pincode);
837
      sendBase("getProviderLimitDetailsForPincode", args);
838
    }
839
 
840
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
841
    {
842
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
843
      receiveBase(result, "getProviderLimitDetailsForPincode");
844
      if (result.isSetSuccess()) {
845
        return result.success;
846
      }
847
      if (result.se != null) {
848
        throw result.se;
849
      }
850
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
851
    }
852
 
19413 amit.gupta 853
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
854
    {
855
      send_getLocationInfoMap(destPincode, price);
856
      return recv_getLocationInfoMap();
857
    }
858
 
859
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
860
    {
861
      getLocationInfoMap_args args = new getLocationInfoMap_args();
862
      args.setDestPincode(destPincode);
863
      args.setPrice(price);
864
      sendBase("getLocationInfoMap", args);
865
    }
866
 
867
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
868
    {
869
      getLocationInfoMap_result result = new getLocationInfoMap_result();
870
      receiveBase(result, "getLocationInfoMap");
871
      if (result.isSetSuccess()) {
872
        return result.success;
873
      }
874
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
875
    }
876
 
19474 manish.sha 877
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
19421 manish.sha 878
    {
19474 manish.sha 879
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
19421 manish.sha 880
      return recv_getCostingAndDeliveryEstimateForPincode();
881
    }
882
 
19474 manish.sha 883
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
19421 manish.sha 884
    {
885
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
886
      args.setPincode(pincode);
887
      args.setTransactionAmount(transactionAmount);
888
      args.setIsCod(isCod);
889
      args.setWeight(weight);
890
      args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 891
      args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 892
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
893
    }
894
 
895
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
896
    {
897
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
898
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
899
      if (result.isSetSuccess()) {
900
        return result.success;
901
      }
902
      if (result.se != null) {
903
        throw result.se;
904
      }
905
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
906
    }
907
 
20744 kshitij.so 908
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException
909
    {
910
      send_getBluedartAttributesForLogisticsTxnId(logisticsTxnId, name);
911
      return recv_getBluedartAttributesForLogisticsTxnId();
912
    }
913
 
914
    public void send_getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws org.apache.thrift.TException
915
    {
916
      getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
917
      args.setLogisticsTxnId(logisticsTxnId);
918
      args.setName(name);
919
      sendBase("getBluedartAttributesForLogisticsTxnId", args);
920
    }
921
 
922
    public BluedartAttributes recv_getBluedartAttributesForLogisticsTxnId() throws LogisticsServiceException, org.apache.thrift.TException
923
    {
924
      getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
925
      receiveBase(result, "getBluedartAttributesForLogisticsTxnId");
926
      if (result.isSetSuccess()) {
927
        return result.success;
928
      }
929
      if (result.se != null) {
930
        throw result.se;
931
      }
932
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
933
    }
934
 
412 ashish 935
  }
3430 rajveer 936
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
937
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
938
      private org.apache.thrift.async.TAsyncClientManager clientManager;
939
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
940
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
941
        this.clientManager = clientManager;
942
        this.protocolFactory = protocolFactory;
943
      }
944
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
945
        return new AsyncClient(protocolFactory, clientManager, transport);
946
      }
412 ashish 947
    }
948
 
3430 rajveer 949
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
950
      super(protocolFactory, clientManager, transport);
951
    }
412 ashish 952
 
3430 rajveer 953
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
954
      checkReady();
955
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
956
      this.___currentMethod = method_call;
957
      ___manager.call(method_call);
958
    }
959
 
960
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
961
      private long providerId;
962
      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 {
963
        super(client, protocolFactory, transport, resultHandler, false);
964
        this.providerId = providerId;
412 ashish 965
      }
3430 rajveer 966
 
967
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
968
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
969
        getProvider_args args = new getProvider_args();
970
        args.setProviderId(providerId);
971
        args.write(prot);
972
        prot.writeMessageEnd();
973
      }
974
 
975
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
976
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
977
          throw new IllegalStateException("Method call not finished!");
978
        }
979
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
981
        return (new Client(prot)).recv_getProvider();
982
      }
412 ashish 983
    }
984
 
3430 rajveer 985
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
986
      checkReady();
987
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
988
      this.___currentMethod = method_call;
989
      ___manager.call(method_call);
990
    }
991
 
992
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
993
      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 {
994
        super(client, protocolFactory, transport, resultHandler, false);
995
      }
996
 
997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
999
        getAllProviders_args args = new getAllProviders_args();
1000
        args.write(prot);
1001
        prot.writeMessageEnd();
1002
      }
1003
 
1004
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1006
          throw new IllegalStateException("Method call not finished!");
1007
        }
1008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1010
        return (new Client(prot)).recv_getAllProviders();
1011
      }
1012
    }
1013
 
4630 mandeep.dh 1014
    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 1015
      checkReady();
4630 mandeep.dh 1016
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1017
      this.___currentMethod = method_call;
1018
      ___manager.call(method_call);
1019
    }
1020
 
1021
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1022
      private long itemId;
1023
      private String destination_pin;
4630 mandeep.dh 1024
      private DeliveryType type;
1025
      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 1026
        super(client, protocolFactory, transport, resultHandler, false);
1027
        this.itemId = itemId;
1028
        this.destination_pin = destination_pin;
4630 mandeep.dh 1029
        this.type = type;
3430 rajveer 1030
      }
1031
 
1032
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1033
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1034
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1035
        args.setItemId(itemId);
1036
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1037
        args.setType(type);
3430 rajveer 1038
        args.write(prot);
1039
        prot.writeMessageEnd();
1040
      }
1041
 
1042
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1043
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1044
          throw new IllegalStateException("Method call not finished!");
1045
        }
1046
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1047
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1048
        return (new Client(prot)).recv_getLogisticsEstimation();
1049
      }
1050
    }
1051
 
7256 rajveer 1052
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1053
      checkReady();
1054
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1055
      this.___currentMethod = method_call;
1056
      ___manager.call(method_call);
1057
    }
1058
 
1059
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1060
      private long itemId;
1061
      private String destination_pin;
1062
      private DeliveryType type;
1063
      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 {
1064
        super(client, protocolFactory, transport, resultHandler, false);
1065
        this.itemId = itemId;
1066
        this.destination_pin = destination_pin;
1067
        this.type = type;
1068
      }
1069
 
1070
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1071
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1072
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1073
        args.setItemId(itemId);
1074
        args.setDestination_pin(destination_pin);
1075
        args.setType(type);
1076
        args.write(prot);
1077
        prot.writeMessageEnd();
1078
      }
1079
 
1080
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1081
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1082
          throw new IllegalStateException("Method call not finished!");
1083
        }
1084
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1086
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1087
      }
1088
    }
1089
 
5766 rajveer 1090
    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 1091
      checkReady();
5766 rajveer 1092
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1093
      this.___currentMethod = method_call;
1094
      ___manager.call(method_call);
1095
    }
1096
 
1097
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1098
      private String destination_pincode;
1099
      private long item_id;
1100
      private DeliveryType type;
5766 rajveer 1101
      private PickUpType pickUp;
1102
      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 1103
        super(client, protocolFactory, transport, resultHandler, false);
1104
        this.destination_pincode = destination_pincode;
1105
        this.item_id = item_id;
1106
        this.type = type;
5766 rajveer 1107
        this.pickUp = pickUp;
3430 rajveer 1108
      }
1109
 
1110
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1111
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1112
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1113
        args.setDestination_pincode(destination_pincode);
1114
        args.setItem_id(item_id);
1115
        args.setType(type);
5766 rajveer 1116
        args.setPickUp(pickUp);
3430 rajveer 1117
        args.write(prot);
1118
        prot.writeMessageEnd();
1119
      }
1120
 
1121
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1122
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1123
          throw new IllegalStateException("Method call not finished!");
1124
        }
1125
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1126
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1127
        return (new Client(prot)).recv_getLogisticsInfo();
1128
      }
1129
    }
1130
 
20724 kshitij.so 1131
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1132
      checkReady();
20724 kshitij.so 1133
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1134
      this.___currentMethod = method_call;
1135
      ___manager.call(method_call);
1136
    }
1137
 
1138
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1139
      private long providerId;
20724 kshitij.so 1140
      private String logisticsTransactionId;
1141
      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 1142
        super(client, protocolFactory, transport, resultHandler, false);
1143
        this.providerId = providerId;
20724 kshitij.so 1144
        this.logisticsTransactionId = logisticsTransactionId;
3430 rajveer 1145
      }
1146
 
1147
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1148
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1149
        getEmptyAWB_args args = new getEmptyAWB_args();
1150
        args.setProviderId(providerId);
20724 kshitij.so 1151
        args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 1152
        args.write(prot);
1153
        prot.writeMessageEnd();
1154
      }
1155
 
1156
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1157
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1158
          throw new IllegalStateException("Method call not finished!");
1159
        }
1160
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1162
        return (new Client(prot)).recv_getEmptyAWB();
1163
      }
1164
    }
1165
 
6643 rajveer 1166
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1167
      checkReady();
6643 rajveer 1168
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1169
      this.___currentMethod = method_call;
1170
      ___manager.call(method_call);
1171
    }
1172
 
1173
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1174
      private String awbNumber;
3430 rajveer 1175
      private long providerId;
6643 rajveer 1176
      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 1177
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1178
        this.awbNumber = awbNumber;
3430 rajveer 1179
        this.providerId = providerId;
1180
      }
1181
 
1182
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1183
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1184
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1185
        args.setAwbNumber(awbNumber);
3430 rajveer 1186
        args.setProviderId(providerId);
1187
        args.write(prot);
1188
        prot.writeMessageEnd();
1189
      }
1190
 
1191
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1192
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1193
          throw new IllegalStateException("Method call not finished!");
1194
        }
1195
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1196
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1197
        return (new Client(prot)).recv_getShipmentInfo();
1198
      }
1199
    }
1200
 
6643 rajveer 1201
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1202
      checkReady();
1203
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1204
      this.___currentMethod = method_call;
1205
      ___manager.call(method_call);
1206
    }
1207
 
1208
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1209
      private AwbUpdate update;
1210
      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 {
1211
        super(client, protocolFactory, transport, resultHandler, false);
1212
        this.update = update;
1213
      }
1214
 
1215
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1216
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1217
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1218
        args.setUpdate(update);
1219
        args.write(prot);
1220
        prot.writeMessageEnd();
1221
      }
1222
 
1223
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1224
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1225
          throw new IllegalStateException("Method call not finished!");
1226
        }
1227
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1228
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1229
        (new Client(prot)).recv_storeShipmentInfo();
1230
      }
1231
    }
1232
 
3430 rajveer 1233
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1234
      checkReady();
1235
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1236
      this.___currentMethod = method_call;
1237
      ___manager.call(method_call);
1238
    }
1239
 
1240
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1241
      private long providerId;
1242
      private String pinCode;
1243
      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 {
1244
        super(client, protocolFactory, transport, resultHandler, false);
1245
        this.providerId = providerId;
1246
        this.pinCode = pinCode;
1247
      }
1248
 
1249
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1250
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1251
        getDestinationCode_args args = new getDestinationCode_args();
1252
        args.setProviderId(providerId);
1253
        args.setPinCode(pinCode);
1254
        args.write(prot);
1255
        prot.writeMessageEnd();
1256
      }
1257
 
1258
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1259
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1260
          throw new IllegalStateException("Method call not finished!");
1261
        }
1262
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1263
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1264
        return (new Client(prot)).recv_getDestinationCode();
1265
      }
1266
    }
1267
 
1268
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1269
      checkReady();
1270
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1271
      this.___currentMethod = method_call;
1272
      ___manager.call(method_call);
1273
    }
1274
 
1275
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1276
      private long providerId;
1277
      private String type;
1278
      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 {
1279
        super(client, protocolFactory, transport, resultHandler, false);
1280
        this.providerId = providerId;
1281
        this.type = type;
1282
      }
1283
 
1284
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1285
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1286
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1287
        args.setProviderId(providerId);
1288
        args.setType(type);
1289
        args.write(prot);
1290
        prot.writeMessageEnd();
1291
      }
1292
 
1293
      public long getResult() throws org.apache.thrift.TException {
1294
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1295
          throw new IllegalStateException("Method call not finished!");
1296
        }
1297
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1298
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1299
        return (new Client(prot)).recv_getFreeAwbCount();
1300
      }
1301
    }
1302
 
1303
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1304
      checkReady();
1305
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1306
      this.___currentMethod = method_call;
1307
      ___manager.call(method_call);
1308
    }
1309
 
1310
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1311
      private long fromDate;
1312
      private long toDate;
1313
      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 {
1314
        super(client, protocolFactory, transport, resultHandler, false);
1315
        this.fromDate = fromDate;
1316
        this.toDate = toDate;
1317
      }
1318
 
1319
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1320
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1321
        getHolidays_args args = new getHolidays_args();
1322
        args.setFromDate(fromDate);
1323
        args.setToDate(toDate);
1324
        args.write(prot);
1325
        prot.writeMessageEnd();
1326
      }
1327
 
1328
      public List<Long> getResult() throws org.apache.thrift.TException {
1329
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1330
          throw new IllegalStateException("Method call not finished!");
1331
        }
1332
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1333
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1334
        return (new Client(prot)).recv_getHolidays();
1335
      }
1336
    }
1337
 
4934 amit.gupta 1338
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1339
      checkReady();
1340
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1341
      this.___currentMethod = method_call;
1342
      ___manager.call(method_call);
1343
    }
1344
 
1345
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1346
      private long catalogItemId;
1347
      private String destination_pin;
1348
      private DeliveryType type;
1349
      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 {
1350
        super(client, protocolFactory, transport, resultHandler, false);
1351
        this.catalogItemId = catalogItemId;
1352
        this.destination_pin = destination_pin;
1353
        this.type = type;
1354
      }
1355
 
1356
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1357
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1358
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1359
        args.setCatalogItemId(catalogItemId);
1360
        args.setDestination_pin(destination_pin);
1361
        args.setType(type);
1362
        args.write(prot);
1363
        prot.writeMessageEnd();
1364
      }
1365
 
9840 amit.gupta 1366
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1367
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1368
          throw new IllegalStateException("Method call not finished!");
1369
        }
1370
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1372
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1373
      }
1374
    }
1375
 
5527 anupam.sin 1376
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1377
      checkReady();
1378
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1379
      this.___currentMethod = method_call;
1380
      ___manager.call(method_call);
1381
    }
1382
 
1383
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1384
      private long pickUp;
1385
      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 {
1386
        super(client, protocolFactory, transport, resultHandler, false);
1387
        this.pickUp = pickUp;
1388
      }
1389
 
1390
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1391
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1392
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1393
        args.setPickUp(pickUp);
1394
        args.write(prot);
1395
        prot.writeMessageEnd();
1396
      }
1397
 
1398
      public long getResult() throws org.apache.thrift.TException {
1399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1400
          throw new IllegalStateException("Method call not finished!");
1401
        }
1402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1404
        return (new Client(prot)).recv_getProviderForPickupType();
1405
      }
1406
    }
1407
 
5553 rajveer 1408
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1409
      checkReady();
1410
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1411
      this.___currentMethod = method_call;
1412
      ___manager.call(method_call);
1413
    }
1414
 
1415
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1416
      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 {
1417
        super(client, protocolFactory, transport, resultHandler, false);
1418
      }
1419
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        getAllPickupStores_args args = new getAllPickupStores_args();
1423
        args.write(prot);
1424
        prot.writeMessageEnd();
1425
      }
1426
 
1427
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1428
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1429
          throw new IllegalStateException("Method call not finished!");
1430
        }
1431
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1432
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1433
        return (new Client(prot)).recv_getAllPickupStores();
1434
      }
1435
    }
1436
 
1437
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1438
      checkReady();
1439
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1440
      this.___currentMethod = method_call;
1441
      ___manager.call(method_call);
1442
    }
1443
 
1444
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1445
      private long storeId;
1446
      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 {
1447
        super(client, protocolFactory, transport, resultHandler, false);
1448
        this.storeId = storeId;
1449
      }
1450
 
1451
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1452
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1453
        getPickupStore_args args = new getPickupStore_args();
1454
        args.setStoreId(storeId);
1455
        args.write(prot);
1456
        prot.writeMessageEnd();
1457
      }
1458
 
1459
      public PickupStore getResult() throws org.apache.thrift.TException {
1460
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1461
          throw new IllegalStateException("Method call not finished!");
1462
        }
1463
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1465
        return (new Client(prot)).recv_getPickupStore();
1466
      }
1467
    }
1468
 
5719 rajveer 1469
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1470
      checkReady();
1471
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1472
      this.___currentMethod = method_call;
1473
      ___manager.call(method_call);
1474
    }
1475
 
1476
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1477
      private String hotspotId;
1478
      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 {
1479
        super(client, protocolFactory, transport, resultHandler, false);
1480
        this.hotspotId = hotspotId;
1481
      }
1482
 
1483
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1484
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1485
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1486
        args.setHotspotId(hotspotId);
1487
        args.write(prot);
1488
        prot.writeMessageEnd();
1489
      }
1490
 
1491
      public PickupStore getResult() throws org.apache.thrift.TException {
1492
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1493
          throw new IllegalStateException("Method call not finished!");
1494
        }
1495
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1497
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1498
      }
1499
    }
1500
 
6524 rajveer 1501
    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 1502
      checkReady();
6524 rajveer 1503
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1504
      this.___currentMethod = method_call;
1505
      ___manager.call(method_call);
1506
    }
1507
 
1508
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1509
      private long providerId;
1510
      private String pincode;
1511
      private String destCode;
1512
      private boolean exp;
1513
      private boolean cod;
1514
      private int stationType;
6524 rajveer 1515
      private boolean otgAvailable;
1516
      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 1517
        super(client, protocolFactory, transport, resultHandler, false);
1518
        this.providerId = providerId;
1519
        this.pincode = pincode;
1520
        this.destCode = destCode;
1521
        this.exp = exp;
1522
        this.cod = cod;
1523
        this.stationType = stationType;
6524 rajveer 1524
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1525
      }
1526
 
1527
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1528
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1529
        addPincode_args args = new addPincode_args();
1530
        args.setProviderId(providerId);
1531
        args.setPincode(pincode);
1532
        args.setDestCode(destCode);
1533
        args.setExp(exp);
1534
        args.setCod(cod);
1535
        args.setStationType(stationType);
6524 rajveer 1536
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1537
        args.write(prot);
1538
        prot.writeMessageEnd();
1539
      }
1540
 
1541
      public void getResult() throws org.apache.thrift.TException {
1542
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1543
          throw new IllegalStateException("Method call not finished!");
1544
        }
1545
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1546
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1547
        (new Client(prot)).recv_addPincode();
1548
      }
1549
    }
1550
 
6524 rajveer 1551
    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 1552
      checkReady();
6524 rajveer 1553
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1554
      this.___currentMethod = method_call;
1555
      ___manager.call(method_call);
1556
    }
1557
 
1558
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1559
      private long providerId;
1560
      private String pincode;
1561
      private boolean exp;
1562
      private boolean cod;
6524 rajveer 1563
      private boolean otgAvailable;
1564
      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 1565
        super(client, protocolFactory, transport, resultHandler, false);
1566
        this.providerId = providerId;
1567
        this.pincode = pincode;
1568
        this.exp = exp;
1569
        this.cod = cod;
6524 rajveer 1570
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1571
      }
1572
 
1573
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1574
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1575
        updatePincode_args args = new updatePincode_args();
1576
        args.setProviderId(providerId);
1577
        args.setPincode(pincode);
1578
        args.setExp(exp);
1579
        args.setCod(cod);
6524 rajveer 1580
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1581
        args.write(prot);
1582
        prot.writeMessageEnd();
1583
      }
1584
 
1585
      public void getResult() throws org.apache.thrift.TException {
1586
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1587
          throw new IllegalStateException("Method call not finished!");
1588
        }
1589
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1590
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1591
        (new Client(prot)).recv_updatePincode();
1592
      }
1593
    }
1594
 
13146 manish.sha 1595
    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 1596
      checkReady();
13146 manish.sha 1597
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1598
      this.___currentMethod = method_call;
1599
      ___manager.call(method_call);
1600
    }
1601
 
1602
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1603
      private long providerId;
1604
      private boolean cod;
1605
      private List<String> awbs;
13146 manish.sha 1606
      private long awbUsedFor;
1607
      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 1608
        super(client, protocolFactory, transport, resultHandler, false);
1609
        this.providerId = providerId;
1610
        this.cod = cod;
1611
        this.awbs = awbs;
13146 manish.sha 1612
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1613
      }
1614
 
1615
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1616
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1617
        addNewAwbs_args args = new addNewAwbs_args();
1618
        args.setProviderId(providerId);
1619
        args.setCod(cod);
1620
        args.setAwbs(awbs);
13146 manish.sha 1621
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1622
        args.write(prot);
1623
        prot.writeMessageEnd();
1624
      }
1625
 
1626
      public boolean getResult() throws org.apache.thrift.TException {
1627
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1628
          throw new IllegalStateException("Method call not finished!");
1629
        }
1630
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1631
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1632
        return (new Client(prot)).recv_addNewAwbs();
1633
      }
1634
    }
1635
 
23123 amit.gupta 1636
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1637
      checkReady();
23123 amit.gupta 1638
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, provider, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1639
      this.___currentMethod = method_call;
1640
      ___manager.call(method_call);
1641
    }
1642
 
7788 manish.sha 1643
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1644
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1645
      private boolean runCompleteUpdate;
23123 amit.gupta 1646
      private long provider;
1647
      public runLogisticsLocationInfoUpdate_call(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider, 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 1648
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1649
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1650
        this.runCompleteUpdate = runCompleteUpdate;
23123 amit.gupta 1651
        this.provider = provider;
7737 manish.sha 1652
      }
1653
 
1654
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1655
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1656
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1657
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1658
        args.setRunCompleteUpdate(runCompleteUpdate);
23123 amit.gupta 1659
        args.setProvider(provider);
7737 manish.sha 1660
        args.write(prot);
1661
        prot.writeMessageEnd();
1662
      }
1663
 
1664
      public void getResult() throws org.apache.thrift.TException {
1665
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1666
          throw new IllegalStateException("Method call not finished!");
1667
        }
1668
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1670
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1671
      }
1672
    }
1673
 
7888 rajveer 1674
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1675
      checkReady();
1676
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1677
      this.___currentMethod = method_call;
1678
      ___manager.call(method_call);
1679
    }
1680
 
1681
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1682
      private long startDate;
1683
      private long days;
1684
      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 {
1685
        super(client, protocolFactory, transport, resultHandler, false);
1686
        this.startDate = startDate;
1687
        this.days = days;
1688
      }
1689
 
1690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1692
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1693
        args.setStartDate(startDate);
1694
        args.setDays(days);
1695
        args.write(prot);
1696
        prot.writeMessageEnd();
1697
      }
1698
 
1699
      public long getResult() throws org.apache.thrift.TException {
1700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1701
          throw new IllegalStateException("Method call not finished!");
1702
        }
1703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1705
        return (new Client(prot)).recv_adjustDeliveryDays();
1706
      }
1707
    }
1708
 
12895 manish.sha 1709
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1710
      checkReady();
1711
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1712
      this.___currentMethod = method_call;
1713
      ___manager.call(method_call);
1714
    }
1715
 
1716
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1717
      private String pincode;
1718
      private long whLocation;
1719
      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 {
1720
        super(client, protocolFactory, transport, resultHandler, false);
1721
        this.pincode = pincode;
1722
        this.whLocation = whLocation;
1723
      }
1724
 
1725
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1726
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1727
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1728
        args.setPincode(pincode);
1729
        args.setWhLocation(whLocation);
1730
        args.write(prot);
1731
        prot.writeMessageEnd();
1732
      }
1733
 
1734
      public long getResult() throws org.apache.thrift.TException {
1735
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1736
          throw new IllegalStateException("Method call not finished!");
1737
        }
1738
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1739
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1740
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1741
      }
1742
    }
1743
 
13146 manish.sha 1744
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1745
      checkReady();
1746
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1747
      this.___currentMethod = method_call;
1748
      ___manager.call(method_call);
1749
    }
1750
 
1751
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1752
      private long providerId;
1753
      private DeliveryType type;
1754
      private long orderQuantity;
1755
      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 {
1756
        super(client, protocolFactory, transport, resultHandler, false);
1757
        this.providerId = providerId;
1758
        this.type = type;
1759
        this.orderQuantity = orderQuantity;
1760
      }
1761
 
1762
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1763
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1764
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1765
        args.setProviderId(providerId);
1766
        args.setType(type);
1767
        args.setOrderQuantity(orderQuantity);
1768
        args.write(prot);
1769
        prot.writeMessageEnd();
1770
      }
1771
 
1772
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1774
          throw new IllegalStateException("Method call not finished!");
1775
        }
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        return (new Client(prot)).recv_getNewEmptyAwb();
1779
      }
1780
    }
1781
 
1782
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1783
      checkReady();
1784
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1785
      this.___currentMethod = method_call;
1786
      ___manager.call(method_call);
1787
    }
1788
 
1789
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1790
      private long providerId;
1791
      private String pincode;
1792
      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 {
1793
        super(client, protocolFactory, transport, resultHandler, false);
1794
        this.providerId = providerId;
1795
        this.pincode = pincode;
1796
      }
1797
 
1798
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1799
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1800
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1801
        args.setProviderId(providerId);
1802
        args.setPincode(pincode);
1803
        args.write(prot);
1804
        prot.writeMessageEnd();
1805
      }
1806
 
1807
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1809
          throw new IllegalStateException("Method call not finished!");
1810
        }
1811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1813
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1814
      }
1815
    }
1816
 
19413 amit.gupta 1817
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1818
      checkReady();
1819
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1820
      this.___currentMethod = method_call;
1821
      ___manager.call(method_call);
1822
    }
1823
 
1824
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1825
      private String destPincode;
1826
      private List<Long> price;
1827
      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 {
1828
        super(client, protocolFactory, transport, resultHandler, false);
1829
        this.destPincode = destPincode;
1830
        this.price = price;
1831
      }
1832
 
1833
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1834
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1835
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1836
        args.setDestPincode(destPincode);
1837
        args.setPrice(price);
1838
        args.write(prot);
1839
        prot.writeMessageEnd();
1840
      }
1841
 
1842
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1844
          throw new IllegalStateException("Method call not finished!");
1845
        }
1846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1848
        return (new Client(prot)).recv_getLocationInfoMap();
1849
      }
1850
    }
1851
 
19474 manish.sha 1852
    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 1853
      checkReady();
19474 manish.sha 1854
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
19421 manish.sha 1855
      this.___currentMethod = method_call;
1856
      ___manager.call(method_call);
1857
    }
1858
 
1859
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1860
      private String pincode;
1861
      private double transactionAmount;
1862
      private boolean isCod;
1863
      private double weight;
1864
      private long billingWarehouseId;
19474 manish.sha 1865
      private boolean isCompleteTxn;
1866
      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 1867
        super(client, protocolFactory, transport, resultHandler, false);
1868
        this.pincode = pincode;
1869
        this.transactionAmount = transactionAmount;
1870
        this.isCod = isCod;
1871
        this.weight = weight;
1872
        this.billingWarehouseId = billingWarehouseId;
19474 manish.sha 1873
        this.isCompleteTxn = isCompleteTxn;
19421 manish.sha 1874
      }
1875
 
1876
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1877
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1878
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1879
        args.setPincode(pincode);
1880
        args.setTransactionAmount(transactionAmount);
1881
        args.setIsCod(isCod);
1882
        args.setWeight(weight);
1883
        args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 1884
        args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 1885
        args.write(prot);
1886
        prot.writeMessageEnd();
1887
      }
1888
 
1889
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1890
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1891
          throw new IllegalStateException("Method call not finished!");
1892
        }
1893
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1894
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1895
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1896
      }
1897
    }
1898
 
20744 kshitij.so 1899
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
1900
      checkReady();
1901
      getBluedartAttributesForLogisticsTxnId_call method_call = new getBluedartAttributesForLogisticsTxnId_call(logisticsTxnId, name, resultHandler, this, ___protocolFactory, ___transport);
1902
      this.___currentMethod = method_call;
1903
      ___manager.call(method_call);
1904
    }
1905
 
1906
    public static class getBluedartAttributesForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1907
      private String logisticsTxnId;
1908
      private String name;
1909
      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 {
1910
        super(client, protocolFactory, transport, resultHandler, false);
1911
        this.logisticsTxnId = logisticsTxnId;
1912
        this.name = name;
1913
      }
1914
 
1915
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1916
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBluedartAttributesForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1917
        getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
1918
        args.setLogisticsTxnId(logisticsTxnId);
1919
        args.setName(name);
1920
        args.write(prot);
1921
        prot.writeMessageEnd();
1922
      }
1923
 
1924
      public BluedartAttributes getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1925
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1926
          throw new IllegalStateException("Method call not finished!");
1927
        }
1928
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1929
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1930
        return (new Client(prot)).recv_getBluedartAttributesForLogisticsTxnId();
1931
      }
1932
    }
1933
 
3430 rajveer 1934
  }
1935
 
1936
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1937
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1938
    public Processor(I iface) {
1939
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1940
    }
1941
 
1942
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1943
      super(iface, getProcessMap(processMap));
1944
    }
1945
 
1946
    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) {
1947
      processMap.put("getProvider", new getProvider());
1948
      processMap.put("getAllProviders", new getAllProviders());
1949
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1950
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1951
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1952
      processMap.put("getEmptyAWB", new getEmptyAWB());
1953
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1954
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1955
      processMap.put("getDestinationCode", new getDestinationCode());
1956
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1957
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1958
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1959
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1960
      processMap.put("getAllPickupStores", new getAllPickupStores());
1961
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1962
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1963
      processMap.put("addPincode", new addPincode());
1964
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1965
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1966
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1967
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1968
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1969
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1970
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 1971
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 1972
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
20744 kshitij.so 1973
      processMap.put("getBluedartAttributesForLogisticsTxnId", new getBluedartAttributesForLogisticsTxnId());
3430 rajveer 1974
      return processMap;
1975
    }
1976
 
1977
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1978
      public getProvider() {
1979
        super("getProvider");
1980
      }
1981
 
1982
      protected getProvider_args getEmptyArgsInstance() {
1983
        return new getProvider_args();
1984
      }
1985
 
1986
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1987
        getProvider_result result = new getProvider_result();
1988
        try {
3430 rajveer 1989
          result.success = iface.getProvider(args.providerId);
668 chandransh 1990
        } catch (LogisticsServiceException lse) {
1991
          result.lse = lse;
1992
        }
3430 rajveer 1993
        return result;
668 chandransh 1994
      }
1995
    }
1996
 
3430 rajveer 1997
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1998
      public getAllProviders() {
1999
        super("getAllProviders");
2000
      }
2001
 
2002
      protected getAllProviders_args getEmptyArgsInstance() {
2003
        return new getAllProviders_args();
2004
      }
2005
 
2006
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 2007
        getAllProviders_result result = new getAllProviders_result();
2008
        try {
3430 rajveer 2009
          result.success = iface.getAllProviders();
674 chandransh 2010
        } catch (LogisticsServiceException lse) {
2011
          result.lse = lse;
2012
        }
3430 rajveer 2013
        return result;
674 chandransh 2014
      }
2015
    }
2016
 
3430 rajveer 2017
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
2018
      public getLogisticsEstimation() {
2019
        super("getLogisticsEstimation");
2020
      }
2021
 
2022
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
2023
        return new getLogisticsEstimation_args();
2024
      }
2025
 
2026
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 2027
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 2028
        try {
4630 mandeep.dh 2029
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 2030
        } catch (LogisticsServiceException se) {
2031
          result.se = se;
2032
        }
3430 rajveer 2033
        return result;
483 rajveer 2034
      }
2035
    }
2036
 
7256 rajveer 2037
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
2038
      public getLogisticsEstimationForStore() {
2039
        super("getLogisticsEstimationForStore");
2040
      }
2041
 
2042
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
2043
        return new getLogisticsEstimationForStore_args();
2044
      }
2045
 
2046
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
2047
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
2048
        try {
2049
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
2050
        } catch (LogisticsServiceException se) {
2051
          result.se = se;
2052
        }
2053
        return result;
2054
      }
2055
    }
2056
 
3430 rajveer 2057
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
2058
      public getLogisticsInfo() {
2059
        super("getLogisticsInfo");
2060
      }
2061
 
2062
      protected getLogisticsInfo_args getEmptyArgsInstance() {
2063
        return new getLogisticsInfo_args();
2064
      }
2065
 
2066
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 2067
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 2068
        try {
5766 rajveer 2069
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 2070
        } catch (LogisticsServiceException se) {
2071
          result.se = se;
2072
        }
3430 rajveer 2073
        return result;
471 rajveer 2074
      }
2075
    }
2076
 
3430 rajveer 2077
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2078
      public getEmptyAWB() {
2079
        super("getEmptyAWB");
2080
      }
2081
 
2082
      protected getEmptyAWB_args getEmptyArgsInstance() {
2083
        return new getEmptyAWB_args();
2084
      }
2085
 
2086
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2087
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2088
        try {
20724 kshitij.so 2089
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
648 chandransh 2090
        } catch (LogisticsServiceException se) {
2091
          result.se = se;
2092
        }
3430 rajveer 2093
        return result;
412 ashish 2094
      }
2095
    }
2096
 
3430 rajveer 2097
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2098
      public getShipmentInfo() {
2099
        super("getShipmentInfo");
2100
      }
2101
 
2102
      protected getShipmentInfo_args getEmptyArgsInstance() {
2103
        return new getShipmentInfo_args();
2104
      }
2105
 
2106
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2107
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2108
        try {
6643 rajveer 2109
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2110
        } catch (LogisticsServiceException se) {
2111
          result.se = se;
2112
        }
3430 rajveer 2113
        return result;
412 ashish 2114
      }
2115
    }
2116
 
6643 rajveer 2117
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2118
      public storeShipmentInfo() {
2119
        super("storeShipmentInfo");
2120
      }
2121
 
2122
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2123
        return new storeShipmentInfo_args();
2124
      }
2125
 
2126
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2127
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2128
        try {
2129
          iface.storeShipmentInfo(args.update);
2130
        } catch (LogisticsServiceException se) {
2131
          result.se = se;
2132
        }
2133
        return result;
2134
      }
2135
    }
2136
 
3430 rajveer 2137
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2138
      public getDestinationCode() {
2139
        super("getDestinationCode");
2140
      }
2141
 
2142
      protected getDestinationCode_args getEmptyArgsInstance() {
2143
        return new getDestinationCode_args();
2144
      }
2145
 
2146
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2147
        getDestinationCode_result result = new getDestinationCode_result();
2148
        try {
3430 rajveer 2149
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2150
        } catch (LogisticsServiceException se) {
2151
          result.se = se;
2152
        }
3430 rajveer 2153
        return result;
730 chandransh 2154
      }
2155
    }
2156
 
3430 rajveer 2157
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2158
      public getFreeAwbCount() {
2159
        super("getFreeAwbCount");
2160
      }
2161
 
2162
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2163
        return new getFreeAwbCount_args();
2164
      }
2165
 
2166
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2167
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2168
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2169
        result.setSuccessIsSet(true);
3430 rajveer 2170
        return result;
1139 chandransh 2171
      }
2172
    }
2173
 
3430 rajveer 2174
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2175
      public getHolidays() {
2176
        super("getHolidays");
2177
      }
2178
 
2179
      protected getHolidays_args getEmptyArgsInstance() {
2180
        return new getHolidays_args();
2181
      }
2182
 
2183
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2184
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2185
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2186
        return result;
1730 ankur.sing 2187
      }
2188
    }
2189
 
4934 amit.gupta 2190
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2191
      public getEntityLogisticsEstimation() {
2192
        super("getEntityLogisticsEstimation");
2193
      }
2194
 
2195
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2196
        return new getEntityLogisticsEstimation_args();
2197
      }
2198
 
2199
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2200
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2201
        try {
2202
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2203
        } catch (LogisticsServiceException se) {
2204
          result.se = se;
2205
        }
2206
        return result;
2207
      }
2208
    }
2209
 
5527 anupam.sin 2210
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2211
      public getProviderForPickupType() {
2212
        super("getProviderForPickupType");
2213
      }
2214
 
2215
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2216
        return new getProviderForPickupType_args();
2217
      }
2218
 
2219
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2220
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2221
        result.success = iface.getProviderForPickupType(args.pickUp);
2222
        result.setSuccessIsSet(true);
2223
        return result;
2224
      }
2225
    }
2226
 
5553 rajveer 2227
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2228
      public getAllPickupStores() {
2229
        super("getAllPickupStores");
2230
      }
2231
 
2232
      protected getAllPickupStores_args getEmptyArgsInstance() {
2233
        return new getAllPickupStores_args();
2234
      }
2235
 
2236
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2237
        getAllPickupStores_result result = new getAllPickupStores_result();
2238
        result.success = iface.getAllPickupStores();
2239
        return result;
2240
      }
2241
    }
2242
 
2243
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2244
      public getPickupStore() {
2245
        super("getPickupStore");
2246
      }
2247
 
2248
      protected getPickupStore_args getEmptyArgsInstance() {
2249
        return new getPickupStore_args();
2250
      }
2251
 
2252
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2253
        getPickupStore_result result = new getPickupStore_result();
2254
        result.success = iface.getPickupStore(args.storeId);
2255
        return result;
2256
      }
2257
    }
2258
 
5719 rajveer 2259
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2260
      public getPickupStoreByHotspotId() {
2261
        super("getPickupStoreByHotspotId");
2262
      }
2263
 
2264
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2265
        return new getPickupStoreByHotspotId_args();
2266
      }
2267
 
2268
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2269
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2270
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2271
        return result;
2272
      }
2273
    }
2274
 
6322 amar.kumar 2275
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2276
      public addPincode() {
2277
        super("addPincode");
2278
      }
2279
 
2280
      protected addPincode_args getEmptyArgsInstance() {
2281
        return new addPincode_args();
2282
      }
2283
 
2284
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2285
        addPincode_result result = new addPincode_result();
6524 rajveer 2286
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2287
        return result;
2288
      }
2289
    }
2290
 
2291
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2292
      public updatePincode() {
2293
        super("updatePincode");
2294
      }
2295
 
2296
      protected updatePincode_args getEmptyArgsInstance() {
2297
        return new updatePincode_args();
2298
      }
2299
 
2300
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2301
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2302
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2303
        return result;
2304
      }
2305
    }
2306
 
7567 rajveer 2307
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2308
      public addNewAwbs() {
2309
        super("addNewAwbs");
2310
      }
2311
 
2312
      protected addNewAwbs_args getEmptyArgsInstance() {
2313
        return new addNewAwbs_args();
2314
      }
2315
 
2316
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2317
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2318
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2319
        result.setSuccessIsSet(true);
2320
        return result;
2321
      }
2322
    }
2323
 
7788 manish.sha 2324
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2325
      public runLogisticsLocationInfoUpdate() {
2326
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2327
      }
2328
 
7788 manish.sha 2329
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2330
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2331
      }
2332
 
7788 manish.sha 2333
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2334
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
23123 amit.gupta 2335
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate, args.provider);
7737 manish.sha 2336
        return result;
2337
      }
2338
    }
2339
 
7888 rajveer 2340
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2341
      public adjustDeliveryDays() {
2342
        super("adjustDeliveryDays");
2343
      }
2344
 
2345
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2346
        return new adjustDeliveryDays_args();
2347
      }
2348
 
2349
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2350
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2351
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2352
        result.setSuccessIsSet(true);
2353
        return result;
2354
      }
2355
    }
2356
 
12895 manish.sha 2357
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2358
      public getFirstDeliveryEstimateForWhLocation() {
2359
        super("getFirstDeliveryEstimateForWhLocation");
2360
      }
2361
 
2362
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2363
        return new getFirstDeliveryEstimateForWhLocation_args();
2364
      }
2365
 
2366
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2367
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2368
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2369
        result.setSuccessIsSet(true);
2370
        return result;
2371
      }
2372
    }
2373
 
13146 manish.sha 2374
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2375
      public getNewEmptyAwb() {
2376
        super("getNewEmptyAwb");
2377
      }
2378
 
2379
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2380
        return new getNewEmptyAwb_args();
2381
      }
2382
 
2383
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2384
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2385
        try {
2386
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2387
        } catch (LogisticsServiceException se) {
2388
          result.se = se;
2389
        }
2390
        return result;
2391
      }
2392
    }
2393
 
2394
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2395
      public getProviderLimitDetailsForPincode() {
2396
        super("getProviderLimitDetailsForPincode");
2397
      }
2398
 
2399
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2400
        return new getProviderLimitDetailsForPincode_args();
2401
      }
2402
 
2403
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2404
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2405
        try {
2406
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2407
        } catch (LogisticsServiceException se) {
2408
          result.se = se;
2409
        }
2410
        return result;
2411
      }
2412
    }
2413
 
19413 amit.gupta 2414
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2415
      public getLocationInfoMap() {
2416
        super("getLocationInfoMap");
2417
      }
2418
 
2419
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2420
        return new getLocationInfoMap_args();
2421
      }
2422
 
2423
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2424
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2425
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2426
        return result;
2427
      }
2428
    }
2429
 
19421 manish.sha 2430
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2431
      public getCostingAndDeliveryEstimateForPincode() {
2432
        super("getCostingAndDeliveryEstimateForPincode");
2433
      }
2434
 
2435
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2436
        return new getCostingAndDeliveryEstimateForPincode_args();
2437
      }
2438
 
2439
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2440
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2441
        try {
19474 manish.sha 2442
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
19421 manish.sha 2443
        } catch (LogisticsServiceException se) {
2444
          result.se = se;
2445
        }
2446
        return result;
2447
      }
2448
    }
2449
 
20744 kshitij.so 2450
    private static class getBluedartAttributesForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBluedartAttributesForLogisticsTxnId_args> {
2451
      public getBluedartAttributesForLogisticsTxnId() {
2452
        super("getBluedartAttributesForLogisticsTxnId");
2453
      }
2454
 
2455
      protected getBluedartAttributesForLogisticsTxnId_args getEmptyArgsInstance() {
2456
        return new getBluedartAttributesForLogisticsTxnId_args();
2457
      }
2458
 
2459
      protected getBluedartAttributesForLogisticsTxnId_result getResult(I iface, getBluedartAttributesForLogisticsTxnId_args args) throws org.apache.thrift.TException {
2460
        getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
2461
        try {
2462
          result.success = iface.getBluedartAttributesForLogisticsTxnId(args.logisticsTxnId, args.name);
2463
        } catch (LogisticsServiceException se) {
2464
          result.se = se;
2465
        }
2466
        return result;
2467
      }
2468
    }
2469
 
412 ashish 2470
  }
2471
 
3430 rajveer 2472
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2474
 
3430 rajveer 2475
    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 2476
 
3430 rajveer 2477
    private long providerId; // required
668 chandransh 2478
 
2479
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2480
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2481
      PROVIDER_ID((short)1, "providerId");
2482
 
2483
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2484
 
2485
      static {
2486
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2487
          byName.put(field.getFieldName(), field);
2488
        }
2489
      }
2490
 
2491
      /**
2492
       * Find the _Fields constant that matches fieldId, or null if its not found.
2493
       */
2494
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2495
        switch(fieldId) {
2496
          case 1: // PROVIDER_ID
2497
            return PROVIDER_ID;
2498
          default:
2499
            return null;
2500
        }
668 chandransh 2501
      }
2502
 
2503
      /**
2504
       * Find the _Fields constant that matches fieldId, throwing an exception
2505
       * if it is not found.
2506
       */
2507
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2508
        _Fields fields = findByThriftId(fieldId);
2509
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2510
        return fields;
2511
      }
2512
 
2513
      /**
2514
       * Find the _Fields constant that matches name, or null if its not found.
2515
       */
2516
      public static _Fields findByName(String name) {
2517
        return byName.get(name);
2518
      }
2519
 
2520
      private final short _thriftId;
2521
      private final String _fieldName;
2522
 
2523
      _Fields(short thriftId, String fieldName) {
2524
        _thriftId = thriftId;
2525
        _fieldName = fieldName;
2526
      }
2527
 
2528
      public short getThriftFieldId() {
2529
        return _thriftId;
2530
      }
2531
 
2532
      public String getFieldName() {
2533
        return _fieldName;
2534
      }
2535
    }
2536
 
2537
    // isset id assignments
2538
    private static final int __PROVIDERID_ISSET_ID = 0;
2539
    private BitSet __isset_bit_vector = new BitSet(1);
2540
 
3430 rajveer 2541
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2542
    static {
3430 rajveer 2543
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2544
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2545
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2546
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2547
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2548
    }
2549
 
2550
    public getProvider_args() {
2551
    }
2552
 
2553
    public getProvider_args(
2554
      long providerId)
2555
    {
2556
      this();
2557
      this.providerId = providerId;
2558
      setProviderIdIsSet(true);
2559
    }
2560
 
2561
    /**
2562
     * Performs a deep copy on <i>other</i>.
2563
     */
2564
    public getProvider_args(getProvider_args other) {
2565
      __isset_bit_vector.clear();
2566
      __isset_bit_vector.or(other.__isset_bit_vector);
2567
      this.providerId = other.providerId;
2568
    }
2569
 
2570
    public getProvider_args deepCopy() {
2571
      return new getProvider_args(this);
2572
    }
2573
 
3430 rajveer 2574
    @Override
2575
    public void clear() {
2576
      setProviderIdIsSet(false);
2577
      this.providerId = 0;
668 chandransh 2578
    }
2579
 
2580
    public long getProviderId() {
2581
      return this.providerId;
2582
    }
2583
 
3430 rajveer 2584
    public void setProviderId(long providerId) {
668 chandransh 2585
      this.providerId = providerId;
2586
      setProviderIdIsSet(true);
2587
    }
2588
 
2589
    public void unsetProviderId() {
2590
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2591
    }
2592
 
3430 rajveer 2593
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2594
    public boolean isSetProviderId() {
2595
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2596
    }
2597
 
2598
    public void setProviderIdIsSet(boolean value) {
2599
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2600
    }
2601
 
2602
    public void setFieldValue(_Fields field, Object value) {
2603
      switch (field) {
2604
      case PROVIDER_ID:
2605
        if (value == null) {
2606
          unsetProviderId();
2607
        } else {
2608
          setProviderId((Long)value);
2609
        }
2610
        break;
2611
 
2612
      }
2613
    }
2614
 
2615
    public Object getFieldValue(_Fields field) {
2616
      switch (field) {
2617
      case PROVIDER_ID:
3430 rajveer 2618
        return Long.valueOf(getProviderId());
668 chandransh 2619
 
2620
      }
2621
      throw new IllegalStateException();
2622
    }
2623
 
3430 rajveer 2624
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2625
    public boolean isSet(_Fields field) {
2626
      if (field == null) {
2627
        throw new IllegalArgumentException();
2628
      }
668 chandransh 2629
 
2630
      switch (field) {
2631
      case PROVIDER_ID:
2632
        return isSetProviderId();
2633
      }
2634
      throw new IllegalStateException();
2635
    }
2636
 
2637
    @Override
2638
    public boolean equals(Object that) {
2639
      if (that == null)
2640
        return false;
2641
      if (that instanceof getProvider_args)
2642
        return this.equals((getProvider_args)that);
2643
      return false;
2644
    }
2645
 
2646
    public boolean equals(getProvider_args that) {
2647
      if (that == null)
2648
        return false;
2649
 
2650
      boolean this_present_providerId = true;
2651
      boolean that_present_providerId = true;
2652
      if (this_present_providerId || that_present_providerId) {
2653
        if (!(this_present_providerId && that_present_providerId))
2654
          return false;
2655
        if (this.providerId != that.providerId)
2656
          return false;
2657
      }
2658
 
2659
      return true;
2660
    }
2661
 
2662
    @Override
2663
    public int hashCode() {
2664
      return 0;
2665
    }
2666
 
2667
    public int compareTo(getProvider_args other) {
2668
      if (!getClass().equals(other.getClass())) {
2669
        return getClass().getName().compareTo(other.getClass().getName());
2670
      }
2671
 
2672
      int lastComparison = 0;
2673
      getProvider_args typedOther = (getProvider_args)other;
2674
 
3430 rajveer 2675
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2676
      if (lastComparison != 0) {
2677
        return lastComparison;
2678
      }
3430 rajveer 2679
      if (isSetProviderId()) {
2680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2681
        if (lastComparison != 0) {
2682
          return lastComparison;
2683
        }
668 chandransh 2684
      }
2685
      return 0;
2686
    }
2687
 
3430 rajveer 2688
    public _Fields fieldForId(int fieldId) {
2689
      return _Fields.findByThriftId(fieldId);
2690
    }
2691
 
2692
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2693
      org.apache.thrift.protocol.TField field;
668 chandransh 2694
      iprot.readStructBegin();
2695
      while (true)
2696
      {
2697
        field = iprot.readFieldBegin();
3430 rajveer 2698
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2699
          break;
2700
        }
3430 rajveer 2701
        switch (field.id) {
2702
          case 1: // PROVIDER_ID
2703
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2704
              this.providerId = iprot.readI64();
2705
              setProviderIdIsSet(true);
2706
            } else { 
2707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2708
            }
2709
            break;
2710
          default:
2711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2712
        }
3430 rajveer 2713
        iprot.readFieldEnd();
668 chandransh 2714
      }
2715
      iprot.readStructEnd();
2716
      validate();
2717
    }
2718
 
3430 rajveer 2719
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2720
      validate();
2721
 
2722
      oprot.writeStructBegin(STRUCT_DESC);
2723
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2724
      oprot.writeI64(this.providerId);
2725
      oprot.writeFieldEnd();
2726
      oprot.writeFieldStop();
2727
      oprot.writeStructEnd();
2728
    }
2729
 
2730
    @Override
2731
    public String toString() {
2732
      StringBuilder sb = new StringBuilder("getProvider_args(");
2733
      boolean first = true;
2734
 
2735
      sb.append("providerId:");
2736
      sb.append(this.providerId);
2737
      first = false;
2738
      sb.append(")");
2739
      return sb.toString();
2740
    }
2741
 
3430 rajveer 2742
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2743
      // check for required fields
2744
    }
2745
 
3430 rajveer 2746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2747
      try {
2748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2749
      } catch (org.apache.thrift.TException te) {
2750
        throw new java.io.IOException(te);
2751
      }
2752
    }
2753
 
2754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2755
      try {
2756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2757
      } catch (org.apache.thrift.TException te) {
2758
        throw new java.io.IOException(te);
2759
      }
2760
    }
2761
 
668 chandransh 2762
  }
2763
 
3430 rajveer 2764
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2766
 
3430 rajveer 2767
    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);
2768
    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 2769
 
3430 rajveer 2770
    private Provider success; // required
2771
    private LogisticsServiceException lse; // required
668 chandransh 2772
 
2773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2774
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2775
      SUCCESS((short)0, "success"),
2776
      LSE((short)1, "lse");
2777
 
2778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2779
 
2780
      static {
2781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2782
          byName.put(field.getFieldName(), field);
2783
        }
2784
      }
2785
 
2786
      /**
2787
       * Find the _Fields constant that matches fieldId, or null if its not found.
2788
       */
2789
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2790
        switch(fieldId) {
2791
          case 0: // SUCCESS
2792
            return SUCCESS;
2793
          case 1: // LSE
2794
            return LSE;
2795
          default:
2796
            return null;
2797
        }
668 chandransh 2798
      }
2799
 
2800
      /**
2801
       * Find the _Fields constant that matches fieldId, throwing an exception
2802
       * if it is not found.
2803
       */
2804
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2805
        _Fields fields = findByThriftId(fieldId);
2806
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2807
        return fields;
2808
      }
2809
 
2810
      /**
2811
       * Find the _Fields constant that matches name, or null if its not found.
2812
       */
2813
      public static _Fields findByName(String name) {
2814
        return byName.get(name);
2815
      }
2816
 
2817
      private final short _thriftId;
2818
      private final String _fieldName;
2819
 
2820
      _Fields(short thriftId, String fieldName) {
2821
        _thriftId = thriftId;
2822
        _fieldName = fieldName;
2823
      }
2824
 
2825
      public short getThriftFieldId() {
2826
        return _thriftId;
2827
      }
2828
 
2829
      public String getFieldName() {
2830
        return _fieldName;
2831
      }
2832
    }
2833
 
2834
    // isset id assignments
2835
 
3430 rajveer 2836
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2837
    static {
3430 rajveer 2838
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2839
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2840
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2841
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2842
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2843
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2844
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2845
    }
2846
 
2847
    public getProvider_result() {
2848
    }
2849
 
2850
    public getProvider_result(
2851
      Provider success,
2852
      LogisticsServiceException lse)
2853
    {
2854
      this();
2855
      this.success = success;
2856
      this.lse = lse;
2857
    }
2858
 
2859
    /**
2860
     * Performs a deep copy on <i>other</i>.
2861
     */
2862
    public getProvider_result(getProvider_result other) {
2863
      if (other.isSetSuccess()) {
2864
        this.success = new Provider(other.success);
2865
      }
2866
      if (other.isSetLse()) {
2867
        this.lse = new LogisticsServiceException(other.lse);
2868
      }
2869
    }
2870
 
2871
    public getProvider_result deepCopy() {
2872
      return new getProvider_result(this);
2873
    }
2874
 
3430 rajveer 2875
    @Override
2876
    public void clear() {
2877
      this.success = null;
2878
      this.lse = null;
668 chandransh 2879
    }
2880
 
2881
    public Provider getSuccess() {
2882
      return this.success;
2883
    }
2884
 
3430 rajveer 2885
    public void setSuccess(Provider success) {
668 chandransh 2886
      this.success = success;
2887
    }
2888
 
2889
    public void unsetSuccess() {
2890
      this.success = null;
2891
    }
2892
 
3430 rajveer 2893
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2894
    public boolean isSetSuccess() {
2895
      return this.success != null;
2896
    }
2897
 
2898
    public void setSuccessIsSet(boolean value) {
2899
      if (!value) {
2900
        this.success = null;
2901
      }
2902
    }
2903
 
2904
    public LogisticsServiceException getLse() {
2905
      return this.lse;
2906
    }
2907
 
3430 rajveer 2908
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2909
      this.lse = lse;
2910
    }
2911
 
2912
    public void unsetLse() {
2913
      this.lse = null;
2914
    }
2915
 
3430 rajveer 2916
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2917
    public boolean isSetLse() {
2918
      return this.lse != null;
2919
    }
2920
 
2921
    public void setLseIsSet(boolean value) {
2922
      if (!value) {
2923
        this.lse = null;
2924
      }
2925
    }
2926
 
2927
    public void setFieldValue(_Fields field, Object value) {
2928
      switch (field) {
2929
      case SUCCESS:
2930
        if (value == null) {
2931
          unsetSuccess();
2932
        } else {
2933
          setSuccess((Provider)value);
2934
        }
2935
        break;
2936
 
2937
      case LSE:
2938
        if (value == null) {
2939
          unsetLse();
2940
        } else {
2941
          setLse((LogisticsServiceException)value);
2942
        }
2943
        break;
2944
 
2945
      }
2946
    }
2947
 
2948
    public Object getFieldValue(_Fields field) {
2949
      switch (field) {
2950
      case SUCCESS:
2951
        return getSuccess();
2952
 
2953
      case LSE:
2954
        return getLse();
2955
 
2956
      }
2957
      throw new IllegalStateException();
2958
    }
2959
 
3430 rajveer 2960
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2961
    public boolean isSet(_Fields field) {
2962
      if (field == null) {
2963
        throw new IllegalArgumentException();
2964
      }
668 chandransh 2965
 
2966
      switch (field) {
2967
      case SUCCESS:
2968
        return isSetSuccess();
2969
      case LSE:
2970
        return isSetLse();
2971
      }
2972
      throw new IllegalStateException();
2973
    }
2974
 
2975
    @Override
2976
    public boolean equals(Object that) {
2977
      if (that == null)
2978
        return false;
2979
      if (that instanceof getProvider_result)
2980
        return this.equals((getProvider_result)that);
2981
      return false;
2982
    }
2983
 
2984
    public boolean equals(getProvider_result that) {
2985
      if (that == null)
2986
        return false;
2987
 
2988
      boolean this_present_success = true && this.isSetSuccess();
2989
      boolean that_present_success = true && that.isSetSuccess();
2990
      if (this_present_success || that_present_success) {
2991
        if (!(this_present_success && that_present_success))
2992
          return false;
2993
        if (!this.success.equals(that.success))
2994
          return false;
2995
      }
2996
 
2997
      boolean this_present_lse = true && this.isSetLse();
2998
      boolean that_present_lse = true && that.isSetLse();
2999
      if (this_present_lse || that_present_lse) {
3000
        if (!(this_present_lse && that_present_lse))
3001
          return false;
3002
        if (!this.lse.equals(that.lse))
3003
          return false;
3004
      }
3005
 
3006
      return true;
3007
    }
3008
 
3009
    @Override
3010
    public int hashCode() {
3011
      return 0;
3012
    }
3013
 
3430 rajveer 3014
    public int compareTo(getProvider_result other) {
3015
      if (!getClass().equals(other.getClass())) {
3016
        return getClass().getName().compareTo(other.getClass().getName());
3017
      }
3018
 
3019
      int lastComparison = 0;
3020
      getProvider_result typedOther = (getProvider_result)other;
3021
 
3022
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3023
      if (lastComparison != 0) {
3024
        return lastComparison;
3025
      }
3026
      if (isSetSuccess()) {
3027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3028
        if (lastComparison != 0) {
3029
          return lastComparison;
3030
        }
3031
      }
3032
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3033
      if (lastComparison != 0) {
3034
        return lastComparison;
3035
      }
3036
      if (isSetLse()) {
3037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3038
        if (lastComparison != 0) {
3039
          return lastComparison;
3040
        }
3041
      }
3042
      return 0;
3043
    }
3044
 
3045
    public _Fields fieldForId(int fieldId) {
3046
      return _Fields.findByThriftId(fieldId);
3047
    }
3048
 
3049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3050
      org.apache.thrift.protocol.TField field;
668 chandransh 3051
      iprot.readStructBegin();
3052
      while (true)
3053
      {
3054
        field = iprot.readFieldBegin();
3430 rajveer 3055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 3056
          break;
3057
        }
3430 rajveer 3058
        switch (field.id) {
3059
          case 0: // SUCCESS
3060
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3061
              this.success = new Provider();
3062
              this.success.read(iprot);
3063
            } else { 
3064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3065
            }
3066
            break;
3067
          case 1: // LSE
3068
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3069
              this.lse = new LogisticsServiceException();
3070
              this.lse.read(iprot);
3071
            } else { 
3072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3073
            }
3074
            break;
3075
          default:
3076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 3077
        }
3430 rajveer 3078
        iprot.readFieldEnd();
668 chandransh 3079
      }
3080
      iprot.readStructEnd();
3081
      validate();
3082
    }
3083
 
3430 rajveer 3084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 3085
      oprot.writeStructBegin(STRUCT_DESC);
3086
 
3087
      if (this.isSetSuccess()) {
3088
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3089
        this.success.write(oprot);
3090
        oprot.writeFieldEnd();
3091
      } else if (this.isSetLse()) {
3092
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3093
        this.lse.write(oprot);
3094
        oprot.writeFieldEnd();
3095
      }
3096
      oprot.writeFieldStop();
3097
      oprot.writeStructEnd();
3098
    }
3099
 
3100
    @Override
3101
    public String toString() {
3102
      StringBuilder sb = new StringBuilder("getProvider_result(");
3103
      boolean first = true;
3104
 
3105
      sb.append("success:");
3106
      if (this.success == null) {
3107
        sb.append("null");
3108
      } else {
3109
        sb.append(this.success);
3110
      }
3111
      first = false;
3112
      if (!first) sb.append(", ");
3113
      sb.append("lse:");
3114
      if (this.lse == null) {
3115
        sb.append("null");
3116
      } else {
3117
        sb.append(this.lse);
3118
      }
3119
      first = false;
3120
      sb.append(")");
3121
      return sb.toString();
3122
    }
3123
 
3430 rajveer 3124
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3125
      // check for required fields
3126
    }
3127
 
3430 rajveer 3128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3129
      try {
3130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3131
      } catch (org.apache.thrift.TException te) {
3132
        throw new java.io.IOException(te);
3133
      }
3134
    }
3135
 
3136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3137
      try {
3138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3139
      } catch (org.apache.thrift.TException te) {
3140
        throw new java.io.IOException(te);
3141
      }
3142
    }
3143
 
668 chandransh 3144
  }
3145
 
3430 rajveer 3146
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3148
 
3149
 
3150
 
3151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3153
;
3154
 
3155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3156
 
3157
      static {
3158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3159
          byName.put(field.getFieldName(), field);
3160
        }
3161
      }
3162
 
3163
      /**
3164
       * Find the _Fields constant that matches fieldId, or null if its not found.
3165
       */
3166
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3167
        switch(fieldId) {
3168
          default:
3169
            return null;
3170
        }
674 chandransh 3171
      }
3172
 
3173
      /**
3174
       * Find the _Fields constant that matches fieldId, throwing an exception
3175
       * if it is not found.
3176
       */
3177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3178
        _Fields fields = findByThriftId(fieldId);
3179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3180
        return fields;
3181
      }
3182
 
3183
      /**
3184
       * Find the _Fields constant that matches name, or null if its not found.
3185
       */
3186
      public static _Fields findByName(String name) {
3187
        return byName.get(name);
3188
      }
3189
 
3190
      private final short _thriftId;
3191
      private final String _fieldName;
3192
 
3193
      _Fields(short thriftId, String fieldName) {
3194
        _thriftId = thriftId;
3195
        _fieldName = fieldName;
3196
      }
3197
 
3198
      public short getThriftFieldId() {
3199
        return _thriftId;
3200
      }
3201
 
3202
      public String getFieldName() {
3203
        return _fieldName;
3204
      }
3205
    }
3430 rajveer 3206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3207
    static {
3430 rajveer 3208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3211
    }
3212
 
3213
    public getAllProviders_args() {
3214
    }
3215
 
3216
    /**
3217
     * Performs a deep copy on <i>other</i>.
3218
     */
3219
    public getAllProviders_args(getAllProviders_args other) {
3220
    }
3221
 
3222
    public getAllProviders_args deepCopy() {
3223
      return new getAllProviders_args(this);
3224
    }
3225
 
3430 rajveer 3226
    @Override
3227
    public void clear() {
674 chandransh 3228
    }
3229
 
3230
    public void setFieldValue(_Fields field, Object value) {
3231
      switch (field) {
3232
      }
3233
    }
3234
 
3235
    public Object getFieldValue(_Fields field) {
3236
      switch (field) {
3237
      }
3238
      throw new IllegalStateException();
3239
    }
3240
 
3430 rajveer 3241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3242
    public boolean isSet(_Fields field) {
3243
      if (field == null) {
3244
        throw new IllegalArgumentException();
3245
      }
674 chandransh 3246
 
3247
      switch (field) {
3248
      }
3249
      throw new IllegalStateException();
3250
    }
3251
 
3252
    @Override
3253
    public boolean equals(Object that) {
3254
      if (that == null)
3255
        return false;
3256
      if (that instanceof getAllProviders_args)
3257
        return this.equals((getAllProviders_args)that);
3258
      return false;
3259
    }
3260
 
3261
    public boolean equals(getAllProviders_args that) {
3262
      if (that == null)
3263
        return false;
3264
 
3265
      return true;
3266
    }
3267
 
3268
    @Override
3269
    public int hashCode() {
3270
      return 0;
3271
    }
3272
 
3273
    public int compareTo(getAllProviders_args other) {
3274
      if (!getClass().equals(other.getClass())) {
3275
        return getClass().getName().compareTo(other.getClass().getName());
3276
      }
3277
 
3278
      int lastComparison = 0;
3279
      getAllProviders_args typedOther = (getAllProviders_args)other;
3280
 
3281
      return 0;
3282
    }
3283
 
3430 rajveer 3284
    public _Fields fieldForId(int fieldId) {
3285
      return _Fields.findByThriftId(fieldId);
3286
    }
3287
 
3288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3289
      org.apache.thrift.protocol.TField field;
674 chandransh 3290
      iprot.readStructBegin();
3291
      while (true)
3292
      {
3293
        field = iprot.readFieldBegin();
3430 rajveer 3294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3295
          break;
3296
        }
3430 rajveer 3297
        switch (field.id) {
3298
          default:
3299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3300
        }
3430 rajveer 3301
        iprot.readFieldEnd();
674 chandransh 3302
      }
3303
      iprot.readStructEnd();
3304
      validate();
3305
    }
3306
 
3430 rajveer 3307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3308
      validate();
3309
 
3310
      oprot.writeStructBegin(STRUCT_DESC);
3311
      oprot.writeFieldStop();
3312
      oprot.writeStructEnd();
3313
    }
3314
 
3315
    @Override
3316
    public String toString() {
3317
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3318
      boolean first = true;
3319
 
3320
      sb.append(")");
3321
      return sb.toString();
3322
    }
3323
 
3430 rajveer 3324
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3325
      // check for required fields
3326
    }
3327
 
3430 rajveer 3328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3329
      try {
3330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3331
      } catch (org.apache.thrift.TException te) {
3332
        throw new java.io.IOException(te);
3333
      }
3334
    }
3335
 
3336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3337
      try {
3338
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3339
      } catch (org.apache.thrift.TException te) {
3340
        throw new java.io.IOException(te);
3341
      }
3342
    }
3343
 
674 chandransh 3344
  }
3345
 
3430 rajveer 3346
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3347
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3348
 
3430 rajveer 3349
    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);
3350
    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 3351
 
3430 rajveer 3352
    private List<Provider> success; // required
3353
    private LogisticsServiceException lse; // required
674 chandransh 3354
 
3355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3357
      SUCCESS((short)0, "success"),
3358
      LSE((short)1, "lse");
3359
 
3360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3361
 
3362
      static {
3363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3364
          byName.put(field.getFieldName(), field);
3365
        }
3366
      }
3367
 
3368
      /**
3369
       * Find the _Fields constant that matches fieldId, or null if its not found.
3370
       */
3371
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3372
        switch(fieldId) {
3373
          case 0: // SUCCESS
3374
            return SUCCESS;
3375
          case 1: // LSE
3376
            return LSE;
3377
          default:
3378
            return null;
3379
        }
674 chandransh 3380
      }
3381
 
3382
      /**
3383
       * Find the _Fields constant that matches fieldId, throwing an exception
3384
       * if it is not found.
3385
       */
3386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3387
        _Fields fields = findByThriftId(fieldId);
3388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3389
        return fields;
3390
      }
3391
 
3392
      /**
3393
       * Find the _Fields constant that matches name, or null if its not found.
3394
       */
3395
      public static _Fields findByName(String name) {
3396
        return byName.get(name);
3397
      }
3398
 
3399
      private final short _thriftId;
3400
      private final String _fieldName;
3401
 
3402
      _Fields(short thriftId, String fieldName) {
3403
        _thriftId = thriftId;
3404
        _fieldName = fieldName;
3405
      }
3406
 
3407
      public short getThriftFieldId() {
3408
        return _thriftId;
3409
      }
3410
 
3411
      public String getFieldName() {
3412
        return _fieldName;
3413
      }
3414
    }
3415
 
3416
    // isset id assignments
3417
 
3430 rajveer 3418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3419
    static {
3430 rajveer 3420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3421
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3422
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3423
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3424
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3428
    }
3429
 
3430
    public getAllProviders_result() {
3431
    }
3432
 
3433
    public getAllProviders_result(
3434
      List<Provider> success,
3435
      LogisticsServiceException lse)
3436
    {
3437
      this();
3438
      this.success = success;
3439
      this.lse = lse;
3440
    }
3441
 
3442
    /**
3443
     * Performs a deep copy on <i>other</i>.
3444
     */
3445
    public getAllProviders_result(getAllProviders_result other) {
3446
      if (other.isSetSuccess()) {
3447
        List<Provider> __this__success = new ArrayList<Provider>();
3448
        for (Provider other_element : other.success) {
3449
          __this__success.add(new Provider(other_element));
3450
        }
3451
        this.success = __this__success;
3452
      }
3453
      if (other.isSetLse()) {
3454
        this.lse = new LogisticsServiceException(other.lse);
3455
      }
3456
    }
3457
 
3458
    public getAllProviders_result deepCopy() {
3459
      return new getAllProviders_result(this);
3460
    }
3461
 
3430 rajveer 3462
    @Override
3463
    public void clear() {
3464
      this.success = null;
3465
      this.lse = null;
674 chandransh 3466
    }
3467
 
3468
    public int getSuccessSize() {
3469
      return (this.success == null) ? 0 : this.success.size();
3470
    }
3471
 
3472
    public java.util.Iterator<Provider> getSuccessIterator() {
3473
      return (this.success == null) ? null : this.success.iterator();
3474
    }
3475
 
3476
    public void addToSuccess(Provider elem) {
3477
      if (this.success == null) {
3478
        this.success = new ArrayList<Provider>();
3479
      }
3480
      this.success.add(elem);
3481
    }
3482
 
3483
    public List<Provider> getSuccess() {
3484
      return this.success;
3485
    }
3486
 
3430 rajveer 3487
    public void setSuccess(List<Provider> success) {
674 chandransh 3488
      this.success = success;
3489
    }
3490
 
3491
    public void unsetSuccess() {
3492
      this.success = null;
3493
    }
3494
 
3430 rajveer 3495
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3496
    public boolean isSetSuccess() {
3497
      return this.success != null;
3498
    }
3499
 
3500
    public void setSuccessIsSet(boolean value) {
3501
      if (!value) {
3502
        this.success = null;
3503
      }
3504
    }
3505
 
3506
    public LogisticsServiceException getLse() {
3507
      return this.lse;
3508
    }
3509
 
3430 rajveer 3510
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3511
      this.lse = lse;
3512
    }
3513
 
3514
    public void unsetLse() {
3515
      this.lse = null;
3516
    }
3517
 
3430 rajveer 3518
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3519
    public boolean isSetLse() {
3520
      return this.lse != null;
3521
    }
3522
 
3523
    public void setLseIsSet(boolean value) {
3524
      if (!value) {
3525
        this.lse = null;
3526
      }
3527
    }
3528
 
3529
    public void setFieldValue(_Fields field, Object value) {
3530
      switch (field) {
3531
      case SUCCESS:
3532
        if (value == null) {
3533
          unsetSuccess();
3534
        } else {
3535
          setSuccess((List<Provider>)value);
3536
        }
3537
        break;
3538
 
3539
      case LSE:
3540
        if (value == null) {
3541
          unsetLse();
3542
        } else {
3543
          setLse((LogisticsServiceException)value);
3544
        }
3545
        break;
3546
 
3547
      }
3548
    }
3549
 
3550
    public Object getFieldValue(_Fields field) {
3551
      switch (field) {
3552
      case SUCCESS:
3553
        return getSuccess();
3554
 
3555
      case LSE:
3556
        return getLse();
3557
 
3558
      }
3559
      throw new IllegalStateException();
3560
    }
3561
 
3430 rajveer 3562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3563
    public boolean isSet(_Fields field) {
3564
      if (field == null) {
3565
        throw new IllegalArgumentException();
3566
      }
674 chandransh 3567
 
3568
      switch (field) {
3569
      case SUCCESS:
3570
        return isSetSuccess();
3571
      case LSE:
3572
        return isSetLse();
3573
      }
3574
      throw new IllegalStateException();
3575
    }
3576
 
3577
    @Override
3578
    public boolean equals(Object that) {
3579
      if (that == null)
3580
        return false;
3581
      if (that instanceof getAllProviders_result)
3582
        return this.equals((getAllProviders_result)that);
3583
      return false;
3584
    }
3585
 
3586
    public boolean equals(getAllProviders_result that) {
3587
      if (that == null)
3588
        return false;
3589
 
3590
      boolean this_present_success = true && this.isSetSuccess();
3591
      boolean that_present_success = true && that.isSetSuccess();
3592
      if (this_present_success || that_present_success) {
3593
        if (!(this_present_success && that_present_success))
3594
          return false;
3595
        if (!this.success.equals(that.success))
3596
          return false;
3597
      }
3598
 
3599
      boolean this_present_lse = true && this.isSetLse();
3600
      boolean that_present_lse = true && that.isSetLse();
3601
      if (this_present_lse || that_present_lse) {
3602
        if (!(this_present_lse && that_present_lse))
3603
          return false;
3604
        if (!this.lse.equals(that.lse))
3605
          return false;
3606
      }
3607
 
3608
      return true;
3609
    }
3610
 
3611
    @Override
3612
    public int hashCode() {
3613
      return 0;
3614
    }
3615
 
3430 rajveer 3616
    public int compareTo(getAllProviders_result other) {
3617
      if (!getClass().equals(other.getClass())) {
3618
        return getClass().getName().compareTo(other.getClass().getName());
3619
      }
3620
 
3621
      int lastComparison = 0;
3622
      getAllProviders_result typedOther = (getAllProviders_result)other;
3623
 
3624
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3625
      if (lastComparison != 0) {
3626
        return lastComparison;
3627
      }
3628
      if (isSetSuccess()) {
3629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3630
        if (lastComparison != 0) {
3631
          return lastComparison;
3632
        }
3633
      }
3634
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3635
      if (lastComparison != 0) {
3636
        return lastComparison;
3637
      }
3638
      if (isSetLse()) {
3639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3640
        if (lastComparison != 0) {
3641
          return lastComparison;
3642
        }
3643
      }
3644
      return 0;
3645
    }
3646
 
3647
    public _Fields fieldForId(int fieldId) {
3648
      return _Fields.findByThriftId(fieldId);
3649
    }
3650
 
3651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3652
      org.apache.thrift.protocol.TField field;
674 chandransh 3653
      iprot.readStructBegin();
3654
      while (true)
3655
      {
3656
        field = iprot.readFieldBegin();
3430 rajveer 3657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3658
          break;
3659
        }
3430 rajveer 3660
        switch (field.id) {
3661
          case 0: // SUCCESS
3662
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3663
              {
7792 anupam.sin 3664
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3665
                this.success = new ArrayList<Provider>(_list4.size);
3666
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3667
                {
7792 anupam.sin 3668
                  Provider _elem6; // required
3669
                  _elem6 = new Provider();
3670
                  _elem6.read(iprot);
3671
                  this.success.add(_elem6);
674 chandransh 3672
                }
3430 rajveer 3673
                iprot.readListEnd();
674 chandransh 3674
              }
3430 rajveer 3675
            } else { 
3676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3677
            }
3678
            break;
3679
          case 1: // LSE
3680
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3681
              this.lse = new LogisticsServiceException();
3682
              this.lse.read(iprot);
3683
            } else { 
3684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3685
            }
3686
            break;
3687
          default:
3688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3689
        }
3430 rajveer 3690
        iprot.readFieldEnd();
674 chandransh 3691
      }
3692
      iprot.readStructEnd();
3693
      validate();
3694
    }
3695
 
3430 rajveer 3696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3697
      oprot.writeStructBegin(STRUCT_DESC);
3698
 
3699
      if (this.isSetSuccess()) {
3700
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3701
        {
3430 rajveer 3702
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3703
          for (Provider _iter7 : this.success)
674 chandransh 3704
          {
7792 anupam.sin 3705
            _iter7.write(oprot);
674 chandransh 3706
          }
3707
          oprot.writeListEnd();
3708
        }
3709
        oprot.writeFieldEnd();
3710
      } else if (this.isSetLse()) {
3711
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3712
        this.lse.write(oprot);
3713
        oprot.writeFieldEnd();
3714
      }
3715
      oprot.writeFieldStop();
3716
      oprot.writeStructEnd();
3717
    }
3718
 
3719
    @Override
3720
    public String toString() {
3721
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3722
      boolean first = true;
3723
 
3724
      sb.append("success:");
3725
      if (this.success == null) {
3726
        sb.append("null");
3727
      } else {
3728
        sb.append(this.success);
3729
      }
3730
      first = false;
3731
      if (!first) sb.append(", ");
3732
      sb.append("lse:");
3733
      if (this.lse == null) {
3734
        sb.append("null");
3735
      } else {
3736
        sb.append(this.lse);
3737
      }
3738
      first = false;
3739
      sb.append(")");
3740
      return sb.toString();
3741
    }
3742
 
3430 rajveer 3743
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3744
      // check for required fields
3745
    }
3746
 
3430 rajveer 3747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3748
      try {
3749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3750
      } catch (org.apache.thrift.TException te) {
3751
        throw new java.io.IOException(te);
3752
      }
3753
    }
3754
 
3755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3756
      try {
3757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3758
      } catch (org.apache.thrift.TException te) {
3759
        throw new java.io.IOException(te);
3760
      }
3761
    }
3762
 
674 chandransh 3763
  }
3764
 
3430 rajveer 3765
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3766
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3767
 
3430 rajveer 3768
    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);
3769
    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 3770
    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 3771
 
3430 rajveer 3772
    private long itemId; // required
3773
    private String destination_pin; // required
4630 mandeep.dh 3774
    private DeliveryType type; // required
471 rajveer 3775
 
3776
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3777
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3778
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3779
      DESTINATION_PIN((short)2, "destination_pin"),
3780
      /**
3781
       * 
3782
       * @see DeliveryType
3783
       */
3784
      TYPE((short)3, "type");
471 rajveer 3785
 
3786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3787
 
3788
      static {
3789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3790
          byName.put(field.getFieldName(), field);
3791
        }
3792
      }
3793
 
3794
      /**
3795
       * Find the _Fields constant that matches fieldId, or null if its not found.
3796
       */
3797
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3798
        switch(fieldId) {
3799
          case 1: // ITEM_ID
3800
            return ITEM_ID;
3801
          case 2: // DESTINATION_PIN
3802
            return DESTINATION_PIN;
4630 mandeep.dh 3803
          case 3: // TYPE
3804
            return TYPE;
3430 rajveer 3805
          default:
3806
            return null;
3807
        }
471 rajveer 3808
      }
3809
 
3810
      /**
3811
       * Find the _Fields constant that matches fieldId, throwing an exception
3812
       * if it is not found.
3813
       */
3814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3815
        _Fields fields = findByThriftId(fieldId);
3816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3817
        return fields;
3818
      }
3819
 
3820
      /**
3821
       * Find the _Fields constant that matches name, or null if its not found.
3822
       */
3823
      public static _Fields findByName(String name) {
3824
        return byName.get(name);
3825
      }
3826
 
3827
      private final short _thriftId;
3828
      private final String _fieldName;
3829
 
3830
      _Fields(short thriftId, String fieldName) {
3831
        _thriftId = thriftId;
3832
        _fieldName = fieldName;
3833
      }
3834
 
3835
      public short getThriftFieldId() {
3836
        return _thriftId;
3837
      }
3838
 
3839
      public String getFieldName() {
3840
        return _fieldName;
3841
      }
3842
    }
3843
 
3844
    // isset id assignments
3845
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3846
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3847
 
3430 rajveer 3848
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3849
    static {
3430 rajveer 3850
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3851
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3852
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3853
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3854
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3855
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3856
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3859
    }
3860
 
3861
    public getLogisticsEstimation_args() {
3862
    }
3863
 
3864
    public getLogisticsEstimation_args(
3865
      long itemId,
4630 mandeep.dh 3866
      String destination_pin,
3867
      DeliveryType type)
471 rajveer 3868
    {
3869
      this();
3870
      this.itemId = itemId;
3871
      setItemIdIsSet(true);
3872
      this.destination_pin = destination_pin;
4630 mandeep.dh 3873
      this.type = type;
471 rajveer 3874
    }
3875
 
3876
    /**
3877
     * Performs a deep copy on <i>other</i>.
3878
     */
3879
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3880
      __isset_bit_vector.clear();
3881
      __isset_bit_vector.or(other.__isset_bit_vector);
3882
      this.itemId = other.itemId;
3883
      if (other.isSetDestination_pin()) {
3884
        this.destination_pin = other.destination_pin;
3885
      }
4630 mandeep.dh 3886
      if (other.isSetType()) {
3887
        this.type = other.type;
3888
      }
471 rajveer 3889
    }
3890
 
3891
    public getLogisticsEstimation_args deepCopy() {
3892
      return new getLogisticsEstimation_args(this);
3893
    }
3894
 
3430 rajveer 3895
    @Override
3896
    public void clear() {
3897
      setItemIdIsSet(false);
3898
      this.itemId = 0;
3899
      this.destination_pin = null;
4630 mandeep.dh 3900
      this.type = null;
471 rajveer 3901
    }
3902
 
3903
    public long getItemId() {
3904
      return this.itemId;
3905
    }
3906
 
3430 rajveer 3907
    public void setItemId(long itemId) {
471 rajveer 3908
      this.itemId = itemId;
3909
      setItemIdIsSet(true);
3910
    }
3911
 
3912
    public void unsetItemId() {
3913
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3914
    }
3915
 
3430 rajveer 3916
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3917
    public boolean isSetItemId() {
3918
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3919
    }
3920
 
3921
    public void setItemIdIsSet(boolean value) {
3922
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3923
    }
3924
 
3925
    public String getDestination_pin() {
3926
      return this.destination_pin;
3927
    }
3928
 
3430 rajveer 3929
    public void setDestination_pin(String destination_pin) {
471 rajveer 3930
      this.destination_pin = destination_pin;
3931
    }
3932
 
3933
    public void unsetDestination_pin() {
3934
      this.destination_pin = null;
3935
    }
3936
 
3430 rajveer 3937
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3938
    public boolean isSetDestination_pin() {
3939
      return this.destination_pin != null;
3940
    }
3941
 
3942
    public void setDestination_pinIsSet(boolean value) {
3943
      if (!value) {
3944
        this.destination_pin = null;
3945
      }
3946
    }
3947
 
4630 mandeep.dh 3948
    /**
3949
     * 
3950
     * @see DeliveryType
3951
     */
3952
    public DeliveryType getType() {
3953
      return this.type;
3954
    }
3955
 
3956
    /**
3957
     * 
3958
     * @see DeliveryType
3959
     */
3960
    public void setType(DeliveryType type) {
3961
      this.type = type;
3962
    }
3963
 
3964
    public void unsetType() {
3965
      this.type = null;
3966
    }
3967
 
3968
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3969
    public boolean isSetType() {
3970
      return this.type != null;
3971
    }
3972
 
3973
    public void setTypeIsSet(boolean value) {
3974
      if (!value) {
3975
        this.type = null;
3976
      }
3977
    }
3978
 
471 rajveer 3979
    public void setFieldValue(_Fields field, Object value) {
3980
      switch (field) {
3981
      case ITEM_ID:
3982
        if (value == null) {
3983
          unsetItemId();
3984
        } else {
3985
          setItemId((Long)value);
3986
        }
3987
        break;
3988
 
3989
      case DESTINATION_PIN:
3990
        if (value == null) {
3991
          unsetDestination_pin();
3992
        } else {
3993
          setDestination_pin((String)value);
3994
        }
3995
        break;
3996
 
4630 mandeep.dh 3997
      case TYPE:
3998
        if (value == null) {
3999
          unsetType();
4000
        } else {
4001
          setType((DeliveryType)value);
4002
        }
4003
        break;
4004
 
471 rajveer 4005
      }
4006
    }
4007
 
4008
    public Object getFieldValue(_Fields field) {
4009
      switch (field) {
4010
      case ITEM_ID:
3430 rajveer 4011
        return Long.valueOf(getItemId());
471 rajveer 4012
 
4013
      case DESTINATION_PIN:
4014
        return getDestination_pin();
4015
 
4630 mandeep.dh 4016
      case TYPE:
4017
        return getType();
4018
 
471 rajveer 4019
      }
4020
      throw new IllegalStateException();
4021
    }
4022
 
3430 rajveer 4023
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4024
    public boolean isSet(_Fields field) {
4025
      if (field == null) {
4026
        throw new IllegalArgumentException();
4027
      }
471 rajveer 4028
 
4029
      switch (field) {
4030
      case ITEM_ID:
4031
        return isSetItemId();
4032
      case DESTINATION_PIN:
4033
        return isSetDestination_pin();
4630 mandeep.dh 4034
      case TYPE:
4035
        return isSetType();
471 rajveer 4036
      }
4037
      throw new IllegalStateException();
4038
    }
4039
 
4040
    @Override
4041
    public boolean equals(Object that) {
4042
      if (that == null)
4043
        return false;
4044
      if (that instanceof getLogisticsEstimation_args)
4045
        return this.equals((getLogisticsEstimation_args)that);
4046
      return false;
4047
    }
4048
 
4049
    public boolean equals(getLogisticsEstimation_args that) {
4050
      if (that == null)
4051
        return false;
4052
 
4053
      boolean this_present_itemId = true;
4054
      boolean that_present_itemId = true;
4055
      if (this_present_itemId || that_present_itemId) {
4056
        if (!(this_present_itemId && that_present_itemId))
4057
          return false;
4058
        if (this.itemId != that.itemId)
4059
          return false;
4060
      }
4061
 
4062
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4063
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4064
      if (this_present_destination_pin || that_present_destination_pin) {
4065
        if (!(this_present_destination_pin && that_present_destination_pin))
4066
          return false;
4067
        if (!this.destination_pin.equals(that.destination_pin))
4068
          return false;
4069
      }
4070
 
4630 mandeep.dh 4071
      boolean this_present_type = true && this.isSetType();
4072
      boolean that_present_type = true && that.isSetType();
4073
      if (this_present_type || that_present_type) {
4074
        if (!(this_present_type && that_present_type))
4075
          return false;
4076
        if (!this.type.equals(that.type))
4077
          return false;
4078
      }
4079
 
471 rajveer 4080
      return true;
4081
    }
4082
 
4083
    @Override
4084
    public int hashCode() {
4085
      return 0;
4086
    }
4087
 
4088
    public int compareTo(getLogisticsEstimation_args other) {
4089
      if (!getClass().equals(other.getClass())) {
4090
        return getClass().getName().compareTo(other.getClass().getName());
4091
      }
4092
 
4093
      int lastComparison = 0;
4094
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4095
 
3430 rajveer 4096
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4097
      if (lastComparison != 0) {
4098
        return lastComparison;
4099
      }
3430 rajveer 4100
      if (isSetItemId()) {
4101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4102
        if (lastComparison != 0) {
4103
          return lastComparison;
4104
        }
471 rajveer 4105
      }
3430 rajveer 4106
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4107
      if (lastComparison != 0) {
4108
        return lastComparison;
4109
      }
3430 rajveer 4110
      if (isSetDestination_pin()) {
4111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4112
        if (lastComparison != 0) {
4113
          return lastComparison;
4114
        }
471 rajveer 4115
      }
4630 mandeep.dh 4116
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4117
      if (lastComparison != 0) {
4118
        return lastComparison;
4119
      }
4120
      if (isSetType()) {
4121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4122
        if (lastComparison != 0) {
4123
          return lastComparison;
4124
        }
4125
      }
471 rajveer 4126
      return 0;
4127
    }
4128
 
3430 rajveer 4129
    public _Fields fieldForId(int fieldId) {
4130
      return _Fields.findByThriftId(fieldId);
4131
    }
4132
 
4133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4134
      org.apache.thrift.protocol.TField field;
471 rajveer 4135
      iprot.readStructBegin();
4136
      while (true)
4137
      {
4138
        field = iprot.readFieldBegin();
3430 rajveer 4139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4140
          break;
4141
        }
3430 rajveer 4142
        switch (field.id) {
4143
          case 1: // ITEM_ID
4144
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4145
              this.itemId = iprot.readI64();
4146
              setItemIdIsSet(true);
4147
            } else { 
4148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4149
            }
4150
            break;
4151
          case 2: // DESTINATION_PIN
4152
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4153
              this.destination_pin = iprot.readString();
4154
            } else { 
4155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4156
            }
4157
            break;
4630 mandeep.dh 4158
          case 3: // TYPE
4159
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4160
              this.type = DeliveryType.findByValue(iprot.readI32());
4161
            } else { 
4162
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4163
            }
4164
            break;
3430 rajveer 4165
          default:
4166
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4167
        }
3430 rajveer 4168
        iprot.readFieldEnd();
471 rajveer 4169
      }
4170
      iprot.readStructEnd();
4171
      validate();
4172
    }
4173
 
3430 rajveer 4174
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4175
      validate();
4176
 
4177
      oprot.writeStructBegin(STRUCT_DESC);
4178
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4179
      oprot.writeI64(this.itemId);
4180
      oprot.writeFieldEnd();
4181
      if (this.destination_pin != null) {
4182
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4183
        oprot.writeString(this.destination_pin);
4184
        oprot.writeFieldEnd();
4185
      }
4630 mandeep.dh 4186
      if (this.type != null) {
4187
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4188
        oprot.writeI32(this.type.getValue());
4189
        oprot.writeFieldEnd();
4190
      }
471 rajveer 4191
      oprot.writeFieldStop();
4192
      oprot.writeStructEnd();
4193
    }
4194
 
4195
    @Override
4196
    public String toString() {
4197
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4198
      boolean first = true;
4199
 
4200
      sb.append("itemId:");
4201
      sb.append(this.itemId);
4202
      first = false;
4203
      if (!first) sb.append(", ");
4204
      sb.append("destination_pin:");
4205
      if (this.destination_pin == null) {
4206
        sb.append("null");
4207
      } else {
4208
        sb.append(this.destination_pin);
4209
      }
4210
      first = false;
4630 mandeep.dh 4211
      if (!first) sb.append(", ");
4212
      sb.append("type:");
4213
      if (this.type == null) {
4214
        sb.append("null");
4215
      } else {
4216
        sb.append(this.type);
4217
      }
4218
      first = false;
471 rajveer 4219
      sb.append(")");
4220
      return sb.toString();
4221
    }
4222
 
3430 rajveer 4223
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4224
      // check for required fields
4225
    }
4226
 
3430 rajveer 4227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4228
      try {
4229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4230
      } catch (org.apache.thrift.TException te) {
4231
        throw new java.io.IOException(te);
4232
      }
4233
    }
4234
 
4235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4236
      try {
4237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4238
      } catch (org.apache.thrift.TException te) {
4239
        throw new java.io.IOException(te);
4240
      }
4241
    }
4242
 
471 rajveer 4243
  }
4244
 
3430 rajveer 4245
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4247
 
3430 rajveer 4248
    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);
4249
    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 4250
 
3430 rajveer 4251
    private LogisticsInfo success; // required
4252
    private LogisticsServiceException se; // required
471 rajveer 4253
 
4254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4256
      SUCCESS((short)0, "success"),
4257
      SE((short)1, "se");
4258
 
4259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4260
 
4261
      static {
4262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4263
          byName.put(field.getFieldName(), field);
4264
        }
4265
      }
4266
 
4267
      /**
4268
       * Find the _Fields constant that matches fieldId, or null if its not found.
4269
       */
4270
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4271
        switch(fieldId) {
4272
          case 0: // SUCCESS
4273
            return SUCCESS;
4274
          case 1: // SE
4275
            return SE;
4276
          default:
4277
            return null;
4278
        }
471 rajveer 4279
      }
4280
 
4281
      /**
4282
       * Find the _Fields constant that matches fieldId, throwing an exception
4283
       * if it is not found.
4284
       */
4285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4286
        _Fields fields = findByThriftId(fieldId);
4287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4288
        return fields;
4289
      }
4290
 
4291
      /**
4292
       * Find the _Fields constant that matches name, or null if its not found.
4293
       */
4294
      public static _Fields findByName(String name) {
4295
        return byName.get(name);
4296
      }
4297
 
4298
      private final short _thriftId;
4299
      private final String _fieldName;
4300
 
4301
      _Fields(short thriftId, String fieldName) {
4302
        _thriftId = thriftId;
4303
        _fieldName = fieldName;
4304
      }
4305
 
4306
      public short getThriftFieldId() {
4307
        return _thriftId;
4308
      }
4309
 
4310
      public String getFieldName() {
4311
        return _fieldName;
4312
      }
4313
    }
4314
 
4315
    // isset id assignments
4316
 
3430 rajveer 4317
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4318
    static {
3430 rajveer 4319
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4320
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4321
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4322
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4324
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4325
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4326
    }
4327
 
4328
    public getLogisticsEstimation_result() {
4329
    }
4330
 
4331
    public getLogisticsEstimation_result(
648 chandransh 4332
      LogisticsInfo success,
471 rajveer 4333
      LogisticsServiceException se)
4334
    {
4335
      this();
4336
      this.success = success;
4337
      this.se = se;
4338
    }
4339
 
4340
    /**
4341
     * Performs a deep copy on <i>other</i>.
4342
     */
4343
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4344
      if (other.isSetSuccess()) {
648 chandransh 4345
        this.success = new LogisticsInfo(other.success);
471 rajveer 4346
      }
4347
      if (other.isSetSe()) {
4348
        this.se = new LogisticsServiceException(other.se);
4349
      }
4350
    }
4351
 
4352
    public getLogisticsEstimation_result deepCopy() {
4353
      return new getLogisticsEstimation_result(this);
4354
    }
4355
 
3430 rajveer 4356
    @Override
4357
    public void clear() {
4358
      this.success = null;
4359
      this.se = null;
471 rajveer 4360
    }
4361
 
648 chandransh 4362
    public LogisticsInfo getSuccess() {
471 rajveer 4363
      return this.success;
4364
    }
4365
 
3430 rajveer 4366
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4367
      this.success = success;
4368
    }
4369
 
4370
    public void unsetSuccess() {
4371
      this.success = null;
4372
    }
4373
 
3430 rajveer 4374
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4375
    public boolean isSetSuccess() {
4376
      return this.success != null;
4377
    }
4378
 
4379
    public void setSuccessIsSet(boolean value) {
4380
      if (!value) {
4381
        this.success = null;
4382
      }
4383
    }
4384
 
4385
    public LogisticsServiceException getSe() {
4386
      return this.se;
4387
    }
4388
 
3430 rajveer 4389
    public void setSe(LogisticsServiceException se) {
471 rajveer 4390
      this.se = se;
4391
    }
4392
 
4393
    public void unsetSe() {
4394
      this.se = null;
4395
    }
4396
 
3430 rajveer 4397
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4398
    public boolean isSetSe() {
4399
      return this.se != null;
4400
    }
4401
 
4402
    public void setSeIsSet(boolean value) {
4403
      if (!value) {
4404
        this.se = null;
4405
      }
4406
    }
4407
 
4408
    public void setFieldValue(_Fields field, Object value) {
4409
      switch (field) {
4410
      case SUCCESS:
4411
        if (value == null) {
4412
          unsetSuccess();
4413
        } else {
648 chandransh 4414
          setSuccess((LogisticsInfo)value);
471 rajveer 4415
        }
4416
        break;
4417
 
4418
      case SE:
4419
        if (value == null) {
4420
          unsetSe();
4421
        } else {
4422
          setSe((LogisticsServiceException)value);
4423
        }
4424
        break;
4425
 
4426
      }
4427
    }
4428
 
4429
    public Object getFieldValue(_Fields field) {
4430
      switch (field) {
4431
      case SUCCESS:
4432
        return getSuccess();
4433
 
4434
      case SE:
4435
        return getSe();
4436
 
4437
      }
4438
      throw new IllegalStateException();
4439
    }
4440
 
3430 rajveer 4441
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4442
    public boolean isSet(_Fields field) {
4443
      if (field == null) {
4444
        throw new IllegalArgumentException();
4445
      }
471 rajveer 4446
 
4447
      switch (field) {
4448
      case SUCCESS:
4449
        return isSetSuccess();
4450
      case SE:
4451
        return isSetSe();
4452
      }
4453
      throw new IllegalStateException();
4454
    }
4455
 
4456
    @Override
4457
    public boolean equals(Object that) {
4458
      if (that == null)
4459
        return false;
4460
      if (that instanceof getLogisticsEstimation_result)
4461
        return this.equals((getLogisticsEstimation_result)that);
4462
      return false;
4463
    }
4464
 
4465
    public boolean equals(getLogisticsEstimation_result that) {
4466
      if (that == null)
4467
        return false;
4468
 
4469
      boolean this_present_success = true && this.isSetSuccess();
4470
      boolean that_present_success = true && that.isSetSuccess();
4471
      if (this_present_success || that_present_success) {
4472
        if (!(this_present_success && that_present_success))
4473
          return false;
4474
        if (!this.success.equals(that.success))
4475
          return false;
4476
      }
4477
 
4478
      boolean this_present_se = true && this.isSetSe();
4479
      boolean that_present_se = true && that.isSetSe();
4480
      if (this_present_se || that_present_se) {
4481
        if (!(this_present_se && that_present_se))
4482
          return false;
4483
        if (!this.se.equals(that.se))
4484
          return false;
4485
      }
4486
 
4487
      return true;
4488
    }
4489
 
4490
    @Override
4491
    public int hashCode() {
4492
      return 0;
4493
    }
4494
 
4495
    public int compareTo(getLogisticsEstimation_result other) {
4496
      if (!getClass().equals(other.getClass())) {
4497
        return getClass().getName().compareTo(other.getClass().getName());
4498
      }
4499
 
4500
      int lastComparison = 0;
4501
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4502
 
3430 rajveer 4503
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4504
      if (lastComparison != 0) {
4505
        return lastComparison;
4506
      }
3430 rajveer 4507
      if (isSetSuccess()) {
4508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4509
        if (lastComparison != 0) {
4510
          return lastComparison;
4511
        }
471 rajveer 4512
      }
3430 rajveer 4513
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4514
      if (lastComparison != 0) {
4515
        return lastComparison;
4516
      }
3430 rajveer 4517
      if (isSetSe()) {
4518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4519
        if (lastComparison != 0) {
4520
          return lastComparison;
4521
        }
471 rajveer 4522
      }
4523
      return 0;
4524
    }
4525
 
3430 rajveer 4526
    public _Fields fieldForId(int fieldId) {
4527
      return _Fields.findByThriftId(fieldId);
4528
    }
4529
 
4530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4531
      org.apache.thrift.protocol.TField field;
471 rajveer 4532
      iprot.readStructBegin();
4533
      while (true)
4534
      {
4535
        field = iprot.readFieldBegin();
3430 rajveer 4536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4537
          break;
4538
        }
3430 rajveer 4539
        switch (field.id) {
4540
          case 0: // SUCCESS
4541
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4542
              this.success = new LogisticsInfo();
4543
              this.success.read(iprot);
4544
            } else { 
4545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4546
            }
4547
            break;
4548
          case 1: // SE
4549
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4550
              this.se = new LogisticsServiceException();
4551
              this.se.read(iprot);
4552
            } else { 
4553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4554
            }
4555
            break;
4556
          default:
4557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4558
        }
3430 rajveer 4559
        iprot.readFieldEnd();
471 rajveer 4560
      }
4561
      iprot.readStructEnd();
4562
      validate();
4563
    }
4564
 
3430 rajveer 4565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4566
      oprot.writeStructBegin(STRUCT_DESC);
4567
 
4568
      if (this.isSetSuccess()) {
4569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4570
        this.success.write(oprot);
4571
        oprot.writeFieldEnd();
4572
      } else if (this.isSetSe()) {
4573
        oprot.writeFieldBegin(SE_FIELD_DESC);
4574
        this.se.write(oprot);
4575
        oprot.writeFieldEnd();
4576
      }
4577
      oprot.writeFieldStop();
4578
      oprot.writeStructEnd();
4579
    }
4580
 
4581
    @Override
4582
    public String toString() {
4583
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4584
      boolean first = true;
4585
 
4586
      sb.append("success:");
4587
      if (this.success == null) {
4588
        sb.append("null");
4589
      } else {
4590
        sb.append(this.success);
4591
      }
4592
      first = false;
4593
      if (!first) sb.append(", ");
4594
      sb.append("se:");
4595
      if (this.se == null) {
4596
        sb.append("null");
4597
      } else {
4598
        sb.append(this.se);
4599
      }
4600
      first = false;
4601
      sb.append(")");
4602
      return sb.toString();
4603
    }
4604
 
3430 rajveer 4605
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4606
      // check for required fields
4607
    }
4608
 
3430 rajveer 4609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4610
      try {
4611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4612
      } catch (org.apache.thrift.TException te) {
4613
        throw new java.io.IOException(te);
4614
      }
4615
    }
4616
 
4617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4618
      try {
4619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4620
      } catch (org.apache.thrift.TException te) {
4621
        throw new java.io.IOException(te);
4622
      }
4623
    }
4624
 
471 rajveer 4625
  }
4626
 
7256 rajveer 4627
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4629
 
4630
    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);
4631
    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);
4632
    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);
4633
 
4634
    private long itemId; // required
4635
    private String destination_pin; // required
4636
    private DeliveryType type; // required
4637
 
4638
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4639
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4640
      ITEM_ID((short)1, "itemId"),
4641
      DESTINATION_PIN((short)2, "destination_pin"),
4642
      /**
4643
       * 
4644
       * @see DeliveryType
4645
       */
4646
      TYPE((short)3, "type");
4647
 
4648
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4649
 
4650
      static {
4651
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4652
          byName.put(field.getFieldName(), field);
4653
        }
4654
      }
4655
 
4656
      /**
4657
       * Find the _Fields constant that matches fieldId, or null if its not found.
4658
       */
4659
      public static _Fields findByThriftId(int fieldId) {
4660
        switch(fieldId) {
4661
          case 1: // ITEM_ID
4662
            return ITEM_ID;
4663
          case 2: // DESTINATION_PIN
4664
            return DESTINATION_PIN;
4665
          case 3: // TYPE
4666
            return TYPE;
4667
          default:
4668
            return null;
4669
        }
4670
      }
4671
 
4672
      /**
4673
       * Find the _Fields constant that matches fieldId, throwing an exception
4674
       * if it is not found.
4675
       */
4676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4677
        _Fields fields = findByThriftId(fieldId);
4678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4679
        return fields;
4680
      }
4681
 
4682
      /**
4683
       * Find the _Fields constant that matches name, or null if its not found.
4684
       */
4685
      public static _Fields findByName(String name) {
4686
        return byName.get(name);
4687
      }
4688
 
4689
      private final short _thriftId;
4690
      private final String _fieldName;
4691
 
4692
      _Fields(short thriftId, String fieldName) {
4693
        _thriftId = thriftId;
4694
        _fieldName = fieldName;
4695
      }
4696
 
4697
      public short getThriftFieldId() {
4698
        return _thriftId;
4699
      }
4700
 
4701
      public String getFieldName() {
4702
        return _fieldName;
4703
      }
4704
    }
4705
 
4706
    // isset id assignments
4707
    private static final int __ITEMID_ISSET_ID = 0;
4708
    private BitSet __isset_bit_vector = new BitSet(1);
4709
 
4710
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4711
    static {
4712
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4713
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4715
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4717
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4718
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4721
    }
4722
 
4723
    public getLogisticsEstimationForStore_args() {
4724
    }
4725
 
4726
    public getLogisticsEstimationForStore_args(
4727
      long itemId,
4728
      String destination_pin,
4729
      DeliveryType type)
4730
    {
4731
      this();
4732
      this.itemId = itemId;
4733
      setItemIdIsSet(true);
4734
      this.destination_pin = destination_pin;
4735
      this.type = type;
4736
    }
4737
 
4738
    /**
4739
     * Performs a deep copy on <i>other</i>.
4740
     */
4741
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4742
      __isset_bit_vector.clear();
4743
      __isset_bit_vector.or(other.__isset_bit_vector);
4744
      this.itemId = other.itemId;
4745
      if (other.isSetDestination_pin()) {
4746
        this.destination_pin = other.destination_pin;
4747
      }
4748
      if (other.isSetType()) {
4749
        this.type = other.type;
4750
      }
4751
    }
4752
 
4753
    public getLogisticsEstimationForStore_args deepCopy() {
4754
      return new getLogisticsEstimationForStore_args(this);
4755
    }
4756
 
4757
    @Override
4758
    public void clear() {
4759
      setItemIdIsSet(false);
4760
      this.itemId = 0;
4761
      this.destination_pin = null;
4762
      this.type = null;
4763
    }
4764
 
4765
    public long getItemId() {
4766
      return this.itemId;
4767
    }
4768
 
4769
    public void setItemId(long itemId) {
4770
      this.itemId = itemId;
4771
      setItemIdIsSet(true);
4772
    }
4773
 
4774
    public void unsetItemId() {
4775
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4776
    }
4777
 
4778
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4779
    public boolean isSetItemId() {
4780
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4781
    }
4782
 
4783
    public void setItemIdIsSet(boolean value) {
4784
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4785
    }
4786
 
4787
    public String getDestination_pin() {
4788
      return this.destination_pin;
4789
    }
4790
 
4791
    public void setDestination_pin(String destination_pin) {
4792
      this.destination_pin = destination_pin;
4793
    }
4794
 
4795
    public void unsetDestination_pin() {
4796
      this.destination_pin = null;
4797
    }
4798
 
4799
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4800
    public boolean isSetDestination_pin() {
4801
      return this.destination_pin != null;
4802
    }
4803
 
4804
    public void setDestination_pinIsSet(boolean value) {
4805
      if (!value) {
4806
        this.destination_pin = null;
4807
      }
4808
    }
4809
 
4810
    /**
4811
     * 
4812
     * @see DeliveryType
4813
     */
4814
    public DeliveryType getType() {
4815
      return this.type;
4816
    }
4817
 
4818
    /**
4819
     * 
4820
     * @see DeliveryType
4821
     */
4822
    public void setType(DeliveryType type) {
4823
      this.type = type;
4824
    }
4825
 
4826
    public void unsetType() {
4827
      this.type = null;
4828
    }
4829
 
4830
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4831
    public boolean isSetType() {
4832
      return this.type != null;
4833
    }
4834
 
4835
    public void setTypeIsSet(boolean value) {
4836
      if (!value) {
4837
        this.type = null;
4838
      }
4839
    }
4840
 
4841
    public void setFieldValue(_Fields field, Object value) {
4842
      switch (field) {
4843
      case ITEM_ID:
4844
        if (value == null) {
4845
          unsetItemId();
4846
        } else {
4847
          setItemId((Long)value);
4848
        }
4849
        break;
4850
 
4851
      case DESTINATION_PIN:
4852
        if (value == null) {
4853
          unsetDestination_pin();
4854
        } else {
4855
          setDestination_pin((String)value);
4856
        }
4857
        break;
4858
 
4859
      case TYPE:
4860
        if (value == null) {
4861
          unsetType();
4862
        } else {
4863
          setType((DeliveryType)value);
4864
        }
4865
        break;
4866
 
4867
      }
4868
    }
4869
 
4870
    public Object getFieldValue(_Fields field) {
4871
      switch (field) {
4872
      case ITEM_ID:
4873
        return Long.valueOf(getItemId());
4874
 
4875
      case DESTINATION_PIN:
4876
        return getDestination_pin();
4877
 
4878
      case TYPE:
4879
        return getType();
4880
 
4881
      }
4882
      throw new IllegalStateException();
4883
    }
4884
 
4885
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4886
    public boolean isSet(_Fields field) {
4887
      if (field == null) {
4888
        throw new IllegalArgumentException();
4889
      }
4890
 
4891
      switch (field) {
4892
      case ITEM_ID:
4893
        return isSetItemId();
4894
      case DESTINATION_PIN:
4895
        return isSetDestination_pin();
4896
      case TYPE:
4897
        return isSetType();
4898
      }
4899
      throw new IllegalStateException();
4900
    }
4901
 
4902
    @Override
4903
    public boolean equals(Object that) {
4904
      if (that == null)
4905
        return false;
4906
      if (that instanceof getLogisticsEstimationForStore_args)
4907
        return this.equals((getLogisticsEstimationForStore_args)that);
4908
      return false;
4909
    }
4910
 
4911
    public boolean equals(getLogisticsEstimationForStore_args that) {
4912
      if (that == null)
4913
        return false;
4914
 
4915
      boolean this_present_itemId = true;
4916
      boolean that_present_itemId = true;
4917
      if (this_present_itemId || that_present_itemId) {
4918
        if (!(this_present_itemId && that_present_itemId))
4919
          return false;
4920
        if (this.itemId != that.itemId)
4921
          return false;
4922
      }
4923
 
4924
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4925
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4926
      if (this_present_destination_pin || that_present_destination_pin) {
4927
        if (!(this_present_destination_pin && that_present_destination_pin))
4928
          return false;
4929
        if (!this.destination_pin.equals(that.destination_pin))
4930
          return false;
4931
      }
4932
 
4933
      boolean this_present_type = true && this.isSetType();
4934
      boolean that_present_type = true && that.isSetType();
4935
      if (this_present_type || that_present_type) {
4936
        if (!(this_present_type && that_present_type))
4937
          return false;
4938
        if (!this.type.equals(that.type))
4939
          return false;
4940
      }
4941
 
4942
      return true;
4943
    }
4944
 
4945
    @Override
4946
    public int hashCode() {
4947
      return 0;
4948
    }
4949
 
4950
    public int compareTo(getLogisticsEstimationForStore_args other) {
4951
      if (!getClass().equals(other.getClass())) {
4952
        return getClass().getName().compareTo(other.getClass().getName());
4953
      }
4954
 
4955
      int lastComparison = 0;
4956
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4957
 
4958
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4959
      if (lastComparison != 0) {
4960
        return lastComparison;
4961
      }
4962
      if (isSetItemId()) {
4963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4964
        if (lastComparison != 0) {
4965
          return lastComparison;
4966
        }
4967
      }
4968
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4969
      if (lastComparison != 0) {
4970
        return lastComparison;
4971
      }
4972
      if (isSetDestination_pin()) {
4973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4974
        if (lastComparison != 0) {
4975
          return lastComparison;
4976
        }
4977
      }
4978
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4979
      if (lastComparison != 0) {
4980
        return lastComparison;
4981
      }
4982
      if (isSetType()) {
4983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4984
        if (lastComparison != 0) {
4985
          return lastComparison;
4986
        }
4987
      }
4988
      return 0;
4989
    }
4990
 
4991
    public _Fields fieldForId(int fieldId) {
4992
      return _Fields.findByThriftId(fieldId);
4993
    }
4994
 
4995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4996
      org.apache.thrift.protocol.TField field;
4997
      iprot.readStructBegin();
4998
      while (true)
4999
      {
5000
        field = iprot.readFieldBegin();
5001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5002
          break;
5003
        }
5004
        switch (field.id) {
5005
          case 1: // ITEM_ID
5006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5007
              this.itemId = iprot.readI64();
5008
              setItemIdIsSet(true);
5009
            } else { 
5010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5011
            }
5012
            break;
5013
          case 2: // DESTINATION_PIN
5014
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5015
              this.destination_pin = iprot.readString();
5016
            } else { 
5017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5018
            }
5019
            break;
5020
          case 3: // TYPE
5021
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5022
              this.type = DeliveryType.findByValue(iprot.readI32());
5023
            } else { 
5024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5025
            }
5026
            break;
5027
          default:
5028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5029
        }
5030
        iprot.readFieldEnd();
5031
      }
5032
      iprot.readStructEnd();
5033
      validate();
5034
    }
5035
 
5036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5037
      validate();
5038
 
5039
      oprot.writeStructBegin(STRUCT_DESC);
5040
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5041
      oprot.writeI64(this.itemId);
5042
      oprot.writeFieldEnd();
5043
      if (this.destination_pin != null) {
5044
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
5045
        oprot.writeString(this.destination_pin);
5046
        oprot.writeFieldEnd();
5047
      }
5048
      if (this.type != null) {
5049
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5050
        oprot.writeI32(this.type.getValue());
5051
        oprot.writeFieldEnd();
5052
      }
5053
      oprot.writeFieldStop();
5054
      oprot.writeStructEnd();
5055
    }
5056
 
5057
    @Override
5058
    public String toString() {
5059
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
5060
      boolean first = true;
5061
 
5062
      sb.append("itemId:");
5063
      sb.append(this.itemId);
5064
      first = false;
5065
      if (!first) sb.append(", ");
5066
      sb.append("destination_pin:");
5067
      if (this.destination_pin == null) {
5068
        sb.append("null");
5069
      } else {
5070
        sb.append(this.destination_pin);
5071
      }
5072
      first = false;
5073
      if (!first) sb.append(", ");
5074
      sb.append("type:");
5075
      if (this.type == null) {
5076
        sb.append("null");
5077
      } else {
5078
        sb.append(this.type);
5079
      }
5080
      first = false;
5081
      sb.append(")");
5082
      return sb.toString();
5083
    }
5084
 
5085
    public void validate() throws org.apache.thrift.TException {
5086
      // check for required fields
5087
    }
5088
 
5089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5090
      try {
5091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5092
      } catch (org.apache.thrift.TException te) {
5093
        throw new java.io.IOException(te);
5094
      }
5095
    }
5096
 
5097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5098
      try {
5099
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5100
        __isset_bit_vector = new BitSet(1);
5101
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5102
      } catch (org.apache.thrift.TException te) {
5103
        throw new java.io.IOException(te);
5104
      }
5105
    }
5106
 
5107
  }
5108
 
5109
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5110
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5111
 
5112
    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);
5113
    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);
5114
 
5115
    private LogisticsInfo success; // required
5116
    private LogisticsServiceException se; // required
5117
 
5118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5119
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5120
      SUCCESS((short)0, "success"),
5121
      SE((short)1, "se");
5122
 
5123
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5124
 
5125
      static {
5126
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5127
          byName.put(field.getFieldName(), field);
5128
        }
5129
      }
5130
 
5131
      /**
5132
       * Find the _Fields constant that matches fieldId, or null if its not found.
5133
       */
5134
      public static _Fields findByThriftId(int fieldId) {
5135
        switch(fieldId) {
5136
          case 0: // SUCCESS
5137
            return SUCCESS;
5138
          case 1: // SE
5139
            return SE;
5140
          default:
5141
            return null;
5142
        }
5143
      }
5144
 
5145
      /**
5146
       * Find the _Fields constant that matches fieldId, throwing an exception
5147
       * if it is not found.
5148
       */
5149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5150
        _Fields fields = findByThriftId(fieldId);
5151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5152
        return fields;
5153
      }
5154
 
5155
      /**
5156
       * Find the _Fields constant that matches name, or null if its not found.
5157
       */
5158
      public static _Fields findByName(String name) {
5159
        return byName.get(name);
5160
      }
5161
 
5162
      private final short _thriftId;
5163
      private final String _fieldName;
5164
 
5165
      _Fields(short thriftId, String fieldName) {
5166
        _thriftId = thriftId;
5167
        _fieldName = fieldName;
5168
      }
5169
 
5170
      public short getThriftFieldId() {
5171
        return _thriftId;
5172
      }
5173
 
5174
      public String getFieldName() {
5175
        return _fieldName;
5176
      }
5177
    }
5178
 
5179
    // isset id assignments
5180
 
5181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5182
    static {
5183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5184
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5185
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5186
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5187
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5190
    }
5191
 
5192
    public getLogisticsEstimationForStore_result() {
5193
    }
5194
 
5195
    public getLogisticsEstimationForStore_result(
5196
      LogisticsInfo success,
5197
      LogisticsServiceException se)
5198
    {
5199
      this();
5200
      this.success = success;
5201
      this.se = se;
5202
    }
5203
 
5204
    /**
5205
     * Performs a deep copy on <i>other</i>.
5206
     */
5207
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5208
      if (other.isSetSuccess()) {
5209
        this.success = new LogisticsInfo(other.success);
5210
      }
5211
      if (other.isSetSe()) {
5212
        this.se = new LogisticsServiceException(other.se);
5213
      }
5214
    }
5215
 
5216
    public getLogisticsEstimationForStore_result deepCopy() {
5217
      return new getLogisticsEstimationForStore_result(this);
5218
    }
5219
 
5220
    @Override
5221
    public void clear() {
5222
      this.success = null;
5223
      this.se = null;
5224
    }
5225
 
5226
    public LogisticsInfo getSuccess() {
5227
      return this.success;
5228
    }
5229
 
5230
    public void setSuccess(LogisticsInfo success) {
5231
      this.success = success;
5232
    }
5233
 
5234
    public void unsetSuccess() {
5235
      this.success = null;
5236
    }
5237
 
5238
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5239
    public boolean isSetSuccess() {
5240
      return this.success != null;
5241
    }
5242
 
5243
    public void setSuccessIsSet(boolean value) {
5244
      if (!value) {
5245
        this.success = null;
5246
      }
5247
    }
5248
 
5249
    public LogisticsServiceException getSe() {
5250
      return this.se;
5251
    }
5252
 
5253
    public void setSe(LogisticsServiceException se) {
5254
      this.se = se;
5255
    }
5256
 
5257
    public void unsetSe() {
5258
      this.se = null;
5259
    }
5260
 
5261
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5262
    public boolean isSetSe() {
5263
      return this.se != null;
5264
    }
5265
 
5266
    public void setSeIsSet(boolean value) {
5267
      if (!value) {
5268
        this.se = null;
5269
      }
5270
    }
5271
 
5272
    public void setFieldValue(_Fields field, Object value) {
5273
      switch (field) {
5274
      case SUCCESS:
5275
        if (value == null) {
5276
          unsetSuccess();
5277
        } else {
5278
          setSuccess((LogisticsInfo)value);
5279
        }
5280
        break;
5281
 
5282
      case SE:
5283
        if (value == null) {
5284
          unsetSe();
5285
        } else {
5286
          setSe((LogisticsServiceException)value);
5287
        }
5288
        break;
5289
 
5290
      }
5291
    }
5292
 
5293
    public Object getFieldValue(_Fields field) {
5294
      switch (field) {
5295
      case SUCCESS:
5296
        return getSuccess();
5297
 
5298
      case SE:
5299
        return getSe();
5300
 
5301
      }
5302
      throw new IllegalStateException();
5303
    }
5304
 
5305
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5306
    public boolean isSet(_Fields field) {
5307
      if (field == null) {
5308
        throw new IllegalArgumentException();
5309
      }
5310
 
5311
      switch (field) {
5312
      case SUCCESS:
5313
        return isSetSuccess();
5314
      case SE:
5315
        return isSetSe();
5316
      }
5317
      throw new IllegalStateException();
5318
    }
5319
 
5320
    @Override
5321
    public boolean equals(Object that) {
5322
      if (that == null)
5323
        return false;
5324
      if (that instanceof getLogisticsEstimationForStore_result)
5325
        return this.equals((getLogisticsEstimationForStore_result)that);
5326
      return false;
5327
    }
5328
 
5329
    public boolean equals(getLogisticsEstimationForStore_result that) {
5330
      if (that == null)
5331
        return false;
5332
 
5333
      boolean this_present_success = true && this.isSetSuccess();
5334
      boolean that_present_success = true && that.isSetSuccess();
5335
      if (this_present_success || that_present_success) {
5336
        if (!(this_present_success && that_present_success))
5337
          return false;
5338
        if (!this.success.equals(that.success))
5339
          return false;
5340
      }
5341
 
5342
      boolean this_present_se = true && this.isSetSe();
5343
      boolean that_present_se = true && that.isSetSe();
5344
      if (this_present_se || that_present_se) {
5345
        if (!(this_present_se && that_present_se))
5346
          return false;
5347
        if (!this.se.equals(that.se))
5348
          return false;
5349
      }
5350
 
5351
      return true;
5352
    }
5353
 
5354
    @Override
5355
    public int hashCode() {
5356
      return 0;
5357
    }
5358
 
5359
    public int compareTo(getLogisticsEstimationForStore_result other) {
5360
      if (!getClass().equals(other.getClass())) {
5361
        return getClass().getName().compareTo(other.getClass().getName());
5362
      }
5363
 
5364
      int lastComparison = 0;
5365
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5366
 
5367
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5368
      if (lastComparison != 0) {
5369
        return lastComparison;
5370
      }
5371
      if (isSetSuccess()) {
5372
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5373
        if (lastComparison != 0) {
5374
          return lastComparison;
5375
        }
5376
      }
5377
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5378
      if (lastComparison != 0) {
5379
        return lastComparison;
5380
      }
5381
      if (isSetSe()) {
5382
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5383
        if (lastComparison != 0) {
5384
          return lastComparison;
5385
        }
5386
      }
5387
      return 0;
5388
    }
5389
 
5390
    public _Fields fieldForId(int fieldId) {
5391
      return _Fields.findByThriftId(fieldId);
5392
    }
5393
 
5394
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5395
      org.apache.thrift.protocol.TField field;
5396
      iprot.readStructBegin();
5397
      while (true)
5398
      {
5399
        field = iprot.readFieldBegin();
5400
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5401
          break;
5402
        }
5403
        switch (field.id) {
5404
          case 0: // SUCCESS
5405
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5406
              this.success = new LogisticsInfo();
5407
              this.success.read(iprot);
5408
            } else { 
5409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5410
            }
5411
            break;
5412
          case 1: // SE
5413
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5414
              this.se = new LogisticsServiceException();
5415
              this.se.read(iprot);
5416
            } else { 
5417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5418
            }
5419
            break;
5420
          default:
5421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5422
        }
5423
        iprot.readFieldEnd();
5424
      }
5425
      iprot.readStructEnd();
5426
      validate();
5427
    }
5428
 
5429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5430
      oprot.writeStructBegin(STRUCT_DESC);
5431
 
5432
      if (this.isSetSuccess()) {
5433
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5434
        this.success.write(oprot);
5435
        oprot.writeFieldEnd();
5436
      } else if (this.isSetSe()) {
5437
        oprot.writeFieldBegin(SE_FIELD_DESC);
5438
        this.se.write(oprot);
5439
        oprot.writeFieldEnd();
5440
      }
5441
      oprot.writeFieldStop();
5442
      oprot.writeStructEnd();
5443
    }
5444
 
5445
    @Override
5446
    public String toString() {
5447
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5448
      boolean first = true;
5449
 
5450
      sb.append("success:");
5451
      if (this.success == null) {
5452
        sb.append("null");
5453
      } else {
5454
        sb.append(this.success);
5455
      }
5456
      first = false;
5457
      if (!first) sb.append(", ");
5458
      sb.append("se:");
5459
      if (this.se == null) {
5460
        sb.append("null");
5461
      } else {
5462
        sb.append(this.se);
5463
      }
5464
      first = false;
5465
      sb.append(")");
5466
      return sb.toString();
5467
    }
5468
 
5469
    public void validate() throws org.apache.thrift.TException {
5470
      // check for required fields
5471
    }
5472
 
5473
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5474
      try {
5475
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5476
      } catch (org.apache.thrift.TException te) {
5477
        throw new java.io.IOException(te);
5478
      }
5479
    }
5480
 
5481
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5482
      try {
5483
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5484
      } catch (org.apache.thrift.TException te) {
5485
        throw new java.io.IOException(te);
5486
      }
5487
    }
5488
 
5489
  }
5490
 
3430 rajveer 5491
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5492
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5493
 
3430 rajveer 5494
    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);
5495
    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);
5496
    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 5497
    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 5498
 
3430 rajveer 5499
    private String destination_pincode; // required
5500
    private long item_id; // required
5501
    private DeliveryType type; // required
5766 rajveer 5502
    private PickUpType pickUp; // required
471 rajveer 5503
 
5504
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5505
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5506
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5507
      ITEM_ID((short)2, "item_id"),
5508
      /**
5509
       * 
5510
       * @see DeliveryType
5511
       */
5766 rajveer 5512
      TYPE((short)3, "type"),
5513
      /**
5514
       * 
5515
       * @see PickUpType
5516
       */
5517
      PICK_UP((short)4, "pickUp");
471 rajveer 5518
 
5519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5520
 
5521
      static {
5522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5523
          byName.put(field.getFieldName(), field);
5524
        }
5525
      }
5526
 
5527
      /**
5528
       * Find the _Fields constant that matches fieldId, or null if its not found.
5529
       */
5530
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5531
        switch(fieldId) {
5532
          case 1: // DESTINATION_PINCODE
5533
            return DESTINATION_PINCODE;
5534
          case 2: // ITEM_ID
5535
            return ITEM_ID;
5536
          case 3: // TYPE
5537
            return TYPE;
5766 rajveer 5538
          case 4: // PICK_UP
5539
            return PICK_UP;
3430 rajveer 5540
          default:
5541
            return null;
5542
        }
471 rajveer 5543
      }
5544
 
5545
      /**
5546
       * Find the _Fields constant that matches fieldId, throwing an exception
5547
       * if it is not found.
5548
       */
5549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5550
        _Fields fields = findByThriftId(fieldId);
5551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5552
        return fields;
5553
      }
5554
 
5555
      /**
5556
       * Find the _Fields constant that matches name, or null if its not found.
5557
       */
5558
      public static _Fields findByName(String name) {
5559
        return byName.get(name);
5560
      }
5561
 
5562
      private final short _thriftId;
5563
      private final String _fieldName;
5564
 
5565
      _Fields(short thriftId, String fieldName) {
5566
        _thriftId = thriftId;
5567
        _fieldName = fieldName;
5568
      }
5569
 
5570
      public short getThriftFieldId() {
5571
        return _thriftId;
5572
      }
5573
 
5574
      public String getFieldName() {
5575
        return _fieldName;
5576
      }
5577
    }
5578
 
5579
    // isset id assignments
715 rajveer 5580
    private static final int __ITEM_ID_ISSET_ID = 0;
5581
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5582
 
3430 rajveer 5583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5584
    static {
3430 rajveer 5585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5586
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5588
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5590
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5591
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5592
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5593
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5596
    }
5597
 
648 chandransh 5598
    public getLogisticsInfo_args() {
477 rajveer 5599
    }
5600
 
648 chandransh 5601
    public getLogisticsInfo_args(
5602
      String destination_pincode,
3044 chandransh 5603
      long item_id,
5766 rajveer 5604
      DeliveryType type,
5605
      PickUpType pickUp)
477 rajveer 5606
    {
5607
      this();
648 chandransh 5608
      this.destination_pincode = destination_pincode;
5609
      this.item_id = item_id;
715 rajveer 5610
      setItem_idIsSet(true);
3044 chandransh 5611
      this.type = type;
5766 rajveer 5612
      this.pickUp = pickUp;
477 rajveer 5613
    }
5614
 
5615
    /**
5616
     * Performs a deep copy on <i>other</i>.
5617
     */
648 chandransh 5618
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5619
      __isset_bit_vector.clear();
5620
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5621
      if (other.isSetDestination_pincode()) {
5622
        this.destination_pincode = other.destination_pincode;
477 rajveer 5623
      }
715 rajveer 5624
      this.item_id = other.item_id;
3044 chandransh 5625
      if (other.isSetType()) {
5626
        this.type = other.type;
5627
      }
5766 rajveer 5628
      if (other.isSetPickUp()) {
5629
        this.pickUp = other.pickUp;
5630
      }
477 rajveer 5631
    }
5632
 
648 chandransh 5633
    public getLogisticsInfo_args deepCopy() {
5634
      return new getLogisticsInfo_args(this);
477 rajveer 5635
    }
5636
 
3430 rajveer 5637
    @Override
5638
    public void clear() {
5639
      this.destination_pincode = null;
5640
      setItem_idIsSet(false);
5641
      this.item_id = 0;
5642
      this.type = null;
5766 rajveer 5643
      this.pickUp = null;
477 rajveer 5644
    }
5645
 
648 chandransh 5646
    public String getDestination_pincode() {
5647
      return this.destination_pincode;
477 rajveer 5648
    }
5649
 
3430 rajveer 5650
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5651
      this.destination_pincode = destination_pincode;
477 rajveer 5652
    }
5653
 
648 chandransh 5654
    public void unsetDestination_pincode() {
5655
      this.destination_pincode = null;
477 rajveer 5656
    }
5657
 
3430 rajveer 5658
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5659
    public boolean isSetDestination_pincode() {
5660
      return this.destination_pincode != null;
477 rajveer 5661
    }
5662
 
648 chandransh 5663
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5664
      if (!value) {
648 chandransh 5665
        this.destination_pincode = null;
477 rajveer 5666
      }
5667
    }
5668
 
715 rajveer 5669
    public long getItem_id() {
648 chandransh 5670
      return this.item_id;
477 rajveer 5671
    }
5672
 
3430 rajveer 5673
    public void setItem_id(long item_id) {
648 chandransh 5674
      this.item_id = item_id;
715 rajveer 5675
      setItem_idIsSet(true);
477 rajveer 5676
    }
5677
 
648 chandransh 5678
    public void unsetItem_id() {
715 rajveer 5679
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5680
    }
5681
 
3430 rajveer 5682
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5683
    public boolean isSetItem_id() {
715 rajveer 5684
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5685
    }
5686
 
648 chandransh 5687
    public void setItem_idIsSet(boolean value) {
715 rajveer 5688
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5689
    }
5690
 
3044 chandransh 5691
    /**
5692
     * 
5693
     * @see DeliveryType
5694
     */
5695
    public DeliveryType getType() {
5696
      return this.type;
5697
    }
5698
 
5699
    /**
5700
     * 
5701
     * @see DeliveryType
5702
     */
3430 rajveer 5703
    public void setType(DeliveryType type) {
3044 chandransh 5704
      this.type = type;
5705
    }
5706
 
5707
    public void unsetType() {
5708
      this.type = null;
5709
    }
5710
 
3430 rajveer 5711
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5712
    public boolean isSetType() {
5713
      return this.type != null;
5714
    }
5715
 
5716
    public void setTypeIsSet(boolean value) {
5717
      if (!value) {
5718
        this.type = null;
5719
      }
5720
    }
5721
 
5766 rajveer 5722
    /**
5723
     * 
5724
     * @see PickUpType
5725
     */
5726
    public PickUpType getPickUp() {
5727
      return this.pickUp;
5728
    }
5729
 
5730
    /**
5731
     * 
5732
     * @see PickUpType
5733
     */
5734
    public void setPickUp(PickUpType pickUp) {
5735
      this.pickUp = pickUp;
5736
    }
5737
 
5738
    public void unsetPickUp() {
5739
      this.pickUp = null;
5740
    }
5741
 
5742
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5743
    public boolean isSetPickUp() {
5744
      return this.pickUp != null;
5745
    }
5746
 
5747
    public void setPickUpIsSet(boolean value) {
5748
      if (!value) {
5749
        this.pickUp = null;
5750
      }
5751
    }
5752
 
477 rajveer 5753
    public void setFieldValue(_Fields field, Object value) {
5754
      switch (field) {
648 chandransh 5755
      case DESTINATION_PINCODE:
477 rajveer 5756
        if (value == null) {
648 chandransh 5757
          unsetDestination_pincode();
477 rajveer 5758
        } else {
648 chandransh 5759
          setDestination_pincode((String)value);
477 rajveer 5760
        }
5761
        break;
5762
 
648 chandransh 5763
      case ITEM_ID:
477 rajveer 5764
        if (value == null) {
648 chandransh 5765
          unsetItem_id();
477 rajveer 5766
        } else {
715 rajveer 5767
          setItem_id((Long)value);
477 rajveer 5768
        }
5769
        break;
5770
 
3044 chandransh 5771
      case TYPE:
5772
        if (value == null) {
5773
          unsetType();
5774
        } else {
5775
          setType((DeliveryType)value);
5776
        }
5777
        break;
5778
 
5766 rajveer 5779
      case PICK_UP:
5780
        if (value == null) {
5781
          unsetPickUp();
5782
        } else {
5783
          setPickUp((PickUpType)value);
5784
        }
5785
        break;
5786
 
477 rajveer 5787
      }
5788
    }
5789
 
5790
    public Object getFieldValue(_Fields field) {
5791
      switch (field) {
648 chandransh 5792
      case DESTINATION_PINCODE:
5793
        return getDestination_pincode();
477 rajveer 5794
 
648 chandransh 5795
      case ITEM_ID:
3430 rajveer 5796
        return Long.valueOf(getItem_id());
477 rajveer 5797
 
3044 chandransh 5798
      case TYPE:
5799
        return getType();
5800
 
5766 rajveer 5801
      case PICK_UP:
5802
        return getPickUp();
5803
 
477 rajveer 5804
      }
5805
      throw new IllegalStateException();
5806
    }
5807
 
3430 rajveer 5808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5809
    public boolean isSet(_Fields field) {
5810
      if (field == null) {
5811
        throw new IllegalArgumentException();
5812
      }
477 rajveer 5813
 
5814
      switch (field) {
648 chandransh 5815
      case DESTINATION_PINCODE:
5816
        return isSetDestination_pincode();
5817
      case ITEM_ID:
5818
        return isSetItem_id();
3044 chandransh 5819
      case TYPE:
5820
        return isSetType();
5766 rajveer 5821
      case PICK_UP:
5822
        return isSetPickUp();
477 rajveer 5823
      }
5824
      throw new IllegalStateException();
5825
    }
5826
 
5827
    @Override
5828
    public boolean equals(Object that) {
5829
      if (that == null)
5830
        return false;
648 chandransh 5831
      if (that instanceof getLogisticsInfo_args)
5832
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5833
      return false;
5834
    }
5835
 
648 chandransh 5836
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5837
      if (that == null)
5838
        return false;
5839
 
648 chandransh 5840
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5841
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5842
      if (this_present_destination_pincode || that_present_destination_pincode) {
5843
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5844
          return false;
648 chandransh 5845
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5846
          return false;
5847
      }
5848
 
715 rajveer 5849
      boolean this_present_item_id = true;
5850
      boolean that_present_item_id = true;
648 chandransh 5851
      if (this_present_item_id || that_present_item_id) {
5852
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5853
          return false;
715 rajveer 5854
        if (this.item_id != that.item_id)
477 rajveer 5855
          return false;
5856
      }
5857
 
3044 chandransh 5858
      boolean this_present_type = true && this.isSetType();
5859
      boolean that_present_type = true && that.isSetType();
5860
      if (this_present_type || that_present_type) {
5861
        if (!(this_present_type && that_present_type))
5862
          return false;
5863
        if (!this.type.equals(that.type))
5864
          return false;
5865
      }
5866
 
5766 rajveer 5867
      boolean this_present_pickUp = true && this.isSetPickUp();
5868
      boolean that_present_pickUp = true && that.isSetPickUp();
5869
      if (this_present_pickUp || that_present_pickUp) {
5870
        if (!(this_present_pickUp && that_present_pickUp))
5871
          return false;
5872
        if (!this.pickUp.equals(that.pickUp))
5873
          return false;
5874
      }
5875
 
477 rajveer 5876
      return true;
5877
    }
5878
 
5879
    @Override
5880
    public int hashCode() {
5881
      return 0;
5882
    }
5883
 
648 chandransh 5884
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5885
      if (!getClass().equals(other.getClass())) {
5886
        return getClass().getName().compareTo(other.getClass().getName());
5887
      }
5888
 
5889
      int lastComparison = 0;
648 chandransh 5890
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5891
 
3430 rajveer 5892
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5893
      if (lastComparison != 0) {
5894
        return lastComparison;
5895
      }
3430 rajveer 5896
      if (isSetDestination_pincode()) {
5897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5898
        if (lastComparison != 0) {
5899
          return lastComparison;
5900
        }
477 rajveer 5901
      }
3430 rajveer 5902
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5903
      if (lastComparison != 0) {
5904
        return lastComparison;
5905
      }
3430 rajveer 5906
      if (isSetItem_id()) {
5907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5908
        if (lastComparison != 0) {
5909
          return lastComparison;
5910
        }
477 rajveer 5911
      }
3430 rajveer 5912
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5913
      if (lastComparison != 0) {
5914
        return lastComparison;
5915
      }
3430 rajveer 5916
      if (isSetType()) {
5917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5918
        if (lastComparison != 0) {
5919
          return lastComparison;
5920
        }
3044 chandransh 5921
      }
5766 rajveer 5922
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5923
      if (lastComparison != 0) {
5924
        return lastComparison;
5925
      }
5926
      if (isSetPickUp()) {
5927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5928
        if (lastComparison != 0) {
5929
          return lastComparison;
5930
        }
5931
      }
477 rajveer 5932
      return 0;
5933
    }
5934
 
3430 rajveer 5935
    public _Fields fieldForId(int fieldId) {
5936
      return _Fields.findByThriftId(fieldId);
5937
    }
5938
 
5939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5940
      org.apache.thrift.protocol.TField field;
477 rajveer 5941
      iprot.readStructBegin();
5942
      while (true)
5943
      {
5944
        field = iprot.readFieldBegin();
3430 rajveer 5945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5946
          break;
5947
        }
3430 rajveer 5948
        switch (field.id) {
5949
          case 1: // DESTINATION_PINCODE
5950
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5951
              this.destination_pincode = iprot.readString();
5952
            } else { 
5953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5954
            }
5955
            break;
5956
          case 2: // ITEM_ID
5957
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5958
              this.item_id = iprot.readI64();
5959
              setItem_idIsSet(true);
5960
            } else { 
5961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5962
            }
5963
            break;
5964
          case 3: // TYPE
5965
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5966
              this.type = DeliveryType.findByValue(iprot.readI32());
5967
            } else { 
5968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5969
            }
5970
            break;
5766 rajveer 5971
          case 4: // PICK_UP
5972
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5973
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5974
            } else { 
5975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5976
            }
5977
            break;
3430 rajveer 5978
          default:
5979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5980
        }
3430 rajveer 5981
        iprot.readFieldEnd();
477 rajveer 5982
      }
5983
      iprot.readStructEnd();
5984
      validate();
5985
    }
5986
 
3430 rajveer 5987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5988
      validate();
5989
 
5990
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5991
      if (this.destination_pincode != null) {
5992
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5993
        oprot.writeString(this.destination_pincode);
477 rajveer 5994
        oprot.writeFieldEnd();
5995
      }
715 rajveer 5996
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5997
      oprot.writeI64(this.item_id);
5998
      oprot.writeFieldEnd();
3044 chandransh 5999
      if (this.type != null) {
6000
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6001
        oprot.writeI32(this.type.getValue());
6002
        oprot.writeFieldEnd();
6003
      }
5766 rajveer 6004
      if (this.pickUp != null) {
6005
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
6006
        oprot.writeI32(this.pickUp.getValue());
6007
        oprot.writeFieldEnd();
6008
      }
477 rajveer 6009
      oprot.writeFieldStop();
6010
      oprot.writeStructEnd();
6011
    }
6012
 
6013
    @Override
6014
    public String toString() {
648 chandransh 6015
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 6016
      boolean first = true;
6017
 
648 chandransh 6018
      sb.append("destination_pincode:");
6019
      if (this.destination_pincode == null) {
477 rajveer 6020
        sb.append("null");
6021
      } else {
648 chandransh 6022
        sb.append(this.destination_pincode);
477 rajveer 6023
      }
6024
      first = false;
6025
      if (!first) sb.append(", ");
648 chandransh 6026
      sb.append("item_id:");
715 rajveer 6027
      sb.append(this.item_id);
477 rajveer 6028
      first = false;
3044 chandransh 6029
      if (!first) sb.append(", ");
6030
      sb.append("type:");
6031
      if (this.type == null) {
6032
        sb.append("null");
6033
      } else {
6034
        sb.append(this.type);
6035
      }
6036
      first = false;
5766 rajveer 6037
      if (!first) sb.append(", ");
6038
      sb.append("pickUp:");
6039
      if (this.pickUp == null) {
6040
        sb.append("null");
6041
      } else {
6042
        sb.append(this.pickUp);
6043
      }
6044
      first = false;
477 rajveer 6045
      sb.append(")");
6046
      return sb.toString();
6047
    }
6048
 
3430 rajveer 6049
    public void validate() throws org.apache.thrift.TException {
477 rajveer 6050
      // check for required fields
6051
    }
6052
 
3430 rajveer 6053
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6054
      try {
6055
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6056
      } catch (org.apache.thrift.TException te) {
6057
        throw new java.io.IOException(te);
6058
      }
6059
    }
6060
 
6061
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6062
      try {
6063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6064
      } catch (org.apache.thrift.TException te) {
6065
        throw new java.io.IOException(te);
6066
      }
6067
    }
6068
 
477 rajveer 6069
  }
6070
 
3430 rajveer 6071
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
6072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 6073
 
3430 rajveer 6074
    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);
6075
    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 6076
 
3430 rajveer 6077
    private LogisticsInfo success; // required
6078
    private LogisticsServiceException se; // required
477 rajveer 6079
 
6080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6081
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6082
      SUCCESS((short)0, "success"),
6083
      SE((short)1, "se");
477 rajveer 6084
 
6085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6086
 
6087
      static {
6088
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6089
          byName.put(field.getFieldName(), field);
6090
        }
6091
      }
6092
 
6093
      /**
6094
       * Find the _Fields constant that matches fieldId, or null if its not found.
6095
       */
6096
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6097
        switch(fieldId) {
6098
          case 0: // SUCCESS
6099
            return SUCCESS;
6100
          case 1: // SE
6101
            return SE;
6102
          default:
6103
            return null;
6104
        }
477 rajveer 6105
      }
6106
 
6107
      /**
6108
       * Find the _Fields constant that matches fieldId, throwing an exception
6109
       * if it is not found.
6110
       */
6111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6112
        _Fields fields = findByThriftId(fieldId);
6113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6114
        return fields;
6115
      }
6116
 
6117
      /**
6118
       * Find the _Fields constant that matches name, or null if its not found.
6119
       */
6120
      public static _Fields findByName(String name) {
6121
        return byName.get(name);
6122
      }
6123
 
6124
      private final short _thriftId;
6125
      private final String _fieldName;
6126
 
6127
      _Fields(short thriftId, String fieldName) {
6128
        _thriftId = thriftId;
6129
        _fieldName = fieldName;
6130
      }
6131
 
6132
      public short getThriftFieldId() {
6133
        return _thriftId;
6134
      }
6135
 
6136
      public String getFieldName() {
6137
        return _fieldName;
6138
      }
6139
    }
6140
 
412 ashish 6141
    // isset id assignments
6142
 
3430 rajveer 6143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6144
    static {
3430 rajveer 6145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6146
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6147
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6148
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6149
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6150
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6151
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6152
    }
6153
 
648 chandransh 6154
    public getLogisticsInfo_result() {
412 ashish 6155
    }
6156
 
648 chandransh 6157
    public getLogisticsInfo_result(
6158
      LogisticsInfo success,
6159
      LogisticsServiceException se)
412 ashish 6160
    {
6161
      this();
648 chandransh 6162
      this.success = success;
6163
      this.se = se;
412 ashish 6164
    }
6165
 
6166
    /**
6167
     * Performs a deep copy on <i>other</i>.
6168
     */
648 chandransh 6169
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6170
      if (other.isSetSuccess()) {
6171
        this.success = new LogisticsInfo(other.success);
412 ashish 6172
      }
648 chandransh 6173
      if (other.isSetSe()) {
6174
        this.se = new LogisticsServiceException(other.se);
6175
      }
412 ashish 6176
    }
6177
 
648 chandransh 6178
    public getLogisticsInfo_result deepCopy() {
6179
      return new getLogisticsInfo_result(this);
412 ashish 6180
    }
6181
 
3430 rajveer 6182
    @Override
6183
    public void clear() {
6184
      this.success = null;
6185
      this.se = null;
412 ashish 6186
    }
6187
 
648 chandransh 6188
    public LogisticsInfo getSuccess() {
6189
      return this.success;
412 ashish 6190
    }
6191
 
3430 rajveer 6192
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6193
      this.success = success;
412 ashish 6194
    }
6195
 
648 chandransh 6196
    public void unsetSuccess() {
6197
      this.success = null;
412 ashish 6198
    }
6199
 
3430 rajveer 6200
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6201
    public boolean isSetSuccess() {
6202
      return this.success != null;
412 ashish 6203
    }
6204
 
648 chandransh 6205
    public void setSuccessIsSet(boolean value) {
412 ashish 6206
      if (!value) {
648 chandransh 6207
        this.success = null;
412 ashish 6208
      }
6209
    }
6210
 
648 chandransh 6211
    public LogisticsServiceException getSe() {
6212
      return this.se;
412 ashish 6213
    }
6214
 
3430 rajveer 6215
    public void setSe(LogisticsServiceException se) {
648 chandransh 6216
      this.se = se;
412 ashish 6217
    }
6218
 
648 chandransh 6219
    public void unsetSe() {
6220
      this.se = null;
412 ashish 6221
    }
6222
 
3430 rajveer 6223
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6224
    public boolean isSetSe() {
6225
      return this.se != null;
412 ashish 6226
    }
6227
 
648 chandransh 6228
    public void setSeIsSet(boolean value) {
6229
      if (!value) {
6230
        this.se = null;
6231
      }
412 ashish 6232
    }
6233
 
6234
    public void setFieldValue(_Fields field, Object value) {
6235
      switch (field) {
648 chandransh 6236
      case SUCCESS:
412 ashish 6237
        if (value == null) {
648 chandransh 6238
          unsetSuccess();
412 ashish 6239
        } else {
648 chandransh 6240
          setSuccess((LogisticsInfo)value);
412 ashish 6241
        }
6242
        break;
6243
 
648 chandransh 6244
      case SE:
412 ashish 6245
        if (value == null) {
648 chandransh 6246
          unsetSe();
412 ashish 6247
        } else {
648 chandransh 6248
          setSe((LogisticsServiceException)value);
412 ashish 6249
        }
6250
        break;
6251
 
6252
      }
6253
    }
6254
 
6255
    public Object getFieldValue(_Fields field) {
6256
      switch (field) {
648 chandransh 6257
      case SUCCESS:
6258
        return getSuccess();
412 ashish 6259
 
648 chandransh 6260
      case SE:
6261
        return getSe();
412 ashish 6262
 
6263
      }
6264
      throw new IllegalStateException();
6265
    }
6266
 
3430 rajveer 6267
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6268
    public boolean isSet(_Fields field) {
6269
      if (field == null) {
6270
        throw new IllegalArgumentException();
6271
      }
412 ashish 6272
 
6273
      switch (field) {
648 chandransh 6274
      case SUCCESS:
6275
        return isSetSuccess();
6276
      case SE:
6277
        return isSetSe();
412 ashish 6278
      }
6279
      throw new IllegalStateException();
6280
    }
6281
 
6282
    @Override
6283
    public boolean equals(Object that) {
6284
      if (that == null)
6285
        return false;
648 chandransh 6286
      if (that instanceof getLogisticsInfo_result)
6287
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6288
      return false;
6289
    }
6290
 
648 chandransh 6291
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6292
      if (that == null)
6293
        return false;
6294
 
648 chandransh 6295
      boolean this_present_success = true && this.isSetSuccess();
6296
      boolean that_present_success = true && that.isSetSuccess();
6297
      if (this_present_success || that_present_success) {
6298
        if (!(this_present_success && that_present_success))
412 ashish 6299
          return false;
648 chandransh 6300
        if (!this.success.equals(that.success))
412 ashish 6301
          return false;
6302
      }
6303
 
648 chandransh 6304
      boolean this_present_se = true && this.isSetSe();
6305
      boolean that_present_se = true && that.isSetSe();
6306
      if (this_present_se || that_present_se) {
6307
        if (!(this_present_se && that_present_se))
412 ashish 6308
          return false;
648 chandransh 6309
        if (!this.se.equals(that.se))
412 ashish 6310
          return false;
6311
      }
6312
 
6313
      return true;
6314
    }
6315
 
6316
    @Override
6317
    public int hashCode() {
6318
      return 0;
6319
    }
6320
 
648 chandransh 6321
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6322
      if (!getClass().equals(other.getClass())) {
6323
        return getClass().getName().compareTo(other.getClass().getName());
6324
      }
6325
 
6326
      int lastComparison = 0;
648 chandransh 6327
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6328
 
3430 rajveer 6329
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6330
      if (lastComparison != 0) {
6331
        return lastComparison;
6332
      }
3430 rajveer 6333
      if (isSetSuccess()) {
6334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6335
        if (lastComparison != 0) {
6336
          return lastComparison;
6337
        }
412 ashish 6338
      }
3430 rajveer 6339
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6340
      if (lastComparison != 0) {
6341
        return lastComparison;
6342
      }
3430 rajveer 6343
      if (isSetSe()) {
6344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6345
        if (lastComparison != 0) {
6346
          return lastComparison;
6347
        }
412 ashish 6348
      }
6349
      return 0;
6350
    }
6351
 
3430 rajveer 6352
    public _Fields fieldForId(int fieldId) {
6353
      return _Fields.findByThriftId(fieldId);
6354
    }
6355
 
6356
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6357
      org.apache.thrift.protocol.TField field;
412 ashish 6358
      iprot.readStructBegin();
6359
      while (true)
6360
      {
6361
        field = iprot.readFieldBegin();
3430 rajveer 6362
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6363
          break;
6364
        }
3430 rajveer 6365
        switch (field.id) {
6366
          case 0: // SUCCESS
6367
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6368
              this.success = new LogisticsInfo();
6369
              this.success.read(iprot);
6370
            } else { 
6371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6372
            }
6373
            break;
6374
          case 1: // SE
6375
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6376
              this.se = new LogisticsServiceException();
6377
              this.se.read(iprot);
6378
            } else { 
6379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6380
            }
6381
            break;
6382
          default:
6383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6384
        }
3430 rajveer 6385
        iprot.readFieldEnd();
412 ashish 6386
      }
6387
      iprot.readStructEnd();
6388
      validate();
6389
    }
6390
 
3430 rajveer 6391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6392
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6393
 
648 chandransh 6394
      if (this.isSetSuccess()) {
6395
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6396
        this.success.write(oprot);
412 ashish 6397
        oprot.writeFieldEnd();
648 chandransh 6398
      } else if (this.isSetSe()) {
6399
        oprot.writeFieldBegin(SE_FIELD_DESC);
6400
        this.se.write(oprot);
6401
        oprot.writeFieldEnd();
412 ashish 6402
      }
6403
      oprot.writeFieldStop();
6404
      oprot.writeStructEnd();
6405
    }
6406
 
6407
    @Override
6408
    public String toString() {
648 chandransh 6409
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6410
      boolean first = true;
6411
 
648 chandransh 6412
      sb.append("success:");
6413
      if (this.success == null) {
412 ashish 6414
        sb.append("null");
6415
      } else {
648 chandransh 6416
        sb.append(this.success);
412 ashish 6417
      }
6418
      first = false;
6419
      if (!first) sb.append(", ");
648 chandransh 6420
      sb.append("se:");
6421
      if (this.se == null) {
6422
        sb.append("null");
6423
      } else {
6424
        sb.append(this.se);
6425
      }
412 ashish 6426
      first = false;
6427
      sb.append(")");
6428
      return sb.toString();
6429
    }
6430
 
3430 rajveer 6431
    public void validate() throws org.apache.thrift.TException {
412 ashish 6432
      // check for required fields
6433
    }
6434
 
3430 rajveer 6435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6436
      try {
6437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6438
      } catch (org.apache.thrift.TException te) {
6439
        throw new java.io.IOException(te);
6440
      }
6441
    }
6442
 
6443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6444
      try {
6445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6446
      } catch (org.apache.thrift.TException te) {
6447
        throw new java.io.IOException(te);
6448
      }
6449
    }
6450
 
412 ashish 6451
  }
6452
 
3430 rajveer 6453
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6455
 
3430 rajveer 6456
    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 6457
    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 6458
 
3430 rajveer 6459
    private long providerId; // required
20724 kshitij.so 6460
    private String logisticsTransactionId; // required
412 ashish 6461
 
6462
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6463
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6464
      PROVIDER_ID((short)1, "providerId"),
20724 kshitij.so 6465
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
412 ashish 6466
 
6467
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6468
 
6469
      static {
6470
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6471
          byName.put(field.getFieldName(), field);
6472
        }
6473
      }
6474
 
6475
      /**
6476
       * Find the _Fields constant that matches fieldId, or null if its not found.
6477
       */
6478
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6479
        switch(fieldId) {
6480
          case 1: // PROVIDER_ID
6481
            return PROVIDER_ID;
20724 kshitij.so 6482
          case 2: // LOGISTICS_TRANSACTION_ID
6483
            return LOGISTICS_TRANSACTION_ID;
3430 rajveer 6484
          default:
6485
            return null;
6486
        }
412 ashish 6487
      }
6488
 
6489
      /**
6490
       * Find the _Fields constant that matches fieldId, throwing an exception
6491
       * if it is not found.
6492
       */
6493
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6494
        _Fields fields = findByThriftId(fieldId);
6495
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6496
        return fields;
6497
      }
6498
 
6499
      /**
6500
       * Find the _Fields constant that matches name, or null if its not found.
6501
       */
6502
      public static _Fields findByName(String name) {
6503
        return byName.get(name);
6504
      }
6505
 
6506
      private final short _thriftId;
6507
      private final String _fieldName;
6508
 
6509
      _Fields(short thriftId, String fieldName) {
6510
        _thriftId = thriftId;
6511
        _fieldName = fieldName;
6512
      }
6513
 
6514
      public short getThriftFieldId() {
6515
        return _thriftId;
6516
      }
6517
 
6518
      public String getFieldName() {
6519
        return _fieldName;
6520
      }
6521
    }
6522
 
6523
    // isset id assignments
648 chandransh 6524
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6525
    private BitSet __isset_bit_vector = new BitSet(1);
6526
 
3430 rajveer 6527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6528
    static {
3430 rajveer 6529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6530
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6531
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20724 kshitij.so 6532
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6536
    }
6537
 
6538
    public getEmptyAWB_args() {
6539
    }
6540
 
6541
    public getEmptyAWB_args(
5247 rajveer 6542
      long providerId,
20724 kshitij.so 6543
      String logisticsTransactionId)
412 ashish 6544
    {
6545
      this();
648 chandransh 6546
      this.providerId = providerId;
6547
      setProviderIdIsSet(true);
20724 kshitij.so 6548
      this.logisticsTransactionId = logisticsTransactionId;
412 ashish 6549
    }
6550
 
6551
    /**
6552
     * Performs a deep copy on <i>other</i>.
6553
     */
6554
    public getEmptyAWB_args(getEmptyAWB_args other) {
6555
      __isset_bit_vector.clear();
6556
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6557
      this.providerId = other.providerId;
20724 kshitij.so 6558
      if (other.isSetLogisticsTransactionId()) {
6559
        this.logisticsTransactionId = other.logisticsTransactionId;
5247 rajveer 6560
      }
412 ashish 6561
    }
6562
 
6563
    public getEmptyAWB_args deepCopy() {
6564
      return new getEmptyAWB_args(this);
6565
    }
6566
 
3430 rajveer 6567
    @Override
6568
    public void clear() {
6569
      setProviderIdIsSet(false);
6570
      this.providerId = 0;
20724 kshitij.so 6571
      this.logisticsTransactionId = null;
412 ashish 6572
    }
6573
 
648 chandransh 6574
    public long getProviderId() {
6575
      return this.providerId;
412 ashish 6576
    }
6577
 
3430 rajveer 6578
    public void setProviderId(long providerId) {
648 chandransh 6579
      this.providerId = providerId;
6580
      setProviderIdIsSet(true);
412 ashish 6581
    }
6582
 
648 chandransh 6583
    public void unsetProviderId() {
6584
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6585
    }
6586
 
3430 rajveer 6587
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6588
    public boolean isSetProviderId() {
6589
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6590
    }
6591
 
648 chandransh 6592
    public void setProviderIdIsSet(boolean value) {
6593
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6594
    }
6595
 
20724 kshitij.so 6596
    public String getLogisticsTransactionId() {
6597
      return this.logisticsTransactionId;
5247 rajveer 6598
    }
6599
 
20724 kshitij.so 6600
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6601
      this.logisticsTransactionId = logisticsTransactionId;
5247 rajveer 6602
    }
6603
 
20724 kshitij.so 6604
    public void unsetLogisticsTransactionId() {
6605
      this.logisticsTransactionId = null;
5247 rajveer 6606
    }
6607
 
20724 kshitij.so 6608
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6609
    public boolean isSetLogisticsTransactionId() {
6610
      return this.logisticsTransactionId != null;
5247 rajveer 6611
    }
6612
 
20724 kshitij.so 6613
    public void setLogisticsTransactionIdIsSet(boolean value) {
5247 rajveer 6614
      if (!value) {
20724 kshitij.so 6615
        this.logisticsTransactionId = null;
5247 rajveer 6616
      }
6617
    }
6618
 
412 ashish 6619
    public void setFieldValue(_Fields field, Object value) {
6620
      switch (field) {
6621
      case PROVIDER_ID:
6622
        if (value == null) {
648 chandransh 6623
          unsetProviderId();
412 ashish 6624
        } else {
648 chandransh 6625
          setProviderId((Long)value);
412 ashish 6626
        }
6627
        break;
6628
 
20724 kshitij.so 6629
      case LOGISTICS_TRANSACTION_ID:
5247 rajveer 6630
        if (value == null) {
20724 kshitij.so 6631
          unsetLogisticsTransactionId();
5247 rajveer 6632
        } else {
20724 kshitij.so 6633
          setLogisticsTransactionId((String)value);
5247 rajveer 6634
        }
6635
        break;
6636
 
412 ashish 6637
      }
6638
    }
6639
 
6640
    public Object getFieldValue(_Fields field) {
6641
      switch (field) {
6642
      case PROVIDER_ID:
3430 rajveer 6643
        return Long.valueOf(getProviderId());
412 ashish 6644
 
20724 kshitij.so 6645
      case LOGISTICS_TRANSACTION_ID:
6646
        return getLogisticsTransactionId();
5247 rajveer 6647
 
412 ashish 6648
      }
6649
      throw new IllegalStateException();
6650
    }
6651
 
3430 rajveer 6652
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6653
    public boolean isSet(_Fields field) {
6654
      if (field == null) {
6655
        throw new IllegalArgumentException();
6656
      }
412 ashish 6657
 
6658
      switch (field) {
6659
      case PROVIDER_ID:
648 chandransh 6660
        return isSetProviderId();
20724 kshitij.so 6661
      case LOGISTICS_TRANSACTION_ID:
6662
        return isSetLogisticsTransactionId();
412 ashish 6663
      }
6664
      throw new IllegalStateException();
6665
    }
6666
 
6667
    @Override
6668
    public boolean equals(Object that) {
6669
      if (that == null)
6670
        return false;
6671
      if (that instanceof getEmptyAWB_args)
6672
        return this.equals((getEmptyAWB_args)that);
6673
      return false;
6674
    }
6675
 
6676
    public boolean equals(getEmptyAWB_args that) {
6677
      if (that == null)
6678
        return false;
6679
 
648 chandransh 6680
      boolean this_present_providerId = true;
6681
      boolean that_present_providerId = true;
6682
      if (this_present_providerId || that_present_providerId) {
6683
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6684
          return false;
648 chandransh 6685
        if (this.providerId != that.providerId)
412 ashish 6686
          return false;
6687
      }
6688
 
20724 kshitij.so 6689
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6690
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6691
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6692
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
5247 rajveer 6693
          return false;
20724 kshitij.so 6694
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
5247 rajveer 6695
          return false;
6696
      }
6697
 
412 ashish 6698
      return true;
6699
    }
6700
 
6701
    @Override
6702
    public int hashCode() {
6703
      return 0;
6704
    }
6705
 
6706
    public int compareTo(getEmptyAWB_args other) {
6707
      if (!getClass().equals(other.getClass())) {
6708
        return getClass().getName().compareTo(other.getClass().getName());
6709
      }
6710
 
6711
      int lastComparison = 0;
6712
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6713
 
3430 rajveer 6714
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6715
      if (lastComparison != 0) {
6716
        return lastComparison;
6717
      }
3430 rajveer 6718
      if (isSetProviderId()) {
6719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6720
        if (lastComparison != 0) {
6721
          return lastComparison;
6722
        }
412 ashish 6723
      }
20724 kshitij.so 6724
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
5247 rajveer 6725
      if (lastComparison != 0) {
6726
        return lastComparison;
6727
      }
20724 kshitij.so 6728
      if (isSetLogisticsTransactionId()) {
6729
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
5247 rajveer 6730
        if (lastComparison != 0) {
6731
          return lastComparison;
6732
        }
6733
      }
412 ashish 6734
      return 0;
6735
    }
6736
 
3430 rajveer 6737
    public _Fields fieldForId(int fieldId) {
6738
      return _Fields.findByThriftId(fieldId);
6739
    }
6740
 
6741
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6742
      org.apache.thrift.protocol.TField field;
412 ashish 6743
      iprot.readStructBegin();
6744
      while (true)
6745
      {
6746
        field = iprot.readFieldBegin();
3430 rajveer 6747
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6748
          break;
6749
        }
3430 rajveer 6750
        switch (field.id) {
6751
          case 1: // PROVIDER_ID
6752
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6753
              this.providerId = iprot.readI64();
6754
              setProviderIdIsSet(true);
6755
            } else { 
6756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6757
            }
6758
            break;
20724 kshitij.so 6759
          case 2: // LOGISTICS_TRANSACTION_ID
6760
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6761
              this.logisticsTransactionId = iprot.readString();
5247 rajveer 6762
            } else { 
6763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6764
            }
6765
            break;
3430 rajveer 6766
          default:
6767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6768
        }
3430 rajveer 6769
        iprot.readFieldEnd();
412 ashish 6770
      }
6771
      iprot.readStructEnd();
6772
      validate();
6773
    }
6774
 
3430 rajveer 6775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6776
      validate();
6777
 
6778
      oprot.writeStructBegin(STRUCT_DESC);
6779
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6780
      oprot.writeI64(this.providerId);
412 ashish 6781
      oprot.writeFieldEnd();
20724 kshitij.so 6782
      if (this.logisticsTransactionId != null) {
6783
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
6784
        oprot.writeString(this.logisticsTransactionId);
6785
        oprot.writeFieldEnd();
6786
      }
412 ashish 6787
      oprot.writeFieldStop();
6788
      oprot.writeStructEnd();
6789
    }
6790
 
6791
    @Override
6792
    public String toString() {
6793
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6794
      boolean first = true;
6795
 
648 chandransh 6796
      sb.append("providerId:");
6797
      sb.append(this.providerId);
412 ashish 6798
      first = false;
5247 rajveer 6799
      if (!first) sb.append(", ");
20724 kshitij.so 6800
      sb.append("logisticsTransactionId:");
6801
      if (this.logisticsTransactionId == null) {
5247 rajveer 6802
        sb.append("null");
6803
      } else {
20724 kshitij.so 6804
        sb.append(this.logisticsTransactionId);
5247 rajveer 6805
      }
6806
      first = false;
412 ashish 6807
      sb.append(")");
6808
      return sb.toString();
6809
    }
6810
 
3430 rajveer 6811
    public void validate() throws org.apache.thrift.TException {
412 ashish 6812
      // check for required fields
6813
    }
6814
 
3430 rajveer 6815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6816
      try {
6817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6818
      } catch (org.apache.thrift.TException te) {
6819
        throw new java.io.IOException(te);
6820
      }
6821
    }
6822
 
6823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6824
      try {
6825
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6826
        __isset_bit_vector = new BitSet(1);
6827
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6828
      } catch (org.apache.thrift.TException te) {
6829
        throw new java.io.IOException(te);
6830
      }
6831
    }
6832
 
412 ashish 6833
  }
6834
 
3430 rajveer 6835
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6836
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6837
 
3430 rajveer 6838
    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);
6839
    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 6840
 
3430 rajveer 6841
    private String success; // required
6842
    private LogisticsServiceException se; // required
412 ashish 6843
 
6844
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6845
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6846
      SUCCESS((short)0, "success"),
6847
      SE((short)1, "se");
412 ashish 6848
 
6849
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6850
 
6851
      static {
6852
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6853
          byName.put(field.getFieldName(), field);
6854
        }
6855
      }
6856
 
6857
      /**
6858
       * Find the _Fields constant that matches fieldId, or null if its not found.
6859
       */
6860
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6861
        switch(fieldId) {
6862
          case 0: // SUCCESS
6863
            return SUCCESS;
6864
          case 1: // SE
6865
            return SE;
6866
          default:
6867
            return null;
6868
        }
412 ashish 6869
      }
6870
 
6871
      /**
6872
       * Find the _Fields constant that matches fieldId, throwing an exception
6873
       * if it is not found.
6874
       */
6875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6876
        _Fields fields = findByThriftId(fieldId);
6877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6878
        return fields;
6879
      }
6880
 
6881
      /**
6882
       * Find the _Fields constant that matches name, or null if its not found.
6883
       */
6884
      public static _Fields findByName(String name) {
6885
        return byName.get(name);
6886
      }
6887
 
6888
      private final short _thriftId;
6889
      private final String _fieldName;
6890
 
6891
      _Fields(short thriftId, String fieldName) {
6892
        _thriftId = thriftId;
6893
        _fieldName = fieldName;
6894
      }
6895
 
6896
      public short getThriftFieldId() {
6897
        return _thriftId;
6898
      }
6899
 
6900
      public String getFieldName() {
6901
        return _fieldName;
6902
      }
6903
    }
6904
 
6905
    // isset id assignments
6906
 
3430 rajveer 6907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6908
    static {
3430 rajveer 6909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6910
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6912
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6916
    }
6917
 
6918
    public getEmptyAWB_result() {
6919
    }
6920
 
6921
    public getEmptyAWB_result(
648 chandransh 6922
      String success,
6923
      LogisticsServiceException se)
412 ashish 6924
    {
6925
      this();
6926
      this.success = success;
648 chandransh 6927
      this.se = se;
412 ashish 6928
    }
6929
 
6930
    /**
6931
     * Performs a deep copy on <i>other</i>.
6932
     */
6933
    public getEmptyAWB_result(getEmptyAWB_result other) {
6934
      if (other.isSetSuccess()) {
6935
        this.success = other.success;
6936
      }
648 chandransh 6937
      if (other.isSetSe()) {
6938
        this.se = new LogisticsServiceException(other.se);
6939
      }
412 ashish 6940
    }
6941
 
6942
    public getEmptyAWB_result deepCopy() {
6943
      return new getEmptyAWB_result(this);
6944
    }
6945
 
3430 rajveer 6946
    @Override
6947
    public void clear() {
6948
      this.success = null;
6949
      this.se = null;
412 ashish 6950
    }
6951
 
6952
    public String getSuccess() {
6953
      return this.success;
6954
    }
6955
 
3430 rajveer 6956
    public void setSuccess(String success) {
412 ashish 6957
      this.success = success;
6958
    }
6959
 
6960
    public void unsetSuccess() {
6961
      this.success = null;
6962
    }
6963
 
3430 rajveer 6964
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6965
    public boolean isSetSuccess() {
6966
      return this.success != null;
6967
    }
6968
 
6969
    public void setSuccessIsSet(boolean value) {
6970
      if (!value) {
6971
        this.success = null;
6972
      }
6973
    }
6974
 
648 chandransh 6975
    public LogisticsServiceException getSe() {
6976
      return this.se;
412 ashish 6977
    }
6978
 
3430 rajveer 6979
    public void setSe(LogisticsServiceException se) {
648 chandransh 6980
      this.se = se;
412 ashish 6981
    }
6982
 
648 chandransh 6983
    public void unsetSe() {
6984
      this.se = null;
412 ashish 6985
    }
6986
 
3430 rajveer 6987
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6988
    public boolean isSetSe() {
6989
      return this.se != null;
412 ashish 6990
    }
6991
 
648 chandransh 6992
    public void setSeIsSet(boolean value) {
412 ashish 6993
      if (!value) {
648 chandransh 6994
        this.se = null;
412 ashish 6995
      }
6996
    }
6997
 
6998
    public void setFieldValue(_Fields field, Object value) {
6999
      switch (field) {
7000
      case SUCCESS:
7001
        if (value == null) {
7002
          unsetSuccess();
7003
        } else {
648 chandransh 7004
          setSuccess((String)value);
412 ashish 7005
        }
7006
        break;
7007
 
648 chandransh 7008
      case SE:
7009
        if (value == null) {
7010
          unsetSe();
7011
        } else {
7012
          setSe((LogisticsServiceException)value);
7013
        }
7014
        break;
7015
 
412 ashish 7016
      }
7017
    }
7018
 
7019
    public Object getFieldValue(_Fields field) {
7020
      switch (field) {
7021
      case SUCCESS:
7022
        return getSuccess();
7023
 
648 chandransh 7024
      case SE:
7025
        return getSe();
7026
 
412 ashish 7027
      }
7028
      throw new IllegalStateException();
7029
    }
7030
 
3430 rajveer 7031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7032
    public boolean isSet(_Fields field) {
7033
      if (field == null) {
7034
        throw new IllegalArgumentException();
7035
      }
412 ashish 7036
 
7037
      switch (field) {
7038
      case SUCCESS:
7039
        return isSetSuccess();
648 chandransh 7040
      case SE:
7041
        return isSetSe();
412 ashish 7042
      }
7043
      throw new IllegalStateException();
7044
    }
7045
 
7046
    @Override
7047
    public boolean equals(Object that) {
7048
      if (that == null)
7049
        return false;
648 chandransh 7050
      if (that instanceof getEmptyAWB_result)
7051
        return this.equals((getEmptyAWB_result)that);
412 ashish 7052
      return false;
7053
    }
7054
 
648 chandransh 7055
    public boolean equals(getEmptyAWB_result that) {
412 ashish 7056
      if (that == null)
7057
        return false;
7058
 
7059
      boolean this_present_success = true && this.isSetSuccess();
7060
      boolean that_present_success = true && that.isSetSuccess();
7061
      if (this_present_success || that_present_success) {
7062
        if (!(this_present_success && that_present_success))
7063
          return false;
7064
        if (!this.success.equals(that.success))
7065
          return false;
7066
      }
7067
 
648 chandransh 7068
      boolean this_present_se = true && this.isSetSe();
7069
      boolean that_present_se = true && that.isSetSe();
7070
      if (this_present_se || that_present_se) {
7071
        if (!(this_present_se && that_present_se))
7072
          return false;
7073
        if (!this.se.equals(that.se))
7074
          return false;
7075
      }
7076
 
412 ashish 7077
      return true;
7078
    }
7079
 
7080
    @Override
7081
    public int hashCode() {
7082
      return 0;
7083
    }
7084
 
648 chandransh 7085
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7086
      if (!getClass().equals(other.getClass())) {
7087
        return getClass().getName().compareTo(other.getClass().getName());
7088
      }
7089
 
7090
      int lastComparison = 0;
648 chandransh 7091
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7092
 
3430 rajveer 7093
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7094
      if (lastComparison != 0) {
7095
        return lastComparison;
7096
      }
3430 rajveer 7097
      if (isSetSuccess()) {
7098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7099
        if (lastComparison != 0) {
7100
          return lastComparison;
7101
        }
412 ashish 7102
      }
3430 rajveer 7103
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7104
      if (lastComparison != 0) {
7105
        return lastComparison;
7106
      }
3430 rajveer 7107
      if (isSetSe()) {
7108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7109
        if (lastComparison != 0) {
7110
          return lastComparison;
7111
        }
412 ashish 7112
      }
7113
      return 0;
7114
    }
7115
 
3430 rajveer 7116
    public _Fields fieldForId(int fieldId) {
7117
      return _Fields.findByThriftId(fieldId);
7118
    }
7119
 
7120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7121
      org.apache.thrift.protocol.TField field;
412 ashish 7122
      iprot.readStructBegin();
7123
      while (true)
7124
      {
7125
        field = iprot.readFieldBegin();
3430 rajveer 7126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7127
          break;
7128
        }
3430 rajveer 7129
        switch (field.id) {
7130
          case 0: // SUCCESS
7131
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7132
              this.success = iprot.readString();
7133
            } else { 
7134
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7135
            }
7136
            break;
7137
          case 1: // SE
7138
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7139
              this.se = new LogisticsServiceException();
7140
              this.se.read(iprot);
7141
            } else { 
7142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7143
            }
7144
            break;
7145
          default:
7146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7147
        }
3430 rajveer 7148
        iprot.readFieldEnd();
412 ashish 7149
      }
7150
      iprot.readStructEnd();
7151
      validate();
7152
    }
7153
 
3430 rajveer 7154
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7155
      oprot.writeStructBegin(STRUCT_DESC);
7156
 
7157
      if (this.isSetSuccess()) {
7158
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7159
        oprot.writeString(this.success);
412 ashish 7160
        oprot.writeFieldEnd();
648 chandransh 7161
      } else if (this.isSetSe()) {
7162
        oprot.writeFieldBegin(SE_FIELD_DESC);
7163
        this.se.write(oprot);
7164
        oprot.writeFieldEnd();
412 ashish 7165
      }
7166
      oprot.writeFieldStop();
7167
      oprot.writeStructEnd();
7168
    }
7169
 
7170
    @Override
7171
    public String toString() {
648 chandransh 7172
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7173
      boolean first = true;
7174
 
7175
      sb.append("success:");
7176
      if (this.success == null) {
7177
        sb.append("null");
7178
      } else {
7179
        sb.append(this.success);
7180
      }
7181
      first = false;
648 chandransh 7182
      if (!first) sb.append(", ");
7183
      sb.append("se:");
7184
      if (this.se == null) {
442 rajveer 7185
        sb.append("null");
7186
      } else {
648 chandransh 7187
        sb.append(this.se);
442 rajveer 7188
      }
7189
      first = false;
7190
      sb.append(")");
7191
      return sb.toString();
7192
    }
7193
 
3430 rajveer 7194
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7195
      // check for required fields
7196
    }
7197
 
3430 rajveer 7198
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7199
      try {
7200
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7201
      } catch (org.apache.thrift.TException te) {
7202
        throw new java.io.IOException(te);
7203
      }
7204
    }
7205
 
7206
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7207
      try {
7208
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7209
      } catch (org.apache.thrift.TException te) {
7210
        throw new java.io.IOException(te);
7211
      }
7212
    }
7213
 
442 rajveer 7214
  }
7215
 
3430 rajveer 7216
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7217
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7218
 
6643 rajveer 7219
    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 7220
    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 7221
 
6643 rajveer 7222
    private String awbNumber; // required
3430 rajveer 7223
    private long providerId; // required
442 rajveer 7224
 
7225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7227
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7228
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7229
 
7230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7231
 
7232
      static {
7233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7234
          byName.put(field.getFieldName(), field);
7235
        }
7236
      }
7237
 
7238
      /**
7239
       * Find the _Fields constant that matches fieldId, or null if its not found.
7240
       */
7241
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7242
        switch(fieldId) {
6643 rajveer 7243
          case 1: // AWB_NUMBER
7244
            return AWB_NUMBER;
3430 rajveer 7245
          case 2: // PROVIDER_ID
7246
            return PROVIDER_ID;
7247
          default:
7248
            return null;
7249
        }
442 rajveer 7250
      }
7251
 
7252
      /**
7253
       * Find the _Fields constant that matches fieldId, throwing an exception
7254
       * if it is not found.
7255
       */
7256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7257
        _Fields fields = findByThriftId(fieldId);
7258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7259
        return fields;
7260
      }
7261
 
7262
      /**
7263
       * Find the _Fields constant that matches name, or null if its not found.
7264
       */
7265
      public static _Fields findByName(String name) {
7266
        return byName.get(name);
7267
      }
7268
 
7269
      private final short _thriftId;
7270
      private final String _fieldName;
7271
 
7272
      _Fields(short thriftId, String fieldName) {
7273
        _thriftId = thriftId;
7274
        _fieldName = fieldName;
7275
      }
7276
 
7277
      public short getThriftFieldId() {
7278
        return _thriftId;
7279
      }
7280
 
7281
      public String getFieldName() {
7282
        return _fieldName;
7283
      }
7284
    }
7285
 
7286
    // isset id assignments
648 chandransh 7287
    private static final int __PROVIDERID_ISSET_ID = 0;
7288
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7289
 
3430 rajveer 7290
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7291
    static {
3430 rajveer 7292
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7293
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7295
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7299
    }
7300
 
648 chandransh 7301
    public getShipmentInfo_args() {
442 rajveer 7302
    }
7303
 
648 chandransh 7304
    public getShipmentInfo_args(
6643 rajveer 7305
      String awbNumber,
648 chandransh 7306
      long providerId)
442 rajveer 7307
    {
7308
      this();
6643 rajveer 7309
      this.awbNumber = awbNumber;
648 chandransh 7310
      this.providerId = providerId;
7311
      setProviderIdIsSet(true);
442 rajveer 7312
    }
7313
 
7314
    /**
7315
     * Performs a deep copy on <i>other</i>.
7316
     */
648 chandransh 7317
    public getShipmentInfo_args(getShipmentInfo_args other) {
7318
      __isset_bit_vector.clear();
7319
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7320
      if (other.isSetAwbNumber()) {
7321
        this.awbNumber = other.awbNumber;
442 rajveer 7322
      }
648 chandransh 7323
      this.providerId = other.providerId;
442 rajveer 7324
    }
7325
 
648 chandransh 7326
    public getShipmentInfo_args deepCopy() {
7327
      return new getShipmentInfo_args(this);
442 rajveer 7328
    }
7329
 
3430 rajveer 7330
    @Override
7331
    public void clear() {
6643 rajveer 7332
      this.awbNumber = null;
3430 rajveer 7333
      setProviderIdIsSet(false);
7334
      this.providerId = 0;
442 rajveer 7335
    }
7336
 
6643 rajveer 7337
    public String getAwbNumber() {
7338
      return this.awbNumber;
442 rajveer 7339
    }
7340
 
6643 rajveer 7341
    public void setAwbNumber(String awbNumber) {
7342
      this.awbNumber = awbNumber;
442 rajveer 7343
    }
7344
 
6643 rajveer 7345
    public void unsetAwbNumber() {
7346
      this.awbNumber = null;
442 rajveer 7347
    }
7348
 
6643 rajveer 7349
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7350
    public boolean isSetAwbNumber() {
7351
      return this.awbNumber != null;
442 rajveer 7352
    }
7353
 
6643 rajveer 7354
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7355
      if (!value) {
6643 rajveer 7356
        this.awbNumber = null;
442 rajveer 7357
      }
7358
    }
7359
 
648 chandransh 7360
    public long getProviderId() {
7361
      return this.providerId;
442 rajveer 7362
    }
7363
 
3430 rajveer 7364
    public void setProviderId(long providerId) {
648 chandransh 7365
      this.providerId = providerId;
7366
      setProviderIdIsSet(true);
442 rajveer 7367
    }
7368
 
648 chandransh 7369
    public void unsetProviderId() {
7370
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7371
    }
7372
 
3430 rajveer 7373
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7374
    public boolean isSetProviderId() {
7375
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7376
    }
7377
 
648 chandransh 7378
    public void setProviderIdIsSet(boolean value) {
7379
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7380
    }
7381
 
7382
    public void setFieldValue(_Fields field, Object value) {
7383
      switch (field) {
6643 rajveer 7384
      case AWB_NUMBER:
442 rajveer 7385
        if (value == null) {
6643 rajveer 7386
          unsetAwbNumber();
442 rajveer 7387
        } else {
6643 rajveer 7388
          setAwbNumber((String)value);
442 rajveer 7389
        }
7390
        break;
7391
 
648 chandransh 7392
      case PROVIDER_ID:
442 rajveer 7393
        if (value == null) {
648 chandransh 7394
          unsetProviderId();
442 rajveer 7395
        } else {
648 chandransh 7396
          setProviderId((Long)value);
442 rajveer 7397
        }
7398
        break;
7399
 
7400
      }
7401
    }
7402
 
7403
    public Object getFieldValue(_Fields field) {
7404
      switch (field) {
6643 rajveer 7405
      case AWB_NUMBER:
7406
        return getAwbNumber();
442 rajveer 7407
 
648 chandransh 7408
      case PROVIDER_ID:
3430 rajveer 7409
        return Long.valueOf(getProviderId());
442 rajveer 7410
 
7411
      }
7412
      throw new IllegalStateException();
7413
    }
7414
 
3430 rajveer 7415
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7416
    public boolean isSet(_Fields field) {
7417
      if (field == null) {
7418
        throw new IllegalArgumentException();
7419
      }
442 rajveer 7420
 
7421
      switch (field) {
6643 rajveer 7422
      case AWB_NUMBER:
7423
        return isSetAwbNumber();
648 chandransh 7424
      case PROVIDER_ID:
7425
        return isSetProviderId();
442 rajveer 7426
      }
7427
      throw new IllegalStateException();
7428
    }
7429
 
7430
    @Override
7431
    public boolean equals(Object that) {
7432
      if (that == null)
7433
        return false;
648 chandransh 7434
      if (that instanceof getShipmentInfo_args)
7435
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7436
      return false;
7437
    }
7438
 
648 chandransh 7439
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7440
      if (that == null)
7441
        return false;
7442
 
6643 rajveer 7443
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7444
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7445
      if (this_present_awbNumber || that_present_awbNumber) {
7446
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7447
          return false;
6643 rajveer 7448
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7449
          return false;
7450
      }
7451
 
648 chandransh 7452
      boolean this_present_providerId = true;
7453
      boolean that_present_providerId = true;
7454
      if (this_present_providerId || that_present_providerId) {
7455
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7456
          return false;
648 chandransh 7457
        if (this.providerId != that.providerId)
442 rajveer 7458
          return false;
7459
      }
7460
 
7461
      return true;
7462
    }
7463
 
7464
    @Override
7465
    public int hashCode() {
7466
      return 0;
7467
    }
7468
 
648 chandransh 7469
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7470
      if (!getClass().equals(other.getClass())) {
7471
        return getClass().getName().compareTo(other.getClass().getName());
7472
      }
7473
 
7474
      int lastComparison = 0;
648 chandransh 7475
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7476
 
6643 rajveer 7477
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7478
      if (lastComparison != 0) {
7479
        return lastComparison;
7480
      }
6643 rajveer 7481
      if (isSetAwbNumber()) {
7482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7483
        if (lastComparison != 0) {
7484
          return lastComparison;
7485
        }
442 rajveer 7486
      }
3430 rajveer 7487
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7488
      if (lastComparison != 0) {
7489
        return lastComparison;
7490
      }
3430 rajveer 7491
      if (isSetProviderId()) {
7492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7493
        if (lastComparison != 0) {
7494
          return lastComparison;
7495
        }
442 rajveer 7496
      }
7497
      return 0;
7498
    }
7499
 
3430 rajveer 7500
    public _Fields fieldForId(int fieldId) {
7501
      return _Fields.findByThriftId(fieldId);
7502
    }
7503
 
7504
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7505
      org.apache.thrift.protocol.TField field;
442 rajveer 7506
      iprot.readStructBegin();
7507
      while (true)
7508
      {
7509
        field = iprot.readFieldBegin();
3430 rajveer 7510
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7511
          break;
7512
        }
3430 rajveer 7513
        switch (field.id) {
6643 rajveer 7514
          case 1: // AWB_NUMBER
3430 rajveer 7515
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7516
              this.awbNumber = iprot.readString();
3430 rajveer 7517
            } else { 
7518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7519
            }
7520
            break;
7521
          case 2: // PROVIDER_ID
7522
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7523
              this.providerId = iprot.readI64();
7524
              setProviderIdIsSet(true);
7525
            } else { 
7526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7527
            }
7528
            break;
7529
          default:
7530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7531
        }
3430 rajveer 7532
        iprot.readFieldEnd();
442 rajveer 7533
      }
7534
      iprot.readStructEnd();
7535
      validate();
7536
    }
7537
 
3430 rajveer 7538
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7539
      validate();
7540
 
7541
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7542
      if (this.awbNumber != null) {
7543
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7544
        oprot.writeString(this.awbNumber);
442 rajveer 7545
        oprot.writeFieldEnd();
7546
      }
648 chandransh 7547
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7548
      oprot.writeI64(this.providerId);
7549
      oprot.writeFieldEnd();
442 rajveer 7550
      oprot.writeFieldStop();
7551
      oprot.writeStructEnd();
7552
    }
7553
 
7554
    @Override
7555
    public String toString() {
648 chandransh 7556
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7557
      boolean first = true;
7558
 
6643 rajveer 7559
      sb.append("awbNumber:");
7560
      if (this.awbNumber == null) {
442 rajveer 7561
        sb.append("null");
7562
      } else {
6643 rajveer 7563
        sb.append(this.awbNumber);
442 rajveer 7564
      }
7565
      first = false;
7566
      if (!first) sb.append(", ");
648 chandransh 7567
      sb.append("providerId:");
7568
      sb.append(this.providerId);
442 rajveer 7569
      first = false;
7570
      sb.append(")");
7571
      return sb.toString();
7572
    }
7573
 
3430 rajveer 7574
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7575
      // check for required fields
7576
    }
7577
 
3430 rajveer 7578
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7579
      try {
7580
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7581
      } catch (org.apache.thrift.TException te) {
7582
        throw new java.io.IOException(te);
7583
      }
7584
    }
7585
 
7586
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7587
      try {
7588
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7589
      } catch (org.apache.thrift.TException te) {
7590
        throw new java.io.IOException(te);
7591
      }
7592
    }
7593
 
442 rajveer 7594
  }
7595
 
3430 rajveer 7596
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7598
 
3430 rajveer 7599
    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);
7600
    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 7601
 
3430 rajveer 7602
    private List<AwbUpdate> success; // required
7603
    private LogisticsServiceException se; // required
412 ashish 7604
 
7605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7607
      SUCCESS((short)0, "success"),
7608
      SE((short)1, "se");
412 ashish 7609
 
7610
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7611
 
7612
      static {
7613
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7614
          byName.put(field.getFieldName(), field);
7615
        }
7616
      }
7617
 
7618
      /**
7619
       * Find the _Fields constant that matches fieldId, or null if its not found.
7620
       */
7621
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7622
        switch(fieldId) {
7623
          case 0: // SUCCESS
7624
            return SUCCESS;
7625
          case 1: // SE
7626
            return SE;
7627
          default:
7628
            return null;
7629
        }
412 ashish 7630
      }
7631
 
7632
      /**
7633
       * Find the _Fields constant that matches fieldId, throwing an exception
7634
       * if it is not found.
7635
       */
7636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7637
        _Fields fields = findByThriftId(fieldId);
7638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7639
        return fields;
7640
      }
7641
 
7642
      /**
7643
       * Find the _Fields constant that matches name, or null if its not found.
7644
       */
7645
      public static _Fields findByName(String name) {
7646
        return byName.get(name);
7647
      }
7648
 
7649
      private final short _thriftId;
7650
      private final String _fieldName;
7651
 
7652
      _Fields(short thriftId, String fieldName) {
7653
        _thriftId = thriftId;
7654
        _fieldName = fieldName;
7655
      }
7656
 
7657
      public short getThriftFieldId() {
7658
        return _thriftId;
7659
      }
7660
 
7661
      public String getFieldName() {
7662
        return _fieldName;
7663
      }
7664
    }
7665
 
7666
    // isset id assignments
7667
 
3430 rajveer 7668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7669
    static {
3430 rajveer 7670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7671
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7672
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7673
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7674
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7676
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7677
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7678
    }
7679
 
7680
    public getShipmentInfo_result() {
7681
    }
7682
 
7683
    public getShipmentInfo_result(
648 chandransh 7684
      List<AwbUpdate> success,
7685
      LogisticsServiceException se)
412 ashish 7686
    {
7687
      this();
7688
      this.success = success;
648 chandransh 7689
      this.se = se;
412 ashish 7690
    }
7691
 
7692
    /**
7693
     * Performs a deep copy on <i>other</i>.
7694
     */
7695
    public getShipmentInfo_result(getShipmentInfo_result other) {
7696
      if (other.isSetSuccess()) {
648 chandransh 7697
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7698
        for (AwbUpdate other_element : other.success) {
7699
          __this__success.add(new AwbUpdate(other_element));
7700
        }
7701
        this.success = __this__success;
412 ashish 7702
      }
648 chandransh 7703
      if (other.isSetSe()) {
7704
        this.se = new LogisticsServiceException(other.se);
7705
      }
412 ashish 7706
    }
7707
 
7708
    public getShipmentInfo_result deepCopy() {
7709
      return new getShipmentInfo_result(this);
7710
    }
7711
 
3430 rajveer 7712
    @Override
7713
    public void clear() {
7714
      this.success = null;
7715
      this.se = null;
412 ashish 7716
    }
7717
 
7718
    public int getSuccessSize() {
7719
      return (this.success == null) ? 0 : this.success.size();
7720
    }
7721
 
648 chandransh 7722
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7723
      return (this.success == null) ? null : this.success.iterator();
7724
    }
7725
 
648 chandransh 7726
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7727
      if (this.success == null) {
648 chandransh 7728
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7729
      }
7730
      this.success.add(elem);
7731
    }
7732
 
648 chandransh 7733
    public List<AwbUpdate> getSuccess() {
412 ashish 7734
      return this.success;
7735
    }
7736
 
3430 rajveer 7737
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7738
      this.success = success;
7739
    }
7740
 
7741
    public void unsetSuccess() {
7742
      this.success = null;
7743
    }
7744
 
3430 rajveer 7745
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7746
    public boolean isSetSuccess() {
7747
      return this.success != null;
7748
    }
7749
 
7750
    public void setSuccessIsSet(boolean value) {
7751
      if (!value) {
7752
        this.success = null;
7753
      }
7754
    }
7755
 
648 chandransh 7756
    public LogisticsServiceException getSe() {
7757
      return this.se;
412 ashish 7758
    }
7759
 
3430 rajveer 7760
    public void setSe(LogisticsServiceException se) {
648 chandransh 7761
      this.se = se;
412 ashish 7762
    }
7763
 
648 chandransh 7764
    public void unsetSe() {
7765
      this.se = null;
412 ashish 7766
    }
7767
 
3430 rajveer 7768
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7769
    public boolean isSetSe() {
7770
      return this.se != null;
412 ashish 7771
    }
7772
 
648 chandransh 7773
    public void setSeIsSet(boolean value) {
7774
      if (!value) {
7775
        this.se = null;
412 ashish 7776
      }
7777
    }
7778
 
7779
    public void setFieldValue(_Fields field, Object value) {
7780
      switch (field) {
648 chandransh 7781
      case SUCCESS:
412 ashish 7782
        if (value == null) {
648 chandransh 7783
          unsetSuccess();
412 ashish 7784
        } else {
648 chandransh 7785
          setSuccess((List<AwbUpdate>)value);
412 ashish 7786
        }
7787
        break;
7788
 
648 chandransh 7789
      case SE:
412 ashish 7790
        if (value == null) {
648 chandransh 7791
          unsetSe();
412 ashish 7792
        } else {
648 chandransh 7793
          setSe((LogisticsServiceException)value);
412 ashish 7794
        }
7795
        break;
7796
 
7797
      }
7798
    }
7799
 
7800
    public Object getFieldValue(_Fields field) {
7801
      switch (field) {
648 chandransh 7802
      case SUCCESS:
7803
        return getSuccess();
412 ashish 7804
 
648 chandransh 7805
      case SE:
7806
        return getSe();
412 ashish 7807
 
7808
      }
7809
      throw new IllegalStateException();
7810
    }
7811
 
3430 rajveer 7812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7813
    public boolean isSet(_Fields field) {
7814
      if (field == null) {
7815
        throw new IllegalArgumentException();
7816
      }
412 ashish 7817
 
7818
      switch (field) {
648 chandransh 7819
      case SUCCESS:
7820
        return isSetSuccess();
7821
      case SE:
7822
        return isSetSe();
412 ashish 7823
      }
7824
      throw new IllegalStateException();
7825
    }
7826
 
7827
    @Override
7828
    public boolean equals(Object that) {
7829
      if (that == null)
7830
        return false;
648 chandransh 7831
      if (that instanceof getShipmentInfo_result)
7832
        return this.equals((getShipmentInfo_result)that);
412 ashish 7833
      return false;
7834
    }
7835
 
648 chandransh 7836
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7837
      if (that == null)
7838
        return false;
7839
 
648 chandransh 7840
      boolean this_present_success = true && this.isSetSuccess();
7841
      boolean that_present_success = true && that.isSetSuccess();
7842
      if (this_present_success || that_present_success) {
7843
        if (!(this_present_success && that_present_success))
412 ashish 7844
          return false;
648 chandransh 7845
        if (!this.success.equals(that.success))
412 ashish 7846
          return false;
7847
      }
7848
 
648 chandransh 7849
      boolean this_present_se = true && this.isSetSe();
7850
      boolean that_present_se = true && that.isSetSe();
7851
      if (this_present_se || that_present_se) {
7852
        if (!(this_present_se && that_present_se))
412 ashish 7853
          return false;
648 chandransh 7854
        if (!this.se.equals(that.se))
412 ashish 7855
          return false;
7856
      }
7857
 
7858
      return true;
7859
    }
7860
 
7861
    @Override
7862
    public int hashCode() {
7863
      return 0;
7864
    }
7865
 
648 chandransh 7866
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7867
      if (!getClass().equals(other.getClass())) {
7868
        return getClass().getName().compareTo(other.getClass().getName());
7869
      }
7870
 
7871
      int lastComparison = 0;
648 chandransh 7872
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7873
 
3430 rajveer 7874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7875
      if (lastComparison != 0) {
7876
        return lastComparison;
7877
      }
3430 rajveer 7878
      if (isSetSuccess()) {
7879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7880
        if (lastComparison != 0) {
7881
          return lastComparison;
7882
        }
412 ashish 7883
      }
3430 rajveer 7884
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7885
      if (lastComparison != 0) {
7886
        return lastComparison;
7887
      }
3430 rajveer 7888
      if (isSetSe()) {
7889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7890
        if (lastComparison != 0) {
7891
          return lastComparison;
7892
        }
412 ashish 7893
      }
7894
      return 0;
7895
    }
7896
 
3430 rajveer 7897
    public _Fields fieldForId(int fieldId) {
7898
      return _Fields.findByThriftId(fieldId);
7899
    }
7900
 
7901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7902
      org.apache.thrift.protocol.TField field;
412 ashish 7903
      iprot.readStructBegin();
7904
      while (true)
7905
      {
7906
        field = iprot.readFieldBegin();
3430 rajveer 7907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7908
          break;
7909
        }
3430 rajveer 7910
        switch (field.id) {
7911
          case 0: // SUCCESS
7912
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7913
              {
7792 anupam.sin 7914
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7915
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7916
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7917
                {
7792 anupam.sin 7918
                  AwbUpdate _elem10; // required
7919
                  _elem10 = new AwbUpdate();
7920
                  _elem10.read(iprot);
7921
                  this.success.add(_elem10);
412 ashish 7922
                }
3430 rajveer 7923
                iprot.readListEnd();
412 ashish 7924
              }
3430 rajveer 7925
            } else { 
7926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7927
            }
7928
            break;
7929
          case 1: // SE
7930
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7931
              this.se = new LogisticsServiceException();
7932
              this.se.read(iprot);
7933
            } else { 
7934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7935
            }
7936
            break;
7937
          default:
7938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7939
        }
3430 rajveer 7940
        iprot.readFieldEnd();
412 ashish 7941
      }
7942
      iprot.readStructEnd();
7943
      validate();
7944
    }
7945
 
3430 rajveer 7946
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7947
      oprot.writeStructBegin(STRUCT_DESC);
7948
 
7949
      if (this.isSetSuccess()) {
7950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7951
        {
3430 rajveer 7952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7953
          for (AwbUpdate _iter11 : this.success)
412 ashish 7954
          {
7792 anupam.sin 7955
            _iter11.write(oprot);
412 ashish 7956
          }
7957
          oprot.writeListEnd();
7958
        }
7959
        oprot.writeFieldEnd();
648 chandransh 7960
      } else if (this.isSetSe()) {
7961
        oprot.writeFieldBegin(SE_FIELD_DESC);
7962
        this.se.write(oprot);
7963
        oprot.writeFieldEnd();
412 ashish 7964
      }
7965
      oprot.writeFieldStop();
7966
      oprot.writeStructEnd();
7967
    }
7968
 
7969
    @Override
7970
    public String toString() {
648 chandransh 7971
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7972
      boolean first = true;
7973
 
7974
      sb.append("success:");
7975
      if (this.success == null) {
7976
        sb.append("null");
7977
      } else {
7978
        sb.append(this.success);
7979
      }
7980
      first = false;
648 chandransh 7981
      if (!first) sb.append(", ");
7982
      sb.append("se:");
7983
      if (this.se == null) {
7984
        sb.append("null");
7985
      } else {
7986
        sb.append(this.se);
7987
      }
7988
      first = false;
412 ashish 7989
      sb.append(")");
7990
      return sb.toString();
7991
    }
7992
 
3430 rajveer 7993
    public void validate() throws org.apache.thrift.TException {
412 ashish 7994
      // check for required fields
7995
    }
7996
 
3430 rajveer 7997
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7998
      try {
7999
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8000
      } catch (org.apache.thrift.TException te) {
8001
        throw new java.io.IOException(te);
8002
      }
8003
    }
8004
 
8005
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8006
      try {
8007
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8008
      } catch (org.apache.thrift.TException te) {
8009
        throw new java.io.IOException(te);
8010
      }
8011
    }
8012
 
412 ashish 8013
  }
8014
 
6643 rajveer 8015
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
8016
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
8017
 
8018
    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);
8019
 
8020
    private AwbUpdate update; // required
8021
 
8022
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8023
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8024
      UPDATE((short)1, "update");
8025
 
8026
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8027
 
8028
      static {
8029
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8030
          byName.put(field.getFieldName(), field);
8031
        }
8032
      }
8033
 
8034
      /**
8035
       * Find the _Fields constant that matches fieldId, or null if its not found.
8036
       */
8037
      public static _Fields findByThriftId(int fieldId) {
8038
        switch(fieldId) {
8039
          case 1: // UPDATE
8040
            return UPDATE;
8041
          default:
8042
            return null;
8043
        }
8044
      }
8045
 
8046
      /**
8047
       * Find the _Fields constant that matches fieldId, throwing an exception
8048
       * if it is not found.
8049
       */
8050
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8051
        _Fields fields = findByThriftId(fieldId);
8052
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8053
        return fields;
8054
      }
8055
 
8056
      /**
8057
       * Find the _Fields constant that matches name, or null if its not found.
8058
       */
8059
      public static _Fields findByName(String name) {
8060
        return byName.get(name);
8061
      }
8062
 
8063
      private final short _thriftId;
8064
      private final String _fieldName;
8065
 
8066
      _Fields(short thriftId, String fieldName) {
8067
        _thriftId = thriftId;
8068
        _fieldName = fieldName;
8069
      }
8070
 
8071
      public short getThriftFieldId() {
8072
        return _thriftId;
8073
      }
8074
 
8075
      public String getFieldName() {
8076
        return _fieldName;
8077
      }
8078
    }
8079
 
8080
    // isset id assignments
8081
 
8082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8083
    static {
8084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8085
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8086
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8089
    }
8090
 
8091
    public storeShipmentInfo_args() {
8092
    }
8093
 
8094
    public storeShipmentInfo_args(
8095
      AwbUpdate update)
8096
    {
8097
      this();
8098
      this.update = update;
8099
    }
8100
 
8101
    /**
8102
     * Performs a deep copy on <i>other</i>.
8103
     */
8104
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8105
      if (other.isSetUpdate()) {
8106
        this.update = new AwbUpdate(other.update);
8107
      }
8108
    }
8109
 
8110
    public storeShipmentInfo_args deepCopy() {
8111
      return new storeShipmentInfo_args(this);
8112
    }
8113
 
8114
    @Override
8115
    public void clear() {
8116
      this.update = null;
8117
    }
8118
 
8119
    public AwbUpdate getUpdate() {
8120
      return this.update;
8121
    }
8122
 
8123
    public void setUpdate(AwbUpdate update) {
8124
      this.update = update;
8125
    }
8126
 
8127
    public void unsetUpdate() {
8128
      this.update = null;
8129
    }
8130
 
8131
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8132
    public boolean isSetUpdate() {
8133
      return this.update != null;
8134
    }
8135
 
8136
    public void setUpdateIsSet(boolean value) {
8137
      if (!value) {
8138
        this.update = null;
8139
      }
8140
    }
8141
 
8142
    public void setFieldValue(_Fields field, Object value) {
8143
      switch (field) {
8144
      case UPDATE:
8145
        if (value == null) {
8146
          unsetUpdate();
8147
        } else {
8148
          setUpdate((AwbUpdate)value);
8149
        }
8150
        break;
8151
 
8152
      }
8153
    }
8154
 
8155
    public Object getFieldValue(_Fields field) {
8156
      switch (field) {
8157
      case UPDATE:
8158
        return getUpdate();
8159
 
8160
      }
8161
      throw new IllegalStateException();
8162
    }
8163
 
8164
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8165
    public boolean isSet(_Fields field) {
8166
      if (field == null) {
8167
        throw new IllegalArgumentException();
8168
      }
8169
 
8170
      switch (field) {
8171
      case UPDATE:
8172
        return isSetUpdate();
8173
      }
8174
      throw new IllegalStateException();
8175
    }
8176
 
8177
    @Override
8178
    public boolean equals(Object that) {
8179
      if (that == null)
8180
        return false;
8181
      if (that instanceof storeShipmentInfo_args)
8182
        return this.equals((storeShipmentInfo_args)that);
8183
      return false;
8184
    }
8185
 
8186
    public boolean equals(storeShipmentInfo_args that) {
8187
      if (that == null)
8188
        return false;
8189
 
8190
      boolean this_present_update = true && this.isSetUpdate();
8191
      boolean that_present_update = true && that.isSetUpdate();
8192
      if (this_present_update || that_present_update) {
8193
        if (!(this_present_update && that_present_update))
8194
          return false;
8195
        if (!this.update.equals(that.update))
8196
          return false;
8197
      }
8198
 
8199
      return true;
8200
    }
8201
 
8202
    @Override
8203
    public int hashCode() {
8204
      return 0;
8205
    }
8206
 
8207
    public int compareTo(storeShipmentInfo_args other) {
8208
      if (!getClass().equals(other.getClass())) {
8209
        return getClass().getName().compareTo(other.getClass().getName());
8210
      }
8211
 
8212
      int lastComparison = 0;
8213
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8214
 
8215
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8216
      if (lastComparison != 0) {
8217
        return lastComparison;
8218
      }
8219
      if (isSetUpdate()) {
8220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8221
        if (lastComparison != 0) {
8222
          return lastComparison;
8223
        }
8224
      }
8225
      return 0;
8226
    }
8227
 
8228
    public _Fields fieldForId(int fieldId) {
8229
      return _Fields.findByThriftId(fieldId);
8230
    }
8231
 
8232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8233
      org.apache.thrift.protocol.TField field;
8234
      iprot.readStructBegin();
8235
      while (true)
8236
      {
8237
        field = iprot.readFieldBegin();
8238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8239
          break;
8240
        }
8241
        switch (field.id) {
8242
          case 1: // UPDATE
8243
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8244
              this.update = new AwbUpdate();
8245
              this.update.read(iprot);
8246
            } else { 
8247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8248
            }
8249
            break;
8250
          default:
8251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8252
        }
8253
        iprot.readFieldEnd();
8254
      }
8255
      iprot.readStructEnd();
8256
      validate();
8257
    }
8258
 
8259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8260
      validate();
8261
 
8262
      oprot.writeStructBegin(STRUCT_DESC);
8263
      if (this.update != null) {
8264
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8265
        this.update.write(oprot);
8266
        oprot.writeFieldEnd();
8267
      }
8268
      oprot.writeFieldStop();
8269
      oprot.writeStructEnd();
8270
    }
8271
 
8272
    @Override
8273
    public String toString() {
8274
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8275
      boolean first = true;
8276
 
8277
      sb.append("update:");
8278
      if (this.update == null) {
8279
        sb.append("null");
8280
      } else {
8281
        sb.append(this.update);
8282
      }
8283
      first = false;
8284
      sb.append(")");
8285
      return sb.toString();
8286
    }
8287
 
8288
    public void validate() throws org.apache.thrift.TException {
8289
      // check for required fields
8290
    }
8291
 
8292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8293
      try {
8294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8295
      } catch (org.apache.thrift.TException te) {
8296
        throw new java.io.IOException(te);
8297
      }
8298
    }
8299
 
8300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8301
      try {
8302
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8303
      } catch (org.apache.thrift.TException te) {
8304
        throw new java.io.IOException(te);
8305
      }
8306
    }
8307
 
8308
  }
8309
 
8310
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8311
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8312
 
8313
    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);
8314
 
8315
    private LogisticsServiceException se; // required
8316
 
8317
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8318
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8319
      SE((short)1, "se");
8320
 
8321
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8322
 
8323
      static {
8324
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8325
          byName.put(field.getFieldName(), field);
8326
        }
8327
      }
8328
 
8329
      /**
8330
       * Find the _Fields constant that matches fieldId, or null if its not found.
8331
       */
8332
      public static _Fields findByThriftId(int fieldId) {
8333
        switch(fieldId) {
8334
          case 1: // SE
8335
            return SE;
8336
          default:
8337
            return null;
8338
        }
8339
      }
8340
 
8341
      /**
8342
       * Find the _Fields constant that matches fieldId, throwing an exception
8343
       * if it is not found.
8344
       */
8345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8346
        _Fields fields = findByThriftId(fieldId);
8347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8348
        return fields;
8349
      }
8350
 
8351
      /**
8352
       * Find the _Fields constant that matches name, or null if its not found.
8353
       */
8354
      public static _Fields findByName(String name) {
8355
        return byName.get(name);
8356
      }
8357
 
8358
      private final short _thriftId;
8359
      private final String _fieldName;
8360
 
8361
      _Fields(short thriftId, String fieldName) {
8362
        _thriftId = thriftId;
8363
        _fieldName = fieldName;
8364
      }
8365
 
8366
      public short getThriftFieldId() {
8367
        return _thriftId;
8368
      }
8369
 
8370
      public String getFieldName() {
8371
        return _fieldName;
8372
      }
8373
    }
8374
 
8375
    // isset id assignments
8376
 
8377
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8378
    static {
8379
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8380
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8381
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8382
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8383
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8384
    }
8385
 
8386
    public storeShipmentInfo_result() {
8387
    }
8388
 
8389
    public storeShipmentInfo_result(
8390
      LogisticsServiceException se)
8391
    {
8392
      this();
8393
      this.se = se;
8394
    }
8395
 
8396
    /**
8397
     * Performs a deep copy on <i>other</i>.
8398
     */
8399
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8400
      if (other.isSetSe()) {
8401
        this.se = new LogisticsServiceException(other.se);
8402
      }
8403
    }
8404
 
8405
    public storeShipmentInfo_result deepCopy() {
8406
      return new storeShipmentInfo_result(this);
8407
    }
8408
 
8409
    @Override
8410
    public void clear() {
8411
      this.se = null;
8412
    }
8413
 
8414
    public LogisticsServiceException getSe() {
8415
      return this.se;
8416
    }
8417
 
8418
    public void setSe(LogisticsServiceException se) {
8419
      this.se = se;
8420
    }
8421
 
8422
    public void unsetSe() {
8423
      this.se = null;
8424
    }
8425
 
8426
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8427
    public boolean isSetSe() {
8428
      return this.se != null;
8429
    }
8430
 
8431
    public void setSeIsSet(boolean value) {
8432
      if (!value) {
8433
        this.se = null;
8434
      }
8435
    }
8436
 
8437
    public void setFieldValue(_Fields field, Object value) {
8438
      switch (field) {
8439
      case SE:
8440
        if (value == null) {
8441
          unsetSe();
8442
        } else {
8443
          setSe((LogisticsServiceException)value);
8444
        }
8445
        break;
8446
 
8447
      }
8448
    }
8449
 
8450
    public Object getFieldValue(_Fields field) {
8451
      switch (field) {
8452
      case SE:
8453
        return getSe();
8454
 
8455
      }
8456
      throw new IllegalStateException();
8457
    }
8458
 
8459
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8460
    public boolean isSet(_Fields field) {
8461
      if (field == null) {
8462
        throw new IllegalArgumentException();
8463
      }
8464
 
8465
      switch (field) {
8466
      case SE:
8467
        return isSetSe();
8468
      }
8469
      throw new IllegalStateException();
8470
    }
8471
 
8472
    @Override
8473
    public boolean equals(Object that) {
8474
      if (that == null)
8475
        return false;
8476
      if (that instanceof storeShipmentInfo_result)
8477
        return this.equals((storeShipmentInfo_result)that);
8478
      return false;
8479
    }
8480
 
8481
    public boolean equals(storeShipmentInfo_result that) {
8482
      if (that == null)
8483
        return false;
8484
 
8485
      boolean this_present_se = true && this.isSetSe();
8486
      boolean that_present_se = true && that.isSetSe();
8487
      if (this_present_se || that_present_se) {
8488
        if (!(this_present_se && that_present_se))
8489
          return false;
8490
        if (!this.se.equals(that.se))
8491
          return false;
8492
      }
8493
 
8494
      return true;
8495
    }
8496
 
8497
    @Override
8498
    public int hashCode() {
8499
      return 0;
8500
    }
8501
 
8502
    public int compareTo(storeShipmentInfo_result other) {
8503
      if (!getClass().equals(other.getClass())) {
8504
        return getClass().getName().compareTo(other.getClass().getName());
8505
      }
8506
 
8507
      int lastComparison = 0;
8508
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8509
 
8510
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8511
      if (lastComparison != 0) {
8512
        return lastComparison;
8513
      }
8514
      if (isSetSe()) {
8515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8516
        if (lastComparison != 0) {
8517
          return lastComparison;
8518
        }
8519
      }
8520
      return 0;
8521
    }
8522
 
8523
    public _Fields fieldForId(int fieldId) {
8524
      return _Fields.findByThriftId(fieldId);
8525
    }
8526
 
8527
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8528
      org.apache.thrift.protocol.TField field;
8529
      iprot.readStructBegin();
8530
      while (true)
8531
      {
8532
        field = iprot.readFieldBegin();
8533
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8534
          break;
8535
        }
8536
        switch (field.id) {
8537
          case 1: // SE
8538
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8539
              this.se = new LogisticsServiceException();
8540
              this.se.read(iprot);
8541
            } else { 
8542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8543
            }
8544
            break;
8545
          default:
8546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8547
        }
8548
        iprot.readFieldEnd();
8549
      }
8550
      iprot.readStructEnd();
8551
      validate();
8552
    }
8553
 
8554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8555
      oprot.writeStructBegin(STRUCT_DESC);
8556
 
8557
      if (this.isSetSe()) {
8558
        oprot.writeFieldBegin(SE_FIELD_DESC);
8559
        this.se.write(oprot);
8560
        oprot.writeFieldEnd();
8561
      }
8562
      oprot.writeFieldStop();
8563
      oprot.writeStructEnd();
8564
    }
8565
 
8566
    @Override
8567
    public String toString() {
8568
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8569
      boolean first = true;
8570
 
8571
      sb.append("se:");
8572
      if (this.se == null) {
8573
        sb.append("null");
8574
      } else {
8575
        sb.append(this.se);
8576
      }
8577
      first = false;
8578
      sb.append(")");
8579
      return sb.toString();
8580
    }
8581
 
8582
    public void validate() throws org.apache.thrift.TException {
8583
      // check for required fields
8584
    }
8585
 
8586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8587
      try {
8588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8589
      } catch (org.apache.thrift.TException te) {
8590
        throw new java.io.IOException(te);
8591
      }
8592
    }
8593
 
8594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8595
      try {
8596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8597
      } catch (org.apache.thrift.TException te) {
8598
        throw new java.io.IOException(te);
8599
      }
8600
    }
8601
 
8602
  }
8603
 
3430 rajveer 8604
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8606
 
3430 rajveer 8607
    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);
8608
    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 8609
 
3430 rajveer 8610
    private long providerId; // required
8611
    private String pinCode; // required
730 chandransh 8612
 
8613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8615
      PROVIDER_ID((short)1, "providerId"),
8616
      PIN_CODE((short)2, "pinCode");
8617
 
8618
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8619
 
8620
      static {
8621
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8622
          byName.put(field.getFieldName(), field);
8623
        }
8624
      }
8625
 
8626
      /**
8627
       * Find the _Fields constant that matches fieldId, or null if its not found.
8628
       */
8629
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8630
        switch(fieldId) {
8631
          case 1: // PROVIDER_ID
8632
            return PROVIDER_ID;
8633
          case 2: // PIN_CODE
8634
            return PIN_CODE;
8635
          default:
8636
            return null;
8637
        }
730 chandransh 8638
      }
8639
 
8640
      /**
8641
       * Find the _Fields constant that matches fieldId, throwing an exception
8642
       * if it is not found.
8643
       */
8644
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8645
        _Fields fields = findByThriftId(fieldId);
8646
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8647
        return fields;
8648
      }
8649
 
8650
      /**
8651
       * Find the _Fields constant that matches name, or null if its not found.
8652
       */
8653
      public static _Fields findByName(String name) {
8654
        return byName.get(name);
8655
      }
8656
 
8657
      private final short _thriftId;
8658
      private final String _fieldName;
8659
 
8660
      _Fields(short thriftId, String fieldName) {
8661
        _thriftId = thriftId;
8662
        _fieldName = fieldName;
8663
      }
8664
 
8665
      public short getThriftFieldId() {
8666
        return _thriftId;
8667
      }
8668
 
8669
      public String getFieldName() {
8670
        return _fieldName;
8671
      }
8672
    }
8673
 
8674
    // isset id assignments
8675
    private static final int __PROVIDERID_ISSET_ID = 0;
8676
    private BitSet __isset_bit_vector = new BitSet(1);
8677
 
3430 rajveer 8678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8679
    static {
3430 rajveer 8680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8681
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8683
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8687
    }
8688
 
8689
    public getDestinationCode_args() {
8690
    }
8691
 
8692
    public getDestinationCode_args(
8693
      long providerId,
8694
      String pinCode)
8695
    {
8696
      this();
8697
      this.providerId = providerId;
8698
      setProviderIdIsSet(true);
8699
      this.pinCode = pinCode;
8700
    }
8701
 
8702
    /**
8703
     * Performs a deep copy on <i>other</i>.
8704
     */
8705
    public getDestinationCode_args(getDestinationCode_args other) {
8706
      __isset_bit_vector.clear();
8707
      __isset_bit_vector.or(other.__isset_bit_vector);
8708
      this.providerId = other.providerId;
8709
      if (other.isSetPinCode()) {
8710
        this.pinCode = other.pinCode;
8711
      }
8712
    }
8713
 
8714
    public getDestinationCode_args deepCopy() {
8715
      return new getDestinationCode_args(this);
8716
    }
8717
 
3430 rajveer 8718
    @Override
8719
    public void clear() {
8720
      setProviderIdIsSet(false);
8721
      this.providerId = 0;
8722
      this.pinCode = null;
730 chandransh 8723
    }
8724
 
8725
    public long getProviderId() {
8726
      return this.providerId;
8727
    }
8728
 
3430 rajveer 8729
    public void setProviderId(long providerId) {
730 chandransh 8730
      this.providerId = providerId;
8731
      setProviderIdIsSet(true);
8732
    }
8733
 
8734
    public void unsetProviderId() {
8735
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8736
    }
8737
 
3430 rajveer 8738
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8739
    public boolean isSetProviderId() {
8740
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8741
    }
8742
 
8743
    public void setProviderIdIsSet(boolean value) {
8744
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8745
    }
8746
 
8747
    public String getPinCode() {
8748
      return this.pinCode;
8749
    }
8750
 
3430 rajveer 8751
    public void setPinCode(String pinCode) {
730 chandransh 8752
      this.pinCode = pinCode;
8753
    }
8754
 
8755
    public void unsetPinCode() {
8756
      this.pinCode = null;
8757
    }
8758
 
3430 rajveer 8759
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8760
    public boolean isSetPinCode() {
8761
      return this.pinCode != null;
8762
    }
8763
 
8764
    public void setPinCodeIsSet(boolean value) {
8765
      if (!value) {
8766
        this.pinCode = null;
8767
      }
8768
    }
8769
 
8770
    public void setFieldValue(_Fields field, Object value) {
8771
      switch (field) {
8772
      case PROVIDER_ID:
8773
        if (value == null) {
8774
          unsetProviderId();
8775
        } else {
8776
          setProviderId((Long)value);
8777
        }
8778
        break;
8779
 
8780
      case PIN_CODE:
8781
        if (value == null) {
8782
          unsetPinCode();
8783
        } else {
8784
          setPinCode((String)value);
8785
        }
8786
        break;
8787
 
8788
      }
8789
    }
8790
 
8791
    public Object getFieldValue(_Fields field) {
8792
      switch (field) {
8793
      case PROVIDER_ID:
3430 rajveer 8794
        return Long.valueOf(getProviderId());
730 chandransh 8795
 
8796
      case PIN_CODE:
8797
        return getPinCode();
8798
 
8799
      }
8800
      throw new IllegalStateException();
8801
    }
8802
 
3430 rajveer 8803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8804
    public boolean isSet(_Fields field) {
8805
      if (field == null) {
8806
        throw new IllegalArgumentException();
8807
      }
730 chandransh 8808
 
8809
      switch (field) {
8810
      case PROVIDER_ID:
8811
        return isSetProviderId();
8812
      case PIN_CODE:
8813
        return isSetPinCode();
8814
      }
8815
      throw new IllegalStateException();
8816
    }
8817
 
8818
    @Override
8819
    public boolean equals(Object that) {
8820
      if (that == null)
8821
        return false;
8822
      if (that instanceof getDestinationCode_args)
8823
        return this.equals((getDestinationCode_args)that);
8824
      return false;
8825
    }
8826
 
8827
    public boolean equals(getDestinationCode_args that) {
8828
      if (that == null)
8829
        return false;
8830
 
8831
      boolean this_present_providerId = true;
8832
      boolean that_present_providerId = true;
8833
      if (this_present_providerId || that_present_providerId) {
8834
        if (!(this_present_providerId && that_present_providerId))
8835
          return false;
8836
        if (this.providerId != that.providerId)
8837
          return false;
8838
      }
8839
 
8840
      boolean this_present_pinCode = true && this.isSetPinCode();
8841
      boolean that_present_pinCode = true && that.isSetPinCode();
8842
      if (this_present_pinCode || that_present_pinCode) {
8843
        if (!(this_present_pinCode && that_present_pinCode))
8844
          return false;
8845
        if (!this.pinCode.equals(that.pinCode))
8846
          return false;
8847
      }
8848
 
8849
      return true;
8850
    }
8851
 
8852
    @Override
8853
    public int hashCode() {
8854
      return 0;
8855
    }
8856
 
8857
    public int compareTo(getDestinationCode_args other) {
8858
      if (!getClass().equals(other.getClass())) {
8859
        return getClass().getName().compareTo(other.getClass().getName());
8860
      }
8861
 
8862
      int lastComparison = 0;
8863
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8864
 
3430 rajveer 8865
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8866
      if (lastComparison != 0) {
8867
        return lastComparison;
8868
      }
3430 rajveer 8869
      if (isSetProviderId()) {
8870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8871
        if (lastComparison != 0) {
8872
          return lastComparison;
8873
        }
730 chandransh 8874
      }
3430 rajveer 8875
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8876
      if (lastComparison != 0) {
8877
        return lastComparison;
8878
      }
3430 rajveer 8879
      if (isSetPinCode()) {
8880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8881
        if (lastComparison != 0) {
8882
          return lastComparison;
8883
        }
730 chandransh 8884
      }
8885
      return 0;
8886
    }
8887
 
3430 rajveer 8888
    public _Fields fieldForId(int fieldId) {
8889
      return _Fields.findByThriftId(fieldId);
8890
    }
8891
 
8892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8893
      org.apache.thrift.protocol.TField field;
730 chandransh 8894
      iprot.readStructBegin();
8895
      while (true)
8896
      {
8897
        field = iprot.readFieldBegin();
3430 rajveer 8898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8899
          break;
8900
        }
3430 rajveer 8901
        switch (field.id) {
8902
          case 1: // PROVIDER_ID
8903
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8904
              this.providerId = iprot.readI64();
8905
              setProviderIdIsSet(true);
8906
            } else { 
8907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8908
            }
8909
            break;
8910
          case 2: // PIN_CODE
8911
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8912
              this.pinCode = iprot.readString();
8913
            } else { 
8914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8915
            }
8916
            break;
8917
          default:
8918
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8919
        }
3430 rajveer 8920
        iprot.readFieldEnd();
730 chandransh 8921
      }
8922
      iprot.readStructEnd();
8923
      validate();
8924
    }
8925
 
3430 rajveer 8926
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8927
      validate();
8928
 
8929
      oprot.writeStructBegin(STRUCT_DESC);
8930
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8931
      oprot.writeI64(this.providerId);
8932
      oprot.writeFieldEnd();
8933
      if (this.pinCode != null) {
8934
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8935
        oprot.writeString(this.pinCode);
8936
        oprot.writeFieldEnd();
8937
      }
8938
      oprot.writeFieldStop();
8939
      oprot.writeStructEnd();
8940
    }
8941
 
8942
    @Override
8943
    public String toString() {
8944
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8945
      boolean first = true;
8946
 
8947
      sb.append("providerId:");
8948
      sb.append(this.providerId);
8949
      first = false;
8950
      if (!first) sb.append(", ");
8951
      sb.append("pinCode:");
8952
      if (this.pinCode == null) {
8953
        sb.append("null");
8954
      } else {
8955
        sb.append(this.pinCode);
8956
      }
8957
      first = false;
8958
      sb.append(")");
8959
      return sb.toString();
8960
    }
8961
 
3430 rajveer 8962
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8963
      // check for required fields
8964
    }
8965
 
3430 rajveer 8966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8967
      try {
8968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8969
      } catch (org.apache.thrift.TException te) {
8970
        throw new java.io.IOException(te);
8971
      }
8972
    }
8973
 
8974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8975
      try {
8976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8977
      } catch (org.apache.thrift.TException te) {
8978
        throw new java.io.IOException(te);
8979
      }
8980
    }
8981
 
730 chandransh 8982
  }
8983
 
3430 rajveer 8984
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8986
 
3430 rajveer 8987
    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);
8988
    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 8989
 
3430 rajveer 8990
    private String success; // required
8991
    private LogisticsServiceException se; // required
730 chandransh 8992
 
8993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8995
      SUCCESS((short)0, "success"),
8996
      SE((short)1, "se");
8997
 
8998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8999
 
9000
      static {
9001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9002
          byName.put(field.getFieldName(), field);
9003
        }
9004
      }
9005
 
9006
      /**
9007
       * Find the _Fields constant that matches fieldId, or null if its not found.
9008
       */
9009
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9010
        switch(fieldId) {
9011
          case 0: // SUCCESS
9012
            return SUCCESS;
9013
          case 1: // SE
9014
            return SE;
9015
          default:
9016
            return null;
9017
        }
730 chandransh 9018
      }
9019
 
9020
      /**
9021
       * Find the _Fields constant that matches fieldId, throwing an exception
9022
       * if it is not found.
9023
       */
9024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9025
        _Fields fields = findByThriftId(fieldId);
9026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9027
        return fields;
9028
      }
9029
 
9030
      /**
9031
       * Find the _Fields constant that matches name, or null if its not found.
9032
       */
9033
      public static _Fields findByName(String name) {
9034
        return byName.get(name);
9035
      }
9036
 
9037
      private final short _thriftId;
9038
      private final String _fieldName;
9039
 
9040
      _Fields(short thriftId, String fieldName) {
9041
        _thriftId = thriftId;
9042
        _fieldName = fieldName;
9043
      }
9044
 
9045
      public short getThriftFieldId() {
9046
        return _thriftId;
9047
      }
9048
 
9049
      public String getFieldName() {
9050
        return _fieldName;
9051
      }
9052
    }
9053
 
9054
    // isset id assignments
9055
 
3430 rajveer 9056
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 9057
    static {
3430 rajveer 9058
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9059
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9060
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9061
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 9065
    }
9066
 
9067
    public getDestinationCode_result() {
9068
    }
9069
 
9070
    public getDestinationCode_result(
9071
      String success,
9072
      LogisticsServiceException se)
9073
    {
9074
      this();
9075
      this.success = success;
9076
      this.se = se;
9077
    }
9078
 
9079
    /**
9080
     * Performs a deep copy on <i>other</i>.
9081
     */
9082
    public getDestinationCode_result(getDestinationCode_result other) {
9083
      if (other.isSetSuccess()) {
9084
        this.success = other.success;
9085
      }
9086
      if (other.isSetSe()) {
9087
        this.se = new LogisticsServiceException(other.se);
9088
      }
9089
    }
9090
 
9091
    public getDestinationCode_result deepCopy() {
9092
      return new getDestinationCode_result(this);
9093
    }
9094
 
3430 rajveer 9095
    @Override
9096
    public void clear() {
9097
      this.success = null;
9098
      this.se = null;
730 chandransh 9099
    }
9100
 
9101
    public String getSuccess() {
9102
      return this.success;
9103
    }
9104
 
3430 rajveer 9105
    public void setSuccess(String success) {
730 chandransh 9106
      this.success = success;
9107
    }
9108
 
9109
    public void unsetSuccess() {
9110
      this.success = null;
9111
    }
9112
 
3430 rajveer 9113
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9114
    public boolean isSetSuccess() {
9115
      return this.success != null;
9116
    }
9117
 
9118
    public void setSuccessIsSet(boolean value) {
9119
      if (!value) {
9120
        this.success = null;
9121
      }
9122
    }
9123
 
9124
    public LogisticsServiceException getSe() {
9125
      return this.se;
9126
    }
9127
 
3430 rajveer 9128
    public void setSe(LogisticsServiceException se) {
730 chandransh 9129
      this.se = se;
9130
    }
9131
 
9132
    public void unsetSe() {
9133
      this.se = null;
9134
    }
9135
 
3430 rajveer 9136
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9137
    public boolean isSetSe() {
9138
      return this.se != null;
9139
    }
9140
 
9141
    public void setSeIsSet(boolean value) {
9142
      if (!value) {
9143
        this.se = null;
9144
      }
9145
    }
9146
 
9147
    public void setFieldValue(_Fields field, Object value) {
9148
      switch (field) {
9149
      case SUCCESS:
9150
        if (value == null) {
9151
          unsetSuccess();
9152
        } else {
9153
          setSuccess((String)value);
9154
        }
9155
        break;
9156
 
9157
      case SE:
9158
        if (value == null) {
9159
          unsetSe();
9160
        } else {
9161
          setSe((LogisticsServiceException)value);
9162
        }
9163
        break;
9164
 
9165
      }
9166
    }
9167
 
9168
    public Object getFieldValue(_Fields field) {
9169
      switch (field) {
9170
      case SUCCESS:
9171
        return getSuccess();
9172
 
9173
      case SE:
9174
        return getSe();
9175
 
9176
      }
9177
      throw new IllegalStateException();
9178
    }
9179
 
3430 rajveer 9180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9181
    public boolean isSet(_Fields field) {
9182
      if (field == null) {
9183
        throw new IllegalArgumentException();
9184
      }
730 chandransh 9185
 
9186
      switch (field) {
9187
      case SUCCESS:
9188
        return isSetSuccess();
9189
      case SE:
9190
        return isSetSe();
9191
      }
9192
      throw new IllegalStateException();
9193
    }
9194
 
9195
    @Override
9196
    public boolean equals(Object that) {
9197
      if (that == null)
9198
        return false;
9199
      if (that instanceof getDestinationCode_result)
9200
        return this.equals((getDestinationCode_result)that);
9201
      return false;
9202
    }
9203
 
9204
    public boolean equals(getDestinationCode_result that) {
9205
      if (that == null)
9206
        return false;
9207
 
9208
      boolean this_present_success = true && this.isSetSuccess();
9209
      boolean that_present_success = true && that.isSetSuccess();
9210
      if (this_present_success || that_present_success) {
9211
        if (!(this_present_success && that_present_success))
9212
          return false;
9213
        if (!this.success.equals(that.success))
9214
          return false;
9215
      }
9216
 
9217
      boolean this_present_se = true && this.isSetSe();
9218
      boolean that_present_se = true && that.isSetSe();
9219
      if (this_present_se || that_present_se) {
9220
        if (!(this_present_se && that_present_se))
9221
          return false;
9222
        if (!this.se.equals(that.se))
9223
          return false;
9224
      }
9225
 
9226
      return true;
9227
    }
9228
 
9229
    @Override
9230
    public int hashCode() {
9231
      return 0;
9232
    }
9233
 
9234
    public int compareTo(getDestinationCode_result other) {
9235
      if (!getClass().equals(other.getClass())) {
9236
        return getClass().getName().compareTo(other.getClass().getName());
9237
      }
9238
 
9239
      int lastComparison = 0;
9240
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9241
 
3430 rajveer 9242
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9243
      if (lastComparison != 0) {
9244
        return lastComparison;
9245
      }
3430 rajveer 9246
      if (isSetSuccess()) {
9247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9248
        if (lastComparison != 0) {
9249
          return lastComparison;
9250
        }
730 chandransh 9251
      }
3430 rajveer 9252
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9253
      if (lastComparison != 0) {
9254
        return lastComparison;
9255
      }
3430 rajveer 9256
      if (isSetSe()) {
9257
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9258
        if (lastComparison != 0) {
9259
          return lastComparison;
9260
        }
730 chandransh 9261
      }
9262
      return 0;
9263
    }
9264
 
3430 rajveer 9265
    public _Fields fieldForId(int fieldId) {
9266
      return _Fields.findByThriftId(fieldId);
9267
    }
9268
 
9269
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9270
      org.apache.thrift.protocol.TField field;
730 chandransh 9271
      iprot.readStructBegin();
9272
      while (true)
9273
      {
9274
        field = iprot.readFieldBegin();
3430 rajveer 9275
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9276
          break;
9277
        }
3430 rajveer 9278
        switch (field.id) {
9279
          case 0: // SUCCESS
9280
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9281
              this.success = iprot.readString();
9282
            } else { 
9283
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9284
            }
9285
            break;
9286
          case 1: // SE
9287
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9288
              this.se = new LogisticsServiceException();
9289
              this.se.read(iprot);
9290
            } else { 
9291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9292
            }
9293
            break;
9294
          default:
9295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9296
        }
3430 rajveer 9297
        iprot.readFieldEnd();
730 chandransh 9298
      }
9299
      iprot.readStructEnd();
9300
      validate();
9301
    }
9302
 
3430 rajveer 9303
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9304
      oprot.writeStructBegin(STRUCT_DESC);
9305
 
9306
      if (this.isSetSuccess()) {
9307
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9308
        oprot.writeString(this.success);
9309
        oprot.writeFieldEnd();
9310
      } else if (this.isSetSe()) {
9311
        oprot.writeFieldBegin(SE_FIELD_DESC);
9312
        this.se.write(oprot);
9313
        oprot.writeFieldEnd();
9314
      }
9315
      oprot.writeFieldStop();
9316
      oprot.writeStructEnd();
9317
    }
9318
 
9319
    @Override
9320
    public String toString() {
9321
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9322
      boolean first = true;
9323
 
9324
      sb.append("success:");
9325
      if (this.success == null) {
9326
        sb.append("null");
9327
      } else {
9328
        sb.append(this.success);
9329
      }
9330
      first = false;
9331
      if (!first) sb.append(", ");
9332
      sb.append("se:");
9333
      if (this.se == null) {
9334
        sb.append("null");
9335
      } else {
9336
        sb.append(this.se);
9337
      }
9338
      first = false;
9339
      sb.append(")");
9340
      return sb.toString();
9341
    }
9342
 
3430 rajveer 9343
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9344
      // check for required fields
9345
    }
9346
 
3430 rajveer 9347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9348
      try {
9349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9350
      } catch (org.apache.thrift.TException te) {
9351
        throw new java.io.IOException(te);
9352
      }
9353
    }
9354
 
9355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9356
      try {
9357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9358
      } catch (org.apache.thrift.TException te) {
9359
        throw new java.io.IOException(te);
9360
      }
9361
    }
9362
 
730 chandransh 9363
  }
9364
 
3430 rajveer 9365
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9367
 
3430 rajveer 9368
    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);
9369
    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 9370
 
3430 rajveer 9371
    private long providerId; // required
9372
    private String type; // required
1139 chandransh 9373
 
9374
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9375
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9376
      PROVIDER_ID((short)1, "providerId"),
9377
      TYPE((short)2, "type");
1139 chandransh 9378
 
9379
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9380
 
9381
      static {
9382
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9383
          byName.put(field.getFieldName(), field);
9384
        }
9385
      }
9386
 
9387
      /**
9388
       * Find the _Fields constant that matches fieldId, or null if its not found.
9389
       */
9390
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9391
        switch(fieldId) {
9392
          case 1: // PROVIDER_ID
9393
            return PROVIDER_ID;
9394
          case 2: // TYPE
9395
            return TYPE;
9396
          default:
9397
            return null;
9398
        }
1139 chandransh 9399
      }
9400
 
9401
      /**
9402
       * Find the _Fields constant that matches fieldId, throwing an exception
9403
       * if it is not found.
9404
       */
9405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9406
        _Fields fields = findByThriftId(fieldId);
9407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9408
        return fields;
9409
      }
9410
 
9411
      /**
9412
       * Find the _Fields constant that matches name, or null if its not found.
9413
       */
9414
      public static _Fields findByName(String name) {
9415
        return byName.get(name);
9416
      }
9417
 
9418
      private final short _thriftId;
9419
      private final String _fieldName;
9420
 
9421
      _Fields(short thriftId, String fieldName) {
9422
        _thriftId = thriftId;
9423
        _fieldName = fieldName;
9424
      }
9425
 
9426
      public short getThriftFieldId() {
9427
        return _thriftId;
9428
      }
9429
 
9430
      public String getFieldName() {
9431
        return _fieldName;
9432
      }
9433
    }
9434
 
9435
    // isset id assignments
9436
    private static final int __PROVIDERID_ISSET_ID = 0;
9437
    private BitSet __isset_bit_vector = new BitSet(1);
9438
 
3430 rajveer 9439
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9440
    static {
3430 rajveer 9441
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9442
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9443
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9444
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9445
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9446
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9447
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9448
    }
9449
 
9450
    public getFreeAwbCount_args() {
9451
    }
9452
 
9453
    public getFreeAwbCount_args(
3103 chandransh 9454
      long providerId,
9455
      String type)
1139 chandransh 9456
    {
9457
      this();
9458
      this.providerId = providerId;
9459
      setProviderIdIsSet(true);
3103 chandransh 9460
      this.type = type;
1139 chandransh 9461
    }
9462
 
9463
    /**
9464
     * Performs a deep copy on <i>other</i>.
9465
     */
9466
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9467
      __isset_bit_vector.clear();
9468
      __isset_bit_vector.or(other.__isset_bit_vector);
9469
      this.providerId = other.providerId;
3103 chandransh 9470
      if (other.isSetType()) {
9471
        this.type = other.type;
9472
      }
1139 chandransh 9473
    }
9474
 
9475
    public getFreeAwbCount_args deepCopy() {
9476
      return new getFreeAwbCount_args(this);
9477
    }
9478
 
3430 rajveer 9479
    @Override
9480
    public void clear() {
9481
      setProviderIdIsSet(false);
9482
      this.providerId = 0;
9483
      this.type = null;
1139 chandransh 9484
    }
9485
 
9486
    public long getProviderId() {
9487
      return this.providerId;
9488
    }
9489
 
3430 rajveer 9490
    public void setProviderId(long providerId) {
1139 chandransh 9491
      this.providerId = providerId;
9492
      setProviderIdIsSet(true);
9493
    }
9494
 
9495
    public void unsetProviderId() {
9496
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9497
    }
9498
 
3430 rajveer 9499
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9500
    public boolean isSetProviderId() {
9501
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9502
    }
9503
 
9504
    public void setProviderIdIsSet(boolean value) {
9505
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9506
    }
9507
 
3103 chandransh 9508
    public String getType() {
9509
      return this.type;
9510
    }
9511
 
3430 rajveer 9512
    public void setType(String type) {
3103 chandransh 9513
      this.type = type;
9514
    }
9515
 
9516
    public void unsetType() {
9517
      this.type = null;
9518
    }
9519
 
3430 rajveer 9520
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9521
    public boolean isSetType() {
9522
      return this.type != null;
9523
    }
9524
 
9525
    public void setTypeIsSet(boolean value) {
9526
      if (!value) {
9527
        this.type = null;
9528
      }
9529
    }
9530
 
1139 chandransh 9531
    public void setFieldValue(_Fields field, Object value) {
9532
      switch (field) {
9533
      case PROVIDER_ID:
9534
        if (value == null) {
9535
          unsetProviderId();
9536
        } else {
9537
          setProviderId((Long)value);
9538
        }
9539
        break;
9540
 
3103 chandransh 9541
      case TYPE:
9542
        if (value == null) {
9543
          unsetType();
9544
        } else {
9545
          setType((String)value);
9546
        }
9547
        break;
9548
 
1139 chandransh 9549
      }
9550
    }
9551
 
9552
    public Object getFieldValue(_Fields field) {
9553
      switch (field) {
9554
      case PROVIDER_ID:
3430 rajveer 9555
        return Long.valueOf(getProviderId());
1139 chandransh 9556
 
3103 chandransh 9557
      case TYPE:
9558
        return getType();
9559
 
1139 chandransh 9560
      }
9561
      throw new IllegalStateException();
9562
    }
9563
 
3430 rajveer 9564
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9565
    public boolean isSet(_Fields field) {
9566
      if (field == null) {
9567
        throw new IllegalArgumentException();
9568
      }
1139 chandransh 9569
 
9570
      switch (field) {
9571
      case PROVIDER_ID:
9572
        return isSetProviderId();
3103 chandransh 9573
      case TYPE:
9574
        return isSetType();
1139 chandransh 9575
      }
9576
      throw new IllegalStateException();
9577
    }
9578
 
9579
    @Override
9580
    public boolean equals(Object that) {
9581
      if (that == null)
9582
        return false;
9583
      if (that instanceof getFreeAwbCount_args)
9584
        return this.equals((getFreeAwbCount_args)that);
9585
      return false;
9586
    }
9587
 
9588
    public boolean equals(getFreeAwbCount_args that) {
9589
      if (that == null)
9590
        return false;
9591
 
9592
      boolean this_present_providerId = true;
9593
      boolean that_present_providerId = true;
9594
      if (this_present_providerId || that_present_providerId) {
9595
        if (!(this_present_providerId && that_present_providerId))
9596
          return false;
9597
        if (this.providerId != that.providerId)
9598
          return false;
9599
      }
9600
 
3103 chandransh 9601
      boolean this_present_type = true && this.isSetType();
9602
      boolean that_present_type = true && that.isSetType();
9603
      if (this_present_type || that_present_type) {
9604
        if (!(this_present_type && that_present_type))
9605
          return false;
9606
        if (!this.type.equals(that.type))
9607
          return false;
9608
      }
9609
 
1139 chandransh 9610
      return true;
9611
    }
9612
 
9613
    @Override
9614
    public int hashCode() {
9615
      return 0;
9616
    }
9617
 
9618
    public int compareTo(getFreeAwbCount_args other) {
9619
      if (!getClass().equals(other.getClass())) {
9620
        return getClass().getName().compareTo(other.getClass().getName());
9621
      }
9622
 
9623
      int lastComparison = 0;
9624
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9625
 
3430 rajveer 9626
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9627
      if (lastComparison != 0) {
9628
        return lastComparison;
9629
      }
3430 rajveer 9630
      if (isSetProviderId()) {
9631
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9632
        if (lastComparison != 0) {
9633
          return lastComparison;
9634
        }
1139 chandransh 9635
      }
3430 rajveer 9636
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9637
      if (lastComparison != 0) {
9638
        return lastComparison;
9639
      }
3430 rajveer 9640
      if (isSetType()) {
9641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9642
        if (lastComparison != 0) {
9643
          return lastComparison;
9644
        }
3103 chandransh 9645
      }
1139 chandransh 9646
      return 0;
9647
    }
9648
 
3430 rajveer 9649
    public _Fields fieldForId(int fieldId) {
9650
      return _Fields.findByThriftId(fieldId);
9651
    }
9652
 
9653
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9654
      org.apache.thrift.protocol.TField field;
1139 chandransh 9655
      iprot.readStructBegin();
9656
      while (true)
9657
      {
9658
        field = iprot.readFieldBegin();
3430 rajveer 9659
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9660
          break;
9661
        }
3430 rajveer 9662
        switch (field.id) {
9663
          case 1: // PROVIDER_ID
9664
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9665
              this.providerId = iprot.readI64();
9666
              setProviderIdIsSet(true);
9667
            } else { 
9668
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9669
            }
9670
            break;
9671
          case 2: // TYPE
9672
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9673
              this.type = iprot.readString();
9674
            } else { 
9675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9676
            }
9677
            break;
9678
          default:
9679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9680
        }
3430 rajveer 9681
        iprot.readFieldEnd();
1139 chandransh 9682
      }
9683
      iprot.readStructEnd();
9684
      validate();
9685
    }
9686
 
3430 rajveer 9687
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9688
      validate();
9689
 
9690
      oprot.writeStructBegin(STRUCT_DESC);
9691
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9692
      oprot.writeI64(this.providerId);
9693
      oprot.writeFieldEnd();
3103 chandransh 9694
      if (this.type != null) {
9695
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9696
        oprot.writeString(this.type);
9697
        oprot.writeFieldEnd();
9698
      }
1139 chandransh 9699
      oprot.writeFieldStop();
9700
      oprot.writeStructEnd();
9701
    }
9702
 
9703
    @Override
9704
    public String toString() {
9705
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9706
      boolean first = true;
9707
 
9708
      sb.append("providerId:");
9709
      sb.append(this.providerId);
9710
      first = false;
3103 chandransh 9711
      if (!first) sb.append(", ");
9712
      sb.append("type:");
9713
      if (this.type == null) {
9714
        sb.append("null");
9715
      } else {
9716
        sb.append(this.type);
9717
      }
9718
      first = false;
1139 chandransh 9719
      sb.append(")");
9720
      return sb.toString();
9721
    }
9722
 
3430 rajveer 9723
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9724
      // check for required fields
9725
    }
9726
 
3430 rajveer 9727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9728
      try {
9729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9730
      } catch (org.apache.thrift.TException te) {
9731
        throw new java.io.IOException(te);
9732
      }
9733
    }
9734
 
9735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9736
      try {
9737
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9738
      } catch (org.apache.thrift.TException te) {
9739
        throw new java.io.IOException(te);
9740
      }
9741
    }
9742
 
1139 chandransh 9743
  }
9744
 
3430 rajveer 9745
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9746
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9747
 
3430 rajveer 9748
    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 9749
 
3430 rajveer 9750
    private long success; // required
1139 chandransh 9751
 
9752
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9753
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9754
      SUCCESS((short)0, "success");
9755
 
9756
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9757
 
9758
      static {
9759
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9760
          byName.put(field.getFieldName(), field);
9761
        }
9762
      }
9763
 
9764
      /**
9765
       * Find the _Fields constant that matches fieldId, or null if its not found.
9766
       */
9767
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9768
        switch(fieldId) {
9769
          case 0: // SUCCESS
9770
            return SUCCESS;
9771
          default:
9772
            return null;
9773
        }
1139 chandransh 9774
      }
9775
 
9776
      /**
9777
       * Find the _Fields constant that matches fieldId, throwing an exception
9778
       * if it is not found.
9779
       */
9780
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9781
        _Fields fields = findByThriftId(fieldId);
9782
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9783
        return fields;
9784
      }
9785
 
9786
      /**
9787
       * Find the _Fields constant that matches name, or null if its not found.
9788
       */
9789
      public static _Fields findByName(String name) {
9790
        return byName.get(name);
9791
      }
9792
 
9793
      private final short _thriftId;
9794
      private final String _fieldName;
9795
 
9796
      _Fields(short thriftId, String fieldName) {
9797
        _thriftId = thriftId;
9798
        _fieldName = fieldName;
9799
      }
9800
 
9801
      public short getThriftFieldId() {
9802
        return _thriftId;
9803
      }
9804
 
9805
      public String getFieldName() {
9806
        return _fieldName;
9807
      }
9808
    }
9809
 
9810
    // isset id assignments
9811
    private static final int __SUCCESS_ISSET_ID = 0;
9812
    private BitSet __isset_bit_vector = new BitSet(1);
9813
 
3430 rajveer 9814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9815
    static {
3430 rajveer 9816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9817
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9821
    }
9822
 
9823
    public getFreeAwbCount_result() {
9824
    }
9825
 
9826
    public getFreeAwbCount_result(
9827
      long success)
9828
    {
9829
      this();
9830
      this.success = success;
9831
      setSuccessIsSet(true);
9832
    }
9833
 
9834
    /**
9835
     * Performs a deep copy on <i>other</i>.
9836
     */
9837
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9838
      __isset_bit_vector.clear();
9839
      __isset_bit_vector.or(other.__isset_bit_vector);
9840
      this.success = other.success;
9841
    }
9842
 
9843
    public getFreeAwbCount_result deepCopy() {
9844
      return new getFreeAwbCount_result(this);
9845
    }
9846
 
3430 rajveer 9847
    @Override
9848
    public void clear() {
9849
      setSuccessIsSet(false);
9850
      this.success = 0;
1139 chandransh 9851
    }
9852
 
9853
    public long getSuccess() {
9854
      return this.success;
9855
    }
9856
 
3430 rajveer 9857
    public void setSuccess(long success) {
1139 chandransh 9858
      this.success = success;
9859
      setSuccessIsSet(true);
9860
    }
9861
 
9862
    public void unsetSuccess() {
9863
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9864
    }
9865
 
3430 rajveer 9866
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9867
    public boolean isSetSuccess() {
9868
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9869
    }
9870
 
9871
    public void setSuccessIsSet(boolean value) {
9872
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9873
    }
9874
 
9875
    public void setFieldValue(_Fields field, Object value) {
9876
      switch (field) {
9877
      case SUCCESS:
9878
        if (value == null) {
9879
          unsetSuccess();
9880
        } else {
9881
          setSuccess((Long)value);
9882
        }
9883
        break;
9884
 
9885
      }
9886
    }
9887
 
9888
    public Object getFieldValue(_Fields field) {
9889
      switch (field) {
9890
      case SUCCESS:
3430 rajveer 9891
        return Long.valueOf(getSuccess());
1139 chandransh 9892
 
9893
      }
9894
      throw new IllegalStateException();
9895
    }
9896
 
3430 rajveer 9897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9898
    public boolean isSet(_Fields field) {
9899
      if (field == null) {
9900
        throw new IllegalArgumentException();
9901
      }
1139 chandransh 9902
 
9903
      switch (field) {
9904
      case SUCCESS:
9905
        return isSetSuccess();
9906
      }
9907
      throw new IllegalStateException();
9908
    }
9909
 
9910
    @Override
9911
    public boolean equals(Object that) {
9912
      if (that == null)
9913
        return false;
9914
      if (that instanceof getFreeAwbCount_result)
9915
        return this.equals((getFreeAwbCount_result)that);
9916
      return false;
9917
    }
9918
 
9919
    public boolean equals(getFreeAwbCount_result that) {
9920
      if (that == null)
9921
        return false;
9922
 
9923
      boolean this_present_success = true;
9924
      boolean that_present_success = true;
9925
      if (this_present_success || that_present_success) {
9926
        if (!(this_present_success && that_present_success))
9927
          return false;
9928
        if (this.success != that.success)
9929
          return false;
9930
      }
9931
 
9932
      return true;
9933
    }
9934
 
9935
    @Override
9936
    public int hashCode() {
9937
      return 0;
9938
    }
9939
 
9940
    public int compareTo(getFreeAwbCount_result other) {
9941
      if (!getClass().equals(other.getClass())) {
9942
        return getClass().getName().compareTo(other.getClass().getName());
9943
      }
9944
 
9945
      int lastComparison = 0;
9946
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9947
 
3430 rajveer 9948
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9949
      if (lastComparison != 0) {
9950
        return lastComparison;
9951
      }
3430 rajveer 9952
      if (isSetSuccess()) {
9953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9954
        if (lastComparison != 0) {
9955
          return lastComparison;
9956
        }
1139 chandransh 9957
      }
9958
      return 0;
9959
    }
9960
 
3430 rajveer 9961
    public _Fields fieldForId(int fieldId) {
9962
      return _Fields.findByThriftId(fieldId);
9963
    }
9964
 
9965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9966
      org.apache.thrift.protocol.TField field;
1139 chandransh 9967
      iprot.readStructBegin();
9968
      while (true)
9969
      {
9970
        field = iprot.readFieldBegin();
3430 rajveer 9971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9972
          break;
9973
        }
3430 rajveer 9974
        switch (field.id) {
9975
          case 0: // SUCCESS
9976
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9977
              this.success = iprot.readI64();
9978
              setSuccessIsSet(true);
9979
            } else { 
9980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9981
            }
9982
            break;
9983
          default:
9984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9985
        }
3430 rajveer 9986
        iprot.readFieldEnd();
1139 chandransh 9987
      }
9988
      iprot.readStructEnd();
9989
      validate();
9990
    }
9991
 
3430 rajveer 9992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9993
      oprot.writeStructBegin(STRUCT_DESC);
9994
 
9995
      if (this.isSetSuccess()) {
9996
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9997
        oprot.writeI64(this.success);
9998
        oprot.writeFieldEnd();
9999
      }
10000
      oprot.writeFieldStop();
10001
      oprot.writeStructEnd();
10002
    }
10003
 
10004
    @Override
10005
    public String toString() {
10006
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
10007
      boolean first = true;
10008
 
10009
      sb.append("success:");
10010
      sb.append(this.success);
10011
      first = false;
10012
      sb.append(")");
10013
      return sb.toString();
10014
    }
10015
 
3430 rajveer 10016
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 10017
      // check for required fields
10018
    }
10019
 
3430 rajveer 10020
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10021
      try {
10022
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10023
      } catch (org.apache.thrift.TException te) {
10024
        throw new java.io.IOException(te);
10025
      }
10026
    }
10027
 
10028
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10029
      try {
10030
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10031
      } catch (org.apache.thrift.TException te) {
10032
        throw new java.io.IOException(te);
10033
      }
10034
    }
10035
 
1139 chandransh 10036
  }
10037
 
3430 rajveer 10038
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
10039
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 10040
 
3430 rajveer 10041
    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);
10042
    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 10043
 
3430 rajveer 10044
    private long fromDate; // required
10045
    private long toDate; // required
1730 ankur.sing 10046
 
10047
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10048
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10049
      FROM_DATE((short)1, "fromDate"),
10050
      TO_DATE((short)2, "toDate");
10051
 
10052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10053
 
10054
      static {
10055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10056
          byName.put(field.getFieldName(), field);
10057
        }
10058
      }
10059
 
10060
      /**
10061
       * Find the _Fields constant that matches fieldId, or null if its not found.
10062
       */
10063
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10064
        switch(fieldId) {
10065
          case 1: // FROM_DATE
10066
            return FROM_DATE;
10067
          case 2: // TO_DATE
10068
            return TO_DATE;
10069
          default:
10070
            return null;
10071
        }
1730 ankur.sing 10072
      }
10073
 
10074
      /**
10075
       * Find the _Fields constant that matches fieldId, throwing an exception
10076
       * if it is not found.
10077
       */
10078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10079
        _Fields fields = findByThriftId(fieldId);
10080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10081
        return fields;
10082
      }
10083
 
10084
      /**
10085
       * Find the _Fields constant that matches name, or null if its not found.
10086
       */
10087
      public static _Fields findByName(String name) {
10088
        return byName.get(name);
10089
      }
10090
 
10091
      private final short _thriftId;
10092
      private final String _fieldName;
10093
 
10094
      _Fields(short thriftId, String fieldName) {
10095
        _thriftId = thriftId;
10096
        _fieldName = fieldName;
10097
      }
10098
 
10099
      public short getThriftFieldId() {
10100
        return _thriftId;
10101
      }
10102
 
10103
      public String getFieldName() {
10104
        return _fieldName;
10105
      }
10106
    }
10107
 
10108
    // isset id assignments
10109
    private static final int __FROMDATE_ISSET_ID = 0;
10110
    private static final int __TODATE_ISSET_ID = 1;
10111
    private BitSet __isset_bit_vector = new BitSet(2);
10112
 
3430 rajveer 10113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10114
    static {
3430 rajveer 10115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10116
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10118
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10122
    }
10123
 
10124
    public getHolidays_args() {
10125
    }
10126
 
10127
    public getHolidays_args(
10128
      long fromDate,
10129
      long toDate)
10130
    {
10131
      this();
10132
      this.fromDate = fromDate;
10133
      setFromDateIsSet(true);
10134
      this.toDate = toDate;
10135
      setToDateIsSet(true);
10136
    }
10137
 
10138
    /**
10139
     * Performs a deep copy on <i>other</i>.
10140
     */
10141
    public getHolidays_args(getHolidays_args other) {
10142
      __isset_bit_vector.clear();
10143
      __isset_bit_vector.or(other.__isset_bit_vector);
10144
      this.fromDate = other.fromDate;
10145
      this.toDate = other.toDate;
10146
    }
10147
 
10148
    public getHolidays_args deepCopy() {
10149
      return new getHolidays_args(this);
10150
    }
10151
 
3430 rajveer 10152
    @Override
10153
    public void clear() {
10154
      setFromDateIsSet(false);
10155
      this.fromDate = 0;
10156
      setToDateIsSet(false);
10157
      this.toDate = 0;
1730 ankur.sing 10158
    }
10159
 
10160
    public long getFromDate() {
10161
      return this.fromDate;
10162
    }
10163
 
3430 rajveer 10164
    public void setFromDate(long fromDate) {
1730 ankur.sing 10165
      this.fromDate = fromDate;
10166
      setFromDateIsSet(true);
10167
    }
10168
 
10169
    public void unsetFromDate() {
10170
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10171
    }
10172
 
3430 rajveer 10173
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10174
    public boolean isSetFromDate() {
10175
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10176
    }
10177
 
10178
    public void setFromDateIsSet(boolean value) {
10179
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10180
    }
10181
 
10182
    public long getToDate() {
10183
      return this.toDate;
10184
    }
10185
 
3430 rajveer 10186
    public void setToDate(long toDate) {
1730 ankur.sing 10187
      this.toDate = toDate;
10188
      setToDateIsSet(true);
10189
    }
10190
 
10191
    public void unsetToDate() {
10192
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10193
    }
10194
 
3430 rajveer 10195
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10196
    public boolean isSetToDate() {
10197
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10198
    }
10199
 
10200
    public void setToDateIsSet(boolean value) {
10201
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10202
    }
10203
 
10204
    public void setFieldValue(_Fields field, Object value) {
10205
      switch (field) {
10206
      case FROM_DATE:
10207
        if (value == null) {
10208
          unsetFromDate();
10209
        } else {
10210
          setFromDate((Long)value);
10211
        }
10212
        break;
10213
 
10214
      case TO_DATE:
10215
        if (value == null) {
10216
          unsetToDate();
10217
        } else {
10218
          setToDate((Long)value);
10219
        }
10220
        break;
10221
 
10222
      }
10223
    }
10224
 
10225
    public Object getFieldValue(_Fields field) {
10226
      switch (field) {
10227
      case FROM_DATE:
3430 rajveer 10228
        return Long.valueOf(getFromDate());
1730 ankur.sing 10229
 
10230
      case TO_DATE:
3430 rajveer 10231
        return Long.valueOf(getToDate());
1730 ankur.sing 10232
 
10233
      }
10234
      throw new IllegalStateException();
10235
    }
10236
 
3430 rajveer 10237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10238
    public boolean isSet(_Fields field) {
10239
      if (field == null) {
10240
        throw new IllegalArgumentException();
10241
      }
1730 ankur.sing 10242
 
10243
      switch (field) {
10244
      case FROM_DATE:
10245
        return isSetFromDate();
10246
      case TO_DATE:
10247
        return isSetToDate();
10248
      }
10249
      throw new IllegalStateException();
10250
    }
10251
 
10252
    @Override
10253
    public boolean equals(Object that) {
10254
      if (that == null)
10255
        return false;
10256
      if (that instanceof getHolidays_args)
10257
        return this.equals((getHolidays_args)that);
10258
      return false;
10259
    }
10260
 
10261
    public boolean equals(getHolidays_args that) {
10262
      if (that == null)
10263
        return false;
10264
 
10265
      boolean this_present_fromDate = true;
10266
      boolean that_present_fromDate = true;
10267
      if (this_present_fromDate || that_present_fromDate) {
10268
        if (!(this_present_fromDate && that_present_fromDate))
10269
          return false;
10270
        if (this.fromDate != that.fromDate)
10271
          return false;
10272
      }
10273
 
10274
      boolean this_present_toDate = true;
10275
      boolean that_present_toDate = true;
10276
      if (this_present_toDate || that_present_toDate) {
10277
        if (!(this_present_toDate && that_present_toDate))
10278
          return false;
10279
        if (this.toDate != that.toDate)
10280
          return false;
10281
      }
10282
 
10283
      return true;
10284
    }
10285
 
10286
    @Override
10287
    public int hashCode() {
10288
      return 0;
10289
    }
10290
 
10291
    public int compareTo(getHolidays_args other) {
10292
      if (!getClass().equals(other.getClass())) {
10293
        return getClass().getName().compareTo(other.getClass().getName());
10294
      }
10295
 
10296
      int lastComparison = 0;
10297
      getHolidays_args typedOther = (getHolidays_args)other;
10298
 
3430 rajveer 10299
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10300
      if (lastComparison != 0) {
10301
        return lastComparison;
10302
      }
3430 rajveer 10303
      if (isSetFromDate()) {
10304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10305
        if (lastComparison != 0) {
10306
          return lastComparison;
10307
        }
1730 ankur.sing 10308
      }
3430 rajveer 10309
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10310
      if (lastComparison != 0) {
10311
        return lastComparison;
10312
      }
3430 rajveer 10313
      if (isSetToDate()) {
10314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10315
        if (lastComparison != 0) {
10316
          return lastComparison;
10317
        }
1730 ankur.sing 10318
      }
10319
      return 0;
10320
    }
10321
 
3430 rajveer 10322
    public _Fields fieldForId(int fieldId) {
10323
      return _Fields.findByThriftId(fieldId);
10324
    }
10325
 
10326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10327
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10328
      iprot.readStructBegin();
10329
      while (true)
10330
      {
10331
        field = iprot.readFieldBegin();
3430 rajveer 10332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10333
          break;
10334
        }
3430 rajveer 10335
        switch (field.id) {
10336
          case 1: // FROM_DATE
10337
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10338
              this.fromDate = iprot.readI64();
10339
              setFromDateIsSet(true);
10340
            } else { 
10341
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10342
            }
10343
            break;
10344
          case 2: // TO_DATE
10345
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10346
              this.toDate = iprot.readI64();
10347
              setToDateIsSet(true);
10348
            } else { 
10349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10350
            }
10351
            break;
10352
          default:
10353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10354
        }
3430 rajveer 10355
        iprot.readFieldEnd();
1730 ankur.sing 10356
      }
10357
      iprot.readStructEnd();
10358
      validate();
10359
    }
10360
 
3430 rajveer 10361
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10362
      validate();
10363
 
10364
      oprot.writeStructBegin(STRUCT_DESC);
10365
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10366
      oprot.writeI64(this.fromDate);
10367
      oprot.writeFieldEnd();
10368
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10369
      oprot.writeI64(this.toDate);
10370
      oprot.writeFieldEnd();
10371
      oprot.writeFieldStop();
10372
      oprot.writeStructEnd();
10373
    }
10374
 
10375
    @Override
10376
    public String toString() {
10377
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10378
      boolean first = true;
10379
 
10380
      sb.append("fromDate:");
10381
      sb.append(this.fromDate);
10382
      first = false;
10383
      if (!first) sb.append(", ");
10384
      sb.append("toDate:");
10385
      sb.append(this.toDate);
10386
      first = false;
10387
      sb.append(")");
10388
      return sb.toString();
10389
    }
10390
 
3430 rajveer 10391
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10392
      // check for required fields
10393
    }
10394
 
3430 rajveer 10395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10396
      try {
10397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10398
      } catch (org.apache.thrift.TException te) {
10399
        throw new java.io.IOException(te);
10400
      }
10401
    }
10402
 
10403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10404
      try {
10405
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10406
      } catch (org.apache.thrift.TException te) {
10407
        throw new java.io.IOException(te);
10408
      }
10409
    }
10410
 
1730 ankur.sing 10411
  }
10412
 
3430 rajveer 10413
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10414
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10415
 
3430 rajveer 10416
    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 10417
 
3430 rajveer 10418
    private List<Long> success; // required
1730 ankur.sing 10419
 
10420
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10421
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10422
      SUCCESS((short)0, "success");
10423
 
10424
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10425
 
10426
      static {
10427
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10428
          byName.put(field.getFieldName(), field);
10429
        }
10430
      }
10431
 
10432
      /**
10433
       * Find the _Fields constant that matches fieldId, or null if its not found.
10434
       */
10435
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10436
        switch(fieldId) {
10437
          case 0: // SUCCESS
10438
            return SUCCESS;
10439
          default:
10440
            return null;
10441
        }
1730 ankur.sing 10442
      }
10443
 
10444
      /**
10445
       * Find the _Fields constant that matches fieldId, throwing an exception
10446
       * if it is not found.
10447
       */
10448
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10449
        _Fields fields = findByThriftId(fieldId);
10450
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10451
        return fields;
10452
      }
10453
 
10454
      /**
10455
       * Find the _Fields constant that matches name, or null if its not found.
10456
       */
10457
      public static _Fields findByName(String name) {
10458
        return byName.get(name);
10459
      }
10460
 
10461
      private final short _thriftId;
10462
      private final String _fieldName;
10463
 
10464
      _Fields(short thriftId, String fieldName) {
10465
        _thriftId = thriftId;
10466
        _fieldName = fieldName;
10467
      }
10468
 
10469
      public short getThriftFieldId() {
10470
        return _thriftId;
10471
      }
10472
 
10473
      public String getFieldName() {
10474
        return _fieldName;
10475
      }
10476
    }
10477
 
10478
    // isset id assignments
10479
 
3430 rajveer 10480
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10481
    static {
3430 rajveer 10482
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10483
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10484
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10485
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10488
    }
10489
 
10490
    public getHolidays_result() {
10491
    }
10492
 
10493
    public getHolidays_result(
10494
      List<Long> success)
10495
    {
10496
      this();
10497
      this.success = success;
10498
    }
10499
 
10500
    /**
10501
     * Performs a deep copy on <i>other</i>.
10502
     */
10503
    public getHolidays_result(getHolidays_result other) {
10504
      if (other.isSetSuccess()) {
10505
        List<Long> __this__success = new ArrayList<Long>();
10506
        for (Long other_element : other.success) {
10507
          __this__success.add(other_element);
10508
        }
10509
        this.success = __this__success;
10510
      }
10511
    }
10512
 
10513
    public getHolidays_result deepCopy() {
10514
      return new getHolidays_result(this);
10515
    }
10516
 
3430 rajveer 10517
    @Override
10518
    public void clear() {
10519
      this.success = null;
1730 ankur.sing 10520
    }
10521
 
10522
    public int getSuccessSize() {
10523
      return (this.success == null) ? 0 : this.success.size();
10524
    }
10525
 
10526
    public java.util.Iterator<Long> getSuccessIterator() {
10527
      return (this.success == null) ? null : this.success.iterator();
10528
    }
10529
 
10530
    public void addToSuccess(long elem) {
10531
      if (this.success == null) {
10532
        this.success = new ArrayList<Long>();
10533
      }
10534
      this.success.add(elem);
10535
    }
10536
 
10537
    public List<Long> getSuccess() {
10538
      return this.success;
10539
    }
10540
 
3430 rajveer 10541
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10542
      this.success = success;
10543
    }
10544
 
10545
    public void unsetSuccess() {
10546
      this.success = null;
10547
    }
10548
 
3430 rajveer 10549
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10550
    public boolean isSetSuccess() {
10551
      return this.success != null;
10552
    }
10553
 
10554
    public void setSuccessIsSet(boolean value) {
10555
      if (!value) {
10556
        this.success = null;
10557
      }
10558
    }
10559
 
10560
    public void setFieldValue(_Fields field, Object value) {
10561
      switch (field) {
10562
      case SUCCESS:
10563
        if (value == null) {
10564
          unsetSuccess();
10565
        } else {
10566
          setSuccess((List<Long>)value);
10567
        }
10568
        break;
10569
 
10570
      }
10571
    }
10572
 
10573
    public Object getFieldValue(_Fields field) {
10574
      switch (field) {
10575
      case SUCCESS:
10576
        return getSuccess();
10577
 
10578
      }
10579
      throw new IllegalStateException();
10580
    }
10581
 
3430 rajveer 10582
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10583
    public boolean isSet(_Fields field) {
10584
      if (field == null) {
10585
        throw new IllegalArgumentException();
10586
      }
1730 ankur.sing 10587
 
10588
      switch (field) {
10589
      case SUCCESS:
10590
        return isSetSuccess();
10591
      }
10592
      throw new IllegalStateException();
10593
    }
10594
 
10595
    @Override
10596
    public boolean equals(Object that) {
10597
      if (that == null)
10598
        return false;
10599
      if (that instanceof getHolidays_result)
10600
        return this.equals((getHolidays_result)that);
10601
      return false;
10602
    }
10603
 
10604
    public boolean equals(getHolidays_result that) {
10605
      if (that == null)
10606
        return false;
10607
 
10608
      boolean this_present_success = true && this.isSetSuccess();
10609
      boolean that_present_success = true && that.isSetSuccess();
10610
      if (this_present_success || that_present_success) {
10611
        if (!(this_present_success && that_present_success))
10612
          return false;
10613
        if (!this.success.equals(that.success))
10614
          return false;
10615
      }
10616
 
10617
      return true;
10618
    }
10619
 
10620
    @Override
10621
    public int hashCode() {
10622
      return 0;
10623
    }
10624
 
10625
    public int compareTo(getHolidays_result other) {
10626
      if (!getClass().equals(other.getClass())) {
10627
        return getClass().getName().compareTo(other.getClass().getName());
10628
      }
10629
 
10630
      int lastComparison = 0;
10631
      getHolidays_result typedOther = (getHolidays_result)other;
10632
 
3430 rajveer 10633
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10634
      if (lastComparison != 0) {
10635
        return lastComparison;
10636
      }
3430 rajveer 10637
      if (isSetSuccess()) {
10638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10639
        if (lastComparison != 0) {
10640
          return lastComparison;
10641
        }
1730 ankur.sing 10642
      }
10643
      return 0;
10644
    }
10645
 
3430 rajveer 10646
    public _Fields fieldForId(int fieldId) {
10647
      return _Fields.findByThriftId(fieldId);
10648
    }
10649
 
10650
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10651
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10652
      iprot.readStructBegin();
10653
      while (true)
10654
      {
10655
        field = iprot.readFieldBegin();
3430 rajveer 10656
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10657
          break;
10658
        }
3430 rajveer 10659
        switch (field.id) {
10660
          case 0: // SUCCESS
10661
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10662
              {
7792 anupam.sin 10663
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10664
                this.success = new ArrayList<Long>(_list12.size);
10665
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10666
                {
7792 anupam.sin 10667
                  long _elem14; // required
10668
                  _elem14 = iprot.readI64();
10669
                  this.success.add(_elem14);
1730 ankur.sing 10670
                }
3430 rajveer 10671
                iprot.readListEnd();
1730 ankur.sing 10672
              }
3430 rajveer 10673
            } else { 
10674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10675
            }
10676
            break;
10677
          default:
10678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10679
        }
3430 rajveer 10680
        iprot.readFieldEnd();
1730 ankur.sing 10681
      }
10682
      iprot.readStructEnd();
10683
      validate();
10684
    }
10685
 
3430 rajveer 10686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10687
      oprot.writeStructBegin(STRUCT_DESC);
10688
 
10689
      if (this.isSetSuccess()) {
10690
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10691
        {
3430 rajveer 10692
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10693
          for (long _iter15 : this.success)
1730 ankur.sing 10694
          {
7792 anupam.sin 10695
            oprot.writeI64(_iter15);
1730 ankur.sing 10696
          }
10697
          oprot.writeListEnd();
10698
        }
10699
        oprot.writeFieldEnd();
10700
      }
10701
      oprot.writeFieldStop();
10702
      oprot.writeStructEnd();
10703
    }
10704
 
10705
    @Override
10706
    public String toString() {
10707
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10708
      boolean first = true;
10709
 
10710
      sb.append("success:");
10711
      if (this.success == null) {
10712
        sb.append("null");
10713
      } else {
10714
        sb.append(this.success);
10715
      }
10716
      first = false;
10717
      sb.append(")");
10718
      return sb.toString();
10719
    }
10720
 
3430 rajveer 10721
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10722
      // check for required fields
10723
    }
10724
 
3430 rajveer 10725
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10726
      try {
10727
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10728
      } catch (org.apache.thrift.TException te) {
10729
        throw new java.io.IOException(te);
10730
      }
10731
    }
10732
 
10733
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10734
      try {
10735
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10736
      } catch (org.apache.thrift.TException te) {
10737
        throw new java.io.IOException(te);
10738
      }
10739
    }
10740
 
1730 ankur.sing 10741
  }
10742
 
4934 amit.gupta 10743
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10744
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10745
 
10746
    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);
10747
    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);
10748
    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);
10749
 
10750
    private long catalogItemId; // required
10751
    private String destination_pin; // required
10752
    private DeliveryType type; // required
10753
 
10754
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10755
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10756
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10757
      DESTINATION_PIN((short)2, "destination_pin"),
10758
      /**
10759
       * 
10760
       * @see DeliveryType
10761
       */
10762
      TYPE((short)3, "type");
10763
 
10764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10765
 
10766
      static {
10767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10768
          byName.put(field.getFieldName(), field);
10769
        }
10770
      }
10771
 
10772
      /**
10773
       * Find the _Fields constant that matches fieldId, or null if its not found.
10774
       */
10775
      public static _Fields findByThriftId(int fieldId) {
10776
        switch(fieldId) {
10777
          case 1: // CATALOG_ITEM_ID
10778
            return CATALOG_ITEM_ID;
10779
          case 2: // DESTINATION_PIN
10780
            return DESTINATION_PIN;
10781
          case 3: // TYPE
10782
            return TYPE;
10783
          default:
10784
            return null;
10785
        }
10786
      }
10787
 
10788
      /**
10789
       * Find the _Fields constant that matches fieldId, throwing an exception
10790
       * if it is not found.
10791
       */
10792
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10793
        _Fields fields = findByThriftId(fieldId);
10794
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10795
        return fields;
10796
      }
10797
 
10798
      /**
10799
       * Find the _Fields constant that matches name, or null if its not found.
10800
       */
10801
      public static _Fields findByName(String name) {
10802
        return byName.get(name);
10803
      }
10804
 
10805
      private final short _thriftId;
10806
      private final String _fieldName;
10807
 
10808
      _Fields(short thriftId, String fieldName) {
10809
        _thriftId = thriftId;
10810
        _fieldName = fieldName;
10811
      }
10812
 
10813
      public short getThriftFieldId() {
10814
        return _thriftId;
10815
      }
10816
 
10817
      public String getFieldName() {
10818
        return _fieldName;
10819
      }
10820
    }
10821
 
10822
    // isset id assignments
10823
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10824
    private BitSet __isset_bit_vector = new BitSet(1);
10825
 
10826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10827
    static {
10828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10829
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10831
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10833
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10834
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10837
    }
10838
 
10839
    public getEntityLogisticsEstimation_args() {
10840
    }
10841
 
10842
    public getEntityLogisticsEstimation_args(
10843
      long catalogItemId,
10844
      String destination_pin,
10845
      DeliveryType type)
10846
    {
10847
      this();
10848
      this.catalogItemId = catalogItemId;
10849
      setCatalogItemIdIsSet(true);
10850
      this.destination_pin = destination_pin;
10851
      this.type = type;
10852
    }
10853
 
10854
    /**
10855
     * Performs a deep copy on <i>other</i>.
10856
     */
10857
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10858
      __isset_bit_vector.clear();
10859
      __isset_bit_vector.or(other.__isset_bit_vector);
10860
      this.catalogItemId = other.catalogItemId;
10861
      if (other.isSetDestination_pin()) {
10862
        this.destination_pin = other.destination_pin;
10863
      }
10864
      if (other.isSetType()) {
10865
        this.type = other.type;
10866
      }
10867
    }
10868
 
10869
    public getEntityLogisticsEstimation_args deepCopy() {
10870
      return new getEntityLogisticsEstimation_args(this);
10871
    }
10872
 
10873
    @Override
10874
    public void clear() {
10875
      setCatalogItemIdIsSet(false);
10876
      this.catalogItemId = 0;
10877
      this.destination_pin = null;
10878
      this.type = null;
10879
    }
10880
 
10881
    public long getCatalogItemId() {
10882
      return this.catalogItemId;
10883
    }
10884
 
10885
    public void setCatalogItemId(long catalogItemId) {
10886
      this.catalogItemId = catalogItemId;
10887
      setCatalogItemIdIsSet(true);
10888
    }
10889
 
10890
    public void unsetCatalogItemId() {
10891
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10892
    }
10893
 
10894
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10895
    public boolean isSetCatalogItemId() {
10896
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10897
    }
10898
 
10899
    public void setCatalogItemIdIsSet(boolean value) {
10900
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10901
    }
10902
 
10903
    public String getDestination_pin() {
10904
      return this.destination_pin;
10905
    }
10906
 
10907
    public void setDestination_pin(String destination_pin) {
10908
      this.destination_pin = destination_pin;
10909
    }
10910
 
10911
    public void unsetDestination_pin() {
10912
      this.destination_pin = null;
10913
    }
10914
 
10915
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10916
    public boolean isSetDestination_pin() {
10917
      return this.destination_pin != null;
10918
    }
10919
 
10920
    public void setDestination_pinIsSet(boolean value) {
10921
      if (!value) {
10922
        this.destination_pin = null;
10923
      }
10924
    }
10925
 
10926
    /**
10927
     * 
10928
     * @see DeliveryType
10929
     */
10930
    public DeliveryType getType() {
10931
      return this.type;
10932
    }
10933
 
10934
    /**
10935
     * 
10936
     * @see DeliveryType
10937
     */
10938
    public void setType(DeliveryType type) {
10939
      this.type = type;
10940
    }
10941
 
10942
    public void unsetType() {
10943
      this.type = null;
10944
    }
10945
 
10946
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10947
    public boolean isSetType() {
10948
      return this.type != null;
10949
    }
10950
 
10951
    public void setTypeIsSet(boolean value) {
10952
      if (!value) {
10953
        this.type = null;
10954
      }
10955
    }
10956
 
10957
    public void setFieldValue(_Fields field, Object value) {
10958
      switch (field) {
10959
      case CATALOG_ITEM_ID:
10960
        if (value == null) {
10961
          unsetCatalogItemId();
10962
        } else {
10963
          setCatalogItemId((Long)value);
10964
        }
10965
        break;
10966
 
10967
      case DESTINATION_PIN:
10968
        if (value == null) {
10969
          unsetDestination_pin();
10970
        } else {
10971
          setDestination_pin((String)value);
10972
        }
10973
        break;
10974
 
10975
      case TYPE:
10976
        if (value == null) {
10977
          unsetType();
10978
        } else {
10979
          setType((DeliveryType)value);
10980
        }
10981
        break;
10982
 
10983
      }
10984
    }
10985
 
10986
    public Object getFieldValue(_Fields field) {
10987
      switch (field) {
10988
      case CATALOG_ITEM_ID:
10989
        return Long.valueOf(getCatalogItemId());
10990
 
10991
      case DESTINATION_PIN:
10992
        return getDestination_pin();
10993
 
10994
      case TYPE:
10995
        return getType();
10996
 
10997
      }
10998
      throw new IllegalStateException();
10999
    }
11000
 
11001
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11002
    public boolean isSet(_Fields field) {
11003
      if (field == null) {
11004
        throw new IllegalArgumentException();
11005
      }
11006
 
11007
      switch (field) {
11008
      case CATALOG_ITEM_ID:
11009
        return isSetCatalogItemId();
11010
      case DESTINATION_PIN:
11011
        return isSetDestination_pin();
11012
      case TYPE:
11013
        return isSetType();
11014
      }
11015
      throw new IllegalStateException();
11016
    }
11017
 
11018
    @Override
11019
    public boolean equals(Object that) {
11020
      if (that == null)
11021
        return false;
11022
      if (that instanceof getEntityLogisticsEstimation_args)
11023
        return this.equals((getEntityLogisticsEstimation_args)that);
11024
      return false;
11025
    }
11026
 
11027
    public boolean equals(getEntityLogisticsEstimation_args that) {
11028
      if (that == null)
11029
        return false;
11030
 
11031
      boolean this_present_catalogItemId = true;
11032
      boolean that_present_catalogItemId = true;
11033
      if (this_present_catalogItemId || that_present_catalogItemId) {
11034
        if (!(this_present_catalogItemId && that_present_catalogItemId))
11035
          return false;
11036
        if (this.catalogItemId != that.catalogItemId)
11037
          return false;
11038
      }
11039
 
11040
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
11041
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
11042
      if (this_present_destination_pin || that_present_destination_pin) {
11043
        if (!(this_present_destination_pin && that_present_destination_pin))
11044
          return false;
11045
        if (!this.destination_pin.equals(that.destination_pin))
11046
          return false;
11047
      }
11048
 
11049
      boolean this_present_type = true && this.isSetType();
11050
      boolean that_present_type = true && that.isSetType();
11051
      if (this_present_type || that_present_type) {
11052
        if (!(this_present_type && that_present_type))
11053
          return false;
11054
        if (!this.type.equals(that.type))
11055
          return false;
11056
      }
11057
 
11058
      return true;
11059
    }
11060
 
11061
    @Override
11062
    public int hashCode() {
11063
      return 0;
11064
    }
11065
 
11066
    public int compareTo(getEntityLogisticsEstimation_args other) {
11067
      if (!getClass().equals(other.getClass())) {
11068
        return getClass().getName().compareTo(other.getClass().getName());
11069
      }
11070
 
11071
      int lastComparison = 0;
11072
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
11073
 
11074
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
11075
      if (lastComparison != 0) {
11076
        return lastComparison;
11077
      }
11078
      if (isSetCatalogItemId()) {
11079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
11080
        if (lastComparison != 0) {
11081
          return lastComparison;
11082
        }
11083
      }
11084
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11085
      if (lastComparison != 0) {
11086
        return lastComparison;
11087
      }
11088
      if (isSetDestination_pin()) {
11089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11090
        if (lastComparison != 0) {
11091
          return lastComparison;
11092
        }
11093
      }
11094
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11095
      if (lastComparison != 0) {
11096
        return lastComparison;
11097
      }
11098
      if (isSetType()) {
11099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11100
        if (lastComparison != 0) {
11101
          return lastComparison;
11102
        }
11103
      }
11104
      return 0;
11105
    }
11106
 
11107
    public _Fields fieldForId(int fieldId) {
11108
      return _Fields.findByThriftId(fieldId);
11109
    }
11110
 
11111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11112
      org.apache.thrift.protocol.TField field;
11113
      iprot.readStructBegin();
11114
      while (true)
11115
      {
11116
        field = iprot.readFieldBegin();
11117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11118
          break;
11119
        }
11120
        switch (field.id) {
11121
          case 1: // CATALOG_ITEM_ID
11122
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11123
              this.catalogItemId = iprot.readI64();
11124
              setCatalogItemIdIsSet(true);
11125
            } else { 
11126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11127
            }
11128
            break;
11129
          case 2: // DESTINATION_PIN
11130
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11131
              this.destination_pin = iprot.readString();
11132
            } else { 
11133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11134
            }
11135
            break;
11136
          case 3: // TYPE
11137
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11138
              this.type = DeliveryType.findByValue(iprot.readI32());
11139
            } else { 
11140
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11141
            }
11142
            break;
11143
          default:
11144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11145
        }
11146
        iprot.readFieldEnd();
11147
      }
11148
      iprot.readStructEnd();
11149
      validate();
11150
    }
11151
 
11152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11153
      validate();
11154
 
11155
      oprot.writeStructBegin(STRUCT_DESC);
11156
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11157
      oprot.writeI64(this.catalogItemId);
11158
      oprot.writeFieldEnd();
11159
      if (this.destination_pin != null) {
11160
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11161
        oprot.writeString(this.destination_pin);
11162
        oprot.writeFieldEnd();
11163
      }
11164
      if (this.type != null) {
11165
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11166
        oprot.writeI32(this.type.getValue());
11167
        oprot.writeFieldEnd();
11168
      }
11169
      oprot.writeFieldStop();
11170
      oprot.writeStructEnd();
11171
    }
11172
 
11173
    @Override
11174
    public String toString() {
11175
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11176
      boolean first = true;
11177
 
11178
      sb.append("catalogItemId:");
11179
      sb.append(this.catalogItemId);
11180
      first = false;
11181
      if (!first) sb.append(", ");
11182
      sb.append("destination_pin:");
11183
      if (this.destination_pin == null) {
11184
        sb.append("null");
11185
      } else {
11186
        sb.append(this.destination_pin);
11187
      }
11188
      first = false;
11189
      if (!first) sb.append(", ");
11190
      sb.append("type:");
11191
      if (this.type == null) {
11192
        sb.append("null");
11193
      } else {
11194
        sb.append(this.type);
11195
      }
11196
      first = false;
11197
      sb.append(")");
11198
      return sb.toString();
11199
    }
11200
 
11201
    public void validate() throws org.apache.thrift.TException {
11202
      // check for required fields
11203
    }
11204
 
11205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11206
      try {
11207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11208
      } catch (org.apache.thrift.TException te) {
11209
        throw new java.io.IOException(te);
11210
      }
11211
    }
11212
 
11213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11214
      try {
11215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11216
      } catch (org.apache.thrift.TException te) {
11217
        throw new java.io.IOException(te);
11218
      }
11219
    }
11220
 
11221
  }
11222
 
11223
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11225
 
11226
    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);
11227
    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);
11228
 
9840 amit.gupta 11229
    private List<ItemText> success; // required
4934 amit.gupta 11230
    private LogisticsServiceException se; // required
11231
 
11232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11234
      SUCCESS((short)0, "success"),
11235
      SE((short)1, "se");
11236
 
11237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11238
 
11239
      static {
11240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11241
          byName.put(field.getFieldName(), field);
11242
        }
11243
      }
11244
 
11245
      /**
11246
       * Find the _Fields constant that matches fieldId, or null if its not found.
11247
       */
11248
      public static _Fields findByThriftId(int fieldId) {
11249
        switch(fieldId) {
11250
          case 0: // SUCCESS
11251
            return SUCCESS;
11252
          case 1: // SE
11253
            return SE;
11254
          default:
11255
            return null;
11256
        }
11257
      }
11258
 
11259
      /**
11260
       * Find the _Fields constant that matches fieldId, throwing an exception
11261
       * if it is not found.
11262
       */
11263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11264
        _Fields fields = findByThriftId(fieldId);
11265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11266
        return fields;
11267
      }
11268
 
11269
      /**
11270
       * Find the _Fields constant that matches name, or null if its not found.
11271
       */
11272
      public static _Fields findByName(String name) {
11273
        return byName.get(name);
11274
      }
11275
 
11276
      private final short _thriftId;
11277
      private final String _fieldName;
11278
 
11279
      _Fields(short thriftId, String fieldName) {
11280
        _thriftId = thriftId;
11281
        _fieldName = fieldName;
11282
      }
11283
 
11284
      public short getThriftFieldId() {
11285
        return _thriftId;
11286
      }
11287
 
11288
      public String getFieldName() {
11289
        return _fieldName;
11290
      }
11291
    }
11292
 
11293
    // isset id assignments
11294
 
11295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11296
    static {
11297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11298
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11299
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11300
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11301
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11305
    }
11306
 
11307
    public getEntityLogisticsEstimation_result() {
11308
    }
11309
 
11310
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11311
      List<ItemText> success,
4934 amit.gupta 11312
      LogisticsServiceException se)
11313
    {
11314
      this();
11315
      this.success = success;
11316
      this.se = se;
11317
    }
11318
 
11319
    /**
11320
     * Performs a deep copy on <i>other</i>.
11321
     */
11322
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11323
      if (other.isSetSuccess()) {
9840 amit.gupta 11324
        List<ItemText> __this__success = new ArrayList<ItemText>();
11325
        for (ItemText other_element : other.success) {
11326
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11327
        }
11328
        this.success = __this__success;
11329
      }
11330
      if (other.isSetSe()) {
11331
        this.se = new LogisticsServiceException(other.se);
11332
      }
11333
    }
11334
 
11335
    public getEntityLogisticsEstimation_result deepCopy() {
11336
      return new getEntityLogisticsEstimation_result(this);
11337
    }
11338
 
11339
    @Override
11340
    public void clear() {
11341
      this.success = null;
11342
      this.se = null;
11343
    }
11344
 
11345
    public int getSuccessSize() {
11346
      return (this.success == null) ? 0 : this.success.size();
11347
    }
11348
 
9840 amit.gupta 11349
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11350
      return (this.success == null) ? null : this.success.iterator();
11351
    }
11352
 
9840 amit.gupta 11353
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11354
      if (this.success == null) {
9840 amit.gupta 11355
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11356
      }
11357
      this.success.add(elem);
11358
    }
11359
 
9840 amit.gupta 11360
    public List<ItemText> getSuccess() {
4934 amit.gupta 11361
      return this.success;
11362
    }
11363
 
9840 amit.gupta 11364
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11365
      this.success = success;
11366
    }
11367
 
11368
    public void unsetSuccess() {
11369
      this.success = null;
11370
    }
11371
 
11372
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11373
    public boolean isSetSuccess() {
11374
      return this.success != null;
11375
    }
11376
 
11377
    public void setSuccessIsSet(boolean value) {
11378
      if (!value) {
11379
        this.success = null;
11380
      }
11381
    }
11382
 
11383
    public LogisticsServiceException getSe() {
11384
      return this.se;
11385
    }
11386
 
11387
    public void setSe(LogisticsServiceException se) {
11388
      this.se = se;
11389
    }
11390
 
11391
    public void unsetSe() {
11392
      this.se = null;
11393
    }
11394
 
11395
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11396
    public boolean isSetSe() {
11397
      return this.se != null;
11398
    }
11399
 
11400
    public void setSeIsSet(boolean value) {
11401
      if (!value) {
11402
        this.se = null;
11403
      }
11404
    }
11405
 
11406
    public void setFieldValue(_Fields field, Object value) {
11407
      switch (field) {
11408
      case SUCCESS:
11409
        if (value == null) {
11410
          unsetSuccess();
11411
        } else {
9840 amit.gupta 11412
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11413
        }
11414
        break;
11415
 
11416
      case SE:
11417
        if (value == null) {
11418
          unsetSe();
11419
        } else {
11420
          setSe((LogisticsServiceException)value);
11421
        }
11422
        break;
11423
 
11424
      }
11425
    }
11426
 
11427
    public Object getFieldValue(_Fields field) {
11428
      switch (field) {
11429
      case SUCCESS:
11430
        return getSuccess();
11431
 
11432
      case SE:
11433
        return getSe();
11434
 
11435
      }
11436
      throw new IllegalStateException();
11437
    }
11438
 
11439
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11440
    public boolean isSet(_Fields field) {
11441
      if (field == null) {
11442
        throw new IllegalArgumentException();
11443
      }
11444
 
11445
      switch (field) {
11446
      case SUCCESS:
11447
        return isSetSuccess();
11448
      case SE:
11449
        return isSetSe();
11450
      }
11451
      throw new IllegalStateException();
11452
    }
11453
 
11454
    @Override
11455
    public boolean equals(Object that) {
11456
      if (that == null)
11457
        return false;
11458
      if (that instanceof getEntityLogisticsEstimation_result)
11459
        return this.equals((getEntityLogisticsEstimation_result)that);
11460
      return false;
11461
    }
11462
 
11463
    public boolean equals(getEntityLogisticsEstimation_result that) {
11464
      if (that == null)
11465
        return false;
11466
 
11467
      boolean this_present_success = true && this.isSetSuccess();
11468
      boolean that_present_success = true && that.isSetSuccess();
11469
      if (this_present_success || that_present_success) {
11470
        if (!(this_present_success && that_present_success))
11471
          return false;
11472
        if (!this.success.equals(that.success))
11473
          return false;
11474
      }
11475
 
11476
      boolean this_present_se = true && this.isSetSe();
11477
      boolean that_present_se = true && that.isSetSe();
11478
      if (this_present_se || that_present_se) {
11479
        if (!(this_present_se && that_present_se))
11480
          return false;
11481
        if (!this.se.equals(that.se))
11482
          return false;
11483
      }
11484
 
11485
      return true;
11486
    }
11487
 
11488
    @Override
11489
    public int hashCode() {
11490
      return 0;
11491
    }
11492
 
11493
    public int compareTo(getEntityLogisticsEstimation_result other) {
11494
      if (!getClass().equals(other.getClass())) {
11495
        return getClass().getName().compareTo(other.getClass().getName());
11496
      }
11497
 
11498
      int lastComparison = 0;
11499
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11500
 
11501
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11502
      if (lastComparison != 0) {
11503
        return lastComparison;
11504
      }
11505
      if (isSetSuccess()) {
11506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11507
        if (lastComparison != 0) {
11508
          return lastComparison;
11509
        }
11510
      }
11511
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11512
      if (lastComparison != 0) {
11513
        return lastComparison;
11514
      }
11515
      if (isSetSe()) {
11516
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11517
        if (lastComparison != 0) {
11518
          return lastComparison;
11519
        }
11520
      }
11521
      return 0;
11522
    }
11523
 
11524
    public _Fields fieldForId(int fieldId) {
11525
      return _Fields.findByThriftId(fieldId);
11526
    }
11527
 
11528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11529
      org.apache.thrift.protocol.TField field;
11530
      iprot.readStructBegin();
11531
      while (true)
11532
      {
11533
        field = iprot.readFieldBegin();
11534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11535
          break;
11536
        }
11537
        switch (field.id) {
11538
          case 0: // SUCCESS
11539
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11540
              {
7792 anupam.sin 11541
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11542
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11543
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11544
                {
9840 amit.gupta 11545
                  ItemText _elem18; // required
11546
                  _elem18 = new ItemText();
11547
                  _elem18.read(iprot);
7792 anupam.sin 11548
                  this.success.add(_elem18);
4934 amit.gupta 11549
                }
11550
                iprot.readListEnd();
11551
              }
11552
            } else { 
11553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11554
            }
11555
            break;
11556
          case 1: // SE
11557
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11558
              this.se = new LogisticsServiceException();
11559
              this.se.read(iprot);
11560
            } else { 
11561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11562
            }
11563
            break;
11564
          default:
11565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11566
        }
11567
        iprot.readFieldEnd();
11568
      }
11569
      iprot.readStructEnd();
11570
      validate();
11571
    }
11572
 
11573
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11574
      oprot.writeStructBegin(STRUCT_DESC);
11575
 
11576
      if (this.isSetSuccess()) {
11577
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11578
        {
9840 amit.gupta 11579
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11580
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11581
          {
9840 amit.gupta 11582
            _iter19.write(oprot);
4934 amit.gupta 11583
          }
11584
          oprot.writeListEnd();
11585
        }
11586
        oprot.writeFieldEnd();
11587
      } else if (this.isSetSe()) {
11588
        oprot.writeFieldBegin(SE_FIELD_DESC);
11589
        this.se.write(oprot);
11590
        oprot.writeFieldEnd();
11591
      }
11592
      oprot.writeFieldStop();
11593
      oprot.writeStructEnd();
11594
    }
11595
 
11596
    @Override
11597
    public String toString() {
11598
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11599
      boolean first = true;
11600
 
11601
      sb.append("success:");
11602
      if (this.success == null) {
11603
        sb.append("null");
11604
      } else {
11605
        sb.append(this.success);
11606
      }
11607
      first = false;
11608
      if (!first) sb.append(", ");
11609
      sb.append("se:");
11610
      if (this.se == null) {
11611
        sb.append("null");
11612
      } else {
11613
        sb.append(this.se);
11614
      }
11615
      first = false;
11616
      sb.append(")");
11617
      return sb.toString();
11618
    }
11619
 
11620
    public void validate() throws org.apache.thrift.TException {
11621
      // check for required fields
11622
    }
11623
 
11624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11625
      try {
11626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11627
      } catch (org.apache.thrift.TException te) {
11628
        throw new java.io.IOException(te);
11629
      }
11630
    }
11631
 
11632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11633
      try {
11634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11635
      } catch (org.apache.thrift.TException te) {
11636
        throw new java.io.IOException(te);
11637
      }
11638
    }
11639
 
11640
  }
11641
 
5527 anupam.sin 11642
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11643
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11644
 
11645
    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);
11646
 
11647
    private long pickUp; // required
11648
 
11649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11651
      PICK_UP((short)1, "pickUp");
11652
 
11653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11654
 
11655
      static {
11656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11657
          byName.put(field.getFieldName(), field);
11658
        }
11659
      }
11660
 
11661
      /**
11662
       * Find the _Fields constant that matches fieldId, or null if its not found.
11663
       */
11664
      public static _Fields findByThriftId(int fieldId) {
11665
        switch(fieldId) {
11666
          case 1: // PICK_UP
11667
            return PICK_UP;
11668
          default:
11669
            return null;
11670
        }
11671
      }
11672
 
11673
      /**
11674
       * Find the _Fields constant that matches fieldId, throwing an exception
11675
       * if it is not found.
11676
       */
11677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11678
        _Fields fields = findByThriftId(fieldId);
11679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11680
        return fields;
11681
      }
11682
 
11683
      /**
11684
       * Find the _Fields constant that matches name, or null if its not found.
11685
       */
11686
      public static _Fields findByName(String name) {
11687
        return byName.get(name);
11688
      }
11689
 
11690
      private final short _thriftId;
11691
      private final String _fieldName;
11692
 
11693
      _Fields(short thriftId, String fieldName) {
11694
        _thriftId = thriftId;
11695
        _fieldName = fieldName;
11696
      }
11697
 
11698
      public short getThriftFieldId() {
11699
        return _thriftId;
11700
      }
11701
 
11702
      public String getFieldName() {
11703
        return _fieldName;
11704
      }
11705
    }
11706
 
11707
    // isset id assignments
11708
    private static final int __PICKUP_ISSET_ID = 0;
11709
    private BitSet __isset_bit_vector = new BitSet(1);
11710
 
11711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11712
    static {
11713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11714
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11718
    }
11719
 
11720
    public getProviderForPickupType_args() {
11721
    }
11722
 
11723
    public getProviderForPickupType_args(
11724
      long pickUp)
11725
    {
11726
      this();
11727
      this.pickUp = pickUp;
11728
      setPickUpIsSet(true);
11729
    }
11730
 
11731
    /**
11732
     * Performs a deep copy on <i>other</i>.
11733
     */
11734
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11735
      __isset_bit_vector.clear();
11736
      __isset_bit_vector.or(other.__isset_bit_vector);
11737
      this.pickUp = other.pickUp;
11738
    }
11739
 
11740
    public getProviderForPickupType_args deepCopy() {
11741
      return new getProviderForPickupType_args(this);
11742
    }
11743
 
11744
    @Override
11745
    public void clear() {
11746
      setPickUpIsSet(false);
11747
      this.pickUp = 0;
11748
    }
11749
 
11750
    public long getPickUp() {
11751
      return this.pickUp;
11752
    }
11753
 
11754
    public void setPickUp(long pickUp) {
11755
      this.pickUp = pickUp;
11756
      setPickUpIsSet(true);
11757
    }
11758
 
11759
    public void unsetPickUp() {
11760
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11761
    }
11762
 
11763
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11764
    public boolean isSetPickUp() {
11765
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11766
    }
11767
 
11768
    public void setPickUpIsSet(boolean value) {
11769
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11770
    }
11771
 
11772
    public void setFieldValue(_Fields field, Object value) {
11773
      switch (field) {
11774
      case PICK_UP:
11775
        if (value == null) {
11776
          unsetPickUp();
11777
        } else {
11778
          setPickUp((Long)value);
11779
        }
11780
        break;
11781
 
11782
      }
11783
    }
11784
 
11785
    public Object getFieldValue(_Fields field) {
11786
      switch (field) {
11787
      case PICK_UP:
11788
        return Long.valueOf(getPickUp());
11789
 
11790
      }
11791
      throw new IllegalStateException();
11792
    }
11793
 
11794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11795
    public boolean isSet(_Fields field) {
11796
      if (field == null) {
11797
        throw new IllegalArgumentException();
11798
      }
11799
 
11800
      switch (field) {
11801
      case PICK_UP:
11802
        return isSetPickUp();
11803
      }
11804
      throw new IllegalStateException();
11805
    }
11806
 
11807
    @Override
11808
    public boolean equals(Object that) {
11809
      if (that == null)
11810
        return false;
11811
      if (that instanceof getProviderForPickupType_args)
11812
        return this.equals((getProviderForPickupType_args)that);
11813
      return false;
11814
    }
11815
 
11816
    public boolean equals(getProviderForPickupType_args that) {
11817
      if (that == null)
11818
        return false;
11819
 
11820
      boolean this_present_pickUp = true;
11821
      boolean that_present_pickUp = true;
11822
      if (this_present_pickUp || that_present_pickUp) {
11823
        if (!(this_present_pickUp && that_present_pickUp))
11824
          return false;
11825
        if (this.pickUp != that.pickUp)
11826
          return false;
11827
      }
11828
 
11829
      return true;
11830
    }
11831
 
11832
    @Override
11833
    public int hashCode() {
11834
      return 0;
11835
    }
11836
 
11837
    public int compareTo(getProviderForPickupType_args other) {
11838
      if (!getClass().equals(other.getClass())) {
11839
        return getClass().getName().compareTo(other.getClass().getName());
11840
      }
11841
 
11842
      int lastComparison = 0;
11843
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11844
 
11845
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11846
      if (lastComparison != 0) {
11847
        return lastComparison;
11848
      }
11849
      if (isSetPickUp()) {
11850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11851
        if (lastComparison != 0) {
11852
          return lastComparison;
11853
        }
11854
      }
11855
      return 0;
11856
    }
11857
 
11858
    public _Fields fieldForId(int fieldId) {
11859
      return _Fields.findByThriftId(fieldId);
11860
    }
11861
 
11862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11863
      org.apache.thrift.protocol.TField field;
11864
      iprot.readStructBegin();
11865
      while (true)
11866
      {
11867
        field = iprot.readFieldBegin();
11868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11869
          break;
11870
        }
11871
        switch (field.id) {
11872
          case 1: // PICK_UP
11873
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11874
              this.pickUp = iprot.readI64();
11875
              setPickUpIsSet(true);
11876
            } else { 
11877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11878
            }
11879
            break;
11880
          default:
11881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11882
        }
11883
        iprot.readFieldEnd();
11884
      }
11885
      iprot.readStructEnd();
11886
      validate();
11887
    }
11888
 
11889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11890
      validate();
11891
 
11892
      oprot.writeStructBegin(STRUCT_DESC);
11893
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11894
      oprot.writeI64(this.pickUp);
11895
      oprot.writeFieldEnd();
11896
      oprot.writeFieldStop();
11897
      oprot.writeStructEnd();
11898
    }
11899
 
11900
    @Override
11901
    public String toString() {
11902
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11903
      boolean first = true;
11904
 
11905
      sb.append("pickUp:");
11906
      sb.append(this.pickUp);
11907
      first = false;
11908
      sb.append(")");
11909
      return sb.toString();
11910
    }
11911
 
11912
    public void validate() throws org.apache.thrift.TException {
11913
      // check for required fields
11914
    }
11915
 
11916
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11917
      try {
11918
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11919
      } catch (org.apache.thrift.TException te) {
11920
        throw new java.io.IOException(te);
11921
      }
11922
    }
11923
 
11924
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11925
      try {
11926
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11927
        __isset_bit_vector = new BitSet(1);
11928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11929
      } catch (org.apache.thrift.TException te) {
11930
        throw new java.io.IOException(te);
11931
      }
11932
    }
11933
 
11934
  }
11935
 
11936
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11938
 
11939
    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);
11940
 
11941
    private long success; // required
11942
 
11943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11945
      SUCCESS((short)0, "success");
11946
 
11947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11948
 
11949
      static {
11950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11951
          byName.put(field.getFieldName(), field);
11952
        }
11953
      }
11954
 
11955
      /**
11956
       * Find the _Fields constant that matches fieldId, or null if its not found.
11957
       */
11958
      public static _Fields findByThriftId(int fieldId) {
11959
        switch(fieldId) {
11960
          case 0: // SUCCESS
11961
            return SUCCESS;
11962
          default:
11963
            return null;
11964
        }
11965
      }
11966
 
11967
      /**
11968
       * Find the _Fields constant that matches fieldId, throwing an exception
11969
       * if it is not found.
11970
       */
11971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11972
        _Fields fields = findByThriftId(fieldId);
11973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11974
        return fields;
11975
      }
11976
 
11977
      /**
11978
       * Find the _Fields constant that matches name, or null if its not found.
11979
       */
11980
      public static _Fields findByName(String name) {
11981
        return byName.get(name);
11982
      }
11983
 
11984
      private final short _thriftId;
11985
      private final String _fieldName;
11986
 
11987
      _Fields(short thriftId, String fieldName) {
11988
        _thriftId = thriftId;
11989
        _fieldName = fieldName;
11990
      }
11991
 
11992
      public short getThriftFieldId() {
11993
        return _thriftId;
11994
      }
11995
 
11996
      public String getFieldName() {
11997
        return _fieldName;
11998
      }
11999
    }
12000
 
12001
    // isset id assignments
12002
    private static final int __SUCCESS_ISSET_ID = 0;
12003
    private BitSet __isset_bit_vector = new BitSet(1);
12004
 
12005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12006
    static {
12007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12008
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12010
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12011
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
12012
    }
12013
 
12014
    public getProviderForPickupType_result() {
12015
    }
12016
 
12017
    public getProviderForPickupType_result(
12018
      long success)
12019
    {
12020
      this();
12021
      this.success = success;
12022
      setSuccessIsSet(true);
12023
    }
12024
 
12025
    /**
12026
     * Performs a deep copy on <i>other</i>.
12027
     */
12028
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
12029
      __isset_bit_vector.clear();
12030
      __isset_bit_vector.or(other.__isset_bit_vector);
12031
      this.success = other.success;
12032
    }
12033
 
12034
    public getProviderForPickupType_result deepCopy() {
12035
      return new getProviderForPickupType_result(this);
12036
    }
12037
 
12038
    @Override
12039
    public void clear() {
12040
      setSuccessIsSet(false);
12041
      this.success = 0;
12042
    }
12043
 
12044
    public long getSuccess() {
12045
      return this.success;
12046
    }
12047
 
12048
    public void setSuccess(long success) {
12049
      this.success = success;
12050
      setSuccessIsSet(true);
12051
    }
12052
 
12053
    public void unsetSuccess() {
12054
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12055
    }
12056
 
12057
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12058
    public boolean isSetSuccess() {
12059
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12060
    }
12061
 
12062
    public void setSuccessIsSet(boolean value) {
12063
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12064
    }
12065
 
12066
    public void setFieldValue(_Fields field, Object value) {
12067
      switch (field) {
12068
      case SUCCESS:
12069
        if (value == null) {
12070
          unsetSuccess();
12071
        } else {
12072
          setSuccess((Long)value);
12073
        }
12074
        break;
12075
 
12076
      }
12077
    }
12078
 
12079
    public Object getFieldValue(_Fields field) {
12080
      switch (field) {
12081
      case SUCCESS:
12082
        return Long.valueOf(getSuccess());
12083
 
12084
      }
12085
      throw new IllegalStateException();
12086
    }
12087
 
12088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12089
    public boolean isSet(_Fields field) {
12090
      if (field == null) {
12091
        throw new IllegalArgumentException();
12092
      }
12093
 
12094
      switch (field) {
12095
      case SUCCESS:
12096
        return isSetSuccess();
12097
      }
12098
      throw new IllegalStateException();
12099
    }
12100
 
12101
    @Override
12102
    public boolean equals(Object that) {
12103
      if (that == null)
12104
        return false;
12105
      if (that instanceof getProviderForPickupType_result)
12106
        return this.equals((getProviderForPickupType_result)that);
12107
      return false;
12108
    }
12109
 
12110
    public boolean equals(getProviderForPickupType_result that) {
12111
      if (that == null)
12112
        return false;
12113
 
12114
      boolean this_present_success = true;
12115
      boolean that_present_success = true;
12116
      if (this_present_success || that_present_success) {
12117
        if (!(this_present_success && that_present_success))
12118
          return false;
12119
        if (this.success != that.success)
12120
          return false;
12121
      }
12122
 
12123
      return true;
12124
    }
12125
 
12126
    @Override
12127
    public int hashCode() {
12128
      return 0;
12129
    }
12130
 
12131
    public int compareTo(getProviderForPickupType_result other) {
12132
      if (!getClass().equals(other.getClass())) {
12133
        return getClass().getName().compareTo(other.getClass().getName());
12134
      }
12135
 
12136
      int lastComparison = 0;
12137
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12138
 
12139
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12140
      if (lastComparison != 0) {
12141
        return lastComparison;
12142
      }
12143
      if (isSetSuccess()) {
12144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12145
        if (lastComparison != 0) {
12146
          return lastComparison;
12147
        }
12148
      }
12149
      return 0;
12150
    }
12151
 
12152
    public _Fields fieldForId(int fieldId) {
12153
      return _Fields.findByThriftId(fieldId);
12154
    }
12155
 
12156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12157
      org.apache.thrift.protocol.TField field;
12158
      iprot.readStructBegin();
12159
      while (true)
12160
      {
12161
        field = iprot.readFieldBegin();
12162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12163
          break;
12164
        }
12165
        switch (field.id) {
12166
          case 0: // SUCCESS
12167
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12168
              this.success = iprot.readI64();
12169
              setSuccessIsSet(true);
12170
            } else { 
12171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12172
            }
12173
            break;
12174
          default:
12175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12176
        }
12177
        iprot.readFieldEnd();
12178
      }
12179
      iprot.readStructEnd();
12180
      validate();
12181
    }
12182
 
12183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12184
      oprot.writeStructBegin(STRUCT_DESC);
12185
 
12186
      if (this.isSetSuccess()) {
12187
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12188
        oprot.writeI64(this.success);
12189
        oprot.writeFieldEnd();
12190
      }
12191
      oprot.writeFieldStop();
12192
      oprot.writeStructEnd();
12193
    }
12194
 
12195
    @Override
12196
    public String toString() {
12197
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12198
      boolean first = true;
12199
 
12200
      sb.append("success:");
12201
      sb.append(this.success);
12202
      first = false;
12203
      sb.append(")");
12204
      return sb.toString();
12205
    }
12206
 
12207
    public void validate() throws org.apache.thrift.TException {
12208
      // check for required fields
12209
    }
12210
 
12211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12212
      try {
12213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12214
      } catch (org.apache.thrift.TException te) {
12215
        throw new java.io.IOException(te);
12216
      }
12217
    }
12218
 
12219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12220
      try {
12221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12222
      } catch (org.apache.thrift.TException te) {
12223
        throw new java.io.IOException(te);
12224
      }
12225
    }
12226
 
12227
  }
12228
 
5553 rajveer 12229
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12231
 
12232
 
12233
 
12234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12235
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12236
;
12237
 
12238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12239
 
12240
      static {
12241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12242
          byName.put(field.getFieldName(), field);
12243
        }
12244
      }
12245
 
12246
      /**
12247
       * Find the _Fields constant that matches fieldId, or null if its not found.
12248
       */
12249
      public static _Fields findByThriftId(int fieldId) {
12250
        switch(fieldId) {
12251
          default:
12252
            return null;
12253
        }
12254
      }
12255
 
12256
      /**
12257
       * Find the _Fields constant that matches fieldId, throwing an exception
12258
       * if it is not found.
12259
       */
12260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12261
        _Fields fields = findByThriftId(fieldId);
12262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12263
        return fields;
12264
      }
12265
 
12266
      /**
12267
       * Find the _Fields constant that matches name, or null if its not found.
12268
       */
12269
      public static _Fields findByName(String name) {
12270
        return byName.get(name);
12271
      }
12272
 
12273
      private final short _thriftId;
12274
      private final String _fieldName;
12275
 
12276
      _Fields(short thriftId, String fieldName) {
12277
        _thriftId = thriftId;
12278
        _fieldName = fieldName;
12279
      }
12280
 
12281
      public short getThriftFieldId() {
12282
        return _thriftId;
12283
      }
12284
 
12285
      public String getFieldName() {
12286
        return _fieldName;
12287
      }
12288
    }
12289
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12290
    static {
12291
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12294
    }
12295
 
12296
    public getAllPickupStores_args() {
12297
    }
12298
 
12299
    /**
12300
     * Performs a deep copy on <i>other</i>.
12301
     */
12302
    public getAllPickupStores_args(getAllPickupStores_args other) {
12303
    }
12304
 
12305
    public getAllPickupStores_args deepCopy() {
12306
      return new getAllPickupStores_args(this);
12307
    }
12308
 
12309
    @Override
12310
    public void clear() {
12311
    }
12312
 
12313
    public void setFieldValue(_Fields field, Object value) {
12314
      switch (field) {
12315
      }
12316
    }
12317
 
12318
    public Object getFieldValue(_Fields field) {
12319
      switch (field) {
12320
      }
12321
      throw new IllegalStateException();
12322
    }
12323
 
12324
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12325
    public boolean isSet(_Fields field) {
12326
      if (field == null) {
12327
        throw new IllegalArgumentException();
12328
      }
12329
 
12330
      switch (field) {
12331
      }
12332
      throw new IllegalStateException();
12333
    }
12334
 
12335
    @Override
12336
    public boolean equals(Object that) {
12337
      if (that == null)
12338
        return false;
12339
      if (that instanceof getAllPickupStores_args)
12340
        return this.equals((getAllPickupStores_args)that);
12341
      return false;
12342
    }
12343
 
12344
    public boolean equals(getAllPickupStores_args that) {
12345
      if (that == null)
12346
        return false;
12347
 
12348
      return true;
12349
    }
12350
 
12351
    @Override
12352
    public int hashCode() {
12353
      return 0;
12354
    }
12355
 
12356
    public int compareTo(getAllPickupStores_args other) {
12357
      if (!getClass().equals(other.getClass())) {
12358
        return getClass().getName().compareTo(other.getClass().getName());
12359
      }
12360
 
12361
      int lastComparison = 0;
12362
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12363
 
12364
      return 0;
12365
    }
12366
 
12367
    public _Fields fieldForId(int fieldId) {
12368
      return _Fields.findByThriftId(fieldId);
12369
    }
12370
 
12371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12372
      org.apache.thrift.protocol.TField field;
12373
      iprot.readStructBegin();
12374
      while (true)
12375
      {
12376
        field = iprot.readFieldBegin();
12377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12378
          break;
12379
        }
12380
        switch (field.id) {
12381
          default:
12382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12383
        }
12384
        iprot.readFieldEnd();
12385
      }
12386
      iprot.readStructEnd();
12387
      validate();
12388
    }
12389
 
12390
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12391
      validate();
12392
 
12393
      oprot.writeStructBegin(STRUCT_DESC);
12394
      oprot.writeFieldStop();
12395
      oprot.writeStructEnd();
12396
    }
12397
 
12398
    @Override
12399
    public String toString() {
12400
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12401
      boolean first = true;
12402
 
12403
      sb.append(")");
12404
      return sb.toString();
12405
    }
12406
 
12407
    public void validate() throws org.apache.thrift.TException {
12408
      // check for required fields
12409
    }
12410
 
12411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12412
      try {
12413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12414
      } catch (org.apache.thrift.TException te) {
12415
        throw new java.io.IOException(te);
12416
      }
12417
    }
12418
 
12419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12420
      try {
12421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12422
      } catch (org.apache.thrift.TException te) {
12423
        throw new java.io.IOException(te);
12424
      }
12425
    }
12426
 
12427
  }
12428
 
12429
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12431
 
12432
    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);
12433
 
12434
    private List<PickupStore> success; // required
12435
 
12436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12438
      SUCCESS((short)0, "success");
12439
 
12440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12441
 
12442
      static {
12443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12444
          byName.put(field.getFieldName(), field);
12445
        }
12446
      }
12447
 
12448
      /**
12449
       * Find the _Fields constant that matches fieldId, or null if its not found.
12450
       */
12451
      public static _Fields findByThriftId(int fieldId) {
12452
        switch(fieldId) {
12453
          case 0: // SUCCESS
12454
            return SUCCESS;
12455
          default:
12456
            return null;
12457
        }
12458
      }
12459
 
12460
      /**
12461
       * Find the _Fields constant that matches fieldId, throwing an exception
12462
       * if it is not found.
12463
       */
12464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12465
        _Fields fields = findByThriftId(fieldId);
12466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12467
        return fields;
12468
      }
12469
 
12470
      /**
12471
       * Find the _Fields constant that matches name, or null if its not found.
12472
       */
12473
      public static _Fields findByName(String name) {
12474
        return byName.get(name);
12475
      }
12476
 
12477
      private final short _thriftId;
12478
      private final String _fieldName;
12479
 
12480
      _Fields(short thriftId, String fieldName) {
12481
        _thriftId = thriftId;
12482
        _fieldName = fieldName;
12483
      }
12484
 
12485
      public short getThriftFieldId() {
12486
        return _thriftId;
12487
      }
12488
 
12489
      public String getFieldName() {
12490
        return _fieldName;
12491
      }
12492
    }
12493
 
12494
    // isset id assignments
12495
 
12496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12497
    static {
12498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12499
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12500
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12501
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12502
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12503
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12504
    }
12505
 
12506
    public getAllPickupStores_result() {
12507
    }
12508
 
12509
    public getAllPickupStores_result(
12510
      List<PickupStore> success)
12511
    {
12512
      this();
12513
      this.success = success;
12514
    }
12515
 
12516
    /**
12517
     * Performs a deep copy on <i>other</i>.
12518
     */
12519
    public getAllPickupStores_result(getAllPickupStores_result other) {
12520
      if (other.isSetSuccess()) {
12521
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12522
        for (PickupStore other_element : other.success) {
12523
          __this__success.add(new PickupStore(other_element));
12524
        }
12525
        this.success = __this__success;
12526
      }
12527
    }
12528
 
12529
    public getAllPickupStores_result deepCopy() {
12530
      return new getAllPickupStores_result(this);
12531
    }
12532
 
12533
    @Override
12534
    public void clear() {
12535
      this.success = null;
12536
    }
12537
 
12538
    public int getSuccessSize() {
12539
      return (this.success == null) ? 0 : this.success.size();
12540
    }
12541
 
12542
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12543
      return (this.success == null) ? null : this.success.iterator();
12544
    }
12545
 
12546
    public void addToSuccess(PickupStore elem) {
12547
      if (this.success == null) {
12548
        this.success = new ArrayList<PickupStore>();
12549
      }
12550
      this.success.add(elem);
12551
    }
12552
 
12553
    public List<PickupStore> getSuccess() {
12554
      return this.success;
12555
    }
12556
 
12557
    public void setSuccess(List<PickupStore> success) {
12558
      this.success = success;
12559
    }
12560
 
12561
    public void unsetSuccess() {
12562
      this.success = null;
12563
    }
12564
 
12565
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12566
    public boolean isSetSuccess() {
12567
      return this.success != null;
12568
    }
12569
 
12570
    public void setSuccessIsSet(boolean value) {
12571
      if (!value) {
12572
        this.success = null;
12573
      }
12574
    }
12575
 
12576
    public void setFieldValue(_Fields field, Object value) {
12577
      switch (field) {
12578
      case SUCCESS:
12579
        if (value == null) {
12580
          unsetSuccess();
12581
        } else {
12582
          setSuccess((List<PickupStore>)value);
12583
        }
12584
        break;
12585
 
12586
      }
12587
    }
12588
 
12589
    public Object getFieldValue(_Fields field) {
12590
      switch (field) {
12591
      case SUCCESS:
12592
        return getSuccess();
12593
 
12594
      }
12595
      throw new IllegalStateException();
12596
    }
12597
 
12598
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12599
    public boolean isSet(_Fields field) {
12600
      if (field == null) {
12601
        throw new IllegalArgumentException();
12602
      }
12603
 
12604
      switch (field) {
12605
      case SUCCESS:
12606
        return isSetSuccess();
12607
      }
12608
      throw new IllegalStateException();
12609
    }
12610
 
12611
    @Override
12612
    public boolean equals(Object that) {
12613
      if (that == null)
12614
        return false;
12615
      if (that instanceof getAllPickupStores_result)
12616
        return this.equals((getAllPickupStores_result)that);
12617
      return false;
12618
    }
12619
 
12620
    public boolean equals(getAllPickupStores_result that) {
12621
      if (that == null)
12622
        return false;
12623
 
12624
      boolean this_present_success = true && this.isSetSuccess();
12625
      boolean that_present_success = true && that.isSetSuccess();
12626
      if (this_present_success || that_present_success) {
12627
        if (!(this_present_success && that_present_success))
12628
          return false;
12629
        if (!this.success.equals(that.success))
12630
          return false;
12631
      }
12632
 
12633
      return true;
12634
    }
12635
 
12636
    @Override
12637
    public int hashCode() {
12638
      return 0;
12639
    }
12640
 
12641
    public int compareTo(getAllPickupStores_result other) {
12642
      if (!getClass().equals(other.getClass())) {
12643
        return getClass().getName().compareTo(other.getClass().getName());
12644
      }
12645
 
12646
      int lastComparison = 0;
12647
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12648
 
12649
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12650
      if (lastComparison != 0) {
12651
        return lastComparison;
12652
      }
12653
      if (isSetSuccess()) {
12654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12655
        if (lastComparison != 0) {
12656
          return lastComparison;
12657
        }
12658
      }
12659
      return 0;
12660
    }
12661
 
12662
    public _Fields fieldForId(int fieldId) {
12663
      return _Fields.findByThriftId(fieldId);
12664
    }
12665
 
12666
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12667
      org.apache.thrift.protocol.TField field;
12668
      iprot.readStructBegin();
12669
      while (true)
12670
      {
12671
        field = iprot.readFieldBegin();
12672
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12673
          break;
12674
        }
12675
        switch (field.id) {
12676
          case 0: // SUCCESS
12677
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12678
              {
7792 anupam.sin 12679
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12680
                this.success = new ArrayList<PickupStore>(_list20.size);
12681
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12682
                {
7792 anupam.sin 12683
                  PickupStore _elem22; // required
12684
                  _elem22 = new PickupStore();
12685
                  _elem22.read(iprot);
12686
                  this.success.add(_elem22);
5553 rajveer 12687
                }
12688
                iprot.readListEnd();
12689
              }
12690
            } else { 
12691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12692
            }
12693
            break;
12694
          default:
12695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12696
        }
12697
        iprot.readFieldEnd();
12698
      }
12699
      iprot.readStructEnd();
12700
      validate();
12701
    }
12702
 
12703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12704
      oprot.writeStructBegin(STRUCT_DESC);
12705
 
12706
      if (this.isSetSuccess()) {
12707
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12708
        {
12709
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12710
          for (PickupStore _iter23 : this.success)
5553 rajveer 12711
          {
7792 anupam.sin 12712
            _iter23.write(oprot);
5553 rajveer 12713
          }
12714
          oprot.writeListEnd();
12715
        }
12716
        oprot.writeFieldEnd();
12717
      }
12718
      oprot.writeFieldStop();
12719
      oprot.writeStructEnd();
12720
    }
12721
 
12722
    @Override
12723
    public String toString() {
12724
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12725
      boolean first = true;
12726
 
12727
      sb.append("success:");
12728
      if (this.success == null) {
12729
        sb.append("null");
12730
      } else {
12731
        sb.append(this.success);
12732
      }
12733
      first = false;
12734
      sb.append(")");
12735
      return sb.toString();
12736
    }
12737
 
12738
    public void validate() throws org.apache.thrift.TException {
12739
      // check for required fields
12740
    }
12741
 
12742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12743
      try {
12744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12745
      } catch (org.apache.thrift.TException te) {
12746
        throw new java.io.IOException(te);
12747
      }
12748
    }
12749
 
12750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12751
      try {
12752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12753
      } catch (org.apache.thrift.TException te) {
12754
        throw new java.io.IOException(te);
12755
      }
12756
    }
12757
 
12758
  }
12759
 
12760
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12762
 
12763
    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);
12764
 
12765
    private long storeId; // required
12766
 
12767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12769
      STORE_ID((short)1, "storeId");
12770
 
12771
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12772
 
12773
      static {
12774
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12775
          byName.put(field.getFieldName(), field);
12776
        }
12777
      }
12778
 
12779
      /**
12780
       * Find the _Fields constant that matches fieldId, or null if its not found.
12781
       */
12782
      public static _Fields findByThriftId(int fieldId) {
12783
        switch(fieldId) {
12784
          case 1: // STORE_ID
12785
            return STORE_ID;
12786
          default:
12787
            return null;
12788
        }
12789
      }
12790
 
12791
      /**
12792
       * Find the _Fields constant that matches fieldId, throwing an exception
12793
       * if it is not found.
12794
       */
12795
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12796
        _Fields fields = findByThriftId(fieldId);
12797
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12798
        return fields;
12799
      }
12800
 
12801
      /**
12802
       * Find the _Fields constant that matches name, or null if its not found.
12803
       */
12804
      public static _Fields findByName(String name) {
12805
        return byName.get(name);
12806
      }
12807
 
12808
      private final short _thriftId;
12809
      private final String _fieldName;
12810
 
12811
      _Fields(short thriftId, String fieldName) {
12812
        _thriftId = thriftId;
12813
        _fieldName = fieldName;
12814
      }
12815
 
12816
      public short getThriftFieldId() {
12817
        return _thriftId;
12818
      }
12819
 
12820
      public String getFieldName() {
12821
        return _fieldName;
12822
      }
12823
    }
12824
 
12825
    // isset id assignments
12826
    private static final int __STOREID_ISSET_ID = 0;
12827
    private BitSet __isset_bit_vector = new BitSet(1);
12828
 
12829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12830
    static {
12831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12832
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12836
    }
12837
 
12838
    public getPickupStore_args() {
12839
    }
12840
 
12841
    public getPickupStore_args(
12842
      long storeId)
12843
    {
12844
      this();
12845
      this.storeId = storeId;
12846
      setStoreIdIsSet(true);
12847
    }
12848
 
12849
    /**
12850
     * Performs a deep copy on <i>other</i>.
12851
     */
12852
    public getPickupStore_args(getPickupStore_args other) {
12853
      __isset_bit_vector.clear();
12854
      __isset_bit_vector.or(other.__isset_bit_vector);
12855
      this.storeId = other.storeId;
12856
    }
12857
 
12858
    public getPickupStore_args deepCopy() {
12859
      return new getPickupStore_args(this);
12860
    }
12861
 
12862
    @Override
12863
    public void clear() {
12864
      setStoreIdIsSet(false);
12865
      this.storeId = 0;
12866
    }
12867
 
12868
    public long getStoreId() {
12869
      return this.storeId;
12870
    }
12871
 
12872
    public void setStoreId(long storeId) {
12873
      this.storeId = storeId;
12874
      setStoreIdIsSet(true);
12875
    }
12876
 
12877
    public void unsetStoreId() {
12878
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12879
    }
12880
 
12881
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12882
    public boolean isSetStoreId() {
12883
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12884
    }
12885
 
12886
    public void setStoreIdIsSet(boolean value) {
12887
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12888
    }
12889
 
12890
    public void setFieldValue(_Fields field, Object value) {
12891
      switch (field) {
12892
      case STORE_ID:
12893
        if (value == null) {
12894
          unsetStoreId();
12895
        } else {
12896
          setStoreId((Long)value);
12897
        }
12898
        break;
12899
 
12900
      }
12901
    }
12902
 
12903
    public Object getFieldValue(_Fields field) {
12904
      switch (field) {
12905
      case STORE_ID:
12906
        return Long.valueOf(getStoreId());
12907
 
12908
      }
12909
      throw new IllegalStateException();
12910
    }
12911
 
12912
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12913
    public boolean isSet(_Fields field) {
12914
      if (field == null) {
12915
        throw new IllegalArgumentException();
12916
      }
12917
 
12918
      switch (field) {
12919
      case STORE_ID:
12920
        return isSetStoreId();
12921
      }
12922
      throw new IllegalStateException();
12923
    }
12924
 
12925
    @Override
12926
    public boolean equals(Object that) {
12927
      if (that == null)
12928
        return false;
12929
      if (that instanceof getPickupStore_args)
12930
        return this.equals((getPickupStore_args)that);
12931
      return false;
12932
    }
12933
 
12934
    public boolean equals(getPickupStore_args that) {
12935
      if (that == null)
12936
        return false;
12937
 
12938
      boolean this_present_storeId = true;
12939
      boolean that_present_storeId = true;
12940
      if (this_present_storeId || that_present_storeId) {
12941
        if (!(this_present_storeId && that_present_storeId))
12942
          return false;
12943
        if (this.storeId != that.storeId)
12944
          return false;
12945
      }
12946
 
12947
      return true;
12948
    }
12949
 
12950
    @Override
12951
    public int hashCode() {
12952
      return 0;
12953
    }
12954
 
12955
    public int compareTo(getPickupStore_args other) {
12956
      if (!getClass().equals(other.getClass())) {
12957
        return getClass().getName().compareTo(other.getClass().getName());
12958
      }
12959
 
12960
      int lastComparison = 0;
12961
      getPickupStore_args typedOther = (getPickupStore_args)other;
12962
 
12963
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12964
      if (lastComparison != 0) {
12965
        return lastComparison;
12966
      }
12967
      if (isSetStoreId()) {
12968
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12969
        if (lastComparison != 0) {
12970
          return lastComparison;
12971
        }
12972
      }
12973
      return 0;
12974
    }
12975
 
12976
    public _Fields fieldForId(int fieldId) {
12977
      return _Fields.findByThriftId(fieldId);
12978
    }
12979
 
12980
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12981
      org.apache.thrift.protocol.TField field;
12982
      iprot.readStructBegin();
12983
      while (true)
12984
      {
12985
        field = iprot.readFieldBegin();
12986
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12987
          break;
12988
        }
12989
        switch (field.id) {
12990
          case 1: // STORE_ID
12991
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12992
              this.storeId = iprot.readI64();
12993
              setStoreIdIsSet(true);
12994
            } else { 
12995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12996
            }
12997
            break;
12998
          default:
12999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13000
        }
13001
        iprot.readFieldEnd();
13002
      }
13003
      iprot.readStructEnd();
13004
      validate();
13005
    }
13006
 
13007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13008
      validate();
13009
 
13010
      oprot.writeStructBegin(STRUCT_DESC);
13011
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
13012
      oprot.writeI64(this.storeId);
13013
      oprot.writeFieldEnd();
13014
      oprot.writeFieldStop();
13015
      oprot.writeStructEnd();
13016
    }
13017
 
13018
    @Override
13019
    public String toString() {
13020
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
13021
      boolean first = true;
13022
 
13023
      sb.append("storeId:");
13024
      sb.append(this.storeId);
13025
      first = false;
13026
      sb.append(")");
13027
      return sb.toString();
13028
    }
13029
 
13030
    public void validate() throws org.apache.thrift.TException {
13031
      // check for required fields
13032
    }
13033
 
13034
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13035
      try {
13036
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13037
      } catch (org.apache.thrift.TException te) {
13038
        throw new java.io.IOException(te);
13039
      }
13040
    }
13041
 
13042
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13043
      try {
13044
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13045
        __isset_bit_vector = new BitSet(1);
13046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13047
      } catch (org.apache.thrift.TException te) {
13048
        throw new java.io.IOException(te);
13049
      }
13050
    }
13051
 
13052
  }
13053
 
13054
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
13055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
13056
 
13057
    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);
13058
 
13059
    private PickupStore success; // required
13060
 
13061
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13062
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13063
      SUCCESS((short)0, "success");
13064
 
13065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13066
 
13067
      static {
13068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13069
          byName.put(field.getFieldName(), field);
13070
        }
13071
      }
13072
 
13073
      /**
13074
       * Find the _Fields constant that matches fieldId, or null if its not found.
13075
       */
13076
      public static _Fields findByThriftId(int fieldId) {
13077
        switch(fieldId) {
13078
          case 0: // SUCCESS
13079
            return SUCCESS;
13080
          default:
13081
            return null;
13082
        }
13083
      }
13084
 
13085
      /**
13086
       * Find the _Fields constant that matches fieldId, throwing an exception
13087
       * if it is not found.
13088
       */
13089
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13090
        _Fields fields = findByThriftId(fieldId);
13091
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13092
        return fields;
13093
      }
13094
 
13095
      /**
13096
       * Find the _Fields constant that matches name, or null if its not found.
13097
       */
13098
      public static _Fields findByName(String name) {
13099
        return byName.get(name);
13100
      }
13101
 
13102
      private final short _thriftId;
13103
      private final String _fieldName;
13104
 
13105
      _Fields(short thriftId, String fieldName) {
13106
        _thriftId = thriftId;
13107
        _fieldName = fieldName;
13108
      }
13109
 
13110
      public short getThriftFieldId() {
13111
        return _thriftId;
13112
      }
13113
 
13114
      public String getFieldName() {
13115
        return _fieldName;
13116
      }
13117
    }
13118
 
13119
    // isset id assignments
13120
 
13121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13122
    static {
13123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13124
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13125
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13126
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13127
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13128
    }
13129
 
13130
    public getPickupStore_result() {
13131
    }
13132
 
13133
    public getPickupStore_result(
13134
      PickupStore success)
13135
    {
13136
      this();
13137
      this.success = success;
13138
    }
13139
 
13140
    /**
13141
     * Performs a deep copy on <i>other</i>.
13142
     */
13143
    public getPickupStore_result(getPickupStore_result other) {
13144
      if (other.isSetSuccess()) {
13145
        this.success = new PickupStore(other.success);
13146
      }
13147
    }
13148
 
13149
    public getPickupStore_result deepCopy() {
13150
      return new getPickupStore_result(this);
13151
    }
13152
 
13153
    @Override
13154
    public void clear() {
13155
      this.success = null;
13156
    }
13157
 
13158
    public PickupStore getSuccess() {
13159
      return this.success;
13160
    }
13161
 
13162
    public void setSuccess(PickupStore success) {
13163
      this.success = success;
13164
    }
13165
 
13166
    public void unsetSuccess() {
13167
      this.success = null;
13168
    }
13169
 
13170
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13171
    public boolean isSetSuccess() {
13172
      return this.success != null;
13173
    }
13174
 
13175
    public void setSuccessIsSet(boolean value) {
13176
      if (!value) {
13177
        this.success = null;
13178
      }
13179
    }
13180
 
13181
    public void setFieldValue(_Fields field, Object value) {
13182
      switch (field) {
13183
      case SUCCESS:
13184
        if (value == null) {
13185
          unsetSuccess();
13186
        } else {
13187
          setSuccess((PickupStore)value);
13188
        }
13189
        break;
13190
 
13191
      }
13192
    }
13193
 
13194
    public Object getFieldValue(_Fields field) {
13195
      switch (field) {
13196
      case SUCCESS:
13197
        return getSuccess();
13198
 
13199
      }
13200
      throw new IllegalStateException();
13201
    }
13202
 
13203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13204
    public boolean isSet(_Fields field) {
13205
      if (field == null) {
13206
        throw new IllegalArgumentException();
13207
      }
13208
 
13209
      switch (field) {
13210
      case SUCCESS:
13211
        return isSetSuccess();
13212
      }
13213
      throw new IllegalStateException();
13214
    }
13215
 
13216
    @Override
13217
    public boolean equals(Object that) {
13218
      if (that == null)
13219
        return false;
13220
      if (that instanceof getPickupStore_result)
13221
        return this.equals((getPickupStore_result)that);
13222
      return false;
13223
    }
13224
 
13225
    public boolean equals(getPickupStore_result that) {
13226
      if (that == null)
13227
        return false;
13228
 
13229
      boolean this_present_success = true && this.isSetSuccess();
13230
      boolean that_present_success = true && that.isSetSuccess();
13231
      if (this_present_success || that_present_success) {
13232
        if (!(this_present_success && that_present_success))
13233
          return false;
13234
        if (!this.success.equals(that.success))
13235
          return false;
13236
      }
13237
 
13238
      return true;
13239
    }
13240
 
13241
    @Override
13242
    public int hashCode() {
13243
      return 0;
13244
    }
13245
 
13246
    public int compareTo(getPickupStore_result other) {
13247
      if (!getClass().equals(other.getClass())) {
13248
        return getClass().getName().compareTo(other.getClass().getName());
13249
      }
13250
 
13251
      int lastComparison = 0;
13252
      getPickupStore_result typedOther = (getPickupStore_result)other;
13253
 
13254
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13255
      if (lastComparison != 0) {
13256
        return lastComparison;
13257
      }
13258
      if (isSetSuccess()) {
13259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13260
        if (lastComparison != 0) {
13261
          return lastComparison;
13262
        }
13263
      }
13264
      return 0;
13265
    }
13266
 
13267
    public _Fields fieldForId(int fieldId) {
13268
      return _Fields.findByThriftId(fieldId);
13269
    }
13270
 
13271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13272
      org.apache.thrift.protocol.TField field;
13273
      iprot.readStructBegin();
13274
      while (true)
13275
      {
13276
        field = iprot.readFieldBegin();
13277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13278
          break;
13279
        }
13280
        switch (field.id) {
13281
          case 0: // SUCCESS
13282
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13283
              this.success = new PickupStore();
13284
              this.success.read(iprot);
13285
            } else { 
13286
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13287
            }
13288
            break;
13289
          default:
13290
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13291
        }
13292
        iprot.readFieldEnd();
13293
      }
13294
      iprot.readStructEnd();
13295
      validate();
13296
    }
13297
 
13298
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13299
      oprot.writeStructBegin(STRUCT_DESC);
13300
 
13301
      if (this.isSetSuccess()) {
13302
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13303
        this.success.write(oprot);
13304
        oprot.writeFieldEnd();
13305
      }
13306
      oprot.writeFieldStop();
13307
      oprot.writeStructEnd();
13308
    }
13309
 
13310
    @Override
13311
    public String toString() {
13312
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13313
      boolean first = true;
13314
 
13315
      sb.append("success:");
13316
      if (this.success == null) {
13317
        sb.append("null");
13318
      } else {
13319
        sb.append(this.success);
13320
      }
13321
      first = false;
13322
      sb.append(")");
13323
      return sb.toString();
13324
    }
13325
 
13326
    public void validate() throws org.apache.thrift.TException {
13327
      // check for required fields
13328
    }
13329
 
13330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13331
      try {
13332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13333
      } catch (org.apache.thrift.TException te) {
13334
        throw new java.io.IOException(te);
13335
      }
13336
    }
13337
 
13338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13339
      try {
13340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13341
      } catch (org.apache.thrift.TException te) {
13342
        throw new java.io.IOException(te);
13343
      }
13344
    }
13345
 
13346
  }
13347
 
5719 rajveer 13348
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13350
 
13351
    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);
13352
 
13353
    private String hotspotId; // required
13354
 
13355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13357
      HOTSPOT_ID((short)1, "hotspotId");
13358
 
13359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13360
 
13361
      static {
13362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13363
          byName.put(field.getFieldName(), field);
13364
        }
13365
      }
13366
 
13367
      /**
13368
       * Find the _Fields constant that matches fieldId, or null if its not found.
13369
       */
13370
      public static _Fields findByThriftId(int fieldId) {
13371
        switch(fieldId) {
13372
          case 1: // HOTSPOT_ID
13373
            return HOTSPOT_ID;
13374
          default:
13375
            return null;
13376
        }
13377
      }
13378
 
13379
      /**
13380
       * Find the _Fields constant that matches fieldId, throwing an exception
13381
       * if it is not found.
13382
       */
13383
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13384
        _Fields fields = findByThriftId(fieldId);
13385
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13386
        return fields;
13387
      }
13388
 
13389
      /**
13390
       * Find the _Fields constant that matches name, or null if its not found.
13391
       */
13392
      public static _Fields findByName(String name) {
13393
        return byName.get(name);
13394
      }
13395
 
13396
      private final short _thriftId;
13397
      private final String _fieldName;
13398
 
13399
      _Fields(short thriftId, String fieldName) {
13400
        _thriftId = thriftId;
13401
        _fieldName = fieldName;
13402
      }
13403
 
13404
      public short getThriftFieldId() {
13405
        return _thriftId;
13406
      }
13407
 
13408
      public String getFieldName() {
13409
        return _fieldName;
13410
      }
13411
    }
13412
 
13413
    // isset id assignments
13414
 
13415
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13416
    static {
13417
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13418
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13419
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13420
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13421
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13422
    }
13423
 
13424
    public getPickupStoreByHotspotId_args() {
13425
    }
13426
 
13427
    public getPickupStoreByHotspotId_args(
13428
      String hotspotId)
13429
    {
13430
      this();
13431
      this.hotspotId = hotspotId;
13432
    }
13433
 
13434
    /**
13435
     * Performs a deep copy on <i>other</i>.
13436
     */
13437
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13438
      if (other.isSetHotspotId()) {
13439
        this.hotspotId = other.hotspotId;
13440
      }
13441
    }
13442
 
13443
    public getPickupStoreByHotspotId_args deepCopy() {
13444
      return new getPickupStoreByHotspotId_args(this);
13445
    }
13446
 
13447
    @Override
13448
    public void clear() {
13449
      this.hotspotId = null;
13450
    }
13451
 
13452
    public String getHotspotId() {
13453
      return this.hotspotId;
13454
    }
13455
 
13456
    public void setHotspotId(String hotspotId) {
13457
      this.hotspotId = hotspotId;
13458
    }
13459
 
13460
    public void unsetHotspotId() {
13461
      this.hotspotId = null;
13462
    }
13463
 
13464
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13465
    public boolean isSetHotspotId() {
13466
      return this.hotspotId != null;
13467
    }
13468
 
13469
    public void setHotspotIdIsSet(boolean value) {
13470
      if (!value) {
13471
        this.hotspotId = null;
13472
      }
13473
    }
13474
 
13475
    public void setFieldValue(_Fields field, Object value) {
13476
      switch (field) {
13477
      case HOTSPOT_ID:
13478
        if (value == null) {
13479
          unsetHotspotId();
13480
        } else {
13481
          setHotspotId((String)value);
13482
        }
13483
        break;
13484
 
13485
      }
13486
    }
13487
 
13488
    public Object getFieldValue(_Fields field) {
13489
      switch (field) {
13490
      case HOTSPOT_ID:
13491
        return getHotspotId();
13492
 
13493
      }
13494
      throw new IllegalStateException();
13495
    }
13496
 
13497
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13498
    public boolean isSet(_Fields field) {
13499
      if (field == null) {
13500
        throw new IllegalArgumentException();
13501
      }
13502
 
13503
      switch (field) {
13504
      case HOTSPOT_ID:
13505
        return isSetHotspotId();
13506
      }
13507
      throw new IllegalStateException();
13508
    }
13509
 
13510
    @Override
13511
    public boolean equals(Object that) {
13512
      if (that == null)
13513
        return false;
13514
      if (that instanceof getPickupStoreByHotspotId_args)
13515
        return this.equals((getPickupStoreByHotspotId_args)that);
13516
      return false;
13517
    }
13518
 
13519
    public boolean equals(getPickupStoreByHotspotId_args that) {
13520
      if (that == null)
13521
        return false;
13522
 
13523
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13524
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13525
      if (this_present_hotspotId || that_present_hotspotId) {
13526
        if (!(this_present_hotspotId && that_present_hotspotId))
13527
          return false;
13528
        if (!this.hotspotId.equals(that.hotspotId))
13529
          return false;
13530
      }
13531
 
13532
      return true;
13533
    }
13534
 
13535
    @Override
13536
    public int hashCode() {
13537
      return 0;
13538
    }
13539
 
13540
    public int compareTo(getPickupStoreByHotspotId_args other) {
13541
      if (!getClass().equals(other.getClass())) {
13542
        return getClass().getName().compareTo(other.getClass().getName());
13543
      }
13544
 
13545
      int lastComparison = 0;
13546
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13547
 
13548
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13549
      if (lastComparison != 0) {
13550
        return lastComparison;
13551
      }
13552
      if (isSetHotspotId()) {
13553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13554
        if (lastComparison != 0) {
13555
          return lastComparison;
13556
        }
13557
      }
13558
      return 0;
13559
    }
13560
 
13561
    public _Fields fieldForId(int fieldId) {
13562
      return _Fields.findByThriftId(fieldId);
13563
    }
13564
 
13565
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13566
      org.apache.thrift.protocol.TField field;
13567
      iprot.readStructBegin();
13568
      while (true)
13569
      {
13570
        field = iprot.readFieldBegin();
13571
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13572
          break;
13573
        }
13574
        switch (field.id) {
13575
          case 1: // HOTSPOT_ID
13576
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13577
              this.hotspotId = iprot.readString();
13578
            } else { 
13579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13580
            }
13581
            break;
13582
          default:
13583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13584
        }
13585
        iprot.readFieldEnd();
13586
      }
13587
      iprot.readStructEnd();
13588
      validate();
13589
    }
13590
 
13591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13592
      validate();
13593
 
13594
      oprot.writeStructBegin(STRUCT_DESC);
13595
      if (this.hotspotId != null) {
13596
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13597
        oprot.writeString(this.hotspotId);
13598
        oprot.writeFieldEnd();
13599
      }
13600
      oprot.writeFieldStop();
13601
      oprot.writeStructEnd();
13602
    }
13603
 
13604
    @Override
13605
    public String toString() {
13606
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13607
      boolean first = true;
13608
 
13609
      sb.append("hotspotId:");
13610
      if (this.hotspotId == null) {
13611
        sb.append("null");
13612
      } else {
13613
        sb.append(this.hotspotId);
13614
      }
13615
      first = false;
13616
      sb.append(")");
13617
      return sb.toString();
13618
    }
13619
 
13620
    public void validate() throws org.apache.thrift.TException {
13621
      // check for required fields
13622
    }
13623
 
13624
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13625
      try {
13626
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13627
      } catch (org.apache.thrift.TException te) {
13628
        throw new java.io.IOException(te);
13629
      }
13630
    }
13631
 
13632
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13633
      try {
13634
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13635
      } catch (org.apache.thrift.TException te) {
13636
        throw new java.io.IOException(te);
13637
      }
13638
    }
13639
 
13640
  }
13641
 
13642
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13643
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13644
 
13645
    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);
13646
 
13647
    private PickupStore success; // required
13648
 
13649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13651
      SUCCESS((short)0, "success");
13652
 
13653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13654
 
13655
      static {
13656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13657
          byName.put(field.getFieldName(), field);
13658
        }
13659
      }
13660
 
13661
      /**
13662
       * Find the _Fields constant that matches fieldId, or null if its not found.
13663
       */
13664
      public static _Fields findByThriftId(int fieldId) {
13665
        switch(fieldId) {
13666
          case 0: // SUCCESS
13667
            return SUCCESS;
13668
          default:
13669
            return null;
13670
        }
13671
      }
13672
 
13673
      /**
13674
       * Find the _Fields constant that matches fieldId, throwing an exception
13675
       * if it is not found.
13676
       */
13677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13678
        _Fields fields = findByThriftId(fieldId);
13679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13680
        return fields;
13681
      }
13682
 
13683
      /**
13684
       * Find the _Fields constant that matches name, or null if its not found.
13685
       */
13686
      public static _Fields findByName(String name) {
13687
        return byName.get(name);
13688
      }
13689
 
13690
      private final short _thriftId;
13691
      private final String _fieldName;
13692
 
13693
      _Fields(short thriftId, String fieldName) {
13694
        _thriftId = thriftId;
13695
        _fieldName = fieldName;
13696
      }
13697
 
13698
      public short getThriftFieldId() {
13699
        return _thriftId;
13700
      }
13701
 
13702
      public String getFieldName() {
13703
        return _fieldName;
13704
      }
13705
    }
13706
 
13707
    // isset id assignments
13708
 
13709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13710
    static {
13711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13712
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13713
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13714
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13715
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13716
    }
13717
 
13718
    public getPickupStoreByHotspotId_result() {
13719
    }
13720
 
13721
    public getPickupStoreByHotspotId_result(
13722
      PickupStore success)
13723
    {
13724
      this();
13725
      this.success = success;
13726
    }
13727
 
13728
    /**
13729
     * Performs a deep copy on <i>other</i>.
13730
     */
13731
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13732
      if (other.isSetSuccess()) {
13733
        this.success = new PickupStore(other.success);
13734
      }
13735
    }
13736
 
13737
    public getPickupStoreByHotspotId_result deepCopy() {
13738
      return new getPickupStoreByHotspotId_result(this);
13739
    }
13740
 
13741
    @Override
13742
    public void clear() {
13743
      this.success = null;
13744
    }
13745
 
13746
    public PickupStore getSuccess() {
13747
      return this.success;
13748
    }
13749
 
13750
    public void setSuccess(PickupStore success) {
13751
      this.success = success;
13752
    }
13753
 
13754
    public void unsetSuccess() {
13755
      this.success = null;
13756
    }
13757
 
13758
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13759
    public boolean isSetSuccess() {
13760
      return this.success != null;
13761
    }
13762
 
13763
    public void setSuccessIsSet(boolean value) {
13764
      if (!value) {
13765
        this.success = null;
13766
      }
13767
    }
13768
 
13769
    public void setFieldValue(_Fields field, Object value) {
13770
      switch (field) {
13771
      case SUCCESS:
13772
        if (value == null) {
13773
          unsetSuccess();
13774
        } else {
13775
          setSuccess((PickupStore)value);
13776
        }
13777
        break;
13778
 
13779
      }
13780
    }
13781
 
13782
    public Object getFieldValue(_Fields field) {
13783
      switch (field) {
13784
      case SUCCESS:
13785
        return getSuccess();
13786
 
13787
      }
13788
      throw new IllegalStateException();
13789
    }
13790
 
13791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13792
    public boolean isSet(_Fields field) {
13793
      if (field == null) {
13794
        throw new IllegalArgumentException();
13795
      }
13796
 
13797
      switch (field) {
13798
      case SUCCESS:
13799
        return isSetSuccess();
13800
      }
13801
      throw new IllegalStateException();
13802
    }
13803
 
13804
    @Override
13805
    public boolean equals(Object that) {
13806
      if (that == null)
13807
        return false;
13808
      if (that instanceof getPickupStoreByHotspotId_result)
13809
        return this.equals((getPickupStoreByHotspotId_result)that);
13810
      return false;
13811
    }
13812
 
13813
    public boolean equals(getPickupStoreByHotspotId_result that) {
13814
      if (that == null)
13815
        return false;
13816
 
13817
      boolean this_present_success = true && this.isSetSuccess();
13818
      boolean that_present_success = true && that.isSetSuccess();
13819
      if (this_present_success || that_present_success) {
13820
        if (!(this_present_success && that_present_success))
13821
          return false;
13822
        if (!this.success.equals(that.success))
13823
          return false;
13824
      }
13825
 
13826
      return true;
13827
    }
13828
 
13829
    @Override
13830
    public int hashCode() {
13831
      return 0;
13832
    }
13833
 
13834
    public int compareTo(getPickupStoreByHotspotId_result other) {
13835
      if (!getClass().equals(other.getClass())) {
13836
        return getClass().getName().compareTo(other.getClass().getName());
13837
      }
13838
 
13839
      int lastComparison = 0;
13840
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13841
 
13842
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13843
      if (lastComparison != 0) {
13844
        return lastComparison;
13845
      }
13846
      if (isSetSuccess()) {
13847
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13848
        if (lastComparison != 0) {
13849
          return lastComparison;
13850
        }
13851
      }
13852
      return 0;
13853
    }
13854
 
13855
    public _Fields fieldForId(int fieldId) {
13856
      return _Fields.findByThriftId(fieldId);
13857
    }
13858
 
13859
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13860
      org.apache.thrift.protocol.TField field;
13861
      iprot.readStructBegin();
13862
      while (true)
13863
      {
13864
        field = iprot.readFieldBegin();
13865
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13866
          break;
13867
        }
13868
        switch (field.id) {
13869
          case 0: // SUCCESS
13870
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13871
              this.success = new PickupStore();
13872
              this.success.read(iprot);
13873
            } else { 
13874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13875
            }
13876
            break;
13877
          default:
13878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13879
        }
13880
        iprot.readFieldEnd();
13881
      }
13882
      iprot.readStructEnd();
13883
      validate();
13884
    }
13885
 
13886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13887
      oprot.writeStructBegin(STRUCT_DESC);
13888
 
13889
      if (this.isSetSuccess()) {
13890
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13891
        this.success.write(oprot);
13892
        oprot.writeFieldEnd();
13893
      }
13894
      oprot.writeFieldStop();
13895
      oprot.writeStructEnd();
13896
    }
13897
 
13898
    @Override
13899
    public String toString() {
13900
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13901
      boolean first = true;
13902
 
13903
      sb.append("success:");
13904
      if (this.success == null) {
13905
        sb.append("null");
13906
      } else {
13907
        sb.append(this.success);
13908
      }
13909
      first = false;
13910
      sb.append(")");
13911
      return sb.toString();
13912
    }
13913
 
13914
    public void validate() throws org.apache.thrift.TException {
13915
      // check for required fields
13916
    }
13917
 
13918
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13919
      try {
13920
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13921
      } catch (org.apache.thrift.TException te) {
13922
        throw new java.io.IOException(te);
13923
      }
13924
    }
13925
 
13926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13927
      try {
13928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13929
      } catch (org.apache.thrift.TException te) {
13930
        throw new java.io.IOException(te);
13931
      }
13932
    }
13933
 
13934
  }
13935
 
6322 amar.kumar 13936
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13938
 
13939
    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);
13940
    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);
13941
    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);
13942
    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);
13943
    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);
13944
    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 13945
    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 13946
 
13947
    private long providerId; // required
13948
    private String pincode; // required
13949
    private String destCode; // required
13950
    private boolean exp; // required
13951
    private boolean cod; // required
13952
    private int stationType; // required
6524 rajveer 13953
    private boolean otgAvailable; // required
6322 amar.kumar 13954
 
13955
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13956
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13957
      PROVIDER_ID((short)1, "providerId"),
13958
      PINCODE((short)2, "pincode"),
13959
      DEST_CODE((short)3, "destCode"),
13960
      EXP((short)4, "exp"),
13961
      COD((short)5, "cod"),
6524 rajveer 13962
      STATION_TYPE((short)6, "stationType"),
13963
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13964
 
13965
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13966
 
13967
      static {
13968
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13969
          byName.put(field.getFieldName(), field);
13970
        }
13971
      }
13972
 
13973
      /**
13974
       * Find the _Fields constant that matches fieldId, or null if its not found.
13975
       */
13976
      public static _Fields findByThriftId(int fieldId) {
13977
        switch(fieldId) {
13978
          case 1: // PROVIDER_ID
13979
            return PROVIDER_ID;
13980
          case 2: // PINCODE
13981
            return PINCODE;
13982
          case 3: // DEST_CODE
13983
            return DEST_CODE;
13984
          case 4: // EXP
13985
            return EXP;
13986
          case 5: // COD
13987
            return COD;
13988
          case 6: // STATION_TYPE
13989
            return STATION_TYPE;
6524 rajveer 13990
          case 7: // OTG_AVAILABLE
13991
            return OTG_AVAILABLE;
6322 amar.kumar 13992
          default:
13993
            return null;
13994
        }
13995
      }
13996
 
13997
      /**
13998
       * Find the _Fields constant that matches fieldId, throwing an exception
13999
       * if it is not found.
14000
       */
14001
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14002
        _Fields fields = findByThriftId(fieldId);
14003
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14004
        return fields;
14005
      }
14006
 
14007
      /**
14008
       * Find the _Fields constant that matches name, or null if its not found.
14009
       */
14010
      public static _Fields findByName(String name) {
14011
        return byName.get(name);
14012
      }
14013
 
14014
      private final short _thriftId;
14015
      private final String _fieldName;
14016
 
14017
      _Fields(short thriftId, String fieldName) {
14018
        _thriftId = thriftId;
14019
        _fieldName = fieldName;
14020
      }
14021
 
14022
      public short getThriftFieldId() {
14023
        return _thriftId;
14024
      }
14025
 
14026
      public String getFieldName() {
14027
        return _fieldName;
14028
      }
14029
    }
14030
 
14031
    // isset id assignments
14032
    private static final int __PROVIDERID_ISSET_ID = 0;
14033
    private static final int __EXP_ISSET_ID = 1;
14034
    private static final int __COD_ISSET_ID = 2;
14035
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 14036
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
14037
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 14038
 
14039
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14040
    static {
14041
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14042
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14044
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14045
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14046
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14047
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14048
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14049
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14050
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14052
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 14054
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
14058
    }
14059
 
14060
    public addPincode_args() {
14061
    }
14062
 
14063
    public addPincode_args(
14064
      long providerId,
14065
      String pincode,
14066
      String destCode,
14067
      boolean exp,
14068
      boolean cod,
6524 rajveer 14069
      int stationType,
14070
      boolean otgAvailable)
6322 amar.kumar 14071
    {
14072
      this();
14073
      this.providerId = providerId;
14074
      setProviderIdIsSet(true);
14075
      this.pincode = pincode;
14076
      this.destCode = destCode;
14077
      this.exp = exp;
14078
      setExpIsSet(true);
14079
      this.cod = cod;
14080
      setCodIsSet(true);
14081
      this.stationType = stationType;
14082
      setStationTypeIsSet(true);
6524 rajveer 14083
      this.otgAvailable = otgAvailable;
14084
      setOtgAvailableIsSet(true);
6322 amar.kumar 14085
    }
14086
 
14087
    /**
14088
     * Performs a deep copy on <i>other</i>.
14089
     */
14090
    public addPincode_args(addPincode_args other) {
14091
      __isset_bit_vector.clear();
14092
      __isset_bit_vector.or(other.__isset_bit_vector);
14093
      this.providerId = other.providerId;
14094
      if (other.isSetPincode()) {
14095
        this.pincode = other.pincode;
14096
      }
14097
      if (other.isSetDestCode()) {
14098
        this.destCode = other.destCode;
14099
      }
14100
      this.exp = other.exp;
14101
      this.cod = other.cod;
14102
      this.stationType = other.stationType;
6524 rajveer 14103
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14104
    }
14105
 
14106
    public addPincode_args deepCopy() {
14107
      return new addPincode_args(this);
14108
    }
14109
 
14110
    @Override
14111
    public void clear() {
14112
      setProviderIdIsSet(false);
14113
      this.providerId = 0;
14114
      this.pincode = null;
14115
      this.destCode = null;
14116
      setExpIsSet(false);
14117
      this.exp = false;
14118
      setCodIsSet(false);
14119
      this.cod = false;
14120
      setStationTypeIsSet(false);
14121
      this.stationType = 0;
6524 rajveer 14122
      setOtgAvailableIsSet(false);
14123
      this.otgAvailable = false;
6322 amar.kumar 14124
    }
14125
 
14126
    public long getProviderId() {
14127
      return this.providerId;
14128
    }
14129
 
14130
    public void setProviderId(long providerId) {
14131
      this.providerId = providerId;
14132
      setProviderIdIsSet(true);
14133
    }
14134
 
14135
    public void unsetProviderId() {
14136
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14137
    }
14138
 
14139
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14140
    public boolean isSetProviderId() {
14141
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14142
    }
14143
 
14144
    public void setProviderIdIsSet(boolean value) {
14145
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14146
    }
14147
 
14148
    public String getPincode() {
14149
      return this.pincode;
14150
    }
14151
 
14152
    public void setPincode(String pincode) {
14153
      this.pincode = pincode;
14154
    }
14155
 
14156
    public void unsetPincode() {
14157
      this.pincode = null;
14158
    }
14159
 
14160
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14161
    public boolean isSetPincode() {
14162
      return this.pincode != null;
14163
    }
14164
 
14165
    public void setPincodeIsSet(boolean value) {
14166
      if (!value) {
14167
        this.pincode = null;
14168
      }
14169
    }
14170
 
14171
    public String getDestCode() {
14172
      return this.destCode;
14173
    }
14174
 
14175
    public void setDestCode(String destCode) {
14176
      this.destCode = destCode;
14177
    }
14178
 
14179
    public void unsetDestCode() {
14180
      this.destCode = null;
14181
    }
14182
 
14183
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14184
    public boolean isSetDestCode() {
14185
      return this.destCode != null;
14186
    }
14187
 
14188
    public void setDestCodeIsSet(boolean value) {
14189
      if (!value) {
14190
        this.destCode = null;
14191
      }
14192
    }
14193
 
14194
    public boolean isExp() {
14195
      return this.exp;
14196
    }
14197
 
14198
    public void setExp(boolean exp) {
14199
      this.exp = exp;
14200
      setExpIsSet(true);
14201
    }
14202
 
14203
    public void unsetExp() {
14204
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14205
    }
14206
 
14207
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14208
    public boolean isSetExp() {
14209
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14210
    }
14211
 
14212
    public void setExpIsSet(boolean value) {
14213
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14214
    }
14215
 
14216
    public boolean isCod() {
14217
      return this.cod;
14218
    }
14219
 
14220
    public void setCod(boolean cod) {
14221
      this.cod = cod;
14222
      setCodIsSet(true);
14223
    }
14224
 
14225
    public void unsetCod() {
14226
      __isset_bit_vector.clear(__COD_ISSET_ID);
14227
    }
14228
 
14229
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14230
    public boolean isSetCod() {
14231
      return __isset_bit_vector.get(__COD_ISSET_ID);
14232
    }
14233
 
14234
    public void setCodIsSet(boolean value) {
14235
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14236
    }
14237
 
14238
    public int getStationType() {
14239
      return this.stationType;
14240
    }
14241
 
14242
    public void setStationType(int stationType) {
14243
      this.stationType = stationType;
14244
      setStationTypeIsSet(true);
14245
    }
14246
 
14247
    public void unsetStationType() {
14248
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14249
    }
14250
 
14251
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14252
    public boolean isSetStationType() {
14253
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14254
    }
14255
 
14256
    public void setStationTypeIsSet(boolean value) {
14257
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14258
    }
14259
 
6524 rajveer 14260
    public boolean isOtgAvailable() {
14261
      return this.otgAvailable;
14262
    }
14263
 
14264
    public void setOtgAvailable(boolean otgAvailable) {
14265
      this.otgAvailable = otgAvailable;
14266
      setOtgAvailableIsSet(true);
14267
    }
14268
 
14269
    public void unsetOtgAvailable() {
14270
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14271
    }
14272
 
14273
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14274
    public boolean isSetOtgAvailable() {
14275
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14276
    }
14277
 
14278
    public void setOtgAvailableIsSet(boolean value) {
14279
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14280
    }
14281
 
6322 amar.kumar 14282
    public void setFieldValue(_Fields field, Object value) {
14283
      switch (field) {
14284
      case PROVIDER_ID:
14285
        if (value == null) {
14286
          unsetProviderId();
14287
        } else {
14288
          setProviderId((Long)value);
14289
        }
14290
        break;
14291
 
14292
      case PINCODE:
14293
        if (value == null) {
14294
          unsetPincode();
14295
        } else {
14296
          setPincode((String)value);
14297
        }
14298
        break;
14299
 
14300
      case DEST_CODE:
14301
        if (value == null) {
14302
          unsetDestCode();
14303
        } else {
14304
          setDestCode((String)value);
14305
        }
14306
        break;
14307
 
14308
      case EXP:
14309
        if (value == null) {
14310
          unsetExp();
14311
        } else {
14312
          setExp((Boolean)value);
14313
        }
14314
        break;
14315
 
14316
      case COD:
14317
        if (value == null) {
14318
          unsetCod();
14319
        } else {
14320
          setCod((Boolean)value);
14321
        }
14322
        break;
14323
 
14324
      case STATION_TYPE:
14325
        if (value == null) {
14326
          unsetStationType();
14327
        } else {
14328
          setStationType((Integer)value);
14329
        }
14330
        break;
14331
 
6524 rajveer 14332
      case OTG_AVAILABLE:
14333
        if (value == null) {
14334
          unsetOtgAvailable();
14335
        } else {
14336
          setOtgAvailable((Boolean)value);
14337
        }
14338
        break;
14339
 
6322 amar.kumar 14340
      }
14341
    }
14342
 
14343
    public Object getFieldValue(_Fields field) {
14344
      switch (field) {
14345
      case PROVIDER_ID:
14346
        return Long.valueOf(getProviderId());
14347
 
14348
      case PINCODE:
14349
        return getPincode();
14350
 
14351
      case DEST_CODE:
14352
        return getDestCode();
14353
 
14354
      case EXP:
14355
        return Boolean.valueOf(isExp());
14356
 
14357
      case COD:
14358
        return Boolean.valueOf(isCod());
14359
 
14360
      case STATION_TYPE:
14361
        return Integer.valueOf(getStationType());
14362
 
6524 rajveer 14363
      case OTG_AVAILABLE:
14364
        return Boolean.valueOf(isOtgAvailable());
14365
 
6322 amar.kumar 14366
      }
14367
      throw new IllegalStateException();
14368
    }
14369
 
14370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14371
    public boolean isSet(_Fields field) {
14372
      if (field == null) {
14373
        throw new IllegalArgumentException();
14374
      }
14375
 
14376
      switch (field) {
14377
      case PROVIDER_ID:
14378
        return isSetProviderId();
14379
      case PINCODE:
14380
        return isSetPincode();
14381
      case DEST_CODE:
14382
        return isSetDestCode();
14383
      case EXP:
14384
        return isSetExp();
14385
      case COD:
14386
        return isSetCod();
14387
      case STATION_TYPE:
14388
        return isSetStationType();
6524 rajveer 14389
      case OTG_AVAILABLE:
14390
        return isSetOtgAvailable();
6322 amar.kumar 14391
      }
14392
      throw new IllegalStateException();
14393
    }
14394
 
14395
    @Override
14396
    public boolean equals(Object that) {
14397
      if (that == null)
14398
        return false;
14399
      if (that instanceof addPincode_args)
14400
        return this.equals((addPincode_args)that);
14401
      return false;
14402
    }
14403
 
14404
    public boolean equals(addPincode_args that) {
14405
      if (that == null)
14406
        return false;
14407
 
14408
      boolean this_present_providerId = true;
14409
      boolean that_present_providerId = true;
14410
      if (this_present_providerId || that_present_providerId) {
14411
        if (!(this_present_providerId && that_present_providerId))
14412
          return false;
14413
        if (this.providerId != that.providerId)
14414
          return false;
14415
      }
14416
 
14417
      boolean this_present_pincode = true && this.isSetPincode();
14418
      boolean that_present_pincode = true && that.isSetPincode();
14419
      if (this_present_pincode || that_present_pincode) {
14420
        if (!(this_present_pincode && that_present_pincode))
14421
          return false;
14422
        if (!this.pincode.equals(that.pincode))
14423
          return false;
14424
      }
14425
 
14426
      boolean this_present_destCode = true && this.isSetDestCode();
14427
      boolean that_present_destCode = true && that.isSetDestCode();
14428
      if (this_present_destCode || that_present_destCode) {
14429
        if (!(this_present_destCode && that_present_destCode))
14430
          return false;
14431
        if (!this.destCode.equals(that.destCode))
14432
          return false;
14433
      }
14434
 
14435
      boolean this_present_exp = true;
14436
      boolean that_present_exp = true;
14437
      if (this_present_exp || that_present_exp) {
14438
        if (!(this_present_exp && that_present_exp))
14439
          return false;
14440
        if (this.exp != that.exp)
14441
          return false;
14442
      }
14443
 
14444
      boolean this_present_cod = true;
14445
      boolean that_present_cod = true;
14446
      if (this_present_cod || that_present_cod) {
14447
        if (!(this_present_cod && that_present_cod))
14448
          return false;
14449
        if (this.cod != that.cod)
14450
          return false;
14451
      }
14452
 
14453
      boolean this_present_stationType = true;
14454
      boolean that_present_stationType = true;
14455
      if (this_present_stationType || that_present_stationType) {
14456
        if (!(this_present_stationType && that_present_stationType))
14457
          return false;
14458
        if (this.stationType != that.stationType)
14459
          return false;
14460
      }
14461
 
6524 rajveer 14462
      boolean this_present_otgAvailable = true;
14463
      boolean that_present_otgAvailable = true;
14464
      if (this_present_otgAvailable || that_present_otgAvailable) {
14465
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14466
          return false;
14467
        if (this.otgAvailable != that.otgAvailable)
14468
          return false;
14469
      }
14470
 
6322 amar.kumar 14471
      return true;
14472
    }
14473
 
14474
    @Override
14475
    public int hashCode() {
14476
      return 0;
14477
    }
14478
 
14479
    public int compareTo(addPincode_args other) {
14480
      if (!getClass().equals(other.getClass())) {
14481
        return getClass().getName().compareTo(other.getClass().getName());
14482
      }
14483
 
14484
      int lastComparison = 0;
14485
      addPincode_args typedOther = (addPincode_args)other;
14486
 
14487
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14488
      if (lastComparison != 0) {
14489
        return lastComparison;
14490
      }
14491
      if (isSetProviderId()) {
14492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14493
        if (lastComparison != 0) {
14494
          return lastComparison;
14495
        }
14496
      }
14497
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14498
      if (lastComparison != 0) {
14499
        return lastComparison;
14500
      }
14501
      if (isSetPincode()) {
14502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14503
        if (lastComparison != 0) {
14504
          return lastComparison;
14505
        }
14506
      }
14507
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14508
      if (lastComparison != 0) {
14509
        return lastComparison;
14510
      }
14511
      if (isSetDestCode()) {
14512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14513
        if (lastComparison != 0) {
14514
          return lastComparison;
14515
        }
14516
      }
14517
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14518
      if (lastComparison != 0) {
14519
        return lastComparison;
14520
      }
14521
      if (isSetExp()) {
14522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14523
        if (lastComparison != 0) {
14524
          return lastComparison;
14525
        }
14526
      }
14527
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14528
      if (lastComparison != 0) {
14529
        return lastComparison;
14530
      }
14531
      if (isSetCod()) {
14532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14533
        if (lastComparison != 0) {
14534
          return lastComparison;
14535
        }
14536
      }
14537
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14538
      if (lastComparison != 0) {
14539
        return lastComparison;
14540
      }
14541
      if (isSetStationType()) {
14542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14543
        if (lastComparison != 0) {
14544
          return lastComparison;
14545
        }
14546
      }
6524 rajveer 14547
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14548
      if (lastComparison != 0) {
14549
        return lastComparison;
14550
      }
14551
      if (isSetOtgAvailable()) {
14552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14553
        if (lastComparison != 0) {
14554
          return lastComparison;
14555
        }
14556
      }
6322 amar.kumar 14557
      return 0;
14558
    }
14559
 
14560
    public _Fields fieldForId(int fieldId) {
14561
      return _Fields.findByThriftId(fieldId);
14562
    }
14563
 
14564
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14565
      org.apache.thrift.protocol.TField field;
14566
      iprot.readStructBegin();
14567
      while (true)
14568
      {
14569
        field = iprot.readFieldBegin();
14570
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14571
          break;
14572
        }
14573
        switch (field.id) {
14574
          case 1: // PROVIDER_ID
14575
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14576
              this.providerId = iprot.readI64();
14577
              setProviderIdIsSet(true);
14578
            } else { 
14579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14580
            }
14581
            break;
14582
          case 2: // PINCODE
14583
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14584
              this.pincode = iprot.readString();
14585
            } else { 
14586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14587
            }
14588
            break;
14589
          case 3: // DEST_CODE
14590
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14591
              this.destCode = iprot.readString();
14592
            } else { 
14593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14594
            }
14595
            break;
14596
          case 4: // EXP
14597
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14598
              this.exp = iprot.readBool();
14599
              setExpIsSet(true);
14600
            } else { 
14601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14602
            }
14603
            break;
14604
          case 5: // COD
14605
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14606
              this.cod = iprot.readBool();
14607
              setCodIsSet(true);
14608
            } else { 
14609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14610
            }
14611
            break;
14612
          case 6: // STATION_TYPE
14613
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14614
              this.stationType = iprot.readI32();
14615
              setStationTypeIsSet(true);
14616
            } else { 
14617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14618
            }
14619
            break;
6524 rajveer 14620
          case 7: // OTG_AVAILABLE
14621
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14622
              this.otgAvailable = iprot.readBool();
14623
              setOtgAvailableIsSet(true);
14624
            } else { 
14625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14626
            }
14627
            break;
6322 amar.kumar 14628
          default:
14629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14630
        }
14631
        iprot.readFieldEnd();
14632
      }
14633
      iprot.readStructEnd();
14634
      validate();
14635
    }
14636
 
14637
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14638
      validate();
14639
 
14640
      oprot.writeStructBegin(STRUCT_DESC);
14641
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14642
      oprot.writeI64(this.providerId);
14643
      oprot.writeFieldEnd();
14644
      if (this.pincode != null) {
14645
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14646
        oprot.writeString(this.pincode);
14647
        oprot.writeFieldEnd();
14648
      }
14649
      if (this.destCode != null) {
14650
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14651
        oprot.writeString(this.destCode);
14652
        oprot.writeFieldEnd();
14653
      }
14654
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14655
      oprot.writeBool(this.exp);
14656
      oprot.writeFieldEnd();
14657
      oprot.writeFieldBegin(COD_FIELD_DESC);
14658
      oprot.writeBool(this.cod);
14659
      oprot.writeFieldEnd();
14660
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14661
      oprot.writeI32(this.stationType);
14662
      oprot.writeFieldEnd();
6524 rajveer 14663
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14664
      oprot.writeBool(this.otgAvailable);
14665
      oprot.writeFieldEnd();
6322 amar.kumar 14666
      oprot.writeFieldStop();
14667
      oprot.writeStructEnd();
14668
    }
14669
 
14670
    @Override
14671
    public String toString() {
14672
      StringBuilder sb = new StringBuilder("addPincode_args(");
14673
      boolean first = true;
14674
 
14675
      sb.append("providerId:");
14676
      sb.append(this.providerId);
14677
      first = false;
14678
      if (!first) sb.append(", ");
14679
      sb.append("pincode:");
14680
      if (this.pincode == null) {
14681
        sb.append("null");
14682
      } else {
14683
        sb.append(this.pincode);
14684
      }
14685
      first = false;
14686
      if (!first) sb.append(", ");
14687
      sb.append("destCode:");
14688
      if (this.destCode == null) {
14689
        sb.append("null");
14690
      } else {
14691
        sb.append(this.destCode);
14692
      }
14693
      first = false;
14694
      if (!first) sb.append(", ");
14695
      sb.append("exp:");
14696
      sb.append(this.exp);
14697
      first = false;
14698
      if (!first) sb.append(", ");
14699
      sb.append("cod:");
14700
      sb.append(this.cod);
14701
      first = false;
14702
      if (!first) sb.append(", ");
14703
      sb.append("stationType:");
14704
      sb.append(this.stationType);
14705
      first = false;
6524 rajveer 14706
      if (!first) sb.append(", ");
14707
      sb.append("otgAvailable:");
14708
      sb.append(this.otgAvailable);
14709
      first = false;
6322 amar.kumar 14710
      sb.append(")");
14711
      return sb.toString();
14712
    }
14713
 
14714
    public void validate() throws org.apache.thrift.TException {
14715
      // check for required fields
14716
    }
14717
 
14718
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14719
      try {
14720
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14721
      } catch (org.apache.thrift.TException te) {
14722
        throw new java.io.IOException(te);
14723
      }
14724
    }
14725
 
14726
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14727
      try {
14728
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14729
        __isset_bit_vector = new BitSet(1);
14730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14731
      } catch (org.apache.thrift.TException te) {
14732
        throw new java.io.IOException(te);
14733
      }
14734
    }
14735
 
14736
  }
14737
 
14738
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14740
 
14741
 
14742
 
14743
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14744
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14745
;
14746
 
14747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14748
 
14749
      static {
14750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14751
          byName.put(field.getFieldName(), field);
14752
        }
14753
      }
14754
 
14755
      /**
14756
       * Find the _Fields constant that matches fieldId, or null if its not found.
14757
       */
14758
      public static _Fields findByThriftId(int fieldId) {
14759
        switch(fieldId) {
14760
          default:
14761
            return null;
14762
        }
14763
      }
14764
 
14765
      /**
14766
       * Find the _Fields constant that matches fieldId, throwing an exception
14767
       * if it is not found.
14768
       */
14769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14770
        _Fields fields = findByThriftId(fieldId);
14771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14772
        return fields;
14773
      }
14774
 
14775
      /**
14776
       * Find the _Fields constant that matches name, or null if its not found.
14777
       */
14778
      public static _Fields findByName(String name) {
14779
        return byName.get(name);
14780
      }
14781
 
14782
      private final short _thriftId;
14783
      private final String _fieldName;
14784
 
14785
      _Fields(short thriftId, String fieldName) {
14786
        _thriftId = thriftId;
14787
        _fieldName = fieldName;
14788
      }
14789
 
14790
      public short getThriftFieldId() {
14791
        return _thriftId;
14792
      }
14793
 
14794
      public String getFieldName() {
14795
        return _fieldName;
14796
      }
14797
    }
14798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14799
    static {
14800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14803
    }
14804
 
14805
    public addPincode_result() {
14806
    }
14807
 
14808
    /**
14809
     * Performs a deep copy on <i>other</i>.
14810
     */
14811
    public addPincode_result(addPincode_result other) {
14812
    }
14813
 
14814
    public addPincode_result deepCopy() {
14815
      return new addPincode_result(this);
14816
    }
14817
 
14818
    @Override
14819
    public void clear() {
14820
    }
14821
 
14822
    public void setFieldValue(_Fields field, Object value) {
14823
      switch (field) {
14824
      }
14825
    }
14826
 
14827
    public Object getFieldValue(_Fields field) {
14828
      switch (field) {
14829
      }
14830
      throw new IllegalStateException();
14831
    }
14832
 
14833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14834
    public boolean isSet(_Fields field) {
14835
      if (field == null) {
14836
        throw new IllegalArgumentException();
14837
      }
14838
 
14839
      switch (field) {
14840
      }
14841
      throw new IllegalStateException();
14842
    }
14843
 
14844
    @Override
14845
    public boolean equals(Object that) {
14846
      if (that == null)
14847
        return false;
14848
      if (that instanceof addPincode_result)
14849
        return this.equals((addPincode_result)that);
14850
      return false;
14851
    }
14852
 
14853
    public boolean equals(addPincode_result that) {
14854
      if (that == null)
14855
        return false;
14856
 
14857
      return true;
14858
    }
14859
 
14860
    @Override
14861
    public int hashCode() {
14862
      return 0;
14863
    }
14864
 
14865
    public int compareTo(addPincode_result other) {
14866
      if (!getClass().equals(other.getClass())) {
14867
        return getClass().getName().compareTo(other.getClass().getName());
14868
      }
14869
 
14870
      int lastComparison = 0;
14871
      addPincode_result typedOther = (addPincode_result)other;
14872
 
14873
      return 0;
14874
    }
14875
 
14876
    public _Fields fieldForId(int fieldId) {
14877
      return _Fields.findByThriftId(fieldId);
14878
    }
14879
 
14880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14881
      org.apache.thrift.protocol.TField field;
14882
      iprot.readStructBegin();
14883
      while (true)
14884
      {
14885
        field = iprot.readFieldBegin();
14886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14887
          break;
14888
        }
14889
        switch (field.id) {
14890
          default:
14891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14892
        }
14893
        iprot.readFieldEnd();
14894
      }
14895
      iprot.readStructEnd();
14896
      validate();
14897
    }
14898
 
14899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14900
      oprot.writeStructBegin(STRUCT_DESC);
14901
 
14902
      oprot.writeFieldStop();
14903
      oprot.writeStructEnd();
14904
    }
14905
 
14906
    @Override
14907
    public String toString() {
14908
      StringBuilder sb = new StringBuilder("addPincode_result(");
14909
      boolean first = true;
14910
 
14911
      sb.append(")");
14912
      return sb.toString();
14913
    }
14914
 
14915
    public void validate() throws org.apache.thrift.TException {
14916
      // check for required fields
14917
    }
14918
 
14919
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14920
      try {
14921
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14922
      } catch (org.apache.thrift.TException te) {
14923
        throw new java.io.IOException(te);
14924
      }
14925
    }
14926
 
14927
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14928
      try {
14929
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14930
      } catch (org.apache.thrift.TException te) {
14931
        throw new java.io.IOException(te);
14932
      }
14933
    }
14934
 
14935
  }
14936
 
14937
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14938
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14939
 
14940
    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);
14941
    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);
14942
    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);
14943
    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 14944
    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 14945
 
14946
    private long providerId; // required
14947
    private String pincode; // required
14948
    private boolean exp; // required
14949
    private boolean cod; // required
6524 rajveer 14950
    private boolean otgAvailable; // required
6322 amar.kumar 14951
 
14952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14954
      PROVIDER_ID((short)1, "providerId"),
14955
      PINCODE((short)2, "pincode"),
14956
      EXP((short)3, "exp"),
6524 rajveer 14957
      COD((short)4, "cod"),
14958
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14959
 
14960
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14961
 
14962
      static {
14963
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14964
          byName.put(field.getFieldName(), field);
14965
        }
14966
      }
14967
 
14968
      /**
14969
       * Find the _Fields constant that matches fieldId, or null if its not found.
14970
       */
14971
      public static _Fields findByThriftId(int fieldId) {
14972
        switch(fieldId) {
14973
          case 1: // PROVIDER_ID
14974
            return PROVIDER_ID;
14975
          case 2: // PINCODE
14976
            return PINCODE;
14977
          case 3: // EXP
14978
            return EXP;
14979
          case 4: // COD
14980
            return COD;
6524 rajveer 14981
          case 5: // OTG_AVAILABLE
14982
            return OTG_AVAILABLE;
6322 amar.kumar 14983
          default:
14984
            return null;
14985
        }
14986
      }
14987
 
14988
      /**
14989
       * Find the _Fields constant that matches fieldId, throwing an exception
14990
       * if it is not found.
14991
       */
14992
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14993
        _Fields fields = findByThriftId(fieldId);
14994
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14995
        return fields;
14996
      }
14997
 
14998
      /**
14999
       * Find the _Fields constant that matches name, or null if its not found.
15000
       */
15001
      public static _Fields findByName(String name) {
15002
        return byName.get(name);
15003
      }
15004
 
15005
      private final short _thriftId;
15006
      private final String _fieldName;
15007
 
15008
      _Fields(short thriftId, String fieldName) {
15009
        _thriftId = thriftId;
15010
        _fieldName = fieldName;
15011
      }
15012
 
15013
      public short getThriftFieldId() {
15014
        return _thriftId;
15015
      }
15016
 
15017
      public String getFieldName() {
15018
        return _fieldName;
15019
      }
15020
    }
15021
 
15022
    // isset id assignments
15023
    private static final int __PROVIDERID_ISSET_ID = 0;
15024
    private static final int __EXP_ISSET_ID = 1;
15025
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 15026
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
15027
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 15028
 
15029
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15030
    static {
15031
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15032
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15034
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15035
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15036
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15038
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 15040
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 15042
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15043
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
15044
    }
15045
 
15046
    public updatePincode_args() {
15047
    }
15048
 
15049
    public updatePincode_args(
15050
      long providerId,
15051
      String pincode,
15052
      boolean exp,
6524 rajveer 15053
      boolean cod,
15054
      boolean otgAvailable)
6322 amar.kumar 15055
    {
15056
      this();
15057
      this.providerId = providerId;
15058
      setProviderIdIsSet(true);
15059
      this.pincode = pincode;
15060
      this.exp = exp;
15061
      setExpIsSet(true);
15062
      this.cod = cod;
15063
      setCodIsSet(true);
6524 rajveer 15064
      this.otgAvailable = otgAvailable;
15065
      setOtgAvailableIsSet(true);
6322 amar.kumar 15066
    }
15067
 
15068
    /**
15069
     * Performs a deep copy on <i>other</i>.
15070
     */
15071
    public updatePincode_args(updatePincode_args other) {
15072
      __isset_bit_vector.clear();
15073
      __isset_bit_vector.or(other.__isset_bit_vector);
15074
      this.providerId = other.providerId;
15075
      if (other.isSetPincode()) {
15076
        this.pincode = other.pincode;
15077
      }
15078
      this.exp = other.exp;
15079
      this.cod = other.cod;
6524 rajveer 15080
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 15081
    }
15082
 
15083
    public updatePincode_args deepCopy() {
15084
      return new updatePincode_args(this);
15085
    }
15086
 
15087
    @Override
15088
    public void clear() {
15089
      setProviderIdIsSet(false);
15090
      this.providerId = 0;
15091
      this.pincode = null;
15092
      setExpIsSet(false);
15093
      this.exp = false;
15094
      setCodIsSet(false);
15095
      this.cod = false;
6524 rajveer 15096
      setOtgAvailableIsSet(false);
15097
      this.otgAvailable = false;
6322 amar.kumar 15098
    }
15099
 
15100
    public long getProviderId() {
15101
      return this.providerId;
15102
    }
15103
 
15104
    public void setProviderId(long providerId) {
15105
      this.providerId = providerId;
15106
      setProviderIdIsSet(true);
15107
    }
15108
 
15109
    public void unsetProviderId() {
15110
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15111
    }
15112
 
15113
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15114
    public boolean isSetProviderId() {
15115
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15116
    }
15117
 
15118
    public void setProviderIdIsSet(boolean value) {
15119
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15120
    }
15121
 
15122
    public String getPincode() {
15123
      return this.pincode;
15124
    }
15125
 
15126
    public void setPincode(String pincode) {
15127
      this.pincode = pincode;
15128
    }
15129
 
15130
    public void unsetPincode() {
15131
      this.pincode = null;
15132
    }
15133
 
15134
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15135
    public boolean isSetPincode() {
15136
      return this.pincode != null;
15137
    }
15138
 
15139
    public void setPincodeIsSet(boolean value) {
15140
      if (!value) {
15141
        this.pincode = null;
15142
      }
15143
    }
15144
 
15145
    public boolean isExp() {
15146
      return this.exp;
15147
    }
15148
 
15149
    public void setExp(boolean exp) {
15150
      this.exp = exp;
15151
      setExpIsSet(true);
15152
    }
15153
 
15154
    public void unsetExp() {
15155
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15156
    }
15157
 
15158
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15159
    public boolean isSetExp() {
15160
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15161
    }
15162
 
15163
    public void setExpIsSet(boolean value) {
15164
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15165
    }
15166
 
15167
    public boolean isCod() {
15168
      return this.cod;
15169
    }
15170
 
15171
    public void setCod(boolean cod) {
15172
      this.cod = cod;
15173
      setCodIsSet(true);
15174
    }
15175
 
15176
    public void unsetCod() {
15177
      __isset_bit_vector.clear(__COD_ISSET_ID);
15178
    }
15179
 
15180
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15181
    public boolean isSetCod() {
15182
      return __isset_bit_vector.get(__COD_ISSET_ID);
15183
    }
15184
 
15185
    public void setCodIsSet(boolean value) {
15186
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15187
    }
15188
 
6524 rajveer 15189
    public boolean isOtgAvailable() {
15190
      return this.otgAvailable;
15191
    }
15192
 
15193
    public void setOtgAvailable(boolean otgAvailable) {
15194
      this.otgAvailable = otgAvailable;
15195
      setOtgAvailableIsSet(true);
15196
    }
15197
 
15198
    public void unsetOtgAvailable() {
15199
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15200
    }
15201
 
15202
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15203
    public boolean isSetOtgAvailable() {
15204
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15205
    }
15206
 
15207
    public void setOtgAvailableIsSet(boolean value) {
15208
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15209
    }
15210
 
6322 amar.kumar 15211
    public void setFieldValue(_Fields field, Object value) {
15212
      switch (field) {
15213
      case PROVIDER_ID:
15214
        if (value == null) {
15215
          unsetProviderId();
15216
        } else {
15217
          setProviderId((Long)value);
15218
        }
15219
        break;
15220
 
15221
      case PINCODE:
15222
        if (value == null) {
15223
          unsetPincode();
15224
        } else {
15225
          setPincode((String)value);
15226
        }
15227
        break;
15228
 
15229
      case EXP:
15230
        if (value == null) {
15231
          unsetExp();
15232
        } else {
15233
          setExp((Boolean)value);
15234
        }
15235
        break;
15236
 
15237
      case COD:
15238
        if (value == null) {
15239
          unsetCod();
15240
        } else {
15241
          setCod((Boolean)value);
15242
        }
15243
        break;
15244
 
6524 rajveer 15245
      case OTG_AVAILABLE:
15246
        if (value == null) {
15247
          unsetOtgAvailable();
15248
        } else {
15249
          setOtgAvailable((Boolean)value);
15250
        }
15251
        break;
15252
 
6322 amar.kumar 15253
      }
15254
    }
15255
 
15256
    public Object getFieldValue(_Fields field) {
15257
      switch (field) {
15258
      case PROVIDER_ID:
15259
        return Long.valueOf(getProviderId());
15260
 
15261
      case PINCODE:
15262
        return getPincode();
15263
 
15264
      case EXP:
15265
        return Boolean.valueOf(isExp());
15266
 
15267
      case COD:
15268
        return Boolean.valueOf(isCod());
15269
 
6524 rajveer 15270
      case OTG_AVAILABLE:
15271
        return Boolean.valueOf(isOtgAvailable());
15272
 
6322 amar.kumar 15273
      }
15274
      throw new IllegalStateException();
15275
    }
15276
 
15277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15278
    public boolean isSet(_Fields field) {
15279
      if (field == null) {
15280
        throw new IllegalArgumentException();
15281
      }
15282
 
15283
      switch (field) {
15284
      case PROVIDER_ID:
15285
        return isSetProviderId();
15286
      case PINCODE:
15287
        return isSetPincode();
15288
      case EXP:
15289
        return isSetExp();
15290
      case COD:
15291
        return isSetCod();
6524 rajveer 15292
      case OTG_AVAILABLE:
15293
        return isSetOtgAvailable();
6322 amar.kumar 15294
      }
15295
      throw new IllegalStateException();
15296
    }
15297
 
15298
    @Override
15299
    public boolean equals(Object that) {
15300
      if (that == null)
15301
        return false;
15302
      if (that instanceof updatePincode_args)
15303
        return this.equals((updatePincode_args)that);
15304
      return false;
15305
    }
15306
 
15307
    public boolean equals(updatePincode_args that) {
15308
      if (that == null)
15309
        return false;
15310
 
15311
      boolean this_present_providerId = true;
15312
      boolean that_present_providerId = true;
15313
      if (this_present_providerId || that_present_providerId) {
15314
        if (!(this_present_providerId && that_present_providerId))
15315
          return false;
15316
        if (this.providerId != that.providerId)
15317
          return false;
15318
      }
15319
 
15320
      boolean this_present_pincode = true && this.isSetPincode();
15321
      boolean that_present_pincode = true && that.isSetPincode();
15322
      if (this_present_pincode || that_present_pincode) {
15323
        if (!(this_present_pincode && that_present_pincode))
15324
          return false;
15325
        if (!this.pincode.equals(that.pincode))
15326
          return false;
15327
      }
15328
 
15329
      boolean this_present_exp = true;
15330
      boolean that_present_exp = true;
15331
      if (this_present_exp || that_present_exp) {
15332
        if (!(this_present_exp && that_present_exp))
15333
          return false;
15334
        if (this.exp != that.exp)
15335
          return false;
15336
      }
15337
 
15338
      boolean this_present_cod = true;
15339
      boolean that_present_cod = true;
15340
      if (this_present_cod || that_present_cod) {
15341
        if (!(this_present_cod && that_present_cod))
15342
          return false;
15343
        if (this.cod != that.cod)
15344
          return false;
15345
      }
15346
 
6524 rajveer 15347
      boolean this_present_otgAvailable = true;
15348
      boolean that_present_otgAvailable = true;
15349
      if (this_present_otgAvailable || that_present_otgAvailable) {
15350
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15351
          return false;
15352
        if (this.otgAvailable != that.otgAvailable)
15353
          return false;
15354
      }
15355
 
6322 amar.kumar 15356
      return true;
15357
    }
15358
 
15359
    @Override
15360
    public int hashCode() {
15361
      return 0;
15362
    }
15363
 
15364
    public int compareTo(updatePincode_args other) {
15365
      if (!getClass().equals(other.getClass())) {
15366
        return getClass().getName().compareTo(other.getClass().getName());
15367
      }
15368
 
15369
      int lastComparison = 0;
15370
      updatePincode_args typedOther = (updatePincode_args)other;
15371
 
15372
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15373
      if (lastComparison != 0) {
15374
        return lastComparison;
15375
      }
15376
      if (isSetProviderId()) {
15377
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15378
        if (lastComparison != 0) {
15379
          return lastComparison;
15380
        }
15381
      }
15382
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15383
      if (lastComparison != 0) {
15384
        return lastComparison;
15385
      }
15386
      if (isSetPincode()) {
15387
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15388
        if (lastComparison != 0) {
15389
          return lastComparison;
15390
        }
15391
      }
15392
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15393
      if (lastComparison != 0) {
15394
        return lastComparison;
15395
      }
15396
      if (isSetExp()) {
15397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15398
        if (lastComparison != 0) {
15399
          return lastComparison;
15400
        }
15401
      }
15402
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15403
      if (lastComparison != 0) {
15404
        return lastComparison;
15405
      }
15406
      if (isSetCod()) {
15407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15408
        if (lastComparison != 0) {
15409
          return lastComparison;
15410
        }
15411
      }
6524 rajveer 15412
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15413
      if (lastComparison != 0) {
15414
        return lastComparison;
15415
      }
15416
      if (isSetOtgAvailable()) {
15417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15418
        if (lastComparison != 0) {
15419
          return lastComparison;
15420
        }
15421
      }
6322 amar.kumar 15422
      return 0;
15423
    }
15424
 
15425
    public _Fields fieldForId(int fieldId) {
15426
      return _Fields.findByThriftId(fieldId);
15427
    }
15428
 
15429
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15430
      org.apache.thrift.protocol.TField field;
15431
      iprot.readStructBegin();
15432
      while (true)
15433
      {
15434
        field = iprot.readFieldBegin();
15435
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15436
          break;
15437
        }
15438
        switch (field.id) {
15439
          case 1: // PROVIDER_ID
15440
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15441
              this.providerId = iprot.readI64();
15442
              setProviderIdIsSet(true);
15443
            } else { 
15444
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15445
            }
15446
            break;
15447
          case 2: // PINCODE
15448
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15449
              this.pincode = iprot.readString();
15450
            } else { 
15451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15452
            }
15453
            break;
15454
          case 3: // EXP
15455
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15456
              this.exp = iprot.readBool();
15457
              setExpIsSet(true);
15458
            } else { 
15459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15460
            }
15461
            break;
15462
          case 4: // COD
15463
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15464
              this.cod = iprot.readBool();
15465
              setCodIsSet(true);
15466
            } else { 
15467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15468
            }
15469
            break;
6524 rajveer 15470
          case 5: // OTG_AVAILABLE
15471
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15472
              this.otgAvailable = iprot.readBool();
15473
              setOtgAvailableIsSet(true);
15474
            } else { 
15475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15476
            }
15477
            break;
6322 amar.kumar 15478
          default:
15479
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15480
        }
15481
        iprot.readFieldEnd();
15482
      }
15483
      iprot.readStructEnd();
15484
      validate();
15485
    }
15486
 
15487
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15488
      validate();
15489
 
15490
      oprot.writeStructBegin(STRUCT_DESC);
15491
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15492
      oprot.writeI64(this.providerId);
15493
      oprot.writeFieldEnd();
15494
      if (this.pincode != null) {
15495
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15496
        oprot.writeString(this.pincode);
15497
        oprot.writeFieldEnd();
15498
      }
15499
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15500
      oprot.writeBool(this.exp);
15501
      oprot.writeFieldEnd();
15502
      oprot.writeFieldBegin(COD_FIELD_DESC);
15503
      oprot.writeBool(this.cod);
15504
      oprot.writeFieldEnd();
6524 rajveer 15505
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15506
      oprot.writeBool(this.otgAvailable);
15507
      oprot.writeFieldEnd();
6322 amar.kumar 15508
      oprot.writeFieldStop();
15509
      oprot.writeStructEnd();
15510
    }
15511
 
15512
    @Override
15513
    public String toString() {
15514
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15515
      boolean first = true;
15516
 
15517
      sb.append("providerId:");
15518
      sb.append(this.providerId);
15519
      first = false;
15520
      if (!first) sb.append(", ");
15521
      sb.append("pincode:");
15522
      if (this.pincode == null) {
15523
        sb.append("null");
15524
      } else {
15525
        sb.append(this.pincode);
15526
      }
15527
      first = false;
15528
      if (!first) sb.append(", ");
15529
      sb.append("exp:");
15530
      sb.append(this.exp);
15531
      first = false;
15532
      if (!first) sb.append(", ");
15533
      sb.append("cod:");
15534
      sb.append(this.cod);
15535
      first = false;
6524 rajveer 15536
      if (!first) sb.append(", ");
15537
      sb.append("otgAvailable:");
15538
      sb.append(this.otgAvailable);
15539
      first = false;
6322 amar.kumar 15540
      sb.append(")");
15541
      return sb.toString();
15542
    }
15543
 
15544
    public void validate() throws org.apache.thrift.TException {
15545
      // check for required fields
15546
    }
15547
 
15548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15549
      try {
15550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15551
      } catch (org.apache.thrift.TException te) {
15552
        throw new java.io.IOException(te);
15553
      }
15554
    }
15555
 
15556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15557
      try {
15558
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15559
        __isset_bit_vector = new BitSet(1);
15560
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15561
      } catch (org.apache.thrift.TException te) {
15562
        throw new java.io.IOException(te);
15563
      }
15564
    }
15565
 
15566
  }
15567
 
15568
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15569
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15570
 
15571
 
15572
 
15573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15575
;
15576
 
15577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15578
 
15579
      static {
15580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15581
          byName.put(field.getFieldName(), field);
15582
        }
15583
      }
15584
 
15585
      /**
15586
       * Find the _Fields constant that matches fieldId, or null if its not found.
15587
       */
15588
      public static _Fields findByThriftId(int fieldId) {
15589
        switch(fieldId) {
15590
          default:
15591
            return null;
15592
        }
15593
      }
15594
 
15595
      /**
15596
       * Find the _Fields constant that matches fieldId, throwing an exception
15597
       * if it is not found.
15598
       */
15599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15600
        _Fields fields = findByThriftId(fieldId);
15601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15602
        return fields;
15603
      }
15604
 
15605
      /**
15606
       * Find the _Fields constant that matches name, or null if its not found.
15607
       */
15608
      public static _Fields findByName(String name) {
15609
        return byName.get(name);
15610
      }
15611
 
15612
      private final short _thriftId;
15613
      private final String _fieldName;
15614
 
15615
      _Fields(short thriftId, String fieldName) {
15616
        _thriftId = thriftId;
15617
        _fieldName = fieldName;
15618
      }
15619
 
15620
      public short getThriftFieldId() {
15621
        return _thriftId;
15622
      }
15623
 
15624
      public String getFieldName() {
15625
        return _fieldName;
15626
      }
15627
    }
15628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15629
    static {
15630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15633
    }
15634
 
15635
    public updatePincode_result() {
15636
    }
15637
 
15638
    /**
15639
     * Performs a deep copy on <i>other</i>.
15640
     */
15641
    public updatePincode_result(updatePincode_result other) {
15642
    }
15643
 
15644
    public updatePincode_result deepCopy() {
15645
      return new updatePincode_result(this);
15646
    }
15647
 
15648
    @Override
15649
    public void clear() {
15650
    }
15651
 
15652
    public void setFieldValue(_Fields field, Object value) {
15653
      switch (field) {
15654
      }
15655
    }
15656
 
15657
    public Object getFieldValue(_Fields field) {
15658
      switch (field) {
15659
      }
15660
      throw new IllegalStateException();
15661
    }
15662
 
15663
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15664
    public boolean isSet(_Fields field) {
15665
      if (field == null) {
15666
        throw new IllegalArgumentException();
15667
      }
15668
 
15669
      switch (field) {
15670
      }
15671
      throw new IllegalStateException();
15672
    }
15673
 
15674
    @Override
15675
    public boolean equals(Object that) {
15676
      if (that == null)
15677
        return false;
15678
      if (that instanceof updatePincode_result)
15679
        return this.equals((updatePincode_result)that);
15680
      return false;
15681
    }
15682
 
15683
    public boolean equals(updatePincode_result that) {
15684
      if (that == null)
15685
        return false;
15686
 
15687
      return true;
15688
    }
15689
 
15690
    @Override
15691
    public int hashCode() {
15692
      return 0;
15693
    }
15694
 
15695
    public int compareTo(updatePincode_result other) {
15696
      if (!getClass().equals(other.getClass())) {
15697
        return getClass().getName().compareTo(other.getClass().getName());
15698
      }
15699
 
15700
      int lastComparison = 0;
15701
      updatePincode_result typedOther = (updatePincode_result)other;
15702
 
15703
      return 0;
15704
    }
15705
 
15706
    public _Fields fieldForId(int fieldId) {
15707
      return _Fields.findByThriftId(fieldId);
15708
    }
15709
 
15710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15711
      org.apache.thrift.protocol.TField field;
15712
      iprot.readStructBegin();
15713
      while (true)
15714
      {
15715
        field = iprot.readFieldBegin();
15716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15717
          break;
15718
        }
15719
        switch (field.id) {
15720
          default:
15721
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15722
        }
15723
        iprot.readFieldEnd();
15724
      }
15725
      iprot.readStructEnd();
15726
      validate();
15727
    }
15728
 
15729
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15730
      oprot.writeStructBegin(STRUCT_DESC);
15731
 
15732
      oprot.writeFieldStop();
15733
      oprot.writeStructEnd();
15734
    }
15735
 
15736
    @Override
15737
    public String toString() {
15738
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15739
      boolean first = true;
15740
 
15741
      sb.append(")");
15742
      return sb.toString();
15743
    }
15744
 
15745
    public void validate() throws org.apache.thrift.TException {
15746
      // check for required fields
15747
    }
15748
 
15749
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15750
      try {
15751
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15752
      } catch (org.apache.thrift.TException te) {
15753
        throw new java.io.IOException(te);
15754
      }
15755
    }
15756
 
15757
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15758
      try {
15759
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15760
      } catch (org.apache.thrift.TException te) {
15761
        throw new java.io.IOException(te);
15762
      }
15763
    }
15764
 
15765
  }
15766
 
7567 rajveer 15767
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15768
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15769
 
15770
    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);
15771
    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);
15772
    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 15773
    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 15774
 
15775
    private long providerId; // required
15776
    private boolean cod; // required
15777
    private List<String> awbs; // required
13146 manish.sha 15778
    private long awbUsedFor; // required
7567 rajveer 15779
 
15780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15781
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15782
      PROVIDER_ID((short)1, "providerId"),
15783
      COD((short)2, "cod"),
13146 manish.sha 15784
      AWBS((short)3, "awbs"),
15785
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15786
 
15787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15788
 
15789
      static {
15790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15791
          byName.put(field.getFieldName(), field);
15792
        }
15793
      }
15794
 
15795
      /**
15796
       * Find the _Fields constant that matches fieldId, or null if its not found.
15797
       */
15798
      public static _Fields findByThriftId(int fieldId) {
15799
        switch(fieldId) {
15800
          case 1: // PROVIDER_ID
15801
            return PROVIDER_ID;
15802
          case 2: // COD
15803
            return COD;
15804
          case 3: // AWBS
15805
            return AWBS;
13146 manish.sha 15806
          case 4: // AWB_USED_FOR
15807
            return AWB_USED_FOR;
7567 rajveer 15808
          default:
15809
            return null;
15810
        }
15811
      }
15812
 
15813
      /**
15814
       * Find the _Fields constant that matches fieldId, throwing an exception
15815
       * if it is not found.
15816
       */
15817
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15818
        _Fields fields = findByThriftId(fieldId);
15819
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15820
        return fields;
15821
      }
15822
 
15823
      /**
15824
       * Find the _Fields constant that matches name, or null if its not found.
15825
       */
15826
      public static _Fields findByName(String name) {
15827
        return byName.get(name);
15828
      }
15829
 
15830
      private final short _thriftId;
15831
      private final String _fieldName;
15832
 
15833
      _Fields(short thriftId, String fieldName) {
15834
        _thriftId = thriftId;
15835
        _fieldName = fieldName;
15836
      }
15837
 
15838
      public short getThriftFieldId() {
15839
        return _thriftId;
15840
      }
15841
 
15842
      public String getFieldName() {
15843
        return _fieldName;
15844
      }
15845
    }
15846
 
15847
    // isset id assignments
15848
    private static final int __PROVIDERID_ISSET_ID = 0;
15849
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15850
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15851
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15852
 
15853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15854
    static {
15855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15856
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15858
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15860
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15861
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15862
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15863
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15865
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15866
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15867
    }
15868
 
15869
    public addNewAwbs_args() {
15870
    }
15871
 
15872
    public addNewAwbs_args(
15873
      long providerId,
15874
      boolean cod,
13146 manish.sha 15875
      List<String> awbs,
15876
      long awbUsedFor)
7567 rajveer 15877
    {
15878
      this();
15879
      this.providerId = providerId;
15880
      setProviderIdIsSet(true);
15881
      this.cod = cod;
15882
      setCodIsSet(true);
15883
      this.awbs = awbs;
13146 manish.sha 15884
      this.awbUsedFor = awbUsedFor;
15885
      setAwbUsedForIsSet(true);
7567 rajveer 15886
    }
15887
 
15888
    /**
15889
     * Performs a deep copy on <i>other</i>.
15890
     */
15891
    public addNewAwbs_args(addNewAwbs_args other) {
15892
      __isset_bit_vector.clear();
15893
      __isset_bit_vector.or(other.__isset_bit_vector);
15894
      this.providerId = other.providerId;
15895
      this.cod = other.cod;
15896
      if (other.isSetAwbs()) {
15897
        List<String> __this__awbs = new ArrayList<String>();
15898
        for (String other_element : other.awbs) {
15899
          __this__awbs.add(other_element);
15900
        }
15901
        this.awbs = __this__awbs;
15902
      }
13146 manish.sha 15903
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15904
    }
15905
 
15906
    public addNewAwbs_args deepCopy() {
15907
      return new addNewAwbs_args(this);
15908
    }
15909
 
15910
    @Override
15911
    public void clear() {
15912
      setProviderIdIsSet(false);
15913
      this.providerId = 0;
15914
      setCodIsSet(false);
15915
      this.cod = false;
15916
      this.awbs = null;
13146 manish.sha 15917
      setAwbUsedForIsSet(false);
15918
      this.awbUsedFor = 0;
7567 rajveer 15919
    }
15920
 
15921
    public long getProviderId() {
15922
      return this.providerId;
15923
    }
15924
 
15925
    public void setProviderId(long providerId) {
15926
      this.providerId = providerId;
15927
      setProviderIdIsSet(true);
15928
    }
15929
 
15930
    public void unsetProviderId() {
15931
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15932
    }
15933
 
15934
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15935
    public boolean isSetProviderId() {
15936
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15937
    }
15938
 
15939
    public void setProviderIdIsSet(boolean value) {
15940
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15941
    }
15942
 
15943
    public boolean isCod() {
15944
      return this.cod;
15945
    }
15946
 
15947
    public void setCod(boolean cod) {
15948
      this.cod = cod;
15949
      setCodIsSet(true);
15950
    }
15951
 
15952
    public void unsetCod() {
15953
      __isset_bit_vector.clear(__COD_ISSET_ID);
15954
    }
15955
 
15956
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15957
    public boolean isSetCod() {
15958
      return __isset_bit_vector.get(__COD_ISSET_ID);
15959
    }
15960
 
15961
    public void setCodIsSet(boolean value) {
15962
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15963
    }
15964
 
15965
    public int getAwbsSize() {
15966
      return (this.awbs == null) ? 0 : this.awbs.size();
15967
    }
15968
 
15969
    public java.util.Iterator<String> getAwbsIterator() {
15970
      return (this.awbs == null) ? null : this.awbs.iterator();
15971
    }
15972
 
15973
    public void addToAwbs(String elem) {
15974
      if (this.awbs == null) {
15975
        this.awbs = new ArrayList<String>();
15976
      }
15977
      this.awbs.add(elem);
15978
    }
15979
 
15980
    public List<String> getAwbs() {
15981
      return this.awbs;
15982
    }
15983
 
15984
    public void setAwbs(List<String> awbs) {
15985
      this.awbs = awbs;
15986
    }
15987
 
15988
    public void unsetAwbs() {
15989
      this.awbs = null;
15990
    }
15991
 
15992
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15993
    public boolean isSetAwbs() {
15994
      return this.awbs != null;
15995
    }
15996
 
15997
    public void setAwbsIsSet(boolean value) {
15998
      if (!value) {
15999
        this.awbs = null;
16000
      }
16001
    }
16002
 
13146 manish.sha 16003
    public long getAwbUsedFor() {
16004
      return this.awbUsedFor;
16005
    }
16006
 
16007
    public void setAwbUsedFor(long awbUsedFor) {
16008
      this.awbUsedFor = awbUsedFor;
16009
      setAwbUsedForIsSet(true);
16010
    }
16011
 
16012
    public void unsetAwbUsedFor() {
16013
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
16014
    }
16015
 
16016
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
16017
    public boolean isSetAwbUsedFor() {
16018
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
16019
    }
16020
 
16021
    public void setAwbUsedForIsSet(boolean value) {
16022
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
16023
    }
16024
 
7567 rajveer 16025
    public void setFieldValue(_Fields field, Object value) {
16026
      switch (field) {
16027
      case PROVIDER_ID:
16028
        if (value == null) {
16029
          unsetProviderId();
16030
        } else {
16031
          setProviderId((Long)value);
16032
        }
16033
        break;
16034
 
16035
      case COD:
16036
        if (value == null) {
16037
          unsetCod();
16038
        } else {
16039
          setCod((Boolean)value);
16040
        }
16041
        break;
16042
 
16043
      case AWBS:
16044
        if (value == null) {
16045
          unsetAwbs();
16046
        } else {
16047
          setAwbs((List<String>)value);
16048
        }
16049
        break;
16050
 
13146 manish.sha 16051
      case AWB_USED_FOR:
16052
        if (value == null) {
16053
          unsetAwbUsedFor();
16054
        } else {
16055
          setAwbUsedFor((Long)value);
16056
        }
16057
        break;
16058
 
7567 rajveer 16059
      }
16060
    }
16061
 
16062
    public Object getFieldValue(_Fields field) {
16063
      switch (field) {
16064
      case PROVIDER_ID:
16065
        return Long.valueOf(getProviderId());
16066
 
16067
      case COD:
16068
        return Boolean.valueOf(isCod());
16069
 
16070
      case AWBS:
16071
        return getAwbs();
16072
 
13146 manish.sha 16073
      case AWB_USED_FOR:
16074
        return Long.valueOf(getAwbUsedFor());
16075
 
7567 rajveer 16076
      }
16077
      throw new IllegalStateException();
16078
    }
16079
 
16080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16081
    public boolean isSet(_Fields field) {
16082
      if (field == null) {
16083
        throw new IllegalArgumentException();
16084
      }
16085
 
16086
      switch (field) {
16087
      case PROVIDER_ID:
16088
        return isSetProviderId();
16089
      case COD:
16090
        return isSetCod();
16091
      case AWBS:
16092
        return isSetAwbs();
13146 manish.sha 16093
      case AWB_USED_FOR:
16094
        return isSetAwbUsedFor();
7567 rajveer 16095
      }
16096
      throw new IllegalStateException();
16097
    }
16098
 
16099
    @Override
16100
    public boolean equals(Object that) {
16101
      if (that == null)
16102
        return false;
16103
      if (that instanceof addNewAwbs_args)
16104
        return this.equals((addNewAwbs_args)that);
16105
      return false;
16106
    }
16107
 
16108
    public boolean equals(addNewAwbs_args that) {
16109
      if (that == null)
16110
        return false;
16111
 
16112
      boolean this_present_providerId = true;
16113
      boolean that_present_providerId = true;
16114
      if (this_present_providerId || that_present_providerId) {
16115
        if (!(this_present_providerId && that_present_providerId))
16116
          return false;
16117
        if (this.providerId != that.providerId)
16118
          return false;
16119
      }
16120
 
16121
      boolean this_present_cod = true;
16122
      boolean that_present_cod = true;
16123
      if (this_present_cod || that_present_cod) {
16124
        if (!(this_present_cod && that_present_cod))
16125
          return false;
16126
        if (this.cod != that.cod)
16127
          return false;
16128
      }
16129
 
16130
      boolean this_present_awbs = true && this.isSetAwbs();
16131
      boolean that_present_awbs = true && that.isSetAwbs();
16132
      if (this_present_awbs || that_present_awbs) {
16133
        if (!(this_present_awbs && that_present_awbs))
16134
          return false;
16135
        if (!this.awbs.equals(that.awbs))
16136
          return false;
16137
      }
16138
 
13146 manish.sha 16139
      boolean this_present_awbUsedFor = true;
16140
      boolean that_present_awbUsedFor = true;
16141
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16142
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16143
          return false;
16144
        if (this.awbUsedFor != that.awbUsedFor)
16145
          return false;
16146
      }
16147
 
7567 rajveer 16148
      return true;
16149
    }
16150
 
16151
    @Override
16152
    public int hashCode() {
16153
      return 0;
16154
    }
16155
 
16156
    public int compareTo(addNewAwbs_args other) {
16157
      if (!getClass().equals(other.getClass())) {
16158
        return getClass().getName().compareTo(other.getClass().getName());
16159
      }
16160
 
16161
      int lastComparison = 0;
16162
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16163
 
16164
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16165
      if (lastComparison != 0) {
16166
        return lastComparison;
16167
      }
16168
      if (isSetProviderId()) {
16169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16170
        if (lastComparison != 0) {
16171
          return lastComparison;
16172
        }
16173
      }
16174
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16175
      if (lastComparison != 0) {
16176
        return lastComparison;
16177
      }
16178
      if (isSetCod()) {
16179
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16180
        if (lastComparison != 0) {
16181
          return lastComparison;
16182
        }
16183
      }
16184
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16185
      if (lastComparison != 0) {
16186
        return lastComparison;
16187
      }
16188
      if (isSetAwbs()) {
16189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16190
        if (lastComparison != 0) {
16191
          return lastComparison;
16192
        }
16193
      }
13146 manish.sha 16194
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16195
      if (lastComparison != 0) {
16196
        return lastComparison;
16197
      }
16198
      if (isSetAwbUsedFor()) {
16199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16200
        if (lastComparison != 0) {
16201
          return lastComparison;
16202
        }
16203
      }
7567 rajveer 16204
      return 0;
16205
    }
16206
 
16207
    public _Fields fieldForId(int fieldId) {
16208
      return _Fields.findByThriftId(fieldId);
16209
    }
16210
 
16211
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16212
      org.apache.thrift.protocol.TField field;
16213
      iprot.readStructBegin();
16214
      while (true)
16215
      {
16216
        field = iprot.readFieldBegin();
16217
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16218
          break;
16219
        }
16220
        switch (field.id) {
16221
          case 1: // PROVIDER_ID
16222
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16223
              this.providerId = iprot.readI64();
16224
              setProviderIdIsSet(true);
16225
            } else { 
16226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16227
            }
16228
            break;
16229
          case 2: // COD
16230
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16231
              this.cod = iprot.readBool();
16232
              setCodIsSet(true);
16233
            } else { 
16234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16235
            }
16236
            break;
16237
          case 3: // AWBS
16238
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16239
              {
7792 anupam.sin 16240
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16241
                this.awbs = new ArrayList<String>(_list24.size);
16242
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16243
                {
7792 anupam.sin 16244
                  String _elem26; // required
16245
                  _elem26 = iprot.readString();
16246
                  this.awbs.add(_elem26);
7567 rajveer 16247
                }
16248
                iprot.readListEnd();
16249
              }
16250
            } else { 
16251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16252
            }
16253
            break;
13146 manish.sha 16254
          case 4: // AWB_USED_FOR
16255
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16256
              this.awbUsedFor = iprot.readI64();
16257
              setAwbUsedForIsSet(true);
16258
            } else { 
16259
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16260
            }
16261
            break;
7567 rajveer 16262
          default:
16263
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16264
        }
16265
        iprot.readFieldEnd();
16266
      }
16267
      iprot.readStructEnd();
16268
      validate();
16269
    }
16270
 
16271
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16272
      validate();
16273
 
16274
      oprot.writeStructBegin(STRUCT_DESC);
16275
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16276
      oprot.writeI64(this.providerId);
16277
      oprot.writeFieldEnd();
16278
      oprot.writeFieldBegin(COD_FIELD_DESC);
16279
      oprot.writeBool(this.cod);
16280
      oprot.writeFieldEnd();
16281
      if (this.awbs != null) {
16282
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16283
        {
16284
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16285
          for (String _iter27 : this.awbs)
7567 rajveer 16286
          {
7792 anupam.sin 16287
            oprot.writeString(_iter27);
7567 rajveer 16288
          }
16289
          oprot.writeListEnd();
16290
        }
16291
        oprot.writeFieldEnd();
16292
      }
13146 manish.sha 16293
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16294
      oprot.writeI64(this.awbUsedFor);
16295
      oprot.writeFieldEnd();
7567 rajveer 16296
      oprot.writeFieldStop();
16297
      oprot.writeStructEnd();
16298
    }
16299
 
16300
    @Override
16301
    public String toString() {
16302
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16303
      boolean first = true;
16304
 
16305
      sb.append("providerId:");
16306
      sb.append(this.providerId);
16307
      first = false;
16308
      if (!first) sb.append(", ");
16309
      sb.append("cod:");
16310
      sb.append(this.cod);
16311
      first = false;
16312
      if (!first) sb.append(", ");
16313
      sb.append("awbs:");
16314
      if (this.awbs == null) {
16315
        sb.append("null");
16316
      } else {
16317
        sb.append(this.awbs);
16318
      }
16319
      first = false;
13146 manish.sha 16320
      if (!first) sb.append(", ");
16321
      sb.append("awbUsedFor:");
16322
      sb.append(this.awbUsedFor);
16323
      first = false;
7567 rajveer 16324
      sb.append(")");
16325
      return sb.toString();
16326
    }
16327
 
16328
    public void validate() throws org.apache.thrift.TException {
16329
      // check for required fields
16330
    }
16331
 
16332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16333
      try {
16334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16335
      } catch (org.apache.thrift.TException te) {
16336
        throw new java.io.IOException(te);
16337
      }
16338
    }
16339
 
16340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16341
      try {
16342
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16343
        __isset_bit_vector = new BitSet(1);
16344
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16345
      } catch (org.apache.thrift.TException te) {
16346
        throw new java.io.IOException(te);
16347
      }
16348
    }
16349
 
16350
  }
16351
 
16352
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16353
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16354
 
16355
    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);
16356
 
16357
    private boolean success; // required
16358
 
16359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16360
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16361
      SUCCESS((short)0, "success");
16362
 
16363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16364
 
16365
      static {
16366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16367
          byName.put(field.getFieldName(), field);
16368
        }
16369
      }
16370
 
16371
      /**
16372
       * Find the _Fields constant that matches fieldId, or null if its not found.
16373
       */
16374
      public static _Fields findByThriftId(int fieldId) {
16375
        switch(fieldId) {
16376
          case 0: // SUCCESS
16377
            return SUCCESS;
16378
          default:
16379
            return null;
16380
        }
16381
      }
16382
 
16383
      /**
16384
       * Find the _Fields constant that matches fieldId, throwing an exception
16385
       * if it is not found.
16386
       */
16387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16388
        _Fields fields = findByThriftId(fieldId);
16389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16390
        return fields;
16391
      }
16392
 
16393
      /**
16394
       * Find the _Fields constant that matches name, or null if its not found.
16395
       */
16396
      public static _Fields findByName(String name) {
16397
        return byName.get(name);
16398
      }
16399
 
16400
      private final short _thriftId;
16401
      private final String _fieldName;
16402
 
16403
      _Fields(short thriftId, String fieldName) {
16404
        _thriftId = thriftId;
16405
        _fieldName = fieldName;
16406
      }
16407
 
16408
      public short getThriftFieldId() {
16409
        return _thriftId;
16410
      }
16411
 
16412
      public String getFieldName() {
16413
        return _fieldName;
16414
      }
16415
    }
16416
 
16417
    // isset id assignments
16418
    private static final int __SUCCESS_ISSET_ID = 0;
16419
    private BitSet __isset_bit_vector = new BitSet(1);
16420
 
16421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16422
    static {
16423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16424
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16428
    }
16429
 
16430
    public addNewAwbs_result() {
16431
    }
16432
 
16433
    public addNewAwbs_result(
16434
      boolean success)
16435
    {
16436
      this();
16437
      this.success = success;
16438
      setSuccessIsSet(true);
16439
    }
16440
 
16441
    /**
16442
     * Performs a deep copy on <i>other</i>.
16443
     */
16444
    public addNewAwbs_result(addNewAwbs_result other) {
16445
      __isset_bit_vector.clear();
16446
      __isset_bit_vector.or(other.__isset_bit_vector);
16447
      this.success = other.success;
16448
    }
16449
 
16450
    public addNewAwbs_result deepCopy() {
16451
      return new addNewAwbs_result(this);
16452
    }
16453
 
16454
    @Override
16455
    public void clear() {
16456
      setSuccessIsSet(false);
16457
      this.success = false;
16458
    }
16459
 
16460
    public boolean isSuccess() {
16461
      return this.success;
16462
    }
16463
 
16464
    public void setSuccess(boolean success) {
16465
      this.success = success;
16466
      setSuccessIsSet(true);
16467
    }
16468
 
16469
    public void unsetSuccess() {
16470
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16471
    }
16472
 
16473
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16474
    public boolean isSetSuccess() {
16475
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16476
    }
16477
 
16478
    public void setSuccessIsSet(boolean value) {
16479
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16480
    }
16481
 
16482
    public void setFieldValue(_Fields field, Object value) {
16483
      switch (field) {
16484
      case SUCCESS:
16485
        if (value == null) {
16486
          unsetSuccess();
16487
        } else {
16488
          setSuccess((Boolean)value);
16489
        }
16490
        break;
16491
 
16492
      }
16493
    }
16494
 
16495
    public Object getFieldValue(_Fields field) {
16496
      switch (field) {
16497
      case SUCCESS:
16498
        return Boolean.valueOf(isSuccess());
16499
 
16500
      }
16501
      throw new IllegalStateException();
16502
    }
16503
 
16504
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16505
    public boolean isSet(_Fields field) {
16506
      if (field == null) {
16507
        throw new IllegalArgumentException();
16508
      }
16509
 
16510
      switch (field) {
16511
      case SUCCESS:
16512
        return isSetSuccess();
16513
      }
16514
      throw new IllegalStateException();
16515
    }
16516
 
16517
    @Override
16518
    public boolean equals(Object that) {
16519
      if (that == null)
16520
        return false;
16521
      if (that instanceof addNewAwbs_result)
16522
        return this.equals((addNewAwbs_result)that);
16523
      return false;
16524
    }
16525
 
16526
    public boolean equals(addNewAwbs_result that) {
16527
      if (that == null)
16528
        return false;
16529
 
16530
      boolean this_present_success = true;
16531
      boolean that_present_success = true;
16532
      if (this_present_success || that_present_success) {
16533
        if (!(this_present_success && that_present_success))
16534
          return false;
16535
        if (this.success != that.success)
16536
          return false;
16537
      }
16538
 
16539
      return true;
16540
    }
16541
 
16542
    @Override
16543
    public int hashCode() {
16544
      return 0;
16545
    }
16546
 
16547
    public int compareTo(addNewAwbs_result other) {
16548
      if (!getClass().equals(other.getClass())) {
16549
        return getClass().getName().compareTo(other.getClass().getName());
16550
      }
16551
 
16552
      int lastComparison = 0;
16553
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16554
 
16555
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16556
      if (lastComparison != 0) {
16557
        return lastComparison;
16558
      }
16559
      if (isSetSuccess()) {
16560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16561
        if (lastComparison != 0) {
16562
          return lastComparison;
16563
        }
16564
      }
16565
      return 0;
16566
    }
16567
 
16568
    public _Fields fieldForId(int fieldId) {
16569
      return _Fields.findByThriftId(fieldId);
16570
    }
16571
 
16572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16573
      org.apache.thrift.protocol.TField field;
16574
      iprot.readStructBegin();
16575
      while (true)
16576
      {
16577
        field = iprot.readFieldBegin();
16578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16579
          break;
16580
        }
16581
        switch (field.id) {
16582
          case 0: // SUCCESS
16583
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16584
              this.success = iprot.readBool();
16585
              setSuccessIsSet(true);
16586
            } else { 
16587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16588
            }
16589
            break;
16590
          default:
16591
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16592
        }
16593
        iprot.readFieldEnd();
16594
      }
16595
      iprot.readStructEnd();
16596
      validate();
16597
    }
16598
 
16599
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16600
      oprot.writeStructBegin(STRUCT_DESC);
16601
 
16602
      if (this.isSetSuccess()) {
16603
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16604
        oprot.writeBool(this.success);
16605
        oprot.writeFieldEnd();
16606
      }
16607
      oprot.writeFieldStop();
16608
      oprot.writeStructEnd();
16609
    }
16610
 
16611
    @Override
16612
    public String toString() {
16613
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16614
      boolean first = true;
16615
 
16616
      sb.append("success:");
16617
      sb.append(this.success);
16618
      first = false;
16619
      sb.append(")");
16620
      return sb.toString();
16621
    }
16622
 
16623
    public void validate() throws org.apache.thrift.TException {
16624
      // check for required fields
16625
    }
16626
 
16627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16628
      try {
16629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16630
      } catch (org.apache.thrift.TException te) {
16631
        throw new java.io.IOException(te);
16632
      }
16633
    }
16634
 
16635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16636
      try {
16637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16638
      } catch (org.apache.thrift.TException te) {
16639
        throw new java.io.IOException(te);
16640
      }
16641
    }
16642
 
16643
  }
16644
 
7788 manish.sha 16645
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16647
 
7788 manish.sha 16648
    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);
16649
    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);
23123 amit.gupta 16650
    private static final org.apache.thrift.protocol.TField PROVIDER_FIELD_DESC = new org.apache.thrift.protocol.TField("provider", org.apache.thrift.protocol.TType.I64, (short)3);
7737 manish.sha 16651
 
7788 manish.sha 16652
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16653
    private boolean runCompleteUpdate; // required
23123 amit.gupta 16654
    private long provider; // required
7737 manish.sha 16655
 
16656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16657
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16658
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
23123 amit.gupta 16659
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate"),
16660
      PROVIDER((short)3, "provider");
7737 manish.sha 16661
 
16662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16663
 
16664
      static {
16665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16666
          byName.put(field.getFieldName(), field);
16667
        }
16668
      }
16669
 
16670
      /**
16671
       * Find the _Fields constant that matches fieldId, or null if its not found.
16672
       */
16673
      public static _Fields findByThriftId(int fieldId) {
16674
        switch(fieldId) {
7788 manish.sha 16675
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16676
            return LOGISTICS_LOCATION_INFO_LIST;
16677
          case 2: // RUN_COMPLETE_UPDATE
16678
            return RUN_COMPLETE_UPDATE;
23123 amit.gupta 16679
          case 3: // PROVIDER
16680
            return PROVIDER;
7737 manish.sha 16681
          default:
16682
            return null;
16683
        }
16684
      }
16685
 
16686
      /**
16687
       * Find the _Fields constant that matches fieldId, throwing an exception
16688
       * if it is not found.
16689
       */
16690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16691
        _Fields fields = findByThriftId(fieldId);
16692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16693
        return fields;
16694
      }
16695
 
16696
      /**
16697
       * Find the _Fields constant that matches name, or null if its not found.
16698
       */
16699
      public static _Fields findByName(String name) {
16700
        return byName.get(name);
16701
      }
16702
 
16703
      private final short _thriftId;
16704
      private final String _fieldName;
16705
 
16706
      _Fields(short thriftId, String fieldName) {
16707
        _thriftId = thriftId;
16708
        _fieldName = fieldName;
16709
      }
16710
 
16711
      public short getThriftFieldId() {
16712
        return _thriftId;
16713
      }
16714
 
16715
      public String getFieldName() {
16716
        return _fieldName;
16717
      }
16718
    }
16719
 
16720
    // isset id assignments
7788 manish.sha 16721
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
23123 amit.gupta 16722
    private static final int __PROVIDER_ISSET_ID = 1;
16723
    private BitSet __isset_bit_vector = new BitSet(2);
7737 manish.sha 16724
 
16725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16726
    static {
16727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16728
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16729
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16730
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16731
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16732
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23123 amit.gupta 16733
      tmpMap.put(_Fields.PROVIDER, new org.apache.thrift.meta_data.FieldMetaData("provider", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16734
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7737 manish.sha 16735
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16736
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16737
    }
16738
 
7788 manish.sha 16739
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16740
    }
16741
 
7788 manish.sha 16742
    public runLogisticsLocationInfoUpdate_args(
16743
      List<LogisticsLocationInfo> logisticsLocationInfoList,
23123 amit.gupta 16744
      boolean runCompleteUpdate,
16745
      long provider)
7737 manish.sha 16746
    {
16747
      this();
7788 manish.sha 16748
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16749
      this.runCompleteUpdate = runCompleteUpdate;
16750
      setRunCompleteUpdateIsSet(true);
23123 amit.gupta 16751
      this.provider = provider;
16752
      setProviderIsSet(true);
7737 manish.sha 16753
    }
16754
 
16755
    /**
16756
     * Performs a deep copy on <i>other</i>.
16757
     */
7788 manish.sha 16758
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16759
      __isset_bit_vector.clear();
16760
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16761
      if (other.isSetLogisticsLocationInfoList()) {
16762
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16763
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16764
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16765
        }
16766
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16767
      }
7788 manish.sha 16768
      this.runCompleteUpdate = other.runCompleteUpdate;
23123 amit.gupta 16769
      this.provider = other.provider;
7737 manish.sha 16770
    }
16771
 
7788 manish.sha 16772
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16773
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16774
    }
16775
 
16776
    @Override
16777
    public void clear() {
7788 manish.sha 16778
      this.logisticsLocationInfoList = null;
16779
      setRunCompleteUpdateIsSet(false);
16780
      this.runCompleteUpdate = false;
23123 amit.gupta 16781
      setProviderIsSet(false);
16782
      this.provider = 0;
7737 manish.sha 16783
    }
16784
 
7788 manish.sha 16785
    public int getLogisticsLocationInfoListSize() {
16786
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16787
    }
16788
 
7788 manish.sha 16789
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16790
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16791
    }
16792
 
7788 manish.sha 16793
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16794
      if (this.logisticsLocationInfoList == null) {
16795
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16796
      }
16797
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16798
    }
16799
 
7788 manish.sha 16800
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16801
      return this.logisticsLocationInfoList;
7737 manish.sha 16802
    }
16803
 
7788 manish.sha 16804
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16805
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16806
    }
16807
 
7788 manish.sha 16808
    public void unsetLogisticsLocationInfoList() {
16809
      this.logisticsLocationInfoList = null;
7737 manish.sha 16810
    }
16811
 
7788 manish.sha 16812
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16813
    public boolean isSetLogisticsLocationInfoList() {
16814
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16815
    }
16816
 
7788 manish.sha 16817
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16818
      if (!value) {
16819
        this.logisticsLocationInfoList = null;
16820
      }
7737 manish.sha 16821
    }
16822
 
7788 manish.sha 16823
    public boolean isRunCompleteUpdate() {
16824
      return this.runCompleteUpdate;
7737 manish.sha 16825
    }
16826
 
7788 manish.sha 16827
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16828
      this.runCompleteUpdate = runCompleteUpdate;
16829
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16830
    }
16831
 
7788 manish.sha 16832
    public void unsetRunCompleteUpdate() {
16833
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16834
    }
16835
 
16836
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16837
    public boolean isSetRunCompleteUpdate() {
16838
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16839
    }
16840
 
16841
    public void setRunCompleteUpdateIsSet(boolean value) {
16842
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16843
    }
16844
 
23123 amit.gupta 16845
    public long getProvider() {
16846
      return this.provider;
16847
    }
16848
 
16849
    public void setProvider(long provider) {
16850
      this.provider = provider;
16851
      setProviderIsSet(true);
16852
    }
16853
 
16854
    public void unsetProvider() {
16855
      __isset_bit_vector.clear(__PROVIDER_ISSET_ID);
16856
    }
16857
 
16858
    /** Returns true if field provider is set (has been assigned a value) and false otherwise */
16859
    public boolean isSetProvider() {
16860
      return __isset_bit_vector.get(__PROVIDER_ISSET_ID);
16861
    }
16862
 
16863
    public void setProviderIsSet(boolean value) {
16864
      __isset_bit_vector.set(__PROVIDER_ISSET_ID, value);
16865
    }
16866
 
7737 manish.sha 16867
    public void setFieldValue(_Fields field, Object value) {
16868
      switch (field) {
7788 manish.sha 16869
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16870
        if (value == null) {
7788 manish.sha 16871
          unsetLogisticsLocationInfoList();
7737 manish.sha 16872
        } else {
7788 manish.sha 16873
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16874
        }
16875
        break;
16876
 
7788 manish.sha 16877
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16878
        if (value == null) {
7788 manish.sha 16879
          unsetRunCompleteUpdate();
7737 manish.sha 16880
        } else {
7788 manish.sha 16881
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16882
        }
16883
        break;
16884
 
23123 amit.gupta 16885
      case PROVIDER:
16886
        if (value == null) {
16887
          unsetProvider();
16888
        } else {
16889
          setProvider((Long)value);
16890
        }
16891
        break;
16892
 
7737 manish.sha 16893
      }
16894
    }
16895
 
16896
    public Object getFieldValue(_Fields field) {
16897
      switch (field) {
7788 manish.sha 16898
      case LOGISTICS_LOCATION_INFO_LIST:
16899
        return getLogisticsLocationInfoList();
7737 manish.sha 16900
 
7788 manish.sha 16901
      case RUN_COMPLETE_UPDATE:
16902
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16903
 
23123 amit.gupta 16904
      case PROVIDER:
16905
        return Long.valueOf(getProvider());
16906
 
7737 manish.sha 16907
      }
16908
      throw new IllegalStateException();
16909
    }
16910
 
16911
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16912
    public boolean isSet(_Fields field) {
16913
      if (field == null) {
16914
        throw new IllegalArgumentException();
16915
      }
16916
 
16917
      switch (field) {
7788 manish.sha 16918
      case LOGISTICS_LOCATION_INFO_LIST:
16919
        return isSetLogisticsLocationInfoList();
16920
      case RUN_COMPLETE_UPDATE:
16921
        return isSetRunCompleteUpdate();
23123 amit.gupta 16922
      case PROVIDER:
16923
        return isSetProvider();
7737 manish.sha 16924
      }
16925
      throw new IllegalStateException();
16926
    }
16927
 
16928
    @Override
16929
    public boolean equals(Object that) {
16930
      if (that == null)
16931
        return false;
7788 manish.sha 16932
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16933
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16934
      return false;
16935
    }
16936
 
7788 manish.sha 16937
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16938
      if (that == null)
16939
        return false;
16940
 
7788 manish.sha 16941
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16942
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16943
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16944
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16945
          return false;
7788 manish.sha 16946
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16947
          return false;
16948
      }
16949
 
7788 manish.sha 16950
      boolean this_present_runCompleteUpdate = true;
16951
      boolean that_present_runCompleteUpdate = true;
16952
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16953
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16954
          return false;
7788 manish.sha 16955
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16956
          return false;
16957
      }
16958
 
23123 amit.gupta 16959
      boolean this_present_provider = true;
16960
      boolean that_present_provider = true;
16961
      if (this_present_provider || that_present_provider) {
16962
        if (!(this_present_provider && that_present_provider))
16963
          return false;
16964
        if (this.provider != that.provider)
16965
          return false;
16966
      }
16967
 
7737 manish.sha 16968
      return true;
16969
    }
16970
 
16971
    @Override
16972
    public int hashCode() {
16973
      return 0;
16974
    }
16975
 
7788 manish.sha 16976
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16977
      if (!getClass().equals(other.getClass())) {
16978
        return getClass().getName().compareTo(other.getClass().getName());
16979
      }
16980
 
16981
      int lastComparison = 0;
7788 manish.sha 16982
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16983
 
7788 manish.sha 16984
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16985
      if (lastComparison != 0) {
16986
        return lastComparison;
16987
      }
7788 manish.sha 16988
      if (isSetLogisticsLocationInfoList()) {
16989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16990
        if (lastComparison != 0) {
16991
          return lastComparison;
16992
        }
16993
      }
7788 manish.sha 16994
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16995
      if (lastComparison != 0) {
16996
        return lastComparison;
16997
      }
7788 manish.sha 16998
      if (isSetRunCompleteUpdate()) {
16999
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 17000
        if (lastComparison != 0) {
17001
          return lastComparison;
17002
        }
17003
      }
23123 amit.gupta 17004
      lastComparison = Boolean.valueOf(isSetProvider()).compareTo(typedOther.isSetProvider());
17005
      if (lastComparison != 0) {
17006
        return lastComparison;
17007
      }
17008
      if (isSetProvider()) {
17009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.provider, typedOther.provider);
17010
        if (lastComparison != 0) {
17011
          return lastComparison;
17012
        }
17013
      }
7737 manish.sha 17014
      return 0;
17015
    }
17016
 
17017
    public _Fields fieldForId(int fieldId) {
17018
      return _Fields.findByThriftId(fieldId);
17019
    }
17020
 
17021
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17022
      org.apache.thrift.protocol.TField field;
17023
      iprot.readStructBegin();
17024
      while (true)
17025
      {
17026
        field = iprot.readFieldBegin();
17027
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17028
          break;
17029
        }
17030
        switch (field.id) {
7788 manish.sha 17031
          case 1: // LOGISTICS_LOCATION_INFO_LIST
17032
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17033
              {
7808 anupam.sin 17034
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
17035
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
17036
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 17037
                {
7808 anupam.sin 17038
                  LogisticsLocationInfo _elem30; // required
17039
                  _elem30 = new LogisticsLocationInfo();
17040
                  _elem30.read(iprot);
17041
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 17042
                }
17043
                iprot.readListEnd();
17044
              }
7737 manish.sha 17045
            } else { 
17046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17047
            }
17048
            break;
7788 manish.sha 17049
          case 2: // RUN_COMPLETE_UPDATE
17050
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17051
              this.runCompleteUpdate = iprot.readBool();
17052
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 17053
            } else { 
17054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17055
            }
17056
            break;
23123 amit.gupta 17057
          case 3: // PROVIDER
17058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17059
              this.provider = iprot.readI64();
17060
              setProviderIsSet(true);
17061
            } else { 
17062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17063
            }
17064
            break;
7737 manish.sha 17065
          default:
17066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17067
        }
17068
        iprot.readFieldEnd();
17069
      }
17070
      iprot.readStructEnd();
17071
      validate();
17072
    }
17073
 
17074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17075
      validate();
17076
 
17077
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 17078
      if (this.logisticsLocationInfoList != null) {
17079
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
17080
        {
17081
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 17082
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 17083
          {
7808 anupam.sin 17084
            _iter31.write(oprot);
7788 manish.sha 17085
          }
17086
          oprot.writeListEnd();
17087
        }
7737 manish.sha 17088
        oprot.writeFieldEnd();
17089
      }
7788 manish.sha 17090
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
17091
      oprot.writeBool(this.runCompleteUpdate);
17092
      oprot.writeFieldEnd();
23123 amit.gupta 17093
      oprot.writeFieldBegin(PROVIDER_FIELD_DESC);
17094
      oprot.writeI64(this.provider);
17095
      oprot.writeFieldEnd();
7737 manish.sha 17096
      oprot.writeFieldStop();
17097
      oprot.writeStructEnd();
17098
    }
17099
 
17100
    @Override
17101
    public String toString() {
7788 manish.sha 17102
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 17103
      boolean first = true;
17104
 
7788 manish.sha 17105
      sb.append("logisticsLocationInfoList:");
17106
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 17107
        sb.append("null");
17108
      } else {
7788 manish.sha 17109
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 17110
      }
17111
      first = false;
7788 manish.sha 17112
      if (!first) sb.append(", ");
17113
      sb.append("runCompleteUpdate:");
17114
      sb.append(this.runCompleteUpdate);
7737 manish.sha 17115
      first = false;
23123 amit.gupta 17116
      if (!first) sb.append(", ");
17117
      sb.append("provider:");
17118
      sb.append(this.provider);
17119
      first = false;
7737 manish.sha 17120
      sb.append(")");
17121
      return sb.toString();
17122
    }
17123
 
17124
    public void validate() throws org.apache.thrift.TException {
17125
      // check for required fields
17126
    }
17127
 
17128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17129
      try {
17130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17131
      } catch (org.apache.thrift.TException te) {
17132
        throw new java.io.IOException(te);
17133
      }
17134
    }
17135
 
17136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17137
      try {
7788 manish.sha 17138
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17139
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 17140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17141
      } catch (org.apache.thrift.TException te) {
17142
        throw new java.io.IOException(te);
17143
      }
17144
    }
17145
 
17146
  }
17147
 
7788 manish.sha 17148
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
17149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 17150
 
17151
 
17152
 
17153
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17154
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17155
;
17156
 
17157
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17158
 
17159
      static {
17160
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17161
          byName.put(field.getFieldName(), field);
17162
        }
17163
      }
17164
 
17165
      /**
17166
       * Find the _Fields constant that matches fieldId, or null if its not found.
17167
       */
17168
      public static _Fields findByThriftId(int fieldId) {
17169
        switch(fieldId) {
17170
          default:
17171
            return null;
17172
        }
17173
      }
17174
 
17175
      /**
17176
       * Find the _Fields constant that matches fieldId, throwing an exception
17177
       * if it is not found.
17178
       */
17179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17180
        _Fields fields = findByThriftId(fieldId);
17181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17182
        return fields;
17183
      }
17184
 
17185
      /**
17186
       * Find the _Fields constant that matches name, or null if its not found.
17187
       */
17188
      public static _Fields findByName(String name) {
17189
        return byName.get(name);
17190
      }
17191
 
17192
      private final short _thriftId;
17193
      private final String _fieldName;
17194
 
17195
      _Fields(short thriftId, String fieldName) {
17196
        _thriftId = thriftId;
17197
        _fieldName = fieldName;
17198
      }
17199
 
17200
      public short getThriftFieldId() {
17201
        return _thriftId;
17202
      }
17203
 
17204
      public String getFieldName() {
17205
        return _fieldName;
17206
      }
17207
    }
17208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17209
    static {
17210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17213
    }
17214
 
7788 manish.sha 17215
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17216
    }
17217
 
17218
    /**
17219
     * Performs a deep copy on <i>other</i>.
17220
     */
7788 manish.sha 17221
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17222
    }
17223
 
7788 manish.sha 17224
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17225
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17226
    }
17227
 
17228
    @Override
17229
    public void clear() {
17230
    }
17231
 
17232
    public void setFieldValue(_Fields field, Object value) {
17233
      switch (field) {
17234
      }
17235
    }
17236
 
17237
    public Object getFieldValue(_Fields field) {
17238
      switch (field) {
17239
      }
17240
      throw new IllegalStateException();
17241
    }
17242
 
17243
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17244
    public boolean isSet(_Fields field) {
17245
      if (field == null) {
17246
        throw new IllegalArgumentException();
17247
      }
17248
 
17249
      switch (field) {
17250
      }
17251
      throw new IllegalStateException();
17252
    }
17253
 
17254
    @Override
17255
    public boolean equals(Object that) {
17256
      if (that == null)
17257
        return false;
7788 manish.sha 17258
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17259
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17260
      return false;
17261
    }
17262
 
7788 manish.sha 17263
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17264
      if (that == null)
17265
        return false;
17266
 
17267
      return true;
17268
    }
17269
 
17270
    @Override
17271
    public int hashCode() {
17272
      return 0;
17273
    }
17274
 
7788 manish.sha 17275
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17276
      if (!getClass().equals(other.getClass())) {
17277
        return getClass().getName().compareTo(other.getClass().getName());
17278
      }
17279
 
17280
      int lastComparison = 0;
7788 manish.sha 17281
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17282
 
17283
      return 0;
17284
    }
17285
 
17286
    public _Fields fieldForId(int fieldId) {
17287
      return _Fields.findByThriftId(fieldId);
17288
    }
17289
 
17290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17291
      org.apache.thrift.protocol.TField field;
17292
      iprot.readStructBegin();
17293
      while (true)
17294
      {
17295
        field = iprot.readFieldBegin();
17296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17297
          break;
17298
        }
17299
        switch (field.id) {
17300
          default:
17301
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17302
        }
17303
        iprot.readFieldEnd();
17304
      }
17305
      iprot.readStructEnd();
17306
      validate();
17307
    }
17308
 
17309
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17310
      oprot.writeStructBegin(STRUCT_DESC);
17311
 
17312
      oprot.writeFieldStop();
17313
      oprot.writeStructEnd();
17314
    }
17315
 
17316
    @Override
17317
    public String toString() {
7788 manish.sha 17318
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17319
      boolean first = true;
17320
 
17321
      sb.append(")");
17322
      return sb.toString();
17323
    }
17324
 
17325
    public void validate() throws org.apache.thrift.TException {
17326
      // check for required fields
17327
    }
17328
 
17329
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17330
      try {
17331
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17332
      } catch (org.apache.thrift.TException te) {
17333
        throw new java.io.IOException(te);
17334
      }
17335
    }
17336
 
17337
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17338
      try {
17339
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17340
      } catch (org.apache.thrift.TException te) {
17341
        throw new java.io.IOException(te);
17342
      }
17343
    }
17344
 
17345
  }
17346
 
7888 rajveer 17347
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17348
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17349
 
17350
    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);
17351
    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);
17352
 
17353
    private long startDate; // required
17354
    private long days; // required
17355
 
17356
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17357
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17358
      START_DATE((short)1, "startDate"),
17359
      DAYS((short)2, "days");
17360
 
17361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17362
 
17363
      static {
17364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17365
          byName.put(field.getFieldName(), field);
17366
        }
17367
      }
17368
 
17369
      /**
17370
       * Find the _Fields constant that matches fieldId, or null if its not found.
17371
       */
17372
      public static _Fields findByThriftId(int fieldId) {
17373
        switch(fieldId) {
17374
          case 1: // START_DATE
17375
            return START_DATE;
17376
          case 2: // DAYS
17377
            return DAYS;
17378
          default:
17379
            return null;
17380
        }
17381
      }
17382
 
17383
      /**
17384
       * Find the _Fields constant that matches fieldId, throwing an exception
17385
       * if it is not found.
17386
       */
17387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17388
        _Fields fields = findByThriftId(fieldId);
17389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17390
        return fields;
17391
      }
17392
 
17393
      /**
17394
       * Find the _Fields constant that matches name, or null if its not found.
17395
       */
17396
      public static _Fields findByName(String name) {
17397
        return byName.get(name);
17398
      }
17399
 
17400
      private final short _thriftId;
17401
      private final String _fieldName;
17402
 
17403
      _Fields(short thriftId, String fieldName) {
17404
        _thriftId = thriftId;
17405
        _fieldName = fieldName;
17406
      }
17407
 
17408
      public short getThriftFieldId() {
17409
        return _thriftId;
17410
      }
17411
 
17412
      public String getFieldName() {
17413
        return _fieldName;
17414
      }
17415
    }
17416
 
17417
    // isset id assignments
17418
    private static final int __STARTDATE_ISSET_ID = 0;
17419
    private static final int __DAYS_ISSET_ID = 1;
17420
    private BitSet __isset_bit_vector = new BitSet(2);
17421
 
17422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17423
    static {
17424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17425
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17427
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17428
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17429
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17430
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17431
    }
17432
 
17433
    public adjustDeliveryDays_args() {
17434
    }
17435
 
17436
    public adjustDeliveryDays_args(
17437
      long startDate,
17438
      long days)
17439
    {
17440
      this();
17441
      this.startDate = startDate;
17442
      setStartDateIsSet(true);
17443
      this.days = days;
17444
      setDaysIsSet(true);
17445
    }
17446
 
17447
    /**
17448
     * Performs a deep copy on <i>other</i>.
17449
     */
17450
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17451
      __isset_bit_vector.clear();
17452
      __isset_bit_vector.or(other.__isset_bit_vector);
17453
      this.startDate = other.startDate;
17454
      this.days = other.days;
17455
    }
17456
 
17457
    public adjustDeliveryDays_args deepCopy() {
17458
      return new adjustDeliveryDays_args(this);
17459
    }
17460
 
17461
    @Override
17462
    public void clear() {
17463
      setStartDateIsSet(false);
17464
      this.startDate = 0;
17465
      setDaysIsSet(false);
17466
      this.days = 0;
17467
    }
17468
 
17469
    public long getStartDate() {
17470
      return this.startDate;
17471
    }
17472
 
17473
    public void setStartDate(long startDate) {
17474
      this.startDate = startDate;
17475
      setStartDateIsSet(true);
17476
    }
17477
 
17478
    public void unsetStartDate() {
17479
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17480
    }
17481
 
17482
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17483
    public boolean isSetStartDate() {
17484
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17485
    }
17486
 
17487
    public void setStartDateIsSet(boolean value) {
17488
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17489
    }
17490
 
17491
    public long getDays() {
17492
      return this.days;
17493
    }
17494
 
17495
    public void setDays(long days) {
17496
      this.days = days;
17497
      setDaysIsSet(true);
17498
    }
17499
 
17500
    public void unsetDays() {
17501
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17502
    }
17503
 
17504
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17505
    public boolean isSetDays() {
17506
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17507
    }
17508
 
17509
    public void setDaysIsSet(boolean value) {
17510
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17511
    }
17512
 
17513
    public void setFieldValue(_Fields field, Object value) {
17514
      switch (field) {
17515
      case START_DATE:
17516
        if (value == null) {
17517
          unsetStartDate();
17518
        } else {
17519
          setStartDate((Long)value);
17520
        }
17521
        break;
17522
 
17523
      case DAYS:
17524
        if (value == null) {
17525
          unsetDays();
17526
        } else {
17527
          setDays((Long)value);
17528
        }
17529
        break;
17530
 
17531
      }
17532
    }
17533
 
17534
    public Object getFieldValue(_Fields field) {
17535
      switch (field) {
17536
      case START_DATE:
17537
        return Long.valueOf(getStartDate());
17538
 
17539
      case DAYS:
17540
        return Long.valueOf(getDays());
17541
 
17542
      }
17543
      throw new IllegalStateException();
17544
    }
17545
 
17546
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17547
    public boolean isSet(_Fields field) {
17548
      if (field == null) {
17549
        throw new IllegalArgumentException();
17550
      }
17551
 
17552
      switch (field) {
17553
      case START_DATE:
17554
        return isSetStartDate();
17555
      case DAYS:
17556
        return isSetDays();
17557
      }
17558
      throw new IllegalStateException();
17559
    }
17560
 
17561
    @Override
17562
    public boolean equals(Object that) {
17563
      if (that == null)
17564
        return false;
17565
      if (that instanceof adjustDeliveryDays_args)
17566
        return this.equals((adjustDeliveryDays_args)that);
17567
      return false;
17568
    }
17569
 
17570
    public boolean equals(adjustDeliveryDays_args that) {
17571
      if (that == null)
17572
        return false;
17573
 
17574
      boolean this_present_startDate = true;
17575
      boolean that_present_startDate = true;
17576
      if (this_present_startDate || that_present_startDate) {
17577
        if (!(this_present_startDate && that_present_startDate))
17578
          return false;
17579
        if (this.startDate != that.startDate)
17580
          return false;
17581
      }
17582
 
17583
      boolean this_present_days = true;
17584
      boolean that_present_days = true;
17585
      if (this_present_days || that_present_days) {
17586
        if (!(this_present_days && that_present_days))
17587
          return false;
17588
        if (this.days != that.days)
17589
          return false;
17590
      }
17591
 
17592
      return true;
17593
    }
17594
 
17595
    @Override
17596
    public int hashCode() {
17597
      return 0;
17598
    }
17599
 
17600
    public int compareTo(adjustDeliveryDays_args other) {
17601
      if (!getClass().equals(other.getClass())) {
17602
        return getClass().getName().compareTo(other.getClass().getName());
17603
      }
17604
 
17605
      int lastComparison = 0;
17606
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17607
 
17608
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17609
      if (lastComparison != 0) {
17610
        return lastComparison;
17611
      }
17612
      if (isSetStartDate()) {
17613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17614
        if (lastComparison != 0) {
17615
          return lastComparison;
17616
        }
17617
      }
17618
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17619
      if (lastComparison != 0) {
17620
        return lastComparison;
17621
      }
17622
      if (isSetDays()) {
17623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17624
        if (lastComparison != 0) {
17625
          return lastComparison;
17626
        }
17627
      }
17628
      return 0;
17629
    }
17630
 
17631
    public _Fields fieldForId(int fieldId) {
17632
      return _Fields.findByThriftId(fieldId);
17633
    }
17634
 
17635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17636
      org.apache.thrift.protocol.TField field;
17637
      iprot.readStructBegin();
17638
      while (true)
17639
      {
17640
        field = iprot.readFieldBegin();
17641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17642
          break;
17643
        }
17644
        switch (field.id) {
17645
          case 1: // START_DATE
17646
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17647
              this.startDate = iprot.readI64();
17648
              setStartDateIsSet(true);
17649
            } else { 
17650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17651
            }
17652
            break;
17653
          case 2: // DAYS
17654
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17655
              this.days = iprot.readI64();
17656
              setDaysIsSet(true);
17657
            } else { 
17658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17659
            }
17660
            break;
17661
          default:
17662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17663
        }
17664
        iprot.readFieldEnd();
17665
      }
17666
      iprot.readStructEnd();
17667
      validate();
17668
    }
17669
 
17670
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17671
      validate();
17672
 
17673
      oprot.writeStructBegin(STRUCT_DESC);
17674
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17675
      oprot.writeI64(this.startDate);
17676
      oprot.writeFieldEnd();
17677
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17678
      oprot.writeI64(this.days);
17679
      oprot.writeFieldEnd();
17680
      oprot.writeFieldStop();
17681
      oprot.writeStructEnd();
17682
    }
17683
 
17684
    @Override
17685
    public String toString() {
17686
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17687
      boolean first = true;
17688
 
17689
      sb.append("startDate:");
17690
      sb.append(this.startDate);
17691
      first = false;
17692
      if (!first) sb.append(", ");
17693
      sb.append("days:");
17694
      sb.append(this.days);
17695
      first = false;
17696
      sb.append(")");
17697
      return sb.toString();
17698
    }
17699
 
17700
    public void validate() throws org.apache.thrift.TException {
17701
      // check for required fields
17702
    }
17703
 
17704
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17705
      try {
17706
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17707
      } catch (org.apache.thrift.TException te) {
17708
        throw new java.io.IOException(te);
17709
      }
17710
    }
17711
 
17712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17713
      try {
17714
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17715
        __isset_bit_vector = new BitSet(1);
17716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17717
      } catch (org.apache.thrift.TException te) {
17718
        throw new java.io.IOException(te);
17719
      }
17720
    }
17721
 
17722
  }
17723
 
17724
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17725
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17726
 
17727
    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);
17728
 
17729
    private long success; // required
17730
 
17731
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17732
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17733
      SUCCESS((short)0, "success");
17734
 
17735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17736
 
17737
      static {
17738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17739
          byName.put(field.getFieldName(), field);
17740
        }
17741
      }
17742
 
17743
      /**
17744
       * Find the _Fields constant that matches fieldId, or null if its not found.
17745
       */
17746
      public static _Fields findByThriftId(int fieldId) {
17747
        switch(fieldId) {
17748
          case 0: // SUCCESS
17749
            return SUCCESS;
17750
          default:
17751
            return null;
17752
        }
17753
      }
17754
 
17755
      /**
17756
       * Find the _Fields constant that matches fieldId, throwing an exception
17757
       * if it is not found.
17758
       */
17759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17760
        _Fields fields = findByThriftId(fieldId);
17761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17762
        return fields;
17763
      }
17764
 
17765
      /**
17766
       * Find the _Fields constant that matches name, or null if its not found.
17767
       */
17768
      public static _Fields findByName(String name) {
17769
        return byName.get(name);
17770
      }
17771
 
17772
      private final short _thriftId;
17773
      private final String _fieldName;
17774
 
17775
      _Fields(short thriftId, String fieldName) {
17776
        _thriftId = thriftId;
17777
        _fieldName = fieldName;
17778
      }
17779
 
17780
      public short getThriftFieldId() {
17781
        return _thriftId;
17782
      }
17783
 
17784
      public String getFieldName() {
17785
        return _fieldName;
17786
      }
17787
    }
17788
 
17789
    // isset id assignments
17790
    private static final int __SUCCESS_ISSET_ID = 0;
17791
    private BitSet __isset_bit_vector = new BitSet(1);
17792
 
17793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17794
    static {
17795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17796
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17800
    }
17801
 
17802
    public adjustDeliveryDays_result() {
17803
    }
17804
 
17805
    public adjustDeliveryDays_result(
17806
      long success)
17807
    {
17808
      this();
17809
      this.success = success;
17810
      setSuccessIsSet(true);
17811
    }
17812
 
17813
    /**
17814
     * Performs a deep copy on <i>other</i>.
17815
     */
17816
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17817
      __isset_bit_vector.clear();
17818
      __isset_bit_vector.or(other.__isset_bit_vector);
17819
      this.success = other.success;
17820
    }
17821
 
17822
    public adjustDeliveryDays_result deepCopy() {
17823
      return new adjustDeliveryDays_result(this);
17824
    }
17825
 
17826
    @Override
17827
    public void clear() {
17828
      setSuccessIsSet(false);
17829
      this.success = 0;
17830
    }
17831
 
17832
    public long getSuccess() {
17833
      return this.success;
17834
    }
17835
 
17836
    public void setSuccess(long success) {
17837
      this.success = success;
17838
      setSuccessIsSet(true);
17839
    }
17840
 
17841
    public void unsetSuccess() {
17842
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17843
    }
17844
 
17845
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17846
    public boolean isSetSuccess() {
17847
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17848
    }
17849
 
17850
    public void setSuccessIsSet(boolean value) {
17851
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17852
    }
17853
 
17854
    public void setFieldValue(_Fields field, Object value) {
17855
      switch (field) {
17856
      case SUCCESS:
17857
        if (value == null) {
17858
          unsetSuccess();
17859
        } else {
17860
          setSuccess((Long)value);
17861
        }
17862
        break;
17863
 
17864
      }
17865
    }
17866
 
17867
    public Object getFieldValue(_Fields field) {
17868
      switch (field) {
17869
      case SUCCESS:
17870
        return Long.valueOf(getSuccess());
17871
 
17872
      }
17873
      throw new IllegalStateException();
17874
    }
17875
 
17876
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17877
    public boolean isSet(_Fields field) {
17878
      if (field == null) {
17879
        throw new IllegalArgumentException();
17880
      }
17881
 
17882
      switch (field) {
17883
      case SUCCESS:
17884
        return isSetSuccess();
17885
      }
17886
      throw new IllegalStateException();
17887
    }
17888
 
17889
    @Override
17890
    public boolean equals(Object that) {
17891
      if (that == null)
17892
        return false;
17893
      if (that instanceof adjustDeliveryDays_result)
17894
        return this.equals((adjustDeliveryDays_result)that);
17895
      return false;
17896
    }
17897
 
17898
    public boolean equals(adjustDeliveryDays_result that) {
17899
      if (that == null)
17900
        return false;
17901
 
17902
      boolean this_present_success = true;
17903
      boolean that_present_success = true;
17904
      if (this_present_success || that_present_success) {
17905
        if (!(this_present_success && that_present_success))
17906
          return false;
17907
        if (this.success != that.success)
17908
          return false;
17909
      }
17910
 
17911
      return true;
17912
    }
17913
 
17914
    @Override
17915
    public int hashCode() {
17916
      return 0;
17917
    }
17918
 
17919
    public int compareTo(adjustDeliveryDays_result other) {
17920
      if (!getClass().equals(other.getClass())) {
17921
        return getClass().getName().compareTo(other.getClass().getName());
17922
      }
17923
 
17924
      int lastComparison = 0;
17925
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17926
 
17927
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17928
      if (lastComparison != 0) {
17929
        return lastComparison;
17930
      }
17931
      if (isSetSuccess()) {
17932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17933
        if (lastComparison != 0) {
17934
          return lastComparison;
17935
        }
17936
      }
17937
      return 0;
17938
    }
17939
 
17940
    public _Fields fieldForId(int fieldId) {
17941
      return _Fields.findByThriftId(fieldId);
17942
    }
17943
 
17944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17945
      org.apache.thrift.protocol.TField field;
17946
      iprot.readStructBegin();
17947
      while (true)
17948
      {
17949
        field = iprot.readFieldBegin();
17950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17951
          break;
17952
        }
17953
        switch (field.id) {
17954
          case 0: // SUCCESS
17955
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17956
              this.success = iprot.readI64();
17957
              setSuccessIsSet(true);
17958
            } else { 
17959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17960
            }
17961
            break;
17962
          default:
17963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17964
        }
17965
        iprot.readFieldEnd();
17966
      }
17967
      iprot.readStructEnd();
17968
      validate();
17969
    }
17970
 
17971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17972
      oprot.writeStructBegin(STRUCT_DESC);
17973
 
17974
      if (this.isSetSuccess()) {
17975
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17976
        oprot.writeI64(this.success);
17977
        oprot.writeFieldEnd();
17978
      }
17979
      oprot.writeFieldStop();
17980
      oprot.writeStructEnd();
17981
    }
17982
 
17983
    @Override
17984
    public String toString() {
17985
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17986
      boolean first = true;
17987
 
17988
      sb.append("success:");
17989
      sb.append(this.success);
17990
      first = false;
17991
      sb.append(")");
17992
      return sb.toString();
17993
    }
17994
 
17995
    public void validate() throws org.apache.thrift.TException {
17996
      // check for required fields
17997
    }
17998
 
17999
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18000
      try {
18001
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18002
      } catch (org.apache.thrift.TException te) {
18003
        throw new java.io.IOException(te);
18004
      }
18005
    }
18006
 
18007
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18008
      try {
18009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18010
      } catch (org.apache.thrift.TException te) {
18011
        throw new java.io.IOException(te);
18012
      }
18013
    }
18014
 
18015
  }
18016
 
12895 manish.sha 18017
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
18018
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
18019
 
18020
    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);
18021
    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);
18022
 
18023
    private String pincode; // required
18024
    private long whLocation; // required
18025
 
18026
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18027
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18028
      PINCODE((short)1, "pincode"),
18029
      WH_LOCATION((short)2, "whLocation");
18030
 
18031
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18032
 
18033
      static {
18034
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18035
          byName.put(field.getFieldName(), field);
18036
        }
18037
      }
18038
 
18039
      /**
18040
       * Find the _Fields constant that matches fieldId, or null if its not found.
18041
       */
18042
      public static _Fields findByThriftId(int fieldId) {
18043
        switch(fieldId) {
18044
          case 1: // PINCODE
18045
            return PINCODE;
18046
          case 2: // WH_LOCATION
18047
            return WH_LOCATION;
18048
          default:
18049
            return null;
18050
        }
18051
      }
18052
 
18053
      /**
18054
       * Find the _Fields constant that matches fieldId, throwing an exception
18055
       * if it is not found.
18056
       */
18057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18058
        _Fields fields = findByThriftId(fieldId);
18059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18060
        return fields;
18061
      }
18062
 
18063
      /**
18064
       * Find the _Fields constant that matches name, or null if its not found.
18065
       */
18066
      public static _Fields findByName(String name) {
18067
        return byName.get(name);
18068
      }
18069
 
18070
      private final short _thriftId;
18071
      private final String _fieldName;
18072
 
18073
      _Fields(short thriftId, String fieldName) {
18074
        _thriftId = thriftId;
18075
        _fieldName = fieldName;
18076
      }
18077
 
18078
      public short getThriftFieldId() {
18079
        return _thriftId;
18080
      }
18081
 
18082
      public String getFieldName() {
18083
        return _fieldName;
18084
      }
18085
    }
18086
 
18087
    // isset id assignments
18088
    private static final int __WHLOCATION_ISSET_ID = 0;
18089
    private BitSet __isset_bit_vector = new BitSet(1);
18090
 
18091
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18092
    static {
18093
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18094
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18096
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18097
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18098
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18099
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
18100
    }
18101
 
18102
    public getFirstDeliveryEstimateForWhLocation_args() {
18103
    }
18104
 
18105
    public getFirstDeliveryEstimateForWhLocation_args(
18106
      String pincode,
18107
      long whLocation)
18108
    {
18109
      this();
18110
      this.pincode = pincode;
18111
      this.whLocation = whLocation;
18112
      setWhLocationIsSet(true);
18113
    }
18114
 
18115
    /**
18116
     * Performs a deep copy on <i>other</i>.
18117
     */
18118
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
18119
      __isset_bit_vector.clear();
18120
      __isset_bit_vector.or(other.__isset_bit_vector);
18121
      if (other.isSetPincode()) {
18122
        this.pincode = other.pincode;
18123
      }
18124
      this.whLocation = other.whLocation;
18125
    }
18126
 
18127
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
18128
      return new getFirstDeliveryEstimateForWhLocation_args(this);
18129
    }
18130
 
18131
    @Override
18132
    public void clear() {
18133
      this.pincode = null;
18134
      setWhLocationIsSet(false);
18135
      this.whLocation = 0;
18136
    }
18137
 
18138
    public String getPincode() {
18139
      return this.pincode;
18140
    }
18141
 
18142
    public void setPincode(String pincode) {
18143
      this.pincode = pincode;
18144
    }
18145
 
18146
    public void unsetPincode() {
18147
      this.pincode = null;
18148
    }
18149
 
18150
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
18151
    public boolean isSetPincode() {
18152
      return this.pincode != null;
18153
    }
18154
 
18155
    public void setPincodeIsSet(boolean value) {
18156
      if (!value) {
18157
        this.pincode = null;
18158
      }
18159
    }
18160
 
18161
    public long getWhLocation() {
18162
      return this.whLocation;
18163
    }
18164
 
18165
    public void setWhLocation(long whLocation) {
18166
      this.whLocation = whLocation;
18167
      setWhLocationIsSet(true);
18168
    }
18169
 
18170
    public void unsetWhLocation() {
18171
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18172
    }
18173
 
18174
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18175
    public boolean isSetWhLocation() {
18176
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18177
    }
18178
 
18179
    public void setWhLocationIsSet(boolean value) {
18180
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18181
    }
18182
 
18183
    public void setFieldValue(_Fields field, Object value) {
18184
      switch (field) {
18185
      case PINCODE:
18186
        if (value == null) {
18187
          unsetPincode();
18188
        } else {
18189
          setPincode((String)value);
18190
        }
18191
        break;
18192
 
18193
      case WH_LOCATION:
18194
        if (value == null) {
18195
          unsetWhLocation();
18196
        } else {
18197
          setWhLocation((Long)value);
18198
        }
18199
        break;
18200
 
18201
      }
18202
    }
18203
 
18204
    public Object getFieldValue(_Fields field) {
18205
      switch (field) {
18206
      case PINCODE:
18207
        return getPincode();
18208
 
18209
      case WH_LOCATION:
18210
        return Long.valueOf(getWhLocation());
18211
 
18212
      }
18213
      throw new IllegalStateException();
18214
    }
18215
 
18216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18217
    public boolean isSet(_Fields field) {
18218
      if (field == null) {
18219
        throw new IllegalArgumentException();
18220
      }
18221
 
18222
      switch (field) {
18223
      case PINCODE:
18224
        return isSetPincode();
18225
      case WH_LOCATION:
18226
        return isSetWhLocation();
18227
      }
18228
      throw new IllegalStateException();
18229
    }
18230
 
18231
    @Override
18232
    public boolean equals(Object that) {
18233
      if (that == null)
18234
        return false;
18235
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18236
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18237
      return false;
18238
    }
18239
 
18240
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18241
      if (that == null)
18242
        return false;
18243
 
18244
      boolean this_present_pincode = true && this.isSetPincode();
18245
      boolean that_present_pincode = true && that.isSetPincode();
18246
      if (this_present_pincode || that_present_pincode) {
18247
        if (!(this_present_pincode && that_present_pincode))
18248
          return false;
18249
        if (!this.pincode.equals(that.pincode))
18250
          return false;
18251
      }
18252
 
18253
      boolean this_present_whLocation = true;
18254
      boolean that_present_whLocation = true;
18255
      if (this_present_whLocation || that_present_whLocation) {
18256
        if (!(this_present_whLocation && that_present_whLocation))
18257
          return false;
18258
        if (this.whLocation != that.whLocation)
18259
          return false;
18260
      }
18261
 
18262
      return true;
18263
    }
18264
 
18265
    @Override
18266
    public int hashCode() {
18267
      return 0;
18268
    }
18269
 
18270
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18271
      if (!getClass().equals(other.getClass())) {
18272
        return getClass().getName().compareTo(other.getClass().getName());
18273
      }
18274
 
18275
      int lastComparison = 0;
18276
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18277
 
18278
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18279
      if (lastComparison != 0) {
18280
        return lastComparison;
18281
      }
18282
      if (isSetPincode()) {
18283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18284
        if (lastComparison != 0) {
18285
          return lastComparison;
18286
        }
18287
      }
18288
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18289
      if (lastComparison != 0) {
18290
        return lastComparison;
18291
      }
18292
      if (isSetWhLocation()) {
18293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18294
        if (lastComparison != 0) {
18295
          return lastComparison;
18296
        }
18297
      }
18298
      return 0;
18299
    }
18300
 
18301
    public _Fields fieldForId(int fieldId) {
18302
      return _Fields.findByThriftId(fieldId);
18303
    }
18304
 
18305
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18306
      org.apache.thrift.protocol.TField field;
18307
      iprot.readStructBegin();
18308
      while (true)
18309
      {
18310
        field = iprot.readFieldBegin();
18311
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18312
          break;
18313
        }
18314
        switch (field.id) {
18315
          case 1: // PINCODE
18316
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18317
              this.pincode = iprot.readString();
18318
            } else { 
18319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18320
            }
18321
            break;
18322
          case 2: // WH_LOCATION
18323
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18324
              this.whLocation = iprot.readI64();
18325
              setWhLocationIsSet(true);
18326
            } else { 
18327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18328
            }
18329
            break;
18330
          default:
18331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18332
        }
18333
        iprot.readFieldEnd();
18334
      }
18335
      iprot.readStructEnd();
18336
      validate();
18337
    }
18338
 
18339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18340
      validate();
18341
 
18342
      oprot.writeStructBegin(STRUCT_DESC);
18343
      if (this.pincode != null) {
18344
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18345
        oprot.writeString(this.pincode);
18346
        oprot.writeFieldEnd();
18347
      }
18348
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18349
      oprot.writeI64(this.whLocation);
18350
      oprot.writeFieldEnd();
18351
      oprot.writeFieldStop();
18352
      oprot.writeStructEnd();
18353
    }
18354
 
18355
    @Override
18356
    public String toString() {
18357
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18358
      boolean first = true;
18359
 
18360
      sb.append("pincode:");
18361
      if (this.pincode == null) {
18362
        sb.append("null");
18363
      } else {
18364
        sb.append(this.pincode);
18365
      }
18366
      first = false;
18367
      if (!first) sb.append(", ");
18368
      sb.append("whLocation:");
18369
      sb.append(this.whLocation);
18370
      first = false;
18371
      sb.append(")");
18372
      return sb.toString();
18373
    }
18374
 
18375
    public void validate() throws org.apache.thrift.TException {
18376
      // check for required fields
18377
    }
18378
 
18379
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18380
      try {
18381
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18382
      } catch (org.apache.thrift.TException te) {
18383
        throw new java.io.IOException(te);
18384
      }
18385
    }
18386
 
18387
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18388
      try {
18389
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18390
        __isset_bit_vector = new BitSet(1);
18391
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18392
      } catch (org.apache.thrift.TException te) {
18393
        throw new java.io.IOException(te);
18394
      }
18395
    }
18396
 
18397
  }
18398
 
18399
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18400
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18401
 
18402
    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);
18403
 
18404
    private long success; // required
18405
 
18406
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18407
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18408
      SUCCESS((short)0, "success");
18409
 
18410
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18411
 
18412
      static {
18413
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18414
          byName.put(field.getFieldName(), field);
18415
        }
18416
      }
18417
 
18418
      /**
18419
       * Find the _Fields constant that matches fieldId, or null if its not found.
18420
       */
18421
      public static _Fields findByThriftId(int fieldId) {
18422
        switch(fieldId) {
18423
          case 0: // SUCCESS
18424
            return SUCCESS;
18425
          default:
18426
            return null;
18427
        }
18428
      }
18429
 
18430
      /**
18431
       * Find the _Fields constant that matches fieldId, throwing an exception
18432
       * if it is not found.
18433
       */
18434
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18435
        _Fields fields = findByThriftId(fieldId);
18436
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18437
        return fields;
18438
      }
18439
 
18440
      /**
18441
       * Find the _Fields constant that matches name, or null if its not found.
18442
       */
18443
      public static _Fields findByName(String name) {
18444
        return byName.get(name);
18445
      }
18446
 
18447
      private final short _thriftId;
18448
      private final String _fieldName;
18449
 
18450
      _Fields(short thriftId, String fieldName) {
18451
        _thriftId = thriftId;
18452
        _fieldName = fieldName;
18453
      }
18454
 
18455
      public short getThriftFieldId() {
18456
        return _thriftId;
18457
      }
18458
 
18459
      public String getFieldName() {
18460
        return _fieldName;
18461
      }
18462
    }
18463
 
18464
    // isset id assignments
18465
    private static final int __SUCCESS_ISSET_ID = 0;
18466
    private BitSet __isset_bit_vector = new BitSet(1);
18467
 
18468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18469
    static {
18470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18471
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18473
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18474
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18475
    }
18476
 
18477
    public getFirstDeliveryEstimateForWhLocation_result() {
18478
    }
18479
 
18480
    public getFirstDeliveryEstimateForWhLocation_result(
18481
      long success)
18482
    {
18483
      this();
18484
      this.success = success;
18485
      setSuccessIsSet(true);
18486
    }
18487
 
18488
    /**
18489
     * Performs a deep copy on <i>other</i>.
18490
     */
18491
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18492
      __isset_bit_vector.clear();
18493
      __isset_bit_vector.or(other.__isset_bit_vector);
18494
      this.success = other.success;
18495
    }
18496
 
18497
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18498
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18499
    }
18500
 
18501
    @Override
18502
    public void clear() {
18503
      setSuccessIsSet(false);
18504
      this.success = 0;
18505
    }
18506
 
18507
    public long getSuccess() {
18508
      return this.success;
18509
    }
18510
 
18511
    public void setSuccess(long success) {
18512
      this.success = success;
18513
      setSuccessIsSet(true);
18514
    }
18515
 
18516
    public void unsetSuccess() {
18517
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18518
    }
18519
 
18520
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18521
    public boolean isSetSuccess() {
18522
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18523
    }
18524
 
18525
    public void setSuccessIsSet(boolean value) {
18526
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18527
    }
18528
 
18529
    public void setFieldValue(_Fields field, Object value) {
18530
      switch (field) {
18531
      case SUCCESS:
18532
        if (value == null) {
18533
          unsetSuccess();
18534
        } else {
18535
          setSuccess((Long)value);
18536
        }
18537
        break;
18538
 
18539
      }
18540
    }
18541
 
18542
    public Object getFieldValue(_Fields field) {
18543
      switch (field) {
18544
      case SUCCESS:
18545
        return Long.valueOf(getSuccess());
18546
 
18547
      }
18548
      throw new IllegalStateException();
18549
    }
18550
 
18551
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18552
    public boolean isSet(_Fields field) {
18553
      if (field == null) {
18554
        throw new IllegalArgumentException();
18555
      }
18556
 
18557
      switch (field) {
18558
      case SUCCESS:
18559
        return isSetSuccess();
18560
      }
18561
      throw new IllegalStateException();
18562
    }
18563
 
18564
    @Override
18565
    public boolean equals(Object that) {
18566
      if (that == null)
18567
        return false;
18568
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18569
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18570
      return false;
18571
    }
18572
 
18573
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18574
      if (that == null)
18575
        return false;
18576
 
18577
      boolean this_present_success = true;
18578
      boolean that_present_success = true;
18579
      if (this_present_success || that_present_success) {
18580
        if (!(this_present_success && that_present_success))
18581
          return false;
18582
        if (this.success != that.success)
18583
          return false;
18584
      }
18585
 
18586
      return true;
18587
    }
18588
 
18589
    @Override
18590
    public int hashCode() {
18591
      return 0;
18592
    }
18593
 
18594
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18595
      if (!getClass().equals(other.getClass())) {
18596
        return getClass().getName().compareTo(other.getClass().getName());
18597
      }
18598
 
18599
      int lastComparison = 0;
18600
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18601
 
18602
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18603
      if (lastComparison != 0) {
18604
        return lastComparison;
18605
      }
18606
      if (isSetSuccess()) {
18607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18608
        if (lastComparison != 0) {
18609
          return lastComparison;
18610
        }
18611
      }
18612
      return 0;
18613
    }
18614
 
18615
    public _Fields fieldForId(int fieldId) {
18616
      return _Fields.findByThriftId(fieldId);
18617
    }
18618
 
18619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18620
      org.apache.thrift.protocol.TField field;
18621
      iprot.readStructBegin();
18622
      while (true)
18623
      {
18624
        field = iprot.readFieldBegin();
18625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18626
          break;
18627
        }
18628
        switch (field.id) {
18629
          case 0: // SUCCESS
18630
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18631
              this.success = iprot.readI64();
18632
              setSuccessIsSet(true);
18633
            } else { 
18634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18635
            }
18636
            break;
18637
          default:
18638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18639
        }
18640
        iprot.readFieldEnd();
18641
      }
18642
      iprot.readStructEnd();
18643
      validate();
18644
    }
18645
 
18646
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18647
      oprot.writeStructBegin(STRUCT_DESC);
18648
 
18649
      if (this.isSetSuccess()) {
18650
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18651
        oprot.writeI64(this.success);
18652
        oprot.writeFieldEnd();
18653
      }
18654
      oprot.writeFieldStop();
18655
      oprot.writeStructEnd();
18656
    }
18657
 
18658
    @Override
18659
    public String toString() {
18660
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18661
      boolean first = true;
18662
 
18663
      sb.append("success:");
18664
      sb.append(this.success);
18665
      first = false;
18666
      sb.append(")");
18667
      return sb.toString();
18668
    }
18669
 
18670
    public void validate() throws org.apache.thrift.TException {
18671
      // check for required fields
18672
    }
18673
 
18674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18675
      try {
18676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18677
      } catch (org.apache.thrift.TException te) {
18678
        throw new java.io.IOException(te);
18679
      }
18680
    }
18681
 
18682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18683
      try {
18684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18685
      } catch (org.apache.thrift.TException te) {
18686
        throw new java.io.IOException(te);
18687
      }
18688
    }
18689
 
18690
  }
18691
 
13146 manish.sha 18692
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18694
 
18695
    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);
18696
    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);
18697
    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);
18698
 
18699
    private long providerId; // required
18700
    private DeliveryType type; // required
18701
    private long orderQuantity; // required
18702
 
18703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18705
      PROVIDER_ID((short)1, "providerId"),
18706
      /**
18707
       * 
18708
       * @see DeliveryType
18709
       */
18710
      TYPE((short)2, "type"),
18711
      ORDER_QUANTITY((short)3, "orderQuantity");
18712
 
18713
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18714
 
18715
      static {
18716
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18717
          byName.put(field.getFieldName(), field);
18718
        }
18719
      }
18720
 
18721
      /**
18722
       * Find the _Fields constant that matches fieldId, or null if its not found.
18723
       */
18724
      public static _Fields findByThriftId(int fieldId) {
18725
        switch(fieldId) {
18726
          case 1: // PROVIDER_ID
18727
            return PROVIDER_ID;
18728
          case 2: // TYPE
18729
            return TYPE;
18730
          case 3: // ORDER_QUANTITY
18731
            return ORDER_QUANTITY;
18732
          default:
18733
            return null;
18734
        }
18735
      }
18736
 
18737
      /**
18738
       * Find the _Fields constant that matches fieldId, throwing an exception
18739
       * if it is not found.
18740
       */
18741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18742
        _Fields fields = findByThriftId(fieldId);
18743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18744
        return fields;
18745
      }
18746
 
18747
      /**
18748
       * Find the _Fields constant that matches name, or null if its not found.
18749
       */
18750
      public static _Fields findByName(String name) {
18751
        return byName.get(name);
18752
      }
18753
 
18754
      private final short _thriftId;
18755
      private final String _fieldName;
18756
 
18757
      _Fields(short thriftId, String fieldName) {
18758
        _thriftId = thriftId;
18759
        _fieldName = fieldName;
18760
      }
18761
 
18762
      public short getThriftFieldId() {
18763
        return _thriftId;
18764
      }
18765
 
18766
      public String getFieldName() {
18767
        return _fieldName;
18768
      }
18769
    }
18770
 
18771
    // isset id assignments
18772
    private static final int __PROVIDERID_ISSET_ID = 0;
18773
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18774
    private BitSet __isset_bit_vector = new BitSet(2);
18775
 
18776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18777
    static {
18778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18779
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18781
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18782
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18783
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18784
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18785
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18786
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18787
    }
18788
 
18789
    public getNewEmptyAwb_args() {
18790
    }
18791
 
18792
    public getNewEmptyAwb_args(
18793
      long providerId,
18794
      DeliveryType type,
18795
      long orderQuantity)
18796
    {
18797
      this();
18798
      this.providerId = providerId;
18799
      setProviderIdIsSet(true);
18800
      this.type = type;
18801
      this.orderQuantity = orderQuantity;
18802
      setOrderQuantityIsSet(true);
18803
    }
18804
 
18805
    /**
18806
     * Performs a deep copy on <i>other</i>.
18807
     */
18808
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18809
      __isset_bit_vector.clear();
18810
      __isset_bit_vector.or(other.__isset_bit_vector);
18811
      this.providerId = other.providerId;
18812
      if (other.isSetType()) {
18813
        this.type = other.type;
18814
      }
18815
      this.orderQuantity = other.orderQuantity;
18816
    }
18817
 
18818
    public getNewEmptyAwb_args deepCopy() {
18819
      return new getNewEmptyAwb_args(this);
18820
    }
18821
 
18822
    @Override
18823
    public void clear() {
18824
      setProviderIdIsSet(false);
18825
      this.providerId = 0;
18826
      this.type = null;
18827
      setOrderQuantityIsSet(false);
18828
      this.orderQuantity = 0;
18829
    }
18830
 
18831
    public long getProviderId() {
18832
      return this.providerId;
18833
    }
18834
 
18835
    public void setProviderId(long providerId) {
18836
      this.providerId = providerId;
18837
      setProviderIdIsSet(true);
18838
    }
18839
 
18840
    public void unsetProviderId() {
18841
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18842
    }
18843
 
18844
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18845
    public boolean isSetProviderId() {
18846
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18847
    }
18848
 
18849
    public void setProviderIdIsSet(boolean value) {
18850
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18851
    }
18852
 
18853
    /**
18854
     * 
18855
     * @see DeliveryType
18856
     */
18857
    public DeliveryType getType() {
18858
      return this.type;
18859
    }
18860
 
18861
    /**
18862
     * 
18863
     * @see DeliveryType
18864
     */
18865
    public void setType(DeliveryType type) {
18866
      this.type = type;
18867
    }
18868
 
18869
    public void unsetType() {
18870
      this.type = null;
18871
    }
18872
 
18873
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18874
    public boolean isSetType() {
18875
      return this.type != null;
18876
    }
18877
 
18878
    public void setTypeIsSet(boolean value) {
18879
      if (!value) {
18880
        this.type = null;
18881
      }
18882
    }
18883
 
18884
    public long getOrderQuantity() {
18885
      return this.orderQuantity;
18886
    }
18887
 
18888
    public void setOrderQuantity(long orderQuantity) {
18889
      this.orderQuantity = orderQuantity;
18890
      setOrderQuantityIsSet(true);
18891
    }
18892
 
18893
    public void unsetOrderQuantity() {
18894
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18895
    }
18896
 
18897
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18898
    public boolean isSetOrderQuantity() {
18899
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18900
    }
18901
 
18902
    public void setOrderQuantityIsSet(boolean value) {
18903
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18904
    }
18905
 
18906
    public void setFieldValue(_Fields field, Object value) {
18907
      switch (field) {
18908
      case PROVIDER_ID:
18909
        if (value == null) {
18910
          unsetProviderId();
18911
        } else {
18912
          setProviderId((Long)value);
18913
        }
18914
        break;
18915
 
18916
      case TYPE:
18917
        if (value == null) {
18918
          unsetType();
18919
        } else {
18920
          setType((DeliveryType)value);
18921
        }
18922
        break;
18923
 
18924
      case ORDER_QUANTITY:
18925
        if (value == null) {
18926
          unsetOrderQuantity();
18927
        } else {
18928
          setOrderQuantity((Long)value);
18929
        }
18930
        break;
18931
 
18932
      }
18933
    }
18934
 
18935
    public Object getFieldValue(_Fields field) {
18936
      switch (field) {
18937
      case PROVIDER_ID:
18938
        return Long.valueOf(getProviderId());
18939
 
18940
      case TYPE:
18941
        return getType();
18942
 
18943
      case ORDER_QUANTITY:
18944
        return Long.valueOf(getOrderQuantity());
18945
 
18946
      }
18947
      throw new IllegalStateException();
18948
    }
18949
 
18950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18951
    public boolean isSet(_Fields field) {
18952
      if (field == null) {
18953
        throw new IllegalArgumentException();
18954
      }
18955
 
18956
      switch (field) {
18957
      case PROVIDER_ID:
18958
        return isSetProviderId();
18959
      case TYPE:
18960
        return isSetType();
18961
      case ORDER_QUANTITY:
18962
        return isSetOrderQuantity();
18963
      }
18964
      throw new IllegalStateException();
18965
    }
18966
 
18967
    @Override
18968
    public boolean equals(Object that) {
18969
      if (that == null)
18970
        return false;
18971
      if (that instanceof getNewEmptyAwb_args)
18972
        return this.equals((getNewEmptyAwb_args)that);
18973
      return false;
18974
    }
18975
 
18976
    public boolean equals(getNewEmptyAwb_args that) {
18977
      if (that == null)
18978
        return false;
18979
 
18980
      boolean this_present_providerId = true;
18981
      boolean that_present_providerId = true;
18982
      if (this_present_providerId || that_present_providerId) {
18983
        if (!(this_present_providerId && that_present_providerId))
18984
          return false;
18985
        if (this.providerId != that.providerId)
18986
          return false;
18987
      }
18988
 
18989
      boolean this_present_type = true && this.isSetType();
18990
      boolean that_present_type = true && that.isSetType();
18991
      if (this_present_type || that_present_type) {
18992
        if (!(this_present_type && that_present_type))
18993
          return false;
18994
        if (!this.type.equals(that.type))
18995
          return false;
18996
      }
18997
 
18998
      boolean this_present_orderQuantity = true;
18999
      boolean that_present_orderQuantity = true;
19000
      if (this_present_orderQuantity || that_present_orderQuantity) {
19001
        if (!(this_present_orderQuantity && that_present_orderQuantity))
19002
          return false;
19003
        if (this.orderQuantity != that.orderQuantity)
19004
          return false;
19005
      }
19006
 
19007
      return true;
19008
    }
19009
 
19010
    @Override
19011
    public int hashCode() {
19012
      return 0;
19013
    }
19014
 
19015
    public int compareTo(getNewEmptyAwb_args other) {
19016
      if (!getClass().equals(other.getClass())) {
19017
        return getClass().getName().compareTo(other.getClass().getName());
19018
      }
19019
 
19020
      int lastComparison = 0;
19021
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
19022
 
19023
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19024
      if (lastComparison != 0) {
19025
        return lastComparison;
19026
      }
19027
      if (isSetProviderId()) {
19028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19029
        if (lastComparison != 0) {
19030
          return lastComparison;
19031
        }
19032
      }
19033
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
19034
      if (lastComparison != 0) {
19035
        return lastComparison;
19036
      }
19037
      if (isSetType()) {
19038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
19039
        if (lastComparison != 0) {
19040
          return lastComparison;
19041
        }
19042
      }
19043
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
19044
      if (lastComparison != 0) {
19045
        return lastComparison;
19046
      }
19047
      if (isSetOrderQuantity()) {
19048
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
19049
        if (lastComparison != 0) {
19050
          return lastComparison;
19051
        }
19052
      }
19053
      return 0;
19054
    }
19055
 
19056
    public _Fields fieldForId(int fieldId) {
19057
      return _Fields.findByThriftId(fieldId);
19058
    }
19059
 
19060
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19061
      org.apache.thrift.protocol.TField field;
19062
      iprot.readStructBegin();
19063
      while (true)
19064
      {
19065
        field = iprot.readFieldBegin();
19066
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19067
          break;
19068
        }
19069
        switch (field.id) {
19070
          case 1: // PROVIDER_ID
19071
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19072
              this.providerId = iprot.readI64();
19073
              setProviderIdIsSet(true);
19074
            } else { 
19075
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19076
            }
19077
            break;
19078
          case 2: // TYPE
19079
            if (field.type == org.apache.thrift.protocol.TType.I32) {
19080
              this.type = DeliveryType.findByValue(iprot.readI32());
19081
            } else { 
19082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19083
            }
19084
            break;
19085
          case 3: // ORDER_QUANTITY
19086
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19087
              this.orderQuantity = iprot.readI64();
19088
              setOrderQuantityIsSet(true);
19089
            } else { 
19090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19091
            }
19092
            break;
19093
          default:
19094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19095
        }
19096
        iprot.readFieldEnd();
19097
      }
19098
      iprot.readStructEnd();
19099
      validate();
19100
    }
19101
 
19102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19103
      validate();
19104
 
19105
      oprot.writeStructBegin(STRUCT_DESC);
19106
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19107
      oprot.writeI64(this.providerId);
19108
      oprot.writeFieldEnd();
19109
      if (this.type != null) {
19110
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
19111
        oprot.writeI32(this.type.getValue());
19112
        oprot.writeFieldEnd();
19113
      }
19114
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
19115
      oprot.writeI64(this.orderQuantity);
19116
      oprot.writeFieldEnd();
19117
      oprot.writeFieldStop();
19118
      oprot.writeStructEnd();
19119
    }
19120
 
19121
    @Override
19122
    public String toString() {
19123
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
19124
      boolean first = true;
19125
 
19126
      sb.append("providerId:");
19127
      sb.append(this.providerId);
19128
      first = false;
19129
      if (!first) sb.append(", ");
19130
      sb.append("type:");
19131
      if (this.type == null) {
19132
        sb.append("null");
19133
      } else {
19134
        sb.append(this.type);
19135
      }
19136
      first = false;
19137
      if (!first) sb.append(", ");
19138
      sb.append("orderQuantity:");
19139
      sb.append(this.orderQuantity);
19140
      first = false;
19141
      sb.append(")");
19142
      return sb.toString();
19143
    }
19144
 
19145
    public void validate() throws org.apache.thrift.TException {
19146
      // check for required fields
19147
    }
19148
 
19149
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19150
      try {
19151
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19152
      } catch (org.apache.thrift.TException te) {
19153
        throw new java.io.IOException(te);
19154
      }
19155
    }
19156
 
19157
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19158
      try {
19159
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19160
        __isset_bit_vector = new BitSet(1);
19161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19162
      } catch (org.apache.thrift.TException te) {
19163
        throw new java.io.IOException(te);
19164
      }
19165
    }
19166
 
19167
  }
19168
 
19169
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19171
 
19172
    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);
19173
    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);
19174
 
19175
    private String success; // required
19176
    private LogisticsServiceException se; // required
19177
 
19178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19180
      SUCCESS((short)0, "success"),
19181
      SE((short)1, "se");
19182
 
19183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19184
 
19185
      static {
19186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19187
          byName.put(field.getFieldName(), field);
19188
        }
19189
      }
19190
 
19191
      /**
19192
       * Find the _Fields constant that matches fieldId, or null if its not found.
19193
       */
19194
      public static _Fields findByThriftId(int fieldId) {
19195
        switch(fieldId) {
19196
          case 0: // SUCCESS
19197
            return SUCCESS;
19198
          case 1: // SE
19199
            return SE;
19200
          default:
19201
            return null;
19202
        }
19203
      }
19204
 
19205
      /**
19206
       * Find the _Fields constant that matches fieldId, throwing an exception
19207
       * if it is not found.
19208
       */
19209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19210
        _Fields fields = findByThriftId(fieldId);
19211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19212
        return fields;
19213
      }
19214
 
19215
      /**
19216
       * Find the _Fields constant that matches name, or null if its not found.
19217
       */
19218
      public static _Fields findByName(String name) {
19219
        return byName.get(name);
19220
      }
19221
 
19222
      private final short _thriftId;
19223
      private final String _fieldName;
19224
 
19225
      _Fields(short thriftId, String fieldName) {
19226
        _thriftId = thriftId;
19227
        _fieldName = fieldName;
19228
      }
19229
 
19230
      public short getThriftFieldId() {
19231
        return _thriftId;
19232
      }
19233
 
19234
      public String getFieldName() {
19235
        return _fieldName;
19236
      }
19237
    }
19238
 
19239
    // isset id assignments
19240
 
19241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19242
    static {
19243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19244
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19246
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19247
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19248
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19249
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19250
    }
19251
 
19252
    public getNewEmptyAwb_result() {
19253
    }
19254
 
19255
    public getNewEmptyAwb_result(
19256
      String success,
19257
      LogisticsServiceException se)
19258
    {
19259
      this();
19260
      this.success = success;
19261
      this.se = se;
19262
    }
19263
 
19264
    /**
19265
     * Performs a deep copy on <i>other</i>.
19266
     */
19267
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19268
      if (other.isSetSuccess()) {
19269
        this.success = other.success;
19270
      }
19271
      if (other.isSetSe()) {
19272
        this.se = new LogisticsServiceException(other.se);
19273
      }
19274
    }
19275
 
19276
    public getNewEmptyAwb_result deepCopy() {
19277
      return new getNewEmptyAwb_result(this);
19278
    }
19279
 
19280
    @Override
19281
    public void clear() {
19282
      this.success = null;
19283
      this.se = null;
19284
    }
19285
 
19286
    public String getSuccess() {
19287
      return this.success;
19288
    }
19289
 
19290
    public void setSuccess(String success) {
19291
      this.success = success;
19292
    }
19293
 
19294
    public void unsetSuccess() {
19295
      this.success = null;
19296
    }
19297
 
19298
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19299
    public boolean isSetSuccess() {
19300
      return this.success != null;
19301
    }
19302
 
19303
    public void setSuccessIsSet(boolean value) {
19304
      if (!value) {
19305
        this.success = null;
19306
      }
19307
    }
19308
 
19309
    public LogisticsServiceException getSe() {
19310
      return this.se;
19311
    }
19312
 
19313
    public void setSe(LogisticsServiceException se) {
19314
      this.se = se;
19315
    }
19316
 
19317
    public void unsetSe() {
19318
      this.se = null;
19319
    }
19320
 
19321
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19322
    public boolean isSetSe() {
19323
      return this.se != null;
19324
    }
19325
 
19326
    public void setSeIsSet(boolean value) {
19327
      if (!value) {
19328
        this.se = null;
19329
      }
19330
    }
19331
 
19332
    public void setFieldValue(_Fields field, Object value) {
19333
      switch (field) {
19334
      case SUCCESS:
19335
        if (value == null) {
19336
          unsetSuccess();
19337
        } else {
19338
          setSuccess((String)value);
19339
        }
19340
        break;
19341
 
19342
      case SE:
19343
        if (value == null) {
19344
          unsetSe();
19345
        } else {
19346
          setSe((LogisticsServiceException)value);
19347
        }
19348
        break;
19349
 
19350
      }
19351
    }
19352
 
19353
    public Object getFieldValue(_Fields field) {
19354
      switch (field) {
19355
      case SUCCESS:
19356
        return getSuccess();
19357
 
19358
      case SE:
19359
        return getSe();
19360
 
19361
      }
19362
      throw new IllegalStateException();
19363
    }
19364
 
19365
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19366
    public boolean isSet(_Fields field) {
19367
      if (field == null) {
19368
        throw new IllegalArgumentException();
19369
      }
19370
 
19371
      switch (field) {
19372
      case SUCCESS:
19373
        return isSetSuccess();
19374
      case SE:
19375
        return isSetSe();
19376
      }
19377
      throw new IllegalStateException();
19378
    }
19379
 
19380
    @Override
19381
    public boolean equals(Object that) {
19382
      if (that == null)
19383
        return false;
19384
      if (that instanceof getNewEmptyAwb_result)
19385
        return this.equals((getNewEmptyAwb_result)that);
19386
      return false;
19387
    }
19388
 
19389
    public boolean equals(getNewEmptyAwb_result that) {
19390
      if (that == null)
19391
        return false;
19392
 
19393
      boolean this_present_success = true && this.isSetSuccess();
19394
      boolean that_present_success = true && that.isSetSuccess();
19395
      if (this_present_success || that_present_success) {
19396
        if (!(this_present_success && that_present_success))
19397
          return false;
19398
        if (!this.success.equals(that.success))
19399
          return false;
19400
      }
19401
 
19402
      boolean this_present_se = true && this.isSetSe();
19403
      boolean that_present_se = true && that.isSetSe();
19404
      if (this_present_se || that_present_se) {
19405
        if (!(this_present_se && that_present_se))
19406
          return false;
19407
        if (!this.se.equals(that.se))
19408
          return false;
19409
      }
19410
 
19411
      return true;
19412
    }
19413
 
19414
    @Override
19415
    public int hashCode() {
19416
      return 0;
19417
    }
19418
 
19419
    public int compareTo(getNewEmptyAwb_result other) {
19420
      if (!getClass().equals(other.getClass())) {
19421
        return getClass().getName().compareTo(other.getClass().getName());
19422
      }
19423
 
19424
      int lastComparison = 0;
19425
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19426
 
19427
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19428
      if (lastComparison != 0) {
19429
        return lastComparison;
19430
      }
19431
      if (isSetSuccess()) {
19432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19433
        if (lastComparison != 0) {
19434
          return lastComparison;
19435
        }
19436
      }
19437
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19438
      if (lastComparison != 0) {
19439
        return lastComparison;
19440
      }
19441
      if (isSetSe()) {
19442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19443
        if (lastComparison != 0) {
19444
          return lastComparison;
19445
        }
19446
      }
19447
      return 0;
19448
    }
19449
 
19450
    public _Fields fieldForId(int fieldId) {
19451
      return _Fields.findByThriftId(fieldId);
19452
    }
19453
 
19454
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19455
      org.apache.thrift.protocol.TField field;
19456
      iprot.readStructBegin();
19457
      while (true)
19458
      {
19459
        field = iprot.readFieldBegin();
19460
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19461
          break;
19462
        }
19463
        switch (field.id) {
19464
          case 0: // SUCCESS
19465
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19466
              this.success = iprot.readString();
19467
            } else { 
19468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19469
            }
19470
            break;
19471
          case 1: // SE
19472
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19473
              this.se = new LogisticsServiceException();
19474
              this.se.read(iprot);
19475
            } else { 
19476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19477
            }
19478
            break;
19479
          default:
19480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19481
        }
19482
        iprot.readFieldEnd();
19483
      }
19484
      iprot.readStructEnd();
19485
      validate();
19486
    }
19487
 
19488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19489
      oprot.writeStructBegin(STRUCT_DESC);
19490
 
19491
      if (this.isSetSuccess()) {
19492
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19493
        oprot.writeString(this.success);
19494
        oprot.writeFieldEnd();
19495
      } else if (this.isSetSe()) {
19496
        oprot.writeFieldBegin(SE_FIELD_DESC);
19497
        this.se.write(oprot);
19498
        oprot.writeFieldEnd();
19499
      }
19500
      oprot.writeFieldStop();
19501
      oprot.writeStructEnd();
19502
    }
19503
 
19504
    @Override
19505
    public String toString() {
19506
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19507
      boolean first = true;
19508
 
19509
      sb.append("success:");
19510
      if (this.success == null) {
19511
        sb.append("null");
19512
      } else {
19513
        sb.append(this.success);
19514
      }
19515
      first = false;
19516
      if (!first) sb.append(", ");
19517
      sb.append("se:");
19518
      if (this.se == null) {
19519
        sb.append("null");
19520
      } else {
19521
        sb.append(this.se);
19522
      }
19523
      first = false;
19524
      sb.append(")");
19525
      return sb.toString();
19526
    }
19527
 
19528
    public void validate() throws org.apache.thrift.TException {
19529
      // check for required fields
19530
    }
19531
 
19532
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19533
      try {
19534
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19535
      } catch (org.apache.thrift.TException te) {
19536
        throw new java.io.IOException(te);
19537
      }
19538
    }
19539
 
19540
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19541
      try {
19542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19543
      } catch (org.apache.thrift.TException te) {
19544
        throw new java.io.IOException(te);
19545
      }
19546
    }
19547
 
19548
  }
19549
 
19550
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19552
 
19553
    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);
19554
    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);
19555
 
19556
    private long providerId; // required
19557
    private String pincode; // required
19558
 
19559
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19560
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19561
      PROVIDER_ID((short)1, "providerId"),
19562
      PINCODE((short)2, "pincode");
19563
 
19564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19565
 
19566
      static {
19567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19568
          byName.put(field.getFieldName(), field);
19569
        }
19570
      }
19571
 
19572
      /**
19573
       * Find the _Fields constant that matches fieldId, or null if its not found.
19574
       */
19575
      public static _Fields findByThriftId(int fieldId) {
19576
        switch(fieldId) {
19577
          case 1: // PROVIDER_ID
19578
            return PROVIDER_ID;
19579
          case 2: // PINCODE
19580
            return PINCODE;
19581
          default:
19582
            return null;
19583
        }
19584
      }
19585
 
19586
      /**
19587
       * Find the _Fields constant that matches fieldId, throwing an exception
19588
       * if it is not found.
19589
       */
19590
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19591
        _Fields fields = findByThriftId(fieldId);
19592
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19593
        return fields;
19594
      }
19595
 
19596
      /**
19597
       * Find the _Fields constant that matches name, or null if its not found.
19598
       */
19599
      public static _Fields findByName(String name) {
19600
        return byName.get(name);
19601
      }
19602
 
19603
      private final short _thriftId;
19604
      private final String _fieldName;
19605
 
19606
      _Fields(short thriftId, String fieldName) {
19607
        _thriftId = thriftId;
19608
        _fieldName = fieldName;
19609
      }
19610
 
19611
      public short getThriftFieldId() {
19612
        return _thriftId;
19613
      }
19614
 
19615
      public String getFieldName() {
19616
        return _fieldName;
19617
      }
19618
    }
19619
 
19620
    // isset id assignments
19621
    private static final int __PROVIDERID_ISSET_ID = 0;
19622
    private BitSet __isset_bit_vector = new BitSet(1);
19623
 
19624
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19625
    static {
19626
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19627
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19628
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19629
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19633
    }
19634
 
19635
    public getProviderLimitDetailsForPincode_args() {
19636
    }
19637
 
19638
    public getProviderLimitDetailsForPincode_args(
19639
      long providerId,
19640
      String pincode)
19641
    {
19642
      this();
19643
      this.providerId = providerId;
19644
      setProviderIdIsSet(true);
19645
      this.pincode = pincode;
19646
    }
19647
 
19648
    /**
19649
     * Performs a deep copy on <i>other</i>.
19650
     */
19651
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19652
      __isset_bit_vector.clear();
19653
      __isset_bit_vector.or(other.__isset_bit_vector);
19654
      this.providerId = other.providerId;
19655
      if (other.isSetPincode()) {
19656
        this.pincode = other.pincode;
19657
      }
19658
    }
19659
 
19660
    public getProviderLimitDetailsForPincode_args deepCopy() {
19661
      return new getProviderLimitDetailsForPincode_args(this);
19662
    }
19663
 
19664
    @Override
19665
    public void clear() {
19666
      setProviderIdIsSet(false);
19667
      this.providerId = 0;
19668
      this.pincode = null;
19669
    }
19670
 
19671
    public long getProviderId() {
19672
      return this.providerId;
19673
    }
19674
 
19675
    public void setProviderId(long providerId) {
19676
      this.providerId = providerId;
19677
      setProviderIdIsSet(true);
19678
    }
19679
 
19680
    public void unsetProviderId() {
19681
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19682
    }
19683
 
19684
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19685
    public boolean isSetProviderId() {
19686
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19687
    }
19688
 
19689
    public void setProviderIdIsSet(boolean value) {
19690
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19691
    }
19692
 
19693
    public String getPincode() {
19694
      return this.pincode;
19695
    }
19696
 
19697
    public void setPincode(String pincode) {
19698
      this.pincode = pincode;
19699
    }
19700
 
19701
    public void unsetPincode() {
19702
      this.pincode = null;
19703
    }
19704
 
19705
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19706
    public boolean isSetPincode() {
19707
      return this.pincode != null;
19708
    }
19709
 
19710
    public void setPincodeIsSet(boolean value) {
19711
      if (!value) {
19712
        this.pincode = null;
19713
      }
19714
    }
19715
 
19716
    public void setFieldValue(_Fields field, Object value) {
19717
      switch (field) {
19718
      case PROVIDER_ID:
19719
        if (value == null) {
19720
          unsetProviderId();
19721
        } else {
19722
          setProviderId((Long)value);
19723
        }
19724
        break;
19725
 
19726
      case PINCODE:
19727
        if (value == null) {
19728
          unsetPincode();
19729
        } else {
19730
          setPincode((String)value);
19731
        }
19732
        break;
19733
 
19734
      }
19735
    }
19736
 
19737
    public Object getFieldValue(_Fields field) {
19738
      switch (field) {
19739
      case PROVIDER_ID:
19740
        return Long.valueOf(getProviderId());
19741
 
19742
      case PINCODE:
19743
        return getPincode();
19744
 
19745
      }
19746
      throw new IllegalStateException();
19747
    }
19748
 
19749
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19750
    public boolean isSet(_Fields field) {
19751
      if (field == null) {
19752
        throw new IllegalArgumentException();
19753
      }
19754
 
19755
      switch (field) {
19756
      case PROVIDER_ID:
19757
        return isSetProviderId();
19758
      case PINCODE:
19759
        return isSetPincode();
19760
      }
19761
      throw new IllegalStateException();
19762
    }
19763
 
19764
    @Override
19765
    public boolean equals(Object that) {
19766
      if (that == null)
19767
        return false;
19768
      if (that instanceof getProviderLimitDetailsForPincode_args)
19769
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19770
      return false;
19771
    }
19772
 
19773
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19774
      if (that == null)
19775
        return false;
19776
 
19777
      boolean this_present_providerId = true;
19778
      boolean that_present_providerId = true;
19779
      if (this_present_providerId || that_present_providerId) {
19780
        if (!(this_present_providerId && that_present_providerId))
19781
          return false;
19782
        if (this.providerId != that.providerId)
19783
          return false;
19784
      }
19785
 
19786
      boolean this_present_pincode = true && this.isSetPincode();
19787
      boolean that_present_pincode = true && that.isSetPincode();
19788
      if (this_present_pincode || that_present_pincode) {
19789
        if (!(this_present_pincode && that_present_pincode))
19790
          return false;
19791
        if (!this.pincode.equals(that.pincode))
19792
          return false;
19793
      }
19794
 
19795
      return true;
19796
    }
19797
 
19798
    @Override
19799
    public int hashCode() {
19800
      return 0;
19801
    }
19802
 
19803
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19804
      if (!getClass().equals(other.getClass())) {
19805
        return getClass().getName().compareTo(other.getClass().getName());
19806
      }
19807
 
19808
      int lastComparison = 0;
19809
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19810
 
19811
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19812
      if (lastComparison != 0) {
19813
        return lastComparison;
19814
      }
19815
      if (isSetProviderId()) {
19816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19817
        if (lastComparison != 0) {
19818
          return lastComparison;
19819
        }
19820
      }
19821
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19822
      if (lastComparison != 0) {
19823
        return lastComparison;
19824
      }
19825
      if (isSetPincode()) {
19826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19827
        if (lastComparison != 0) {
19828
          return lastComparison;
19829
        }
19830
      }
19831
      return 0;
19832
    }
19833
 
19834
    public _Fields fieldForId(int fieldId) {
19835
      return _Fields.findByThriftId(fieldId);
19836
    }
19837
 
19838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19839
      org.apache.thrift.protocol.TField field;
19840
      iprot.readStructBegin();
19841
      while (true)
19842
      {
19843
        field = iprot.readFieldBegin();
19844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19845
          break;
19846
        }
19847
        switch (field.id) {
19848
          case 1: // PROVIDER_ID
19849
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19850
              this.providerId = iprot.readI64();
19851
              setProviderIdIsSet(true);
19852
            } else { 
19853
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19854
            }
19855
            break;
19856
          case 2: // PINCODE
19857
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19858
              this.pincode = iprot.readString();
19859
            } else { 
19860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19861
            }
19862
            break;
19863
          default:
19864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19865
        }
19866
        iprot.readFieldEnd();
19867
      }
19868
      iprot.readStructEnd();
19869
      validate();
19870
    }
19871
 
19872
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19873
      validate();
19874
 
19875
      oprot.writeStructBegin(STRUCT_DESC);
19876
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19877
      oprot.writeI64(this.providerId);
19878
      oprot.writeFieldEnd();
19879
      if (this.pincode != null) {
19880
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19881
        oprot.writeString(this.pincode);
19882
        oprot.writeFieldEnd();
19883
      }
19884
      oprot.writeFieldStop();
19885
      oprot.writeStructEnd();
19886
    }
19887
 
19888
    @Override
19889
    public String toString() {
19890
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19891
      boolean first = true;
19892
 
19893
      sb.append("providerId:");
19894
      sb.append(this.providerId);
19895
      first = false;
19896
      if (!first) sb.append(", ");
19897
      sb.append("pincode:");
19898
      if (this.pincode == null) {
19899
        sb.append("null");
19900
      } else {
19901
        sb.append(this.pincode);
19902
      }
19903
      first = false;
19904
      sb.append(")");
19905
      return sb.toString();
19906
    }
19907
 
19908
    public void validate() throws org.apache.thrift.TException {
19909
      // check for required fields
19910
    }
19911
 
19912
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19913
      try {
19914
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19915
      } catch (org.apache.thrift.TException te) {
19916
        throw new java.io.IOException(te);
19917
      }
19918
    }
19919
 
19920
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19921
      try {
19922
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19923
        __isset_bit_vector = new BitSet(1);
19924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19925
      } catch (org.apache.thrift.TException te) {
19926
        throw new java.io.IOException(te);
19927
      }
19928
    }
19929
 
19930
  }
19931
 
19932
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19934
 
19935
    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);
19936
    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);
19937
 
19938
    private Map<String,String> success; // required
19939
    private LogisticsServiceException se; // required
19940
 
19941
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19942
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19943
      SUCCESS((short)0, "success"),
19944
      SE((short)1, "se");
19945
 
19946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19947
 
19948
      static {
19949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19950
          byName.put(field.getFieldName(), field);
19951
        }
19952
      }
19953
 
19954
      /**
19955
       * Find the _Fields constant that matches fieldId, or null if its not found.
19956
       */
19957
      public static _Fields findByThriftId(int fieldId) {
19958
        switch(fieldId) {
19959
          case 0: // SUCCESS
19960
            return SUCCESS;
19961
          case 1: // SE
19962
            return SE;
19963
          default:
19964
            return null;
19965
        }
19966
      }
19967
 
19968
      /**
19969
       * Find the _Fields constant that matches fieldId, throwing an exception
19970
       * if it is not found.
19971
       */
19972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19973
        _Fields fields = findByThriftId(fieldId);
19974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19975
        return fields;
19976
      }
19977
 
19978
      /**
19979
       * Find the _Fields constant that matches name, or null if its not found.
19980
       */
19981
      public static _Fields findByName(String name) {
19982
        return byName.get(name);
19983
      }
19984
 
19985
      private final short _thriftId;
19986
      private final String _fieldName;
19987
 
19988
      _Fields(short thriftId, String fieldName) {
19989
        _thriftId = thriftId;
19990
        _fieldName = fieldName;
19991
      }
19992
 
19993
      public short getThriftFieldId() {
19994
        return _thriftId;
19995
      }
19996
 
19997
      public String getFieldName() {
19998
        return _fieldName;
19999
      }
20000
    }
20001
 
20002
    // isset id assignments
20003
 
20004
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20005
    static {
20006
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20007
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20008
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20009
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
20010
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20011
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20012
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20013
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20014
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
20015
    }
20016
 
20017
    public getProviderLimitDetailsForPincode_result() {
20018
    }
20019
 
20020
    public getProviderLimitDetailsForPincode_result(
20021
      Map<String,String> success,
20022
      LogisticsServiceException se)
20023
    {
20024
      this();
20025
      this.success = success;
20026
      this.se = se;
20027
    }
20028
 
20029
    /**
20030
     * Performs a deep copy on <i>other</i>.
20031
     */
20032
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
20033
      if (other.isSetSuccess()) {
20034
        Map<String,String> __this__success = new HashMap<String,String>();
20035
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
20036
 
20037
          String other_element_key = other_element.getKey();
20038
          String other_element_value = other_element.getValue();
20039
 
20040
          String __this__success_copy_key = other_element_key;
20041
 
20042
          String __this__success_copy_value = other_element_value;
20043
 
20044
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20045
        }
20046
        this.success = __this__success;
20047
      }
20048
      if (other.isSetSe()) {
20049
        this.se = new LogisticsServiceException(other.se);
20050
      }
20051
    }
20052
 
20053
    public getProviderLimitDetailsForPincode_result deepCopy() {
20054
      return new getProviderLimitDetailsForPincode_result(this);
20055
    }
20056
 
20057
    @Override
20058
    public void clear() {
20059
      this.success = null;
20060
      this.se = null;
20061
    }
20062
 
20063
    public int getSuccessSize() {
20064
      return (this.success == null) ? 0 : this.success.size();
20065
    }
20066
 
20067
    public void putToSuccess(String key, String val) {
20068
      if (this.success == null) {
20069
        this.success = new HashMap<String,String>();
20070
      }
20071
      this.success.put(key, val);
20072
    }
20073
 
20074
    public Map<String,String> getSuccess() {
20075
      return this.success;
20076
    }
20077
 
20078
    public void setSuccess(Map<String,String> success) {
20079
      this.success = success;
20080
    }
20081
 
20082
    public void unsetSuccess() {
20083
      this.success = null;
20084
    }
20085
 
20086
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20087
    public boolean isSetSuccess() {
20088
      return this.success != null;
20089
    }
20090
 
20091
    public void setSuccessIsSet(boolean value) {
20092
      if (!value) {
20093
        this.success = null;
20094
      }
20095
    }
20096
 
20097
    public LogisticsServiceException getSe() {
20098
      return this.se;
20099
    }
20100
 
20101
    public void setSe(LogisticsServiceException se) {
20102
      this.se = se;
20103
    }
20104
 
20105
    public void unsetSe() {
20106
      this.se = null;
20107
    }
20108
 
20109
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
20110
    public boolean isSetSe() {
20111
      return this.se != null;
20112
    }
20113
 
20114
    public void setSeIsSet(boolean value) {
20115
      if (!value) {
20116
        this.se = null;
20117
      }
20118
    }
20119
 
20120
    public void setFieldValue(_Fields field, Object value) {
20121
      switch (field) {
20122
      case SUCCESS:
20123
        if (value == null) {
20124
          unsetSuccess();
20125
        } else {
20126
          setSuccess((Map<String,String>)value);
20127
        }
20128
        break;
20129
 
20130
      case SE:
20131
        if (value == null) {
20132
          unsetSe();
20133
        } else {
20134
          setSe((LogisticsServiceException)value);
20135
        }
20136
        break;
20137
 
20138
      }
20139
    }
20140
 
20141
    public Object getFieldValue(_Fields field) {
20142
      switch (field) {
20143
      case SUCCESS:
20144
        return getSuccess();
20145
 
20146
      case SE:
20147
        return getSe();
20148
 
20149
      }
20150
      throw new IllegalStateException();
20151
    }
20152
 
20153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20154
    public boolean isSet(_Fields field) {
20155
      if (field == null) {
20156
        throw new IllegalArgumentException();
20157
      }
20158
 
20159
      switch (field) {
20160
      case SUCCESS:
20161
        return isSetSuccess();
20162
      case SE:
20163
        return isSetSe();
20164
      }
20165
      throw new IllegalStateException();
20166
    }
20167
 
20168
    @Override
20169
    public boolean equals(Object that) {
20170
      if (that == null)
20171
        return false;
20172
      if (that instanceof getProviderLimitDetailsForPincode_result)
20173
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20174
      return false;
20175
    }
20176
 
20177
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20178
      if (that == null)
20179
        return false;
20180
 
20181
      boolean this_present_success = true && this.isSetSuccess();
20182
      boolean that_present_success = true && that.isSetSuccess();
20183
      if (this_present_success || that_present_success) {
20184
        if (!(this_present_success && that_present_success))
20185
          return false;
20186
        if (!this.success.equals(that.success))
20187
          return false;
20188
      }
20189
 
20190
      boolean this_present_se = true && this.isSetSe();
20191
      boolean that_present_se = true && that.isSetSe();
20192
      if (this_present_se || that_present_se) {
20193
        if (!(this_present_se && that_present_se))
20194
          return false;
20195
        if (!this.se.equals(that.se))
20196
          return false;
20197
      }
20198
 
20199
      return true;
20200
    }
20201
 
20202
    @Override
20203
    public int hashCode() {
20204
      return 0;
20205
    }
20206
 
20207
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20208
      if (!getClass().equals(other.getClass())) {
20209
        return getClass().getName().compareTo(other.getClass().getName());
20210
      }
20211
 
20212
      int lastComparison = 0;
20213
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20214
 
20215
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20216
      if (lastComparison != 0) {
20217
        return lastComparison;
20218
      }
20219
      if (isSetSuccess()) {
20220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20221
        if (lastComparison != 0) {
20222
          return lastComparison;
20223
        }
20224
      }
20225
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20226
      if (lastComparison != 0) {
20227
        return lastComparison;
20228
      }
20229
      if (isSetSe()) {
20230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20231
        if (lastComparison != 0) {
20232
          return lastComparison;
20233
        }
20234
      }
20235
      return 0;
20236
    }
20237
 
20238
    public _Fields fieldForId(int fieldId) {
20239
      return _Fields.findByThriftId(fieldId);
20240
    }
20241
 
20242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20243
      org.apache.thrift.protocol.TField field;
20244
      iprot.readStructBegin();
20245
      while (true)
20246
      {
20247
        field = iprot.readFieldBegin();
20248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20249
          break;
20250
        }
20251
        switch (field.id) {
20252
          case 0: // SUCCESS
20253
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20254
              {
20255
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20256
                this.success = new HashMap<String,String>(2*_map32.size);
20257
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20258
                {
20259
                  String _key34; // required
20260
                  String _val35; // required
20261
                  _key34 = iprot.readString();
20262
                  _val35 = iprot.readString();
20263
                  this.success.put(_key34, _val35);
20264
                }
20265
                iprot.readMapEnd();
20266
              }
20267
            } else { 
20268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20269
            }
20270
            break;
20271
          case 1: // SE
20272
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20273
              this.se = new LogisticsServiceException();
20274
              this.se.read(iprot);
20275
            } else { 
20276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20277
            }
20278
            break;
20279
          default:
20280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20281
        }
20282
        iprot.readFieldEnd();
20283
      }
20284
      iprot.readStructEnd();
20285
      validate();
20286
    }
20287
 
20288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20289
      oprot.writeStructBegin(STRUCT_DESC);
20290
 
20291
      if (this.isSetSuccess()) {
20292
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20293
        {
20294
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20295
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20296
          {
20297
            oprot.writeString(_iter36.getKey());
20298
            oprot.writeString(_iter36.getValue());
20299
          }
20300
          oprot.writeMapEnd();
20301
        }
20302
        oprot.writeFieldEnd();
20303
      } else if (this.isSetSe()) {
20304
        oprot.writeFieldBegin(SE_FIELD_DESC);
20305
        this.se.write(oprot);
20306
        oprot.writeFieldEnd();
20307
      }
20308
      oprot.writeFieldStop();
20309
      oprot.writeStructEnd();
20310
    }
20311
 
20312
    @Override
20313
    public String toString() {
20314
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20315
      boolean first = true;
20316
 
20317
      sb.append("success:");
20318
      if (this.success == null) {
20319
        sb.append("null");
20320
      } else {
20321
        sb.append(this.success);
20322
      }
20323
      first = false;
20324
      if (!first) sb.append(", ");
20325
      sb.append("se:");
20326
      if (this.se == null) {
20327
        sb.append("null");
20328
      } else {
20329
        sb.append(this.se);
20330
      }
20331
      first = false;
20332
      sb.append(")");
20333
      return sb.toString();
20334
    }
20335
 
20336
    public void validate() throws org.apache.thrift.TException {
20337
      // check for required fields
20338
    }
20339
 
20340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20341
      try {
20342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20343
      } catch (org.apache.thrift.TException te) {
20344
        throw new java.io.IOException(te);
20345
      }
20346
    }
20347
 
20348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20349
      try {
20350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20351
      } catch (org.apache.thrift.TException te) {
20352
        throw new java.io.IOException(te);
20353
      }
20354
    }
20355
 
20356
  }
20357
 
19413 amit.gupta 20358
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20360
 
20361
    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);
20362
    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);
20363
 
20364
    private String destPincode; // required
20365
    private List<Long> price; // required
20366
 
20367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20369
      DEST_PINCODE((short)1, "destPincode"),
20370
      PRICE((short)2, "price");
20371
 
20372
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20373
 
20374
      static {
20375
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20376
          byName.put(field.getFieldName(), field);
20377
        }
20378
      }
20379
 
20380
      /**
20381
       * Find the _Fields constant that matches fieldId, or null if its not found.
20382
       */
20383
      public static _Fields findByThriftId(int fieldId) {
20384
        switch(fieldId) {
20385
          case 1: // DEST_PINCODE
20386
            return DEST_PINCODE;
20387
          case 2: // PRICE
20388
            return PRICE;
20389
          default:
20390
            return null;
20391
        }
20392
      }
20393
 
20394
      /**
20395
       * Find the _Fields constant that matches fieldId, throwing an exception
20396
       * if it is not found.
20397
       */
20398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20399
        _Fields fields = findByThriftId(fieldId);
20400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20401
        return fields;
20402
      }
20403
 
20404
      /**
20405
       * Find the _Fields constant that matches name, or null if its not found.
20406
       */
20407
      public static _Fields findByName(String name) {
20408
        return byName.get(name);
20409
      }
20410
 
20411
      private final short _thriftId;
20412
      private final String _fieldName;
20413
 
20414
      _Fields(short thriftId, String fieldName) {
20415
        _thriftId = thriftId;
20416
        _fieldName = fieldName;
20417
      }
20418
 
20419
      public short getThriftFieldId() {
20420
        return _thriftId;
20421
      }
20422
 
20423
      public String getFieldName() {
20424
        return _fieldName;
20425
      }
20426
    }
20427
 
20428
    // isset id assignments
20429
 
20430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20431
    static {
20432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20433
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20435
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20436
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20437
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20440
    }
20441
 
20442
    public getLocationInfoMap_args() {
20443
    }
20444
 
20445
    public getLocationInfoMap_args(
20446
      String destPincode,
20447
      List<Long> price)
20448
    {
20449
      this();
20450
      this.destPincode = destPincode;
20451
      this.price = price;
20452
    }
20453
 
20454
    /**
20455
     * Performs a deep copy on <i>other</i>.
20456
     */
20457
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20458
      if (other.isSetDestPincode()) {
20459
        this.destPincode = other.destPincode;
20460
      }
20461
      if (other.isSetPrice()) {
20462
        List<Long> __this__price = new ArrayList<Long>();
20463
        for (Long other_element : other.price) {
20464
          __this__price.add(other_element);
20465
        }
20466
        this.price = __this__price;
20467
      }
20468
    }
20469
 
20470
    public getLocationInfoMap_args deepCopy() {
20471
      return new getLocationInfoMap_args(this);
20472
    }
20473
 
20474
    @Override
20475
    public void clear() {
20476
      this.destPincode = null;
20477
      this.price = null;
20478
    }
20479
 
20480
    public String getDestPincode() {
20481
      return this.destPincode;
20482
    }
20483
 
20484
    public void setDestPincode(String destPincode) {
20485
      this.destPincode = destPincode;
20486
    }
20487
 
20488
    public void unsetDestPincode() {
20489
      this.destPincode = null;
20490
    }
20491
 
20492
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20493
    public boolean isSetDestPincode() {
20494
      return this.destPincode != null;
20495
    }
20496
 
20497
    public void setDestPincodeIsSet(boolean value) {
20498
      if (!value) {
20499
        this.destPincode = null;
20500
      }
20501
    }
20502
 
20503
    public int getPriceSize() {
20504
      return (this.price == null) ? 0 : this.price.size();
20505
    }
20506
 
20507
    public java.util.Iterator<Long> getPriceIterator() {
20508
      return (this.price == null) ? null : this.price.iterator();
20509
    }
20510
 
20511
    public void addToPrice(long elem) {
20512
      if (this.price == null) {
20513
        this.price = new ArrayList<Long>();
20514
      }
20515
      this.price.add(elem);
20516
    }
20517
 
20518
    public List<Long> getPrice() {
20519
      return this.price;
20520
    }
20521
 
20522
    public void setPrice(List<Long> price) {
20523
      this.price = price;
20524
    }
20525
 
20526
    public void unsetPrice() {
20527
      this.price = null;
20528
    }
20529
 
20530
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20531
    public boolean isSetPrice() {
20532
      return this.price != null;
20533
    }
20534
 
20535
    public void setPriceIsSet(boolean value) {
20536
      if (!value) {
20537
        this.price = null;
20538
      }
20539
    }
20540
 
20541
    public void setFieldValue(_Fields field, Object value) {
20542
      switch (field) {
20543
      case DEST_PINCODE:
20544
        if (value == null) {
20545
          unsetDestPincode();
20546
        } else {
20547
          setDestPincode((String)value);
20548
        }
20549
        break;
20550
 
20551
      case PRICE:
20552
        if (value == null) {
20553
          unsetPrice();
20554
        } else {
20555
          setPrice((List<Long>)value);
20556
        }
20557
        break;
20558
 
20559
      }
20560
    }
20561
 
20562
    public Object getFieldValue(_Fields field) {
20563
      switch (field) {
20564
      case DEST_PINCODE:
20565
        return getDestPincode();
20566
 
20567
      case PRICE:
20568
        return getPrice();
20569
 
20570
      }
20571
      throw new IllegalStateException();
20572
    }
20573
 
20574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20575
    public boolean isSet(_Fields field) {
20576
      if (field == null) {
20577
        throw new IllegalArgumentException();
20578
      }
20579
 
20580
      switch (field) {
20581
      case DEST_PINCODE:
20582
        return isSetDestPincode();
20583
      case PRICE:
20584
        return isSetPrice();
20585
      }
20586
      throw new IllegalStateException();
20587
    }
20588
 
20589
    @Override
20590
    public boolean equals(Object that) {
20591
      if (that == null)
20592
        return false;
20593
      if (that instanceof getLocationInfoMap_args)
20594
        return this.equals((getLocationInfoMap_args)that);
20595
      return false;
20596
    }
20597
 
20598
    public boolean equals(getLocationInfoMap_args that) {
20599
      if (that == null)
20600
        return false;
20601
 
20602
      boolean this_present_destPincode = true && this.isSetDestPincode();
20603
      boolean that_present_destPincode = true && that.isSetDestPincode();
20604
      if (this_present_destPincode || that_present_destPincode) {
20605
        if (!(this_present_destPincode && that_present_destPincode))
20606
          return false;
20607
        if (!this.destPincode.equals(that.destPincode))
20608
          return false;
20609
      }
20610
 
20611
      boolean this_present_price = true && this.isSetPrice();
20612
      boolean that_present_price = true && that.isSetPrice();
20613
      if (this_present_price || that_present_price) {
20614
        if (!(this_present_price && that_present_price))
20615
          return false;
20616
        if (!this.price.equals(that.price))
20617
          return false;
20618
      }
20619
 
20620
      return true;
20621
    }
20622
 
20623
    @Override
20624
    public int hashCode() {
20625
      return 0;
20626
    }
20627
 
20628
    public int compareTo(getLocationInfoMap_args other) {
20629
      if (!getClass().equals(other.getClass())) {
20630
        return getClass().getName().compareTo(other.getClass().getName());
20631
      }
20632
 
20633
      int lastComparison = 0;
20634
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20635
 
20636
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20637
      if (lastComparison != 0) {
20638
        return lastComparison;
20639
      }
20640
      if (isSetDestPincode()) {
20641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20642
        if (lastComparison != 0) {
20643
          return lastComparison;
20644
        }
20645
      }
20646
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20647
      if (lastComparison != 0) {
20648
        return lastComparison;
20649
      }
20650
      if (isSetPrice()) {
20651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20652
        if (lastComparison != 0) {
20653
          return lastComparison;
20654
        }
20655
      }
20656
      return 0;
20657
    }
20658
 
20659
    public _Fields fieldForId(int fieldId) {
20660
      return _Fields.findByThriftId(fieldId);
20661
    }
20662
 
20663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20664
      org.apache.thrift.protocol.TField field;
20665
      iprot.readStructBegin();
20666
      while (true)
20667
      {
20668
        field = iprot.readFieldBegin();
20669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20670
          break;
20671
        }
20672
        switch (field.id) {
20673
          case 1: // DEST_PINCODE
20674
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20675
              this.destPincode = iprot.readString();
20676
            } else { 
20677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20678
            }
20679
            break;
20680
          case 2: // PRICE
20681
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20682
              {
20683
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20684
                this.price = new ArrayList<Long>(_list37.size);
20685
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20686
                {
20687
                  long _elem39; // required
20688
                  _elem39 = iprot.readI64();
20689
                  this.price.add(_elem39);
20690
                }
20691
                iprot.readListEnd();
20692
              }
20693
            } else { 
20694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20695
            }
20696
            break;
20697
          default:
20698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20699
        }
20700
        iprot.readFieldEnd();
20701
      }
20702
      iprot.readStructEnd();
20703
      validate();
20704
    }
20705
 
20706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20707
      validate();
20708
 
20709
      oprot.writeStructBegin(STRUCT_DESC);
20710
      if (this.destPincode != null) {
20711
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20712
        oprot.writeString(this.destPincode);
20713
        oprot.writeFieldEnd();
20714
      }
20715
      if (this.price != null) {
20716
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20717
        {
20718
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20719
          for (long _iter40 : this.price)
20720
          {
20721
            oprot.writeI64(_iter40);
20722
          }
20723
          oprot.writeListEnd();
20724
        }
20725
        oprot.writeFieldEnd();
20726
      }
20727
      oprot.writeFieldStop();
20728
      oprot.writeStructEnd();
20729
    }
20730
 
20731
    @Override
20732
    public String toString() {
20733
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20734
      boolean first = true;
20735
 
20736
      sb.append("destPincode:");
20737
      if (this.destPincode == null) {
20738
        sb.append("null");
20739
      } else {
20740
        sb.append(this.destPincode);
20741
      }
20742
      first = false;
20743
      if (!first) sb.append(", ");
20744
      sb.append("price:");
20745
      if (this.price == null) {
20746
        sb.append("null");
20747
      } else {
20748
        sb.append(this.price);
20749
      }
20750
      first = false;
20751
      sb.append(")");
20752
      return sb.toString();
20753
    }
20754
 
20755
    public void validate() throws org.apache.thrift.TException {
20756
      // check for required fields
20757
    }
20758
 
20759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20760
      try {
20761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20762
      } catch (org.apache.thrift.TException te) {
20763
        throw new java.io.IOException(te);
20764
      }
20765
    }
20766
 
20767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20768
      try {
20769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20770
      } catch (org.apache.thrift.TException te) {
20771
        throw new java.io.IOException(te);
20772
      }
20773
    }
20774
 
20775
  }
20776
 
20777
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20779
 
20780
    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);
20781
 
20782
    private Map<Long,Map<Long,LocationInfo>> success; // required
20783
 
20784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20786
      SUCCESS((short)0, "success");
20787
 
20788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20789
 
20790
      static {
20791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20792
          byName.put(field.getFieldName(), field);
20793
        }
20794
      }
20795
 
20796
      /**
20797
       * Find the _Fields constant that matches fieldId, or null if its not found.
20798
       */
20799
      public static _Fields findByThriftId(int fieldId) {
20800
        switch(fieldId) {
20801
          case 0: // SUCCESS
20802
            return SUCCESS;
20803
          default:
20804
            return null;
20805
        }
20806
      }
20807
 
20808
      /**
20809
       * Find the _Fields constant that matches fieldId, throwing an exception
20810
       * if it is not found.
20811
       */
20812
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20813
        _Fields fields = findByThriftId(fieldId);
20814
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20815
        return fields;
20816
      }
20817
 
20818
      /**
20819
       * Find the _Fields constant that matches name, or null if its not found.
20820
       */
20821
      public static _Fields findByName(String name) {
20822
        return byName.get(name);
20823
      }
20824
 
20825
      private final short _thriftId;
20826
      private final String _fieldName;
20827
 
20828
      _Fields(short thriftId, String fieldName) {
20829
        _thriftId = thriftId;
20830
        _fieldName = fieldName;
20831
      }
20832
 
20833
      public short getThriftFieldId() {
20834
        return _thriftId;
20835
      }
20836
 
20837
      public String getFieldName() {
20838
        return _fieldName;
20839
      }
20840
    }
20841
 
20842
    // isset id assignments
20843
 
20844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20845
    static {
20846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20847
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20848
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20849
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20850
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20851
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20852
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20853
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20854
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20855
    }
20856
 
20857
    public getLocationInfoMap_result() {
20858
    }
20859
 
20860
    public getLocationInfoMap_result(
20861
      Map<Long,Map<Long,LocationInfo>> success)
20862
    {
20863
      this();
20864
      this.success = success;
20865
    }
20866
 
20867
    /**
20868
     * Performs a deep copy on <i>other</i>.
20869
     */
20870
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20871
      if (other.isSetSuccess()) {
20872
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20873
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20874
 
20875
          Long other_element_key = other_element.getKey();
20876
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20877
 
20878
          Long __this__success_copy_key = other_element_key;
20879
 
20880
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20881
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20882
 
20883
            Long other_element_value_element_key = other_element_value_element.getKey();
20884
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20885
 
20886
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20887
 
20888
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20889
 
20890
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20891
          }
20892
 
20893
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20894
        }
20895
        this.success = __this__success;
20896
      }
20897
    }
20898
 
20899
    public getLocationInfoMap_result deepCopy() {
20900
      return new getLocationInfoMap_result(this);
20901
    }
20902
 
20903
    @Override
20904
    public void clear() {
20905
      this.success = null;
20906
    }
20907
 
20908
    public int getSuccessSize() {
20909
      return (this.success == null) ? 0 : this.success.size();
20910
    }
20911
 
20912
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20913
      if (this.success == null) {
20914
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20915
      }
20916
      this.success.put(key, val);
20917
    }
20918
 
20919
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20920
      return this.success;
20921
    }
20922
 
20923
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20924
      this.success = success;
20925
    }
20926
 
20927
    public void unsetSuccess() {
20928
      this.success = null;
20929
    }
20930
 
20931
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20932
    public boolean isSetSuccess() {
20933
      return this.success != null;
20934
    }
20935
 
20936
    public void setSuccessIsSet(boolean value) {
20937
      if (!value) {
20938
        this.success = null;
20939
      }
20940
    }
20941
 
20942
    public void setFieldValue(_Fields field, Object value) {
20943
      switch (field) {
20944
      case SUCCESS:
20945
        if (value == null) {
20946
          unsetSuccess();
20947
        } else {
20948
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20949
        }
20950
        break;
20951
 
20952
      }
20953
    }
20954
 
20955
    public Object getFieldValue(_Fields field) {
20956
      switch (field) {
20957
      case SUCCESS:
20958
        return getSuccess();
20959
 
20960
      }
20961
      throw new IllegalStateException();
20962
    }
20963
 
20964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20965
    public boolean isSet(_Fields field) {
20966
      if (field == null) {
20967
        throw new IllegalArgumentException();
20968
      }
20969
 
20970
      switch (field) {
20971
      case SUCCESS:
20972
        return isSetSuccess();
20973
      }
20974
      throw new IllegalStateException();
20975
    }
20976
 
20977
    @Override
20978
    public boolean equals(Object that) {
20979
      if (that == null)
20980
        return false;
20981
      if (that instanceof getLocationInfoMap_result)
20982
        return this.equals((getLocationInfoMap_result)that);
20983
      return false;
20984
    }
20985
 
20986
    public boolean equals(getLocationInfoMap_result that) {
20987
      if (that == null)
20988
        return false;
20989
 
20990
      boolean this_present_success = true && this.isSetSuccess();
20991
      boolean that_present_success = true && that.isSetSuccess();
20992
      if (this_present_success || that_present_success) {
20993
        if (!(this_present_success && that_present_success))
20994
          return false;
20995
        if (!this.success.equals(that.success))
20996
          return false;
20997
      }
20998
 
20999
      return true;
21000
    }
21001
 
21002
    @Override
21003
    public int hashCode() {
21004
      return 0;
21005
    }
21006
 
21007
    public int compareTo(getLocationInfoMap_result other) {
21008
      if (!getClass().equals(other.getClass())) {
21009
        return getClass().getName().compareTo(other.getClass().getName());
21010
      }
21011
 
21012
      int lastComparison = 0;
21013
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
21014
 
21015
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21016
      if (lastComparison != 0) {
21017
        return lastComparison;
21018
      }
21019
      if (isSetSuccess()) {
21020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21021
        if (lastComparison != 0) {
21022
          return lastComparison;
21023
        }
21024
      }
21025
      return 0;
21026
    }
21027
 
21028
    public _Fields fieldForId(int fieldId) {
21029
      return _Fields.findByThriftId(fieldId);
21030
    }
21031
 
21032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21033
      org.apache.thrift.protocol.TField field;
21034
      iprot.readStructBegin();
21035
      while (true)
21036
      {
21037
        field = iprot.readFieldBegin();
21038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21039
          break;
21040
        }
21041
        switch (field.id) {
21042
          case 0: // SUCCESS
21043
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
21044
              {
21045
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
21046
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
21047
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
21048
                {
21049
                  long _key43; // required
21050
                  Map<Long,LocationInfo> _val44; // required
21051
                  _key43 = iprot.readI64();
21052
                  {
21053
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
21054
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
21055
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
21056
                    {
21057
                      long _key47; // required
21058
                      LocationInfo _val48; // required
21059
                      _key47 = iprot.readI64();
21060
                      _val48 = new LocationInfo();
21061
                      _val48.read(iprot);
21062
                      _val44.put(_key47, _val48);
21063
                    }
21064
                    iprot.readMapEnd();
21065
                  }
21066
                  this.success.put(_key43, _val44);
21067
                }
21068
                iprot.readMapEnd();
21069
              }
21070
            } else { 
21071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21072
            }
21073
            break;
21074
          default:
21075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21076
        }
21077
        iprot.readFieldEnd();
21078
      }
21079
      iprot.readStructEnd();
21080
      validate();
21081
    }
21082
 
21083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21084
      oprot.writeStructBegin(STRUCT_DESC);
21085
 
21086
      if (this.isSetSuccess()) {
21087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21088
        {
21089
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
21090
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
21091
          {
21092
            oprot.writeI64(_iter49.getKey());
21093
            {
21094
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
21095
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
21096
              {
21097
                oprot.writeI64(_iter50.getKey());
21098
                _iter50.getValue().write(oprot);
21099
              }
21100
              oprot.writeMapEnd();
21101
            }
21102
          }
21103
          oprot.writeMapEnd();
21104
        }
21105
        oprot.writeFieldEnd();
21106
      }
21107
      oprot.writeFieldStop();
21108
      oprot.writeStructEnd();
21109
    }
21110
 
21111
    @Override
21112
    public String toString() {
21113
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
21114
      boolean first = true;
21115
 
21116
      sb.append("success:");
21117
      if (this.success == null) {
21118
        sb.append("null");
21119
      } else {
21120
        sb.append(this.success);
21121
      }
21122
      first = false;
21123
      sb.append(")");
21124
      return sb.toString();
21125
    }
21126
 
21127
    public void validate() throws org.apache.thrift.TException {
21128
      // check for required fields
21129
    }
21130
 
21131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21132
      try {
21133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21134
      } catch (org.apache.thrift.TException te) {
21135
        throw new java.io.IOException(te);
21136
      }
21137
    }
21138
 
21139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21140
      try {
21141
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21142
      } catch (org.apache.thrift.TException te) {
21143
        throw new java.io.IOException(te);
21144
      }
21145
    }
21146
 
21147
  }
21148
 
19421 manish.sha 21149
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
21150
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
21151
 
21152
    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);
21153
    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);
21154
    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);
21155
    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);
21156
    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 21157
    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 21158
 
21159
    private String pincode; // required
21160
    private double transactionAmount; // required
21161
    private boolean isCod; // required
21162
    private double weight; // required
21163
    private long billingWarehouseId; // required
19474 manish.sha 21164
    private boolean isCompleteTxn; // required
19421 manish.sha 21165
 
21166
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21167
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21168
      PINCODE((short)1, "pincode"),
21169
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21170
      IS_COD((short)3, "isCod"),
21171
      WEIGHT((short)4, "weight"),
19474 manish.sha 21172
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
21173
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21174
 
21175
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21176
 
21177
      static {
21178
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21179
          byName.put(field.getFieldName(), field);
21180
        }
21181
      }
21182
 
21183
      /**
21184
       * Find the _Fields constant that matches fieldId, or null if its not found.
21185
       */
21186
      public static _Fields findByThriftId(int fieldId) {
21187
        switch(fieldId) {
21188
          case 1: // PINCODE
21189
            return PINCODE;
21190
          case 2: // TRANSACTION_AMOUNT
21191
            return TRANSACTION_AMOUNT;
21192
          case 3: // IS_COD
21193
            return IS_COD;
21194
          case 4: // WEIGHT
21195
            return WEIGHT;
21196
          case 5: // BILLING_WAREHOUSE_ID
21197
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21198
          case 6: // IS_COMPLETE_TXN
21199
            return IS_COMPLETE_TXN;
19421 manish.sha 21200
          default:
21201
            return null;
21202
        }
21203
      }
21204
 
21205
      /**
21206
       * Find the _Fields constant that matches fieldId, throwing an exception
21207
       * if it is not found.
21208
       */
21209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21210
        _Fields fields = findByThriftId(fieldId);
21211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21212
        return fields;
21213
      }
21214
 
21215
      /**
21216
       * Find the _Fields constant that matches name, or null if its not found.
21217
       */
21218
      public static _Fields findByName(String name) {
21219
        return byName.get(name);
21220
      }
21221
 
21222
      private final short _thriftId;
21223
      private final String _fieldName;
21224
 
21225
      _Fields(short thriftId, String fieldName) {
21226
        _thriftId = thriftId;
21227
        _fieldName = fieldName;
21228
      }
21229
 
21230
      public short getThriftFieldId() {
21231
        return _thriftId;
21232
      }
21233
 
21234
      public String getFieldName() {
21235
        return _fieldName;
21236
      }
21237
    }
21238
 
21239
    // isset id assignments
21240
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21241
    private static final int __ISCOD_ISSET_ID = 1;
21242
    private static final int __WEIGHT_ISSET_ID = 2;
21243
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21244
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21245
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21246
 
21247
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21248
    static {
21249
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21250
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21252
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21253
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21254
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21255
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21256
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21258
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21260
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21264
    }
21265
 
21266
    public getCostingAndDeliveryEstimateForPincode_args() {
21267
    }
21268
 
21269
    public getCostingAndDeliveryEstimateForPincode_args(
21270
      String pincode,
21271
      double transactionAmount,
21272
      boolean isCod,
21273
      double weight,
19474 manish.sha 21274
      long billingWarehouseId,
21275
      boolean isCompleteTxn)
19421 manish.sha 21276
    {
21277
      this();
21278
      this.pincode = pincode;
21279
      this.transactionAmount = transactionAmount;
21280
      setTransactionAmountIsSet(true);
21281
      this.isCod = isCod;
21282
      setIsCodIsSet(true);
21283
      this.weight = weight;
21284
      setWeightIsSet(true);
21285
      this.billingWarehouseId = billingWarehouseId;
21286
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21287
      this.isCompleteTxn = isCompleteTxn;
21288
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21289
    }
21290
 
21291
    /**
21292
     * Performs a deep copy on <i>other</i>.
21293
     */
21294
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21295
      __isset_bit_vector.clear();
21296
      __isset_bit_vector.or(other.__isset_bit_vector);
21297
      if (other.isSetPincode()) {
21298
        this.pincode = other.pincode;
21299
      }
21300
      this.transactionAmount = other.transactionAmount;
21301
      this.isCod = other.isCod;
21302
      this.weight = other.weight;
21303
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21304
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21305
    }
21306
 
21307
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21308
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21309
    }
21310
 
21311
    @Override
21312
    public void clear() {
21313
      this.pincode = null;
21314
      setTransactionAmountIsSet(false);
21315
      this.transactionAmount = 0.0;
21316
      setIsCodIsSet(false);
21317
      this.isCod = false;
21318
      setWeightIsSet(false);
21319
      this.weight = 0.0;
21320
      setBillingWarehouseIdIsSet(false);
21321
      this.billingWarehouseId = 0;
19474 manish.sha 21322
      setIsCompleteTxnIsSet(false);
21323
      this.isCompleteTxn = false;
19421 manish.sha 21324
    }
21325
 
21326
    public String getPincode() {
21327
      return this.pincode;
21328
    }
21329
 
21330
    public void setPincode(String pincode) {
21331
      this.pincode = pincode;
21332
    }
21333
 
21334
    public void unsetPincode() {
21335
      this.pincode = null;
21336
    }
21337
 
21338
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21339
    public boolean isSetPincode() {
21340
      return this.pincode != null;
21341
    }
21342
 
21343
    public void setPincodeIsSet(boolean value) {
21344
      if (!value) {
21345
        this.pincode = null;
21346
      }
21347
    }
21348
 
21349
    public double getTransactionAmount() {
21350
      return this.transactionAmount;
21351
    }
21352
 
21353
    public void setTransactionAmount(double transactionAmount) {
21354
      this.transactionAmount = transactionAmount;
21355
      setTransactionAmountIsSet(true);
21356
    }
21357
 
21358
    public void unsetTransactionAmount() {
21359
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21360
    }
21361
 
21362
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21363
    public boolean isSetTransactionAmount() {
21364
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21365
    }
21366
 
21367
    public void setTransactionAmountIsSet(boolean value) {
21368
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21369
    }
21370
 
21371
    public boolean isIsCod() {
21372
      return this.isCod;
21373
    }
21374
 
21375
    public void setIsCod(boolean isCod) {
21376
      this.isCod = isCod;
21377
      setIsCodIsSet(true);
21378
    }
21379
 
21380
    public void unsetIsCod() {
21381
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21382
    }
21383
 
21384
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21385
    public boolean isSetIsCod() {
21386
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21387
    }
21388
 
21389
    public void setIsCodIsSet(boolean value) {
21390
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21391
    }
21392
 
21393
    public double getWeight() {
21394
      return this.weight;
21395
    }
21396
 
21397
    public void setWeight(double weight) {
21398
      this.weight = weight;
21399
      setWeightIsSet(true);
21400
    }
21401
 
21402
    public void unsetWeight() {
21403
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21404
    }
21405
 
21406
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21407
    public boolean isSetWeight() {
21408
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21409
    }
21410
 
21411
    public void setWeightIsSet(boolean value) {
21412
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21413
    }
21414
 
21415
    public long getBillingWarehouseId() {
21416
      return this.billingWarehouseId;
21417
    }
21418
 
21419
    public void setBillingWarehouseId(long billingWarehouseId) {
21420
      this.billingWarehouseId = billingWarehouseId;
21421
      setBillingWarehouseIdIsSet(true);
21422
    }
21423
 
21424
    public void unsetBillingWarehouseId() {
21425
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21426
    }
21427
 
21428
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21429
    public boolean isSetBillingWarehouseId() {
21430
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21431
    }
21432
 
21433
    public void setBillingWarehouseIdIsSet(boolean value) {
21434
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21435
    }
21436
 
19474 manish.sha 21437
    public boolean isIsCompleteTxn() {
21438
      return this.isCompleteTxn;
21439
    }
21440
 
21441
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21442
      this.isCompleteTxn = isCompleteTxn;
21443
      setIsCompleteTxnIsSet(true);
21444
    }
21445
 
21446
    public void unsetIsCompleteTxn() {
21447
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21448
    }
21449
 
21450
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21451
    public boolean isSetIsCompleteTxn() {
21452
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21453
    }
21454
 
21455
    public void setIsCompleteTxnIsSet(boolean value) {
21456
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21457
    }
21458
 
19421 manish.sha 21459
    public void setFieldValue(_Fields field, Object value) {
21460
      switch (field) {
21461
      case PINCODE:
21462
        if (value == null) {
21463
          unsetPincode();
21464
        } else {
21465
          setPincode((String)value);
21466
        }
21467
        break;
21468
 
21469
      case TRANSACTION_AMOUNT:
21470
        if (value == null) {
21471
          unsetTransactionAmount();
21472
        } else {
21473
          setTransactionAmount((Double)value);
21474
        }
21475
        break;
21476
 
21477
      case IS_COD:
21478
        if (value == null) {
21479
          unsetIsCod();
21480
        } else {
21481
          setIsCod((Boolean)value);
21482
        }
21483
        break;
21484
 
21485
      case WEIGHT:
21486
        if (value == null) {
21487
          unsetWeight();
21488
        } else {
21489
          setWeight((Double)value);
21490
        }
21491
        break;
21492
 
21493
      case BILLING_WAREHOUSE_ID:
21494
        if (value == null) {
21495
          unsetBillingWarehouseId();
21496
        } else {
21497
          setBillingWarehouseId((Long)value);
21498
        }
21499
        break;
21500
 
19474 manish.sha 21501
      case IS_COMPLETE_TXN:
21502
        if (value == null) {
21503
          unsetIsCompleteTxn();
21504
        } else {
21505
          setIsCompleteTxn((Boolean)value);
21506
        }
21507
        break;
21508
 
19421 manish.sha 21509
      }
21510
    }
21511
 
21512
    public Object getFieldValue(_Fields field) {
21513
      switch (field) {
21514
      case PINCODE:
21515
        return getPincode();
21516
 
21517
      case TRANSACTION_AMOUNT:
21518
        return Double.valueOf(getTransactionAmount());
21519
 
21520
      case IS_COD:
21521
        return Boolean.valueOf(isIsCod());
21522
 
21523
      case WEIGHT:
21524
        return Double.valueOf(getWeight());
21525
 
21526
      case BILLING_WAREHOUSE_ID:
21527
        return Long.valueOf(getBillingWarehouseId());
21528
 
19474 manish.sha 21529
      case IS_COMPLETE_TXN:
21530
        return Boolean.valueOf(isIsCompleteTxn());
21531
 
19421 manish.sha 21532
      }
21533
      throw new IllegalStateException();
21534
    }
21535
 
21536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21537
    public boolean isSet(_Fields field) {
21538
      if (field == null) {
21539
        throw new IllegalArgumentException();
21540
      }
21541
 
21542
      switch (field) {
21543
      case PINCODE:
21544
        return isSetPincode();
21545
      case TRANSACTION_AMOUNT:
21546
        return isSetTransactionAmount();
21547
      case IS_COD:
21548
        return isSetIsCod();
21549
      case WEIGHT:
21550
        return isSetWeight();
21551
      case BILLING_WAREHOUSE_ID:
21552
        return isSetBillingWarehouseId();
19474 manish.sha 21553
      case IS_COMPLETE_TXN:
21554
        return isSetIsCompleteTxn();
19421 manish.sha 21555
      }
21556
      throw new IllegalStateException();
21557
    }
21558
 
21559
    @Override
21560
    public boolean equals(Object that) {
21561
      if (that == null)
21562
        return false;
21563
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21564
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21565
      return false;
21566
    }
21567
 
21568
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21569
      if (that == null)
21570
        return false;
21571
 
21572
      boolean this_present_pincode = true && this.isSetPincode();
21573
      boolean that_present_pincode = true && that.isSetPincode();
21574
      if (this_present_pincode || that_present_pincode) {
21575
        if (!(this_present_pincode && that_present_pincode))
21576
          return false;
21577
        if (!this.pincode.equals(that.pincode))
21578
          return false;
21579
      }
21580
 
21581
      boolean this_present_transactionAmount = true;
21582
      boolean that_present_transactionAmount = true;
21583
      if (this_present_transactionAmount || that_present_transactionAmount) {
21584
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21585
          return false;
21586
        if (this.transactionAmount != that.transactionAmount)
21587
          return false;
21588
      }
21589
 
21590
      boolean this_present_isCod = true;
21591
      boolean that_present_isCod = true;
21592
      if (this_present_isCod || that_present_isCod) {
21593
        if (!(this_present_isCod && that_present_isCod))
21594
          return false;
21595
        if (this.isCod != that.isCod)
21596
          return false;
21597
      }
21598
 
21599
      boolean this_present_weight = true;
21600
      boolean that_present_weight = true;
21601
      if (this_present_weight || that_present_weight) {
21602
        if (!(this_present_weight && that_present_weight))
21603
          return false;
21604
        if (this.weight != that.weight)
21605
          return false;
21606
      }
21607
 
21608
      boolean this_present_billingWarehouseId = true;
21609
      boolean that_present_billingWarehouseId = true;
21610
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21611
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21612
          return false;
21613
        if (this.billingWarehouseId != that.billingWarehouseId)
21614
          return false;
21615
      }
21616
 
19474 manish.sha 21617
      boolean this_present_isCompleteTxn = true;
21618
      boolean that_present_isCompleteTxn = true;
21619
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21620
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21621
          return false;
21622
        if (this.isCompleteTxn != that.isCompleteTxn)
21623
          return false;
21624
      }
21625
 
19421 manish.sha 21626
      return true;
21627
    }
21628
 
21629
    @Override
21630
    public int hashCode() {
21631
      return 0;
21632
    }
21633
 
21634
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21635
      if (!getClass().equals(other.getClass())) {
21636
        return getClass().getName().compareTo(other.getClass().getName());
21637
      }
21638
 
21639
      int lastComparison = 0;
21640
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21641
 
21642
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21643
      if (lastComparison != 0) {
21644
        return lastComparison;
21645
      }
21646
      if (isSetPincode()) {
21647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21648
        if (lastComparison != 0) {
21649
          return lastComparison;
21650
        }
21651
      }
21652
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21653
      if (lastComparison != 0) {
21654
        return lastComparison;
21655
      }
21656
      if (isSetTransactionAmount()) {
21657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21658
        if (lastComparison != 0) {
21659
          return lastComparison;
21660
        }
21661
      }
21662
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21663
      if (lastComparison != 0) {
21664
        return lastComparison;
21665
      }
21666
      if (isSetIsCod()) {
21667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21668
        if (lastComparison != 0) {
21669
          return lastComparison;
21670
        }
21671
      }
21672
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21673
      if (lastComparison != 0) {
21674
        return lastComparison;
21675
      }
21676
      if (isSetWeight()) {
21677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21678
        if (lastComparison != 0) {
21679
          return lastComparison;
21680
        }
21681
      }
21682
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21683
      if (lastComparison != 0) {
21684
        return lastComparison;
21685
      }
21686
      if (isSetBillingWarehouseId()) {
21687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21688
        if (lastComparison != 0) {
21689
          return lastComparison;
21690
        }
21691
      }
19474 manish.sha 21692
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21693
      if (lastComparison != 0) {
21694
        return lastComparison;
21695
      }
21696
      if (isSetIsCompleteTxn()) {
21697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21698
        if (lastComparison != 0) {
21699
          return lastComparison;
21700
        }
21701
      }
19421 manish.sha 21702
      return 0;
21703
    }
21704
 
21705
    public _Fields fieldForId(int fieldId) {
21706
      return _Fields.findByThriftId(fieldId);
21707
    }
21708
 
21709
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21710
      org.apache.thrift.protocol.TField field;
21711
      iprot.readStructBegin();
21712
      while (true)
21713
      {
21714
        field = iprot.readFieldBegin();
21715
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21716
          break;
21717
        }
21718
        switch (field.id) {
21719
          case 1: // PINCODE
21720
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21721
              this.pincode = iprot.readString();
21722
            } else { 
21723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21724
            }
21725
            break;
21726
          case 2: // TRANSACTION_AMOUNT
21727
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21728
              this.transactionAmount = iprot.readDouble();
21729
              setTransactionAmountIsSet(true);
21730
            } else { 
21731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21732
            }
21733
            break;
21734
          case 3: // IS_COD
21735
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21736
              this.isCod = iprot.readBool();
21737
              setIsCodIsSet(true);
21738
            } else { 
21739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21740
            }
21741
            break;
21742
          case 4: // WEIGHT
21743
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21744
              this.weight = iprot.readDouble();
21745
              setWeightIsSet(true);
21746
            } else { 
21747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21748
            }
21749
            break;
21750
          case 5: // BILLING_WAREHOUSE_ID
21751
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21752
              this.billingWarehouseId = iprot.readI64();
21753
              setBillingWarehouseIdIsSet(true);
21754
            } else { 
21755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21756
            }
21757
            break;
19474 manish.sha 21758
          case 6: // IS_COMPLETE_TXN
21759
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21760
              this.isCompleteTxn = iprot.readBool();
21761
              setIsCompleteTxnIsSet(true);
21762
            } else { 
21763
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21764
            }
21765
            break;
19421 manish.sha 21766
          default:
21767
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21768
        }
21769
        iprot.readFieldEnd();
21770
      }
21771
      iprot.readStructEnd();
21772
      validate();
21773
    }
21774
 
21775
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21776
      validate();
21777
 
21778
      oprot.writeStructBegin(STRUCT_DESC);
21779
      if (this.pincode != null) {
21780
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21781
        oprot.writeString(this.pincode);
21782
        oprot.writeFieldEnd();
21783
      }
21784
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21785
      oprot.writeDouble(this.transactionAmount);
21786
      oprot.writeFieldEnd();
21787
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21788
      oprot.writeBool(this.isCod);
21789
      oprot.writeFieldEnd();
21790
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21791
      oprot.writeDouble(this.weight);
21792
      oprot.writeFieldEnd();
21793
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21794
      oprot.writeI64(this.billingWarehouseId);
21795
      oprot.writeFieldEnd();
19474 manish.sha 21796
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21797
      oprot.writeBool(this.isCompleteTxn);
21798
      oprot.writeFieldEnd();
19421 manish.sha 21799
      oprot.writeFieldStop();
21800
      oprot.writeStructEnd();
21801
    }
21802
 
21803
    @Override
21804
    public String toString() {
21805
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21806
      boolean first = true;
21807
 
21808
      sb.append("pincode:");
21809
      if (this.pincode == null) {
21810
        sb.append("null");
21811
      } else {
21812
        sb.append(this.pincode);
21813
      }
21814
      first = false;
21815
      if (!first) sb.append(", ");
21816
      sb.append("transactionAmount:");
21817
      sb.append(this.transactionAmount);
21818
      first = false;
21819
      if (!first) sb.append(", ");
21820
      sb.append("isCod:");
21821
      sb.append(this.isCod);
21822
      first = false;
21823
      if (!first) sb.append(", ");
21824
      sb.append("weight:");
21825
      sb.append(this.weight);
21826
      first = false;
21827
      if (!first) sb.append(", ");
21828
      sb.append("billingWarehouseId:");
21829
      sb.append(this.billingWarehouseId);
21830
      first = false;
19474 manish.sha 21831
      if (!first) sb.append(", ");
21832
      sb.append("isCompleteTxn:");
21833
      sb.append(this.isCompleteTxn);
21834
      first = false;
19421 manish.sha 21835
      sb.append(")");
21836
      return sb.toString();
21837
    }
21838
 
21839
    public void validate() throws org.apache.thrift.TException {
21840
      // check for required fields
21841
    }
21842
 
21843
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21844
      try {
21845
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21846
      } catch (org.apache.thrift.TException te) {
21847
        throw new java.io.IOException(te);
21848
      }
21849
    }
21850
 
21851
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21852
      try {
21853
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21854
        __isset_bit_vector = new BitSet(1);
21855
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21856
      } catch (org.apache.thrift.TException te) {
21857
        throw new java.io.IOException(te);
21858
      }
21859
    }
21860
 
21861
  }
21862
 
21863
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21864
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21865
 
21866
    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);
21867
    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);
21868
 
21869
    private DeliveryEstimateAndCosting success; // required
21870
    private LogisticsServiceException se; // required
21871
 
21872
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21873
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21874
      SUCCESS((short)0, "success"),
21875
      SE((short)1, "se");
21876
 
21877
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21878
 
21879
      static {
21880
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21881
          byName.put(field.getFieldName(), field);
21882
        }
21883
      }
21884
 
21885
      /**
21886
       * Find the _Fields constant that matches fieldId, or null if its not found.
21887
       */
21888
      public static _Fields findByThriftId(int fieldId) {
21889
        switch(fieldId) {
21890
          case 0: // SUCCESS
21891
            return SUCCESS;
21892
          case 1: // SE
21893
            return SE;
21894
          default:
21895
            return null;
21896
        }
21897
      }
21898
 
21899
      /**
21900
       * Find the _Fields constant that matches fieldId, throwing an exception
21901
       * if it is not found.
21902
       */
21903
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21904
        _Fields fields = findByThriftId(fieldId);
21905
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21906
        return fields;
21907
      }
21908
 
21909
      /**
21910
       * Find the _Fields constant that matches name, or null if its not found.
21911
       */
21912
      public static _Fields findByName(String name) {
21913
        return byName.get(name);
21914
      }
21915
 
21916
      private final short _thriftId;
21917
      private final String _fieldName;
21918
 
21919
      _Fields(short thriftId, String fieldName) {
21920
        _thriftId = thriftId;
21921
        _fieldName = fieldName;
21922
      }
21923
 
21924
      public short getThriftFieldId() {
21925
        return _thriftId;
21926
      }
21927
 
21928
      public String getFieldName() {
21929
        return _fieldName;
21930
      }
21931
    }
21932
 
21933
    // isset id assignments
21934
 
21935
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21936
    static {
21937
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21938
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21939
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
21940
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
21944
    }
21945
 
21946
    public getCostingAndDeliveryEstimateForPincode_result() {
21947
    }
21948
 
21949
    public getCostingAndDeliveryEstimateForPincode_result(
21950
      DeliveryEstimateAndCosting success,
21951
      LogisticsServiceException se)
21952
    {
21953
      this();
21954
      this.success = success;
21955
      this.se = se;
21956
    }
21957
 
21958
    /**
21959
     * Performs a deep copy on <i>other</i>.
21960
     */
21961
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
21962
      if (other.isSetSuccess()) {
21963
        this.success = new DeliveryEstimateAndCosting(other.success);
21964
      }
21965
      if (other.isSetSe()) {
21966
        this.se = new LogisticsServiceException(other.se);
21967
      }
21968
    }
21969
 
21970
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
21971
      return new getCostingAndDeliveryEstimateForPincode_result(this);
21972
    }
21973
 
21974
    @Override
21975
    public void clear() {
21976
      this.success = null;
21977
      this.se = null;
21978
    }
21979
 
21980
    public DeliveryEstimateAndCosting getSuccess() {
21981
      return this.success;
21982
    }
21983
 
21984
    public void setSuccess(DeliveryEstimateAndCosting success) {
21985
      this.success = success;
21986
    }
21987
 
21988
    public void unsetSuccess() {
21989
      this.success = null;
21990
    }
21991
 
21992
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21993
    public boolean isSetSuccess() {
21994
      return this.success != null;
21995
    }
21996
 
21997
    public void setSuccessIsSet(boolean value) {
21998
      if (!value) {
21999
        this.success = null;
22000
      }
22001
    }
22002
 
22003
    public LogisticsServiceException getSe() {
22004
      return this.se;
22005
    }
22006
 
22007
    public void setSe(LogisticsServiceException se) {
22008
      this.se = se;
22009
    }
22010
 
22011
    public void unsetSe() {
22012
      this.se = null;
22013
    }
22014
 
22015
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22016
    public boolean isSetSe() {
22017
      return this.se != null;
22018
    }
22019
 
22020
    public void setSeIsSet(boolean value) {
22021
      if (!value) {
22022
        this.se = null;
22023
      }
22024
    }
22025
 
22026
    public void setFieldValue(_Fields field, Object value) {
22027
      switch (field) {
22028
      case SUCCESS:
22029
        if (value == null) {
22030
          unsetSuccess();
22031
        } else {
22032
          setSuccess((DeliveryEstimateAndCosting)value);
22033
        }
22034
        break;
22035
 
22036
      case SE:
22037
        if (value == null) {
22038
          unsetSe();
22039
        } else {
22040
          setSe((LogisticsServiceException)value);
22041
        }
22042
        break;
22043
 
22044
      }
22045
    }
22046
 
22047
    public Object getFieldValue(_Fields field) {
22048
      switch (field) {
22049
      case SUCCESS:
22050
        return getSuccess();
22051
 
22052
      case SE:
22053
        return getSe();
22054
 
22055
      }
22056
      throw new IllegalStateException();
22057
    }
22058
 
22059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22060
    public boolean isSet(_Fields field) {
22061
      if (field == null) {
22062
        throw new IllegalArgumentException();
22063
      }
22064
 
22065
      switch (field) {
22066
      case SUCCESS:
22067
        return isSetSuccess();
22068
      case SE:
22069
        return isSetSe();
22070
      }
22071
      throw new IllegalStateException();
22072
    }
22073
 
22074
    @Override
22075
    public boolean equals(Object that) {
22076
      if (that == null)
22077
        return false;
22078
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
22079
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
22080
      return false;
22081
    }
22082
 
22083
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
22084
      if (that == null)
22085
        return false;
22086
 
22087
      boolean this_present_success = true && this.isSetSuccess();
22088
      boolean that_present_success = true && that.isSetSuccess();
22089
      if (this_present_success || that_present_success) {
22090
        if (!(this_present_success && that_present_success))
22091
          return false;
22092
        if (!this.success.equals(that.success))
22093
          return false;
22094
      }
22095
 
22096
      boolean this_present_se = true && this.isSetSe();
22097
      boolean that_present_se = true && that.isSetSe();
22098
      if (this_present_se || that_present_se) {
22099
        if (!(this_present_se && that_present_se))
22100
          return false;
22101
        if (!this.se.equals(that.se))
22102
          return false;
22103
      }
22104
 
22105
      return true;
22106
    }
22107
 
22108
    @Override
22109
    public int hashCode() {
22110
      return 0;
22111
    }
22112
 
22113
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
22114
      if (!getClass().equals(other.getClass())) {
22115
        return getClass().getName().compareTo(other.getClass().getName());
22116
      }
22117
 
22118
      int lastComparison = 0;
22119
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
22120
 
22121
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22122
      if (lastComparison != 0) {
22123
        return lastComparison;
22124
      }
22125
      if (isSetSuccess()) {
22126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22127
        if (lastComparison != 0) {
22128
          return lastComparison;
22129
        }
22130
      }
22131
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22132
      if (lastComparison != 0) {
22133
        return lastComparison;
22134
      }
22135
      if (isSetSe()) {
22136
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22137
        if (lastComparison != 0) {
22138
          return lastComparison;
22139
        }
22140
      }
22141
      return 0;
22142
    }
22143
 
22144
    public _Fields fieldForId(int fieldId) {
22145
      return _Fields.findByThriftId(fieldId);
22146
    }
22147
 
22148
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22149
      org.apache.thrift.protocol.TField field;
22150
      iprot.readStructBegin();
22151
      while (true)
22152
      {
22153
        field = iprot.readFieldBegin();
22154
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22155
          break;
22156
        }
22157
        switch (field.id) {
22158
          case 0: // SUCCESS
22159
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22160
              this.success = new DeliveryEstimateAndCosting();
22161
              this.success.read(iprot);
22162
            } else { 
22163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22164
            }
22165
            break;
22166
          case 1: // SE
22167
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22168
              this.se = new LogisticsServiceException();
22169
              this.se.read(iprot);
22170
            } else { 
22171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22172
            }
22173
            break;
22174
          default:
22175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22176
        }
22177
        iprot.readFieldEnd();
22178
      }
22179
      iprot.readStructEnd();
22180
      validate();
22181
    }
22182
 
22183
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22184
      oprot.writeStructBegin(STRUCT_DESC);
22185
 
22186
      if (this.isSetSuccess()) {
22187
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22188
        this.success.write(oprot);
22189
        oprot.writeFieldEnd();
22190
      } else if (this.isSetSe()) {
22191
        oprot.writeFieldBegin(SE_FIELD_DESC);
22192
        this.se.write(oprot);
22193
        oprot.writeFieldEnd();
22194
      }
22195
      oprot.writeFieldStop();
22196
      oprot.writeStructEnd();
22197
    }
22198
 
22199
    @Override
22200
    public String toString() {
22201
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22202
      boolean first = true;
22203
 
22204
      sb.append("success:");
22205
      if (this.success == null) {
22206
        sb.append("null");
22207
      } else {
22208
        sb.append(this.success);
22209
      }
22210
      first = false;
22211
      if (!first) sb.append(", ");
22212
      sb.append("se:");
22213
      if (this.se == null) {
22214
        sb.append("null");
22215
      } else {
22216
        sb.append(this.se);
22217
      }
22218
      first = false;
22219
      sb.append(")");
22220
      return sb.toString();
22221
    }
22222
 
22223
    public void validate() throws org.apache.thrift.TException {
22224
      // check for required fields
22225
    }
22226
 
22227
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22228
      try {
22229
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22230
      } catch (org.apache.thrift.TException te) {
22231
        throw new java.io.IOException(te);
22232
      }
22233
    }
22234
 
22235
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22236
      try {
22237
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22238
      } catch (org.apache.thrift.TException te) {
22239
        throw new java.io.IOException(te);
22240
      }
22241
    }
22242
 
22243
  }
22244
 
20744 kshitij.so 22245
  public static class getBluedartAttributesForLogisticsTxnId_args implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_args, getBluedartAttributesForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
22246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_args");
22247
 
22248
    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);
22249
    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);
22250
 
22251
    private String logisticsTxnId; // required
22252
    private String name; // required
22253
 
22254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22256
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId"),
22257
      NAME((short)2, "name");
22258
 
22259
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22260
 
22261
      static {
22262
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22263
          byName.put(field.getFieldName(), field);
22264
        }
22265
      }
22266
 
22267
      /**
22268
       * Find the _Fields constant that matches fieldId, or null if its not found.
22269
       */
22270
      public static _Fields findByThriftId(int fieldId) {
22271
        switch(fieldId) {
22272
          case 1: // LOGISTICS_TXN_ID
22273
            return LOGISTICS_TXN_ID;
22274
          case 2: // NAME
22275
            return NAME;
22276
          default:
22277
            return null;
22278
        }
22279
      }
22280
 
22281
      /**
22282
       * Find the _Fields constant that matches fieldId, throwing an exception
22283
       * if it is not found.
22284
       */
22285
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22286
        _Fields fields = findByThriftId(fieldId);
22287
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22288
        return fields;
22289
      }
22290
 
22291
      /**
22292
       * Find the _Fields constant that matches name, or null if its not found.
22293
       */
22294
      public static _Fields findByName(String name) {
22295
        return byName.get(name);
22296
      }
22297
 
22298
      private final short _thriftId;
22299
      private final String _fieldName;
22300
 
22301
      _Fields(short thriftId, String fieldName) {
22302
        _thriftId = thriftId;
22303
        _fieldName = fieldName;
22304
      }
22305
 
22306
      public short getThriftFieldId() {
22307
        return _thriftId;
22308
      }
22309
 
22310
      public String getFieldName() {
22311
        return _fieldName;
22312
      }
22313
    }
22314
 
22315
    // isset id assignments
22316
 
22317
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22318
    static {
22319
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22320
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22321
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22322
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22324
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22325
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_args.class, metaDataMap);
22326
    }
22327
 
22328
    public getBluedartAttributesForLogisticsTxnId_args() {
22329
    }
22330
 
22331
    public getBluedartAttributesForLogisticsTxnId_args(
22332
      String logisticsTxnId,
22333
      String name)
22334
    {
22335
      this();
22336
      this.logisticsTxnId = logisticsTxnId;
22337
      this.name = name;
22338
    }
22339
 
22340
    /**
22341
     * Performs a deep copy on <i>other</i>.
22342
     */
22343
    public getBluedartAttributesForLogisticsTxnId_args(getBluedartAttributesForLogisticsTxnId_args other) {
22344
      if (other.isSetLogisticsTxnId()) {
22345
        this.logisticsTxnId = other.logisticsTxnId;
22346
      }
22347
      if (other.isSetName()) {
22348
        this.name = other.name;
22349
      }
22350
    }
22351
 
22352
    public getBluedartAttributesForLogisticsTxnId_args deepCopy() {
22353
      return new getBluedartAttributesForLogisticsTxnId_args(this);
22354
    }
22355
 
22356
    @Override
22357
    public void clear() {
22358
      this.logisticsTxnId = null;
22359
      this.name = null;
22360
    }
22361
 
22362
    public String getLogisticsTxnId() {
22363
      return this.logisticsTxnId;
22364
    }
22365
 
22366
    public void setLogisticsTxnId(String logisticsTxnId) {
22367
      this.logisticsTxnId = logisticsTxnId;
22368
    }
22369
 
22370
    public void unsetLogisticsTxnId() {
22371
      this.logisticsTxnId = null;
22372
    }
22373
 
22374
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
22375
    public boolean isSetLogisticsTxnId() {
22376
      return this.logisticsTxnId != null;
22377
    }
22378
 
22379
    public void setLogisticsTxnIdIsSet(boolean value) {
22380
      if (!value) {
22381
        this.logisticsTxnId = null;
22382
      }
22383
    }
22384
 
22385
    public String getName() {
22386
      return this.name;
22387
    }
22388
 
22389
    public void setName(String name) {
22390
      this.name = name;
22391
    }
22392
 
22393
    public void unsetName() {
22394
      this.name = null;
22395
    }
22396
 
22397
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
22398
    public boolean isSetName() {
22399
      return this.name != null;
22400
    }
22401
 
22402
    public void setNameIsSet(boolean value) {
22403
      if (!value) {
22404
        this.name = null;
22405
      }
22406
    }
22407
 
22408
    public void setFieldValue(_Fields field, Object value) {
22409
      switch (field) {
22410
      case LOGISTICS_TXN_ID:
22411
        if (value == null) {
22412
          unsetLogisticsTxnId();
22413
        } else {
22414
          setLogisticsTxnId((String)value);
22415
        }
22416
        break;
22417
 
22418
      case NAME:
22419
        if (value == null) {
22420
          unsetName();
22421
        } else {
22422
          setName((String)value);
22423
        }
22424
        break;
22425
 
22426
      }
22427
    }
22428
 
22429
    public Object getFieldValue(_Fields field) {
22430
      switch (field) {
22431
      case LOGISTICS_TXN_ID:
22432
        return getLogisticsTxnId();
22433
 
22434
      case NAME:
22435
        return getName();
22436
 
22437
      }
22438
      throw new IllegalStateException();
22439
    }
22440
 
22441
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22442
    public boolean isSet(_Fields field) {
22443
      if (field == null) {
22444
        throw new IllegalArgumentException();
22445
      }
22446
 
22447
      switch (field) {
22448
      case LOGISTICS_TXN_ID:
22449
        return isSetLogisticsTxnId();
22450
      case NAME:
22451
        return isSetName();
22452
      }
22453
      throw new IllegalStateException();
22454
    }
22455
 
22456
    @Override
22457
    public boolean equals(Object that) {
22458
      if (that == null)
22459
        return false;
22460
      if (that instanceof getBluedartAttributesForLogisticsTxnId_args)
22461
        return this.equals((getBluedartAttributesForLogisticsTxnId_args)that);
22462
      return false;
22463
    }
22464
 
22465
    public boolean equals(getBluedartAttributesForLogisticsTxnId_args that) {
22466
      if (that == null)
22467
        return false;
22468
 
22469
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
22470
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
22471
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
22472
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
22473
          return false;
22474
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
22475
          return false;
22476
      }
22477
 
22478
      boolean this_present_name = true && this.isSetName();
22479
      boolean that_present_name = true && that.isSetName();
22480
      if (this_present_name || that_present_name) {
22481
        if (!(this_present_name && that_present_name))
22482
          return false;
22483
        if (!this.name.equals(that.name))
22484
          return false;
22485
      }
22486
 
22487
      return true;
22488
    }
22489
 
22490
    @Override
22491
    public int hashCode() {
22492
      return 0;
22493
    }
22494
 
22495
    public int compareTo(getBluedartAttributesForLogisticsTxnId_args other) {
22496
      if (!getClass().equals(other.getClass())) {
22497
        return getClass().getName().compareTo(other.getClass().getName());
22498
      }
22499
 
22500
      int lastComparison = 0;
22501
      getBluedartAttributesForLogisticsTxnId_args typedOther = (getBluedartAttributesForLogisticsTxnId_args)other;
22502
 
22503
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
22504
      if (lastComparison != 0) {
22505
        return lastComparison;
22506
      }
22507
      if (isSetLogisticsTxnId()) {
22508
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
22509
        if (lastComparison != 0) {
22510
          return lastComparison;
22511
        }
22512
      }
22513
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
22514
      if (lastComparison != 0) {
22515
        return lastComparison;
22516
      }
22517
      if (isSetName()) {
22518
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
22519
        if (lastComparison != 0) {
22520
          return lastComparison;
22521
        }
22522
      }
22523
      return 0;
22524
    }
22525
 
22526
    public _Fields fieldForId(int fieldId) {
22527
      return _Fields.findByThriftId(fieldId);
22528
    }
22529
 
22530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22531
      org.apache.thrift.protocol.TField field;
22532
      iprot.readStructBegin();
22533
      while (true)
22534
      {
22535
        field = iprot.readFieldBegin();
22536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22537
          break;
22538
        }
22539
        switch (field.id) {
22540
          case 1: // LOGISTICS_TXN_ID
22541
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22542
              this.logisticsTxnId = iprot.readString();
22543
            } else { 
22544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22545
            }
22546
            break;
22547
          case 2: // NAME
22548
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22549
              this.name = iprot.readString();
22550
            } else { 
22551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22552
            }
22553
            break;
22554
          default:
22555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22556
        }
22557
        iprot.readFieldEnd();
22558
      }
22559
      iprot.readStructEnd();
22560
      validate();
22561
    }
22562
 
22563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22564
      validate();
22565
 
22566
      oprot.writeStructBegin(STRUCT_DESC);
22567
      if (this.logisticsTxnId != null) {
22568
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
22569
        oprot.writeString(this.logisticsTxnId);
22570
        oprot.writeFieldEnd();
22571
      }
22572
      if (this.name != null) {
22573
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22574
        oprot.writeString(this.name);
22575
        oprot.writeFieldEnd();
22576
      }
22577
      oprot.writeFieldStop();
22578
      oprot.writeStructEnd();
22579
    }
22580
 
22581
    @Override
22582
    public String toString() {
22583
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_args(");
22584
      boolean first = true;
22585
 
22586
      sb.append("logisticsTxnId:");
22587
      if (this.logisticsTxnId == null) {
22588
        sb.append("null");
22589
      } else {
22590
        sb.append(this.logisticsTxnId);
22591
      }
22592
      first = false;
22593
      if (!first) sb.append(", ");
22594
      sb.append("name:");
22595
      if (this.name == null) {
22596
        sb.append("null");
22597
      } else {
22598
        sb.append(this.name);
22599
      }
22600
      first = false;
22601
      sb.append(")");
22602
      return sb.toString();
22603
    }
22604
 
22605
    public void validate() throws org.apache.thrift.TException {
22606
      // check for required fields
22607
    }
22608
 
22609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22610
      try {
22611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22612
      } catch (org.apache.thrift.TException te) {
22613
        throw new java.io.IOException(te);
22614
      }
22615
    }
22616
 
22617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22618
      try {
22619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22620
      } catch (org.apache.thrift.TException te) {
22621
        throw new java.io.IOException(te);
22622
      }
22623
    }
22624
 
22625
  }
22626
 
22627
  public static class getBluedartAttributesForLogisticsTxnId_result implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_result, getBluedartAttributesForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
22628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_result");
22629
 
22630
    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);
22631
    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);
22632
 
22633
    private BluedartAttributes success; // required
22634
    private LogisticsServiceException se; // required
22635
 
22636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22638
      SUCCESS((short)0, "success"),
22639
      SE((short)1, "se");
22640
 
22641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22642
 
22643
      static {
22644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22645
          byName.put(field.getFieldName(), field);
22646
        }
22647
      }
22648
 
22649
      /**
22650
       * Find the _Fields constant that matches fieldId, or null if its not found.
22651
       */
22652
      public static _Fields findByThriftId(int fieldId) {
22653
        switch(fieldId) {
22654
          case 0: // SUCCESS
22655
            return SUCCESS;
22656
          case 1: // SE
22657
            return SE;
22658
          default:
22659
            return null;
22660
        }
22661
      }
22662
 
22663
      /**
22664
       * Find the _Fields constant that matches fieldId, throwing an exception
22665
       * if it is not found.
22666
       */
22667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22668
        _Fields fields = findByThriftId(fieldId);
22669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22670
        return fields;
22671
      }
22672
 
22673
      /**
22674
       * Find the _Fields constant that matches name, or null if its not found.
22675
       */
22676
      public static _Fields findByName(String name) {
22677
        return byName.get(name);
22678
      }
22679
 
22680
      private final short _thriftId;
22681
      private final String _fieldName;
22682
 
22683
      _Fields(short thriftId, String fieldName) {
22684
        _thriftId = thriftId;
22685
        _fieldName = fieldName;
22686
      }
22687
 
22688
      public short getThriftFieldId() {
22689
        return _thriftId;
22690
      }
22691
 
22692
      public String getFieldName() {
22693
        return _fieldName;
22694
      }
22695
    }
22696
 
22697
    // isset id assignments
22698
 
22699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22700
    static {
22701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22702
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22703
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BluedartAttributes.class)));
22704
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22706
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22707
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_result.class, metaDataMap);
22708
    }
22709
 
22710
    public getBluedartAttributesForLogisticsTxnId_result() {
22711
    }
22712
 
22713
    public getBluedartAttributesForLogisticsTxnId_result(
22714
      BluedartAttributes success,
22715
      LogisticsServiceException se)
22716
    {
22717
      this();
22718
      this.success = success;
22719
      this.se = se;
22720
    }
22721
 
22722
    /**
22723
     * Performs a deep copy on <i>other</i>.
22724
     */
22725
    public getBluedartAttributesForLogisticsTxnId_result(getBluedartAttributesForLogisticsTxnId_result other) {
22726
      if (other.isSetSuccess()) {
22727
        this.success = new BluedartAttributes(other.success);
22728
      }
22729
      if (other.isSetSe()) {
22730
        this.se = new LogisticsServiceException(other.se);
22731
      }
22732
    }
22733
 
22734
    public getBluedartAttributesForLogisticsTxnId_result deepCopy() {
22735
      return new getBluedartAttributesForLogisticsTxnId_result(this);
22736
    }
22737
 
22738
    @Override
22739
    public void clear() {
22740
      this.success = null;
22741
      this.se = null;
22742
    }
22743
 
22744
    public BluedartAttributes getSuccess() {
22745
      return this.success;
22746
    }
22747
 
22748
    public void setSuccess(BluedartAttributes success) {
22749
      this.success = success;
22750
    }
22751
 
22752
    public void unsetSuccess() {
22753
      this.success = null;
22754
    }
22755
 
22756
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22757
    public boolean isSetSuccess() {
22758
      return this.success != null;
22759
    }
22760
 
22761
    public void setSuccessIsSet(boolean value) {
22762
      if (!value) {
22763
        this.success = null;
22764
      }
22765
    }
22766
 
22767
    public LogisticsServiceException getSe() {
22768
      return this.se;
22769
    }
22770
 
22771
    public void setSe(LogisticsServiceException se) {
22772
      this.se = se;
22773
    }
22774
 
22775
    public void unsetSe() {
22776
      this.se = null;
22777
    }
22778
 
22779
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22780
    public boolean isSetSe() {
22781
      return this.se != null;
22782
    }
22783
 
22784
    public void setSeIsSet(boolean value) {
22785
      if (!value) {
22786
        this.se = null;
22787
      }
22788
    }
22789
 
22790
    public void setFieldValue(_Fields field, Object value) {
22791
      switch (field) {
22792
      case SUCCESS:
22793
        if (value == null) {
22794
          unsetSuccess();
22795
        } else {
22796
          setSuccess((BluedartAttributes)value);
22797
        }
22798
        break;
22799
 
22800
      case SE:
22801
        if (value == null) {
22802
          unsetSe();
22803
        } else {
22804
          setSe((LogisticsServiceException)value);
22805
        }
22806
        break;
22807
 
22808
      }
22809
    }
22810
 
22811
    public Object getFieldValue(_Fields field) {
22812
      switch (field) {
22813
      case SUCCESS:
22814
        return getSuccess();
22815
 
22816
      case SE:
22817
        return getSe();
22818
 
22819
      }
22820
      throw new IllegalStateException();
22821
    }
22822
 
22823
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22824
    public boolean isSet(_Fields field) {
22825
      if (field == null) {
22826
        throw new IllegalArgumentException();
22827
      }
22828
 
22829
      switch (field) {
22830
      case SUCCESS:
22831
        return isSetSuccess();
22832
      case SE:
22833
        return isSetSe();
22834
      }
22835
      throw new IllegalStateException();
22836
    }
22837
 
22838
    @Override
22839
    public boolean equals(Object that) {
22840
      if (that == null)
22841
        return false;
22842
      if (that instanceof getBluedartAttributesForLogisticsTxnId_result)
22843
        return this.equals((getBluedartAttributesForLogisticsTxnId_result)that);
22844
      return false;
22845
    }
22846
 
22847
    public boolean equals(getBluedartAttributesForLogisticsTxnId_result that) {
22848
      if (that == null)
22849
        return false;
22850
 
22851
      boolean this_present_success = true && this.isSetSuccess();
22852
      boolean that_present_success = true && that.isSetSuccess();
22853
      if (this_present_success || that_present_success) {
22854
        if (!(this_present_success && that_present_success))
22855
          return false;
22856
        if (!this.success.equals(that.success))
22857
          return false;
22858
      }
22859
 
22860
      boolean this_present_se = true && this.isSetSe();
22861
      boolean that_present_se = true && that.isSetSe();
22862
      if (this_present_se || that_present_se) {
22863
        if (!(this_present_se && that_present_se))
22864
          return false;
22865
        if (!this.se.equals(that.se))
22866
          return false;
22867
      }
22868
 
22869
      return true;
22870
    }
22871
 
22872
    @Override
22873
    public int hashCode() {
22874
      return 0;
22875
    }
22876
 
22877
    public int compareTo(getBluedartAttributesForLogisticsTxnId_result other) {
22878
      if (!getClass().equals(other.getClass())) {
22879
        return getClass().getName().compareTo(other.getClass().getName());
22880
      }
22881
 
22882
      int lastComparison = 0;
22883
      getBluedartAttributesForLogisticsTxnId_result typedOther = (getBluedartAttributesForLogisticsTxnId_result)other;
22884
 
22885
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22886
      if (lastComparison != 0) {
22887
        return lastComparison;
22888
      }
22889
      if (isSetSuccess()) {
22890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22891
        if (lastComparison != 0) {
22892
          return lastComparison;
22893
        }
22894
      }
22895
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22896
      if (lastComparison != 0) {
22897
        return lastComparison;
22898
      }
22899
      if (isSetSe()) {
22900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22901
        if (lastComparison != 0) {
22902
          return lastComparison;
22903
        }
22904
      }
22905
      return 0;
22906
    }
22907
 
22908
    public _Fields fieldForId(int fieldId) {
22909
      return _Fields.findByThriftId(fieldId);
22910
    }
22911
 
22912
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22913
      org.apache.thrift.protocol.TField field;
22914
      iprot.readStructBegin();
22915
      while (true)
22916
      {
22917
        field = iprot.readFieldBegin();
22918
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22919
          break;
22920
        }
22921
        switch (field.id) {
22922
          case 0: // SUCCESS
22923
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22924
              this.success = new BluedartAttributes();
22925
              this.success.read(iprot);
22926
            } else { 
22927
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22928
            }
22929
            break;
22930
          case 1: // SE
22931
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22932
              this.se = new LogisticsServiceException();
22933
              this.se.read(iprot);
22934
            } else { 
22935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22936
            }
22937
            break;
22938
          default:
22939
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22940
        }
22941
        iprot.readFieldEnd();
22942
      }
22943
      iprot.readStructEnd();
22944
      validate();
22945
    }
22946
 
22947
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22948
      oprot.writeStructBegin(STRUCT_DESC);
22949
 
22950
      if (this.isSetSuccess()) {
22951
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22952
        this.success.write(oprot);
22953
        oprot.writeFieldEnd();
22954
      } else if (this.isSetSe()) {
22955
        oprot.writeFieldBegin(SE_FIELD_DESC);
22956
        this.se.write(oprot);
22957
        oprot.writeFieldEnd();
22958
      }
22959
      oprot.writeFieldStop();
22960
      oprot.writeStructEnd();
22961
    }
22962
 
22963
    @Override
22964
    public String toString() {
22965
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_result(");
22966
      boolean first = true;
22967
 
22968
      sb.append("success:");
22969
      if (this.success == null) {
22970
        sb.append("null");
22971
      } else {
22972
        sb.append(this.success);
22973
      }
22974
      first = false;
22975
      if (!first) sb.append(", ");
22976
      sb.append("se:");
22977
      if (this.se == null) {
22978
        sb.append("null");
22979
      } else {
22980
        sb.append(this.se);
22981
      }
22982
      first = false;
22983
      sb.append(")");
22984
      return sb.toString();
22985
    }
22986
 
22987
    public void validate() throws org.apache.thrift.TException {
22988
      // check for required fields
22989
    }
22990
 
22991
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22992
      try {
22993
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22994
      } catch (org.apache.thrift.TException te) {
22995
        throw new java.io.IOException(te);
22996
      }
22997
    }
22998
 
22999
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23000
      try {
23001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23002
      } catch (org.apache.thrift.TException te) {
23003
        throw new java.io.IOException(te);
23004
      }
23005
    }
23006
 
23007
  }
23008
 
412 ashish 23009
}