Subversion Repositories SmartDukaan

Rev

Rev 23123 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
412 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
412 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
412 ashish 26
 
648 chandransh 27
    /**
668 chandransh 28
     * Returns a provider for a given provider ID. Throws an exception if none found.
29
     * 
30
     * @param providerId
31
     */
3430 rajveer 32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
668 chandransh 33
 
34
    /**
674 chandransh 35
     * Returns a list containing all the providers.
36
     */
3430 rajveer 37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
674 chandransh 38
 
39
    /**
648 chandransh 40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
43
     * 
44
     * @param itemId
45
     * @param destination_pin
4630 mandeep.dh 46
     * @param type
648 chandransh 47
     */
4630 mandeep.dh 48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
483 rajveer 49
 
7256 rajveer 50
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
51
 
648 chandransh 52
    /**
53
     * Same as above excpet that an airway bill number is also allocated and returned.
54
     * 
55
     * @param destination_pincode
56
     * @param item_id
3044 chandransh 57
     * @param type
5766 rajveer 58
     * @param pickUp
648 chandransh 59
     */
5766 rajveer 60
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 61
 
648 chandransh 62
    /**
63
     * Returns an unused AWB number for the given provider.
64
     * 
65
     * @param providerId
20724 kshitij.so 66
     * @param logisticsTransactionId
648 chandransh 67
     */
20724 kshitij.so 68
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 69
 
648 chandransh 70
    /**
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
72
     * 
6643 rajveer 73
     * @param awbNumber
648 chandransh 74
     * @param providerId
75
     */
6643 rajveer 76
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 77
 
730 chandransh 78
    /**
6643 rajveer 79
     * Store the update for the given AWB number and provider id.
80
     * 
81
     * @param update
82
     */
83
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
84
 
85
    /**
730 chandransh 86
     * Returns the short three letter code of a pincode for the given provider.
87
     *    Raises an exception if the pin code is not serviced by the given provider.
88
     * 
89
     * @param providerId
90
     * @param pinCode
91
     */
3430 rajveer 92
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 93
 
1139 chandransh 94
    /**
3103 chandransh 95
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 96
     * 
97
     * @param providerId
3103 chandransh 98
     * @param type
1139 chandransh 99
     */
3430 rajveer 100
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 101
 
1730 ankur.sing 102
    /**
103
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
104
     * fromDate should be passed as milliseconds corresponding to the start of the day.
105
     * If fromDate is passed as -1, fromDate is not considered for filtering
106
     * If toDate is passed as -1, toDate is not considered for filtering
107
     * 
108
     * @param fromDate
109
     * @param toDate
110
     */
3430 rajveer 111
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 112
 
4934 amit.gupta 113
    /**
114
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
115
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
116
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
117
     * 
118
     * @param catalogItemId
119
     * @param destination_pin
120
     * @param type
121
     */
9840 amit.gupta 122
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
4934 amit.gupta 123
 
5527 anupam.sin 124
    /**
125
     * Returns the id for a given pickUpType
126
     * 
127
     * @param pickUp
128
     */
129
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
130
 
5553 rajveer 131
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
132
 
133
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
134
 
5719 rajveer 135
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
136
 
6524 rajveer 137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 138
 
6524 rajveer 139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 140
 
13146 manish.sha 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException;
7567 rajveer 142
 
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
 
23218 amit.gupta 165
    public boolean pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException;
166
 
412 ashish 167
  }
168
 
3430 rajveer 169
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
170
 
171
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
174
 
4630 mandeep.dh 175
    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 176
 
7256 rajveer 177
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
178
 
5766 rajveer 179
    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 180
 
20724 kshitij.so 181
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 182
 
6643 rajveer 183
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 184
 
6643 rajveer 185
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
186
 
3430 rajveer 187
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
192
 
4934 amit.gupta 193
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
194
 
5527 anupam.sin 195
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
196
 
5553 rajveer 197
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
200
 
5719 rajveer 201
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
202
 
6524 rajveer 203
    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 204
 
6524 rajveer 205
    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 206
 
13146 manish.sha 207
    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 208
 
23123 amit.gupta 209
    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 210
 
7888 rajveer 211
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
212
 
12895 manish.sha 213
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
214
 
13146 manish.sha 215
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
218
 
19413 amit.gupta 219
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
220
 
19474 manish.sha 221
    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 222
 
20744 kshitij.so 223
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
224
 
23218 amit.gupta 225
    public void pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.pushCourierDetailsForEcomExpress_call> resultHandler) throws org.apache.thrift.TException;
226
 
3430 rajveer 227
  }
228
 
3374 rajveer 229
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 230
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
231
      public Factory() {}
232
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
233
        return new Client(prot);
234
      }
235
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
236
        return new Client(iprot, oprot);
237
      }
238
    }
239
 
240
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 241
    {
3430 rajveer 242
      super(prot, prot);
412 ashish 243
    }
244
 
3430 rajveer 245
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 246
      super(iprot, oprot);
412 ashish 247
    }
248
 
3430 rajveer 249
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 250
    {
251
      send_getProvider(providerId);
252
      return recv_getProvider();
253
    }
254
 
3430 rajveer 255
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 256
    {
257
      getProvider_args args = new getProvider_args();
3430 rajveer 258
      args.setProviderId(providerId);
259
      sendBase("getProvider", args);
668 chandransh 260
    }
261
 
3430 rajveer 262
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 263
    {
264
      getProvider_result result = new getProvider_result();
3430 rajveer 265
      receiveBase(result, "getProvider");
668 chandransh 266
      if (result.isSetSuccess()) {
267
        return result.success;
268
      }
269
      if (result.lse != null) {
270
        throw result.lse;
271
      }
3430 rajveer 272
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 273
    }
274
 
3430 rajveer 275
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 276
    {
277
      send_getAllProviders();
278
      return recv_getAllProviders();
279
    }
280
 
3430 rajveer 281
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 282
    {
283
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 284
      sendBase("getAllProviders", args);
674 chandransh 285
    }
286
 
3430 rajveer 287
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 288
    {
289
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 290
      receiveBase(result, "getAllProviders");
674 chandransh 291
      if (result.isSetSuccess()) {
292
        return result.success;
293
      }
294
      if (result.lse != null) {
295
        throw result.lse;
296
      }
3430 rajveer 297
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 298
    }
299
 
4630 mandeep.dh 300
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 301
    {
4630 mandeep.dh 302
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 303
      return recv_getLogisticsEstimation();
304
    }
305
 
4630 mandeep.dh 306
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 307
    {
308
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 309
      args.setItemId(itemId);
310
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 311
      args.setType(type);
3430 rajveer 312
      sendBase("getLogisticsEstimation", args);
471 rajveer 313
    }
314
 
3430 rajveer 315
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 316
    {
317
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 318
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 319
      if (result.isSetSuccess()) {
320
        return result.success;
321
      }
322
      if (result.se != null) {
323
        throw result.se;
324
      }
3430 rajveer 325
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 326
    }
327
 
7256 rajveer 328
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
329
    {
330
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
331
      return recv_getLogisticsEstimationForStore();
332
    }
333
 
334
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
335
    {
336
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
337
      args.setItemId(itemId);
338
      args.setDestination_pin(destination_pin);
339
      args.setType(type);
340
      sendBase("getLogisticsEstimationForStore", args);
341
    }
342
 
343
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
344
    {
345
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
346
      receiveBase(result, "getLogisticsEstimationForStore");
347
      if (result.isSetSuccess()) {
348
        return result.success;
349
      }
350
      if (result.se != null) {
351
        throw result.se;
352
      }
353
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
354
    }
355
 
5766 rajveer 356
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 357
    {
5766 rajveer 358
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 359
      return recv_getLogisticsInfo();
471 rajveer 360
    }
361
 
5766 rajveer 362
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 363
    {
648 chandransh 364
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 365
      args.setDestination_pincode(destination_pincode);
366
      args.setItem_id(item_id);
367
      args.setType(type);
5766 rajveer 368
      args.setPickUp(pickUp);
3430 rajveer 369
      sendBase("getLogisticsInfo", args);
471 rajveer 370
    }
371
 
3430 rajveer 372
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 373
    {
648 chandransh 374
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 375
      receiveBase(result, "getLogisticsInfo");
648 chandransh 376
      if (result.isSetSuccess()) {
377
        return result.success;
477 rajveer 378
      }
648 chandransh 379
      if (result.se != null) {
380
        throw result.se;
412 ashish 381
      }
3430 rajveer 382
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 383
    }
384
 
20724 kshitij.so 385
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 386
    {
20724 kshitij.so 387
      send_getEmptyAWB(providerId, logisticsTransactionId);
412 ashish 388
      return recv_getEmptyAWB();
389
    }
390
 
20724 kshitij.so 391
    public void send_getEmptyAWB(long providerId, String logisticsTransactionId) throws org.apache.thrift.TException
412 ashish 392
    {
393
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 394
      args.setProviderId(providerId);
20724 kshitij.so 395
      args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 396
      sendBase("getEmptyAWB", args);
412 ashish 397
    }
398
 
3430 rajveer 399
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 400
    {
401
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 402
      receiveBase(result, "getEmptyAWB");
412 ashish 403
      if (result.isSetSuccess()) {
404
        return result.success;
405
      }
648 chandransh 406
      if (result.se != null) {
407
        throw result.se;
408
      }
3430 rajveer 409
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 410
    }
411
 
6643 rajveer 412
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 413
    {
6643 rajveer 414
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 415
      return recv_getShipmentInfo();
416
    }
417
 
6643 rajveer 418
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 419
    {
420
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 421
      args.setAwbNumber(awbNumber);
3430 rajveer 422
      args.setProviderId(providerId);
423
      sendBase("getShipmentInfo", args);
412 ashish 424
    }
425
 
3430 rajveer 426
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 427
    {
428
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 429
      receiveBase(result, "getShipmentInfo");
412 ashish 430
      if (result.isSetSuccess()) {
431
        return result.success;
432
      }
648 chandransh 433
      if (result.se != null) {
434
        throw result.se;
435
      }
3430 rajveer 436
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 437
    }
438
 
6643 rajveer 439
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
440
    {
441
      send_storeShipmentInfo(update);
442
      recv_storeShipmentInfo();
443
    }
444
 
445
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
446
    {
447
      storeShipmentInfo_args args = new storeShipmentInfo_args();
448
      args.setUpdate(update);
449
      sendBase("storeShipmentInfo", args);
450
    }
451
 
452
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
453
    {
454
      storeShipmentInfo_result result = new storeShipmentInfo_result();
455
      receiveBase(result, "storeShipmentInfo");
456
      if (result.se != null) {
457
        throw result.se;
458
      }
459
      return;
460
    }
461
 
3430 rajveer 462
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 463
    {
464
      send_getDestinationCode(providerId, pinCode);
465
      return recv_getDestinationCode();
466
    }
467
 
3430 rajveer 468
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 469
    {
470
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 471
      args.setProviderId(providerId);
472
      args.setPinCode(pinCode);
473
      sendBase("getDestinationCode", args);
730 chandransh 474
    }
475
 
3430 rajveer 476
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 477
    {
478
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 479
      receiveBase(result, "getDestinationCode");
730 chandransh 480
      if (result.isSetSuccess()) {
481
        return result.success;
482
      }
483
      if (result.se != null) {
484
        throw result.se;
485
      }
3430 rajveer 486
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 487
    }
488
 
3430 rajveer 489
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 490
    {
3103 chandransh 491
      send_getFreeAwbCount(providerId, type);
1139 chandransh 492
      return recv_getFreeAwbCount();
493
    }
494
 
3430 rajveer 495
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 496
    {
497
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 498
      args.setProviderId(providerId);
499
      args.setType(type);
500
      sendBase("getFreeAwbCount", args);
1139 chandransh 501
    }
502
 
3430 rajveer 503
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 504
    {
505
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 506
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 507
      if (result.isSetSuccess()) {
508
        return result.success;
509
      }
3430 rajveer 510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 511
    }
512
 
3430 rajveer 513
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 514
    {
515
      send_getHolidays(fromDate, toDate);
516
      return recv_getHolidays();
517
    }
518
 
3430 rajveer 519
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 520
    {
521
      getHolidays_args args = new getHolidays_args();
3430 rajveer 522
      args.setFromDate(fromDate);
523
      args.setToDate(toDate);
524
      sendBase("getHolidays", args);
1730 ankur.sing 525
    }
526
 
3430 rajveer 527
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 528
    {
529
      getHolidays_result result = new getHolidays_result();
3430 rajveer 530
      receiveBase(result, "getHolidays");
1730 ankur.sing 531
      if (result.isSetSuccess()) {
532
        return result.success;
533
      }
3430 rajveer 534
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 535
    }
536
 
9840 amit.gupta 537
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 538
    {
539
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
540
      return recv_getEntityLogisticsEstimation();
541
    }
542
 
543
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
544
    {
545
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
546
      args.setCatalogItemId(catalogItemId);
547
      args.setDestination_pin(destination_pin);
548
      args.setType(type);
549
      sendBase("getEntityLogisticsEstimation", args);
550
    }
551
 
9840 amit.gupta 552
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 553
    {
554
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
555
      receiveBase(result, "getEntityLogisticsEstimation");
556
      if (result.isSetSuccess()) {
557
        return result.success;
558
      }
559
      if (result.se != null) {
560
        throw result.se;
561
      }
562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
563
    }
564
 
5527 anupam.sin 565
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
566
    {
567
      send_getProviderForPickupType(pickUp);
568
      return recv_getProviderForPickupType();
569
    }
570
 
571
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
572
    {
573
      getProviderForPickupType_args args = new getProviderForPickupType_args();
574
      args.setPickUp(pickUp);
575
      sendBase("getProviderForPickupType", args);
576
    }
577
 
578
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
579
    {
580
      getProviderForPickupType_result result = new getProviderForPickupType_result();
581
      receiveBase(result, "getProviderForPickupType");
582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
586
    }
587
 
5553 rajveer 588
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
589
    {
590
      send_getAllPickupStores();
591
      return recv_getAllPickupStores();
592
    }
593
 
594
    public void send_getAllPickupStores() throws org.apache.thrift.TException
595
    {
596
      getAllPickupStores_args args = new getAllPickupStores_args();
597
      sendBase("getAllPickupStores", args);
598
    }
599
 
600
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
601
    {
602
      getAllPickupStores_result result = new getAllPickupStores_result();
603
      receiveBase(result, "getAllPickupStores");
604
      if (result.isSetSuccess()) {
605
        return result.success;
606
      }
607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
608
    }
609
 
610
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
611
    {
612
      send_getPickupStore(storeId);
613
      return recv_getPickupStore();
614
    }
615
 
616
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
617
    {
618
      getPickupStore_args args = new getPickupStore_args();
619
      args.setStoreId(storeId);
620
      sendBase("getPickupStore", args);
621
    }
622
 
623
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
624
    {
625
      getPickupStore_result result = new getPickupStore_result();
626
      receiveBase(result, "getPickupStore");
627
      if (result.isSetSuccess()) {
628
        return result.success;
629
      }
630
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
631
    }
632
 
5719 rajveer 633
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
634
    {
635
      send_getPickupStoreByHotspotId(hotspotId);
636
      return recv_getPickupStoreByHotspotId();
637
    }
638
 
639
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
640
    {
641
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
642
      args.setHotspotId(hotspotId);
643
      sendBase("getPickupStoreByHotspotId", args);
644
    }
645
 
646
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
647
    {
648
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
649
      receiveBase(result, "getPickupStoreByHotspotId");
650
      if (result.isSetSuccess()) {
651
        return result.success;
652
      }
653
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
654
    }
655
 
6524 rajveer 656
    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 657
    {
6524 rajveer 658
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 659
      recv_addPincode();
660
    }
661
 
6524 rajveer 662
    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 663
    {
664
      addPincode_args args = new addPincode_args();
665
      args.setProviderId(providerId);
666
      args.setPincode(pincode);
667
      args.setDestCode(destCode);
668
      args.setExp(exp);
669
      args.setCod(cod);
670
      args.setStationType(stationType);
6524 rajveer 671
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 672
      sendBase("addPincode", args);
673
    }
674
 
675
    public void recv_addPincode() throws org.apache.thrift.TException
676
    {
677
      addPincode_result result = new addPincode_result();
678
      receiveBase(result, "addPincode");
679
      return;
680
    }
681
 
6524 rajveer 682
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 683
    {
6524 rajveer 684
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 685
      recv_updatePincode();
686
    }
687
 
6524 rajveer 688
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 689
    {
690
      updatePincode_args args = new updatePincode_args();
691
      args.setProviderId(providerId);
692
      args.setPincode(pincode);
693
      args.setExp(exp);
694
      args.setCod(cod);
6524 rajveer 695
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 696
      sendBase("updatePincode", args);
697
    }
698
 
699
    public void recv_updatePincode() throws org.apache.thrift.TException
700
    {
701
      updatePincode_result result = new updatePincode_result();
702
      receiveBase(result, "updatePincode");
703
      return;
704
    }
705
 
13146 manish.sha 706
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 707
    {
13146 manish.sha 708
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 709
      return recv_addNewAwbs();
710
    }
711
 
13146 manish.sha 712
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 713
    {
714
      addNewAwbs_args args = new addNewAwbs_args();
715
      args.setProviderId(providerId);
716
      args.setCod(cod);
717
      args.setAwbs(awbs);
13146 manish.sha 718
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 719
      sendBase("addNewAwbs", args);
720
    }
721
 
722
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
723
    {
724
      addNewAwbs_result result = new addNewAwbs_result();
725
      receiveBase(result, "addNewAwbs");
726
      if (result.isSetSuccess()) {
727
        return result.success;
728
      }
729
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
730
    }
731
 
23123 amit.gupta 732
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException
7737 manish.sha 733
    {
23123 amit.gupta 734
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate, provider);
7788 manish.sha 735
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 736
    }
737
 
23123 amit.gupta 738
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException
7737 manish.sha 739
    {
7788 manish.sha 740
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
741
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
742
      args.setRunCompleteUpdate(runCompleteUpdate);
23123 amit.gupta 743
      args.setProvider(provider);
7788 manish.sha 744
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 745
    }
746
 
7788 manish.sha 747
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 748
    {
7788 manish.sha 749
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
750
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 751
      return;
752
    }
753
 
7888 rajveer 754
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
755
    {
756
      send_adjustDeliveryDays(startDate, days);
757
      return recv_adjustDeliveryDays();
758
    }
759
 
760
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
761
    {
762
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
763
      args.setStartDate(startDate);
764
      args.setDays(days);
765
      sendBase("adjustDeliveryDays", args);
766
    }
767
 
768
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
769
    {
770
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
771
      receiveBase(result, "adjustDeliveryDays");
772
      if (result.isSetSuccess()) {
773
        return result.success;
774
      }
775
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
776
    }
777
 
12895 manish.sha 778
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
779
    {
780
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
781
      return recv_getFirstDeliveryEstimateForWhLocation();
782
    }
783
 
784
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
785
    {
786
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
787
      args.setPincode(pincode);
788
      args.setWhLocation(whLocation);
789
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
790
    }
791
 
792
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
793
    {
794
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
795
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
796
      if (result.isSetSuccess()) {
797
        return result.success;
798
      }
799
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
800
    }
801
 
13146 manish.sha 802
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
803
    {
804
      send_getNewEmptyAwb(providerId, type, orderQuantity);
805
      return recv_getNewEmptyAwb();
806
    }
807
 
808
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
809
    {
810
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
811
      args.setProviderId(providerId);
812
      args.setType(type);
813
      args.setOrderQuantity(orderQuantity);
814
      sendBase("getNewEmptyAwb", args);
815
    }
816
 
817
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
818
    {
819
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
820
      receiveBase(result, "getNewEmptyAwb");
821
      if (result.isSetSuccess()) {
822
        return result.success;
823
      }
824
      if (result.se != null) {
825
        throw result.se;
826
      }
827
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
828
    }
829
 
830
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
831
    {
832
      send_getProviderLimitDetailsForPincode(providerId, pincode);
833
      return recv_getProviderLimitDetailsForPincode();
834
    }
835
 
836
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
837
    {
838
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
839
      args.setProviderId(providerId);
840
      args.setPincode(pincode);
841
      sendBase("getProviderLimitDetailsForPincode", args);
842
    }
843
 
844
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
845
    {
846
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
847
      receiveBase(result, "getProviderLimitDetailsForPincode");
848
      if (result.isSetSuccess()) {
849
        return result.success;
850
      }
851
      if (result.se != null) {
852
        throw result.se;
853
      }
854
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
855
    }
856
 
19413 amit.gupta 857
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
858
    {
859
      send_getLocationInfoMap(destPincode, price);
860
      return recv_getLocationInfoMap();
861
    }
862
 
863
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
864
    {
865
      getLocationInfoMap_args args = new getLocationInfoMap_args();
866
      args.setDestPincode(destPincode);
867
      args.setPrice(price);
868
      sendBase("getLocationInfoMap", args);
869
    }
870
 
871
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
872
    {
873
      getLocationInfoMap_result result = new getLocationInfoMap_result();
874
      receiveBase(result, "getLocationInfoMap");
875
      if (result.isSetSuccess()) {
876
        return result.success;
877
      }
878
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
879
    }
880
 
19474 manish.sha 881
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
19421 manish.sha 882
    {
19474 manish.sha 883
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
19421 manish.sha 884
      return recv_getCostingAndDeliveryEstimateForPincode();
885
    }
886
 
19474 manish.sha 887
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
19421 manish.sha 888
    {
889
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
890
      args.setPincode(pincode);
891
      args.setTransactionAmount(transactionAmount);
892
      args.setIsCod(isCod);
893
      args.setWeight(weight);
894
      args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 895
      args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 896
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
897
    }
898
 
899
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
900
    {
901
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
902
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
903
      if (result.isSetSuccess()) {
904
        return result.success;
905
      }
906
      if (result.se != null) {
907
        throw result.se;
908
      }
909
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
910
    }
911
 
20744 kshitij.so 912
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException
913
    {
914
      send_getBluedartAttributesForLogisticsTxnId(logisticsTxnId, name);
915
      return recv_getBluedartAttributesForLogisticsTxnId();
916
    }
917
 
918
    public void send_getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws org.apache.thrift.TException
919
    {
920
      getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
921
      args.setLogisticsTxnId(logisticsTxnId);
922
      args.setName(name);
923
      sendBase("getBluedartAttributesForLogisticsTxnId", args);
924
    }
925
 
926
    public BluedartAttributes recv_getBluedartAttributesForLogisticsTxnId() throws LogisticsServiceException, org.apache.thrift.TException
927
    {
928
      getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
929
      receiveBase(result, "getBluedartAttributesForLogisticsTxnId");
930
      if (result.isSetSuccess()) {
931
        return result.success;
932
      }
933
      if (result.se != null) {
934
        throw result.se;
935
      }
936
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
937
    }
938
 
23218 amit.gupta 939
    public boolean pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException
940
    {
941
      send_pushCourierDetailsForEcomExpress(logisticsTransactionIds);
942
      return recv_pushCourierDetailsForEcomExpress();
943
    }
944
 
945
    public void send_pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException
946
    {
947
      pushCourierDetailsForEcomExpress_args args = new pushCourierDetailsForEcomExpress_args();
948
      args.setLogisticsTransactionIds(logisticsTransactionIds);
949
      sendBase("pushCourierDetailsForEcomExpress", args);
950
    }
951
 
952
    public boolean recv_pushCourierDetailsForEcomExpress() throws org.apache.thrift.TException
953
    {
954
      pushCourierDetailsForEcomExpress_result result = new pushCourierDetailsForEcomExpress_result();
955
      receiveBase(result, "pushCourierDetailsForEcomExpress");
956
      if (result.isSetSuccess()) {
957
        return result.success;
958
      }
959
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushCourierDetailsForEcomExpress failed: unknown result");
960
    }
961
 
412 ashish 962
  }
3430 rajveer 963
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
964
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
965
      private org.apache.thrift.async.TAsyncClientManager clientManager;
966
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
967
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
968
        this.clientManager = clientManager;
969
        this.protocolFactory = protocolFactory;
970
      }
971
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
972
        return new AsyncClient(protocolFactory, clientManager, transport);
973
      }
412 ashish 974
    }
975
 
3430 rajveer 976
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
977
      super(protocolFactory, clientManager, transport);
978
    }
412 ashish 979
 
3430 rajveer 980
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
981
      checkReady();
982
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
983
      this.___currentMethod = method_call;
984
      ___manager.call(method_call);
985
    }
986
 
987
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
988
      private long providerId;
989
      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 {
990
        super(client, protocolFactory, transport, resultHandler, false);
991
        this.providerId = providerId;
412 ashish 992
      }
3430 rajveer 993
 
994
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
995
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
996
        getProvider_args args = new getProvider_args();
997
        args.setProviderId(providerId);
998
        args.write(prot);
999
        prot.writeMessageEnd();
1000
      }
1001
 
1002
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1004
          throw new IllegalStateException("Method call not finished!");
1005
        }
1006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1008
        return (new Client(prot)).recv_getProvider();
1009
      }
412 ashish 1010
    }
1011
 
3430 rajveer 1012
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
1013
      checkReady();
1014
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
1015
      this.___currentMethod = method_call;
1016
      ___manager.call(method_call);
1017
    }
1018
 
1019
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
1020
      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 {
1021
        super(client, protocolFactory, transport, resultHandler, false);
1022
      }
1023
 
1024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
1026
        getAllProviders_args args = new getAllProviders_args();
1027
        args.write(prot);
1028
        prot.writeMessageEnd();
1029
      }
1030
 
1031
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1032
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1033
          throw new IllegalStateException("Method call not finished!");
1034
        }
1035
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1036
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1037
        return (new Client(prot)).recv_getAllProviders();
1038
      }
1039
    }
1040
 
4630 mandeep.dh 1041
    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 1042
      checkReady();
4630 mandeep.dh 1043
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1044
      this.___currentMethod = method_call;
1045
      ___manager.call(method_call);
1046
    }
1047
 
1048
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1049
      private long itemId;
1050
      private String destination_pin;
4630 mandeep.dh 1051
      private DeliveryType type;
1052
      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 1053
        super(client, protocolFactory, transport, resultHandler, false);
1054
        this.itemId = itemId;
1055
        this.destination_pin = destination_pin;
4630 mandeep.dh 1056
        this.type = type;
3430 rajveer 1057
      }
1058
 
1059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1061
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1062
        args.setItemId(itemId);
1063
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1064
        args.setType(type);
3430 rajveer 1065
        args.write(prot);
1066
        prot.writeMessageEnd();
1067
      }
1068
 
1069
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1071
          throw new IllegalStateException("Method call not finished!");
1072
        }
1073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1075
        return (new Client(prot)).recv_getLogisticsEstimation();
1076
      }
1077
    }
1078
 
7256 rajveer 1079
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1080
      checkReady();
1081
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1082
      this.___currentMethod = method_call;
1083
      ___manager.call(method_call);
1084
    }
1085
 
1086
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1087
      private long itemId;
1088
      private String destination_pin;
1089
      private DeliveryType type;
1090
      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 {
1091
        super(client, protocolFactory, transport, resultHandler, false);
1092
        this.itemId = itemId;
1093
        this.destination_pin = destination_pin;
1094
        this.type = type;
1095
      }
1096
 
1097
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1098
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1099
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1100
        args.setItemId(itemId);
1101
        args.setDestination_pin(destination_pin);
1102
        args.setType(type);
1103
        args.write(prot);
1104
        prot.writeMessageEnd();
1105
      }
1106
 
1107
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1108
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1109
          throw new IllegalStateException("Method call not finished!");
1110
        }
1111
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1112
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1113
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1114
      }
1115
    }
1116
 
5766 rajveer 1117
    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 1118
      checkReady();
5766 rajveer 1119
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1120
      this.___currentMethod = method_call;
1121
      ___manager.call(method_call);
1122
    }
1123
 
1124
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1125
      private String destination_pincode;
1126
      private long item_id;
1127
      private DeliveryType type;
5766 rajveer 1128
      private PickUpType pickUp;
1129
      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 1130
        super(client, protocolFactory, transport, resultHandler, false);
1131
        this.destination_pincode = destination_pincode;
1132
        this.item_id = item_id;
1133
        this.type = type;
5766 rajveer 1134
        this.pickUp = pickUp;
3430 rajveer 1135
      }
1136
 
1137
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1138
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1139
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1140
        args.setDestination_pincode(destination_pincode);
1141
        args.setItem_id(item_id);
1142
        args.setType(type);
5766 rajveer 1143
        args.setPickUp(pickUp);
3430 rajveer 1144
        args.write(prot);
1145
        prot.writeMessageEnd();
1146
      }
1147
 
1148
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1149
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1150
          throw new IllegalStateException("Method call not finished!");
1151
        }
1152
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1153
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1154
        return (new Client(prot)).recv_getLogisticsInfo();
1155
      }
1156
    }
1157
 
20724 kshitij.so 1158
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1159
      checkReady();
20724 kshitij.so 1160
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1161
      this.___currentMethod = method_call;
1162
      ___manager.call(method_call);
1163
    }
1164
 
1165
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1166
      private long providerId;
20724 kshitij.so 1167
      private String logisticsTransactionId;
1168
      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 1169
        super(client, protocolFactory, transport, resultHandler, false);
1170
        this.providerId = providerId;
20724 kshitij.so 1171
        this.logisticsTransactionId = logisticsTransactionId;
3430 rajveer 1172
      }
1173
 
1174
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1175
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1176
        getEmptyAWB_args args = new getEmptyAWB_args();
1177
        args.setProviderId(providerId);
20724 kshitij.so 1178
        args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 1179
        args.write(prot);
1180
        prot.writeMessageEnd();
1181
      }
1182
 
1183
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1184
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1185
          throw new IllegalStateException("Method call not finished!");
1186
        }
1187
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1188
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1189
        return (new Client(prot)).recv_getEmptyAWB();
1190
      }
1191
    }
1192
 
6643 rajveer 1193
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1194
      checkReady();
6643 rajveer 1195
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1196
      this.___currentMethod = method_call;
1197
      ___manager.call(method_call);
1198
    }
1199
 
1200
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1201
      private String awbNumber;
3430 rajveer 1202
      private long providerId;
6643 rajveer 1203
      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 1204
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1205
        this.awbNumber = awbNumber;
3430 rajveer 1206
        this.providerId = providerId;
1207
      }
1208
 
1209
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1210
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1211
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1212
        args.setAwbNumber(awbNumber);
3430 rajveer 1213
        args.setProviderId(providerId);
1214
        args.write(prot);
1215
        prot.writeMessageEnd();
1216
      }
1217
 
1218
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1219
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1220
          throw new IllegalStateException("Method call not finished!");
1221
        }
1222
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1223
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1224
        return (new Client(prot)).recv_getShipmentInfo();
1225
      }
1226
    }
1227
 
6643 rajveer 1228
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1229
      checkReady();
1230
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1231
      this.___currentMethod = method_call;
1232
      ___manager.call(method_call);
1233
    }
1234
 
1235
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1236
      private AwbUpdate update;
1237
      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 {
1238
        super(client, protocolFactory, transport, resultHandler, false);
1239
        this.update = update;
1240
      }
1241
 
1242
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1243
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1244
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1245
        args.setUpdate(update);
1246
        args.write(prot);
1247
        prot.writeMessageEnd();
1248
      }
1249
 
1250
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1251
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1252
          throw new IllegalStateException("Method call not finished!");
1253
        }
1254
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1255
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1256
        (new Client(prot)).recv_storeShipmentInfo();
1257
      }
1258
    }
1259
 
3430 rajveer 1260
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1261
      checkReady();
1262
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1263
      this.___currentMethod = method_call;
1264
      ___manager.call(method_call);
1265
    }
1266
 
1267
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1268
      private long providerId;
1269
      private String pinCode;
1270
      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 {
1271
        super(client, protocolFactory, transport, resultHandler, false);
1272
        this.providerId = providerId;
1273
        this.pinCode = pinCode;
1274
      }
1275
 
1276
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1277
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1278
        getDestinationCode_args args = new getDestinationCode_args();
1279
        args.setProviderId(providerId);
1280
        args.setPinCode(pinCode);
1281
        args.write(prot);
1282
        prot.writeMessageEnd();
1283
      }
1284
 
1285
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1286
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1287
          throw new IllegalStateException("Method call not finished!");
1288
        }
1289
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1290
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1291
        return (new Client(prot)).recv_getDestinationCode();
1292
      }
1293
    }
1294
 
1295
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1296
      checkReady();
1297
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1298
      this.___currentMethod = method_call;
1299
      ___manager.call(method_call);
1300
    }
1301
 
1302
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1303
      private long providerId;
1304
      private String type;
1305
      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 {
1306
        super(client, protocolFactory, transport, resultHandler, false);
1307
        this.providerId = providerId;
1308
        this.type = type;
1309
      }
1310
 
1311
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1312
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1313
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1314
        args.setProviderId(providerId);
1315
        args.setType(type);
1316
        args.write(prot);
1317
        prot.writeMessageEnd();
1318
      }
1319
 
1320
      public long getResult() throws org.apache.thrift.TException {
1321
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1322
          throw new IllegalStateException("Method call not finished!");
1323
        }
1324
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1325
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1326
        return (new Client(prot)).recv_getFreeAwbCount();
1327
      }
1328
    }
1329
 
1330
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1331
      checkReady();
1332
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1333
      this.___currentMethod = method_call;
1334
      ___manager.call(method_call);
1335
    }
1336
 
1337
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1338
      private long fromDate;
1339
      private long toDate;
1340
      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 {
1341
        super(client, protocolFactory, transport, resultHandler, false);
1342
        this.fromDate = fromDate;
1343
        this.toDate = toDate;
1344
      }
1345
 
1346
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1347
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1348
        getHolidays_args args = new getHolidays_args();
1349
        args.setFromDate(fromDate);
1350
        args.setToDate(toDate);
1351
        args.write(prot);
1352
        prot.writeMessageEnd();
1353
      }
1354
 
1355
      public List<Long> getResult() throws org.apache.thrift.TException {
1356
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1357
          throw new IllegalStateException("Method call not finished!");
1358
        }
1359
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1360
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1361
        return (new Client(prot)).recv_getHolidays();
1362
      }
1363
    }
1364
 
4934 amit.gupta 1365
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1366
      checkReady();
1367
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1368
      this.___currentMethod = method_call;
1369
      ___manager.call(method_call);
1370
    }
1371
 
1372
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1373
      private long catalogItemId;
1374
      private String destination_pin;
1375
      private DeliveryType type;
1376
      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 {
1377
        super(client, protocolFactory, transport, resultHandler, false);
1378
        this.catalogItemId = catalogItemId;
1379
        this.destination_pin = destination_pin;
1380
        this.type = type;
1381
      }
1382
 
1383
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1384
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1385
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1386
        args.setCatalogItemId(catalogItemId);
1387
        args.setDestination_pin(destination_pin);
1388
        args.setType(type);
1389
        args.write(prot);
1390
        prot.writeMessageEnd();
1391
      }
1392
 
9840 amit.gupta 1393
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1394
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1395
          throw new IllegalStateException("Method call not finished!");
1396
        }
1397
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1398
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1399
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1400
      }
1401
    }
1402
 
5527 anupam.sin 1403
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1404
      checkReady();
1405
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1406
      this.___currentMethod = method_call;
1407
      ___manager.call(method_call);
1408
    }
1409
 
1410
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1411
      private long pickUp;
1412
      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 {
1413
        super(client, protocolFactory, transport, resultHandler, false);
1414
        this.pickUp = pickUp;
1415
      }
1416
 
1417
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1418
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1419
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1420
        args.setPickUp(pickUp);
1421
        args.write(prot);
1422
        prot.writeMessageEnd();
1423
      }
1424
 
1425
      public long getResult() throws org.apache.thrift.TException {
1426
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1427
          throw new IllegalStateException("Method call not finished!");
1428
        }
1429
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1430
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1431
        return (new Client(prot)).recv_getProviderForPickupType();
1432
      }
1433
    }
1434
 
5553 rajveer 1435
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1436
      checkReady();
1437
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1438
      this.___currentMethod = method_call;
1439
      ___manager.call(method_call);
1440
    }
1441
 
1442
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1443
      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 {
1444
        super(client, protocolFactory, transport, resultHandler, false);
1445
      }
1446
 
1447
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1448
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1449
        getAllPickupStores_args args = new getAllPickupStores_args();
1450
        args.write(prot);
1451
        prot.writeMessageEnd();
1452
      }
1453
 
1454
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1455
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1456
          throw new IllegalStateException("Method call not finished!");
1457
        }
1458
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1459
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1460
        return (new Client(prot)).recv_getAllPickupStores();
1461
      }
1462
    }
1463
 
1464
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1465
      checkReady();
1466
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1467
      this.___currentMethod = method_call;
1468
      ___manager.call(method_call);
1469
    }
1470
 
1471
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1472
      private long storeId;
1473
      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 {
1474
        super(client, protocolFactory, transport, resultHandler, false);
1475
        this.storeId = storeId;
1476
      }
1477
 
1478
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1479
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1480
        getPickupStore_args args = new getPickupStore_args();
1481
        args.setStoreId(storeId);
1482
        args.write(prot);
1483
        prot.writeMessageEnd();
1484
      }
1485
 
1486
      public PickupStore getResult() throws org.apache.thrift.TException {
1487
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1488
          throw new IllegalStateException("Method call not finished!");
1489
        }
1490
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1491
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1492
        return (new Client(prot)).recv_getPickupStore();
1493
      }
1494
    }
1495
 
5719 rajveer 1496
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1497
      checkReady();
1498
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1499
      this.___currentMethod = method_call;
1500
      ___manager.call(method_call);
1501
    }
1502
 
1503
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1504
      private String hotspotId;
1505
      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 {
1506
        super(client, protocolFactory, transport, resultHandler, false);
1507
        this.hotspotId = hotspotId;
1508
      }
1509
 
1510
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1511
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1512
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1513
        args.setHotspotId(hotspotId);
1514
        args.write(prot);
1515
        prot.writeMessageEnd();
1516
      }
1517
 
1518
      public PickupStore getResult() throws org.apache.thrift.TException {
1519
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1520
          throw new IllegalStateException("Method call not finished!");
1521
        }
1522
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1523
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1524
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1525
      }
1526
    }
1527
 
6524 rajveer 1528
    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 1529
      checkReady();
6524 rajveer 1530
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1531
      this.___currentMethod = method_call;
1532
      ___manager.call(method_call);
1533
    }
1534
 
1535
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1536
      private long providerId;
1537
      private String pincode;
1538
      private String destCode;
1539
      private boolean exp;
1540
      private boolean cod;
1541
      private int stationType;
6524 rajveer 1542
      private boolean otgAvailable;
1543
      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 1544
        super(client, protocolFactory, transport, resultHandler, false);
1545
        this.providerId = providerId;
1546
        this.pincode = pincode;
1547
        this.destCode = destCode;
1548
        this.exp = exp;
1549
        this.cod = cod;
1550
        this.stationType = stationType;
6524 rajveer 1551
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1552
      }
1553
 
1554
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1555
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1556
        addPincode_args args = new addPincode_args();
1557
        args.setProviderId(providerId);
1558
        args.setPincode(pincode);
1559
        args.setDestCode(destCode);
1560
        args.setExp(exp);
1561
        args.setCod(cod);
1562
        args.setStationType(stationType);
6524 rajveer 1563
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1564
        args.write(prot);
1565
        prot.writeMessageEnd();
1566
      }
1567
 
1568
      public void getResult() throws org.apache.thrift.TException {
1569
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1570
          throw new IllegalStateException("Method call not finished!");
1571
        }
1572
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1573
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1574
        (new Client(prot)).recv_addPincode();
1575
      }
1576
    }
1577
 
6524 rajveer 1578
    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 1579
      checkReady();
6524 rajveer 1580
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1581
      this.___currentMethod = method_call;
1582
      ___manager.call(method_call);
1583
    }
1584
 
1585
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1586
      private long providerId;
1587
      private String pincode;
1588
      private boolean exp;
1589
      private boolean cod;
6524 rajveer 1590
      private boolean otgAvailable;
1591
      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 1592
        super(client, protocolFactory, transport, resultHandler, false);
1593
        this.providerId = providerId;
1594
        this.pincode = pincode;
1595
        this.exp = exp;
1596
        this.cod = cod;
6524 rajveer 1597
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1598
      }
1599
 
1600
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1601
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1602
        updatePincode_args args = new updatePincode_args();
1603
        args.setProviderId(providerId);
1604
        args.setPincode(pincode);
1605
        args.setExp(exp);
1606
        args.setCod(cod);
6524 rajveer 1607
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1608
        args.write(prot);
1609
        prot.writeMessageEnd();
1610
      }
1611
 
1612
      public void getResult() throws org.apache.thrift.TException {
1613
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1614
          throw new IllegalStateException("Method call not finished!");
1615
        }
1616
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1617
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1618
        (new Client(prot)).recv_updatePincode();
1619
      }
1620
    }
1621
 
13146 manish.sha 1622
    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 1623
      checkReady();
13146 manish.sha 1624
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1625
      this.___currentMethod = method_call;
1626
      ___manager.call(method_call);
1627
    }
1628
 
1629
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1630
      private long providerId;
1631
      private boolean cod;
1632
      private List<String> awbs;
13146 manish.sha 1633
      private long awbUsedFor;
1634
      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 1635
        super(client, protocolFactory, transport, resultHandler, false);
1636
        this.providerId = providerId;
1637
        this.cod = cod;
1638
        this.awbs = awbs;
13146 manish.sha 1639
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1640
      }
1641
 
1642
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1643
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1644
        addNewAwbs_args args = new addNewAwbs_args();
1645
        args.setProviderId(providerId);
1646
        args.setCod(cod);
1647
        args.setAwbs(awbs);
13146 manish.sha 1648
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1649
        args.write(prot);
1650
        prot.writeMessageEnd();
1651
      }
1652
 
1653
      public boolean getResult() throws org.apache.thrift.TException {
1654
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1655
          throw new IllegalStateException("Method call not finished!");
1656
        }
1657
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1658
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1659
        return (new Client(prot)).recv_addNewAwbs();
1660
      }
1661
    }
1662
 
23123 amit.gupta 1663
    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 1664
      checkReady();
23123 amit.gupta 1665
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, provider, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1666
      this.___currentMethod = method_call;
1667
      ___manager.call(method_call);
1668
    }
1669
 
7788 manish.sha 1670
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1671
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1672
      private boolean runCompleteUpdate;
23123 amit.gupta 1673
      private long provider;
1674
      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 1675
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1676
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1677
        this.runCompleteUpdate = runCompleteUpdate;
23123 amit.gupta 1678
        this.provider = provider;
7737 manish.sha 1679
      }
1680
 
1681
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1682
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1683
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1684
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1685
        args.setRunCompleteUpdate(runCompleteUpdate);
23123 amit.gupta 1686
        args.setProvider(provider);
7737 manish.sha 1687
        args.write(prot);
1688
        prot.writeMessageEnd();
1689
      }
1690
 
1691
      public void getResult() throws org.apache.thrift.TException {
1692
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1693
          throw new IllegalStateException("Method call not finished!");
1694
        }
1695
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1696
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1697
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1698
      }
1699
    }
1700
 
7888 rajveer 1701
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1702
      checkReady();
1703
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1704
      this.___currentMethod = method_call;
1705
      ___manager.call(method_call);
1706
    }
1707
 
1708
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1709
      private long startDate;
1710
      private long days;
1711
      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 {
1712
        super(client, protocolFactory, transport, resultHandler, false);
1713
        this.startDate = startDate;
1714
        this.days = days;
1715
      }
1716
 
1717
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1718
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1719
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1720
        args.setStartDate(startDate);
1721
        args.setDays(days);
1722
        args.write(prot);
1723
        prot.writeMessageEnd();
1724
      }
1725
 
1726
      public long getResult() throws org.apache.thrift.TException {
1727
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1728
          throw new IllegalStateException("Method call not finished!");
1729
        }
1730
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1731
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1732
        return (new Client(prot)).recv_adjustDeliveryDays();
1733
      }
1734
    }
1735
 
12895 manish.sha 1736
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1737
      checkReady();
1738
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1739
      this.___currentMethod = method_call;
1740
      ___manager.call(method_call);
1741
    }
1742
 
1743
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1744
      private String pincode;
1745
      private long whLocation;
1746
      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 {
1747
        super(client, protocolFactory, transport, resultHandler, false);
1748
        this.pincode = pincode;
1749
        this.whLocation = whLocation;
1750
      }
1751
 
1752
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1753
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1754
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1755
        args.setPincode(pincode);
1756
        args.setWhLocation(whLocation);
1757
        args.write(prot);
1758
        prot.writeMessageEnd();
1759
      }
1760
 
1761
      public long getResult() throws org.apache.thrift.TException {
1762
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1763
          throw new IllegalStateException("Method call not finished!");
1764
        }
1765
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1766
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1767
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1768
      }
1769
    }
1770
 
13146 manish.sha 1771
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1772
      checkReady();
1773
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1774
      this.___currentMethod = method_call;
1775
      ___manager.call(method_call);
1776
    }
1777
 
1778
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1779
      private long providerId;
1780
      private DeliveryType type;
1781
      private long orderQuantity;
1782
      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 {
1783
        super(client, protocolFactory, transport, resultHandler, false);
1784
        this.providerId = providerId;
1785
        this.type = type;
1786
        this.orderQuantity = orderQuantity;
1787
      }
1788
 
1789
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1790
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1791
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1792
        args.setProviderId(providerId);
1793
        args.setType(type);
1794
        args.setOrderQuantity(orderQuantity);
1795
        args.write(prot);
1796
        prot.writeMessageEnd();
1797
      }
1798
 
1799
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1801
          throw new IllegalStateException("Method call not finished!");
1802
        }
1803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1805
        return (new Client(prot)).recv_getNewEmptyAwb();
1806
      }
1807
    }
1808
 
1809
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1810
      checkReady();
1811
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1812
      this.___currentMethod = method_call;
1813
      ___manager.call(method_call);
1814
    }
1815
 
1816
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1817
      private long providerId;
1818
      private String pincode;
1819
      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 {
1820
        super(client, protocolFactory, transport, resultHandler, false);
1821
        this.providerId = providerId;
1822
        this.pincode = pincode;
1823
      }
1824
 
1825
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1826
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1827
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1828
        args.setProviderId(providerId);
1829
        args.setPincode(pincode);
1830
        args.write(prot);
1831
        prot.writeMessageEnd();
1832
      }
1833
 
1834
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1835
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1836
          throw new IllegalStateException("Method call not finished!");
1837
        }
1838
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1839
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1840
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1841
      }
1842
    }
1843
 
19413 amit.gupta 1844
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1845
      checkReady();
1846
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1847
      this.___currentMethod = method_call;
1848
      ___manager.call(method_call);
1849
    }
1850
 
1851
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1852
      private String destPincode;
1853
      private List<Long> price;
1854
      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 {
1855
        super(client, protocolFactory, transport, resultHandler, false);
1856
        this.destPincode = destPincode;
1857
        this.price = price;
1858
      }
1859
 
1860
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1861
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1862
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1863
        args.setDestPincode(destPincode);
1864
        args.setPrice(price);
1865
        args.write(prot);
1866
        prot.writeMessageEnd();
1867
      }
1868
 
1869
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1870
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1871
          throw new IllegalStateException("Method call not finished!");
1872
        }
1873
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1874
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1875
        return (new Client(prot)).recv_getLocationInfoMap();
1876
      }
1877
    }
1878
 
19474 manish.sha 1879
    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 1880
      checkReady();
19474 manish.sha 1881
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
19421 manish.sha 1882
      this.___currentMethod = method_call;
1883
      ___manager.call(method_call);
1884
    }
1885
 
1886
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1887
      private String pincode;
1888
      private double transactionAmount;
1889
      private boolean isCod;
1890
      private double weight;
1891
      private long billingWarehouseId;
19474 manish.sha 1892
      private boolean isCompleteTxn;
1893
      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 1894
        super(client, protocolFactory, transport, resultHandler, false);
1895
        this.pincode = pincode;
1896
        this.transactionAmount = transactionAmount;
1897
        this.isCod = isCod;
1898
        this.weight = weight;
1899
        this.billingWarehouseId = billingWarehouseId;
19474 manish.sha 1900
        this.isCompleteTxn = isCompleteTxn;
19421 manish.sha 1901
      }
1902
 
1903
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1904
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1905
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1906
        args.setPincode(pincode);
1907
        args.setTransactionAmount(transactionAmount);
1908
        args.setIsCod(isCod);
1909
        args.setWeight(weight);
1910
        args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 1911
        args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 1912
        args.write(prot);
1913
        prot.writeMessageEnd();
1914
      }
1915
 
1916
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1918
          throw new IllegalStateException("Method call not finished!");
1919
        }
1920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1922
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1923
      }
1924
    }
1925
 
20744 kshitij.so 1926
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
1927
      checkReady();
1928
      getBluedartAttributesForLogisticsTxnId_call method_call = new getBluedartAttributesForLogisticsTxnId_call(logisticsTxnId, name, resultHandler, this, ___protocolFactory, ___transport);
1929
      this.___currentMethod = method_call;
1930
      ___manager.call(method_call);
1931
    }
1932
 
1933
    public static class getBluedartAttributesForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1934
      private String logisticsTxnId;
1935
      private String name;
1936
      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 {
1937
        super(client, protocolFactory, transport, resultHandler, false);
1938
        this.logisticsTxnId = logisticsTxnId;
1939
        this.name = name;
1940
      }
1941
 
1942
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1943
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBluedartAttributesForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1944
        getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
1945
        args.setLogisticsTxnId(logisticsTxnId);
1946
        args.setName(name);
1947
        args.write(prot);
1948
        prot.writeMessageEnd();
1949
      }
1950
 
1951
      public BluedartAttributes getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1952
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1953
          throw new IllegalStateException("Method call not finished!");
1954
        }
1955
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1956
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1957
        return (new Client(prot)).recv_getBluedartAttributesForLogisticsTxnId();
1958
      }
1959
    }
1960
 
23218 amit.gupta 1961
    public void pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds, org.apache.thrift.async.AsyncMethodCallback<pushCourierDetailsForEcomExpress_call> resultHandler) throws org.apache.thrift.TException {
1962
      checkReady();
1963
      pushCourierDetailsForEcomExpress_call method_call = new pushCourierDetailsForEcomExpress_call(logisticsTransactionIds, resultHandler, this, ___protocolFactory, ___transport);
1964
      this.___currentMethod = method_call;
1965
      ___manager.call(method_call);
1966
    }
1967
 
1968
    public static class pushCourierDetailsForEcomExpress_call extends org.apache.thrift.async.TAsyncMethodCall {
1969
      private List<String> logisticsTransactionIds;
1970
      public pushCourierDetailsForEcomExpress_call(List<String> logisticsTransactionIds, org.apache.thrift.async.AsyncMethodCallback<pushCourierDetailsForEcomExpress_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 {
1971
        super(client, protocolFactory, transport, resultHandler, false);
1972
        this.logisticsTransactionIds = logisticsTransactionIds;
1973
      }
1974
 
1975
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1976
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushCourierDetailsForEcomExpress", org.apache.thrift.protocol.TMessageType.CALL, 0));
1977
        pushCourierDetailsForEcomExpress_args args = new pushCourierDetailsForEcomExpress_args();
1978
        args.setLogisticsTransactionIds(logisticsTransactionIds);
1979
        args.write(prot);
1980
        prot.writeMessageEnd();
1981
      }
1982
 
1983
      public boolean getResult() throws org.apache.thrift.TException {
1984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1985
          throw new IllegalStateException("Method call not finished!");
1986
        }
1987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1989
        return (new Client(prot)).recv_pushCourierDetailsForEcomExpress();
1990
      }
1991
    }
1992
 
3430 rajveer 1993
  }
1994
 
1995
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1996
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1997
    public Processor(I iface) {
1998
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1999
    }
2000
 
2001
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2002
      super(iface, getProcessMap(processMap));
2003
    }
2004
 
2005
    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) {
2006
      processMap.put("getProvider", new getProvider());
2007
      processMap.put("getAllProviders", new getAllProviders());
2008
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 2009
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 2010
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
2011
      processMap.put("getEmptyAWB", new getEmptyAWB());
2012
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 2013
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 2014
      processMap.put("getDestinationCode", new getDestinationCode());
2015
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
2016
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 2017
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 2018
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 2019
      processMap.put("getAllPickupStores", new getAllPickupStores());
2020
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 2021
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 2022
      processMap.put("addPincode", new addPincode());
2023
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 2024
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 2025
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 2026
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 2027
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 2028
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
2029
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 2030
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 2031
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
20744 kshitij.so 2032
      processMap.put("getBluedartAttributesForLogisticsTxnId", new getBluedartAttributesForLogisticsTxnId());
23218 amit.gupta 2033
      processMap.put("pushCourierDetailsForEcomExpress", new pushCourierDetailsForEcomExpress());
3430 rajveer 2034
      return processMap;
2035
    }
2036
 
2037
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
2038
      public getProvider() {
2039
        super("getProvider");
2040
      }
2041
 
2042
      protected getProvider_args getEmptyArgsInstance() {
2043
        return new getProvider_args();
2044
      }
2045
 
2046
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 2047
        getProvider_result result = new getProvider_result();
2048
        try {
3430 rajveer 2049
          result.success = iface.getProvider(args.providerId);
668 chandransh 2050
        } catch (LogisticsServiceException lse) {
2051
          result.lse = lse;
2052
        }
3430 rajveer 2053
        return result;
668 chandransh 2054
      }
2055
    }
2056
 
3430 rajveer 2057
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
2058
      public getAllProviders() {
2059
        super("getAllProviders");
2060
      }
2061
 
2062
      protected getAllProviders_args getEmptyArgsInstance() {
2063
        return new getAllProviders_args();
2064
      }
2065
 
2066
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 2067
        getAllProviders_result result = new getAllProviders_result();
2068
        try {
3430 rajveer 2069
          result.success = iface.getAllProviders();
674 chandransh 2070
        } catch (LogisticsServiceException lse) {
2071
          result.lse = lse;
2072
        }
3430 rajveer 2073
        return result;
674 chandransh 2074
      }
2075
    }
2076
 
3430 rajveer 2077
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
2078
      public getLogisticsEstimation() {
2079
        super("getLogisticsEstimation");
2080
      }
2081
 
2082
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
2083
        return new getLogisticsEstimation_args();
2084
      }
2085
 
2086
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 2087
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 2088
        try {
4630 mandeep.dh 2089
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 2090
        } catch (LogisticsServiceException se) {
2091
          result.se = se;
2092
        }
3430 rajveer 2093
        return result;
483 rajveer 2094
      }
2095
    }
2096
 
7256 rajveer 2097
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
2098
      public getLogisticsEstimationForStore() {
2099
        super("getLogisticsEstimationForStore");
2100
      }
2101
 
2102
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
2103
        return new getLogisticsEstimationForStore_args();
2104
      }
2105
 
2106
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
2107
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
2108
        try {
2109
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
2110
        } catch (LogisticsServiceException se) {
2111
          result.se = se;
2112
        }
2113
        return result;
2114
      }
2115
    }
2116
 
3430 rajveer 2117
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
2118
      public getLogisticsInfo() {
2119
        super("getLogisticsInfo");
2120
      }
2121
 
2122
      protected getLogisticsInfo_args getEmptyArgsInstance() {
2123
        return new getLogisticsInfo_args();
2124
      }
2125
 
2126
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 2127
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 2128
        try {
5766 rajveer 2129
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 2130
        } catch (LogisticsServiceException se) {
2131
          result.se = se;
2132
        }
3430 rajveer 2133
        return result;
471 rajveer 2134
      }
2135
    }
2136
 
3430 rajveer 2137
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2138
      public getEmptyAWB() {
2139
        super("getEmptyAWB");
2140
      }
2141
 
2142
      protected getEmptyAWB_args getEmptyArgsInstance() {
2143
        return new getEmptyAWB_args();
2144
      }
2145
 
2146
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2147
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2148
        try {
20724 kshitij.so 2149
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
648 chandransh 2150
        } catch (LogisticsServiceException se) {
2151
          result.se = se;
2152
        }
3430 rajveer 2153
        return result;
412 ashish 2154
      }
2155
    }
2156
 
3430 rajveer 2157
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2158
      public getShipmentInfo() {
2159
        super("getShipmentInfo");
2160
      }
2161
 
2162
      protected getShipmentInfo_args getEmptyArgsInstance() {
2163
        return new getShipmentInfo_args();
2164
      }
2165
 
2166
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2167
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2168
        try {
6643 rajveer 2169
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2170
        } catch (LogisticsServiceException se) {
2171
          result.se = se;
2172
        }
3430 rajveer 2173
        return result;
412 ashish 2174
      }
2175
    }
2176
 
6643 rajveer 2177
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2178
      public storeShipmentInfo() {
2179
        super("storeShipmentInfo");
2180
      }
2181
 
2182
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2183
        return new storeShipmentInfo_args();
2184
      }
2185
 
2186
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2187
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2188
        try {
2189
          iface.storeShipmentInfo(args.update);
2190
        } catch (LogisticsServiceException se) {
2191
          result.se = se;
2192
        }
2193
        return result;
2194
      }
2195
    }
2196
 
3430 rajveer 2197
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2198
      public getDestinationCode() {
2199
        super("getDestinationCode");
2200
      }
2201
 
2202
      protected getDestinationCode_args getEmptyArgsInstance() {
2203
        return new getDestinationCode_args();
2204
      }
2205
 
2206
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2207
        getDestinationCode_result result = new getDestinationCode_result();
2208
        try {
3430 rajveer 2209
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2210
        } catch (LogisticsServiceException se) {
2211
          result.se = se;
2212
        }
3430 rajveer 2213
        return result;
730 chandransh 2214
      }
2215
    }
2216
 
3430 rajveer 2217
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2218
      public getFreeAwbCount() {
2219
        super("getFreeAwbCount");
2220
      }
2221
 
2222
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2223
        return new getFreeAwbCount_args();
2224
      }
2225
 
2226
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2227
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2228
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2229
        result.setSuccessIsSet(true);
3430 rajveer 2230
        return result;
1139 chandransh 2231
      }
2232
    }
2233
 
3430 rajveer 2234
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2235
      public getHolidays() {
2236
        super("getHolidays");
2237
      }
2238
 
2239
      protected getHolidays_args getEmptyArgsInstance() {
2240
        return new getHolidays_args();
2241
      }
2242
 
2243
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2244
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2245
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2246
        return result;
1730 ankur.sing 2247
      }
2248
    }
2249
 
4934 amit.gupta 2250
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2251
      public getEntityLogisticsEstimation() {
2252
        super("getEntityLogisticsEstimation");
2253
      }
2254
 
2255
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2256
        return new getEntityLogisticsEstimation_args();
2257
      }
2258
 
2259
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2260
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2261
        try {
2262
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2263
        } catch (LogisticsServiceException se) {
2264
          result.se = se;
2265
        }
2266
        return result;
2267
      }
2268
    }
2269
 
5527 anupam.sin 2270
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2271
      public getProviderForPickupType() {
2272
        super("getProviderForPickupType");
2273
      }
2274
 
2275
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2276
        return new getProviderForPickupType_args();
2277
      }
2278
 
2279
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2280
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2281
        result.success = iface.getProviderForPickupType(args.pickUp);
2282
        result.setSuccessIsSet(true);
2283
        return result;
2284
      }
2285
    }
2286
 
5553 rajveer 2287
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2288
      public getAllPickupStores() {
2289
        super("getAllPickupStores");
2290
      }
2291
 
2292
      protected getAllPickupStores_args getEmptyArgsInstance() {
2293
        return new getAllPickupStores_args();
2294
      }
2295
 
2296
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2297
        getAllPickupStores_result result = new getAllPickupStores_result();
2298
        result.success = iface.getAllPickupStores();
2299
        return result;
2300
      }
2301
    }
2302
 
2303
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2304
      public getPickupStore() {
2305
        super("getPickupStore");
2306
      }
2307
 
2308
      protected getPickupStore_args getEmptyArgsInstance() {
2309
        return new getPickupStore_args();
2310
      }
2311
 
2312
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2313
        getPickupStore_result result = new getPickupStore_result();
2314
        result.success = iface.getPickupStore(args.storeId);
2315
        return result;
2316
      }
2317
    }
2318
 
5719 rajveer 2319
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2320
      public getPickupStoreByHotspotId() {
2321
        super("getPickupStoreByHotspotId");
2322
      }
2323
 
2324
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2325
        return new getPickupStoreByHotspotId_args();
2326
      }
2327
 
2328
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2329
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2330
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2331
        return result;
2332
      }
2333
    }
2334
 
6322 amar.kumar 2335
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2336
      public addPincode() {
2337
        super("addPincode");
2338
      }
2339
 
2340
      protected addPincode_args getEmptyArgsInstance() {
2341
        return new addPincode_args();
2342
      }
2343
 
2344
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2345
        addPincode_result result = new addPincode_result();
6524 rajveer 2346
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2347
        return result;
2348
      }
2349
    }
2350
 
2351
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2352
      public updatePincode() {
2353
        super("updatePincode");
2354
      }
2355
 
2356
      protected updatePincode_args getEmptyArgsInstance() {
2357
        return new updatePincode_args();
2358
      }
2359
 
2360
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2361
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2362
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2363
        return result;
2364
      }
2365
    }
2366
 
7567 rajveer 2367
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2368
      public addNewAwbs() {
2369
        super("addNewAwbs");
2370
      }
2371
 
2372
      protected addNewAwbs_args getEmptyArgsInstance() {
2373
        return new addNewAwbs_args();
2374
      }
2375
 
2376
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2377
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2378
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2379
        result.setSuccessIsSet(true);
2380
        return result;
2381
      }
2382
    }
2383
 
7788 manish.sha 2384
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2385
      public runLogisticsLocationInfoUpdate() {
2386
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2387
      }
2388
 
7788 manish.sha 2389
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2390
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2391
      }
2392
 
7788 manish.sha 2393
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2394
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
23123 amit.gupta 2395
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate, args.provider);
7737 manish.sha 2396
        return result;
2397
      }
2398
    }
2399
 
7888 rajveer 2400
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2401
      public adjustDeliveryDays() {
2402
        super("adjustDeliveryDays");
2403
      }
2404
 
2405
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2406
        return new adjustDeliveryDays_args();
2407
      }
2408
 
2409
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2410
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2411
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2412
        result.setSuccessIsSet(true);
2413
        return result;
2414
      }
2415
    }
2416
 
12895 manish.sha 2417
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2418
      public getFirstDeliveryEstimateForWhLocation() {
2419
        super("getFirstDeliveryEstimateForWhLocation");
2420
      }
2421
 
2422
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2423
        return new getFirstDeliveryEstimateForWhLocation_args();
2424
      }
2425
 
2426
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2427
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2428
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2429
        result.setSuccessIsSet(true);
2430
        return result;
2431
      }
2432
    }
2433
 
13146 manish.sha 2434
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2435
      public getNewEmptyAwb() {
2436
        super("getNewEmptyAwb");
2437
      }
2438
 
2439
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2440
        return new getNewEmptyAwb_args();
2441
      }
2442
 
2443
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2444
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2445
        try {
2446
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2447
        } catch (LogisticsServiceException se) {
2448
          result.se = se;
2449
        }
2450
        return result;
2451
      }
2452
    }
2453
 
2454
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2455
      public getProviderLimitDetailsForPincode() {
2456
        super("getProviderLimitDetailsForPincode");
2457
      }
2458
 
2459
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2460
        return new getProviderLimitDetailsForPincode_args();
2461
      }
2462
 
2463
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2464
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2465
        try {
2466
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2467
        } catch (LogisticsServiceException se) {
2468
          result.se = se;
2469
        }
2470
        return result;
2471
      }
2472
    }
2473
 
19413 amit.gupta 2474
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2475
      public getLocationInfoMap() {
2476
        super("getLocationInfoMap");
2477
      }
2478
 
2479
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2480
        return new getLocationInfoMap_args();
2481
      }
2482
 
2483
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2484
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2485
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2486
        return result;
2487
      }
2488
    }
2489
 
19421 manish.sha 2490
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2491
      public getCostingAndDeliveryEstimateForPincode() {
2492
        super("getCostingAndDeliveryEstimateForPincode");
2493
      }
2494
 
2495
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2496
        return new getCostingAndDeliveryEstimateForPincode_args();
2497
      }
2498
 
2499
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2500
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2501
        try {
19474 manish.sha 2502
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
19421 manish.sha 2503
        } catch (LogisticsServiceException se) {
2504
          result.se = se;
2505
        }
2506
        return result;
2507
      }
2508
    }
2509
 
20744 kshitij.so 2510
    private static class getBluedartAttributesForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBluedartAttributesForLogisticsTxnId_args> {
2511
      public getBluedartAttributesForLogisticsTxnId() {
2512
        super("getBluedartAttributesForLogisticsTxnId");
2513
      }
2514
 
2515
      protected getBluedartAttributesForLogisticsTxnId_args getEmptyArgsInstance() {
2516
        return new getBluedartAttributesForLogisticsTxnId_args();
2517
      }
2518
 
2519
      protected getBluedartAttributesForLogisticsTxnId_result getResult(I iface, getBluedartAttributesForLogisticsTxnId_args args) throws org.apache.thrift.TException {
2520
        getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
2521
        try {
2522
          result.success = iface.getBluedartAttributesForLogisticsTxnId(args.logisticsTxnId, args.name);
2523
        } catch (LogisticsServiceException se) {
2524
          result.se = se;
2525
        }
2526
        return result;
2527
      }
2528
    }
2529
 
23218 amit.gupta 2530
    private static class pushCourierDetailsForEcomExpress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushCourierDetailsForEcomExpress_args> {
2531
      public pushCourierDetailsForEcomExpress() {
2532
        super("pushCourierDetailsForEcomExpress");
2533
      }
2534
 
2535
      protected pushCourierDetailsForEcomExpress_args getEmptyArgsInstance() {
2536
        return new pushCourierDetailsForEcomExpress_args();
2537
      }
2538
 
2539
      protected pushCourierDetailsForEcomExpress_result getResult(I iface, pushCourierDetailsForEcomExpress_args args) throws org.apache.thrift.TException {
2540
        pushCourierDetailsForEcomExpress_result result = new pushCourierDetailsForEcomExpress_result();
2541
        result.success = iface.pushCourierDetailsForEcomExpress(args.logisticsTransactionIds);
2542
        result.setSuccessIsSet(true);
2543
        return result;
2544
      }
2545
    }
2546
 
412 ashish 2547
  }
2548
 
3430 rajveer 2549
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2550
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2551
 
3430 rajveer 2552
    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 2553
 
3430 rajveer 2554
    private long providerId; // required
668 chandransh 2555
 
2556
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2557
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2558
      PROVIDER_ID((short)1, "providerId");
2559
 
2560
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2561
 
2562
      static {
2563
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2564
          byName.put(field.getFieldName(), field);
2565
        }
2566
      }
2567
 
2568
      /**
2569
       * Find the _Fields constant that matches fieldId, or null if its not found.
2570
       */
2571
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2572
        switch(fieldId) {
2573
          case 1: // PROVIDER_ID
2574
            return PROVIDER_ID;
2575
          default:
2576
            return null;
2577
        }
668 chandransh 2578
      }
2579
 
2580
      /**
2581
       * Find the _Fields constant that matches fieldId, throwing an exception
2582
       * if it is not found.
2583
       */
2584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2585
        _Fields fields = findByThriftId(fieldId);
2586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2587
        return fields;
2588
      }
2589
 
2590
      /**
2591
       * Find the _Fields constant that matches name, or null if its not found.
2592
       */
2593
      public static _Fields findByName(String name) {
2594
        return byName.get(name);
2595
      }
2596
 
2597
      private final short _thriftId;
2598
      private final String _fieldName;
2599
 
2600
      _Fields(short thriftId, String fieldName) {
2601
        _thriftId = thriftId;
2602
        _fieldName = fieldName;
2603
      }
2604
 
2605
      public short getThriftFieldId() {
2606
        return _thriftId;
2607
      }
2608
 
2609
      public String getFieldName() {
2610
        return _fieldName;
2611
      }
2612
    }
2613
 
2614
    // isset id assignments
2615
    private static final int __PROVIDERID_ISSET_ID = 0;
2616
    private BitSet __isset_bit_vector = new BitSet(1);
2617
 
3430 rajveer 2618
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2619
    static {
3430 rajveer 2620
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2621
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2625
    }
2626
 
2627
    public getProvider_args() {
2628
    }
2629
 
2630
    public getProvider_args(
2631
      long providerId)
2632
    {
2633
      this();
2634
      this.providerId = providerId;
2635
      setProviderIdIsSet(true);
2636
    }
2637
 
2638
    /**
2639
     * Performs a deep copy on <i>other</i>.
2640
     */
2641
    public getProvider_args(getProvider_args other) {
2642
      __isset_bit_vector.clear();
2643
      __isset_bit_vector.or(other.__isset_bit_vector);
2644
      this.providerId = other.providerId;
2645
    }
2646
 
2647
    public getProvider_args deepCopy() {
2648
      return new getProvider_args(this);
2649
    }
2650
 
3430 rajveer 2651
    @Override
2652
    public void clear() {
2653
      setProviderIdIsSet(false);
2654
      this.providerId = 0;
668 chandransh 2655
    }
2656
 
2657
    public long getProviderId() {
2658
      return this.providerId;
2659
    }
2660
 
3430 rajveer 2661
    public void setProviderId(long providerId) {
668 chandransh 2662
      this.providerId = providerId;
2663
      setProviderIdIsSet(true);
2664
    }
2665
 
2666
    public void unsetProviderId() {
2667
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2668
    }
2669
 
3430 rajveer 2670
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2671
    public boolean isSetProviderId() {
2672
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2673
    }
2674
 
2675
    public void setProviderIdIsSet(boolean value) {
2676
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2677
    }
2678
 
2679
    public void setFieldValue(_Fields field, Object value) {
2680
      switch (field) {
2681
      case PROVIDER_ID:
2682
        if (value == null) {
2683
          unsetProviderId();
2684
        } else {
2685
          setProviderId((Long)value);
2686
        }
2687
        break;
2688
 
2689
      }
2690
    }
2691
 
2692
    public Object getFieldValue(_Fields field) {
2693
      switch (field) {
2694
      case PROVIDER_ID:
3430 rajveer 2695
        return Long.valueOf(getProviderId());
668 chandransh 2696
 
2697
      }
2698
      throw new IllegalStateException();
2699
    }
2700
 
3430 rajveer 2701
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2702
    public boolean isSet(_Fields field) {
2703
      if (field == null) {
2704
        throw new IllegalArgumentException();
2705
      }
668 chandransh 2706
 
2707
      switch (field) {
2708
      case PROVIDER_ID:
2709
        return isSetProviderId();
2710
      }
2711
      throw new IllegalStateException();
2712
    }
2713
 
2714
    @Override
2715
    public boolean equals(Object that) {
2716
      if (that == null)
2717
        return false;
2718
      if (that instanceof getProvider_args)
2719
        return this.equals((getProvider_args)that);
2720
      return false;
2721
    }
2722
 
2723
    public boolean equals(getProvider_args that) {
2724
      if (that == null)
2725
        return false;
2726
 
2727
      boolean this_present_providerId = true;
2728
      boolean that_present_providerId = true;
2729
      if (this_present_providerId || that_present_providerId) {
2730
        if (!(this_present_providerId && that_present_providerId))
2731
          return false;
2732
        if (this.providerId != that.providerId)
2733
          return false;
2734
      }
2735
 
2736
      return true;
2737
    }
2738
 
2739
    @Override
2740
    public int hashCode() {
2741
      return 0;
2742
    }
2743
 
2744
    public int compareTo(getProvider_args other) {
2745
      if (!getClass().equals(other.getClass())) {
2746
        return getClass().getName().compareTo(other.getClass().getName());
2747
      }
2748
 
2749
      int lastComparison = 0;
2750
      getProvider_args typedOther = (getProvider_args)other;
2751
 
3430 rajveer 2752
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2753
      if (lastComparison != 0) {
2754
        return lastComparison;
2755
      }
3430 rajveer 2756
      if (isSetProviderId()) {
2757
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2758
        if (lastComparison != 0) {
2759
          return lastComparison;
2760
        }
668 chandransh 2761
      }
2762
      return 0;
2763
    }
2764
 
3430 rajveer 2765
    public _Fields fieldForId(int fieldId) {
2766
      return _Fields.findByThriftId(fieldId);
2767
    }
2768
 
2769
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2770
      org.apache.thrift.protocol.TField field;
668 chandransh 2771
      iprot.readStructBegin();
2772
      while (true)
2773
      {
2774
        field = iprot.readFieldBegin();
3430 rajveer 2775
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2776
          break;
2777
        }
3430 rajveer 2778
        switch (field.id) {
2779
          case 1: // PROVIDER_ID
2780
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2781
              this.providerId = iprot.readI64();
2782
              setProviderIdIsSet(true);
2783
            } else { 
2784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2785
            }
2786
            break;
2787
          default:
2788
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2789
        }
3430 rajveer 2790
        iprot.readFieldEnd();
668 chandransh 2791
      }
2792
      iprot.readStructEnd();
2793
      validate();
2794
    }
2795
 
3430 rajveer 2796
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2797
      validate();
2798
 
2799
      oprot.writeStructBegin(STRUCT_DESC);
2800
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2801
      oprot.writeI64(this.providerId);
2802
      oprot.writeFieldEnd();
2803
      oprot.writeFieldStop();
2804
      oprot.writeStructEnd();
2805
    }
2806
 
2807
    @Override
2808
    public String toString() {
2809
      StringBuilder sb = new StringBuilder("getProvider_args(");
2810
      boolean first = true;
2811
 
2812
      sb.append("providerId:");
2813
      sb.append(this.providerId);
2814
      first = false;
2815
      sb.append(")");
2816
      return sb.toString();
2817
    }
2818
 
3430 rajveer 2819
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2820
      // check for required fields
2821
    }
2822
 
3430 rajveer 2823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2824
      try {
2825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2826
      } catch (org.apache.thrift.TException te) {
2827
        throw new java.io.IOException(te);
2828
      }
2829
    }
2830
 
2831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2832
      try {
2833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2834
      } catch (org.apache.thrift.TException te) {
2835
        throw new java.io.IOException(te);
2836
      }
2837
    }
2838
 
668 chandransh 2839
  }
2840
 
3430 rajveer 2841
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2843
 
3430 rajveer 2844
    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);
2845
    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 2846
 
3430 rajveer 2847
    private Provider success; // required
2848
    private LogisticsServiceException lse; // required
668 chandransh 2849
 
2850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2851
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2852
      SUCCESS((short)0, "success"),
2853
      LSE((short)1, "lse");
2854
 
2855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2856
 
2857
      static {
2858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2859
          byName.put(field.getFieldName(), field);
2860
        }
2861
      }
2862
 
2863
      /**
2864
       * Find the _Fields constant that matches fieldId, or null if its not found.
2865
       */
2866
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2867
        switch(fieldId) {
2868
          case 0: // SUCCESS
2869
            return SUCCESS;
2870
          case 1: // LSE
2871
            return LSE;
2872
          default:
2873
            return null;
2874
        }
668 chandransh 2875
      }
2876
 
2877
      /**
2878
       * Find the _Fields constant that matches fieldId, throwing an exception
2879
       * if it is not found.
2880
       */
2881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2882
        _Fields fields = findByThriftId(fieldId);
2883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2884
        return fields;
2885
      }
2886
 
2887
      /**
2888
       * Find the _Fields constant that matches name, or null if its not found.
2889
       */
2890
      public static _Fields findByName(String name) {
2891
        return byName.get(name);
2892
      }
2893
 
2894
      private final short _thriftId;
2895
      private final String _fieldName;
2896
 
2897
      _Fields(short thriftId, String fieldName) {
2898
        _thriftId = thriftId;
2899
        _fieldName = fieldName;
2900
      }
2901
 
2902
      public short getThriftFieldId() {
2903
        return _thriftId;
2904
      }
2905
 
2906
      public String getFieldName() {
2907
        return _fieldName;
2908
      }
2909
    }
2910
 
2911
    // isset id assignments
2912
 
3430 rajveer 2913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2914
    static {
3430 rajveer 2915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2916
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2917
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2918
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2920
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2921
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2922
    }
2923
 
2924
    public getProvider_result() {
2925
    }
2926
 
2927
    public getProvider_result(
2928
      Provider success,
2929
      LogisticsServiceException lse)
2930
    {
2931
      this();
2932
      this.success = success;
2933
      this.lse = lse;
2934
    }
2935
 
2936
    /**
2937
     * Performs a deep copy on <i>other</i>.
2938
     */
2939
    public getProvider_result(getProvider_result other) {
2940
      if (other.isSetSuccess()) {
2941
        this.success = new Provider(other.success);
2942
      }
2943
      if (other.isSetLse()) {
2944
        this.lse = new LogisticsServiceException(other.lse);
2945
      }
2946
    }
2947
 
2948
    public getProvider_result deepCopy() {
2949
      return new getProvider_result(this);
2950
    }
2951
 
3430 rajveer 2952
    @Override
2953
    public void clear() {
2954
      this.success = null;
2955
      this.lse = null;
668 chandransh 2956
    }
2957
 
2958
    public Provider getSuccess() {
2959
      return this.success;
2960
    }
2961
 
3430 rajveer 2962
    public void setSuccess(Provider success) {
668 chandransh 2963
      this.success = success;
2964
    }
2965
 
2966
    public void unsetSuccess() {
2967
      this.success = null;
2968
    }
2969
 
3430 rajveer 2970
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2971
    public boolean isSetSuccess() {
2972
      return this.success != null;
2973
    }
2974
 
2975
    public void setSuccessIsSet(boolean value) {
2976
      if (!value) {
2977
        this.success = null;
2978
      }
2979
    }
2980
 
2981
    public LogisticsServiceException getLse() {
2982
      return this.lse;
2983
    }
2984
 
3430 rajveer 2985
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2986
      this.lse = lse;
2987
    }
2988
 
2989
    public void unsetLse() {
2990
      this.lse = null;
2991
    }
2992
 
3430 rajveer 2993
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2994
    public boolean isSetLse() {
2995
      return this.lse != null;
2996
    }
2997
 
2998
    public void setLseIsSet(boolean value) {
2999
      if (!value) {
3000
        this.lse = null;
3001
      }
3002
    }
3003
 
3004
    public void setFieldValue(_Fields field, Object value) {
3005
      switch (field) {
3006
      case SUCCESS:
3007
        if (value == null) {
3008
          unsetSuccess();
3009
        } else {
3010
          setSuccess((Provider)value);
3011
        }
3012
        break;
3013
 
3014
      case LSE:
3015
        if (value == null) {
3016
          unsetLse();
3017
        } else {
3018
          setLse((LogisticsServiceException)value);
3019
        }
3020
        break;
3021
 
3022
      }
3023
    }
3024
 
3025
    public Object getFieldValue(_Fields field) {
3026
      switch (field) {
3027
      case SUCCESS:
3028
        return getSuccess();
3029
 
3030
      case LSE:
3031
        return getLse();
3032
 
3033
      }
3034
      throw new IllegalStateException();
3035
    }
3036
 
3430 rajveer 3037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3038
    public boolean isSet(_Fields field) {
3039
      if (field == null) {
3040
        throw new IllegalArgumentException();
3041
      }
668 chandransh 3042
 
3043
      switch (field) {
3044
      case SUCCESS:
3045
        return isSetSuccess();
3046
      case LSE:
3047
        return isSetLse();
3048
      }
3049
      throw new IllegalStateException();
3050
    }
3051
 
3052
    @Override
3053
    public boolean equals(Object that) {
3054
      if (that == null)
3055
        return false;
3056
      if (that instanceof getProvider_result)
3057
        return this.equals((getProvider_result)that);
3058
      return false;
3059
    }
3060
 
3061
    public boolean equals(getProvider_result that) {
3062
      if (that == null)
3063
        return false;
3064
 
3065
      boolean this_present_success = true && this.isSetSuccess();
3066
      boolean that_present_success = true && that.isSetSuccess();
3067
      if (this_present_success || that_present_success) {
3068
        if (!(this_present_success && that_present_success))
3069
          return false;
3070
        if (!this.success.equals(that.success))
3071
          return false;
3072
      }
3073
 
3074
      boolean this_present_lse = true && this.isSetLse();
3075
      boolean that_present_lse = true && that.isSetLse();
3076
      if (this_present_lse || that_present_lse) {
3077
        if (!(this_present_lse && that_present_lse))
3078
          return false;
3079
        if (!this.lse.equals(that.lse))
3080
          return false;
3081
      }
3082
 
3083
      return true;
3084
    }
3085
 
3086
    @Override
3087
    public int hashCode() {
3088
      return 0;
3089
    }
3090
 
3430 rajveer 3091
    public int compareTo(getProvider_result other) {
3092
      if (!getClass().equals(other.getClass())) {
3093
        return getClass().getName().compareTo(other.getClass().getName());
3094
      }
3095
 
3096
      int lastComparison = 0;
3097
      getProvider_result typedOther = (getProvider_result)other;
3098
 
3099
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3100
      if (lastComparison != 0) {
3101
        return lastComparison;
3102
      }
3103
      if (isSetSuccess()) {
3104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3105
        if (lastComparison != 0) {
3106
          return lastComparison;
3107
        }
3108
      }
3109
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3110
      if (lastComparison != 0) {
3111
        return lastComparison;
3112
      }
3113
      if (isSetLse()) {
3114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3115
        if (lastComparison != 0) {
3116
          return lastComparison;
3117
        }
3118
      }
3119
      return 0;
3120
    }
3121
 
3122
    public _Fields fieldForId(int fieldId) {
3123
      return _Fields.findByThriftId(fieldId);
3124
    }
3125
 
3126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3127
      org.apache.thrift.protocol.TField field;
668 chandransh 3128
      iprot.readStructBegin();
3129
      while (true)
3130
      {
3131
        field = iprot.readFieldBegin();
3430 rajveer 3132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 3133
          break;
3134
        }
3430 rajveer 3135
        switch (field.id) {
3136
          case 0: // SUCCESS
3137
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3138
              this.success = new Provider();
3139
              this.success.read(iprot);
3140
            } else { 
3141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3142
            }
3143
            break;
3144
          case 1: // LSE
3145
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3146
              this.lse = new LogisticsServiceException();
3147
              this.lse.read(iprot);
3148
            } else { 
3149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3150
            }
3151
            break;
3152
          default:
3153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 3154
        }
3430 rajveer 3155
        iprot.readFieldEnd();
668 chandransh 3156
      }
3157
      iprot.readStructEnd();
3158
      validate();
3159
    }
3160
 
3430 rajveer 3161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 3162
      oprot.writeStructBegin(STRUCT_DESC);
3163
 
3164
      if (this.isSetSuccess()) {
3165
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3166
        this.success.write(oprot);
3167
        oprot.writeFieldEnd();
3168
      } else if (this.isSetLse()) {
3169
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3170
        this.lse.write(oprot);
3171
        oprot.writeFieldEnd();
3172
      }
3173
      oprot.writeFieldStop();
3174
      oprot.writeStructEnd();
3175
    }
3176
 
3177
    @Override
3178
    public String toString() {
3179
      StringBuilder sb = new StringBuilder("getProvider_result(");
3180
      boolean first = true;
3181
 
3182
      sb.append("success:");
3183
      if (this.success == null) {
3184
        sb.append("null");
3185
      } else {
3186
        sb.append(this.success);
3187
      }
3188
      first = false;
3189
      if (!first) sb.append(", ");
3190
      sb.append("lse:");
3191
      if (this.lse == null) {
3192
        sb.append("null");
3193
      } else {
3194
        sb.append(this.lse);
3195
      }
3196
      first = false;
3197
      sb.append(")");
3198
      return sb.toString();
3199
    }
3200
 
3430 rajveer 3201
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3202
      // check for required fields
3203
    }
3204
 
3430 rajveer 3205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3206
      try {
3207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3208
      } catch (org.apache.thrift.TException te) {
3209
        throw new java.io.IOException(te);
3210
      }
3211
    }
3212
 
3213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3214
      try {
3215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3216
      } catch (org.apache.thrift.TException te) {
3217
        throw new java.io.IOException(te);
3218
      }
3219
    }
3220
 
668 chandransh 3221
  }
3222
 
3430 rajveer 3223
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3225
 
3226
 
3227
 
3228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3230
;
3231
 
3232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3233
 
3234
      static {
3235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3236
          byName.put(field.getFieldName(), field);
3237
        }
3238
      }
3239
 
3240
      /**
3241
       * Find the _Fields constant that matches fieldId, or null if its not found.
3242
       */
3243
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3244
        switch(fieldId) {
3245
          default:
3246
            return null;
3247
        }
674 chandransh 3248
      }
3249
 
3250
      /**
3251
       * Find the _Fields constant that matches fieldId, throwing an exception
3252
       * if it is not found.
3253
       */
3254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3255
        _Fields fields = findByThriftId(fieldId);
3256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3257
        return fields;
3258
      }
3259
 
3260
      /**
3261
       * Find the _Fields constant that matches name, or null if its not found.
3262
       */
3263
      public static _Fields findByName(String name) {
3264
        return byName.get(name);
3265
      }
3266
 
3267
      private final short _thriftId;
3268
      private final String _fieldName;
3269
 
3270
      _Fields(short thriftId, String fieldName) {
3271
        _thriftId = thriftId;
3272
        _fieldName = fieldName;
3273
      }
3274
 
3275
      public short getThriftFieldId() {
3276
        return _thriftId;
3277
      }
3278
 
3279
      public String getFieldName() {
3280
        return _fieldName;
3281
      }
3282
    }
3430 rajveer 3283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3284
    static {
3430 rajveer 3285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3288
    }
3289
 
3290
    public getAllProviders_args() {
3291
    }
3292
 
3293
    /**
3294
     * Performs a deep copy on <i>other</i>.
3295
     */
3296
    public getAllProviders_args(getAllProviders_args other) {
3297
    }
3298
 
3299
    public getAllProviders_args deepCopy() {
3300
      return new getAllProviders_args(this);
3301
    }
3302
 
3430 rajveer 3303
    @Override
3304
    public void clear() {
674 chandransh 3305
    }
3306
 
3307
    public void setFieldValue(_Fields field, Object value) {
3308
      switch (field) {
3309
      }
3310
    }
3311
 
3312
    public Object getFieldValue(_Fields field) {
3313
      switch (field) {
3314
      }
3315
      throw new IllegalStateException();
3316
    }
3317
 
3430 rajveer 3318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3319
    public boolean isSet(_Fields field) {
3320
      if (field == null) {
3321
        throw new IllegalArgumentException();
3322
      }
674 chandransh 3323
 
3324
      switch (field) {
3325
      }
3326
      throw new IllegalStateException();
3327
    }
3328
 
3329
    @Override
3330
    public boolean equals(Object that) {
3331
      if (that == null)
3332
        return false;
3333
      if (that instanceof getAllProviders_args)
3334
        return this.equals((getAllProviders_args)that);
3335
      return false;
3336
    }
3337
 
3338
    public boolean equals(getAllProviders_args that) {
3339
      if (that == null)
3340
        return false;
3341
 
3342
      return true;
3343
    }
3344
 
3345
    @Override
3346
    public int hashCode() {
3347
      return 0;
3348
    }
3349
 
3350
    public int compareTo(getAllProviders_args other) {
3351
      if (!getClass().equals(other.getClass())) {
3352
        return getClass().getName().compareTo(other.getClass().getName());
3353
      }
3354
 
3355
      int lastComparison = 0;
3356
      getAllProviders_args typedOther = (getAllProviders_args)other;
3357
 
3358
      return 0;
3359
    }
3360
 
3430 rajveer 3361
    public _Fields fieldForId(int fieldId) {
3362
      return _Fields.findByThriftId(fieldId);
3363
    }
3364
 
3365
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3366
      org.apache.thrift.protocol.TField field;
674 chandransh 3367
      iprot.readStructBegin();
3368
      while (true)
3369
      {
3370
        field = iprot.readFieldBegin();
3430 rajveer 3371
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3372
          break;
3373
        }
3430 rajveer 3374
        switch (field.id) {
3375
          default:
3376
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3377
        }
3430 rajveer 3378
        iprot.readFieldEnd();
674 chandransh 3379
      }
3380
      iprot.readStructEnd();
3381
      validate();
3382
    }
3383
 
3430 rajveer 3384
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3385
      validate();
3386
 
3387
      oprot.writeStructBegin(STRUCT_DESC);
3388
      oprot.writeFieldStop();
3389
      oprot.writeStructEnd();
3390
    }
3391
 
3392
    @Override
3393
    public String toString() {
3394
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3395
      boolean first = true;
3396
 
3397
      sb.append(")");
3398
      return sb.toString();
3399
    }
3400
 
3430 rajveer 3401
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3402
      // check for required fields
3403
    }
3404
 
3430 rajveer 3405
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3406
      try {
3407
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3408
      } catch (org.apache.thrift.TException te) {
3409
        throw new java.io.IOException(te);
3410
      }
3411
    }
3412
 
3413
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3414
      try {
3415
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3416
      } catch (org.apache.thrift.TException te) {
3417
        throw new java.io.IOException(te);
3418
      }
3419
    }
3420
 
674 chandransh 3421
  }
3422
 
3430 rajveer 3423
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3424
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3425
 
3430 rajveer 3426
    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);
3427
    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 3428
 
3430 rajveer 3429
    private List<Provider> success; // required
3430
    private LogisticsServiceException lse; // required
674 chandransh 3431
 
3432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3434
      SUCCESS((short)0, "success"),
3435
      LSE((short)1, "lse");
3436
 
3437
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3438
 
3439
      static {
3440
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3441
          byName.put(field.getFieldName(), field);
3442
        }
3443
      }
3444
 
3445
      /**
3446
       * Find the _Fields constant that matches fieldId, or null if its not found.
3447
       */
3448
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3449
        switch(fieldId) {
3450
          case 0: // SUCCESS
3451
            return SUCCESS;
3452
          case 1: // LSE
3453
            return LSE;
3454
          default:
3455
            return null;
3456
        }
674 chandransh 3457
      }
3458
 
3459
      /**
3460
       * Find the _Fields constant that matches fieldId, throwing an exception
3461
       * if it is not found.
3462
       */
3463
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3464
        _Fields fields = findByThriftId(fieldId);
3465
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3466
        return fields;
3467
      }
3468
 
3469
      /**
3470
       * Find the _Fields constant that matches name, or null if its not found.
3471
       */
3472
      public static _Fields findByName(String name) {
3473
        return byName.get(name);
3474
      }
3475
 
3476
      private final short _thriftId;
3477
      private final String _fieldName;
3478
 
3479
      _Fields(short thriftId, String fieldName) {
3480
        _thriftId = thriftId;
3481
        _fieldName = fieldName;
3482
      }
3483
 
3484
      public short getThriftFieldId() {
3485
        return _thriftId;
3486
      }
3487
 
3488
      public String getFieldName() {
3489
        return _fieldName;
3490
      }
3491
    }
3492
 
3493
    // isset id assignments
3494
 
3430 rajveer 3495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3496
    static {
3430 rajveer 3497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3498
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3499
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3500
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3501
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3505
    }
3506
 
3507
    public getAllProviders_result() {
3508
    }
3509
 
3510
    public getAllProviders_result(
3511
      List<Provider> success,
3512
      LogisticsServiceException lse)
3513
    {
3514
      this();
3515
      this.success = success;
3516
      this.lse = lse;
3517
    }
3518
 
3519
    /**
3520
     * Performs a deep copy on <i>other</i>.
3521
     */
3522
    public getAllProviders_result(getAllProviders_result other) {
3523
      if (other.isSetSuccess()) {
3524
        List<Provider> __this__success = new ArrayList<Provider>();
3525
        for (Provider other_element : other.success) {
3526
          __this__success.add(new Provider(other_element));
3527
        }
3528
        this.success = __this__success;
3529
      }
3530
      if (other.isSetLse()) {
3531
        this.lse = new LogisticsServiceException(other.lse);
3532
      }
3533
    }
3534
 
3535
    public getAllProviders_result deepCopy() {
3536
      return new getAllProviders_result(this);
3537
    }
3538
 
3430 rajveer 3539
    @Override
3540
    public void clear() {
3541
      this.success = null;
3542
      this.lse = null;
674 chandransh 3543
    }
3544
 
3545
    public int getSuccessSize() {
3546
      return (this.success == null) ? 0 : this.success.size();
3547
    }
3548
 
3549
    public java.util.Iterator<Provider> getSuccessIterator() {
3550
      return (this.success == null) ? null : this.success.iterator();
3551
    }
3552
 
3553
    public void addToSuccess(Provider elem) {
3554
      if (this.success == null) {
3555
        this.success = new ArrayList<Provider>();
3556
      }
3557
      this.success.add(elem);
3558
    }
3559
 
3560
    public List<Provider> getSuccess() {
3561
      return this.success;
3562
    }
3563
 
3430 rajveer 3564
    public void setSuccess(List<Provider> success) {
674 chandransh 3565
      this.success = success;
3566
    }
3567
 
3568
    public void unsetSuccess() {
3569
      this.success = null;
3570
    }
3571
 
3430 rajveer 3572
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3573
    public boolean isSetSuccess() {
3574
      return this.success != null;
3575
    }
3576
 
3577
    public void setSuccessIsSet(boolean value) {
3578
      if (!value) {
3579
        this.success = null;
3580
      }
3581
    }
3582
 
3583
    public LogisticsServiceException getLse() {
3584
      return this.lse;
3585
    }
3586
 
3430 rajveer 3587
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3588
      this.lse = lse;
3589
    }
3590
 
3591
    public void unsetLse() {
3592
      this.lse = null;
3593
    }
3594
 
3430 rajveer 3595
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3596
    public boolean isSetLse() {
3597
      return this.lse != null;
3598
    }
3599
 
3600
    public void setLseIsSet(boolean value) {
3601
      if (!value) {
3602
        this.lse = null;
3603
      }
3604
    }
3605
 
3606
    public void setFieldValue(_Fields field, Object value) {
3607
      switch (field) {
3608
      case SUCCESS:
3609
        if (value == null) {
3610
          unsetSuccess();
3611
        } else {
3612
          setSuccess((List<Provider>)value);
3613
        }
3614
        break;
3615
 
3616
      case LSE:
3617
        if (value == null) {
3618
          unsetLse();
3619
        } else {
3620
          setLse((LogisticsServiceException)value);
3621
        }
3622
        break;
3623
 
3624
      }
3625
    }
3626
 
3627
    public Object getFieldValue(_Fields field) {
3628
      switch (field) {
3629
      case SUCCESS:
3630
        return getSuccess();
3631
 
3632
      case LSE:
3633
        return getLse();
3634
 
3635
      }
3636
      throw new IllegalStateException();
3637
    }
3638
 
3430 rajveer 3639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3640
    public boolean isSet(_Fields field) {
3641
      if (field == null) {
3642
        throw new IllegalArgumentException();
3643
      }
674 chandransh 3644
 
3645
      switch (field) {
3646
      case SUCCESS:
3647
        return isSetSuccess();
3648
      case LSE:
3649
        return isSetLse();
3650
      }
3651
      throw new IllegalStateException();
3652
    }
3653
 
3654
    @Override
3655
    public boolean equals(Object that) {
3656
      if (that == null)
3657
        return false;
3658
      if (that instanceof getAllProviders_result)
3659
        return this.equals((getAllProviders_result)that);
3660
      return false;
3661
    }
3662
 
3663
    public boolean equals(getAllProviders_result that) {
3664
      if (that == null)
3665
        return false;
3666
 
3667
      boolean this_present_success = true && this.isSetSuccess();
3668
      boolean that_present_success = true && that.isSetSuccess();
3669
      if (this_present_success || that_present_success) {
3670
        if (!(this_present_success && that_present_success))
3671
          return false;
3672
        if (!this.success.equals(that.success))
3673
          return false;
3674
      }
3675
 
3676
      boolean this_present_lse = true && this.isSetLse();
3677
      boolean that_present_lse = true && that.isSetLse();
3678
      if (this_present_lse || that_present_lse) {
3679
        if (!(this_present_lse && that_present_lse))
3680
          return false;
3681
        if (!this.lse.equals(that.lse))
3682
          return false;
3683
      }
3684
 
3685
      return true;
3686
    }
3687
 
3688
    @Override
3689
    public int hashCode() {
3690
      return 0;
3691
    }
3692
 
3430 rajveer 3693
    public int compareTo(getAllProviders_result other) {
3694
      if (!getClass().equals(other.getClass())) {
3695
        return getClass().getName().compareTo(other.getClass().getName());
3696
      }
3697
 
3698
      int lastComparison = 0;
3699
      getAllProviders_result typedOther = (getAllProviders_result)other;
3700
 
3701
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3702
      if (lastComparison != 0) {
3703
        return lastComparison;
3704
      }
3705
      if (isSetSuccess()) {
3706
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3707
        if (lastComparison != 0) {
3708
          return lastComparison;
3709
        }
3710
      }
3711
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3712
      if (lastComparison != 0) {
3713
        return lastComparison;
3714
      }
3715
      if (isSetLse()) {
3716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3717
        if (lastComparison != 0) {
3718
          return lastComparison;
3719
        }
3720
      }
3721
      return 0;
3722
    }
3723
 
3724
    public _Fields fieldForId(int fieldId) {
3725
      return _Fields.findByThriftId(fieldId);
3726
    }
3727
 
3728
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3729
      org.apache.thrift.protocol.TField field;
674 chandransh 3730
      iprot.readStructBegin();
3731
      while (true)
3732
      {
3733
        field = iprot.readFieldBegin();
3430 rajveer 3734
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3735
          break;
3736
        }
3430 rajveer 3737
        switch (field.id) {
3738
          case 0: // SUCCESS
3739
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3740
              {
7792 anupam.sin 3741
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3742
                this.success = new ArrayList<Provider>(_list4.size);
3743
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3744
                {
7792 anupam.sin 3745
                  Provider _elem6; // required
3746
                  _elem6 = new Provider();
3747
                  _elem6.read(iprot);
3748
                  this.success.add(_elem6);
674 chandransh 3749
                }
3430 rajveer 3750
                iprot.readListEnd();
674 chandransh 3751
              }
3430 rajveer 3752
            } else { 
3753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3754
            }
3755
            break;
3756
          case 1: // LSE
3757
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3758
              this.lse = new LogisticsServiceException();
3759
              this.lse.read(iprot);
3760
            } else { 
3761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3762
            }
3763
            break;
3764
          default:
3765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3766
        }
3430 rajveer 3767
        iprot.readFieldEnd();
674 chandransh 3768
      }
3769
      iprot.readStructEnd();
3770
      validate();
3771
    }
3772
 
3430 rajveer 3773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3774
      oprot.writeStructBegin(STRUCT_DESC);
3775
 
3776
      if (this.isSetSuccess()) {
3777
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3778
        {
3430 rajveer 3779
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3780
          for (Provider _iter7 : this.success)
674 chandransh 3781
          {
7792 anupam.sin 3782
            _iter7.write(oprot);
674 chandransh 3783
          }
3784
          oprot.writeListEnd();
3785
        }
3786
        oprot.writeFieldEnd();
3787
      } else if (this.isSetLse()) {
3788
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3789
        this.lse.write(oprot);
3790
        oprot.writeFieldEnd();
3791
      }
3792
      oprot.writeFieldStop();
3793
      oprot.writeStructEnd();
3794
    }
3795
 
3796
    @Override
3797
    public String toString() {
3798
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3799
      boolean first = true;
3800
 
3801
      sb.append("success:");
3802
      if (this.success == null) {
3803
        sb.append("null");
3804
      } else {
3805
        sb.append(this.success);
3806
      }
3807
      first = false;
3808
      if (!first) sb.append(", ");
3809
      sb.append("lse:");
3810
      if (this.lse == null) {
3811
        sb.append("null");
3812
      } else {
3813
        sb.append(this.lse);
3814
      }
3815
      first = false;
3816
      sb.append(")");
3817
      return sb.toString();
3818
    }
3819
 
3430 rajveer 3820
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3821
      // check for required fields
3822
    }
3823
 
3430 rajveer 3824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3825
      try {
3826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3827
      } catch (org.apache.thrift.TException te) {
3828
        throw new java.io.IOException(te);
3829
      }
3830
    }
3831
 
3832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3833
      try {
3834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3835
      } catch (org.apache.thrift.TException te) {
3836
        throw new java.io.IOException(te);
3837
      }
3838
    }
3839
 
674 chandransh 3840
  }
3841
 
3430 rajveer 3842
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3844
 
3430 rajveer 3845
    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);
3846
    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 3847
    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 3848
 
3430 rajveer 3849
    private long itemId; // required
3850
    private String destination_pin; // required
4630 mandeep.dh 3851
    private DeliveryType type; // required
471 rajveer 3852
 
3853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3854
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3855
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3856
      DESTINATION_PIN((short)2, "destination_pin"),
3857
      /**
3858
       * 
3859
       * @see DeliveryType
3860
       */
3861
      TYPE((short)3, "type");
471 rajveer 3862
 
3863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3864
 
3865
      static {
3866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3867
          byName.put(field.getFieldName(), field);
3868
        }
3869
      }
3870
 
3871
      /**
3872
       * Find the _Fields constant that matches fieldId, or null if its not found.
3873
       */
3874
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3875
        switch(fieldId) {
3876
          case 1: // ITEM_ID
3877
            return ITEM_ID;
3878
          case 2: // DESTINATION_PIN
3879
            return DESTINATION_PIN;
4630 mandeep.dh 3880
          case 3: // TYPE
3881
            return TYPE;
3430 rajveer 3882
          default:
3883
            return null;
3884
        }
471 rajveer 3885
      }
3886
 
3887
      /**
3888
       * Find the _Fields constant that matches fieldId, throwing an exception
3889
       * if it is not found.
3890
       */
3891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3892
        _Fields fields = findByThriftId(fieldId);
3893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3894
        return fields;
3895
      }
3896
 
3897
      /**
3898
       * Find the _Fields constant that matches name, or null if its not found.
3899
       */
3900
      public static _Fields findByName(String name) {
3901
        return byName.get(name);
3902
      }
3903
 
3904
      private final short _thriftId;
3905
      private final String _fieldName;
3906
 
3907
      _Fields(short thriftId, String fieldName) {
3908
        _thriftId = thriftId;
3909
        _fieldName = fieldName;
3910
      }
3911
 
3912
      public short getThriftFieldId() {
3913
        return _thriftId;
3914
      }
3915
 
3916
      public String getFieldName() {
3917
        return _fieldName;
3918
      }
3919
    }
3920
 
3921
    // isset id assignments
3922
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3923
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3924
 
3430 rajveer 3925
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3926
    static {
3430 rajveer 3927
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3928
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3930
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3932
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3933
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3936
    }
3937
 
3938
    public getLogisticsEstimation_args() {
3939
    }
3940
 
3941
    public getLogisticsEstimation_args(
3942
      long itemId,
4630 mandeep.dh 3943
      String destination_pin,
3944
      DeliveryType type)
471 rajveer 3945
    {
3946
      this();
3947
      this.itemId = itemId;
3948
      setItemIdIsSet(true);
3949
      this.destination_pin = destination_pin;
4630 mandeep.dh 3950
      this.type = type;
471 rajveer 3951
    }
3952
 
3953
    /**
3954
     * Performs a deep copy on <i>other</i>.
3955
     */
3956
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3957
      __isset_bit_vector.clear();
3958
      __isset_bit_vector.or(other.__isset_bit_vector);
3959
      this.itemId = other.itemId;
3960
      if (other.isSetDestination_pin()) {
3961
        this.destination_pin = other.destination_pin;
3962
      }
4630 mandeep.dh 3963
      if (other.isSetType()) {
3964
        this.type = other.type;
3965
      }
471 rajveer 3966
    }
3967
 
3968
    public getLogisticsEstimation_args deepCopy() {
3969
      return new getLogisticsEstimation_args(this);
3970
    }
3971
 
3430 rajveer 3972
    @Override
3973
    public void clear() {
3974
      setItemIdIsSet(false);
3975
      this.itemId = 0;
3976
      this.destination_pin = null;
4630 mandeep.dh 3977
      this.type = null;
471 rajveer 3978
    }
3979
 
3980
    public long getItemId() {
3981
      return this.itemId;
3982
    }
3983
 
3430 rajveer 3984
    public void setItemId(long itemId) {
471 rajveer 3985
      this.itemId = itemId;
3986
      setItemIdIsSet(true);
3987
    }
3988
 
3989
    public void unsetItemId() {
3990
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3991
    }
3992
 
3430 rajveer 3993
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3994
    public boolean isSetItemId() {
3995
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3996
    }
3997
 
3998
    public void setItemIdIsSet(boolean value) {
3999
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4000
    }
4001
 
4002
    public String getDestination_pin() {
4003
      return this.destination_pin;
4004
    }
4005
 
3430 rajveer 4006
    public void setDestination_pin(String destination_pin) {
471 rajveer 4007
      this.destination_pin = destination_pin;
4008
    }
4009
 
4010
    public void unsetDestination_pin() {
4011
      this.destination_pin = null;
4012
    }
4013
 
3430 rajveer 4014
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 4015
    public boolean isSetDestination_pin() {
4016
      return this.destination_pin != null;
4017
    }
4018
 
4019
    public void setDestination_pinIsSet(boolean value) {
4020
      if (!value) {
4021
        this.destination_pin = null;
4022
      }
4023
    }
4024
 
4630 mandeep.dh 4025
    /**
4026
     * 
4027
     * @see DeliveryType
4028
     */
4029
    public DeliveryType getType() {
4030
      return this.type;
4031
    }
4032
 
4033
    /**
4034
     * 
4035
     * @see DeliveryType
4036
     */
4037
    public void setType(DeliveryType type) {
4038
      this.type = type;
4039
    }
4040
 
4041
    public void unsetType() {
4042
      this.type = null;
4043
    }
4044
 
4045
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4046
    public boolean isSetType() {
4047
      return this.type != null;
4048
    }
4049
 
4050
    public void setTypeIsSet(boolean value) {
4051
      if (!value) {
4052
        this.type = null;
4053
      }
4054
    }
4055
 
471 rajveer 4056
    public void setFieldValue(_Fields field, Object value) {
4057
      switch (field) {
4058
      case ITEM_ID:
4059
        if (value == null) {
4060
          unsetItemId();
4061
        } else {
4062
          setItemId((Long)value);
4063
        }
4064
        break;
4065
 
4066
      case DESTINATION_PIN:
4067
        if (value == null) {
4068
          unsetDestination_pin();
4069
        } else {
4070
          setDestination_pin((String)value);
4071
        }
4072
        break;
4073
 
4630 mandeep.dh 4074
      case TYPE:
4075
        if (value == null) {
4076
          unsetType();
4077
        } else {
4078
          setType((DeliveryType)value);
4079
        }
4080
        break;
4081
 
471 rajveer 4082
      }
4083
    }
4084
 
4085
    public Object getFieldValue(_Fields field) {
4086
      switch (field) {
4087
      case ITEM_ID:
3430 rajveer 4088
        return Long.valueOf(getItemId());
471 rajveer 4089
 
4090
      case DESTINATION_PIN:
4091
        return getDestination_pin();
4092
 
4630 mandeep.dh 4093
      case TYPE:
4094
        return getType();
4095
 
471 rajveer 4096
      }
4097
      throw new IllegalStateException();
4098
    }
4099
 
3430 rajveer 4100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4101
    public boolean isSet(_Fields field) {
4102
      if (field == null) {
4103
        throw new IllegalArgumentException();
4104
      }
471 rajveer 4105
 
4106
      switch (field) {
4107
      case ITEM_ID:
4108
        return isSetItemId();
4109
      case DESTINATION_PIN:
4110
        return isSetDestination_pin();
4630 mandeep.dh 4111
      case TYPE:
4112
        return isSetType();
471 rajveer 4113
      }
4114
      throw new IllegalStateException();
4115
    }
4116
 
4117
    @Override
4118
    public boolean equals(Object that) {
4119
      if (that == null)
4120
        return false;
4121
      if (that instanceof getLogisticsEstimation_args)
4122
        return this.equals((getLogisticsEstimation_args)that);
4123
      return false;
4124
    }
4125
 
4126
    public boolean equals(getLogisticsEstimation_args that) {
4127
      if (that == null)
4128
        return false;
4129
 
4130
      boolean this_present_itemId = true;
4131
      boolean that_present_itemId = true;
4132
      if (this_present_itemId || that_present_itemId) {
4133
        if (!(this_present_itemId && that_present_itemId))
4134
          return false;
4135
        if (this.itemId != that.itemId)
4136
          return false;
4137
      }
4138
 
4139
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4140
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4141
      if (this_present_destination_pin || that_present_destination_pin) {
4142
        if (!(this_present_destination_pin && that_present_destination_pin))
4143
          return false;
4144
        if (!this.destination_pin.equals(that.destination_pin))
4145
          return false;
4146
      }
4147
 
4630 mandeep.dh 4148
      boolean this_present_type = true && this.isSetType();
4149
      boolean that_present_type = true && that.isSetType();
4150
      if (this_present_type || that_present_type) {
4151
        if (!(this_present_type && that_present_type))
4152
          return false;
4153
        if (!this.type.equals(that.type))
4154
          return false;
4155
      }
4156
 
471 rajveer 4157
      return true;
4158
    }
4159
 
4160
    @Override
4161
    public int hashCode() {
4162
      return 0;
4163
    }
4164
 
4165
    public int compareTo(getLogisticsEstimation_args other) {
4166
      if (!getClass().equals(other.getClass())) {
4167
        return getClass().getName().compareTo(other.getClass().getName());
4168
      }
4169
 
4170
      int lastComparison = 0;
4171
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4172
 
3430 rajveer 4173
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4174
      if (lastComparison != 0) {
4175
        return lastComparison;
4176
      }
3430 rajveer 4177
      if (isSetItemId()) {
4178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4179
        if (lastComparison != 0) {
4180
          return lastComparison;
4181
        }
471 rajveer 4182
      }
3430 rajveer 4183
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4184
      if (lastComparison != 0) {
4185
        return lastComparison;
4186
      }
3430 rajveer 4187
      if (isSetDestination_pin()) {
4188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4189
        if (lastComparison != 0) {
4190
          return lastComparison;
4191
        }
471 rajveer 4192
      }
4630 mandeep.dh 4193
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4194
      if (lastComparison != 0) {
4195
        return lastComparison;
4196
      }
4197
      if (isSetType()) {
4198
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4199
        if (lastComparison != 0) {
4200
          return lastComparison;
4201
        }
4202
      }
471 rajveer 4203
      return 0;
4204
    }
4205
 
3430 rajveer 4206
    public _Fields fieldForId(int fieldId) {
4207
      return _Fields.findByThriftId(fieldId);
4208
    }
4209
 
4210
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4211
      org.apache.thrift.protocol.TField field;
471 rajveer 4212
      iprot.readStructBegin();
4213
      while (true)
4214
      {
4215
        field = iprot.readFieldBegin();
3430 rajveer 4216
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4217
          break;
4218
        }
3430 rajveer 4219
        switch (field.id) {
4220
          case 1: // ITEM_ID
4221
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4222
              this.itemId = iprot.readI64();
4223
              setItemIdIsSet(true);
4224
            } else { 
4225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4226
            }
4227
            break;
4228
          case 2: // DESTINATION_PIN
4229
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4230
              this.destination_pin = iprot.readString();
4231
            } else { 
4232
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4233
            }
4234
            break;
4630 mandeep.dh 4235
          case 3: // TYPE
4236
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4237
              this.type = DeliveryType.findByValue(iprot.readI32());
4238
            } else { 
4239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4240
            }
4241
            break;
3430 rajveer 4242
          default:
4243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4244
        }
3430 rajveer 4245
        iprot.readFieldEnd();
471 rajveer 4246
      }
4247
      iprot.readStructEnd();
4248
      validate();
4249
    }
4250
 
3430 rajveer 4251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4252
      validate();
4253
 
4254
      oprot.writeStructBegin(STRUCT_DESC);
4255
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4256
      oprot.writeI64(this.itemId);
4257
      oprot.writeFieldEnd();
4258
      if (this.destination_pin != null) {
4259
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4260
        oprot.writeString(this.destination_pin);
4261
        oprot.writeFieldEnd();
4262
      }
4630 mandeep.dh 4263
      if (this.type != null) {
4264
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4265
        oprot.writeI32(this.type.getValue());
4266
        oprot.writeFieldEnd();
4267
      }
471 rajveer 4268
      oprot.writeFieldStop();
4269
      oprot.writeStructEnd();
4270
    }
4271
 
4272
    @Override
4273
    public String toString() {
4274
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4275
      boolean first = true;
4276
 
4277
      sb.append("itemId:");
4278
      sb.append(this.itemId);
4279
      first = false;
4280
      if (!first) sb.append(", ");
4281
      sb.append("destination_pin:");
4282
      if (this.destination_pin == null) {
4283
        sb.append("null");
4284
      } else {
4285
        sb.append(this.destination_pin);
4286
      }
4287
      first = false;
4630 mandeep.dh 4288
      if (!first) sb.append(", ");
4289
      sb.append("type:");
4290
      if (this.type == null) {
4291
        sb.append("null");
4292
      } else {
4293
        sb.append(this.type);
4294
      }
4295
      first = false;
471 rajveer 4296
      sb.append(")");
4297
      return sb.toString();
4298
    }
4299
 
3430 rajveer 4300
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4301
      // check for required fields
4302
    }
4303
 
3430 rajveer 4304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4305
      try {
4306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4307
      } catch (org.apache.thrift.TException te) {
4308
        throw new java.io.IOException(te);
4309
      }
4310
    }
4311
 
4312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4313
      try {
4314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4315
      } catch (org.apache.thrift.TException te) {
4316
        throw new java.io.IOException(te);
4317
      }
4318
    }
4319
 
471 rajveer 4320
  }
4321
 
3430 rajveer 4322
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4324
 
3430 rajveer 4325
    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);
4326
    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 4327
 
3430 rajveer 4328
    private LogisticsInfo success; // required
4329
    private LogisticsServiceException se; // required
471 rajveer 4330
 
4331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4333
      SUCCESS((short)0, "success"),
4334
      SE((short)1, "se");
4335
 
4336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4337
 
4338
      static {
4339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4340
          byName.put(field.getFieldName(), field);
4341
        }
4342
      }
4343
 
4344
      /**
4345
       * Find the _Fields constant that matches fieldId, or null if its not found.
4346
       */
4347
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4348
        switch(fieldId) {
4349
          case 0: // SUCCESS
4350
            return SUCCESS;
4351
          case 1: // SE
4352
            return SE;
4353
          default:
4354
            return null;
4355
        }
471 rajveer 4356
      }
4357
 
4358
      /**
4359
       * Find the _Fields constant that matches fieldId, throwing an exception
4360
       * if it is not found.
4361
       */
4362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4363
        _Fields fields = findByThriftId(fieldId);
4364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4365
        return fields;
4366
      }
4367
 
4368
      /**
4369
       * Find the _Fields constant that matches name, or null if its not found.
4370
       */
4371
      public static _Fields findByName(String name) {
4372
        return byName.get(name);
4373
      }
4374
 
4375
      private final short _thriftId;
4376
      private final String _fieldName;
4377
 
4378
      _Fields(short thriftId, String fieldName) {
4379
        _thriftId = thriftId;
4380
        _fieldName = fieldName;
4381
      }
4382
 
4383
      public short getThriftFieldId() {
4384
        return _thriftId;
4385
      }
4386
 
4387
      public String getFieldName() {
4388
        return _fieldName;
4389
      }
4390
    }
4391
 
4392
    // isset id assignments
4393
 
3430 rajveer 4394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4395
    static {
3430 rajveer 4396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4397
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4398
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4399
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4403
    }
4404
 
4405
    public getLogisticsEstimation_result() {
4406
    }
4407
 
4408
    public getLogisticsEstimation_result(
648 chandransh 4409
      LogisticsInfo success,
471 rajveer 4410
      LogisticsServiceException se)
4411
    {
4412
      this();
4413
      this.success = success;
4414
      this.se = se;
4415
    }
4416
 
4417
    /**
4418
     * Performs a deep copy on <i>other</i>.
4419
     */
4420
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4421
      if (other.isSetSuccess()) {
648 chandransh 4422
        this.success = new LogisticsInfo(other.success);
471 rajveer 4423
      }
4424
      if (other.isSetSe()) {
4425
        this.se = new LogisticsServiceException(other.se);
4426
      }
4427
    }
4428
 
4429
    public getLogisticsEstimation_result deepCopy() {
4430
      return new getLogisticsEstimation_result(this);
4431
    }
4432
 
3430 rajveer 4433
    @Override
4434
    public void clear() {
4435
      this.success = null;
4436
      this.se = null;
471 rajveer 4437
    }
4438
 
648 chandransh 4439
    public LogisticsInfo getSuccess() {
471 rajveer 4440
      return this.success;
4441
    }
4442
 
3430 rajveer 4443
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4444
      this.success = success;
4445
    }
4446
 
4447
    public void unsetSuccess() {
4448
      this.success = null;
4449
    }
4450
 
3430 rajveer 4451
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4452
    public boolean isSetSuccess() {
4453
      return this.success != null;
4454
    }
4455
 
4456
    public void setSuccessIsSet(boolean value) {
4457
      if (!value) {
4458
        this.success = null;
4459
      }
4460
    }
4461
 
4462
    public LogisticsServiceException getSe() {
4463
      return this.se;
4464
    }
4465
 
3430 rajveer 4466
    public void setSe(LogisticsServiceException se) {
471 rajveer 4467
      this.se = se;
4468
    }
4469
 
4470
    public void unsetSe() {
4471
      this.se = null;
4472
    }
4473
 
3430 rajveer 4474
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4475
    public boolean isSetSe() {
4476
      return this.se != null;
4477
    }
4478
 
4479
    public void setSeIsSet(boolean value) {
4480
      if (!value) {
4481
        this.se = null;
4482
      }
4483
    }
4484
 
4485
    public void setFieldValue(_Fields field, Object value) {
4486
      switch (field) {
4487
      case SUCCESS:
4488
        if (value == null) {
4489
          unsetSuccess();
4490
        } else {
648 chandransh 4491
          setSuccess((LogisticsInfo)value);
471 rajveer 4492
        }
4493
        break;
4494
 
4495
      case SE:
4496
        if (value == null) {
4497
          unsetSe();
4498
        } else {
4499
          setSe((LogisticsServiceException)value);
4500
        }
4501
        break;
4502
 
4503
      }
4504
    }
4505
 
4506
    public Object getFieldValue(_Fields field) {
4507
      switch (field) {
4508
      case SUCCESS:
4509
        return getSuccess();
4510
 
4511
      case SE:
4512
        return getSe();
4513
 
4514
      }
4515
      throw new IllegalStateException();
4516
    }
4517
 
3430 rajveer 4518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4519
    public boolean isSet(_Fields field) {
4520
      if (field == null) {
4521
        throw new IllegalArgumentException();
4522
      }
471 rajveer 4523
 
4524
      switch (field) {
4525
      case SUCCESS:
4526
        return isSetSuccess();
4527
      case SE:
4528
        return isSetSe();
4529
      }
4530
      throw new IllegalStateException();
4531
    }
4532
 
4533
    @Override
4534
    public boolean equals(Object that) {
4535
      if (that == null)
4536
        return false;
4537
      if (that instanceof getLogisticsEstimation_result)
4538
        return this.equals((getLogisticsEstimation_result)that);
4539
      return false;
4540
    }
4541
 
4542
    public boolean equals(getLogisticsEstimation_result that) {
4543
      if (that == null)
4544
        return false;
4545
 
4546
      boolean this_present_success = true && this.isSetSuccess();
4547
      boolean that_present_success = true && that.isSetSuccess();
4548
      if (this_present_success || that_present_success) {
4549
        if (!(this_present_success && that_present_success))
4550
          return false;
4551
        if (!this.success.equals(that.success))
4552
          return false;
4553
      }
4554
 
4555
      boolean this_present_se = true && this.isSetSe();
4556
      boolean that_present_se = true && that.isSetSe();
4557
      if (this_present_se || that_present_se) {
4558
        if (!(this_present_se && that_present_se))
4559
          return false;
4560
        if (!this.se.equals(that.se))
4561
          return false;
4562
      }
4563
 
4564
      return true;
4565
    }
4566
 
4567
    @Override
4568
    public int hashCode() {
4569
      return 0;
4570
    }
4571
 
4572
    public int compareTo(getLogisticsEstimation_result other) {
4573
      if (!getClass().equals(other.getClass())) {
4574
        return getClass().getName().compareTo(other.getClass().getName());
4575
      }
4576
 
4577
      int lastComparison = 0;
4578
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4579
 
3430 rajveer 4580
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4581
      if (lastComparison != 0) {
4582
        return lastComparison;
4583
      }
3430 rajveer 4584
      if (isSetSuccess()) {
4585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4586
        if (lastComparison != 0) {
4587
          return lastComparison;
4588
        }
471 rajveer 4589
      }
3430 rajveer 4590
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4591
      if (lastComparison != 0) {
4592
        return lastComparison;
4593
      }
3430 rajveer 4594
      if (isSetSe()) {
4595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4596
        if (lastComparison != 0) {
4597
          return lastComparison;
4598
        }
471 rajveer 4599
      }
4600
      return 0;
4601
    }
4602
 
3430 rajveer 4603
    public _Fields fieldForId(int fieldId) {
4604
      return _Fields.findByThriftId(fieldId);
4605
    }
4606
 
4607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4608
      org.apache.thrift.protocol.TField field;
471 rajveer 4609
      iprot.readStructBegin();
4610
      while (true)
4611
      {
4612
        field = iprot.readFieldBegin();
3430 rajveer 4613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4614
          break;
4615
        }
3430 rajveer 4616
        switch (field.id) {
4617
          case 0: // SUCCESS
4618
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4619
              this.success = new LogisticsInfo();
4620
              this.success.read(iprot);
4621
            } else { 
4622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4623
            }
4624
            break;
4625
          case 1: // SE
4626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4627
              this.se = new LogisticsServiceException();
4628
              this.se.read(iprot);
4629
            } else { 
4630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4631
            }
4632
            break;
4633
          default:
4634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4635
        }
3430 rajveer 4636
        iprot.readFieldEnd();
471 rajveer 4637
      }
4638
      iprot.readStructEnd();
4639
      validate();
4640
    }
4641
 
3430 rajveer 4642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4643
      oprot.writeStructBegin(STRUCT_DESC);
4644
 
4645
      if (this.isSetSuccess()) {
4646
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4647
        this.success.write(oprot);
4648
        oprot.writeFieldEnd();
4649
      } else if (this.isSetSe()) {
4650
        oprot.writeFieldBegin(SE_FIELD_DESC);
4651
        this.se.write(oprot);
4652
        oprot.writeFieldEnd();
4653
      }
4654
      oprot.writeFieldStop();
4655
      oprot.writeStructEnd();
4656
    }
4657
 
4658
    @Override
4659
    public String toString() {
4660
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4661
      boolean first = true;
4662
 
4663
      sb.append("success:");
4664
      if (this.success == null) {
4665
        sb.append("null");
4666
      } else {
4667
        sb.append(this.success);
4668
      }
4669
      first = false;
4670
      if (!first) sb.append(", ");
4671
      sb.append("se:");
4672
      if (this.se == null) {
4673
        sb.append("null");
4674
      } else {
4675
        sb.append(this.se);
4676
      }
4677
      first = false;
4678
      sb.append(")");
4679
      return sb.toString();
4680
    }
4681
 
3430 rajveer 4682
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4683
      // check for required fields
4684
    }
4685
 
3430 rajveer 4686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4687
      try {
4688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4689
      } catch (org.apache.thrift.TException te) {
4690
        throw new java.io.IOException(te);
4691
      }
4692
    }
4693
 
4694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4695
      try {
4696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4697
      } catch (org.apache.thrift.TException te) {
4698
        throw new java.io.IOException(te);
4699
      }
4700
    }
4701
 
471 rajveer 4702
  }
4703
 
7256 rajveer 4704
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4706
 
4707
    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);
4708
    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);
4709
    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);
4710
 
4711
    private long itemId; // required
4712
    private String destination_pin; // required
4713
    private DeliveryType type; // required
4714
 
4715
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4716
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4717
      ITEM_ID((short)1, "itemId"),
4718
      DESTINATION_PIN((short)2, "destination_pin"),
4719
      /**
4720
       * 
4721
       * @see DeliveryType
4722
       */
4723
      TYPE((short)3, "type");
4724
 
4725
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4726
 
4727
      static {
4728
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4729
          byName.put(field.getFieldName(), field);
4730
        }
4731
      }
4732
 
4733
      /**
4734
       * Find the _Fields constant that matches fieldId, or null if its not found.
4735
       */
4736
      public static _Fields findByThriftId(int fieldId) {
4737
        switch(fieldId) {
4738
          case 1: // ITEM_ID
4739
            return ITEM_ID;
4740
          case 2: // DESTINATION_PIN
4741
            return DESTINATION_PIN;
4742
          case 3: // TYPE
4743
            return TYPE;
4744
          default:
4745
            return null;
4746
        }
4747
      }
4748
 
4749
      /**
4750
       * Find the _Fields constant that matches fieldId, throwing an exception
4751
       * if it is not found.
4752
       */
4753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4754
        _Fields fields = findByThriftId(fieldId);
4755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4756
        return fields;
4757
      }
4758
 
4759
      /**
4760
       * Find the _Fields constant that matches name, or null if its not found.
4761
       */
4762
      public static _Fields findByName(String name) {
4763
        return byName.get(name);
4764
      }
4765
 
4766
      private final short _thriftId;
4767
      private final String _fieldName;
4768
 
4769
      _Fields(short thriftId, String fieldName) {
4770
        _thriftId = thriftId;
4771
        _fieldName = fieldName;
4772
      }
4773
 
4774
      public short getThriftFieldId() {
4775
        return _thriftId;
4776
      }
4777
 
4778
      public String getFieldName() {
4779
        return _fieldName;
4780
      }
4781
    }
4782
 
4783
    // isset id assignments
4784
    private static final int __ITEMID_ISSET_ID = 0;
4785
    private BitSet __isset_bit_vector = new BitSet(1);
4786
 
4787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4788
    static {
4789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4790
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4792
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4794
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4795
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4796
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4797
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4798
    }
4799
 
4800
    public getLogisticsEstimationForStore_args() {
4801
    }
4802
 
4803
    public getLogisticsEstimationForStore_args(
4804
      long itemId,
4805
      String destination_pin,
4806
      DeliveryType type)
4807
    {
4808
      this();
4809
      this.itemId = itemId;
4810
      setItemIdIsSet(true);
4811
      this.destination_pin = destination_pin;
4812
      this.type = type;
4813
    }
4814
 
4815
    /**
4816
     * Performs a deep copy on <i>other</i>.
4817
     */
4818
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4819
      __isset_bit_vector.clear();
4820
      __isset_bit_vector.or(other.__isset_bit_vector);
4821
      this.itemId = other.itemId;
4822
      if (other.isSetDestination_pin()) {
4823
        this.destination_pin = other.destination_pin;
4824
      }
4825
      if (other.isSetType()) {
4826
        this.type = other.type;
4827
      }
4828
    }
4829
 
4830
    public getLogisticsEstimationForStore_args deepCopy() {
4831
      return new getLogisticsEstimationForStore_args(this);
4832
    }
4833
 
4834
    @Override
4835
    public void clear() {
4836
      setItemIdIsSet(false);
4837
      this.itemId = 0;
4838
      this.destination_pin = null;
4839
      this.type = null;
4840
    }
4841
 
4842
    public long getItemId() {
4843
      return this.itemId;
4844
    }
4845
 
4846
    public void setItemId(long itemId) {
4847
      this.itemId = itemId;
4848
      setItemIdIsSet(true);
4849
    }
4850
 
4851
    public void unsetItemId() {
4852
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4853
    }
4854
 
4855
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4856
    public boolean isSetItemId() {
4857
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4858
    }
4859
 
4860
    public void setItemIdIsSet(boolean value) {
4861
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4862
    }
4863
 
4864
    public String getDestination_pin() {
4865
      return this.destination_pin;
4866
    }
4867
 
4868
    public void setDestination_pin(String destination_pin) {
4869
      this.destination_pin = destination_pin;
4870
    }
4871
 
4872
    public void unsetDestination_pin() {
4873
      this.destination_pin = null;
4874
    }
4875
 
4876
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4877
    public boolean isSetDestination_pin() {
4878
      return this.destination_pin != null;
4879
    }
4880
 
4881
    public void setDestination_pinIsSet(boolean value) {
4882
      if (!value) {
4883
        this.destination_pin = null;
4884
      }
4885
    }
4886
 
4887
    /**
4888
     * 
4889
     * @see DeliveryType
4890
     */
4891
    public DeliveryType getType() {
4892
      return this.type;
4893
    }
4894
 
4895
    /**
4896
     * 
4897
     * @see DeliveryType
4898
     */
4899
    public void setType(DeliveryType type) {
4900
      this.type = type;
4901
    }
4902
 
4903
    public void unsetType() {
4904
      this.type = null;
4905
    }
4906
 
4907
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4908
    public boolean isSetType() {
4909
      return this.type != null;
4910
    }
4911
 
4912
    public void setTypeIsSet(boolean value) {
4913
      if (!value) {
4914
        this.type = null;
4915
      }
4916
    }
4917
 
4918
    public void setFieldValue(_Fields field, Object value) {
4919
      switch (field) {
4920
      case ITEM_ID:
4921
        if (value == null) {
4922
          unsetItemId();
4923
        } else {
4924
          setItemId((Long)value);
4925
        }
4926
        break;
4927
 
4928
      case DESTINATION_PIN:
4929
        if (value == null) {
4930
          unsetDestination_pin();
4931
        } else {
4932
          setDestination_pin((String)value);
4933
        }
4934
        break;
4935
 
4936
      case TYPE:
4937
        if (value == null) {
4938
          unsetType();
4939
        } else {
4940
          setType((DeliveryType)value);
4941
        }
4942
        break;
4943
 
4944
      }
4945
    }
4946
 
4947
    public Object getFieldValue(_Fields field) {
4948
      switch (field) {
4949
      case ITEM_ID:
4950
        return Long.valueOf(getItemId());
4951
 
4952
      case DESTINATION_PIN:
4953
        return getDestination_pin();
4954
 
4955
      case TYPE:
4956
        return getType();
4957
 
4958
      }
4959
      throw new IllegalStateException();
4960
    }
4961
 
4962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4963
    public boolean isSet(_Fields field) {
4964
      if (field == null) {
4965
        throw new IllegalArgumentException();
4966
      }
4967
 
4968
      switch (field) {
4969
      case ITEM_ID:
4970
        return isSetItemId();
4971
      case DESTINATION_PIN:
4972
        return isSetDestination_pin();
4973
      case TYPE:
4974
        return isSetType();
4975
      }
4976
      throw new IllegalStateException();
4977
    }
4978
 
4979
    @Override
4980
    public boolean equals(Object that) {
4981
      if (that == null)
4982
        return false;
4983
      if (that instanceof getLogisticsEstimationForStore_args)
4984
        return this.equals((getLogisticsEstimationForStore_args)that);
4985
      return false;
4986
    }
4987
 
4988
    public boolean equals(getLogisticsEstimationForStore_args that) {
4989
      if (that == null)
4990
        return false;
4991
 
4992
      boolean this_present_itemId = true;
4993
      boolean that_present_itemId = true;
4994
      if (this_present_itemId || that_present_itemId) {
4995
        if (!(this_present_itemId && that_present_itemId))
4996
          return false;
4997
        if (this.itemId != that.itemId)
4998
          return false;
4999
      }
5000
 
5001
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
5002
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
5003
      if (this_present_destination_pin || that_present_destination_pin) {
5004
        if (!(this_present_destination_pin && that_present_destination_pin))
5005
          return false;
5006
        if (!this.destination_pin.equals(that.destination_pin))
5007
          return false;
5008
      }
5009
 
5010
      boolean this_present_type = true && this.isSetType();
5011
      boolean that_present_type = true && that.isSetType();
5012
      if (this_present_type || that_present_type) {
5013
        if (!(this_present_type && that_present_type))
5014
          return false;
5015
        if (!this.type.equals(that.type))
5016
          return false;
5017
      }
5018
 
5019
      return true;
5020
    }
5021
 
5022
    @Override
5023
    public int hashCode() {
5024
      return 0;
5025
    }
5026
 
5027
    public int compareTo(getLogisticsEstimationForStore_args other) {
5028
      if (!getClass().equals(other.getClass())) {
5029
        return getClass().getName().compareTo(other.getClass().getName());
5030
      }
5031
 
5032
      int lastComparison = 0;
5033
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
5034
 
5035
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
5036
      if (lastComparison != 0) {
5037
        return lastComparison;
5038
      }
5039
      if (isSetItemId()) {
5040
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
5041
        if (lastComparison != 0) {
5042
          return lastComparison;
5043
        }
5044
      }
5045
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
5046
      if (lastComparison != 0) {
5047
        return lastComparison;
5048
      }
5049
      if (isSetDestination_pin()) {
5050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
5051
        if (lastComparison != 0) {
5052
          return lastComparison;
5053
        }
5054
      }
5055
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
5056
      if (lastComparison != 0) {
5057
        return lastComparison;
5058
      }
5059
      if (isSetType()) {
5060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5061
        if (lastComparison != 0) {
5062
          return lastComparison;
5063
        }
5064
      }
5065
      return 0;
5066
    }
5067
 
5068
    public _Fields fieldForId(int fieldId) {
5069
      return _Fields.findByThriftId(fieldId);
5070
    }
5071
 
5072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5073
      org.apache.thrift.protocol.TField field;
5074
      iprot.readStructBegin();
5075
      while (true)
5076
      {
5077
        field = iprot.readFieldBegin();
5078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5079
          break;
5080
        }
5081
        switch (field.id) {
5082
          case 1: // ITEM_ID
5083
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5084
              this.itemId = iprot.readI64();
5085
              setItemIdIsSet(true);
5086
            } else { 
5087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5088
            }
5089
            break;
5090
          case 2: // DESTINATION_PIN
5091
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5092
              this.destination_pin = iprot.readString();
5093
            } else { 
5094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5095
            }
5096
            break;
5097
          case 3: // TYPE
5098
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5099
              this.type = DeliveryType.findByValue(iprot.readI32());
5100
            } else { 
5101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5102
            }
5103
            break;
5104
          default:
5105
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5106
        }
5107
        iprot.readFieldEnd();
5108
      }
5109
      iprot.readStructEnd();
5110
      validate();
5111
    }
5112
 
5113
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5114
      validate();
5115
 
5116
      oprot.writeStructBegin(STRUCT_DESC);
5117
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5118
      oprot.writeI64(this.itemId);
5119
      oprot.writeFieldEnd();
5120
      if (this.destination_pin != null) {
5121
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
5122
        oprot.writeString(this.destination_pin);
5123
        oprot.writeFieldEnd();
5124
      }
5125
      if (this.type != null) {
5126
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5127
        oprot.writeI32(this.type.getValue());
5128
        oprot.writeFieldEnd();
5129
      }
5130
      oprot.writeFieldStop();
5131
      oprot.writeStructEnd();
5132
    }
5133
 
5134
    @Override
5135
    public String toString() {
5136
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
5137
      boolean first = true;
5138
 
5139
      sb.append("itemId:");
5140
      sb.append(this.itemId);
5141
      first = false;
5142
      if (!first) sb.append(", ");
5143
      sb.append("destination_pin:");
5144
      if (this.destination_pin == null) {
5145
        sb.append("null");
5146
      } else {
5147
        sb.append(this.destination_pin);
5148
      }
5149
      first = false;
5150
      if (!first) sb.append(", ");
5151
      sb.append("type:");
5152
      if (this.type == null) {
5153
        sb.append("null");
5154
      } else {
5155
        sb.append(this.type);
5156
      }
5157
      first = false;
5158
      sb.append(")");
5159
      return sb.toString();
5160
    }
5161
 
5162
    public void validate() throws org.apache.thrift.TException {
5163
      // check for required fields
5164
    }
5165
 
5166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5167
      try {
5168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5169
      } catch (org.apache.thrift.TException te) {
5170
        throw new java.io.IOException(te);
5171
      }
5172
    }
5173
 
5174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5175
      try {
5176
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5177
        __isset_bit_vector = new BitSet(1);
5178
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5179
      } catch (org.apache.thrift.TException te) {
5180
        throw new java.io.IOException(te);
5181
      }
5182
    }
5183
 
5184
  }
5185
 
5186
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5187
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5188
 
5189
    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);
5190
    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);
5191
 
5192
    private LogisticsInfo success; // required
5193
    private LogisticsServiceException se; // required
5194
 
5195
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5196
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5197
      SUCCESS((short)0, "success"),
5198
      SE((short)1, "se");
5199
 
5200
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5201
 
5202
      static {
5203
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5204
          byName.put(field.getFieldName(), field);
5205
        }
5206
      }
5207
 
5208
      /**
5209
       * Find the _Fields constant that matches fieldId, or null if its not found.
5210
       */
5211
      public static _Fields findByThriftId(int fieldId) {
5212
        switch(fieldId) {
5213
          case 0: // SUCCESS
5214
            return SUCCESS;
5215
          case 1: // SE
5216
            return SE;
5217
          default:
5218
            return null;
5219
        }
5220
      }
5221
 
5222
      /**
5223
       * Find the _Fields constant that matches fieldId, throwing an exception
5224
       * if it is not found.
5225
       */
5226
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5227
        _Fields fields = findByThriftId(fieldId);
5228
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5229
        return fields;
5230
      }
5231
 
5232
      /**
5233
       * Find the _Fields constant that matches name, or null if its not found.
5234
       */
5235
      public static _Fields findByName(String name) {
5236
        return byName.get(name);
5237
      }
5238
 
5239
      private final short _thriftId;
5240
      private final String _fieldName;
5241
 
5242
      _Fields(short thriftId, String fieldName) {
5243
        _thriftId = thriftId;
5244
        _fieldName = fieldName;
5245
      }
5246
 
5247
      public short getThriftFieldId() {
5248
        return _thriftId;
5249
      }
5250
 
5251
      public String getFieldName() {
5252
        return _fieldName;
5253
      }
5254
    }
5255
 
5256
    // isset id assignments
5257
 
5258
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5259
    static {
5260
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5261
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5262
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5263
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5265
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5266
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5267
    }
5268
 
5269
    public getLogisticsEstimationForStore_result() {
5270
    }
5271
 
5272
    public getLogisticsEstimationForStore_result(
5273
      LogisticsInfo success,
5274
      LogisticsServiceException se)
5275
    {
5276
      this();
5277
      this.success = success;
5278
      this.se = se;
5279
    }
5280
 
5281
    /**
5282
     * Performs a deep copy on <i>other</i>.
5283
     */
5284
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5285
      if (other.isSetSuccess()) {
5286
        this.success = new LogisticsInfo(other.success);
5287
      }
5288
      if (other.isSetSe()) {
5289
        this.se = new LogisticsServiceException(other.se);
5290
      }
5291
    }
5292
 
5293
    public getLogisticsEstimationForStore_result deepCopy() {
5294
      return new getLogisticsEstimationForStore_result(this);
5295
    }
5296
 
5297
    @Override
5298
    public void clear() {
5299
      this.success = null;
5300
      this.se = null;
5301
    }
5302
 
5303
    public LogisticsInfo getSuccess() {
5304
      return this.success;
5305
    }
5306
 
5307
    public void setSuccess(LogisticsInfo success) {
5308
      this.success = success;
5309
    }
5310
 
5311
    public void unsetSuccess() {
5312
      this.success = null;
5313
    }
5314
 
5315
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5316
    public boolean isSetSuccess() {
5317
      return this.success != null;
5318
    }
5319
 
5320
    public void setSuccessIsSet(boolean value) {
5321
      if (!value) {
5322
        this.success = null;
5323
      }
5324
    }
5325
 
5326
    public LogisticsServiceException getSe() {
5327
      return this.se;
5328
    }
5329
 
5330
    public void setSe(LogisticsServiceException se) {
5331
      this.se = se;
5332
    }
5333
 
5334
    public void unsetSe() {
5335
      this.se = null;
5336
    }
5337
 
5338
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5339
    public boolean isSetSe() {
5340
      return this.se != null;
5341
    }
5342
 
5343
    public void setSeIsSet(boolean value) {
5344
      if (!value) {
5345
        this.se = null;
5346
      }
5347
    }
5348
 
5349
    public void setFieldValue(_Fields field, Object value) {
5350
      switch (field) {
5351
      case SUCCESS:
5352
        if (value == null) {
5353
          unsetSuccess();
5354
        } else {
5355
          setSuccess((LogisticsInfo)value);
5356
        }
5357
        break;
5358
 
5359
      case SE:
5360
        if (value == null) {
5361
          unsetSe();
5362
        } else {
5363
          setSe((LogisticsServiceException)value);
5364
        }
5365
        break;
5366
 
5367
      }
5368
    }
5369
 
5370
    public Object getFieldValue(_Fields field) {
5371
      switch (field) {
5372
      case SUCCESS:
5373
        return getSuccess();
5374
 
5375
      case SE:
5376
        return getSe();
5377
 
5378
      }
5379
      throw new IllegalStateException();
5380
    }
5381
 
5382
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5383
    public boolean isSet(_Fields field) {
5384
      if (field == null) {
5385
        throw new IllegalArgumentException();
5386
      }
5387
 
5388
      switch (field) {
5389
      case SUCCESS:
5390
        return isSetSuccess();
5391
      case SE:
5392
        return isSetSe();
5393
      }
5394
      throw new IllegalStateException();
5395
    }
5396
 
5397
    @Override
5398
    public boolean equals(Object that) {
5399
      if (that == null)
5400
        return false;
5401
      if (that instanceof getLogisticsEstimationForStore_result)
5402
        return this.equals((getLogisticsEstimationForStore_result)that);
5403
      return false;
5404
    }
5405
 
5406
    public boolean equals(getLogisticsEstimationForStore_result that) {
5407
      if (that == null)
5408
        return false;
5409
 
5410
      boolean this_present_success = true && this.isSetSuccess();
5411
      boolean that_present_success = true && that.isSetSuccess();
5412
      if (this_present_success || that_present_success) {
5413
        if (!(this_present_success && that_present_success))
5414
          return false;
5415
        if (!this.success.equals(that.success))
5416
          return false;
5417
      }
5418
 
5419
      boolean this_present_se = true && this.isSetSe();
5420
      boolean that_present_se = true && that.isSetSe();
5421
      if (this_present_se || that_present_se) {
5422
        if (!(this_present_se && that_present_se))
5423
          return false;
5424
        if (!this.se.equals(that.se))
5425
          return false;
5426
      }
5427
 
5428
      return true;
5429
    }
5430
 
5431
    @Override
5432
    public int hashCode() {
5433
      return 0;
5434
    }
5435
 
5436
    public int compareTo(getLogisticsEstimationForStore_result other) {
5437
      if (!getClass().equals(other.getClass())) {
5438
        return getClass().getName().compareTo(other.getClass().getName());
5439
      }
5440
 
5441
      int lastComparison = 0;
5442
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5443
 
5444
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5445
      if (lastComparison != 0) {
5446
        return lastComparison;
5447
      }
5448
      if (isSetSuccess()) {
5449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5450
        if (lastComparison != 0) {
5451
          return lastComparison;
5452
        }
5453
      }
5454
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5455
      if (lastComparison != 0) {
5456
        return lastComparison;
5457
      }
5458
      if (isSetSe()) {
5459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5460
        if (lastComparison != 0) {
5461
          return lastComparison;
5462
        }
5463
      }
5464
      return 0;
5465
    }
5466
 
5467
    public _Fields fieldForId(int fieldId) {
5468
      return _Fields.findByThriftId(fieldId);
5469
    }
5470
 
5471
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5472
      org.apache.thrift.protocol.TField field;
5473
      iprot.readStructBegin();
5474
      while (true)
5475
      {
5476
        field = iprot.readFieldBegin();
5477
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5478
          break;
5479
        }
5480
        switch (field.id) {
5481
          case 0: // SUCCESS
5482
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5483
              this.success = new LogisticsInfo();
5484
              this.success.read(iprot);
5485
            } else { 
5486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5487
            }
5488
            break;
5489
          case 1: // SE
5490
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5491
              this.se = new LogisticsServiceException();
5492
              this.se.read(iprot);
5493
            } else { 
5494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5495
            }
5496
            break;
5497
          default:
5498
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5499
        }
5500
        iprot.readFieldEnd();
5501
      }
5502
      iprot.readStructEnd();
5503
      validate();
5504
    }
5505
 
5506
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5507
      oprot.writeStructBegin(STRUCT_DESC);
5508
 
5509
      if (this.isSetSuccess()) {
5510
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5511
        this.success.write(oprot);
5512
        oprot.writeFieldEnd();
5513
      } else if (this.isSetSe()) {
5514
        oprot.writeFieldBegin(SE_FIELD_DESC);
5515
        this.se.write(oprot);
5516
        oprot.writeFieldEnd();
5517
      }
5518
      oprot.writeFieldStop();
5519
      oprot.writeStructEnd();
5520
    }
5521
 
5522
    @Override
5523
    public String toString() {
5524
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5525
      boolean first = true;
5526
 
5527
      sb.append("success:");
5528
      if (this.success == null) {
5529
        sb.append("null");
5530
      } else {
5531
        sb.append(this.success);
5532
      }
5533
      first = false;
5534
      if (!first) sb.append(", ");
5535
      sb.append("se:");
5536
      if (this.se == null) {
5537
        sb.append("null");
5538
      } else {
5539
        sb.append(this.se);
5540
      }
5541
      first = false;
5542
      sb.append(")");
5543
      return sb.toString();
5544
    }
5545
 
5546
    public void validate() throws org.apache.thrift.TException {
5547
      // check for required fields
5548
    }
5549
 
5550
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5551
      try {
5552
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5553
      } catch (org.apache.thrift.TException te) {
5554
        throw new java.io.IOException(te);
5555
      }
5556
    }
5557
 
5558
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5559
      try {
5560
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5561
      } catch (org.apache.thrift.TException te) {
5562
        throw new java.io.IOException(te);
5563
      }
5564
    }
5565
 
5566
  }
5567
 
3430 rajveer 5568
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5569
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5570
 
3430 rajveer 5571
    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);
5572
    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);
5573
    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 5574
    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 5575
 
3430 rajveer 5576
    private String destination_pincode; // required
5577
    private long item_id; // required
5578
    private DeliveryType type; // required
5766 rajveer 5579
    private PickUpType pickUp; // required
471 rajveer 5580
 
5581
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5582
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5583
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5584
      ITEM_ID((short)2, "item_id"),
5585
      /**
5586
       * 
5587
       * @see DeliveryType
5588
       */
5766 rajveer 5589
      TYPE((short)3, "type"),
5590
      /**
5591
       * 
5592
       * @see PickUpType
5593
       */
5594
      PICK_UP((short)4, "pickUp");
471 rajveer 5595
 
5596
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5597
 
5598
      static {
5599
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5600
          byName.put(field.getFieldName(), field);
5601
        }
5602
      }
5603
 
5604
      /**
5605
       * Find the _Fields constant that matches fieldId, or null if its not found.
5606
       */
5607
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5608
        switch(fieldId) {
5609
          case 1: // DESTINATION_PINCODE
5610
            return DESTINATION_PINCODE;
5611
          case 2: // ITEM_ID
5612
            return ITEM_ID;
5613
          case 3: // TYPE
5614
            return TYPE;
5766 rajveer 5615
          case 4: // PICK_UP
5616
            return PICK_UP;
3430 rajveer 5617
          default:
5618
            return null;
5619
        }
471 rajveer 5620
      }
5621
 
5622
      /**
5623
       * Find the _Fields constant that matches fieldId, throwing an exception
5624
       * if it is not found.
5625
       */
5626
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5627
        _Fields fields = findByThriftId(fieldId);
5628
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5629
        return fields;
5630
      }
5631
 
5632
      /**
5633
       * Find the _Fields constant that matches name, or null if its not found.
5634
       */
5635
      public static _Fields findByName(String name) {
5636
        return byName.get(name);
5637
      }
5638
 
5639
      private final short _thriftId;
5640
      private final String _fieldName;
5641
 
5642
      _Fields(short thriftId, String fieldName) {
5643
        _thriftId = thriftId;
5644
        _fieldName = fieldName;
5645
      }
5646
 
5647
      public short getThriftFieldId() {
5648
        return _thriftId;
5649
      }
5650
 
5651
      public String getFieldName() {
5652
        return _fieldName;
5653
      }
5654
    }
5655
 
5656
    // isset id assignments
715 rajveer 5657
    private static final int __ITEM_ID_ISSET_ID = 0;
5658
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5659
 
3430 rajveer 5660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5661
    static {
3430 rajveer 5662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5663
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5664
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5665
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5666
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5667
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5668
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5669
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5670
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5671
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5672
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5673
    }
5674
 
648 chandransh 5675
    public getLogisticsInfo_args() {
477 rajveer 5676
    }
5677
 
648 chandransh 5678
    public getLogisticsInfo_args(
5679
      String destination_pincode,
3044 chandransh 5680
      long item_id,
5766 rajveer 5681
      DeliveryType type,
5682
      PickUpType pickUp)
477 rajveer 5683
    {
5684
      this();
648 chandransh 5685
      this.destination_pincode = destination_pincode;
5686
      this.item_id = item_id;
715 rajveer 5687
      setItem_idIsSet(true);
3044 chandransh 5688
      this.type = type;
5766 rajveer 5689
      this.pickUp = pickUp;
477 rajveer 5690
    }
5691
 
5692
    /**
5693
     * Performs a deep copy on <i>other</i>.
5694
     */
648 chandransh 5695
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5696
      __isset_bit_vector.clear();
5697
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5698
      if (other.isSetDestination_pincode()) {
5699
        this.destination_pincode = other.destination_pincode;
477 rajveer 5700
      }
715 rajveer 5701
      this.item_id = other.item_id;
3044 chandransh 5702
      if (other.isSetType()) {
5703
        this.type = other.type;
5704
      }
5766 rajveer 5705
      if (other.isSetPickUp()) {
5706
        this.pickUp = other.pickUp;
5707
      }
477 rajveer 5708
    }
5709
 
648 chandransh 5710
    public getLogisticsInfo_args deepCopy() {
5711
      return new getLogisticsInfo_args(this);
477 rajveer 5712
    }
5713
 
3430 rajveer 5714
    @Override
5715
    public void clear() {
5716
      this.destination_pincode = null;
5717
      setItem_idIsSet(false);
5718
      this.item_id = 0;
5719
      this.type = null;
5766 rajveer 5720
      this.pickUp = null;
477 rajveer 5721
    }
5722
 
648 chandransh 5723
    public String getDestination_pincode() {
5724
      return this.destination_pincode;
477 rajveer 5725
    }
5726
 
3430 rajveer 5727
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5728
      this.destination_pincode = destination_pincode;
477 rajveer 5729
    }
5730
 
648 chandransh 5731
    public void unsetDestination_pincode() {
5732
      this.destination_pincode = null;
477 rajveer 5733
    }
5734
 
3430 rajveer 5735
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5736
    public boolean isSetDestination_pincode() {
5737
      return this.destination_pincode != null;
477 rajveer 5738
    }
5739
 
648 chandransh 5740
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5741
      if (!value) {
648 chandransh 5742
        this.destination_pincode = null;
477 rajveer 5743
      }
5744
    }
5745
 
715 rajveer 5746
    public long getItem_id() {
648 chandransh 5747
      return this.item_id;
477 rajveer 5748
    }
5749
 
3430 rajveer 5750
    public void setItem_id(long item_id) {
648 chandransh 5751
      this.item_id = item_id;
715 rajveer 5752
      setItem_idIsSet(true);
477 rajveer 5753
    }
5754
 
648 chandransh 5755
    public void unsetItem_id() {
715 rajveer 5756
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5757
    }
5758
 
3430 rajveer 5759
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5760
    public boolean isSetItem_id() {
715 rajveer 5761
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5762
    }
5763
 
648 chandransh 5764
    public void setItem_idIsSet(boolean value) {
715 rajveer 5765
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5766
    }
5767
 
3044 chandransh 5768
    /**
5769
     * 
5770
     * @see DeliveryType
5771
     */
5772
    public DeliveryType getType() {
5773
      return this.type;
5774
    }
5775
 
5776
    /**
5777
     * 
5778
     * @see DeliveryType
5779
     */
3430 rajveer 5780
    public void setType(DeliveryType type) {
3044 chandransh 5781
      this.type = type;
5782
    }
5783
 
5784
    public void unsetType() {
5785
      this.type = null;
5786
    }
5787
 
3430 rajveer 5788
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5789
    public boolean isSetType() {
5790
      return this.type != null;
5791
    }
5792
 
5793
    public void setTypeIsSet(boolean value) {
5794
      if (!value) {
5795
        this.type = null;
5796
      }
5797
    }
5798
 
5766 rajveer 5799
    /**
5800
     * 
5801
     * @see PickUpType
5802
     */
5803
    public PickUpType getPickUp() {
5804
      return this.pickUp;
5805
    }
5806
 
5807
    /**
5808
     * 
5809
     * @see PickUpType
5810
     */
5811
    public void setPickUp(PickUpType pickUp) {
5812
      this.pickUp = pickUp;
5813
    }
5814
 
5815
    public void unsetPickUp() {
5816
      this.pickUp = null;
5817
    }
5818
 
5819
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5820
    public boolean isSetPickUp() {
5821
      return this.pickUp != null;
5822
    }
5823
 
5824
    public void setPickUpIsSet(boolean value) {
5825
      if (!value) {
5826
        this.pickUp = null;
5827
      }
5828
    }
5829
 
477 rajveer 5830
    public void setFieldValue(_Fields field, Object value) {
5831
      switch (field) {
648 chandransh 5832
      case DESTINATION_PINCODE:
477 rajveer 5833
        if (value == null) {
648 chandransh 5834
          unsetDestination_pincode();
477 rajveer 5835
        } else {
648 chandransh 5836
          setDestination_pincode((String)value);
477 rajveer 5837
        }
5838
        break;
5839
 
648 chandransh 5840
      case ITEM_ID:
477 rajveer 5841
        if (value == null) {
648 chandransh 5842
          unsetItem_id();
477 rajveer 5843
        } else {
715 rajveer 5844
          setItem_id((Long)value);
477 rajveer 5845
        }
5846
        break;
5847
 
3044 chandransh 5848
      case TYPE:
5849
        if (value == null) {
5850
          unsetType();
5851
        } else {
5852
          setType((DeliveryType)value);
5853
        }
5854
        break;
5855
 
5766 rajveer 5856
      case PICK_UP:
5857
        if (value == null) {
5858
          unsetPickUp();
5859
        } else {
5860
          setPickUp((PickUpType)value);
5861
        }
5862
        break;
5863
 
477 rajveer 5864
      }
5865
    }
5866
 
5867
    public Object getFieldValue(_Fields field) {
5868
      switch (field) {
648 chandransh 5869
      case DESTINATION_PINCODE:
5870
        return getDestination_pincode();
477 rajveer 5871
 
648 chandransh 5872
      case ITEM_ID:
3430 rajveer 5873
        return Long.valueOf(getItem_id());
477 rajveer 5874
 
3044 chandransh 5875
      case TYPE:
5876
        return getType();
5877
 
5766 rajveer 5878
      case PICK_UP:
5879
        return getPickUp();
5880
 
477 rajveer 5881
      }
5882
      throw new IllegalStateException();
5883
    }
5884
 
3430 rajveer 5885
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5886
    public boolean isSet(_Fields field) {
5887
      if (field == null) {
5888
        throw new IllegalArgumentException();
5889
      }
477 rajveer 5890
 
5891
      switch (field) {
648 chandransh 5892
      case DESTINATION_PINCODE:
5893
        return isSetDestination_pincode();
5894
      case ITEM_ID:
5895
        return isSetItem_id();
3044 chandransh 5896
      case TYPE:
5897
        return isSetType();
5766 rajveer 5898
      case PICK_UP:
5899
        return isSetPickUp();
477 rajveer 5900
      }
5901
      throw new IllegalStateException();
5902
    }
5903
 
5904
    @Override
5905
    public boolean equals(Object that) {
5906
      if (that == null)
5907
        return false;
648 chandransh 5908
      if (that instanceof getLogisticsInfo_args)
5909
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5910
      return false;
5911
    }
5912
 
648 chandransh 5913
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5914
      if (that == null)
5915
        return false;
5916
 
648 chandransh 5917
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5918
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5919
      if (this_present_destination_pincode || that_present_destination_pincode) {
5920
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5921
          return false;
648 chandransh 5922
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5923
          return false;
5924
      }
5925
 
715 rajveer 5926
      boolean this_present_item_id = true;
5927
      boolean that_present_item_id = true;
648 chandransh 5928
      if (this_present_item_id || that_present_item_id) {
5929
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5930
          return false;
715 rajveer 5931
        if (this.item_id != that.item_id)
477 rajveer 5932
          return false;
5933
      }
5934
 
3044 chandransh 5935
      boolean this_present_type = true && this.isSetType();
5936
      boolean that_present_type = true && that.isSetType();
5937
      if (this_present_type || that_present_type) {
5938
        if (!(this_present_type && that_present_type))
5939
          return false;
5940
        if (!this.type.equals(that.type))
5941
          return false;
5942
      }
5943
 
5766 rajveer 5944
      boolean this_present_pickUp = true && this.isSetPickUp();
5945
      boolean that_present_pickUp = true && that.isSetPickUp();
5946
      if (this_present_pickUp || that_present_pickUp) {
5947
        if (!(this_present_pickUp && that_present_pickUp))
5948
          return false;
5949
        if (!this.pickUp.equals(that.pickUp))
5950
          return false;
5951
      }
5952
 
477 rajveer 5953
      return true;
5954
    }
5955
 
5956
    @Override
5957
    public int hashCode() {
5958
      return 0;
5959
    }
5960
 
648 chandransh 5961
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5962
      if (!getClass().equals(other.getClass())) {
5963
        return getClass().getName().compareTo(other.getClass().getName());
5964
      }
5965
 
5966
      int lastComparison = 0;
648 chandransh 5967
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5968
 
3430 rajveer 5969
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5970
      if (lastComparison != 0) {
5971
        return lastComparison;
5972
      }
3430 rajveer 5973
      if (isSetDestination_pincode()) {
5974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5975
        if (lastComparison != 0) {
5976
          return lastComparison;
5977
        }
477 rajveer 5978
      }
3430 rajveer 5979
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5980
      if (lastComparison != 0) {
5981
        return lastComparison;
5982
      }
3430 rajveer 5983
      if (isSetItem_id()) {
5984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5985
        if (lastComparison != 0) {
5986
          return lastComparison;
5987
        }
477 rajveer 5988
      }
3430 rajveer 5989
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5990
      if (lastComparison != 0) {
5991
        return lastComparison;
5992
      }
3430 rajveer 5993
      if (isSetType()) {
5994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5995
        if (lastComparison != 0) {
5996
          return lastComparison;
5997
        }
3044 chandransh 5998
      }
5766 rajveer 5999
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
6000
      if (lastComparison != 0) {
6001
        return lastComparison;
6002
      }
6003
      if (isSetPickUp()) {
6004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
6005
        if (lastComparison != 0) {
6006
          return lastComparison;
6007
        }
6008
      }
477 rajveer 6009
      return 0;
6010
    }
6011
 
3430 rajveer 6012
    public _Fields fieldForId(int fieldId) {
6013
      return _Fields.findByThriftId(fieldId);
6014
    }
6015
 
6016
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6017
      org.apache.thrift.protocol.TField field;
477 rajveer 6018
      iprot.readStructBegin();
6019
      while (true)
6020
      {
6021
        field = iprot.readFieldBegin();
3430 rajveer 6022
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 6023
          break;
6024
        }
3430 rajveer 6025
        switch (field.id) {
6026
          case 1: // DESTINATION_PINCODE
6027
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6028
              this.destination_pincode = iprot.readString();
6029
            } else { 
6030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6031
            }
6032
            break;
6033
          case 2: // ITEM_ID
6034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6035
              this.item_id = iprot.readI64();
6036
              setItem_idIsSet(true);
6037
            } else { 
6038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6039
            }
6040
            break;
6041
          case 3: // TYPE
6042
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6043
              this.type = DeliveryType.findByValue(iprot.readI32());
6044
            } else { 
6045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6046
            }
6047
            break;
5766 rajveer 6048
          case 4: // PICK_UP
6049
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6050
              this.pickUp = PickUpType.findByValue(iprot.readI32());
6051
            } else { 
6052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6053
            }
6054
            break;
3430 rajveer 6055
          default:
6056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 6057
        }
3430 rajveer 6058
        iprot.readFieldEnd();
477 rajveer 6059
      }
6060
      iprot.readStructEnd();
6061
      validate();
6062
    }
6063
 
3430 rajveer 6064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 6065
      validate();
6066
 
6067
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 6068
      if (this.destination_pincode != null) {
6069
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
6070
        oprot.writeString(this.destination_pincode);
477 rajveer 6071
        oprot.writeFieldEnd();
6072
      }
715 rajveer 6073
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
6074
      oprot.writeI64(this.item_id);
6075
      oprot.writeFieldEnd();
3044 chandransh 6076
      if (this.type != null) {
6077
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6078
        oprot.writeI32(this.type.getValue());
6079
        oprot.writeFieldEnd();
6080
      }
5766 rajveer 6081
      if (this.pickUp != null) {
6082
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
6083
        oprot.writeI32(this.pickUp.getValue());
6084
        oprot.writeFieldEnd();
6085
      }
477 rajveer 6086
      oprot.writeFieldStop();
6087
      oprot.writeStructEnd();
6088
    }
6089
 
6090
    @Override
6091
    public String toString() {
648 chandransh 6092
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 6093
      boolean first = true;
6094
 
648 chandransh 6095
      sb.append("destination_pincode:");
6096
      if (this.destination_pincode == null) {
477 rajveer 6097
        sb.append("null");
6098
      } else {
648 chandransh 6099
        sb.append(this.destination_pincode);
477 rajveer 6100
      }
6101
      first = false;
6102
      if (!first) sb.append(", ");
648 chandransh 6103
      sb.append("item_id:");
715 rajveer 6104
      sb.append(this.item_id);
477 rajveer 6105
      first = false;
3044 chandransh 6106
      if (!first) sb.append(", ");
6107
      sb.append("type:");
6108
      if (this.type == null) {
6109
        sb.append("null");
6110
      } else {
6111
        sb.append(this.type);
6112
      }
6113
      first = false;
5766 rajveer 6114
      if (!first) sb.append(", ");
6115
      sb.append("pickUp:");
6116
      if (this.pickUp == null) {
6117
        sb.append("null");
6118
      } else {
6119
        sb.append(this.pickUp);
6120
      }
6121
      first = false;
477 rajveer 6122
      sb.append(")");
6123
      return sb.toString();
6124
    }
6125
 
3430 rajveer 6126
    public void validate() throws org.apache.thrift.TException {
477 rajveer 6127
      // check for required fields
6128
    }
6129
 
3430 rajveer 6130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6131
      try {
6132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6133
      } catch (org.apache.thrift.TException te) {
6134
        throw new java.io.IOException(te);
6135
      }
6136
    }
6137
 
6138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6139
      try {
6140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6141
      } catch (org.apache.thrift.TException te) {
6142
        throw new java.io.IOException(te);
6143
      }
6144
    }
6145
 
477 rajveer 6146
  }
6147
 
3430 rajveer 6148
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
6149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 6150
 
3430 rajveer 6151
    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);
6152
    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 6153
 
3430 rajveer 6154
    private LogisticsInfo success; // required
6155
    private LogisticsServiceException se; // required
477 rajveer 6156
 
6157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6158
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6159
      SUCCESS((short)0, "success"),
6160
      SE((short)1, "se");
477 rajveer 6161
 
6162
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6163
 
6164
      static {
6165
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6166
          byName.put(field.getFieldName(), field);
6167
        }
6168
      }
6169
 
6170
      /**
6171
       * Find the _Fields constant that matches fieldId, or null if its not found.
6172
       */
6173
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6174
        switch(fieldId) {
6175
          case 0: // SUCCESS
6176
            return SUCCESS;
6177
          case 1: // SE
6178
            return SE;
6179
          default:
6180
            return null;
6181
        }
477 rajveer 6182
      }
6183
 
6184
      /**
6185
       * Find the _Fields constant that matches fieldId, throwing an exception
6186
       * if it is not found.
6187
       */
6188
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6189
        _Fields fields = findByThriftId(fieldId);
6190
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6191
        return fields;
6192
      }
6193
 
6194
      /**
6195
       * Find the _Fields constant that matches name, or null if its not found.
6196
       */
6197
      public static _Fields findByName(String name) {
6198
        return byName.get(name);
6199
      }
6200
 
6201
      private final short _thriftId;
6202
      private final String _fieldName;
6203
 
6204
      _Fields(short thriftId, String fieldName) {
6205
        _thriftId = thriftId;
6206
        _fieldName = fieldName;
6207
      }
6208
 
6209
      public short getThriftFieldId() {
6210
        return _thriftId;
6211
      }
6212
 
6213
      public String getFieldName() {
6214
        return _fieldName;
6215
      }
6216
    }
6217
 
412 ashish 6218
    // isset id assignments
6219
 
3430 rajveer 6220
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6221
    static {
3430 rajveer 6222
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6223
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6224
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6225
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6229
    }
6230
 
648 chandransh 6231
    public getLogisticsInfo_result() {
412 ashish 6232
    }
6233
 
648 chandransh 6234
    public getLogisticsInfo_result(
6235
      LogisticsInfo success,
6236
      LogisticsServiceException se)
412 ashish 6237
    {
6238
      this();
648 chandransh 6239
      this.success = success;
6240
      this.se = se;
412 ashish 6241
    }
6242
 
6243
    /**
6244
     * Performs a deep copy on <i>other</i>.
6245
     */
648 chandransh 6246
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6247
      if (other.isSetSuccess()) {
6248
        this.success = new LogisticsInfo(other.success);
412 ashish 6249
      }
648 chandransh 6250
      if (other.isSetSe()) {
6251
        this.se = new LogisticsServiceException(other.se);
6252
      }
412 ashish 6253
    }
6254
 
648 chandransh 6255
    public getLogisticsInfo_result deepCopy() {
6256
      return new getLogisticsInfo_result(this);
412 ashish 6257
    }
6258
 
3430 rajveer 6259
    @Override
6260
    public void clear() {
6261
      this.success = null;
6262
      this.se = null;
412 ashish 6263
    }
6264
 
648 chandransh 6265
    public LogisticsInfo getSuccess() {
6266
      return this.success;
412 ashish 6267
    }
6268
 
3430 rajveer 6269
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6270
      this.success = success;
412 ashish 6271
    }
6272
 
648 chandransh 6273
    public void unsetSuccess() {
6274
      this.success = null;
412 ashish 6275
    }
6276
 
3430 rajveer 6277
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6278
    public boolean isSetSuccess() {
6279
      return this.success != null;
412 ashish 6280
    }
6281
 
648 chandransh 6282
    public void setSuccessIsSet(boolean value) {
412 ashish 6283
      if (!value) {
648 chandransh 6284
        this.success = null;
412 ashish 6285
      }
6286
    }
6287
 
648 chandransh 6288
    public LogisticsServiceException getSe() {
6289
      return this.se;
412 ashish 6290
    }
6291
 
3430 rajveer 6292
    public void setSe(LogisticsServiceException se) {
648 chandransh 6293
      this.se = se;
412 ashish 6294
    }
6295
 
648 chandransh 6296
    public void unsetSe() {
6297
      this.se = null;
412 ashish 6298
    }
6299
 
3430 rajveer 6300
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6301
    public boolean isSetSe() {
6302
      return this.se != null;
412 ashish 6303
    }
6304
 
648 chandransh 6305
    public void setSeIsSet(boolean value) {
6306
      if (!value) {
6307
        this.se = null;
6308
      }
412 ashish 6309
    }
6310
 
6311
    public void setFieldValue(_Fields field, Object value) {
6312
      switch (field) {
648 chandransh 6313
      case SUCCESS:
412 ashish 6314
        if (value == null) {
648 chandransh 6315
          unsetSuccess();
412 ashish 6316
        } else {
648 chandransh 6317
          setSuccess((LogisticsInfo)value);
412 ashish 6318
        }
6319
        break;
6320
 
648 chandransh 6321
      case SE:
412 ashish 6322
        if (value == null) {
648 chandransh 6323
          unsetSe();
412 ashish 6324
        } else {
648 chandransh 6325
          setSe((LogisticsServiceException)value);
412 ashish 6326
        }
6327
        break;
6328
 
6329
      }
6330
    }
6331
 
6332
    public Object getFieldValue(_Fields field) {
6333
      switch (field) {
648 chandransh 6334
      case SUCCESS:
6335
        return getSuccess();
412 ashish 6336
 
648 chandransh 6337
      case SE:
6338
        return getSe();
412 ashish 6339
 
6340
      }
6341
      throw new IllegalStateException();
6342
    }
6343
 
3430 rajveer 6344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6345
    public boolean isSet(_Fields field) {
6346
      if (field == null) {
6347
        throw new IllegalArgumentException();
6348
      }
412 ashish 6349
 
6350
      switch (field) {
648 chandransh 6351
      case SUCCESS:
6352
        return isSetSuccess();
6353
      case SE:
6354
        return isSetSe();
412 ashish 6355
      }
6356
      throw new IllegalStateException();
6357
    }
6358
 
6359
    @Override
6360
    public boolean equals(Object that) {
6361
      if (that == null)
6362
        return false;
648 chandransh 6363
      if (that instanceof getLogisticsInfo_result)
6364
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6365
      return false;
6366
    }
6367
 
648 chandransh 6368
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6369
      if (that == null)
6370
        return false;
6371
 
648 chandransh 6372
      boolean this_present_success = true && this.isSetSuccess();
6373
      boolean that_present_success = true && that.isSetSuccess();
6374
      if (this_present_success || that_present_success) {
6375
        if (!(this_present_success && that_present_success))
412 ashish 6376
          return false;
648 chandransh 6377
        if (!this.success.equals(that.success))
412 ashish 6378
          return false;
6379
      }
6380
 
648 chandransh 6381
      boolean this_present_se = true && this.isSetSe();
6382
      boolean that_present_se = true && that.isSetSe();
6383
      if (this_present_se || that_present_se) {
6384
        if (!(this_present_se && that_present_se))
412 ashish 6385
          return false;
648 chandransh 6386
        if (!this.se.equals(that.se))
412 ashish 6387
          return false;
6388
      }
6389
 
6390
      return true;
6391
    }
6392
 
6393
    @Override
6394
    public int hashCode() {
6395
      return 0;
6396
    }
6397
 
648 chandransh 6398
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6399
      if (!getClass().equals(other.getClass())) {
6400
        return getClass().getName().compareTo(other.getClass().getName());
6401
      }
6402
 
6403
      int lastComparison = 0;
648 chandransh 6404
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6405
 
3430 rajveer 6406
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6407
      if (lastComparison != 0) {
6408
        return lastComparison;
6409
      }
3430 rajveer 6410
      if (isSetSuccess()) {
6411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6412
        if (lastComparison != 0) {
6413
          return lastComparison;
6414
        }
412 ashish 6415
      }
3430 rajveer 6416
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6417
      if (lastComparison != 0) {
6418
        return lastComparison;
6419
      }
3430 rajveer 6420
      if (isSetSe()) {
6421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6422
        if (lastComparison != 0) {
6423
          return lastComparison;
6424
        }
412 ashish 6425
      }
6426
      return 0;
6427
    }
6428
 
3430 rajveer 6429
    public _Fields fieldForId(int fieldId) {
6430
      return _Fields.findByThriftId(fieldId);
6431
    }
6432
 
6433
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6434
      org.apache.thrift.protocol.TField field;
412 ashish 6435
      iprot.readStructBegin();
6436
      while (true)
6437
      {
6438
        field = iprot.readFieldBegin();
3430 rajveer 6439
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6440
          break;
6441
        }
3430 rajveer 6442
        switch (field.id) {
6443
          case 0: // SUCCESS
6444
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6445
              this.success = new LogisticsInfo();
6446
              this.success.read(iprot);
6447
            } else { 
6448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6449
            }
6450
            break;
6451
          case 1: // SE
6452
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6453
              this.se = new LogisticsServiceException();
6454
              this.se.read(iprot);
6455
            } else { 
6456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6457
            }
6458
            break;
6459
          default:
6460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6461
        }
3430 rajveer 6462
        iprot.readFieldEnd();
412 ashish 6463
      }
6464
      iprot.readStructEnd();
6465
      validate();
6466
    }
6467
 
3430 rajveer 6468
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6469
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6470
 
648 chandransh 6471
      if (this.isSetSuccess()) {
6472
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6473
        this.success.write(oprot);
412 ashish 6474
        oprot.writeFieldEnd();
648 chandransh 6475
      } else if (this.isSetSe()) {
6476
        oprot.writeFieldBegin(SE_FIELD_DESC);
6477
        this.se.write(oprot);
6478
        oprot.writeFieldEnd();
412 ashish 6479
      }
6480
      oprot.writeFieldStop();
6481
      oprot.writeStructEnd();
6482
    }
6483
 
6484
    @Override
6485
    public String toString() {
648 chandransh 6486
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6487
      boolean first = true;
6488
 
648 chandransh 6489
      sb.append("success:");
6490
      if (this.success == null) {
412 ashish 6491
        sb.append("null");
6492
      } else {
648 chandransh 6493
        sb.append(this.success);
412 ashish 6494
      }
6495
      first = false;
6496
      if (!first) sb.append(", ");
648 chandransh 6497
      sb.append("se:");
6498
      if (this.se == null) {
6499
        sb.append("null");
6500
      } else {
6501
        sb.append(this.se);
6502
      }
412 ashish 6503
      first = false;
6504
      sb.append(")");
6505
      return sb.toString();
6506
    }
6507
 
3430 rajveer 6508
    public void validate() throws org.apache.thrift.TException {
412 ashish 6509
      // check for required fields
6510
    }
6511
 
3430 rajveer 6512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6513
      try {
6514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6515
      } catch (org.apache.thrift.TException te) {
6516
        throw new java.io.IOException(te);
6517
      }
6518
    }
6519
 
6520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6521
      try {
6522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6523
      } catch (org.apache.thrift.TException te) {
6524
        throw new java.io.IOException(te);
6525
      }
6526
    }
6527
 
412 ashish 6528
  }
6529
 
3430 rajveer 6530
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6532
 
3430 rajveer 6533
    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 6534
    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 6535
 
3430 rajveer 6536
    private long providerId; // required
20724 kshitij.so 6537
    private String logisticsTransactionId; // required
412 ashish 6538
 
6539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6541
      PROVIDER_ID((short)1, "providerId"),
20724 kshitij.so 6542
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
412 ashish 6543
 
6544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6545
 
6546
      static {
6547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6548
          byName.put(field.getFieldName(), field);
6549
        }
6550
      }
6551
 
6552
      /**
6553
       * Find the _Fields constant that matches fieldId, or null if its not found.
6554
       */
6555
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6556
        switch(fieldId) {
6557
          case 1: // PROVIDER_ID
6558
            return PROVIDER_ID;
20724 kshitij.so 6559
          case 2: // LOGISTICS_TRANSACTION_ID
6560
            return LOGISTICS_TRANSACTION_ID;
3430 rajveer 6561
          default:
6562
            return null;
6563
        }
412 ashish 6564
      }
6565
 
6566
      /**
6567
       * Find the _Fields constant that matches fieldId, throwing an exception
6568
       * if it is not found.
6569
       */
6570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6571
        _Fields fields = findByThriftId(fieldId);
6572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6573
        return fields;
6574
      }
6575
 
6576
      /**
6577
       * Find the _Fields constant that matches name, or null if its not found.
6578
       */
6579
      public static _Fields findByName(String name) {
6580
        return byName.get(name);
6581
      }
6582
 
6583
      private final short _thriftId;
6584
      private final String _fieldName;
6585
 
6586
      _Fields(short thriftId, String fieldName) {
6587
        _thriftId = thriftId;
6588
        _fieldName = fieldName;
6589
      }
6590
 
6591
      public short getThriftFieldId() {
6592
        return _thriftId;
6593
      }
6594
 
6595
      public String getFieldName() {
6596
        return _fieldName;
6597
      }
6598
    }
6599
 
6600
    // isset id assignments
648 chandransh 6601
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6602
    private BitSet __isset_bit_vector = new BitSet(1);
6603
 
3430 rajveer 6604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6605
    static {
3430 rajveer 6606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6607
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20724 kshitij.so 6609
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6613
    }
6614
 
6615
    public getEmptyAWB_args() {
6616
    }
6617
 
6618
    public getEmptyAWB_args(
5247 rajveer 6619
      long providerId,
20724 kshitij.so 6620
      String logisticsTransactionId)
412 ashish 6621
    {
6622
      this();
648 chandransh 6623
      this.providerId = providerId;
6624
      setProviderIdIsSet(true);
20724 kshitij.so 6625
      this.logisticsTransactionId = logisticsTransactionId;
412 ashish 6626
    }
6627
 
6628
    /**
6629
     * Performs a deep copy on <i>other</i>.
6630
     */
6631
    public getEmptyAWB_args(getEmptyAWB_args other) {
6632
      __isset_bit_vector.clear();
6633
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6634
      this.providerId = other.providerId;
20724 kshitij.so 6635
      if (other.isSetLogisticsTransactionId()) {
6636
        this.logisticsTransactionId = other.logisticsTransactionId;
5247 rajveer 6637
      }
412 ashish 6638
    }
6639
 
6640
    public getEmptyAWB_args deepCopy() {
6641
      return new getEmptyAWB_args(this);
6642
    }
6643
 
3430 rajveer 6644
    @Override
6645
    public void clear() {
6646
      setProviderIdIsSet(false);
6647
      this.providerId = 0;
20724 kshitij.so 6648
      this.logisticsTransactionId = null;
412 ashish 6649
    }
6650
 
648 chandransh 6651
    public long getProviderId() {
6652
      return this.providerId;
412 ashish 6653
    }
6654
 
3430 rajveer 6655
    public void setProviderId(long providerId) {
648 chandransh 6656
      this.providerId = providerId;
6657
      setProviderIdIsSet(true);
412 ashish 6658
    }
6659
 
648 chandransh 6660
    public void unsetProviderId() {
6661
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6662
    }
6663
 
3430 rajveer 6664
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6665
    public boolean isSetProviderId() {
6666
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6667
    }
6668
 
648 chandransh 6669
    public void setProviderIdIsSet(boolean value) {
6670
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6671
    }
6672
 
20724 kshitij.so 6673
    public String getLogisticsTransactionId() {
6674
      return this.logisticsTransactionId;
5247 rajveer 6675
    }
6676
 
20724 kshitij.so 6677
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6678
      this.logisticsTransactionId = logisticsTransactionId;
5247 rajveer 6679
    }
6680
 
20724 kshitij.so 6681
    public void unsetLogisticsTransactionId() {
6682
      this.logisticsTransactionId = null;
5247 rajveer 6683
    }
6684
 
20724 kshitij.so 6685
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6686
    public boolean isSetLogisticsTransactionId() {
6687
      return this.logisticsTransactionId != null;
5247 rajveer 6688
    }
6689
 
20724 kshitij.so 6690
    public void setLogisticsTransactionIdIsSet(boolean value) {
5247 rajveer 6691
      if (!value) {
20724 kshitij.so 6692
        this.logisticsTransactionId = null;
5247 rajveer 6693
      }
6694
    }
6695
 
412 ashish 6696
    public void setFieldValue(_Fields field, Object value) {
6697
      switch (field) {
6698
      case PROVIDER_ID:
6699
        if (value == null) {
648 chandransh 6700
          unsetProviderId();
412 ashish 6701
        } else {
648 chandransh 6702
          setProviderId((Long)value);
412 ashish 6703
        }
6704
        break;
6705
 
20724 kshitij.so 6706
      case LOGISTICS_TRANSACTION_ID:
5247 rajveer 6707
        if (value == null) {
20724 kshitij.so 6708
          unsetLogisticsTransactionId();
5247 rajveer 6709
        } else {
20724 kshitij.so 6710
          setLogisticsTransactionId((String)value);
5247 rajveer 6711
        }
6712
        break;
6713
 
412 ashish 6714
      }
6715
    }
6716
 
6717
    public Object getFieldValue(_Fields field) {
6718
      switch (field) {
6719
      case PROVIDER_ID:
3430 rajveer 6720
        return Long.valueOf(getProviderId());
412 ashish 6721
 
20724 kshitij.so 6722
      case LOGISTICS_TRANSACTION_ID:
6723
        return getLogisticsTransactionId();
5247 rajveer 6724
 
412 ashish 6725
      }
6726
      throw new IllegalStateException();
6727
    }
6728
 
3430 rajveer 6729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6730
    public boolean isSet(_Fields field) {
6731
      if (field == null) {
6732
        throw new IllegalArgumentException();
6733
      }
412 ashish 6734
 
6735
      switch (field) {
6736
      case PROVIDER_ID:
648 chandransh 6737
        return isSetProviderId();
20724 kshitij.so 6738
      case LOGISTICS_TRANSACTION_ID:
6739
        return isSetLogisticsTransactionId();
412 ashish 6740
      }
6741
      throw new IllegalStateException();
6742
    }
6743
 
6744
    @Override
6745
    public boolean equals(Object that) {
6746
      if (that == null)
6747
        return false;
6748
      if (that instanceof getEmptyAWB_args)
6749
        return this.equals((getEmptyAWB_args)that);
6750
      return false;
6751
    }
6752
 
6753
    public boolean equals(getEmptyAWB_args that) {
6754
      if (that == null)
6755
        return false;
6756
 
648 chandransh 6757
      boolean this_present_providerId = true;
6758
      boolean that_present_providerId = true;
6759
      if (this_present_providerId || that_present_providerId) {
6760
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6761
          return false;
648 chandransh 6762
        if (this.providerId != that.providerId)
412 ashish 6763
          return false;
6764
      }
6765
 
20724 kshitij.so 6766
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6767
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6768
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6769
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
5247 rajveer 6770
          return false;
20724 kshitij.so 6771
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
5247 rajveer 6772
          return false;
6773
      }
6774
 
412 ashish 6775
      return true;
6776
    }
6777
 
6778
    @Override
6779
    public int hashCode() {
6780
      return 0;
6781
    }
6782
 
6783
    public int compareTo(getEmptyAWB_args other) {
6784
      if (!getClass().equals(other.getClass())) {
6785
        return getClass().getName().compareTo(other.getClass().getName());
6786
      }
6787
 
6788
      int lastComparison = 0;
6789
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6790
 
3430 rajveer 6791
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6792
      if (lastComparison != 0) {
6793
        return lastComparison;
6794
      }
3430 rajveer 6795
      if (isSetProviderId()) {
6796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6797
        if (lastComparison != 0) {
6798
          return lastComparison;
6799
        }
412 ashish 6800
      }
20724 kshitij.so 6801
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
5247 rajveer 6802
      if (lastComparison != 0) {
6803
        return lastComparison;
6804
      }
20724 kshitij.so 6805
      if (isSetLogisticsTransactionId()) {
6806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
5247 rajveer 6807
        if (lastComparison != 0) {
6808
          return lastComparison;
6809
        }
6810
      }
412 ashish 6811
      return 0;
6812
    }
6813
 
3430 rajveer 6814
    public _Fields fieldForId(int fieldId) {
6815
      return _Fields.findByThriftId(fieldId);
6816
    }
6817
 
6818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6819
      org.apache.thrift.protocol.TField field;
412 ashish 6820
      iprot.readStructBegin();
6821
      while (true)
6822
      {
6823
        field = iprot.readFieldBegin();
3430 rajveer 6824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6825
          break;
6826
        }
3430 rajveer 6827
        switch (field.id) {
6828
          case 1: // PROVIDER_ID
6829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6830
              this.providerId = iprot.readI64();
6831
              setProviderIdIsSet(true);
6832
            } else { 
6833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6834
            }
6835
            break;
20724 kshitij.so 6836
          case 2: // LOGISTICS_TRANSACTION_ID
6837
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6838
              this.logisticsTransactionId = iprot.readString();
5247 rajveer 6839
            } else { 
6840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6841
            }
6842
            break;
3430 rajveer 6843
          default:
6844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6845
        }
3430 rajveer 6846
        iprot.readFieldEnd();
412 ashish 6847
      }
6848
      iprot.readStructEnd();
6849
      validate();
6850
    }
6851
 
3430 rajveer 6852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6853
      validate();
6854
 
6855
      oprot.writeStructBegin(STRUCT_DESC);
6856
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6857
      oprot.writeI64(this.providerId);
412 ashish 6858
      oprot.writeFieldEnd();
20724 kshitij.so 6859
      if (this.logisticsTransactionId != null) {
6860
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
6861
        oprot.writeString(this.logisticsTransactionId);
6862
        oprot.writeFieldEnd();
6863
      }
412 ashish 6864
      oprot.writeFieldStop();
6865
      oprot.writeStructEnd();
6866
    }
6867
 
6868
    @Override
6869
    public String toString() {
6870
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6871
      boolean first = true;
6872
 
648 chandransh 6873
      sb.append("providerId:");
6874
      sb.append(this.providerId);
412 ashish 6875
      first = false;
5247 rajveer 6876
      if (!first) sb.append(", ");
20724 kshitij.so 6877
      sb.append("logisticsTransactionId:");
6878
      if (this.logisticsTransactionId == null) {
5247 rajveer 6879
        sb.append("null");
6880
      } else {
20724 kshitij.so 6881
        sb.append(this.logisticsTransactionId);
5247 rajveer 6882
      }
6883
      first = false;
412 ashish 6884
      sb.append(")");
6885
      return sb.toString();
6886
    }
6887
 
3430 rajveer 6888
    public void validate() throws org.apache.thrift.TException {
412 ashish 6889
      // check for required fields
6890
    }
6891
 
3430 rajveer 6892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6893
      try {
6894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6895
      } catch (org.apache.thrift.TException te) {
6896
        throw new java.io.IOException(te);
6897
      }
6898
    }
6899
 
6900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6901
      try {
6902
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6903
        __isset_bit_vector = new BitSet(1);
6904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6905
      } catch (org.apache.thrift.TException te) {
6906
        throw new java.io.IOException(te);
6907
      }
6908
    }
6909
 
412 ashish 6910
  }
6911
 
3430 rajveer 6912
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6914
 
3430 rajveer 6915
    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);
6916
    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 6917
 
3430 rajveer 6918
    private String success; // required
6919
    private LogisticsServiceException se; // required
412 ashish 6920
 
6921
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6922
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6923
      SUCCESS((short)0, "success"),
6924
      SE((short)1, "se");
412 ashish 6925
 
6926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6927
 
6928
      static {
6929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6930
          byName.put(field.getFieldName(), field);
6931
        }
6932
      }
6933
 
6934
      /**
6935
       * Find the _Fields constant that matches fieldId, or null if its not found.
6936
       */
6937
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6938
        switch(fieldId) {
6939
          case 0: // SUCCESS
6940
            return SUCCESS;
6941
          case 1: // SE
6942
            return SE;
6943
          default:
6944
            return null;
6945
        }
412 ashish 6946
      }
6947
 
6948
      /**
6949
       * Find the _Fields constant that matches fieldId, throwing an exception
6950
       * if it is not found.
6951
       */
6952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6953
        _Fields fields = findByThriftId(fieldId);
6954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6955
        return fields;
6956
      }
6957
 
6958
      /**
6959
       * Find the _Fields constant that matches name, or null if its not found.
6960
       */
6961
      public static _Fields findByName(String name) {
6962
        return byName.get(name);
6963
      }
6964
 
6965
      private final short _thriftId;
6966
      private final String _fieldName;
6967
 
6968
      _Fields(short thriftId, String fieldName) {
6969
        _thriftId = thriftId;
6970
        _fieldName = fieldName;
6971
      }
6972
 
6973
      public short getThriftFieldId() {
6974
        return _thriftId;
6975
      }
6976
 
6977
      public String getFieldName() {
6978
        return _fieldName;
6979
      }
6980
    }
6981
 
6982
    // isset id assignments
6983
 
3430 rajveer 6984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6985
    static {
3430 rajveer 6986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6987
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6989
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6993
    }
6994
 
6995
    public getEmptyAWB_result() {
6996
    }
6997
 
6998
    public getEmptyAWB_result(
648 chandransh 6999
      String success,
7000
      LogisticsServiceException se)
412 ashish 7001
    {
7002
      this();
7003
      this.success = success;
648 chandransh 7004
      this.se = se;
412 ashish 7005
    }
7006
 
7007
    /**
7008
     * Performs a deep copy on <i>other</i>.
7009
     */
7010
    public getEmptyAWB_result(getEmptyAWB_result other) {
7011
      if (other.isSetSuccess()) {
7012
        this.success = other.success;
7013
      }
648 chandransh 7014
      if (other.isSetSe()) {
7015
        this.se = new LogisticsServiceException(other.se);
7016
      }
412 ashish 7017
    }
7018
 
7019
    public getEmptyAWB_result deepCopy() {
7020
      return new getEmptyAWB_result(this);
7021
    }
7022
 
3430 rajveer 7023
    @Override
7024
    public void clear() {
7025
      this.success = null;
7026
      this.se = null;
412 ashish 7027
    }
7028
 
7029
    public String getSuccess() {
7030
      return this.success;
7031
    }
7032
 
3430 rajveer 7033
    public void setSuccess(String success) {
412 ashish 7034
      this.success = success;
7035
    }
7036
 
7037
    public void unsetSuccess() {
7038
      this.success = null;
7039
    }
7040
 
3430 rajveer 7041
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7042
    public boolean isSetSuccess() {
7043
      return this.success != null;
7044
    }
7045
 
7046
    public void setSuccessIsSet(boolean value) {
7047
      if (!value) {
7048
        this.success = null;
7049
      }
7050
    }
7051
 
648 chandransh 7052
    public LogisticsServiceException getSe() {
7053
      return this.se;
412 ashish 7054
    }
7055
 
3430 rajveer 7056
    public void setSe(LogisticsServiceException se) {
648 chandransh 7057
      this.se = se;
412 ashish 7058
    }
7059
 
648 chandransh 7060
    public void unsetSe() {
7061
      this.se = null;
412 ashish 7062
    }
7063
 
3430 rajveer 7064
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7065
    public boolean isSetSe() {
7066
      return this.se != null;
412 ashish 7067
    }
7068
 
648 chandransh 7069
    public void setSeIsSet(boolean value) {
412 ashish 7070
      if (!value) {
648 chandransh 7071
        this.se = null;
412 ashish 7072
      }
7073
    }
7074
 
7075
    public void setFieldValue(_Fields field, Object value) {
7076
      switch (field) {
7077
      case SUCCESS:
7078
        if (value == null) {
7079
          unsetSuccess();
7080
        } else {
648 chandransh 7081
          setSuccess((String)value);
412 ashish 7082
        }
7083
        break;
7084
 
648 chandransh 7085
      case SE:
7086
        if (value == null) {
7087
          unsetSe();
7088
        } else {
7089
          setSe((LogisticsServiceException)value);
7090
        }
7091
        break;
7092
 
412 ashish 7093
      }
7094
    }
7095
 
7096
    public Object getFieldValue(_Fields field) {
7097
      switch (field) {
7098
      case SUCCESS:
7099
        return getSuccess();
7100
 
648 chandransh 7101
      case SE:
7102
        return getSe();
7103
 
412 ashish 7104
      }
7105
      throw new IllegalStateException();
7106
    }
7107
 
3430 rajveer 7108
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7109
    public boolean isSet(_Fields field) {
7110
      if (field == null) {
7111
        throw new IllegalArgumentException();
7112
      }
412 ashish 7113
 
7114
      switch (field) {
7115
      case SUCCESS:
7116
        return isSetSuccess();
648 chandransh 7117
      case SE:
7118
        return isSetSe();
412 ashish 7119
      }
7120
      throw new IllegalStateException();
7121
    }
7122
 
7123
    @Override
7124
    public boolean equals(Object that) {
7125
      if (that == null)
7126
        return false;
648 chandransh 7127
      if (that instanceof getEmptyAWB_result)
7128
        return this.equals((getEmptyAWB_result)that);
412 ashish 7129
      return false;
7130
    }
7131
 
648 chandransh 7132
    public boolean equals(getEmptyAWB_result that) {
412 ashish 7133
      if (that == null)
7134
        return false;
7135
 
7136
      boolean this_present_success = true && this.isSetSuccess();
7137
      boolean that_present_success = true && that.isSetSuccess();
7138
      if (this_present_success || that_present_success) {
7139
        if (!(this_present_success && that_present_success))
7140
          return false;
7141
        if (!this.success.equals(that.success))
7142
          return false;
7143
      }
7144
 
648 chandransh 7145
      boolean this_present_se = true && this.isSetSe();
7146
      boolean that_present_se = true && that.isSetSe();
7147
      if (this_present_se || that_present_se) {
7148
        if (!(this_present_se && that_present_se))
7149
          return false;
7150
        if (!this.se.equals(that.se))
7151
          return false;
7152
      }
7153
 
412 ashish 7154
      return true;
7155
    }
7156
 
7157
    @Override
7158
    public int hashCode() {
7159
      return 0;
7160
    }
7161
 
648 chandransh 7162
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7163
      if (!getClass().equals(other.getClass())) {
7164
        return getClass().getName().compareTo(other.getClass().getName());
7165
      }
7166
 
7167
      int lastComparison = 0;
648 chandransh 7168
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7169
 
3430 rajveer 7170
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7171
      if (lastComparison != 0) {
7172
        return lastComparison;
7173
      }
3430 rajveer 7174
      if (isSetSuccess()) {
7175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7176
        if (lastComparison != 0) {
7177
          return lastComparison;
7178
        }
412 ashish 7179
      }
3430 rajveer 7180
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7181
      if (lastComparison != 0) {
7182
        return lastComparison;
7183
      }
3430 rajveer 7184
      if (isSetSe()) {
7185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7186
        if (lastComparison != 0) {
7187
          return lastComparison;
7188
        }
412 ashish 7189
      }
7190
      return 0;
7191
    }
7192
 
3430 rajveer 7193
    public _Fields fieldForId(int fieldId) {
7194
      return _Fields.findByThriftId(fieldId);
7195
    }
7196
 
7197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7198
      org.apache.thrift.protocol.TField field;
412 ashish 7199
      iprot.readStructBegin();
7200
      while (true)
7201
      {
7202
        field = iprot.readFieldBegin();
3430 rajveer 7203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7204
          break;
7205
        }
3430 rajveer 7206
        switch (field.id) {
7207
          case 0: // SUCCESS
7208
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7209
              this.success = iprot.readString();
7210
            } else { 
7211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7212
            }
7213
            break;
7214
          case 1: // SE
7215
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7216
              this.se = new LogisticsServiceException();
7217
              this.se.read(iprot);
7218
            } else { 
7219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7220
            }
7221
            break;
7222
          default:
7223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7224
        }
3430 rajveer 7225
        iprot.readFieldEnd();
412 ashish 7226
      }
7227
      iprot.readStructEnd();
7228
      validate();
7229
    }
7230
 
3430 rajveer 7231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7232
      oprot.writeStructBegin(STRUCT_DESC);
7233
 
7234
      if (this.isSetSuccess()) {
7235
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7236
        oprot.writeString(this.success);
412 ashish 7237
        oprot.writeFieldEnd();
648 chandransh 7238
      } else if (this.isSetSe()) {
7239
        oprot.writeFieldBegin(SE_FIELD_DESC);
7240
        this.se.write(oprot);
7241
        oprot.writeFieldEnd();
412 ashish 7242
      }
7243
      oprot.writeFieldStop();
7244
      oprot.writeStructEnd();
7245
    }
7246
 
7247
    @Override
7248
    public String toString() {
648 chandransh 7249
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7250
      boolean first = true;
7251
 
7252
      sb.append("success:");
7253
      if (this.success == null) {
7254
        sb.append("null");
7255
      } else {
7256
        sb.append(this.success);
7257
      }
7258
      first = false;
648 chandransh 7259
      if (!first) sb.append(", ");
7260
      sb.append("se:");
7261
      if (this.se == null) {
442 rajveer 7262
        sb.append("null");
7263
      } else {
648 chandransh 7264
        sb.append(this.se);
442 rajveer 7265
      }
7266
      first = false;
7267
      sb.append(")");
7268
      return sb.toString();
7269
    }
7270
 
3430 rajveer 7271
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7272
      // check for required fields
7273
    }
7274
 
3430 rajveer 7275
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7276
      try {
7277
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7278
      } catch (org.apache.thrift.TException te) {
7279
        throw new java.io.IOException(te);
7280
      }
7281
    }
7282
 
7283
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7284
      try {
7285
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7286
      } catch (org.apache.thrift.TException te) {
7287
        throw new java.io.IOException(te);
7288
      }
7289
    }
7290
 
442 rajveer 7291
  }
7292
 
3430 rajveer 7293
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7294
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7295
 
6643 rajveer 7296
    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 7297
    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 7298
 
6643 rajveer 7299
    private String awbNumber; // required
3430 rajveer 7300
    private long providerId; // required
442 rajveer 7301
 
7302
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7303
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7304
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7305
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7306
 
7307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7308
 
7309
      static {
7310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7311
          byName.put(field.getFieldName(), field);
7312
        }
7313
      }
7314
 
7315
      /**
7316
       * Find the _Fields constant that matches fieldId, or null if its not found.
7317
       */
7318
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7319
        switch(fieldId) {
6643 rajveer 7320
          case 1: // AWB_NUMBER
7321
            return AWB_NUMBER;
3430 rajveer 7322
          case 2: // PROVIDER_ID
7323
            return PROVIDER_ID;
7324
          default:
7325
            return null;
7326
        }
442 rajveer 7327
      }
7328
 
7329
      /**
7330
       * Find the _Fields constant that matches fieldId, throwing an exception
7331
       * if it is not found.
7332
       */
7333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7334
        _Fields fields = findByThriftId(fieldId);
7335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7336
        return fields;
7337
      }
7338
 
7339
      /**
7340
       * Find the _Fields constant that matches name, or null if its not found.
7341
       */
7342
      public static _Fields findByName(String name) {
7343
        return byName.get(name);
7344
      }
7345
 
7346
      private final short _thriftId;
7347
      private final String _fieldName;
7348
 
7349
      _Fields(short thriftId, String fieldName) {
7350
        _thriftId = thriftId;
7351
        _fieldName = fieldName;
7352
      }
7353
 
7354
      public short getThriftFieldId() {
7355
        return _thriftId;
7356
      }
7357
 
7358
      public String getFieldName() {
7359
        return _fieldName;
7360
      }
7361
    }
7362
 
7363
    // isset id assignments
648 chandransh 7364
    private static final int __PROVIDERID_ISSET_ID = 0;
7365
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7366
 
3430 rajveer 7367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7368
    static {
3430 rajveer 7369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7370
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7372
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7376
    }
7377
 
648 chandransh 7378
    public getShipmentInfo_args() {
442 rajveer 7379
    }
7380
 
648 chandransh 7381
    public getShipmentInfo_args(
6643 rajveer 7382
      String awbNumber,
648 chandransh 7383
      long providerId)
442 rajveer 7384
    {
7385
      this();
6643 rajveer 7386
      this.awbNumber = awbNumber;
648 chandransh 7387
      this.providerId = providerId;
7388
      setProviderIdIsSet(true);
442 rajveer 7389
    }
7390
 
7391
    /**
7392
     * Performs a deep copy on <i>other</i>.
7393
     */
648 chandransh 7394
    public getShipmentInfo_args(getShipmentInfo_args other) {
7395
      __isset_bit_vector.clear();
7396
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7397
      if (other.isSetAwbNumber()) {
7398
        this.awbNumber = other.awbNumber;
442 rajveer 7399
      }
648 chandransh 7400
      this.providerId = other.providerId;
442 rajveer 7401
    }
7402
 
648 chandransh 7403
    public getShipmentInfo_args deepCopy() {
7404
      return new getShipmentInfo_args(this);
442 rajveer 7405
    }
7406
 
3430 rajveer 7407
    @Override
7408
    public void clear() {
6643 rajveer 7409
      this.awbNumber = null;
3430 rajveer 7410
      setProviderIdIsSet(false);
7411
      this.providerId = 0;
442 rajveer 7412
    }
7413
 
6643 rajveer 7414
    public String getAwbNumber() {
7415
      return this.awbNumber;
442 rajveer 7416
    }
7417
 
6643 rajveer 7418
    public void setAwbNumber(String awbNumber) {
7419
      this.awbNumber = awbNumber;
442 rajveer 7420
    }
7421
 
6643 rajveer 7422
    public void unsetAwbNumber() {
7423
      this.awbNumber = null;
442 rajveer 7424
    }
7425
 
6643 rajveer 7426
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7427
    public boolean isSetAwbNumber() {
7428
      return this.awbNumber != null;
442 rajveer 7429
    }
7430
 
6643 rajveer 7431
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7432
      if (!value) {
6643 rajveer 7433
        this.awbNumber = null;
442 rajveer 7434
      }
7435
    }
7436
 
648 chandransh 7437
    public long getProviderId() {
7438
      return this.providerId;
442 rajveer 7439
    }
7440
 
3430 rajveer 7441
    public void setProviderId(long providerId) {
648 chandransh 7442
      this.providerId = providerId;
7443
      setProviderIdIsSet(true);
442 rajveer 7444
    }
7445
 
648 chandransh 7446
    public void unsetProviderId() {
7447
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7448
    }
7449
 
3430 rajveer 7450
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7451
    public boolean isSetProviderId() {
7452
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7453
    }
7454
 
648 chandransh 7455
    public void setProviderIdIsSet(boolean value) {
7456
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7457
    }
7458
 
7459
    public void setFieldValue(_Fields field, Object value) {
7460
      switch (field) {
6643 rajveer 7461
      case AWB_NUMBER:
442 rajveer 7462
        if (value == null) {
6643 rajveer 7463
          unsetAwbNumber();
442 rajveer 7464
        } else {
6643 rajveer 7465
          setAwbNumber((String)value);
442 rajveer 7466
        }
7467
        break;
7468
 
648 chandransh 7469
      case PROVIDER_ID:
442 rajveer 7470
        if (value == null) {
648 chandransh 7471
          unsetProviderId();
442 rajveer 7472
        } else {
648 chandransh 7473
          setProviderId((Long)value);
442 rajveer 7474
        }
7475
        break;
7476
 
7477
      }
7478
    }
7479
 
7480
    public Object getFieldValue(_Fields field) {
7481
      switch (field) {
6643 rajveer 7482
      case AWB_NUMBER:
7483
        return getAwbNumber();
442 rajveer 7484
 
648 chandransh 7485
      case PROVIDER_ID:
3430 rajveer 7486
        return Long.valueOf(getProviderId());
442 rajveer 7487
 
7488
      }
7489
      throw new IllegalStateException();
7490
    }
7491
 
3430 rajveer 7492
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7493
    public boolean isSet(_Fields field) {
7494
      if (field == null) {
7495
        throw new IllegalArgumentException();
7496
      }
442 rajveer 7497
 
7498
      switch (field) {
6643 rajveer 7499
      case AWB_NUMBER:
7500
        return isSetAwbNumber();
648 chandransh 7501
      case PROVIDER_ID:
7502
        return isSetProviderId();
442 rajveer 7503
      }
7504
      throw new IllegalStateException();
7505
    }
7506
 
7507
    @Override
7508
    public boolean equals(Object that) {
7509
      if (that == null)
7510
        return false;
648 chandransh 7511
      if (that instanceof getShipmentInfo_args)
7512
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7513
      return false;
7514
    }
7515
 
648 chandransh 7516
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7517
      if (that == null)
7518
        return false;
7519
 
6643 rajveer 7520
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7521
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7522
      if (this_present_awbNumber || that_present_awbNumber) {
7523
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7524
          return false;
6643 rajveer 7525
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7526
          return false;
7527
      }
7528
 
648 chandransh 7529
      boolean this_present_providerId = true;
7530
      boolean that_present_providerId = true;
7531
      if (this_present_providerId || that_present_providerId) {
7532
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7533
          return false;
648 chandransh 7534
        if (this.providerId != that.providerId)
442 rajveer 7535
          return false;
7536
      }
7537
 
7538
      return true;
7539
    }
7540
 
7541
    @Override
7542
    public int hashCode() {
7543
      return 0;
7544
    }
7545
 
648 chandransh 7546
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7547
      if (!getClass().equals(other.getClass())) {
7548
        return getClass().getName().compareTo(other.getClass().getName());
7549
      }
7550
 
7551
      int lastComparison = 0;
648 chandransh 7552
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7553
 
6643 rajveer 7554
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7555
      if (lastComparison != 0) {
7556
        return lastComparison;
7557
      }
6643 rajveer 7558
      if (isSetAwbNumber()) {
7559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7560
        if (lastComparison != 0) {
7561
          return lastComparison;
7562
        }
442 rajveer 7563
      }
3430 rajveer 7564
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7565
      if (lastComparison != 0) {
7566
        return lastComparison;
7567
      }
3430 rajveer 7568
      if (isSetProviderId()) {
7569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7570
        if (lastComparison != 0) {
7571
          return lastComparison;
7572
        }
442 rajveer 7573
      }
7574
      return 0;
7575
    }
7576
 
3430 rajveer 7577
    public _Fields fieldForId(int fieldId) {
7578
      return _Fields.findByThriftId(fieldId);
7579
    }
7580
 
7581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7582
      org.apache.thrift.protocol.TField field;
442 rajveer 7583
      iprot.readStructBegin();
7584
      while (true)
7585
      {
7586
        field = iprot.readFieldBegin();
3430 rajveer 7587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7588
          break;
7589
        }
3430 rajveer 7590
        switch (field.id) {
6643 rajveer 7591
          case 1: // AWB_NUMBER
3430 rajveer 7592
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7593
              this.awbNumber = iprot.readString();
3430 rajveer 7594
            } else { 
7595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7596
            }
7597
            break;
7598
          case 2: // PROVIDER_ID
7599
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7600
              this.providerId = iprot.readI64();
7601
              setProviderIdIsSet(true);
7602
            } else { 
7603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7604
            }
7605
            break;
7606
          default:
7607
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7608
        }
3430 rajveer 7609
        iprot.readFieldEnd();
442 rajveer 7610
      }
7611
      iprot.readStructEnd();
7612
      validate();
7613
    }
7614
 
3430 rajveer 7615
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7616
      validate();
7617
 
7618
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7619
      if (this.awbNumber != null) {
7620
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7621
        oprot.writeString(this.awbNumber);
442 rajveer 7622
        oprot.writeFieldEnd();
7623
      }
648 chandransh 7624
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7625
      oprot.writeI64(this.providerId);
7626
      oprot.writeFieldEnd();
442 rajveer 7627
      oprot.writeFieldStop();
7628
      oprot.writeStructEnd();
7629
    }
7630
 
7631
    @Override
7632
    public String toString() {
648 chandransh 7633
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7634
      boolean first = true;
7635
 
6643 rajveer 7636
      sb.append("awbNumber:");
7637
      if (this.awbNumber == null) {
442 rajveer 7638
        sb.append("null");
7639
      } else {
6643 rajveer 7640
        sb.append(this.awbNumber);
442 rajveer 7641
      }
7642
      first = false;
7643
      if (!first) sb.append(", ");
648 chandransh 7644
      sb.append("providerId:");
7645
      sb.append(this.providerId);
442 rajveer 7646
      first = false;
7647
      sb.append(")");
7648
      return sb.toString();
7649
    }
7650
 
3430 rajveer 7651
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7652
      // check for required fields
7653
    }
7654
 
3430 rajveer 7655
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7656
      try {
7657
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7658
      } catch (org.apache.thrift.TException te) {
7659
        throw new java.io.IOException(te);
7660
      }
7661
    }
7662
 
7663
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7664
      try {
7665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7666
      } catch (org.apache.thrift.TException te) {
7667
        throw new java.io.IOException(te);
7668
      }
7669
    }
7670
 
442 rajveer 7671
  }
7672
 
3430 rajveer 7673
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7675
 
3430 rajveer 7676
    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);
7677
    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 7678
 
3430 rajveer 7679
    private List<AwbUpdate> success; // required
7680
    private LogisticsServiceException se; // required
412 ashish 7681
 
7682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7684
      SUCCESS((short)0, "success"),
7685
      SE((short)1, "se");
412 ashish 7686
 
7687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7688
 
7689
      static {
7690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7691
          byName.put(field.getFieldName(), field);
7692
        }
7693
      }
7694
 
7695
      /**
7696
       * Find the _Fields constant that matches fieldId, or null if its not found.
7697
       */
7698
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7699
        switch(fieldId) {
7700
          case 0: // SUCCESS
7701
            return SUCCESS;
7702
          case 1: // SE
7703
            return SE;
7704
          default:
7705
            return null;
7706
        }
412 ashish 7707
      }
7708
 
7709
      /**
7710
       * Find the _Fields constant that matches fieldId, throwing an exception
7711
       * if it is not found.
7712
       */
7713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7714
        _Fields fields = findByThriftId(fieldId);
7715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7716
        return fields;
7717
      }
7718
 
7719
      /**
7720
       * Find the _Fields constant that matches name, or null if its not found.
7721
       */
7722
      public static _Fields findByName(String name) {
7723
        return byName.get(name);
7724
      }
7725
 
7726
      private final short _thriftId;
7727
      private final String _fieldName;
7728
 
7729
      _Fields(short thriftId, String fieldName) {
7730
        _thriftId = thriftId;
7731
        _fieldName = fieldName;
7732
      }
7733
 
7734
      public short getThriftFieldId() {
7735
        return _thriftId;
7736
      }
7737
 
7738
      public String getFieldName() {
7739
        return _fieldName;
7740
      }
7741
    }
7742
 
7743
    // isset id assignments
7744
 
3430 rajveer 7745
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7746
    static {
3430 rajveer 7747
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7748
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7749
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7750
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7751
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7752
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7753
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7754
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7755
    }
7756
 
7757
    public getShipmentInfo_result() {
7758
    }
7759
 
7760
    public getShipmentInfo_result(
648 chandransh 7761
      List<AwbUpdate> success,
7762
      LogisticsServiceException se)
412 ashish 7763
    {
7764
      this();
7765
      this.success = success;
648 chandransh 7766
      this.se = se;
412 ashish 7767
    }
7768
 
7769
    /**
7770
     * Performs a deep copy on <i>other</i>.
7771
     */
7772
    public getShipmentInfo_result(getShipmentInfo_result other) {
7773
      if (other.isSetSuccess()) {
648 chandransh 7774
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7775
        for (AwbUpdate other_element : other.success) {
7776
          __this__success.add(new AwbUpdate(other_element));
7777
        }
7778
        this.success = __this__success;
412 ashish 7779
      }
648 chandransh 7780
      if (other.isSetSe()) {
7781
        this.se = new LogisticsServiceException(other.se);
7782
      }
412 ashish 7783
    }
7784
 
7785
    public getShipmentInfo_result deepCopy() {
7786
      return new getShipmentInfo_result(this);
7787
    }
7788
 
3430 rajveer 7789
    @Override
7790
    public void clear() {
7791
      this.success = null;
7792
      this.se = null;
412 ashish 7793
    }
7794
 
7795
    public int getSuccessSize() {
7796
      return (this.success == null) ? 0 : this.success.size();
7797
    }
7798
 
648 chandransh 7799
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7800
      return (this.success == null) ? null : this.success.iterator();
7801
    }
7802
 
648 chandransh 7803
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7804
      if (this.success == null) {
648 chandransh 7805
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7806
      }
7807
      this.success.add(elem);
7808
    }
7809
 
648 chandransh 7810
    public List<AwbUpdate> getSuccess() {
412 ashish 7811
      return this.success;
7812
    }
7813
 
3430 rajveer 7814
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7815
      this.success = success;
7816
    }
7817
 
7818
    public void unsetSuccess() {
7819
      this.success = null;
7820
    }
7821
 
3430 rajveer 7822
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7823
    public boolean isSetSuccess() {
7824
      return this.success != null;
7825
    }
7826
 
7827
    public void setSuccessIsSet(boolean value) {
7828
      if (!value) {
7829
        this.success = null;
7830
      }
7831
    }
7832
 
648 chandransh 7833
    public LogisticsServiceException getSe() {
7834
      return this.se;
412 ashish 7835
    }
7836
 
3430 rajveer 7837
    public void setSe(LogisticsServiceException se) {
648 chandransh 7838
      this.se = se;
412 ashish 7839
    }
7840
 
648 chandransh 7841
    public void unsetSe() {
7842
      this.se = null;
412 ashish 7843
    }
7844
 
3430 rajveer 7845
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7846
    public boolean isSetSe() {
7847
      return this.se != null;
412 ashish 7848
    }
7849
 
648 chandransh 7850
    public void setSeIsSet(boolean value) {
7851
      if (!value) {
7852
        this.se = null;
412 ashish 7853
      }
7854
    }
7855
 
7856
    public void setFieldValue(_Fields field, Object value) {
7857
      switch (field) {
648 chandransh 7858
      case SUCCESS:
412 ashish 7859
        if (value == null) {
648 chandransh 7860
          unsetSuccess();
412 ashish 7861
        } else {
648 chandransh 7862
          setSuccess((List<AwbUpdate>)value);
412 ashish 7863
        }
7864
        break;
7865
 
648 chandransh 7866
      case SE:
412 ashish 7867
        if (value == null) {
648 chandransh 7868
          unsetSe();
412 ashish 7869
        } else {
648 chandransh 7870
          setSe((LogisticsServiceException)value);
412 ashish 7871
        }
7872
        break;
7873
 
7874
      }
7875
    }
7876
 
7877
    public Object getFieldValue(_Fields field) {
7878
      switch (field) {
648 chandransh 7879
      case SUCCESS:
7880
        return getSuccess();
412 ashish 7881
 
648 chandransh 7882
      case SE:
7883
        return getSe();
412 ashish 7884
 
7885
      }
7886
      throw new IllegalStateException();
7887
    }
7888
 
3430 rajveer 7889
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7890
    public boolean isSet(_Fields field) {
7891
      if (field == null) {
7892
        throw new IllegalArgumentException();
7893
      }
412 ashish 7894
 
7895
      switch (field) {
648 chandransh 7896
      case SUCCESS:
7897
        return isSetSuccess();
7898
      case SE:
7899
        return isSetSe();
412 ashish 7900
      }
7901
      throw new IllegalStateException();
7902
    }
7903
 
7904
    @Override
7905
    public boolean equals(Object that) {
7906
      if (that == null)
7907
        return false;
648 chandransh 7908
      if (that instanceof getShipmentInfo_result)
7909
        return this.equals((getShipmentInfo_result)that);
412 ashish 7910
      return false;
7911
    }
7912
 
648 chandransh 7913
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7914
      if (that == null)
7915
        return false;
7916
 
648 chandransh 7917
      boolean this_present_success = true && this.isSetSuccess();
7918
      boolean that_present_success = true && that.isSetSuccess();
7919
      if (this_present_success || that_present_success) {
7920
        if (!(this_present_success && that_present_success))
412 ashish 7921
          return false;
648 chandransh 7922
        if (!this.success.equals(that.success))
412 ashish 7923
          return false;
7924
      }
7925
 
648 chandransh 7926
      boolean this_present_se = true && this.isSetSe();
7927
      boolean that_present_se = true && that.isSetSe();
7928
      if (this_present_se || that_present_se) {
7929
        if (!(this_present_se && that_present_se))
412 ashish 7930
          return false;
648 chandransh 7931
        if (!this.se.equals(that.se))
412 ashish 7932
          return false;
7933
      }
7934
 
7935
      return true;
7936
    }
7937
 
7938
    @Override
7939
    public int hashCode() {
7940
      return 0;
7941
    }
7942
 
648 chandransh 7943
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7944
      if (!getClass().equals(other.getClass())) {
7945
        return getClass().getName().compareTo(other.getClass().getName());
7946
      }
7947
 
7948
      int lastComparison = 0;
648 chandransh 7949
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7950
 
3430 rajveer 7951
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7952
      if (lastComparison != 0) {
7953
        return lastComparison;
7954
      }
3430 rajveer 7955
      if (isSetSuccess()) {
7956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7957
        if (lastComparison != 0) {
7958
          return lastComparison;
7959
        }
412 ashish 7960
      }
3430 rajveer 7961
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7962
      if (lastComparison != 0) {
7963
        return lastComparison;
7964
      }
3430 rajveer 7965
      if (isSetSe()) {
7966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7967
        if (lastComparison != 0) {
7968
          return lastComparison;
7969
        }
412 ashish 7970
      }
7971
      return 0;
7972
    }
7973
 
3430 rajveer 7974
    public _Fields fieldForId(int fieldId) {
7975
      return _Fields.findByThriftId(fieldId);
7976
    }
7977
 
7978
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7979
      org.apache.thrift.protocol.TField field;
412 ashish 7980
      iprot.readStructBegin();
7981
      while (true)
7982
      {
7983
        field = iprot.readFieldBegin();
3430 rajveer 7984
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7985
          break;
7986
        }
3430 rajveer 7987
        switch (field.id) {
7988
          case 0: // SUCCESS
7989
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7990
              {
7792 anupam.sin 7991
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7992
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7993
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7994
                {
7792 anupam.sin 7995
                  AwbUpdate _elem10; // required
7996
                  _elem10 = new AwbUpdate();
7997
                  _elem10.read(iprot);
7998
                  this.success.add(_elem10);
412 ashish 7999
                }
3430 rajveer 8000
                iprot.readListEnd();
412 ashish 8001
              }
3430 rajveer 8002
            } else { 
8003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8004
            }
8005
            break;
8006
          case 1: // SE
8007
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8008
              this.se = new LogisticsServiceException();
8009
              this.se.read(iprot);
8010
            } else { 
8011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8012
            }
8013
            break;
8014
          default:
8015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 8016
        }
3430 rajveer 8017
        iprot.readFieldEnd();
412 ashish 8018
      }
8019
      iprot.readStructEnd();
8020
      validate();
8021
    }
8022
 
3430 rajveer 8023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 8024
      oprot.writeStructBegin(STRUCT_DESC);
8025
 
8026
      if (this.isSetSuccess()) {
8027
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8028
        {
3430 rajveer 8029
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 8030
          for (AwbUpdate _iter11 : this.success)
412 ashish 8031
          {
7792 anupam.sin 8032
            _iter11.write(oprot);
412 ashish 8033
          }
8034
          oprot.writeListEnd();
8035
        }
8036
        oprot.writeFieldEnd();
648 chandransh 8037
      } else if (this.isSetSe()) {
8038
        oprot.writeFieldBegin(SE_FIELD_DESC);
8039
        this.se.write(oprot);
8040
        oprot.writeFieldEnd();
412 ashish 8041
      }
8042
      oprot.writeFieldStop();
8043
      oprot.writeStructEnd();
8044
    }
8045
 
8046
    @Override
8047
    public String toString() {
648 chandransh 8048
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 8049
      boolean first = true;
8050
 
8051
      sb.append("success:");
8052
      if (this.success == null) {
8053
        sb.append("null");
8054
      } else {
8055
        sb.append(this.success);
8056
      }
8057
      first = false;
648 chandransh 8058
      if (!first) sb.append(", ");
8059
      sb.append("se:");
8060
      if (this.se == null) {
8061
        sb.append("null");
8062
      } else {
8063
        sb.append(this.se);
8064
      }
8065
      first = false;
412 ashish 8066
      sb.append(")");
8067
      return sb.toString();
8068
    }
8069
 
3430 rajveer 8070
    public void validate() throws org.apache.thrift.TException {
412 ashish 8071
      // check for required fields
8072
    }
8073
 
3430 rajveer 8074
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8075
      try {
8076
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8077
      } catch (org.apache.thrift.TException te) {
8078
        throw new java.io.IOException(te);
8079
      }
8080
    }
8081
 
8082
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8083
      try {
8084
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8085
      } catch (org.apache.thrift.TException te) {
8086
        throw new java.io.IOException(te);
8087
      }
8088
    }
8089
 
412 ashish 8090
  }
8091
 
6643 rajveer 8092
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
8093
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
8094
 
8095
    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);
8096
 
8097
    private AwbUpdate update; // required
8098
 
8099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8101
      UPDATE((short)1, "update");
8102
 
8103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8104
 
8105
      static {
8106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8107
          byName.put(field.getFieldName(), field);
8108
        }
8109
      }
8110
 
8111
      /**
8112
       * Find the _Fields constant that matches fieldId, or null if its not found.
8113
       */
8114
      public static _Fields findByThriftId(int fieldId) {
8115
        switch(fieldId) {
8116
          case 1: // UPDATE
8117
            return UPDATE;
8118
          default:
8119
            return null;
8120
        }
8121
      }
8122
 
8123
      /**
8124
       * Find the _Fields constant that matches fieldId, throwing an exception
8125
       * if it is not found.
8126
       */
8127
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8128
        _Fields fields = findByThriftId(fieldId);
8129
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8130
        return fields;
8131
      }
8132
 
8133
      /**
8134
       * Find the _Fields constant that matches name, or null if its not found.
8135
       */
8136
      public static _Fields findByName(String name) {
8137
        return byName.get(name);
8138
      }
8139
 
8140
      private final short _thriftId;
8141
      private final String _fieldName;
8142
 
8143
      _Fields(short thriftId, String fieldName) {
8144
        _thriftId = thriftId;
8145
        _fieldName = fieldName;
8146
      }
8147
 
8148
      public short getThriftFieldId() {
8149
        return _thriftId;
8150
      }
8151
 
8152
      public String getFieldName() {
8153
        return _fieldName;
8154
      }
8155
    }
8156
 
8157
    // isset id assignments
8158
 
8159
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8160
    static {
8161
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8162
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8163
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8166
    }
8167
 
8168
    public storeShipmentInfo_args() {
8169
    }
8170
 
8171
    public storeShipmentInfo_args(
8172
      AwbUpdate update)
8173
    {
8174
      this();
8175
      this.update = update;
8176
    }
8177
 
8178
    /**
8179
     * Performs a deep copy on <i>other</i>.
8180
     */
8181
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8182
      if (other.isSetUpdate()) {
8183
        this.update = new AwbUpdate(other.update);
8184
      }
8185
    }
8186
 
8187
    public storeShipmentInfo_args deepCopy() {
8188
      return new storeShipmentInfo_args(this);
8189
    }
8190
 
8191
    @Override
8192
    public void clear() {
8193
      this.update = null;
8194
    }
8195
 
8196
    public AwbUpdate getUpdate() {
8197
      return this.update;
8198
    }
8199
 
8200
    public void setUpdate(AwbUpdate update) {
8201
      this.update = update;
8202
    }
8203
 
8204
    public void unsetUpdate() {
8205
      this.update = null;
8206
    }
8207
 
8208
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8209
    public boolean isSetUpdate() {
8210
      return this.update != null;
8211
    }
8212
 
8213
    public void setUpdateIsSet(boolean value) {
8214
      if (!value) {
8215
        this.update = null;
8216
      }
8217
    }
8218
 
8219
    public void setFieldValue(_Fields field, Object value) {
8220
      switch (field) {
8221
      case UPDATE:
8222
        if (value == null) {
8223
          unsetUpdate();
8224
        } else {
8225
          setUpdate((AwbUpdate)value);
8226
        }
8227
        break;
8228
 
8229
      }
8230
    }
8231
 
8232
    public Object getFieldValue(_Fields field) {
8233
      switch (field) {
8234
      case UPDATE:
8235
        return getUpdate();
8236
 
8237
      }
8238
      throw new IllegalStateException();
8239
    }
8240
 
8241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8242
    public boolean isSet(_Fields field) {
8243
      if (field == null) {
8244
        throw new IllegalArgumentException();
8245
      }
8246
 
8247
      switch (field) {
8248
      case UPDATE:
8249
        return isSetUpdate();
8250
      }
8251
      throw new IllegalStateException();
8252
    }
8253
 
8254
    @Override
8255
    public boolean equals(Object that) {
8256
      if (that == null)
8257
        return false;
8258
      if (that instanceof storeShipmentInfo_args)
8259
        return this.equals((storeShipmentInfo_args)that);
8260
      return false;
8261
    }
8262
 
8263
    public boolean equals(storeShipmentInfo_args that) {
8264
      if (that == null)
8265
        return false;
8266
 
8267
      boolean this_present_update = true && this.isSetUpdate();
8268
      boolean that_present_update = true && that.isSetUpdate();
8269
      if (this_present_update || that_present_update) {
8270
        if (!(this_present_update && that_present_update))
8271
          return false;
8272
        if (!this.update.equals(that.update))
8273
          return false;
8274
      }
8275
 
8276
      return true;
8277
    }
8278
 
8279
    @Override
8280
    public int hashCode() {
8281
      return 0;
8282
    }
8283
 
8284
    public int compareTo(storeShipmentInfo_args other) {
8285
      if (!getClass().equals(other.getClass())) {
8286
        return getClass().getName().compareTo(other.getClass().getName());
8287
      }
8288
 
8289
      int lastComparison = 0;
8290
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8291
 
8292
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8293
      if (lastComparison != 0) {
8294
        return lastComparison;
8295
      }
8296
      if (isSetUpdate()) {
8297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8298
        if (lastComparison != 0) {
8299
          return lastComparison;
8300
        }
8301
      }
8302
      return 0;
8303
    }
8304
 
8305
    public _Fields fieldForId(int fieldId) {
8306
      return _Fields.findByThriftId(fieldId);
8307
    }
8308
 
8309
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8310
      org.apache.thrift.protocol.TField field;
8311
      iprot.readStructBegin();
8312
      while (true)
8313
      {
8314
        field = iprot.readFieldBegin();
8315
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8316
          break;
8317
        }
8318
        switch (field.id) {
8319
          case 1: // UPDATE
8320
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8321
              this.update = new AwbUpdate();
8322
              this.update.read(iprot);
8323
            } else { 
8324
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8325
            }
8326
            break;
8327
          default:
8328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8329
        }
8330
        iprot.readFieldEnd();
8331
      }
8332
      iprot.readStructEnd();
8333
      validate();
8334
    }
8335
 
8336
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8337
      validate();
8338
 
8339
      oprot.writeStructBegin(STRUCT_DESC);
8340
      if (this.update != null) {
8341
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8342
        this.update.write(oprot);
8343
        oprot.writeFieldEnd();
8344
      }
8345
      oprot.writeFieldStop();
8346
      oprot.writeStructEnd();
8347
    }
8348
 
8349
    @Override
8350
    public String toString() {
8351
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8352
      boolean first = true;
8353
 
8354
      sb.append("update:");
8355
      if (this.update == null) {
8356
        sb.append("null");
8357
      } else {
8358
        sb.append(this.update);
8359
      }
8360
      first = false;
8361
      sb.append(")");
8362
      return sb.toString();
8363
    }
8364
 
8365
    public void validate() throws org.apache.thrift.TException {
8366
      // check for required fields
8367
    }
8368
 
8369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8370
      try {
8371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8372
      } catch (org.apache.thrift.TException te) {
8373
        throw new java.io.IOException(te);
8374
      }
8375
    }
8376
 
8377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8378
      try {
8379
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8380
      } catch (org.apache.thrift.TException te) {
8381
        throw new java.io.IOException(te);
8382
      }
8383
    }
8384
 
8385
  }
8386
 
8387
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8388
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8389
 
8390
    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);
8391
 
8392
    private LogisticsServiceException se; // required
8393
 
8394
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8395
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8396
      SE((short)1, "se");
8397
 
8398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8399
 
8400
      static {
8401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8402
          byName.put(field.getFieldName(), field);
8403
        }
8404
      }
8405
 
8406
      /**
8407
       * Find the _Fields constant that matches fieldId, or null if its not found.
8408
       */
8409
      public static _Fields findByThriftId(int fieldId) {
8410
        switch(fieldId) {
8411
          case 1: // SE
8412
            return SE;
8413
          default:
8414
            return null;
8415
        }
8416
      }
8417
 
8418
      /**
8419
       * Find the _Fields constant that matches fieldId, throwing an exception
8420
       * if it is not found.
8421
       */
8422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8423
        _Fields fields = findByThriftId(fieldId);
8424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8425
        return fields;
8426
      }
8427
 
8428
      /**
8429
       * Find the _Fields constant that matches name, or null if its not found.
8430
       */
8431
      public static _Fields findByName(String name) {
8432
        return byName.get(name);
8433
      }
8434
 
8435
      private final short _thriftId;
8436
      private final String _fieldName;
8437
 
8438
      _Fields(short thriftId, String fieldName) {
8439
        _thriftId = thriftId;
8440
        _fieldName = fieldName;
8441
      }
8442
 
8443
      public short getThriftFieldId() {
8444
        return _thriftId;
8445
      }
8446
 
8447
      public String getFieldName() {
8448
        return _fieldName;
8449
      }
8450
    }
8451
 
8452
    // isset id assignments
8453
 
8454
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8455
    static {
8456
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8457
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8458
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8461
    }
8462
 
8463
    public storeShipmentInfo_result() {
8464
    }
8465
 
8466
    public storeShipmentInfo_result(
8467
      LogisticsServiceException se)
8468
    {
8469
      this();
8470
      this.se = se;
8471
    }
8472
 
8473
    /**
8474
     * Performs a deep copy on <i>other</i>.
8475
     */
8476
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8477
      if (other.isSetSe()) {
8478
        this.se = new LogisticsServiceException(other.se);
8479
      }
8480
    }
8481
 
8482
    public storeShipmentInfo_result deepCopy() {
8483
      return new storeShipmentInfo_result(this);
8484
    }
8485
 
8486
    @Override
8487
    public void clear() {
8488
      this.se = null;
8489
    }
8490
 
8491
    public LogisticsServiceException getSe() {
8492
      return this.se;
8493
    }
8494
 
8495
    public void setSe(LogisticsServiceException se) {
8496
      this.se = se;
8497
    }
8498
 
8499
    public void unsetSe() {
8500
      this.se = null;
8501
    }
8502
 
8503
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8504
    public boolean isSetSe() {
8505
      return this.se != null;
8506
    }
8507
 
8508
    public void setSeIsSet(boolean value) {
8509
      if (!value) {
8510
        this.se = null;
8511
      }
8512
    }
8513
 
8514
    public void setFieldValue(_Fields field, Object value) {
8515
      switch (field) {
8516
      case SE:
8517
        if (value == null) {
8518
          unsetSe();
8519
        } else {
8520
          setSe((LogisticsServiceException)value);
8521
        }
8522
        break;
8523
 
8524
      }
8525
    }
8526
 
8527
    public Object getFieldValue(_Fields field) {
8528
      switch (field) {
8529
      case SE:
8530
        return getSe();
8531
 
8532
      }
8533
      throw new IllegalStateException();
8534
    }
8535
 
8536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8537
    public boolean isSet(_Fields field) {
8538
      if (field == null) {
8539
        throw new IllegalArgumentException();
8540
      }
8541
 
8542
      switch (field) {
8543
      case SE:
8544
        return isSetSe();
8545
      }
8546
      throw new IllegalStateException();
8547
    }
8548
 
8549
    @Override
8550
    public boolean equals(Object that) {
8551
      if (that == null)
8552
        return false;
8553
      if (that instanceof storeShipmentInfo_result)
8554
        return this.equals((storeShipmentInfo_result)that);
8555
      return false;
8556
    }
8557
 
8558
    public boolean equals(storeShipmentInfo_result that) {
8559
      if (that == null)
8560
        return false;
8561
 
8562
      boolean this_present_se = true && this.isSetSe();
8563
      boolean that_present_se = true && that.isSetSe();
8564
      if (this_present_se || that_present_se) {
8565
        if (!(this_present_se && that_present_se))
8566
          return false;
8567
        if (!this.se.equals(that.se))
8568
          return false;
8569
      }
8570
 
8571
      return true;
8572
    }
8573
 
8574
    @Override
8575
    public int hashCode() {
8576
      return 0;
8577
    }
8578
 
8579
    public int compareTo(storeShipmentInfo_result other) {
8580
      if (!getClass().equals(other.getClass())) {
8581
        return getClass().getName().compareTo(other.getClass().getName());
8582
      }
8583
 
8584
      int lastComparison = 0;
8585
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8586
 
8587
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8588
      if (lastComparison != 0) {
8589
        return lastComparison;
8590
      }
8591
      if (isSetSe()) {
8592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8593
        if (lastComparison != 0) {
8594
          return lastComparison;
8595
        }
8596
      }
8597
      return 0;
8598
    }
8599
 
8600
    public _Fields fieldForId(int fieldId) {
8601
      return _Fields.findByThriftId(fieldId);
8602
    }
8603
 
8604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8605
      org.apache.thrift.protocol.TField field;
8606
      iprot.readStructBegin();
8607
      while (true)
8608
      {
8609
        field = iprot.readFieldBegin();
8610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8611
          break;
8612
        }
8613
        switch (field.id) {
8614
          case 1: // SE
8615
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8616
              this.se = new LogisticsServiceException();
8617
              this.se.read(iprot);
8618
            } else { 
8619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8620
            }
8621
            break;
8622
          default:
8623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8624
        }
8625
        iprot.readFieldEnd();
8626
      }
8627
      iprot.readStructEnd();
8628
      validate();
8629
    }
8630
 
8631
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8632
      oprot.writeStructBegin(STRUCT_DESC);
8633
 
8634
      if (this.isSetSe()) {
8635
        oprot.writeFieldBegin(SE_FIELD_DESC);
8636
        this.se.write(oprot);
8637
        oprot.writeFieldEnd();
8638
      }
8639
      oprot.writeFieldStop();
8640
      oprot.writeStructEnd();
8641
    }
8642
 
8643
    @Override
8644
    public String toString() {
8645
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8646
      boolean first = true;
8647
 
8648
      sb.append("se:");
8649
      if (this.se == null) {
8650
        sb.append("null");
8651
      } else {
8652
        sb.append(this.se);
8653
      }
8654
      first = false;
8655
      sb.append(")");
8656
      return sb.toString();
8657
    }
8658
 
8659
    public void validate() throws org.apache.thrift.TException {
8660
      // check for required fields
8661
    }
8662
 
8663
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8664
      try {
8665
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8666
      } catch (org.apache.thrift.TException te) {
8667
        throw new java.io.IOException(te);
8668
      }
8669
    }
8670
 
8671
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8672
      try {
8673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8674
      } catch (org.apache.thrift.TException te) {
8675
        throw new java.io.IOException(te);
8676
      }
8677
    }
8678
 
8679
  }
8680
 
3430 rajveer 8681
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8683
 
3430 rajveer 8684
    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);
8685
    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 8686
 
3430 rajveer 8687
    private long providerId; // required
8688
    private String pinCode; // required
730 chandransh 8689
 
8690
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8691
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8692
      PROVIDER_ID((short)1, "providerId"),
8693
      PIN_CODE((short)2, "pinCode");
8694
 
8695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8696
 
8697
      static {
8698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8699
          byName.put(field.getFieldName(), field);
8700
        }
8701
      }
8702
 
8703
      /**
8704
       * Find the _Fields constant that matches fieldId, or null if its not found.
8705
       */
8706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8707
        switch(fieldId) {
8708
          case 1: // PROVIDER_ID
8709
            return PROVIDER_ID;
8710
          case 2: // PIN_CODE
8711
            return PIN_CODE;
8712
          default:
8713
            return null;
8714
        }
730 chandransh 8715
      }
8716
 
8717
      /**
8718
       * Find the _Fields constant that matches fieldId, throwing an exception
8719
       * if it is not found.
8720
       */
8721
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8722
        _Fields fields = findByThriftId(fieldId);
8723
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8724
        return fields;
8725
      }
8726
 
8727
      /**
8728
       * Find the _Fields constant that matches name, or null if its not found.
8729
       */
8730
      public static _Fields findByName(String name) {
8731
        return byName.get(name);
8732
      }
8733
 
8734
      private final short _thriftId;
8735
      private final String _fieldName;
8736
 
8737
      _Fields(short thriftId, String fieldName) {
8738
        _thriftId = thriftId;
8739
        _fieldName = fieldName;
8740
      }
8741
 
8742
      public short getThriftFieldId() {
8743
        return _thriftId;
8744
      }
8745
 
8746
      public String getFieldName() {
8747
        return _fieldName;
8748
      }
8749
    }
8750
 
8751
    // isset id assignments
8752
    private static final int __PROVIDERID_ISSET_ID = 0;
8753
    private BitSet __isset_bit_vector = new BitSet(1);
8754
 
3430 rajveer 8755
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8756
    static {
3430 rajveer 8757
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8758
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8760
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8764
    }
8765
 
8766
    public getDestinationCode_args() {
8767
    }
8768
 
8769
    public getDestinationCode_args(
8770
      long providerId,
8771
      String pinCode)
8772
    {
8773
      this();
8774
      this.providerId = providerId;
8775
      setProviderIdIsSet(true);
8776
      this.pinCode = pinCode;
8777
    }
8778
 
8779
    /**
8780
     * Performs a deep copy on <i>other</i>.
8781
     */
8782
    public getDestinationCode_args(getDestinationCode_args other) {
8783
      __isset_bit_vector.clear();
8784
      __isset_bit_vector.or(other.__isset_bit_vector);
8785
      this.providerId = other.providerId;
8786
      if (other.isSetPinCode()) {
8787
        this.pinCode = other.pinCode;
8788
      }
8789
    }
8790
 
8791
    public getDestinationCode_args deepCopy() {
8792
      return new getDestinationCode_args(this);
8793
    }
8794
 
3430 rajveer 8795
    @Override
8796
    public void clear() {
8797
      setProviderIdIsSet(false);
8798
      this.providerId = 0;
8799
      this.pinCode = null;
730 chandransh 8800
    }
8801
 
8802
    public long getProviderId() {
8803
      return this.providerId;
8804
    }
8805
 
3430 rajveer 8806
    public void setProviderId(long providerId) {
730 chandransh 8807
      this.providerId = providerId;
8808
      setProviderIdIsSet(true);
8809
    }
8810
 
8811
    public void unsetProviderId() {
8812
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8813
    }
8814
 
3430 rajveer 8815
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8816
    public boolean isSetProviderId() {
8817
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8818
    }
8819
 
8820
    public void setProviderIdIsSet(boolean value) {
8821
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8822
    }
8823
 
8824
    public String getPinCode() {
8825
      return this.pinCode;
8826
    }
8827
 
3430 rajveer 8828
    public void setPinCode(String pinCode) {
730 chandransh 8829
      this.pinCode = pinCode;
8830
    }
8831
 
8832
    public void unsetPinCode() {
8833
      this.pinCode = null;
8834
    }
8835
 
3430 rajveer 8836
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8837
    public boolean isSetPinCode() {
8838
      return this.pinCode != null;
8839
    }
8840
 
8841
    public void setPinCodeIsSet(boolean value) {
8842
      if (!value) {
8843
        this.pinCode = null;
8844
      }
8845
    }
8846
 
8847
    public void setFieldValue(_Fields field, Object value) {
8848
      switch (field) {
8849
      case PROVIDER_ID:
8850
        if (value == null) {
8851
          unsetProviderId();
8852
        } else {
8853
          setProviderId((Long)value);
8854
        }
8855
        break;
8856
 
8857
      case PIN_CODE:
8858
        if (value == null) {
8859
          unsetPinCode();
8860
        } else {
8861
          setPinCode((String)value);
8862
        }
8863
        break;
8864
 
8865
      }
8866
    }
8867
 
8868
    public Object getFieldValue(_Fields field) {
8869
      switch (field) {
8870
      case PROVIDER_ID:
3430 rajveer 8871
        return Long.valueOf(getProviderId());
730 chandransh 8872
 
8873
      case PIN_CODE:
8874
        return getPinCode();
8875
 
8876
      }
8877
      throw new IllegalStateException();
8878
    }
8879
 
3430 rajveer 8880
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8881
    public boolean isSet(_Fields field) {
8882
      if (field == null) {
8883
        throw new IllegalArgumentException();
8884
      }
730 chandransh 8885
 
8886
      switch (field) {
8887
      case PROVIDER_ID:
8888
        return isSetProviderId();
8889
      case PIN_CODE:
8890
        return isSetPinCode();
8891
      }
8892
      throw new IllegalStateException();
8893
    }
8894
 
8895
    @Override
8896
    public boolean equals(Object that) {
8897
      if (that == null)
8898
        return false;
8899
      if (that instanceof getDestinationCode_args)
8900
        return this.equals((getDestinationCode_args)that);
8901
      return false;
8902
    }
8903
 
8904
    public boolean equals(getDestinationCode_args that) {
8905
      if (that == null)
8906
        return false;
8907
 
8908
      boolean this_present_providerId = true;
8909
      boolean that_present_providerId = true;
8910
      if (this_present_providerId || that_present_providerId) {
8911
        if (!(this_present_providerId && that_present_providerId))
8912
          return false;
8913
        if (this.providerId != that.providerId)
8914
          return false;
8915
      }
8916
 
8917
      boolean this_present_pinCode = true && this.isSetPinCode();
8918
      boolean that_present_pinCode = true && that.isSetPinCode();
8919
      if (this_present_pinCode || that_present_pinCode) {
8920
        if (!(this_present_pinCode && that_present_pinCode))
8921
          return false;
8922
        if (!this.pinCode.equals(that.pinCode))
8923
          return false;
8924
      }
8925
 
8926
      return true;
8927
    }
8928
 
8929
    @Override
8930
    public int hashCode() {
8931
      return 0;
8932
    }
8933
 
8934
    public int compareTo(getDestinationCode_args other) {
8935
      if (!getClass().equals(other.getClass())) {
8936
        return getClass().getName().compareTo(other.getClass().getName());
8937
      }
8938
 
8939
      int lastComparison = 0;
8940
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8941
 
3430 rajveer 8942
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8943
      if (lastComparison != 0) {
8944
        return lastComparison;
8945
      }
3430 rajveer 8946
      if (isSetProviderId()) {
8947
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8948
        if (lastComparison != 0) {
8949
          return lastComparison;
8950
        }
730 chandransh 8951
      }
3430 rajveer 8952
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8953
      if (lastComparison != 0) {
8954
        return lastComparison;
8955
      }
3430 rajveer 8956
      if (isSetPinCode()) {
8957
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8958
        if (lastComparison != 0) {
8959
          return lastComparison;
8960
        }
730 chandransh 8961
      }
8962
      return 0;
8963
    }
8964
 
3430 rajveer 8965
    public _Fields fieldForId(int fieldId) {
8966
      return _Fields.findByThriftId(fieldId);
8967
    }
8968
 
8969
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8970
      org.apache.thrift.protocol.TField field;
730 chandransh 8971
      iprot.readStructBegin();
8972
      while (true)
8973
      {
8974
        field = iprot.readFieldBegin();
3430 rajveer 8975
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8976
          break;
8977
        }
3430 rajveer 8978
        switch (field.id) {
8979
          case 1: // PROVIDER_ID
8980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8981
              this.providerId = iprot.readI64();
8982
              setProviderIdIsSet(true);
8983
            } else { 
8984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8985
            }
8986
            break;
8987
          case 2: // PIN_CODE
8988
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8989
              this.pinCode = iprot.readString();
8990
            } else { 
8991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8992
            }
8993
            break;
8994
          default:
8995
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8996
        }
3430 rajveer 8997
        iprot.readFieldEnd();
730 chandransh 8998
      }
8999
      iprot.readStructEnd();
9000
      validate();
9001
    }
9002
 
3430 rajveer 9003
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9004
      validate();
9005
 
9006
      oprot.writeStructBegin(STRUCT_DESC);
9007
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9008
      oprot.writeI64(this.providerId);
9009
      oprot.writeFieldEnd();
9010
      if (this.pinCode != null) {
9011
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
9012
        oprot.writeString(this.pinCode);
9013
        oprot.writeFieldEnd();
9014
      }
9015
      oprot.writeFieldStop();
9016
      oprot.writeStructEnd();
9017
    }
9018
 
9019
    @Override
9020
    public String toString() {
9021
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
9022
      boolean first = true;
9023
 
9024
      sb.append("providerId:");
9025
      sb.append(this.providerId);
9026
      first = false;
9027
      if (!first) sb.append(", ");
9028
      sb.append("pinCode:");
9029
      if (this.pinCode == null) {
9030
        sb.append("null");
9031
      } else {
9032
        sb.append(this.pinCode);
9033
      }
9034
      first = false;
9035
      sb.append(")");
9036
      return sb.toString();
9037
    }
9038
 
3430 rajveer 9039
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9040
      // check for required fields
9041
    }
9042
 
3430 rajveer 9043
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9044
      try {
9045
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9046
      } catch (org.apache.thrift.TException te) {
9047
        throw new java.io.IOException(te);
9048
      }
9049
    }
9050
 
9051
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9052
      try {
9053
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9054
      } catch (org.apache.thrift.TException te) {
9055
        throw new java.io.IOException(te);
9056
      }
9057
    }
9058
 
730 chandransh 9059
  }
9060
 
3430 rajveer 9061
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
9062
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 9063
 
3430 rajveer 9064
    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);
9065
    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 9066
 
3430 rajveer 9067
    private String success; // required
9068
    private LogisticsServiceException se; // required
730 chandransh 9069
 
9070
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9071
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 9072
      SUCCESS((short)0, "success"),
9073
      SE((short)1, "se");
9074
 
9075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9076
 
9077
      static {
9078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9079
          byName.put(field.getFieldName(), field);
9080
        }
9081
      }
9082
 
9083
      /**
9084
       * Find the _Fields constant that matches fieldId, or null if its not found.
9085
       */
9086
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9087
        switch(fieldId) {
9088
          case 0: // SUCCESS
9089
            return SUCCESS;
9090
          case 1: // SE
9091
            return SE;
9092
          default:
9093
            return null;
9094
        }
730 chandransh 9095
      }
9096
 
9097
      /**
9098
       * Find the _Fields constant that matches fieldId, throwing an exception
9099
       * if it is not found.
9100
       */
9101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9102
        _Fields fields = findByThriftId(fieldId);
9103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9104
        return fields;
9105
      }
9106
 
9107
      /**
9108
       * Find the _Fields constant that matches name, or null if its not found.
9109
       */
9110
      public static _Fields findByName(String name) {
9111
        return byName.get(name);
9112
      }
9113
 
9114
      private final short _thriftId;
9115
      private final String _fieldName;
9116
 
9117
      _Fields(short thriftId, String fieldName) {
9118
        _thriftId = thriftId;
9119
        _fieldName = fieldName;
9120
      }
9121
 
9122
      public short getThriftFieldId() {
9123
        return _thriftId;
9124
      }
9125
 
9126
      public String getFieldName() {
9127
        return _fieldName;
9128
      }
9129
    }
9130
 
9131
    // isset id assignments
9132
 
3430 rajveer 9133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 9134
    static {
3430 rajveer 9135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9136
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9138
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9140
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9141
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 9142
    }
9143
 
9144
    public getDestinationCode_result() {
9145
    }
9146
 
9147
    public getDestinationCode_result(
9148
      String success,
9149
      LogisticsServiceException se)
9150
    {
9151
      this();
9152
      this.success = success;
9153
      this.se = se;
9154
    }
9155
 
9156
    /**
9157
     * Performs a deep copy on <i>other</i>.
9158
     */
9159
    public getDestinationCode_result(getDestinationCode_result other) {
9160
      if (other.isSetSuccess()) {
9161
        this.success = other.success;
9162
      }
9163
      if (other.isSetSe()) {
9164
        this.se = new LogisticsServiceException(other.se);
9165
      }
9166
    }
9167
 
9168
    public getDestinationCode_result deepCopy() {
9169
      return new getDestinationCode_result(this);
9170
    }
9171
 
3430 rajveer 9172
    @Override
9173
    public void clear() {
9174
      this.success = null;
9175
      this.se = null;
730 chandransh 9176
    }
9177
 
9178
    public String getSuccess() {
9179
      return this.success;
9180
    }
9181
 
3430 rajveer 9182
    public void setSuccess(String success) {
730 chandransh 9183
      this.success = success;
9184
    }
9185
 
9186
    public void unsetSuccess() {
9187
      this.success = null;
9188
    }
9189
 
3430 rajveer 9190
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9191
    public boolean isSetSuccess() {
9192
      return this.success != null;
9193
    }
9194
 
9195
    public void setSuccessIsSet(boolean value) {
9196
      if (!value) {
9197
        this.success = null;
9198
      }
9199
    }
9200
 
9201
    public LogisticsServiceException getSe() {
9202
      return this.se;
9203
    }
9204
 
3430 rajveer 9205
    public void setSe(LogisticsServiceException se) {
730 chandransh 9206
      this.se = se;
9207
    }
9208
 
9209
    public void unsetSe() {
9210
      this.se = null;
9211
    }
9212
 
3430 rajveer 9213
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9214
    public boolean isSetSe() {
9215
      return this.se != null;
9216
    }
9217
 
9218
    public void setSeIsSet(boolean value) {
9219
      if (!value) {
9220
        this.se = null;
9221
      }
9222
    }
9223
 
9224
    public void setFieldValue(_Fields field, Object value) {
9225
      switch (field) {
9226
      case SUCCESS:
9227
        if (value == null) {
9228
          unsetSuccess();
9229
        } else {
9230
          setSuccess((String)value);
9231
        }
9232
        break;
9233
 
9234
      case SE:
9235
        if (value == null) {
9236
          unsetSe();
9237
        } else {
9238
          setSe((LogisticsServiceException)value);
9239
        }
9240
        break;
9241
 
9242
      }
9243
    }
9244
 
9245
    public Object getFieldValue(_Fields field) {
9246
      switch (field) {
9247
      case SUCCESS:
9248
        return getSuccess();
9249
 
9250
      case SE:
9251
        return getSe();
9252
 
9253
      }
9254
      throw new IllegalStateException();
9255
    }
9256
 
3430 rajveer 9257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9258
    public boolean isSet(_Fields field) {
9259
      if (field == null) {
9260
        throw new IllegalArgumentException();
9261
      }
730 chandransh 9262
 
9263
      switch (field) {
9264
      case SUCCESS:
9265
        return isSetSuccess();
9266
      case SE:
9267
        return isSetSe();
9268
      }
9269
      throw new IllegalStateException();
9270
    }
9271
 
9272
    @Override
9273
    public boolean equals(Object that) {
9274
      if (that == null)
9275
        return false;
9276
      if (that instanceof getDestinationCode_result)
9277
        return this.equals((getDestinationCode_result)that);
9278
      return false;
9279
    }
9280
 
9281
    public boolean equals(getDestinationCode_result that) {
9282
      if (that == null)
9283
        return false;
9284
 
9285
      boolean this_present_success = true && this.isSetSuccess();
9286
      boolean that_present_success = true && that.isSetSuccess();
9287
      if (this_present_success || that_present_success) {
9288
        if (!(this_present_success && that_present_success))
9289
          return false;
9290
        if (!this.success.equals(that.success))
9291
          return false;
9292
      }
9293
 
9294
      boolean this_present_se = true && this.isSetSe();
9295
      boolean that_present_se = true && that.isSetSe();
9296
      if (this_present_se || that_present_se) {
9297
        if (!(this_present_se && that_present_se))
9298
          return false;
9299
        if (!this.se.equals(that.se))
9300
          return false;
9301
      }
9302
 
9303
      return true;
9304
    }
9305
 
9306
    @Override
9307
    public int hashCode() {
9308
      return 0;
9309
    }
9310
 
9311
    public int compareTo(getDestinationCode_result other) {
9312
      if (!getClass().equals(other.getClass())) {
9313
        return getClass().getName().compareTo(other.getClass().getName());
9314
      }
9315
 
9316
      int lastComparison = 0;
9317
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9318
 
3430 rajveer 9319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9320
      if (lastComparison != 0) {
9321
        return lastComparison;
9322
      }
3430 rajveer 9323
      if (isSetSuccess()) {
9324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9325
        if (lastComparison != 0) {
9326
          return lastComparison;
9327
        }
730 chandransh 9328
      }
3430 rajveer 9329
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9330
      if (lastComparison != 0) {
9331
        return lastComparison;
9332
      }
3430 rajveer 9333
      if (isSetSe()) {
9334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9335
        if (lastComparison != 0) {
9336
          return lastComparison;
9337
        }
730 chandransh 9338
      }
9339
      return 0;
9340
    }
9341
 
3430 rajveer 9342
    public _Fields fieldForId(int fieldId) {
9343
      return _Fields.findByThriftId(fieldId);
9344
    }
9345
 
9346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9347
      org.apache.thrift.protocol.TField field;
730 chandransh 9348
      iprot.readStructBegin();
9349
      while (true)
9350
      {
9351
        field = iprot.readFieldBegin();
3430 rajveer 9352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9353
          break;
9354
        }
3430 rajveer 9355
        switch (field.id) {
9356
          case 0: // SUCCESS
9357
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9358
              this.success = iprot.readString();
9359
            } else { 
9360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9361
            }
9362
            break;
9363
          case 1: // SE
9364
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9365
              this.se = new LogisticsServiceException();
9366
              this.se.read(iprot);
9367
            } else { 
9368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9369
            }
9370
            break;
9371
          default:
9372
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9373
        }
3430 rajveer 9374
        iprot.readFieldEnd();
730 chandransh 9375
      }
9376
      iprot.readStructEnd();
9377
      validate();
9378
    }
9379
 
3430 rajveer 9380
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9381
      oprot.writeStructBegin(STRUCT_DESC);
9382
 
9383
      if (this.isSetSuccess()) {
9384
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9385
        oprot.writeString(this.success);
9386
        oprot.writeFieldEnd();
9387
      } else if (this.isSetSe()) {
9388
        oprot.writeFieldBegin(SE_FIELD_DESC);
9389
        this.se.write(oprot);
9390
        oprot.writeFieldEnd();
9391
      }
9392
      oprot.writeFieldStop();
9393
      oprot.writeStructEnd();
9394
    }
9395
 
9396
    @Override
9397
    public String toString() {
9398
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9399
      boolean first = true;
9400
 
9401
      sb.append("success:");
9402
      if (this.success == null) {
9403
        sb.append("null");
9404
      } else {
9405
        sb.append(this.success);
9406
      }
9407
      first = false;
9408
      if (!first) sb.append(", ");
9409
      sb.append("se:");
9410
      if (this.se == null) {
9411
        sb.append("null");
9412
      } else {
9413
        sb.append(this.se);
9414
      }
9415
      first = false;
9416
      sb.append(")");
9417
      return sb.toString();
9418
    }
9419
 
3430 rajveer 9420
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9421
      // check for required fields
9422
    }
9423
 
3430 rajveer 9424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9425
      try {
9426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9427
      } catch (org.apache.thrift.TException te) {
9428
        throw new java.io.IOException(te);
9429
      }
9430
    }
9431
 
9432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9433
      try {
9434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9435
      } catch (org.apache.thrift.TException te) {
9436
        throw new java.io.IOException(te);
9437
      }
9438
    }
9439
 
730 chandransh 9440
  }
9441
 
3430 rajveer 9442
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9444
 
3430 rajveer 9445
    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);
9446
    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 9447
 
3430 rajveer 9448
    private long providerId; // required
9449
    private String type; // required
1139 chandransh 9450
 
9451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9453
      PROVIDER_ID((short)1, "providerId"),
9454
      TYPE((short)2, "type");
1139 chandransh 9455
 
9456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9457
 
9458
      static {
9459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9460
          byName.put(field.getFieldName(), field);
9461
        }
9462
      }
9463
 
9464
      /**
9465
       * Find the _Fields constant that matches fieldId, or null if its not found.
9466
       */
9467
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9468
        switch(fieldId) {
9469
          case 1: // PROVIDER_ID
9470
            return PROVIDER_ID;
9471
          case 2: // TYPE
9472
            return TYPE;
9473
          default:
9474
            return null;
9475
        }
1139 chandransh 9476
      }
9477
 
9478
      /**
9479
       * Find the _Fields constant that matches fieldId, throwing an exception
9480
       * if it is not found.
9481
       */
9482
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9483
        _Fields fields = findByThriftId(fieldId);
9484
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9485
        return fields;
9486
      }
9487
 
9488
      /**
9489
       * Find the _Fields constant that matches name, or null if its not found.
9490
       */
9491
      public static _Fields findByName(String name) {
9492
        return byName.get(name);
9493
      }
9494
 
9495
      private final short _thriftId;
9496
      private final String _fieldName;
9497
 
9498
      _Fields(short thriftId, String fieldName) {
9499
        _thriftId = thriftId;
9500
        _fieldName = fieldName;
9501
      }
9502
 
9503
      public short getThriftFieldId() {
9504
        return _thriftId;
9505
      }
9506
 
9507
      public String getFieldName() {
9508
        return _fieldName;
9509
      }
9510
    }
9511
 
9512
    // isset id assignments
9513
    private static final int __PROVIDERID_ISSET_ID = 0;
9514
    private BitSet __isset_bit_vector = new BitSet(1);
9515
 
3430 rajveer 9516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9517
    static {
3430 rajveer 9518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9519
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9521
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9523
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9524
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9525
    }
9526
 
9527
    public getFreeAwbCount_args() {
9528
    }
9529
 
9530
    public getFreeAwbCount_args(
3103 chandransh 9531
      long providerId,
9532
      String type)
1139 chandransh 9533
    {
9534
      this();
9535
      this.providerId = providerId;
9536
      setProviderIdIsSet(true);
3103 chandransh 9537
      this.type = type;
1139 chandransh 9538
    }
9539
 
9540
    /**
9541
     * Performs a deep copy on <i>other</i>.
9542
     */
9543
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9544
      __isset_bit_vector.clear();
9545
      __isset_bit_vector.or(other.__isset_bit_vector);
9546
      this.providerId = other.providerId;
3103 chandransh 9547
      if (other.isSetType()) {
9548
        this.type = other.type;
9549
      }
1139 chandransh 9550
    }
9551
 
9552
    public getFreeAwbCount_args deepCopy() {
9553
      return new getFreeAwbCount_args(this);
9554
    }
9555
 
3430 rajveer 9556
    @Override
9557
    public void clear() {
9558
      setProviderIdIsSet(false);
9559
      this.providerId = 0;
9560
      this.type = null;
1139 chandransh 9561
    }
9562
 
9563
    public long getProviderId() {
9564
      return this.providerId;
9565
    }
9566
 
3430 rajveer 9567
    public void setProviderId(long providerId) {
1139 chandransh 9568
      this.providerId = providerId;
9569
      setProviderIdIsSet(true);
9570
    }
9571
 
9572
    public void unsetProviderId() {
9573
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9574
    }
9575
 
3430 rajveer 9576
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9577
    public boolean isSetProviderId() {
9578
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9579
    }
9580
 
9581
    public void setProviderIdIsSet(boolean value) {
9582
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9583
    }
9584
 
3103 chandransh 9585
    public String getType() {
9586
      return this.type;
9587
    }
9588
 
3430 rajveer 9589
    public void setType(String type) {
3103 chandransh 9590
      this.type = type;
9591
    }
9592
 
9593
    public void unsetType() {
9594
      this.type = null;
9595
    }
9596
 
3430 rajveer 9597
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9598
    public boolean isSetType() {
9599
      return this.type != null;
9600
    }
9601
 
9602
    public void setTypeIsSet(boolean value) {
9603
      if (!value) {
9604
        this.type = null;
9605
      }
9606
    }
9607
 
1139 chandransh 9608
    public void setFieldValue(_Fields field, Object value) {
9609
      switch (field) {
9610
      case PROVIDER_ID:
9611
        if (value == null) {
9612
          unsetProviderId();
9613
        } else {
9614
          setProviderId((Long)value);
9615
        }
9616
        break;
9617
 
3103 chandransh 9618
      case TYPE:
9619
        if (value == null) {
9620
          unsetType();
9621
        } else {
9622
          setType((String)value);
9623
        }
9624
        break;
9625
 
1139 chandransh 9626
      }
9627
    }
9628
 
9629
    public Object getFieldValue(_Fields field) {
9630
      switch (field) {
9631
      case PROVIDER_ID:
3430 rajveer 9632
        return Long.valueOf(getProviderId());
1139 chandransh 9633
 
3103 chandransh 9634
      case TYPE:
9635
        return getType();
9636
 
1139 chandransh 9637
      }
9638
      throw new IllegalStateException();
9639
    }
9640
 
3430 rajveer 9641
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9642
    public boolean isSet(_Fields field) {
9643
      if (field == null) {
9644
        throw new IllegalArgumentException();
9645
      }
1139 chandransh 9646
 
9647
      switch (field) {
9648
      case PROVIDER_ID:
9649
        return isSetProviderId();
3103 chandransh 9650
      case TYPE:
9651
        return isSetType();
1139 chandransh 9652
      }
9653
      throw new IllegalStateException();
9654
    }
9655
 
9656
    @Override
9657
    public boolean equals(Object that) {
9658
      if (that == null)
9659
        return false;
9660
      if (that instanceof getFreeAwbCount_args)
9661
        return this.equals((getFreeAwbCount_args)that);
9662
      return false;
9663
    }
9664
 
9665
    public boolean equals(getFreeAwbCount_args that) {
9666
      if (that == null)
9667
        return false;
9668
 
9669
      boolean this_present_providerId = true;
9670
      boolean that_present_providerId = true;
9671
      if (this_present_providerId || that_present_providerId) {
9672
        if (!(this_present_providerId && that_present_providerId))
9673
          return false;
9674
        if (this.providerId != that.providerId)
9675
          return false;
9676
      }
9677
 
3103 chandransh 9678
      boolean this_present_type = true && this.isSetType();
9679
      boolean that_present_type = true && that.isSetType();
9680
      if (this_present_type || that_present_type) {
9681
        if (!(this_present_type && that_present_type))
9682
          return false;
9683
        if (!this.type.equals(that.type))
9684
          return false;
9685
      }
9686
 
1139 chandransh 9687
      return true;
9688
    }
9689
 
9690
    @Override
9691
    public int hashCode() {
9692
      return 0;
9693
    }
9694
 
9695
    public int compareTo(getFreeAwbCount_args other) {
9696
      if (!getClass().equals(other.getClass())) {
9697
        return getClass().getName().compareTo(other.getClass().getName());
9698
      }
9699
 
9700
      int lastComparison = 0;
9701
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9702
 
3430 rajveer 9703
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9704
      if (lastComparison != 0) {
9705
        return lastComparison;
9706
      }
3430 rajveer 9707
      if (isSetProviderId()) {
9708
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9709
        if (lastComparison != 0) {
9710
          return lastComparison;
9711
        }
1139 chandransh 9712
      }
3430 rajveer 9713
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9714
      if (lastComparison != 0) {
9715
        return lastComparison;
9716
      }
3430 rajveer 9717
      if (isSetType()) {
9718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9719
        if (lastComparison != 0) {
9720
          return lastComparison;
9721
        }
3103 chandransh 9722
      }
1139 chandransh 9723
      return 0;
9724
    }
9725
 
3430 rajveer 9726
    public _Fields fieldForId(int fieldId) {
9727
      return _Fields.findByThriftId(fieldId);
9728
    }
9729
 
9730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9731
      org.apache.thrift.protocol.TField field;
1139 chandransh 9732
      iprot.readStructBegin();
9733
      while (true)
9734
      {
9735
        field = iprot.readFieldBegin();
3430 rajveer 9736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9737
          break;
9738
        }
3430 rajveer 9739
        switch (field.id) {
9740
          case 1: // PROVIDER_ID
9741
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9742
              this.providerId = iprot.readI64();
9743
              setProviderIdIsSet(true);
9744
            } else { 
9745
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9746
            }
9747
            break;
9748
          case 2: // TYPE
9749
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9750
              this.type = iprot.readString();
9751
            } else { 
9752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9753
            }
9754
            break;
9755
          default:
9756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9757
        }
3430 rajveer 9758
        iprot.readFieldEnd();
1139 chandransh 9759
      }
9760
      iprot.readStructEnd();
9761
      validate();
9762
    }
9763
 
3430 rajveer 9764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9765
      validate();
9766
 
9767
      oprot.writeStructBegin(STRUCT_DESC);
9768
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9769
      oprot.writeI64(this.providerId);
9770
      oprot.writeFieldEnd();
3103 chandransh 9771
      if (this.type != null) {
9772
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9773
        oprot.writeString(this.type);
9774
        oprot.writeFieldEnd();
9775
      }
1139 chandransh 9776
      oprot.writeFieldStop();
9777
      oprot.writeStructEnd();
9778
    }
9779
 
9780
    @Override
9781
    public String toString() {
9782
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9783
      boolean first = true;
9784
 
9785
      sb.append("providerId:");
9786
      sb.append(this.providerId);
9787
      first = false;
3103 chandransh 9788
      if (!first) sb.append(", ");
9789
      sb.append("type:");
9790
      if (this.type == null) {
9791
        sb.append("null");
9792
      } else {
9793
        sb.append(this.type);
9794
      }
9795
      first = false;
1139 chandransh 9796
      sb.append(")");
9797
      return sb.toString();
9798
    }
9799
 
3430 rajveer 9800
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9801
      // check for required fields
9802
    }
9803
 
3430 rajveer 9804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9805
      try {
9806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9807
      } catch (org.apache.thrift.TException te) {
9808
        throw new java.io.IOException(te);
9809
      }
9810
    }
9811
 
9812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9813
      try {
9814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9815
      } catch (org.apache.thrift.TException te) {
9816
        throw new java.io.IOException(te);
9817
      }
9818
    }
9819
 
1139 chandransh 9820
  }
9821
 
3430 rajveer 9822
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9824
 
3430 rajveer 9825
    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 9826
 
3430 rajveer 9827
    private long success; // required
1139 chandransh 9828
 
9829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9831
      SUCCESS((short)0, "success");
9832
 
9833
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9834
 
9835
      static {
9836
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9837
          byName.put(field.getFieldName(), field);
9838
        }
9839
      }
9840
 
9841
      /**
9842
       * Find the _Fields constant that matches fieldId, or null if its not found.
9843
       */
9844
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9845
        switch(fieldId) {
9846
          case 0: // SUCCESS
9847
            return SUCCESS;
9848
          default:
9849
            return null;
9850
        }
1139 chandransh 9851
      }
9852
 
9853
      /**
9854
       * Find the _Fields constant that matches fieldId, throwing an exception
9855
       * if it is not found.
9856
       */
9857
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9858
        _Fields fields = findByThriftId(fieldId);
9859
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9860
        return fields;
9861
      }
9862
 
9863
      /**
9864
       * Find the _Fields constant that matches name, or null if its not found.
9865
       */
9866
      public static _Fields findByName(String name) {
9867
        return byName.get(name);
9868
      }
9869
 
9870
      private final short _thriftId;
9871
      private final String _fieldName;
9872
 
9873
      _Fields(short thriftId, String fieldName) {
9874
        _thriftId = thriftId;
9875
        _fieldName = fieldName;
9876
      }
9877
 
9878
      public short getThriftFieldId() {
9879
        return _thriftId;
9880
      }
9881
 
9882
      public String getFieldName() {
9883
        return _fieldName;
9884
      }
9885
    }
9886
 
9887
    // isset id assignments
9888
    private static final int __SUCCESS_ISSET_ID = 0;
9889
    private BitSet __isset_bit_vector = new BitSet(1);
9890
 
3430 rajveer 9891
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9892
    static {
3430 rajveer 9893
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9894
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9895
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9896
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9897
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9898
    }
9899
 
9900
    public getFreeAwbCount_result() {
9901
    }
9902
 
9903
    public getFreeAwbCount_result(
9904
      long success)
9905
    {
9906
      this();
9907
      this.success = success;
9908
      setSuccessIsSet(true);
9909
    }
9910
 
9911
    /**
9912
     * Performs a deep copy on <i>other</i>.
9913
     */
9914
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9915
      __isset_bit_vector.clear();
9916
      __isset_bit_vector.or(other.__isset_bit_vector);
9917
      this.success = other.success;
9918
    }
9919
 
9920
    public getFreeAwbCount_result deepCopy() {
9921
      return new getFreeAwbCount_result(this);
9922
    }
9923
 
3430 rajveer 9924
    @Override
9925
    public void clear() {
9926
      setSuccessIsSet(false);
9927
      this.success = 0;
1139 chandransh 9928
    }
9929
 
9930
    public long getSuccess() {
9931
      return this.success;
9932
    }
9933
 
3430 rajveer 9934
    public void setSuccess(long success) {
1139 chandransh 9935
      this.success = success;
9936
      setSuccessIsSet(true);
9937
    }
9938
 
9939
    public void unsetSuccess() {
9940
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9941
    }
9942
 
3430 rajveer 9943
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9944
    public boolean isSetSuccess() {
9945
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9946
    }
9947
 
9948
    public void setSuccessIsSet(boolean value) {
9949
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9950
    }
9951
 
9952
    public void setFieldValue(_Fields field, Object value) {
9953
      switch (field) {
9954
      case SUCCESS:
9955
        if (value == null) {
9956
          unsetSuccess();
9957
        } else {
9958
          setSuccess((Long)value);
9959
        }
9960
        break;
9961
 
9962
      }
9963
    }
9964
 
9965
    public Object getFieldValue(_Fields field) {
9966
      switch (field) {
9967
      case SUCCESS:
3430 rajveer 9968
        return Long.valueOf(getSuccess());
1139 chandransh 9969
 
9970
      }
9971
      throw new IllegalStateException();
9972
    }
9973
 
3430 rajveer 9974
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9975
    public boolean isSet(_Fields field) {
9976
      if (field == null) {
9977
        throw new IllegalArgumentException();
9978
      }
1139 chandransh 9979
 
9980
      switch (field) {
9981
      case SUCCESS:
9982
        return isSetSuccess();
9983
      }
9984
      throw new IllegalStateException();
9985
    }
9986
 
9987
    @Override
9988
    public boolean equals(Object that) {
9989
      if (that == null)
9990
        return false;
9991
      if (that instanceof getFreeAwbCount_result)
9992
        return this.equals((getFreeAwbCount_result)that);
9993
      return false;
9994
    }
9995
 
9996
    public boolean equals(getFreeAwbCount_result that) {
9997
      if (that == null)
9998
        return false;
9999
 
10000
      boolean this_present_success = true;
10001
      boolean that_present_success = true;
10002
      if (this_present_success || that_present_success) {
10003
        if (!(this_present_success && that_present_success))
10004
          return false;
10005
        if (this.success != that.success)
10006
          return false;
10007
      }
10008
 
10009
      return true;
10010
    }
10011
 
10012
    @Override
10013
    public int hashCode() {
10014
      return 0;
10015
    }
10016
 
10017
    public int compareTo(getFreeAwbCount_result other) {
10018
      if (!getClass().equals(other.getClass())) {
10019
        return getClass().getName().compareTo(other.getClass().getName());
10020
      }
10021
 
10022
      int lastComparison = 0;
10023
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
10024
 
3430 rajveer 10025
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 10026
      if (lastComparison != 0) {
10027
        return lastComparison;
10028
      }
3430 rajveer 10029
      if (isSetSuccess()) {
10030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10031
        if (lastComparison != 0) {
10032
          return lastComparison;
10033
        }
1139 chandransh 10034
      }
10035
      return 0;
10036
    }
10037
 
3430 rajveer 10038
    public _Fields fieldForId(int fieldId) {
10039
      return _Fields.findByThriftId(fieldId);
10040
    }
10041
 
10042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10043
      org.apache.thrift.protocol.TField field;
1139 chandransh 10044
      iprot.readStructBegin();
10045
      while (true)
10046
      {
10047
        field = iprot.readFieldBegin();
3430 rajveer 10048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 10049
          break;
10050
        }
3430 rajveer 10051
        switch (field.id) {
10052
          case 0: // SUCCESS
10053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10054
              this.success = iprot.readI64();
10055
              setSuccessIsSet(true);
10056
            } else { 
10057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10058
            }
10059
            break;
10060
          default:
10061
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 10062
        }
3430 rajveer 10063
        iprot.readFieldEnd();
1139 chandransh 10064
      }
10065
      iprot.readStructEnd();
10066
      validate();
10067
    }
10068
 
3430 rajveer 10069
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 10070
      oprot.writeStructBegin(STRUCT_DESC);
10071
 
10072
      if (this.isSetSuccess()) {
10073
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10074
        oprot.writeI64(this.success);
10075
        oprot.writeFieldEnd();
10076
      }
10077
      oprot.writeFieldStop();
10078
      oprot.writeStructEnd();
10079
    }
10080
 
10081
    @Override
10082
    public String toString() {
10083
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
10084
      boolean first = true;
10085
 
10086
      sb.append("success:");
10087
      sb.append(this.success);
10088
      first = false;
10089
      sb.append(")");
10090
      return sb.toString();
10091
    }
10092
 
3430 rajveer 10093
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 10094
      // check for required fields
10095
    }
10096
 
3430 rajveer 10097
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10098
      try {
10099
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10100
      } catch (org.apache.thrift.TException te) {
10101
        throw new java.io.IOException(te);
10102
      }
10103
    }
10104
 
10105
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10106
      try {
10107
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10108
      } catch (org.apache.thrift.TException te) {
10109
        throw new java.io.IOException(te);
10110
      }
10111
    }
10112
 
1139 chandransh 10113
  }
10114
 
3430 rajveer 10115
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
10116
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 10117
 
3430 rajveer 10118
    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);
10119
    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 10120
 
3430 rajveer 10121
    private long fromDate; // required
10122
    private long toDate; // required
1730 ankur.sing 10123
 
10124
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10125
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10126
      FROM_DATE((short)1, "fromDate"),
10127
      TO_DATE((short)2, "toDate");
10128
 
10129
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10130
 
10131
      static {
10132
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10133
          byName.put(field.getFieldName(), field);
10134
        }
10135
      }
10136
 
10137
      /**
10138
       * Find the _Fields constant that matches fieldId, or null if its not found.
10139
       */
10140
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10141
        switch(fieldId) {
10142
          case 1: // FROM_DATE
10143
            return FROM_DATE;
10144
          case 2: // TO_DATE
10145
            return TO_DATE;
10146
          default:
10147
            return null;
10148
        }
1730 ankur.sing 10149
      }
10150
 
10151
      /**
10152
       * Find the _Fields constant that matches fieldId, throwing an exception
10153
       * if it is not found.
10154
       */
10155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10156
        _Fields fields = findByThriftId(fieldId);
10157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10158
        return fields;
10159
      }
10160
 
10161
      /**
10162
       * Find the _Fields constant that matches name, or null if its not found.
10163
       */
10164
      public static _Fields findByName(String name) {
10165
        return byName.get(name);
10166
      }
10167
 
10168
      private final short _thriftId;
10169
      private final String _fieldName;
10170
 
10171
      _Fields(short thriftId, String fieldName) {
10172
        _thriftId = thriftId;
10173
        _fieldName = fieldName;
10174
      }
10175
 
10176
      public short getThriftFieldId() {
10177
        return _thriftId;
10178
      }
10179
 
10180
      public String getFieldName() {
10181
        return _fieldName;
10182
      }
10183
    }
10184
 
10185
    // isset id assignments
10186
    private static final int __FROMDATE_ISSET_ID = 0;
10187
    private static final int __TODATE_ISSET_ID = 1;
10188
    private BitSet __isset_bit_vector = new BitSet(2);
10189
 
3430 rajveer 10190
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10191
    static {
3430 rajveer 10192
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10193
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10194
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10195
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10199
    }
10200
 
10201
    public getHolidays_args() {
10202
    }
10203
 
10204
    public getHolidays_args(
10205
      long fromDate,
10206
      long toDate)
10207
    {
10208
      this();
10209
      this.fromDate = fromDate;
10210
      setFromDateIsSet(true);
10211
      this.toDate = toDate;
10212
      setToDateIsSet(true);
10213
    }
10214
 
10215
    /**
10216
     * Performs a deep copy on <i>other</i>.
10217
     */
10218
    public getHolidays_args(getHolidays_args other) {
10219
      __isset_bit_vector.clear();
10220
      __isset_bit_vector.or(other.__isset_bit_vector);
10221
      this.fromDate = other.fromDate;
10222
      this.toDate = other.toDate;
10223
    }
10224
 
10225
    public getHolidays_args deepCopy() {
10226
      return new getHolidays_args(this);
10227
    }
10228
 
3430 rajveer 10229
    @Override
10230
    public void clear() {
10231
      setFromDateIsSet(false);
10232
      this.fromDate = 0;
10233
      setToDateIsSet(false);
10234
      this.toDate = 0;
1730 ankur.sing 10235
    }
10236
 
10237
    public long getFromDate() {
10238
      return this.fromDate;
10239
    }
10240
 
3430 rajveer 10241
    public void setFromDate(long fromDate) {
1730 ankur.sing 10242
      this.fromDate = fromDate;
10243
      setFromDateIsSet(true);
10244
    }
10245
 
10246
    public void unsetFromDate() {
10247
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10248
    }
10249
 
3430 rajveer 10250
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10251
    public boolean isSetFromDate() {
10252
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10253
    }
10254
 
10255
    public void setFromDateIsSet(boolean value) {
10256
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10257
    }
10258
 
10259
    public long getToDate() {
10260
      return this.toDate;
10261
    }
10262
 
3430 rajveer 10263
    public void setToDate(long toDate) {
1730 ankur.sing 10264
      this.toDate = toDate;
10265
      setToDateIsSet(true);
10266
    }
10267
 
10268
    public void unsetToDate() {
10269
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10270
    }
10271
 
3430 rajveer 10272
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10273
    public boolean isSetToDate() {
10274
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10275
    }
10276
 
10277
    public void setToDateIsSet(boolean value) {
10278
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10279
    }
10280
 
10281
    public void setFieldValue(_Fields field, Object value) {
10282
      switch (field) {
10283
      case FROM_DATE:
10284
        if (value == null) {
10285
          unsetFromDate();
10286
        } else {
10287
          setFromDate((Long)value);
10288
        }
10289
        break;
10290
 
10291
      case TO_DATE:
10292
        if (value == null) {
10293
          unsetToDate();
10294
        } else {
10295
          setToDate((Long)value);
10296
        }
10297
        break;
10298
 
10299
      }
10300
    }
10301
 
10302
    public Object getFieldValue(_Fields field) {
10303
      switch (field) {
10304
      case FROM_DATE:
3430 rajveer 10305
        return Long.valueOf(getFromDate());
1730 ankur.sing 10306
 
10307
      case TO_DATE:
3430 rajveer 10308
        return Long.valueOf(getToDate());
1730 ankur.sing 10309
 
10310
      }
10311
      throw new IllegalStateException();
10312
    }
10313
 
3430 rajveer 10314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10315
    public boolean isSet(_Fields field) {
10316
      if (field == null) {
10317
        throw new IllegalArgumentException();
10318
      }
1730 ankur.sing 10319
 
10320
      switch (field) {
10321
      case FROM_DATE:
10322
        return isSetFromDate();
10323
      case TO_DATE:
10324
        return isSetToDate();
10325
      }
10326
      throw new IllegalStateException();
10327
    }
10328
 
10329
    @Override
10330
    public boolean equals(Object that) {
10331
      if (that == null)
10332
        return false;
10333
      if (that instanceof getHolidays_args)
10334
        return this.equals((getHolidays_args)that);
10335
      return false;
10336
    }
10337
 
10338
    public boolean equals(getHolidays_args that) {
10339
      if (that == null)
10340
        return false;
10341
 
10342
      boolean this_present_fromDate = true;
10343
      boolean that_present_fromDate = true;
10344
      if (this_present_fromDate || that_present_fromDate) {
10345
        if (!(this_present_fromDate && that_present_fromDate))
10346
          return false;
10347
        if (this.fromDate != that.fromDate)
10348
          return false;
10349
      }
10350
 
10351
      boolean this_present_toDate = true;
10352
      boolean that_present_toDate = true;
10353
      if (this_present_toDate || that_present_toDate) {
10354
        if (!(this_present_toDate && that_present_toDate))
10355
          return false;
10356
        if (this.toDate != that.toDate)
10357
          return false;
10358
      }
10359
 
10360
      return true;
10361
    }
10362
 
10363
    @Override
10364
    public int hashCode() {
10365
      return 0;
10366
    }
10367
 
10368
    public int compareTo(getHolidays_args other) {
10369
      if (!getClass().equals(other.getClass())) {
10370
        return getClass().getName().compareTo(other.getClass().getName());
10371
      }
10372
 
10373
      int lastComparison = 0;
10374
      getHolidays_args typedOther = (getHolidays_args)other;
10375
 
3430 rajveer 10376
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10377
      if (lastComparison != 0) {
10378
        return lastComparison;
10379
      }
3430 rajveer 10380
      if (isSetFromDate()) {
10381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10382
        if (lastComparison != 0) {
10383
          return lastComparison;
10384
        }
1730 ankur.sing 10385
      }
3430 rajveer 10386
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10387
      if (lastComparison != 0) {
10388
        return lastComparison;
10389
      }
3430 rajveer 10390
      if (isSetToDate()) {
10391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10392
        if (lastComparison != 0) {
10393
          return lastComparison;
10394
        }
1730 ankur.sing 10395
      }
10396
      return 0;
10397
    }
10398
 
3430 rajveer 10399
    public _Fields fieldForId(int fieldId) {
10400
      return _Fields.findByThriftId(fieldId);
10401
    }
10402
 
10403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10404
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10405
      iprot.readStructBegin();
10406
      while (true)
10407
      {
10408
        field = iprot.readFieldBegin();
3430 rajveer 10409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10410
          break;
10411
        }
3430 rajveer 10412
        switch (field.id) {
10413
          case 1: // FROM_DATE
10414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10415
              this.fromDate = iprot.readI64();
10416
              setFromDateIsSet(true);
10417
            } else { 
10418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10419
            }
10420
            break;
10421
          case 2: // TO_DATE
10422
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10423
              this.toDate = iprot.readI64();
10424
              setToDateIsSet(true);
10425
            } else { 
10426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10427
            }
10428
            break;
10429
          default:
10430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10431
        }
3430 rajveer 10432
        iprot.readFieldEnd();
1730 ankur.sing 10433
      }
10434
      iprot.readStructEnd();
10435
      validate();
10436
    }
10437
 
3430 rajveer 10438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10439
      validate();
10440
 
10441
      oprot.writeStructBegin(STRUCT_DESC);
10442
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10443
      oprot.writeI64(this.fromDate);
10444
      oprot.writeFieldEnd();
10445
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10446
      oprot.writeI64(this.toDate);
10447
      oprot.writeFieldEnd();
10448
      oprot.writeFieldStop();
10449
      oprot.writeStructEnd();
10450
    }
10451
 
10452
    @Override
10453
    public String toString() {
10454
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10455
      boolean first = true;
10456
 
10457
      sb.append("fromDate:");
10458
      sb.append(this.fromDate);
10459
      first = false;
10460
      if (!first) sb.append(", ");
10461
      sb.append("toDate:");
10462
      sb.append(this.toDate);
10463
      first = false;
10464
      sb.append(")");
10465
      return sb.toString();
10466
    }
10467
 
3430 rajveer 10468
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10469
      // check for required fields
10470
    }
10471
 
3430 rajveer 10472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10473
      try {
10474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10475
      } catch (org.apache.thrift.TException te) {
10476
        throw new java.io.IOException(te);
10477
      }
10478
    }
10479
 
10480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10481
      try {
10482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10483
      } catch (org.apache.thrift.TException te) {
10484
        throw new java.io.IOException(te);
10485
      }
10486
    }
10487
 
1730 ankur.sing 10488
  }
10489
 
3430 rajveer 10490
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10492
 
3430 rajveer 10493
    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 10494
 
3430 rajveer 10495
    private List<Long> success; // required
1730 ankur.sing 10496
 
10497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10499
      SUCCESS((short)0, "success");
10500
 
10501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10502
 
10503
      static {
10504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10505
          byName.put(field.getFieldName(), field);
10506
        }
10507
      }
10508
 
10509
      /**
10510
       * Find the _Fields constant that matches fieldId, or null if its not found.
10511
       */
10512
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10513
        switch(fieldId) {
10514
          case 0: // SUCCESS
10515
            return SUCCESS;
10516
          default:
10517
            return null;
10518
        }
1730 ankur.sing 10519
      }
10520
 
10521
      /**
10522
       * Find the _Fields constant that matches fieldId, throwing an exception
10523
       * if it is not found.
10524
       */
10525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10526
        _Fields fields = findByThriftId(fieldId);
10527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10528
        return fields;
10529
      }
10530
 
10531
      /**
10532
       * Find the _Fields constant that matches name, or null if its not found.
10533
       */
10534
      public static _Fields findByName(String name) {
10535
        return byName.get(name);
10536
      }
10537
 
10538
      private final short _thriftId;
10539
      private final String _fieldName;
10540
 
10541
      _Fields(short thriftId, String fieldName) {
10542
        _thriftId = thriftId;
10543
        _fieldName = fieldName;
10544
      }
10545
 
10546
      public short getThriftFieldId() {
10547
        return _thriftId;
10548
      }
10549
 
10550
      public String getFieldName() {
10551
        return _fieldName;
10552
      }
10553
    }
10554
 
10555
    // isset id assignments
10556
 
3430 rajveer 10557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10558
    static {
3430 rajveer 10559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10560
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10561
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10562
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10563
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10564
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10565
    }
10566
 
10567
    public getHolidays_result() {
10568
    }
10569
 
10570
    public getHolidays_result(
10571
      List<Long> success)
10572
    {
10573
      this();
10574
      this.success = success;
10575
    }
10576
 
10577
    /**
10578
     * Performs a deep copy on <i>other</i>.
10579
     */
10580
    public getHolidays_result(getHolidays_result other) {
10581
      if (other.isSetSuccess()) {
10582
        List<Long> __this__success = new ArrayList<Long>();
10583
        for (Long other_element : other.success) {
10584
          __this__success.add(other_element);
10585
        }
10586
        this.success = __this__success;
10587
      }
10588
    }
10589
 
10590
    public getHolidays_result deepCopy() {
10591
      return new getHolidays_result(this);
10592
    }
10593
 
3430 rajveer 10594
    @Override
10595
    public void clear() {
10596
      this.success = null;
1730 ankur.sing 10597
    }
10598
 
10599
    public int getSuccessSize() {
10600
      return (this.success == null) ? 0 : this.success.size();
10601
    }
10602
 
10603
    public java.util.Iterator<Long> getSuccessIterator() {
10604
      return (this.success == null) ? null : this.success.iterator();
10605
    }
10606
 
10607
    public void addToSuccess(long elem) {
10608
      if (this.success == null) {
10609
        this.success = new ArrayList<Long>();
10610
      }
10611
      this.success.add(elem);
10612
    }
10613
 
10614
    public List<Long> getSuccess() {
10615
      return this.success;
10616
    }
10617
 
3430 rajveer 10618
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10619
      this.success = success;
10620
    }
10621
 
10622
    public void unsetSuccess() {
10623
      this.success = null;
10624
    }
10625
 
3430 rajveer 10626
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10627
    public boolean isSetSuccess() {
10628
      return this.success != null;
10629
    }
10630
 
10631
    public void setSuccessIsSet(boolean value) {
10632
      if (!value) {
10633
        this.success = null;
10634
      }
10635
    }
10636
 
10637
    public void setFieldValue(_Fields field, Object value) {
10638
      switch (field) {
10639
      case SUCCESS:
10640
        if (value == null) {
10641
          unsetSuccess();
10642
        } else {
10643
          setSuccess((List<Long>)value);
10644
        }
10645
        break;
10646
 
10647
      }
10648
    }
10649
 
10650
    public Object getFieldValue(_Fields field) {
10651
      switch (field) {
10652
      case SUCCESS:
10653
        return getSuccess();
10654
 
10655
      }
10656
      throw new IllegalStateException();
10657
    }
10658
 
3430 rajveer 10659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10660
    public boolean isSet(_Fields field) {
10661
      if (field == null) {
10662
        throw new IllegalArgumentException();
10663
      }
1730 ankur.sing 10664
 
10665
      switch (field) {
10666
      case SUCCESS:
10667
        return isSetSuccess();
10668
      }
10669
      throw new IllegalStateException();
10670
    }
10671
 
10672
    @Override
10673
    public boolean equals(Object that) {
10674
      if (that == null)
10675
        return false;
10676
      if (that instanceof getHolidays_result)
10677
        return this.equals((getHolidays_result)that);
10678
      return false;
10679
    }
10680
 
10681
    public boolean equals(getHolidays_result that) {
10682
      if (that == null)
10683
        return false;
10684
 
10685
      boolean this_present_success = true && this.isSetSuccess();
10686
      boolean that_present_success = true && that.isSetSuccess();
10687
      if (this_present_success || that_present_success) {
10688
        if (!(this_present_success && that_present_success))
10689
          return false;
10690
        if (!this.success.equals(that.success))
10691
          return false;
10692
      }
10693
 
10694
      return true;
10695
    }
10696
 
10697
    @Override
10698
    public int hashCode() {
10699
      return 0;
10700
    }
10701
 
10702
    public int compareTo(getHolidays_result other) {
10703
      if (!getClass().equals(other.getClass())) {
10704
        return getClass().getName().compareTo(other.getClass().getName());
10705
      }
10706
 
10707
      int lastComparison = 0;
10708
      getHolidays_result typedOther = (getHolidays_result)other;
10709
 
3430 rajveer 10710
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10711
      if (lastComparison != 0) {
10712
        return lastComparison;
10713
      }
3430 rajveer 10714
      if (isSetSuccess()) {
10715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10716
        if (lastComparison != 0) {
10717
          return lastComparison;
10718
        }
1730 ankur.sing 10719
      }
10720
      return 0;
10721
    }
10722
 
3430 rajveer 10723
    public _Fields fieldForId(int fieldId) {
10724
      return _Fields.findByThriftId(fieldId);
10725
    }
10726
 
10727
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10728
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10729
      iprot.readStructBegin();
10730
      while (true)
10731
      {
10732
        field = iprot.readFieldBegin();
3430 rajveer 10733
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10734
          break;
10735
        }
3430 rajveer 10736
        switch (field.id) {
10737
          case 0: // SUCCESS
10738
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10739
              {
7792 anupam.sin 10740
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10741
                this.success = new ArrayList<Long>(_list12.size);
10742
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10743
                {
7792 anupam.sin 10744
                  long _elem14; // required
10745
                  _elem14 = iprot.readI64();
10746
                  this.success.add(_elem14);
1730 ankur.sing 10747
                }
3430 rajveer 10748
                iprot.readListEnd();
1730 ankur.sing 10749
              }
3430 rajveer 10750
            } else { 
10751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10752
            }
10753
            break;
10754
          default:
10755
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10756
        }
3430 rajveer 10757
        iprot.readFieldEnd();
1730 ankur.sing 10758
      }
10759
      iprot.readStructEnd();
10760
      validate();
10761
    }
10762
 
3430 rajveer 10763
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10764
      oprot.writeStructBegin(STRUCT_DESC);
10765
 
10766
      if (this.isSetSuccess()) {
10767
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10768
        {
3430 rajveer 10769
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10770
          for (long _iter15 : this.success)
1730 ankur.sing 10771
          {
7792 anupam.sin 10772
            oprot.writeI64(_iter15);
1730 ankur.sing 10773
          }
10774
          oprot.writeListEnd();
10775
        }
10776
        oprot.writeFieldEnd();
10777
      }
10778
      oprot.writeFieldStop();
10779
      oprot.writeStructEnd();
10780
    }
10781
 
10782
    @Override
10783
    public String toString() {
10784
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10785
      boolean first = true;
10786
 
10787
      sb.append("success:");
10788
      if (this.success == null) {
10789
        sb.append("null");
10790
      } else {
10791
        sb.append(this.success);
10792
      }
10793
      first = false;
10794
      sb.append(")");
10795
      return sb.toString();
10796
    }
10797
 
3430 rajveer 10798
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10799
      // check for required fields
10800
    }
10801
 
3430 rajveer 10802
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10803
      try {
10804
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10805
      } catch (org.apache.thrift.TException te) {
10806
        throw new java.io.IOException(te);
10807
      }
10808
    }
10809
 
10810
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10811
      try {
10812
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10813
      } catch (org.apache.thrift.TException te) {
10814
        throw new java.io.IOException(te);
10815
      }
10816
    }
10817
 
1730 ankur.sing 10818
  }
10819
 
4934 amit.gupta 10820
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10822
 
10823
    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);
10824
    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);
10825
    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);
10826
 
10827
    private long catalogItemId; // required
10828
    private String destination_pin; // required
10829
    private DeliveryType type; // required
10830
 
10831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10833
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10834
      DESTINATION_PIN((short)2, "destination_pin"),
10835
      /**
10836
       * 
10837
       * @see DeliveryType
10838
       */
10839
      TYPE((short)3, "type");
10840
 
10841
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10842
 
10843
      static {
10844
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10845
          byName.put(field.getFieldName(), field);
10846
        }
10847
      }
10848
 
10849
      /**
10850
       * Find the _Fields constant that matches fieldId, or null if its not found.
10851
       */
10852
      public static _Fields findByThriftId(int fieldId) {
10853
        switch(fieldId) {
10854
          case 1: // CATALOG_ITEM_ID
10855
            return CATALOG_ITEM_ID;
10856
          case 2: // DESTINATION_PIN
10857
            return DESTINATION_PIN;
10858
          case 3: // TYPE
10859
            return TYPE;
10860
          default:
10861
            return null;
10862
        }
10863
      }
10864
 
10865
      /**
10866
       * Find the _Fields constant that matches fieldId, throwing an exception
10867
       * if it is not found.
10868
       */
10869
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10870
        _Fields fields = findByThriftId(fieldId);
10871
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10872
        return fields;
10873
      }
10874
 
10875
      /**
10876
       * Find the _Fields constant that matches name, or null if its not found.
10877
       */
10878
      public static _Fields findByName(String name) {
10879
        return byName.get(name);
10880
      }
10881
 
10882
      private final short _thriftId;
10883
      private final String _fieldName;
10884
 
10885
      _Fields(short thriftId, String fieldName) {
10886
        _thriftId = thriftId;
10887
        _fieldName = fieldName;
10888
      }
10889
 
10890
      public short getThriftFieldId() {
10891
        return _thriftId;
10892
      }
10893
 
10894
      public String getFieldName() {
10895
        return _fieldName;
10896
      }
10897
    }
10898
 
10899
    // isset id assignments
10900
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10901
    private BitSet __isset_bit_vector = new BitSet(1);
10902
 
10903
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10904
    static {
10905
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10906
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10907
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10908
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10909
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10910
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10911
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10912
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10913
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10914
    }
10915
 
10916
    public getEntityLogisticsEstimation_args() {
10917
    }
10918
 
10919
    public getEntityLogisticsEstimation_args(
10920
      long catalogItemId,
10921
      String destination_pin,
10922
      DeliveryType type)
10923
    {
10924
      this();
10925
      this.catalogItemId = catalogItemId;
10926
      setCatalogItemIdIsSet(true);
10927
      this.destination_pin = destination_pin;
10928
      this.type = type;
10929
    }
10930
 
10931
    /**
10932
     * Performs a deep copy on <i>other</i>.
10933
     */
10934
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10935
      __isset_bit_vector.clear();
10936
      __isset_bit_vector.or(other.__isset_bit_vector);
10937
      this.catalogItemId = other.catalogItemId;
10938
      if (other.isSetDestination_pin()) {
10939
        this.destination_pin = other.destination_pin;
10940
      }
10941
      if (other.isSetType()) {
10942
        this.type = other.type;
10943
      }
10944
    }
10945
 
10946
    public getEntityLogisticsEstimation_args deepCopy() {
10947
      return new getEntityLogisticsEstimation_args(this);
10948
    }
10949
 
10950
    @Override
10951
    public void clear() {
10952
      setCatalogItemIdIsSet(false);
10953
      this.catalogItemId = 0;
10954
      this.destination_pin = null;
10955
      this.type = null;
10956
    }
10957
 
10958
    public long getCatalogItemId() {
10959
      return this.catalogItemId;
10960
    }
10961
 
10962
    public void setCatalogItemId(long catalogItemId) {
10963
      this.catalogItemId = catalogItemId;
10964
      setCatalogItemIdIsSet(true);
10965
    }
10966
 
10967
    public void unsetCatalogItemId() {
10968
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10969
    }
10970
 
10971
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10972
    public boolean isSetCatalogItemId() {
10973
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10974
    }
10975
 
10976
    public void setCatalogItemIdIsSet(boolean value) {
10977
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10978
    }
10979
 
10980
    public String getDestination_pin() {
10981
      return this.destination_pin;
10982
    }
10983
 
10984
    public void setDestination_pin(String destination_pin) {
10985
      this.destination_pin = destination_pin;
10986
    }
10987
 
10988
    public void unsetDestination_pin() {
10989
      this.destination_pin = null;
10990
    }
10991
 
10992
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10993
    public boolean isSetDestination_pin() {
10994
      return this.destination_pin != null;
10995
    }
10996
 
10997
    public void setDestination_pinIsSet(boolean value) {
10998
      if (!value) {
10999
        this.destination_pin = null;
11000
      }
11001
    }
11002
 
11003
    /**
11004
     * 
11005
     * @see DeliveryType
11006
     */
11007
    public DeliveryType getType() {
11008
      return this.type;
11009
    }
11010
 
11011
    /**
11012
     * 
11013
     * @see DeliveryType
11014
     */
11015
    public void setType(DeliveryType type) {
11016
      this.type = type;
11017
    }
11018
 
11019
    public void unsetType() {
11020
      this.type = null;
11021
    }
11022
 
11023
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
11024
    public boolean isSetType() {
11025
      return this.type != null;
11026
    }
11027
 
11028
    public void setTypeIsSet(boolean value) {
11029
      if (!value) {
11030
        this.type = null;
11031
      }
11032
    }
11033
 
11034
    public void setFieldValue(_Fields field, Object value) {
11035
      switch (field) {
11036
      case CATALOG_ITEM_ID:
11037
        if (value == null) {
11038
          unsetCatalogItemId();
11039
        } else {
11040
          setCatalogItemId((Long)value);
11041
        }
11042
        break;
11043
 
11044
      case DESTINATION_PIN:
11045
        if (value == null) {
11046
          unsetDestination_pin();
11047
        } else {
11048
          setDestination_pin((String)value);
11049
        }
11050
        break;
11051
 
11052
      case TYPE:
11053
        if (value == null) {
11054
          unsetType();
11055
        } else {
11056
          setType((DeliveryType)value);
11057
        }
11058
        break;
11059
 
11060
      }
11061
    }
11062
 
11063
    public Object getFieldValue(_Fields field) {
11064
      switch (field) {
11065
      case CATALOG_ITEM_ID:
11066
        return Long.valueOf(getCatalogItemId());
11067
 
11068
      case DESTINATION_PIN:
11069
        return getDestination_pin();
11070
 
11071
      case TYPE:
11072
        return getType();
11073
 
11074
      }
11075
      throw new IllegalStateException();
11076
    }
11077
 
11078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11079
    public boolean isSet(_Fields field) {
11080
      if (field == null) {
11081
        throw new IllegalArgumentException();
11082
      }
11083
 
11084
      switch (field) {
11085
      case CATALOG_ITEM_ID:
11086
        return isSetCatalogItemId();
11087
      case DESTINATION_PIN:
11088
        return isSetDestination_pin();
11089
      case TYPE:
11090
        return isSetType();
11091
      }
11092
      throw new IllegalStateException();
11093
    }
11094
 
11095
    @Override
11096
    public boolean equals(Object that) {
11097
      if (that == null)
11098
        return false;
11099
      if (that instanceof getEntityLogisticsEstimation_args)
11100
        return this.equals((getEntityLogisticsEstimation_args)that);
11101
      return false;
11102
    }
11103
 
11104
    public boolean equals(getEntityLogisticsEstimation_args that) {
11105
      if (that == null)
11106
        return false;
11107
 
11108
      boolean this_present_catalogItemId = true;
11109
      boolean that_present_catalogItemId = true;
11110
      if (this_present_catalogItemId || that_present_catalogItemId) {
11111
        if (!(this_present_catalogItemId && that_present_catalogItemId))
11112
          return false;
11113
        if (this.catalogItemId != that.catalogItemId)
11114
          return false;
11115
      }
11116
 
11117
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
11118
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
11119
      if (this_present_destination_pin || that_present_destination_pin) {
11120
        if (!(this_present_destination_pin && that_present_destination_pin))
11121
          return false;
11122
        if (!this.destination_pin.equals(that.destination_pin))
11123
          return false;
11124
      }
11125
 
11126
      boolean this_present_type = true && this.isSetType();
11127
      boolean that_present_type = true && that.isSetType();
11128
      if (this_present_type || that_present_type) {
11129
        if (!(this_present_type && that_present_type))
11130
          return false;
11131
        if (!this.type.equals(that.type))
11132
          return false;
11133
      }
11134
 
11135
      return true;
11136
    }
11137
 
11138
    @Override
11139
    public int hashCode() {
11140
      return 0;
11141
    }
11142
 
11143
    public int compareTo(getEntityLogisticsEstimation_args other) {
11144
      if (!getClass().equals(other.getClass())) {
11145
        return getClass().getName().compareTo(other.getClass().getName());
11146
      }
11147
 
11148
      int lastComparison = 0;
11149
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
11150
 
11151
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
11152
      if (lastComparison != 0) {
11153
        return lastComparison;
11154
      }
11155
      if (isSetCatalogItemId()) {
11156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
11157
        if (lastComparison != 0) {
11158
          return lastComparison;
11159
        }
11160
      }
11161
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11162
      if (lastComparison != 0) {
11163
        return lastComparison;
11164
      }
11165
      if (isSetDestination_pin()) {
11166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11167
        if (lastComparison != 0) {
11168
          return lastComparison;
11169
        }
11170
      }
11171
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11172
      if (lastComparison != 0) {
11173
        return lastComparison;
11174
      }
11175
      if (isSetType()) {
11176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11177
        if (lastComparison != 0) {
11178
          return lastComparison;
11179
        }
11180
      }
11181
      return 0;
11182
    }
11183
 
11184
    public _Fields fieldForId(int fieldId) {
11185
      return _Fields.findByThriftId(fieldId);
11186
    }
11187
 
11188
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11189
      org.apache.thrift.protocol.TField field;
11190
      iprot.readStructBegin();
11191
      while (true)
11192
      {
11193
        field = iprot.readFieldBegin();
11194
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11195
          break;
11196
        }
11197
        switch (field.id) {
11198
          case 1: // CATALOG_ITEM_ID
11199
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11200
              this.catalogItemId = iprot.readI64();
11201
              setCatalogItemIdIsSet(true);
11202
            } else { 
11203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11204
            }
11205
            break;
11206
          case 2: // DESTINATION_PIN
11207
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11208
              this.destination_pin = iprot.readString();
11209
            } else { 
11210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11211
            }
11212
            break;
11213
          case 3: // TYPE
11214
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11215
              this.type = DeliveryType.findByValue(iprot.readI32());
11216
            } else { 
11217
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11218
            }
11219
            break;
11220
          default:
11221
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11222
        }
11223
        iprot.readFieldEnd();
11224
      }
11225
      iprot.readStructEnd();
11226
      validate();
11227
    }
11228
 
11229
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11230
      validate();
11231
 
11232
      oprot.writeStructBegin(STRUCT_DESC);
11233
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11234
      oprot.writeI64(this.catalogItemId);
11235
      oprot.writeFieldEnd();
11236
      if (this.destination_pin != null) {
11237
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11238
        oprot.writeString(this.destination_pin);
11239
        oprot.writeFieldEnd();
11240
      }
11241
      if (this.type != null) {
11242
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11243
        oprot.writeI32(this.type.getValue());
11244
        oprot.writeFieldEnd();
11245
      }
11246
      oprot.writeFieldStop();
11247
      oprot.writeStructEnd();
11248
    }
11249
 
11250
    @Override
11251
    public String toString() {
11252
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11253
      boolean first = true;
11254
 
11255
      sb.append("catalogItemId:");
11256
      sb.append(this.catalogItemId);
11257
      first = false;
11258
      if (!first) sb.append(", ");
11259
      sb.append("destination_pin:");
11260
      if (this.destination_pin == null) {
11261
        sb.append("null");
11262
      } else {
11263
        sb.append(this.destination_pin);
11264
      }
11265
      first = false;
11266
      if (!first) sb.append(", ");
11267
      sb.append("type:");
11268
      if (this.type == null) {
11269
        sb.append("null");
11270
      } else {
11271
        sb.append(this.type);
11272
      }
11273
      first = false;
11274
      sb.append(")");
11275
      return sb.toString();
11276
    }
11277
 
11278
    public void validate() throws org.apache.thrift.TException {
11279
      // check for required fields
11280
    }
11281
 
11282
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11283
      try {
11284
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11285
      } catch (org.apache.thrift.TException te) {
11286
        throw new java.io.IOException(te);
11287
      }
11288
    }
11289
 
11290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11291
      try {
11292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11293
      } catch (org.apache.thrift.TException te) {
11294
        throw new java.io.IOException(te);
11295
      }
11296
    }
11297
 
11298
  }
11299
 
11300
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11301
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11302
 
11303
    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);
11304
    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);
11305
 
9840 amit.gupta 11306
    private List<ItemText> success; // required
4934 amit.gupta 11307
    private LogisticsServiceException se; // required
11308
 
11309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11311
      SUCCESS((short)0, "success"),
11312
      SE((short)1, "se");
11313
 
11314
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11315
 
11316
      static {
11317
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11318
          byName.put(field.getFieldName(), field);
11319
        }
11320
      }
11321
 
11322
      /**
11323
       * Find the _Fields constant that matches fieldId, or null if its not found.
11324
       */
11325
      public static _Fields findByThriftId(int fieldId) {
11326
        switch(fieldId) {
11327
          case 0: // SUCCESS
11328
            return SUCCESS;
11329
          case 1: // SE
11330
            return SE;
11331
          default:
11332
            return null;
11333
        }
11334
      }
11335
 
11336
      /**
11337
       * Find the _Fields constant that matches fieldId, throwing an exception
11338
       * if it is not found.
11339
       */
11340
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11341
        _Fields fields = findByThriftId(fieldId);
11342
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11343
        return fields;
11344
      }
11345
 
11346
      /**
11347
       * Find the _Fields constant that matches name, or null if its not found.
11348
       */
11349
      public static _Fields findByName(String name) {
11350
        return byName.get(name);
11351
      }
11352
 
11353
      private final short _thriftId;
11354
      private final String _fieldName;
11355
 
11356
      _Fields(short thriftId, String fieldName) {
11357
        _thriftId = thriftId;
11358
        _fieldName = fieldName;
11359
      }
11360
 
11361
      public short getThriftFieldId() {
11362
        return _thriftId;
11363
      }
11364
 
11365
      public String getFieldName() {
11366
        return _fieldName;
11367
      }
11368
    }
11369
 
11370
    // isset id assignments
11371
 
11372
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11373
    static {
11374
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11375
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11376
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11377
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11378
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11379
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11382
    }
11383
 
11384
    public getEntityLogisticsEstimation_result() {
11385
    }
11386
 
11387
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11388
      List<ItemText> success,
4934 amit.gupta 11389
      LogisticsServiceException se)
11390
    {
11391
      this();
11392
      this.success = success;
11393
      this.se = se;
11394
    }
11395
 
11396
    /**
11397
     * Performs a deep copy on <i>other</i>.
11398
     */
11399
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11400
      if (other.isSetSuccess()) {
9840 amit.gupta 11401
        List<ItemText> __this__success = new ArrayList<ItemText>();
11402
        for (ItemText other_element : other.success) {
11403
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11404
        }
11405
        this.success = __this__success;
11406
      }
11407
      if (other.isSetSe()) {
11408
        this.se = new LogisticsServiceException(other.se);
11409
      }
11410
    }
11411
 
11412
    public getEntityLogisticsEstimation_result deepCopy() {
11413
      return new getEntityLogisticsEstimation_result(this);
11414
    }
11415
 
11416
    @Override
11417
    public void clear() {
11418
      this.success = null;
11419
      this.se = null;
11420
    }
11421
 
11422
    public int getSuccessSize() {
11423
      return (this.success == null) ? 0 : this.success.size();
11424
    }
11425
 
9840 amit.gupta 11426
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11427
      return (this.success == null) ? null : this.success.iterator();
11428
    }
11429
 
9840 amit.gupta 11430
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11431
      if (this.success == null) {
9840 amit.gupta 11432
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11433
      }
11434
      this.success.add(elem);
11435
    }
11436
 
9840 amit.gupta 11437
    public List<ItemText> getSuccess() {
4934 amit.gupta 11438
      return this.success;
11439
    }
11440
 
9840 amit.gupta 11441
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11442
      this.success = success;
11443
    }
11444
 
11445
    public void unsetSuccess() {
11446
      this.success = null;
11447
    }
11448
 
11449
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11450
    public boolean isSetSuccess() {
11451
      return this.success != null;
11452
    }
11453
 
11454
    public void setSuccessIsSet(boolean value) {
11455
      if (!value) {
11456
        this.success = null;
11457
      }
11458
    }
11459
 
11460
    public LogisticsServiceException getSe() {
11461
      return this.se;
11462
    }
11463
 
11464
    public void setSe(LogisticsServiceException se) {
11465
      this.se = se;
11466
    }
11467
 
11468
    public void unsetSe() {
11469
      this.se = null;
11470
    }
11471
 
11472
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11473
    public boolean isSetSe() {
11474
      return this.se != null;
11475
    }
11476
 
11477
    public void setSeIsSet(boolean value) {
11478
      if (!value) {
11479
        this.se = null;
11480
      }
11481
    }
11482
 
11483
    public void setFieldValue(_Fields field, Object value) {
11484
      switch (field) {
11485
      case SUCCESS:
11486
        if (value == null) {
11487
          unsetSuccess();
11488
        } else {
9840 amit.gupta 11489
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11490
        }
11491
        break;
11492
 
11493
      case SE:
11494
        if (value == null) {
11495
          unsetSe();
11496
        } else {
11497
          setSe((LogisticsServiceException)value);
11498
        }
11499
        break;
11500
 
11501
      }
11502
    }
11503
 
11504
    public Object getFieldValue(_Fields field) {
11505
      switch (field) {
11506
      case SUCCESS:
11507
        return getSuccess();
11508
 
11509
      case SE:
11510
        return getSe();
11511
 
11512
      }
11513
      throw new IllegalStateException();
11514
    }
11515
 
11516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11517
    public boolean isSet(_Fields field) {
11518
      if (field == null) {
11519
        throw new IllegalArgumentException();
11520
      }
11521
 
11522
      switch (field) {
11523
      case SUCCESS:
11524
        return isSetSuccess();
11525
      case SE:
11526
        return isSetSe();
11527
      }
11528
      throw new IllegalStateException();
11529
    }
11530
 
11531
    @Override
11532
    public boolean equals(Object that) {
11533
      if (that == null)
11534
        return false;
11535
      if (that instanceof getEntityLogisticsEstimation_result)
11536
        return this.equals((getEntityLogisticsEstimation_result)that);
11537
      return false;
11538
    }
11539
 
11540
    public boolean equals(getEntityLogisticsEstimation_result that) {
11541
      if (that == null)
11542
        return false;
11543
 
11544
      boolean this_present_success = true && this.isSetSuccess();
11545
      boolean that_present_success = true && that.isSetSuccess();
11546
      if (this_present_success || that_present_success) {
11547
        if (!(this_present_success && that_present_success))
11548
          return false;
11549
        if (!this.success.equals(that.success))
11550
          return false;
11551
      }
11552
 
11553
      boolean this_present_se = true && this.isSetSe();
11554
      boolean that_present_se = true && that.isSetSe();
11555
      if (this_present_se || that_present_se) {
11556
        if (!(this_present_se && that_present_se))
11557
          return false;
11558
        if (!this.se.equals(that.se))
11559
          return false;
11560
      }
11561
 
11562
      return true;
11563
    }
11564
 
11565
    @Override
11566
    public int hashCode() {
11567
      return 0;
11568
    }
11569
 
11570
    public int compareTo(getEntityLogisticsEstimation_result other) {
11571
      if (!getClass().equals(other.getClass())) {
11572
        return getClass().getName().compareTo(other.getClass().getName());
11573
      }
11574
 
11575
      int lastComparison = 0;
11576
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11577
 
11578
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11579
      if (lastComparison != 0) {
11580
        return lastComparison;
11581
      }
11582
      if (isSetSuccess()) {
11583
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11584
        if (lastComparison != 0) {
11585
          return lastComparison;
11586
        }
11587
      }
11588
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11589
      if (lastComparison != 0) {
11590
        return lastComparison;
11591
      }
11592
      if (isSetSe()) {
11593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11594
        if (lastComparison != 0) {
11595
          return lastComparison;
11596
        }
11597
      }
11598
      return 0;
11599
    }
11600
 
11601
    public _Fields fieldForId(int fieldId) {
11602
      return _Fields.findByThriftId(fieldId);
11603
    }
11604
 
11605
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11606
      org.apache.thrift.protocol.TField field;
11607
      iprot.readStructBegin();
11608
      while (true)
11609
      {
11610
        field = iprot.readFieldBegin();
11611
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11612
          break;
11613
        }
11614
        switch (field.id) {
11615
          case 0: // SUCCESS
11616
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11617
              {
7792 anupam.sin 11618
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11619
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11620
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11621
                {
9840 amit.gupta 11622
                  ItemText _elem18; // required
11623
                  _elem18 = new ItemText();
11624
                  _elem18.read(iprot);
7792 anupam.sin 11625
                  this.success.add(_elem18);
4934 amit.gupta 11626
                }
11627
                iprot.readListEnd();
11628
              }
11629
            } else { 
11630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11631
            }
11632
            break;
11633
          case 1: // SE
11634
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11635
              this.se = new LogisticsServiceException();
11636
              this.se.read(iprot);
11637
            } else { 
11638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11639
            }
11640
            break;
11641
          default:
11642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11643
        }
11644
        iprot.readFieldEnd();
11645
      }
11646
      iprot.readStructEnd();
11647
      validate();
11648
    }
11649
 
11650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11651
      oprot.writeStructBegin(STRUCT_DESC);
11652
 
11653
      if (this.isSetSuccess()) {
11654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11655
        {
9840 amit.gupta 11656
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11657
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11658
          {
9840 amit.gupta 11659
            _iter19.write(oprot);
4934 amit.gupta 11660
          }
11661
          oprot.writeListEnd();
11662
        }
11663
        oprot.writeFieldEnd();
11664
      } else if (this.isSetSe()) {
11665
        oprot.writeFieldBegin(SE_FIELD_DESC);
11666
        this.se.write(oprot);
11667
        oprot.writeFieldEnd();
11668
      }
11669
      oprot.writeFieldStop();
11670
      oprot.writeStructEnd();
11671
    }
11672
 
11673
    @Override
11674
    public String toString() {
11675
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11676
      boolean first = true;
11677
 
11678
      sb.append("success:");
11679
      if (this.success == null) {
11680
        sb.append("null");
11681
      } else {
11682
        sb.append(this.success);
11683
      }
11684
      first = false;
11685
      if (!first) sb.append(", ");
11686
      sb.append("se:");
11687
      if (this.se == null) {
11688
        sb.append("null");
11689
      } else {
11690
        sb.append(this.se);
11691
      }
11692
      first = false;
11693
      sb.append(")");
11694
      return sb.toString();
11695
    }
11696
 
11697
    public void validate() throws org.apache.thrift.TException {
11698
      // check for required fields
11699
    }
11700
 
11701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11702
      try {
11703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11704
      } catch (org.apache.thrift.TException te) {
11705
        throw new java.io.IOException(te);
11706
      }
11707
    }
11708
 
11709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11710
      try {
11711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11712
      } catch (org.apache.thrift.TException te) {
11713
        throw new java.io.IOException(te);
11714
      }
11715
    }
11716
 
11717
  }
11718
 
5527 anupam.sin 11719
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11721
 
11722
    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);
11723
 
11724
    private long pickUp; // required
11725
 
11726
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11727
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11728
      PICK_UP((short)1, "pickUp");
11729
 
11730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11731
 
11732
      static {
11733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11734
          byName.put(field.getFieldName(), field);
11735
        }
11736
      }
11737
 
11738
      /**
11739
       * Find the _Fields constant that matches fieldId, or null if its not found.
11740
       */
11741
      public static _Fields findByThriftId(int fieldId) {
11742
        switch(fieldId) {
11743
          case 1: // PICK_UP
11744
            return PICK_UP;
11745
          default:
11746
            return null;
11747
        }
11748
      }
11749
 
11750
      /**
11751
       * Find the _Fields constant that matches fieldId, throwing an exception
11752
       * if it is not found.
11753
       */
11754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11755
        _Fields fields = findByThriftId(fieldId);
11756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11757
        return fields;
11758
      }
11759
 
11760
      /**
11761
       * Find the _Fields constant that matches name, or null if its not found.
11762
       */
11763
      public static _Fields findByName(String name) {
11764
        return byName.get(name);
11765
      }
11766
 
11767
      private final short _thriftId;
11768
      private final String _fieldName;
11769
 
11770
      _Fields(short thriftId, String fieldName) {
11771
        _thriftId = thriftId;
11772
        _fieldName = fieldName;
11773
      }
11774
 
11775
      public short getThriftFieldId() {
11776
        return _thriftId;
11777
      }
11778
 
11779
      public String getFieldName() {
11780
        return _fieldName;
11781
      }
11782
    }
11783
 
11784
    // isset id assignments
11785
    private static final int __PICKUP_ISSET_ID = 0;
11786
    private BitSet __isset_bit_vector = new BitSet(1);
11787
 
11788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11789
    static {
11790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11791
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11795
    }
11796
 
11797
    public getProviderForPickupType_args() {
11798
    }
11799
 
11800
    public getProviderForPickupType_args(
11801
      long pickUp)
11802
    {
11803
      this();
11804
      this.pickUp = pickUp;
11805
      setPickUpIsSet(true);
11806
    }
11807
 
11808
    /**
11809
     * Performs a deep copy on <i>other</i>.
11810
     */
11811
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11812
      __isset_bit_vector.clear();
11813
      __isset_bit_vector.or(other.__isset_bit_vector);
11814
      this.pickUp = other.pickUp;
11815
    }
11816
 
11817
    public getProviderForPickupType_args deepCopy() {
11818
      return new getProviderForPickupType_args(this);
11819
    }
11820
 
11821
    @Override
11822
    public void clear() {
11823
      setPickUpIsSet(false);
11824
      this.pickUp = 0;
11825
    }
11826
 
11827
    public long getPickUp() {
11828
      return this.pickUp;
11829
    }
11830
 
11831
    public void setPickUp(long pickUp) {
11832
      this.pickUp = pickUp;
11833
      setPickUpIsSet(true);
11834
    }
11835
 
11836
    public void unsetPickUp() {
11837
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11838
    }
11839
 
11840
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11841
    public boolean isSetPickUp() {
11842
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11843
    }
11844
 
11845
    public void setPickUpIsSet(boolean value) {
11846
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11847
    }
11848
 
11849
    public void setFieldValue(_Fields field, Object value) {
11850
      switch (field) {
11851
      case PICK_UP:
11852
        if (value == null) {
11853
          unsetPickUp();
11854
        } else {
11855
          setPickUp((Long)value);
11856
        }
11857
        break;
11858
 
11859
      }
11860
    }
11861
 
11862
    public Object getFieldValue(_Fields field) {
11863
      switch (field) {
11864
      case PICK_UP:
11865
        return Long.valueOf(getPickUp());
11866
 
11867
      }
11868
      throw new IllegalStateException();
11869
    }
11870
 
11871
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11872
    public boolean isSet(_Fields field) {
11873
      if (field == null) {
11874
        throw new IllegalArgumentException();
11875
      }
11876
 
11877
      switch (field) {
11878
      case PICK_UP:
11879
        return isSetPickUp();
11880
      }
11881
      throw new IllegalStateException();
11882
    }
11883
 
11884
    @Override
11885
    public boolean equals(Object that) {
11886
      if (that == null)
11887
        return false;
11888
      if (that instanceof getProviderForPickupType_args)
11889
        return this.equals((getProviderForPickupType_args)that);
11890
      return false;
11891
    }
11892
 
11893
    public boolean equals(getProviderForPickupType_args that) {
11894
      if (that == null)
11895
        return false;
11896
 
11897
      boolean this_present_pickUp = true;
11898
      boolean that_present_pickUp = true;
11899
      if (this_present_pickUp || that_present_pickUp) {
11900
        if (!(this_present_pickUp && that_present_pickUp))
11901
          return false;
11902
        if (this.pickUp != that.pickUp)
11903
          return false;
11904
      }
11905
 
11906
      return true;
11907
    }
11908
 
11909
    @Override
11910
    public int hashCode() {
11911
      return 0;
11912
    }
11913
 
11914
    public int compareTo(getProviderForPickupType_args other) {
11915
      if (!getClass().equals(other.getClass())) {
11916
        return getClass().getName().compareTo(other.getClass().getName());
11917
      }
11918
 
11919
      int lastComparison = 0;
11920
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11921
 
11922
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11923
      if (lastComparison != 0) {
11924
        return lastComparison;
11925
      }
11926
      if (isSetPickUp()) {
11927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11928
        if (lastComparison != 0) {
11929
          return lastComparison;
11930
        }
11931
      }
11932
      return 0;
11933
    }
11934
 
11935
    public _Fields fieldForId(int fieldId) {
11936
      return _Fields.findByThriftId(fieldId);
11937
    }
11938
 
11939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11940
      org.apache.thrift.protocol.TField field;
11941
      iprot.readStructBegin();
11942
      while (true)
11943
      {
11944
        field = iprot.readFieldBegin();
11945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11946
          break;
11947
        }
11948
        switch (field.id) {
11949
          case 1: // PICK_UP
11950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11951
              this.pickUp = iprot.readI64();
11952
              setPickUpIsSet(true);
11953
            } else { 
11954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11955
            }
11956
            break;
11957
          default:
11958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11959
        }
11960
        iprot.readFieldEnd();
11961
      }
11962
      iprot.readStructEnd();
11963
      validate();
11964
    }
11965
 
11966
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11967
      validate();
11968
 
11969
      oprot.writeStructBegin(STRUCT_DESC);
11970
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11971
      oprot.writeI64(this.pickUp);
11972
      oprot.writeFieldEnd();
11973
      oprot.writeFieldStop();
11974
      oprot.writeStructEnd();
11975
    }
11976
 
11977
    @Override
11978
    public String toString() {
11979
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11980
      boolean first = true;
11981
 
11982
      sb.append("pickUp:");
11983
      sb.append(this.pickUp);
11984
      first = false;
11985
      sb.append(")");
11986
      return sb.toString();
11987
    }
11988
 
11989
    public void validate() throws org.apache.thrift.TException {
11990
      // check for required fields
11991
    }
11992
 
11993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11994
      try {
11995
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11996
      } catch (org.apache.thrift.TException te) {
11997
        throw new java.io.IOException(te);
11998
      }
11999
    }
12000
 
12001
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12002
      try {
12003
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12004
        __isset_bit_vector = new BitSet(1);
12005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12006
      } catch (org.apache.thrift.TException te) {
12007
        throw new java.io.IOException(te);
12008
      }
12009
    }
12010
 
12011
  }
12012
 
12013
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
12014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
12015
 
12016
    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);
12017
 
12018
    private long success; // required
12019
 
12020
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12021
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12022
      SUCCESS((short)0, "success");
12023
 
12024
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12025
 
12026
      static {
12027
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12028
          byName.put(field.getFieldName(), field);
12029
        }
12030
      }
12031
 
12032
      /**
12033
       * Find the _Fields constant that matches fieldId, or null if its not found.
12034
       */
12035
      public static _Fields findByThriftId(int fieldId) {
12036
        switch(fieldId) {
12037
          case 0: // SUCCESS
12038
            return SUCCESS;
12039
          default:
12040
            return null;
12041
        }
12042
      }
12043
 
12044
      /**
12045
       * Find the _Fields constant that matches fieldId, throwing an exception
12046
       * if it is not found.
12047
       */
12048
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12049
        _Fields fields = findByThriftId(fieldId);
12050
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12051
        return fields;
12052
      }
12053
 
12054
      /**
12055
       * Find the _Fields constant that matches name, or null if its not found.
12056
       */
12057
      public static _Fields findByName(String name) {
12058
        return byName.get(name);
12059
      }
12060
 
12061
      private final short _thriftId;
12062
      private final String _fieldName;
12063
 
12064
      _Fields(short thriftId, String fieldName) {
12065
        _thriftId = thriftId;
12066
        _fieldName = fieldName;
12067
      }
12068
 
12069
      public short getThriftFieldId() {
12070
        return _thriftId;
12071
      }
12072
 
12073
      public String getFieldName() {
12074
        return _fieldName;
12075
      }
12076
    }
12077
 
12078
    // isset id assignments
12079
    private static final int __SUCCESS_ISSET_ID = 0;
12080
    private BitSet __isset_bit_vector = new BitSet(1);
12081
 
12082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12083
    static {
12084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12085
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
12089
    }
12090
 
12091
    public getProviderForPickupType_result() {
12092
    }
12093
 
12094
    public getProviderForPickupType_result(
12095
      long success)
12096
    {
12097
      this();
12098
      this.success = success;
12099
      setSuccessIsSet(true);
12100
    }
12101
 
12102
    /**
12103
     * Performs a deep copy on <i>other</i>.
12104
     */
12105
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
12106
      __isset_bit_vector.clear();
12107
      __isset_bit_vector.or(other.__isset_bit_vector);
12108
      this.success = other.success;
12109
    }
12110
 
12111
    public getProviderForPickupType_result deepCopy() {
12112
      return new getProviderForPickupType_result(this);
12113
    }
12114
 
12115
    @Override
12116
    public void clear() {
12117
      setSuccessIsSet(false);
12118
      this.success = 0;
12119
    }
12120
 
12121
    public long getSuccess() {
12122
      return this.success;
12123
    }
12124
 
12125
    public void setSuccess(long success) {
12126
      this.success = success;
12127
      setSuccessIsSet(true);
12128
    }
12129
 
12130
    public void unsetSuccess() {
12131
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12132
    }
12133
 
12134
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12135
    public boolean isSetSuccess() {
12136
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12137
    }
12138
 
12139
    public void setSuccessIsSet(boolean value) {
12140
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12141
    }
12142
 
12143
    public void setFieldValue(_Fields field, Object value) {
12144
      switch (field) {
12145
      case SUCCESS:
12146
        if (value == null) {
12147
          unsetSuccess();
12148
        } else {
12149
          setSuccess((Long)value);
12150
        }
12151
        break;
12152
 
12153
      }
12154
    }
12155
 
12156
    public Object getFieldValue(_Fields field) {
12157
      switch (field) {
12158
      case SUCCESS:
12159
        return Long.valueOf(getSuccess());
12160
 
12161
      }
12162
      throw new IllegalStateException();
12163
    }
12164
 
12165
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12166
    public boolean isSet(_Fields field) {
12167
      if (field == null) {
12168
        throw new IllegalArgumentException();
12169
      }
12170
 
12171
      switch (field) {
12172
      case SUCCESS:
12173
        return isSetSuccess();
12174
      }
12175
      throw new IllegalStateException();
12176
    }
12177
 
12178
    @Override
12179
    public boolean equals(Object that) {
12180
      if (that == null)
12181
        return false;
12182
      if (that instanceof getProviderForPickupType_result)
12183
        return this.equals((getProviderForPickupType_result)that);
12184
      return false;
12185
    }
12186
 
12187
    public boolean equals(getProviderForPickupType_result that) {
12188
      if (that == null)
12189
        return false;
12190
 
12191
      boolean this_present_success = true;
12192
      boolean that_present_success = true;
12193
      if (this_present_success || that_present_success) {
12194
        if (!(this_present_success && that_present_success))
12195
          return false;
12196
        if (this.success != that.success)
12197
          return false;
12198
      }
12199
 
12200
      return true;
12201
    }
12202
 
12203
    @Override
12204
    public int hashCode() {
12205
      return 0;
12206
    }
12207
 
12208
    public int compareTo(getProviderForPickupType_result other) {
12209
      if (!getClass().equals(other.getClass())) {
12210
        return getClass().getName().compareTo(other.getClass().getName());
12211
      }
12212
 
12213
      int lastComparison = 0;
12214
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12215
 
12216
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12217
      if (lastComparison != 0) {
12218
        return lastComparison;
12219
      }
12220
      if (isSetSuccess()) {
12221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12222
        if (lastComparison != 0) {
12223
          return lastComparison;
12224
        }
12225
      }
12226
      return 0;
12227
    }
12228
 
12229
    public _Fields fieldForId(int fieldId) {
12230
      return _Fields.findByThriftId(fieldId);
12231
    }
12232
 
12233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12234
      org.apache.thrift.protocol.TField field;
12235
      iprot.readStructBegin();
12236
      while (true)
12237
      {
12238
        field = iprot.readFieldBegin();
12239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12240
          break;
12241
        }
12242
        switch (field.id) {
12243
          case 0: // SUCCESS
12244
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12245
              this.success = iprot.readI64();
12246
              setSuccessIsSet(true);
12247
            } else { 
12248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12249
            }
12250
            break;
12251
          default:
12252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12253
        }
12254
        iprot.readFieldEnd();
12255
      }
12256
      iprot.readStructEnd();
12257
      validate();
12258
    }
12259
 
12260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12261
      oprot.writeStructBegin(STRUCT_DESC);
12262
 
12263
      if (this.isSetSuccess()) {
12264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12265
        oprot.writeI64(this.success);
12266
        oprot.writeFieldEnd();
12267
      }
12268
      oprot.writeFieldStop();
12269
      oprot.writeStructEnd();
12270
    }
12271
 
12272
    @Override
12273
    public String toString() {
12274
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12275
      boolean first = true;
12276
 
12277
      sb.append("success:");
12278
      sb.append(this.success);
12279
      first = false;
12280
      sb.append(")");
12281
      return sb.toString();
12282
    }
12283
 
12284
    public void validate() throws org.apache.thrift.TException {
12285
      // check for required fields
12286
    }
12287
 
12288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12289
      try {
12290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12291
      } catch (org.apache.thrift.TException te) {
12292
        throw new java.io.IOException(te);
12293
      }
12294
    }
12295
 
12296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12297
      try {
12298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12299
      } catch (org.apache.thrift.TException te) {
12300
        throw new java.io.IOException(te);
12301
      }
12302
    }
12303
 
12304
  }
12305
 
5553 rajveer 12306
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12308
 
12309
 
12310
 
12311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12312
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12313
;
12314
 
12315
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12316
 
12317
      static {
12318
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12319
          byName.put(field.getFieldName(), field);
12320
        }
12321
      }
12322
 
12323
      /**
12324
       * Find the _Fields constant that matches fieldId, or null if its not found.
12325
       */
12326
      public static _Fields findByThriftId(int fieldId) {
12327
        switch(fieldId) {
12328
          default:
12329
            return null;
12330
        }
12331
      }
12332
 
12333
      /**
12334
       * Find the _Fields constant that matches fieldId, throwing an exception
12335
       * if it is not found.
12336
       */
12337
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12338
        _Fields fields = findByThriftId(fieldId);
12339
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12340
        return fields;
12341
      }
12342
 
12343
      /**
12344
       * Find the _Fields constant that matches name, or null if its not found.
12345
       */
12346
      public static _Fields findByName(String name) {
12347
        return byName.get(name);
12348
      }
12349
 
12350
      private final short _thriftId;
12351
      private final String _fieldName;
12352
 
12353
      _Fields(short thriftId, String fieldName) {
12354
        _thriftId = thriftId;
12355
        _fieldName = fieldName;
12356
      }
12357
 
12358
      public short getThriftFieldId() {
12359
        return _thriftId;
12360
      }
12361
 
12362
      public String getFieldName() {
12363
        return _fieldName;
12364
      }
12365
    }
12366
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12367
    static {
12368
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12371
    }
12372
 
12373
    public getAllPickupStores_args() {
12374
    }
12375
 
12376
    /**
12377
     * Performs a deep copy on <i>other</i>.
12378
     */
12379
    public getAllPickupStores_args(getAllPickupStores_args other) {
12380
    }
12381
 
12382
    public getAllPickupStores_args deepCopy() {
12383
      return new getAllPickupStores_args(this);
12384
    }
12385
 
12386
    @Override
12387
    public void clear() {
12388
    }
12389
 
12390
    public void setFieldValue(_Fields field, Object value) {
12391
      switch (field) {
12392
      }
12393
    }
12394
 
12395
    public Object getFieldValue(_Fields field) {
12396
      switch (field) {
12397
      }
12398
      throw new IllegalStateException();
12399
    }
12400
 
12401
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12402
    public boolean isSet(_Fields field) {
12403
      if (field == null) {
12404
        throw new IllegalArgumentException();
12405
      }
12406
 
12407
      switch (field) {
12408
      }
12409
      throw new IllegalStateException();
12410
    }
12411
 
12412
    @Override
12413
    public boolean equals(Object that) {
12414
      if (that == null)
12415
        return false;
12416
      if (that instanceof getAllPickupStores_args)
12417
        return this.equals((getAllPickupStores_args)that);
12418
      return false;
12419
    }
12420
 
12421
    public boolean equals(getAllPickupStores_args that) {
12422
      if (that == null)
12423
        return false;
12424
 
12425
      return true;
12426
    }
12427
 
12428
    @Override
12429
    public int hashCode() {
12430
      return 0;
12431
    }
12432
 
12433
    public int compareTo(getAllPickupStores_args other) {
12434
      if (!getClass().equals(other.getClass())) {
12435
        return getClass().getName().compareTo(other.getClass().getName());
12436
      }
12437
 
12438
      int lastComparison = 0;
12439
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12440
 
12441
      return 0;
12442
    }
12443
 
12444
    public _Fields fieldForId(int fieldId) {
12445
      return _Fields.findByThriftId(fieldId);
12446
    }
12447
 
12448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12449
      org.apache.thrift.protocol.TField field;
12450
      iprot.readStructBegin();
12451
      while (true)
12452
      {
12453
        field = iprot.readFieldBegin();
12454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12455
          break;
12456
        }
12457
        switch (field.id) {
12458
          default:
12459
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12460
        }
12461
        iprot.readFieldEnd();
12462
      }
12463
      iprot.readStructEnd();
12464
      validate();
12465
    }
12466
 
12467
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12468
      validate();
12469
 
12470
      oprot.writeStructBegin(STRUCT_DESC);
12471
      oprot.writeFieldStop();
12472
      oprot.writeStructEnd();
12473
    }
12474
 
12475
    @Override
12476
    public String toString() {
12477
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12478
      boolean first = true;
12479
 
12480
      sb.append(")");
12481
      return sb.toString();
12482
    }
12483
 
12484
    public void validate() throws org.apache.thrift.TException {
12485
      // check for required fields
12486
    }
12487
 
12488
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12489
      try {
12490
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12491
      } catch (org.apache.thrift.TException te) {
12492
        throw new java.io.IOException(te);
12493
      }
12494
    }
12495
 
12496
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12497
      try {
12498
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12499
      } catch (org.apache.thrift.TException te) {
12500
        throw new java.io.IOException(te);
12501
      }
12502
    }
12503
 
12504
  }
12505
 
12506
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12507
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12508
 
12509
    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);
12510
 
12511
    private List<PickupStore> success; // required
12512
 
12513
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12514
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12515
      SUCCESS((short)0, "success");
12516
 
12517
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12518
 
12519
      static {
12520
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12521
          byName.put(field.getFieldName(), field);
12522
        }
12523
      }
12524
 
12525
      /**
12526
       * Find the _Fields constant that matches fieldId, or null if its not found.
12527
       */
12528
      public static _Fields findByThriftId(int fieldId) {
12529
        switch(fieldId) {
12530
          case 0: // SUCCESS
12531
            return SUCCESS;
12532
          default:
12533
            return null;
12534
        }
12535
      }
12536
 
12537
      /**
12538
       * Find the _Fields constant that matches fieldId, throwing an exception
12539
       * if it is not found.
12540
       */
12541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12542
        _Fields fields = findByThriftId(fieldId);
12543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12544
        return fields;
12545
      }
12546
 
12547
      /**
12548
       * Find the _Fields constant that matches name, or null if its not found.
12549
       */
12550
      public static _Fields findByName(String name) {
12551
        return byName.get(name);
12552
      }
12553
 
12554
      private final short _thriftId;
12555
      private final String _fieldName;
12556
 
12557
      _Fields(short thriftId, String fieldName) {
12558
        _thriftId = thriftId;
12559
        _fieldName = fieldName;
12560
      }
12561
 
12562
      public short getThriftFieldId() {
12563
        return _thriftId;
12564
      }
12565
 
12566
      public String getFieldName() {
12567
        return _fieldName;
12568
      }
12569
    }
12570
 
12571
    // isset id assignments
12572
 
12573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12574
    static {
12575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12576
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12577
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12578
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12581
    }
12582
 
12583
    public getAllPickupStores_result() {
12584
    }
12585
 
12586
    public getAllPickupStores_result(
12587
      List<PickupStore> success)
12588
    {
12589
      this();
12590
      this.success = success;
12591
    }
12592
 
12593
    /**
12594
     * Performs a deep copy on <i>other</i>.
12595
     */
12596
    public getAllPickupStores_result(getAllPickupStores_result other) {
12597
      if (other.isSetSuccess()) {
12598
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12599
        for (PickupStore other_element : other.success) {
12600
          __this__success.add(new PickupStore(other_element));
12601
        }
12602
        this.success = __this__success;
12603
      }
12604
    }
12605
 
12606
    public getAllPickupStores_result deepCopy() {
12607
      return new getAllPickupStores_result(this);
12608
    }
12609
 
12610
    @Override
12611
    public void clear() {
12612
      this.success = null;
12613
    }
12614
 
12615
    public int getSuccessSize() {
12616
      return (this.success == null) ? 0 : this.success.size();
12617
    }
12618
 
12619
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12620
      return (this.success == null) ? null : this.success.iterator();
12621
    }
12622
 
12623
    public void addToSuccess(PickupStore elem) {
12624
      if (this.success == null) {
12625
        this.success = new ArrayList<PickupStore>();
12626
      }
12627
      this.success.add(elem);
12628
    }
12629
 
12630
    public List<PickupStore> getSuccess() {
12631
      return this.success;
12632
    }
12633
 
12634
    public void setSuccess(List<PickupStore> success) {
12635
      this.success = success;
12636
    }
12637
 
12638
    public void unsetSuccess() {
12639
      this.success = null;
12640
    }
12641
 
12642
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12643
    public boolean isSetSuccess() {
12644
      return this.success != null;
12645
    }
12646
 
12647
    public void setSuccessIsSet(boolean value) {
12648
      if (!value) {
12649
        this.success = null;
12650
      }
12651
    }
12652
 
12653
    public void setFieldValue(_Fields field, Object value) {
12654
      switch (field) {
12655
      case SUCCESS:
12656
        if (value == null) {
12657
          unsetSuccess();
12658
        } else {
12659
          setSuccess((List<PickupStore>)value);
12660
        }
12661
        break;
12662
 
12663
      }
12664
    }
12665
 
12666
    public Object getFieldValue(_Fields field) {
12667
      switch (field) {
12668
      case SUCCESS:
12669
        return getSuccess();
12670
 
12671
      }
12672
      throw new IllegalStateException();
12673
    }
12674
 
12675
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12676
    public boolean isSet(_Fields field) {
12677
      if (field == null) {
12678
        throw new IllegalArgumentException();
12679
      }
12680
 
12681
      switch (field) {
12682
      case SUCCESS:
12683
        return isSetSuccess();
12684
      }
12685
      throw new IllegalStateException();
12686
    }
12687
 
12688
    @Override
12689
    public boolean equals(Object that) {
12690
      if (that == null)
12691
        return false;
12692
      if (that instanceof getAllPickupStores_result)
12693
        return this.equals((getAllPickupStores_result)that);
12694
      return false;
12695
    }
12696
 
12697
    public boolean equals(getAllPickupStores_result that) {
12698
      if (that == null)
12699
        return false;
12700
 
12701
      boolean this_present_success = true && this.isSetSuccess();
12702
      boolean that_present_success = true && that.isSetSuccess();
12703
      if (this_present_success || that_present_success) {
12704
        if (!(this_present_success && that_present_success))
12705
          return false;
12706
        if (!this.success.equals(that.success))
12707
          return false;
12708
      }
12709
 
12710
      return true;
12711
    }
12712
 
12713
    @Override
12714
    public int hashCode() {
12715
      return 0;
12716
    }
12717
 
12718
    public int compareTo(getAllPickupStores_result other) {
12719
      if (!getClass().equals(other.getClass())) {
12720
        return getClass().getName().compareTo(other.getClass().getName());
12721
      }
12722
 
12723
      int lastComparison = 0;
12724
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12725
 
12726
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12727
      if (lastComparison != 0) {
12728
        return lastComparison;
12729
      }
12730
      if (isSetSuccess()) {
12731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12732
        if (lastComparison != 0) {
12733
          return lastComparison;
12734
        }
12735
      }
12736
      return 0;
12737
    }
12738
 
12739
    public _Fields fieldForId(int fieldId) {
12740
      return _Fields.findByThriftId(fieldId);
12741
    }
12742
 
12743
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12744
      org.apache.thrift.protocol.TField field;
12745
      iprot.readStructBegin();
12746
      while (true)
12747
      {
12748
        field = iprot.readFieldBegin();
12749
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12750
          break;
12751
        }
12752
        switch (field.id) {
12753
          case 0: // SUCCESS
12754
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12755
              {
7792 anupam.sin 12756
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12757
                this.success = new ArrayList<PickupStore>(_list20.size);
12758
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12759
                {
7792 anupam.sin 12760
                  PickupStore _elem22; // required
12761
                  _elem22 = new PickupStore();
12762
                  _elem22.read(iprot);
12763
                  this.success.add(_elem22);
5553 rajveer 12764
                }
12765
                iprot.readListEnd();
12766
              }
12767
            } else { 
12768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12769
            }
12770
            break;
12771
          default:
12772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12773
        }
12774
        iprot.readFieldEnd();
12775
      }
12776
      iprot.readStructEnd();
12777
      validate();
12778
    }
12779
 
12780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12781
      oprot.writeStructBegin(STRUCT_DESC);
12782
 
12783
      if (this.isSetSuccess()) {
12784
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12785
        {
12786
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12787
          for (PickupStore _iter23 : this.success)
5553 rajveer 12788
          {
7792 anupam.sin 12789
            _iter23.write(oprot);
5553 rajveer 12790
          }
12791
          oprot.writeListEnd();
12792
        }
12793
        oprot.writeFieldEnd();
12794
      }
12795
      oprot.writeFieldStop();
12796
      oprot.writeStructEnd();
12797
    }
12798
 
12799
    @Override
12800
    public String toString() {
12801
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12802
      boolean first = true;
12803
 
12804
      sb.append("success:");
12805
      if (this.success == null) {
12806
        sb.append("null");
12807
      } else {
12808
        sb.append(this.success);
12809
      }
12810
      first = false;
12811
      sb.append(")");
12812
      return sb.toString();
12813
    }
12814
 
12815
    public void validate() throws org.apache.thrift.TException {
12816
      // check for required fields
12817
    }
12818
 
12819
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12820
      try {
12821
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12822
      } catch (org.apache.thrift.TException te) {
12823
        throw new java.io.IOException(te);
12824
      }
12825
    }
12826
 
12827
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12828
      try {
12829
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12830
      } catch (org.apache.thrift.TException te) {
12831
        throw new java.io.IOException(te);
12832
      }
12833
    }
12834
 
12835
  }
12836
 
12837
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12838
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12839
 
12840
    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);
12841
 
12842
    private long storeId; // required
12843
 
12844
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12845
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12846
      STORE_ID((short)1, "storeId");
12847
 
12848
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12849
 
12850
      static {
12851
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12852
          byName.put(field.getFieldName(), field);
12853
        }
12854
      }
12855
 
12856
      /**
12857
       * Find the _Fields constant that matches fieldId, or null if its not found.
12858
       */
12859
      public static _Fields findByThriftId(int fieldId) {
12860
        switch(fieldId) {
12861
          case 1: // STORE_ID
12862
            return STORE_ID;
12863
          default:
12864
            return null;
12865
        }
12866
      }
12867
 
12868
      /**
12869
       * Find the _Fields constant that matches fieldId, throwing an exception
12870
       * if it is not found.
12871
       */
12872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12873
        _Fields fields = findByThriftId(fieldId);
12874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12875
        return fields;
12876
      }
12877
 
12878
      /**
12879
       * Find the _Fields constant that matches name, or null if its not found.
12880
       */
12881
      public static _Fields findByName(String name) {
12882
        return byName.get(name);
12883
      }
12884
 
12885
      private final short _thriftId;
12886
      private final String _fieldName;
12887
 
12888
      _Fields(short thriftId, String fieldName) {
12889
        _thriftId = thriftId;
12890
        _fieldName = fieldName;
12891
      }
12892
 
12893
      public short getThriftFieldId() {
12894
        return _thriftId;
12895
      }
12896
 
12897
      public String getFieldName() {
12898
        return _fieldName;
12899
      }
12900
    }
12901
 
12902
    // isset id assignments
12903
    private static final int __STOREID_ISSET_ID = 0;
12904
    private BitSet __isset_bit_vector = new BitSet(1);
12905
 
12906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12907
    static {
12908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12909
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12910
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12911
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12912
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12913
    }
12914
 
12915
    public getPickupStore_args() {
12916
    }
12917
 
12918
    public getPickupStore_args(
12919
      long storeId)
12920
    {
12921
      this();
12922
      this.storeId = storeId;
12923
      setStoreIdIsSet(true);
12924
    }
12925
 
12926
    /**
12927
     * Performs a deep copy on <i>other</i>.
12928
     */
12929
    public getPickupStore_args(getPickupStore_args other) {
12930
      __isset_bit_vector.clear();
12931
      __isset_bit_vector.or(other.__isset_bit_vector);
12932
      this.storeId = other.storeId;
12933
    }
12934
 
12935
    public getPickupStore_args deepCopy() {
12936
      return new getPickupStore_args(this);
12937
    }
12938
 
12939
    @Override
12940
    public void clear() {
12941
      setStoreIdIsSet(false);
12942
      this.storeId = 0;
12943
    }
12944
 
12945
    public long getStoreId() {
12946
      return this.storeId;
12947
    }
12948
 
12949
    public void setStoreId(long storeId) {
12950
      this.storeId = storeId;
12951
      setStoreIdIsSet(true);
12952
    }
12953
 
12954
    public void unsetStoreId() {
12955
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12956
    }
12957
 
12958
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12959
    public boolean isSetStoreId() {
12960
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12961
    }
12962
 
12963
    public void setStoreIdIsSet(boolean value) {
12964
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12965
    }
12966
 
12967
    public void setFieldValue(_Fields field, Object value) {
12968
      switch (field) {
12969
      case STORE_ID:
12970
        if (value == null) {
12971
          unsetStoreId();
12972
        } else {
12973
          setStoreId((Long)value);
12974
        }
12975
        break;
12976
 
12977
      }
12978
    }
12979
 
12980
    public Object getFieldValue(_Fields field) {
12981
      switch (field) {
12982
      case STORE_ID:
12983
        return Long.valueOf(getStoreId());
12984
 
12985
      }
12986
      throw new IllegalStateException();
12987
    }
12988
 
12989
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12990
    public boolean isSet(_Fields field) {
12991
      if (field == null) {
12992
        throw new IllegalArgumentException();
12993
      }
12994
 
12995
      switch (field) {
12996
      case STORE_ID:
12997
        return isSetStoreId();
12998
      }
12999
      throw new IllegalStateException();
13000
    }
13001
 
13002
    @Override
13003
    public boolean equals(Object that) {
13004
      if (that == null)
13005
        return false;
13006
      if (that instanceof getPickupStore_args)
13007
        return this.equals((getPickupStore_args)that);
13008
      return false;
13009
    }
13010
 
13011
    public boolean equals(getPickupStore_args that) {
13012
      if (that == null)
13013
        return false;
13014
 
13015
      boolean this_present_storeId = true;
13016
      boolean that_present_storeId = true;
13017
      if (this_present_storeId || that_present_storeId) {
13018
        if (!(this_present_storeId && that_present_storeId))
13019
          return false;
13020
        if (this.storeId != that.storeId)
13021
          return false;
13022
      }
13023
 
13024
      return true;
13025
    }
13026
 
13027
    @Override
13028
    public int hashCode() {
13029
      return 0;
13030
    }
13031
 
13032
    public int compareTo(getPickupStore_args other) {
13033
      if (!getClass().equals(other.getClass())) {
13034
        return getClass().getName().compareTo(other.getClass().getName());
13035
      }
13036
 
13037
      int lastComparison = 0;
13038
      getPickupStore_args typedOther = (getPickupStore_args)other;
13039
 
13040
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
13041
      if (lastComparison != 0) {
13042
        return lastComparison;
13043
      }
13044
      if (isSetStoreId()) {
13045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
13046
        if (lastComparison != 0) {
13047
          return lastComparison;
13048
        }
13049
      }
13050
      return 0;
13051
    }
13052
 
13053
    public _Fields fieldForId(int fieldId) {
13054
      return _Fields.findByThriftId(fieldId);
13055
    }
13056
 
13057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13058
      org.apache.thrift.protocol.TField field;
13059
      iprot.readStructBegin();
13060
      while (true)
13061
      {
13062
        field = iprot.readFieldBegin();
13063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13064
          break;
13065
        }
13066
        switch (field.id) {
13067
          case 1: // STORE_ID
13068
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13069
              this.storeId = iprot.readI64();
13070
              setStoreIdIsSet(true);
13071
            } else { 
13072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13073
            }
13074
            break;
13075
          default:
13076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13077
        }
13078
        iprot.readFieldEnd();
13079
      }
13080
      iprot.readStructEnd();
13081
      validate();
13082
    }
13083
 
13084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13085
      validate();
13086
 
13087
      oprot.writeStructBegin(STRUCT_DESC);
13088
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
13089
      oprot.writeI64(this.storeId);
13090
      oprot.writeFieldEnd();
13091
      oprot.writeFieldStop();
13092
      oprot.writeStructEnd();
13093
    }
13094
 
13095
    @Override
13096
    public String toString() {
13097
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
13098
      boolean first = true;
13099
 
13100
      sb.append("storeId:");
13101
      sb.append(this.storeId);
13102
      first = false;
13103
      sb.append(")");
13104
      return sb.toString();
13105
    }
13106
 
13107
    public void validate() throws org.apache.thrift.TException {
13108
      // check for required fields
13109
    }
13110
 
13111
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13112
      try {
13113
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13114
      } catch (org.apache.thrift.TException te) {
13115
        throw new java.io.IOException(te);
13116
      }
13117
    }
13118
 
13119
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13120
      try {
13121
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13122
        __isset_bit_vector = new BitSet(1);
13123
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13124
      } catch (org.apache.thrift.TException te) {
13125
        throw new java.io.IOException(te);
13126
      }
13127
    }
13128
 
13129
  }
13130
 
13131
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
13132
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
13133
 
13134
    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);
13135
 
13136
    private PickupStore success; // required
13137
 
13138
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13139
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13140
      SUCCESS((short)0, "success");
13141
 
13142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13143
 
13144
      static {
13145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13146
          byName.put(field.getFieldName(), field);
13147
        }
13148
      }
13149
 
13150
      /**
13151
       * Find the _Fields constant that matches fieldId, or null if its not found.
13152
       */
13153
      public static _Fields findByThriftId(int fieldId) {
13154
        switch(fieldId) {
13155
          case 0: // SUCCESS
13156
            return SUCCESS;
13157
          default:
13158
            return null;
13159
        }
13160
      }
13161
 
13162
      /**
13163
       * Find the _Fields constant that matches fieldId, throwing an exception
13164
       * if it is not found.
13165
       */
13166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13167
        _Fields fields = findByThriftId(fieldId);
13168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13169
        return fields;
13170
      }
13171
 
13172
      /**
13173
       * Find the _Fields constant that matches name, or null if its not found.
13174
       */
13175
      public static _Fields findByName(String name) {
13176
        return byName.get(name);
13177
      }
13178
 
13179
      private final short _thriftId;
13180
      private final String _fieldName;
13181
 
13182
      _Fields(short thriftId, String fieldName) {
13183
        _thriftId = thriftId;
13184
        _fieldName = fieldName;
13185
      }
13186
 
13187
      public short getThriftFieldId() {
13188
        return _thriftId;
13189
      }
13190
 
13191
      public String getFieldName() {
13192
        return _fieldName;
13193
      }
13194
    }
13195
 
13196
    // isset id assignments
13197
 
13198
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13199
    static {
13200
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13201
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13202
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13203
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13204
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13205
    }
13206
 
13207
    public getPickupStore_result() {
13208
    }
13209
 
13210
    public getPickupStore_result(
13211
      PickupStore success)
13212
    {
13213
      this();
13214
      this.success = success;
13215
    }
13216
 
13217
    /**
13218
     * Performs a deep copy on <i>other</i>.
13219
     */
13220
    public getPickupStore_result(getPickupStore_result other) {
13221
      if (other.isSetSuccess()) {
13222
        this.success = new PickupStore(other.success);
13223
      }
13224
    }
13225
 
13226
    public getPickupStore_result deepCopy() {
13227
      return new getPickupStore_result(this);
13228
    }
13229
 
13230
    @Override
13231
    public void clear() {
13232
      this.success = null;
13233
    }
13234
 
13235
    public PickupStore getSuccess() {
13236
      return this.success;
13237
    }
13238
 
13239
    public void setSuccess(PickupStore success) {
13240
      this.success = success;
13241
    }
13242
 
13243
    public void unsetSuccess() {
13244
      this.success = null;
13245
    }
13246
 
13247
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13248
    public boolean isSetSuccess() {
13249
      return this.success != null;
13250
    }
13251
 
13252
    public void setSuccessIsSet(boolean value) {
13253
      if (!value) {
13254
        this.success = null;
13255
      }
13256
    }
13257
 
13258
    public void setFieldValue(_Fields field, Object value) {
13259
      switch (field) {
13260
      case SUCCESS:
13261
        if (value == null) {
13262
          unsetSuccess();
13263
        } else {
13264
          setSuccess((PickupStore)value);
13265
        }
13266
        break;
13267
 
13268
      }
13269
    }
13270
 
13271
    public Object getFieldValue(_Fields field) {
13272
      switch (field) {
13273
      case SUCCESS:
13274
        return getSuccess();
13275
 
13276
      }
13277
      throw new IllegalStateException();
13278
    }
13279
 
13280
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13281
    public boolean isSet(_Fields field) {
13282
      if (field == null) {
13283
        throw new IllegalArgumentException();
13284
      }
13285
 
13286
      switch (field) {
13287
      case SUCCESS:
13288
        return isSetSuccess();
13289
      }
13290
      throw new IllegalStateException();
13291
    }
13292
 
13293
    @Override
13294
    public boolean equals(Object that) {
13295
      if (that == null)
13296
        return false;
13297
      if (that instanceof getPickupStore_result)
13298
        return this.equals((getPickupStore_result)that);
13299
      return false;
13300
    }
13301
 
13302
    public boolean equals(getPickupStore_result that) {
13303
      if (that == null)
13304
        return false;
13305
 
13306
      boolean this_present_success = true && this.isSetSuccess();
13307
      boolean that_present_success = true && that.isSetSuccess();
13308
      if (this_present_success || that_present_success) {
13309
        if (!(this_present_success && that_present_success))
13310
          return false;
13311
        if (!this.success.equals(that.success))
13312
          return false;
13313
      }
13314
 
13315
      return true;
13316
    }
13317
 
13318
    @Override
13319
    public int hashCode() {
13320
      return 0;
13321
    }
13322
 
13323
    public int compareTo(getPickupStore_result other) {
13324
      if (!getClass().equals(other.getClass())) {
13325
        return getClass().getName().compareTo(other.getClass().getName());
13326
      }
13327
 
13328
      int lastComparison = 0;
13329
      getPickupStore_result typedOther = (getPickupStore_result)other;
13330
 
13331
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13332
      if (lastComparison != 0) {
13333
        return lastComparison;
13334
      }
13335
      if (isSetSuccess()) {
13336
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13337
        if (lastComparison != 0) {
13338
          return lastComparison;
13339
        }
13340
      }
13341
      return 0;
13342
    }
13343
 
13344
    public _Fields fieldForId(int fieldId) {
13345
      return _Fields.findByThriftId(fieldId);
13346
    }
13347
 
13348
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13349
      org.apache.thrift.protocol.TField field;
13350
      iprot.readStructBegin();
13351
      while (true)
13352
      {
13353
        field = iprot.readFieldBegin();
13354
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13355
          break;
13356
        }
13357
        switch (field.id) {
13358
          case 0: // SUCCESS
13359
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13360
              this.success = new PickupStore();
13361
              this.success.read(iprot);
13362
            } else { 
13363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13364
            }
13365
            break;
13366
          default:
13367
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13368
        }
13369
        iprot.readFieldEnd();
13370
      }
13371
      iprot.readStructEnd();
13372
      validate();
13373
    }
13374
 
13375
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13376
      oprot.writeStructBegin(STRUCT_DESC);
13377
 
13378
      if (this.isSetSuccess()) {
13379
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13380
        this.success.write(oprot);
13381
        oprot.writeFieldEnd();
13382
      }
13383
      oprot.writeFieldStop();
13384
      oprot.writeStructEnd();
13385
    }
13386
 
13387
    @Override
13388
    public String toString() {
13389
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13390
      boolean first = true;
13391
 
13392
      sb.append("success:");
13393
      if (this.success == null) {
13394
        sb.append("null");
13395
      } else {
13396
        sb.append(this.success);
13397
      }
13398
      first = false;
13399
      sb.append(")");
13400
      return sb.toString();
13401
    }
13402
 
13403
    public void validate() throws org.apache.thrift.TException {
13404
      // check for required fields
13405
    }
13406
 
13407
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13408
      try {
13409
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13410
      } catch (org.apache.thrift.TException te) {
13411
        throw new java.io.IOException(te);
13412
      }
13413
    }
13414
 
13415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13416
      try {
13417
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13418
      } catch (org.apache.thrift.TException te) {
13419
        throw new java.io.IOException(te);
13420
      }
13421
    }
13422
 
13423
  }
13424
 
5719 rajveer 13425
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13426
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13427
 
13428
    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);
13429
 
13430
    private String hotspotId; // required
13431
 
13432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13434
      HOTSPOT_ID((short)1, "hotspotId");
13435
 
13436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13437
 
13438
      static {
13439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13440
          byName.put(field.getFieldName(), field);
13441
        }
13442
      }
13443
 
13444
      /**
13445
       * Find the _Fields constant that matches fieldId, or null if its not found.
13446
       */
13447
      public static _Fields findByThriftId(int fieldId) {
13448
        switch(fieldId) {
13449
          case 1: // HOTSPOT_ID
13450
            return HOTSPOT_ID;
13451
          default:
13452
            return null;
13453
        }
13454
      }
13455
 
13456
      /**
13457
       * Find the _Fields constant that matches fieldId, throwing an exception
13458
       * if it is not found.
13459
       */
13460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13461
        _Fields fields = findByThriftId(fieldId);
13462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13463
        return fields;
13464
      }
13465
 
13466
      /**
13467
       * Find the _Fields constant that matches name, or null if its not found.
13468
       */
13469
      public static _Fields findByName(String name) {
13470
        return byName.get(name);
13471
      }
13472
 
13473
      private final short _thriftId;
13474
      private final String _fieldName;
13475
 
13476
      _Fields(short thriftId, String fieldName) {
13477
        _thriftId = thriftId;
13478
        _fieldName = fieldName;
13479
      }
13480
 
13481
      public short getThriftFieldId() {
13482
        return _thriftId;
13483
      }
13484
 
13485
      public String getFieldName() {
13486
        return _fieldName;
13487
      }
13488
    }
13489
 
13490
    // isset id assignments
13491
 
13492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13493
    static {
13494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13495
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13497
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13498
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13499
    }
13500
 
13501
    public getPickupStoreByHotspotId_args() {
13502
    }
13503
 
13504
    public getPickupStoreByHotspotId_args(
13505
      String hotspotId)
13506
    {
13507
      this();
13508
      this.hotspotId = hotspotId;
13509
    }
13510
 
13511
    /**
13512
     * Performs a deep copy on <i>other</i>.
13513
     */
13514
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13515
      if (other.isSetHotspotId()) {
13516
        this.hotspotId = other.hotspotId;
13517
      }
13518
    }
13519
 
13520
    public getPickupStoreByHotspotId_args deepCopy() {
13521
      return new getPickupStoreByHotspotId_args(this);
13522
    }
13523
 
13524
    @Override
13525
    public void clear() {
13526
      this.hotspotId = null;
13527
    }
13528
 
13529
    public String getHotspotId() {
13530
      return this.hotspotId;
13531
    }
13532
 
13533
    public void setHotspotId(String hotspotId) {
13534
      this.hotspotId = hotspotId;
13535
    }
13536
 
13537
    public void unsetHotspotId() {
13538
      this.hotspotId = null;
13539
    }
13540
 
13541
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13542
    public boolean isSetHotspotId() {
13543
      return this.hotspotId != null;
13544
    }
13545
 
13546
    public void setHotspotIdIsSet(boolean value) {
13547
      if (!value) {
13548
        this.hotspotId = null;
13549
      }
13550
    }
13551
 
13552
    public void setFieldValue(_Fields field, Object value) {
13553
      switch (field) {
13554
      case HOTSPOT_ID:
13555
        if (value == null) {
13556
          unsetHotspotId();
13557
        } else {
13558
          setHotspotId((String)value);
13559
        }
13560
        break;
13561
 
13562
      }
13563
    }
13564
 
13565
    public Object getFieldValue(_Fields field) {
13566
      switch (field) {
13567
      case HOTSPOT_ID:
13568
        return getHotspotId();
13569
 
13570
      }
13571
      throw new IllegalStateException();
13572
    }
13573
 
13574
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13575
    public boolean isSet(_Fields field) {
13576
      if (field == null) {
13577
        throw new IllegalArgumentException();
13578
      }
13579
 
13580
      switch (field) {
13581
      case HOTSPOT_ID:
13582
        return isSetHotspotId();
13583
      }
13584
      throw new IllegalStateException();
13585
    }
13586
 
13587
    @Override
13588
    public boolean equals(Object that) {
13589
      if (that == null)
13590
        return false;
13591
      if (that instanceof getPickupStoreByHotspotId_args)
13592
        return this.equals((getPickupStoreByHotspotId_args)that);
13593
      return false;
13594
    }
13595
 
13596
    public boolean equals(getPickupStoreByHotspotId_args that) {
13597
      if (that == null)
13598
        return false;
13599
 
13600
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13601
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13602
      if (this_present_hotspotId || that_present_hotspotId) {
13603
        if (!(this_present_hotspotId && that_present_hotspotId))
13604
          return false;
13605
        if (!this.hotspotId.equals(that.hotspotId))
13606
          return false;
13607
      }
13608
 
13609
      return true;
13610
    }
13611
 
13612
    @Override
13613
    public int hashCode() {
13614
      return 0;
13615
    }
13616
 
13617
    public int compareTo(getPickupStoreByHotspotId_args other) {
13618
      if (!getClass().equals(other.getClass())) {
13619
        return getClass().getName().compareTo(other.getClass().getName());
13620
      }
13621
 
13622
      int lastComparison = 0;
13623
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13624
 
13625
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13626
      if (lastComparison != 0) {
13627
        return lastComparison;
13628
      }
13629
      if (isSetHotspotId()) {
13630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13631
        if (lastComparison != 0) {
13632
          return lastComparison;
13633
        }
13634
      }
13635
      return 0;
13636
    }
13637
 
13638
    public _Fields fieldForId(int fieldId) {
13639
      return _Fields.findByThriftId(fieldId);
13640
    }
13641
 
13642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13643
      org.apache.thrift.protocol.TField field;
13644
      iprot.readStructBegin();
13645
      while (true)
13646
      {
13647
        field = iprot.readFieldBegin();
13648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13649
          break;
13650
        }
13651
        switch (field.id) {
13652
          case 1: // HOTSPOT_ID
13653
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13654
              this.hotspotId = iprot.readString();
13655
            } else { 
13656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13657
            }
13658
            break;
13659
          default:
13660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13661
        }
13662
        iprot.readFieldEnd();
13663
      }
13664
      iprot.readStructEnd();
13665
      validate();
13666
    }
13667
 
13668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13669
      validate();
13670
 
13671
      oprot.writeStructBegin(STRUCT_DESC);
13672
      if (this.hotspotId != null) {
13673
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13674
        oprot.writeString(this.hotspotId);
13675
        oprot.writeFieldEnd();
13676
      }
13677
      oprot.writeFieldStop();
13678
      oprot.writeStructEnd();
13679
    }
13680
 
13681
    @Override
13682
    public String toString() {
13683
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13684
      boolean first = true;
13685
 
13686
      sb.append("hotspotId:");
13687
      if (this.hotspotId == null) {
13688
        sb.append("null");
13689
      } else {
13690
        sb.append(this.hotspotId);
13691
      }
13692
      first = false;
13693
      sb.append(")");
13694
      return sb.toString();
13695
    }
13696
 
13697
    public void validate() throws org.apache.thrift.TException {
13698
      // check for required fields
13699
    }
13700
 
13701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13702
      try {
13703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13704
      } catch (org.apache.thrift.TException te) {
13705
        throw new java.io.IOException(te);
13706
      }
13707
    }
13708
 
13709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13710
      try {
13711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13712
      } catch (org.apache.thrift.TException te) {
13713
        throw new java.io.IOException(te);
13714
      }
13715
    }
13716
 
13717
  }
13718
 
13719
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13721
 
13722
    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);
13723
 
13724
    private PickupStore success; // required
13725
 
13726
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13727
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13728
      SUCCESS((short)0, "success");
13729
 
13730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13731
 
13732
      static {
13733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13734
          byName.put(field.getFieldName(), field);
13735
        }
13736
      }
13737
 
13738
      /**
13739
       * Find the _Fields constant that matches fieldId, or null if its not found.
13740
       */
13741
      public static _Fields findByThriftId(int fieldId) {
13742
        switch(fieldId) {
13743
          case 0: // SUCCESS
13744
            return SUCCESS;
13745
          default:
13746
            return null;
13747
        }
13748
      }
13749
 
13750
      /**
13751
       * Find the _Fields constant that matches fieldId, throwing an exception
13752
       * if it is not found.
13753
       */
13754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13755
        _Fields fields = findByThriftId(fieldId);
13756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13757
        return fields;
13758
      }
13759
 
13760
      /**
13761
       * Find the _Fields constant that matches name, or null if its not found.
13762
       */
13763
      public static _Fields findByName(String name) {
13764
        return byName.get(name);
13765
      }
13766
 
13767
      private final short _thriftId;
13768
      private final String _fieldName;
13769
 
13770
      _Fields(short thriftId, String fieldName) {
13771
        _thriftId = thriftId;
13772
        _fieldName = fieldName;
13773
      }
13774
 
13775
      public short getThriftFieldId() {
13776
        return _thriftId;
13777
      }
13778
 
13779
      public String getFieldName() {
13780
        return _fieldName;
13781
      }
13782
    }
13783
 
13784
    // isset id assignments
13785
 
13786
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13787
    static {
13788
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13789
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13790
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13791
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13792
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13793
    }
13794
 
13795
    public getPickupStoreByHotspotId_result() {
13796
    }
13797
 
13798
    public getPickupStoreByHotspotId_result(
13799
      PickupStore success)
13800
    {
13801
      this();
13802
      this.success = success;
13803
    }
13804
 
13805
    /**
13806
     * Performs a deep copy on <i>other</i>.
13807
     */
13808
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13809
      if (other.isSetSuccess()) {
13810
        this.success = new PickupStore(other.success);
13811
      }
13812
    }
13813
 
13814
    public getPickupStoreByHotspotId_result deepCopy() {
13815
      return new getPickupStoreByHotspotId_result(this);
13816
    }
13817
 
13818
    @Override
13819
    public void clear() {
13820
      this.success = null;
13821
    }
13822
 
13823
    public PickupStore getSuccess() {
13824
      return this.success;
13825
    }
13826
 
13827
    public void setSuccess(PickupStore success) {
13828
      this.success = success;
13829
    }
13830
 
13831
    public void unsetSuccess() {
13832
      this.success = null;
13833
    }
13834
 
13835
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13836
    public boolean isSetSuccess() {
13837
      return this.success != null;
13838
    }
13839
 
13840
    public void setSuccessIsSet(boolean value) {
13841
      if (!value) {
13842
        this.success = null;
13843
      }
13844
    }
13845
 
13846
    public void setFieldValue(_Fields field, Object value) {
13847
      switch (field) {
13848
      case SUCCESS:
13849
        if (value == null) {
13850
          unsetSuccess();
13851
        } else {
13852
          setSuccess((PickupStore)value);
13853
        }
13854
        break;
13855
 
13856
      }
13857
    }
13858
 
13859
    public Object getFieldValue(_Fields field) {
13860
      switch (field) {
13861
      case SUCCESS:
13862
        return getSuccess();
13863
 
13864
      }
13865
      throw new IllegalStateException();
13866
    }
13867
 
13868
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13869
    public boolean isSet(_Fields field) {
13870
      if (field == null) {
13871
        throw new IllegalArgumentException();
13872
      }
13873
 
13874
      switch (field) {
13875
      case SUCCESS:
13876
        return isSetSuccess();
13877
      }
13878
      throw new IllegalStateException();
13879
    }
13880
 
13881
    @Override
13882
    public boolean equals(Object that) {
13883
      if (that == null)
13884
        return false;
13885
      if (that instanceof getPickupStoreByHotspotId_result)
13886
        return this.equals((getPickupStoreByHotspotId_result)that);
13887
      return false;
13888
    }
13889
 
13890
    public boolean equals(getPickupStoreByHotspotId_result that) {
13891
      if (that == null)
13892
        return false;
13893
 
13894
      boolean this_present_success = true && this.isSetSuccess();
13895
      boolean that_present_success = true && that.isSetSuccess();
13896
      if (this_present_success || that_present_success) {
13897
        if (!(this_present_success && that_present_success))
13898
          return false;
13899
        if (!this.success.equals(that.success))
13900
          return false;
13901
      }
13902
 
13903
      return true;
13904
    }
13905
 
13906
    @Override
13907
    public int hashCode() {
13908
      return 0;
13909
    }
13910
 
13911
    public int compareTo(getPickupStoreByHotspotId_result other) {
13912
      if (!getClass().equals(other.getClass())) {
13913
        return getClass().getName().compareTo(other.getClass().getName());
13914
      }
13915
 
13916
      int lastComparison = 0;
13917
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13918
 
13919
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13920
      if (lastComparison != 0) {
13921
        return lastComparison;
13922
      }
13923
      if (isSetSuccess()) {
13924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13925
        if (lastComparison != 0) {
13926
          return lastComparison;
13927
        }
13928
      }
13929
      return 0;
13930
    }
13931
 
13932
    public _Fields fieldForId(int fieldId) {
13933
      return _Fields.findByThriftId(fieldId);
13934
    }
13935
 
13936
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13937
      org.apache.thrift.protocol.TField field;
13938
      iprot.readStructBegin();
13939
      while (true)
13940
      {
13941
        field = iprot.readFieldBegin();
13942
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13943
          break;
13944
        }
13945
        switch (field.id) {
13946
          case 0: // SUCCESS
13947
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13948
              this.success = new PickupStore();
13949
              this.success.read(iprot);
13950
            } else { 
13951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13952
            }
13953
            break;
13954
          default:
13955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13956
        }
13957
        iprot.readFieldEnd();
13958
      }
13959
      iprot.readStructEnd();
13960
      validate();
13961
    }
13962
 
13963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13964
      oprot.writeStructBegin(STRUCT_DESC);
13965
 
13966
      if (this.isSetSuccess()) {
13967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13968
        this.success.write(oprot);
13969
        oprot.writeFieldEnd();
13970
      }
13971
      oprot.writeFieldStop();
13972
      oprot.writeStructEnd();
13973
    }
13974
 
13975
    @Override
13976
    public String toString() {
13977
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13978
      boolean first = true;
13979
 
13980
      sb.append("success:");
13981
      if (this.success == null) {
13982
        sb.append("null");
13983
      } else {
13984
        sb.append(this.success);
13985
      }
13986
      first = false;
13987
      sb.append(")");
13988
      return sb.toString();
13989
    }
13990
 
13991
    public void validate() throws org.apache.thrift.TException {
13992
      // check for required fields
13993
    }
13994
 
13995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13996
      try {
13997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13998
      } catch (org.apache.thrift.TException te) {
13999
        throw new java.io.IOException(te);
14000
      }
14001
    }
14002
 
14003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14004
      try {
14005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14006
      } catch (org.apache.thrift.TException te) {
14007
        throw new java.io.IOException(te);
14008
      }
14009
    }
14010
 
14011
  }
14012
 
6322 amar.kumar 14013
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
14014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
14015
 
14016
    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);
14017
    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);
14018
    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);
14019
    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);
14020
    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);
14021
    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 14022
    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 14023
 
14024
    private long providerId; // required
14025
    private String pincode; // required
14026
    private String destCode; // required
14027
    private boolean exp; // required
14028
    private boolean cod; // required
14029
    private int stationType; // required
6524 rajveer 14030
    private boolean otgAvailable; // required
6322 amar.kumar 14031
 
14032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14034
      PROVIDER_ID((short)1, "providerId"),
14035
      PINCODE((short)2, "pincode"),
14036
      DEST_CODE((short)3, "destCode"),
14037
      EXP((short)4, "exp"),
14038
      COD((short)5, "cod"),
6524 rajveer 14039
      STATION_TYPE((short)6, "stationType"),
14040
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 14041
 
14042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14043
 
14044
      static {
14045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14046
          byName.put(field.getFieldName(), field);
14047
        }
14048
      }
14049
 
14050
      /**
14051
       * Find the _Fields constant that matches fieldId, or null if its not found.
14052
       */
14053
      public static _Fields findByThriftId(int fieldId) {
14054
        switch(fieldId) {
14055
          case 1: // PROVIDER_ID
14056
            return PROVIDER_ID;
14057
          case 2: // PINCODE
14058
            return PINCODE;
14059
          case 3: // DEST_CODE
14060
            return DEST_CODE;
14061
          case 4: // EXP
14062
            return EXP;
14063
          case 5: // COD
14064
            return COD;
14065
          case 6: // STATION_TYPE
14066
            return STATION_TYPE;
6524 rajveer 14067
          case 7: // OTG_AVAILABLE
14068
            return OTG_AVAILABLE;
6322 amar.kumar 14069
          default:
14070
            return null;
14071
        }
14072
      }
14073
 
14074
      /**
14075
       * Find the _Fields constant that matches fieldId, throwing an exception
14076
       * if it is not found.
14077
       */
14078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14079
        _Fields fields = findByThriftId(fieldId);
14080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14081
        return fields;
14082
      }
14083
 
14084
      /**
14085
       * Find the _Fields constant that matches name, or null if its not found.
14086
       */
14087
      public static _Fields findByName(String name) {
14088
        return byName.get(name);
14089
      }
14090
 
14091
      private final short _thriftId;
14092
      private final String _fieldName;
14093
 
14094
      _Fields(short thriftId, String fieldName) {
14095
        _thriftId = thriftId;
14096
        _fieldName = fieldName;
14097
      }
14098
 
14099
      public short getThriftFieldId() {
14100
        return _thriftId;
14101
      }
14102
 
14103
      public String getFieldName() {
14104
        return _fieldName;
14105
      }
14106
    }
14107
 
14108
    // isset id assignments
14109
    private static final int __PROVIDERID_ISSET_ID = 0;
14110
    private static final int __EXP_ISSET_ID = 1;
14111
    private static final int __COD_ISSET_ID = 2;
14112
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 14113
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
14114
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 14115
 
14116
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14117
    static {
14118
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14119
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14121
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14123
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14124
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14125
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14126
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14127
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14129
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14130
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 14131
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14132
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14133
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14134
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
14135
    }
14136
 
14137
    public addPincode_args() {
14138
    }
14139
 
14140
    public addPincode_args(
14141
      long providerId,
14142
      String pincode,
14143
      String destCode,
14144
      boolean exp,
14145
      boolean cod,
6524 rajveer 14146
      int stationType,
14147
      boolean otgAvailable)
6322 amar.kumar 14148
    {
14149
      this();
14150
      this.providerId = providerId;
14151
      setProviderIdIsSet(true);
14152
      this.pincode = pincode;
14153
      this.destCode = destCode;
14154
      this.exp = exp;
14155
      setExpIsSet(true);
14156
      this.cod = cod;
14157
      setCodIsSet(true);
14158
      this.stationType = stationType;
14159
      setStationTypeIsSet(true);
6524 rajveer 14160
      this.otgAvailable = otgAvailable;
14161
      setOtgAvailableIsSet(true);
6322 amar.kumar 14162
    }
14163
 
14164
    /**
14165
     * Performs a deep copy on <i>other</i>.
14166
     */
14167
    public addPincode_args(addPincode_args other) {
14168
      __isset_bit_vector.clear();
14169
      __isset_bit_vector.or(other.__isset_bit_vector);
14170
      this.providerId = other.providerId;
14171
      if (other.isSetPincode()) {
14172
        this.pincode = other.pincode;
14173
      }
14174
      if (other.isSetDestCode()) {
14175
        this.destCode = other.destCode;
14176
      }
14177
      this.exp = other.exp;
14178
      this.cod = other.cod;
14179
      this.stationType = other.stationType;
6524 rajveer 14180
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14181
    }
14182
 
14183
    public addPincode_args deepCopy() {
14184
      return new addPincode_args(this);
14185
    }
14186
 
14187
    @Override
14188
    public void clear() {
14189
      setProviderIdIsSet(false);
14190
      this.providerId = 0;
14191
      this.pincode = null;
14192
      this.destCode = null;
14193
      setExpIsSet(false);
14194
      this.exp = false;
14195
      setCodIsSet(false);
14196
      this.cod = false;
14197
      setStationTypeIsSet(false);
14198
      this.stationType = 0;
6524 rajveer 14199
      setOtgAvailableIsSet(false);
14200
      this.otgAvailable = false;
6322 amar.kumar 14201
    }
14202
 
14203
    public long getProviderId() {
14204
      return this.providerId;
14205
    }
14206
 
14207
    public void setProviderId(long providerId) {
14208
      this.providerId = providerId;
14209
      setProviderIdIsSet(true);
14210
    }
14211
 
14212
    public void unsetProviderId() {
14213
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14214
    }
14215
 
14216
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14217
    public boolean isSetProviderId() {
14218
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14219
    }
14220
 
14221
    public void setProviderIdIsSet(boolean value) {
14222
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14223
    }
14224
 
14225
    public String getPincode() {
14226
      return this.pincode;
14227
    }
14228
 
14229
    public void setPincode(String pincode) {
14230
      this.pincode = pincode;
14231
    }
14232
 
14233
    public void unsetPincode() {
14234
      this.pincode = null;
14235
    }
14236
 
14237
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14238
    public boolean isSetPincode() {
14239
      return this.pincode != null;
14240
    }
14241
 
14242
    public void setPincodeIsSet(boolean value) {
14243
      if (!value) {
14244
        this.pincode = null;
14245
      }
14246
    }
14247
 
14248
    public String getDestCode() {
14249
      return this.destCode;
14250
    }
14251
 
14252
    public void setDestCode(String destCode) {
14253
      this.destCode = destCode;
14254
    }
14255
 
14256
    public void unsetDestCode() {
14257
      this.destCode = null;
14258
    }
14259
 
14260
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14261
    public boolean isSetDestCode() {
14262
      return this.destCode != null;
14263
    }
14264
 
14265
    public void setDestCodeIsSet(boolean value) {
14266
      if (!value) {
14267
        this.destCode = null;
14268
      }
14269
    }
14270
 
14271
    public boolean isExp() {
14272
      return this.exp;
14273
    }
14274
 
14275
    public void setExp(boolean exp) {
14276
      this.exp = exp;
14277
      setExpIsSet(true);
14278
    }
14279
 
14280
    public void unsetExp() {
14281
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14282
    }
14283
 
14284
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14285
    public boolean isSetExp() {
14286
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14287
    }
14288
 
14289
    public void setExpIsSet(boolean value) {
14290
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14291
    }
14292
 
14293
    public boolean isCod() {
14294
      return this.cod;
14295
    }
14296
 
14297
    public void setCod(boolean cod) {
14298
      this.cod = cod;
14299
      setCodIsSet(true);
14300
    }
14301
 
14302
    public void unsetCod() {
14303
      __isset_bit_vector.clear(__COD_ISSET_ID);
14304
    }
14305
 
14306
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14307
    public boolean isSetCod() {
14308
      return __isset_bit_vector.get(__COD_ISSET_ID);
14309
    }
14310
 
14311
    public void setCodIsSet(boolean value) {
14312
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14313
    }
14314
 
14315
    public int getStationType() {
14316
      return this.stationType;
14317
    }
14318
 
14319
    public void setStationType(int stationType) {
14320
      this.stationType = stationType;
14321
      setStationTypeIsSet(true);
14322
    }
14323
 
14324
    public void unsetStationType() {
14325
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14326
    }
14327
 
14328
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14329
    public boolean isSetStationType() {
14330
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14331
    }
14332
 
14333
    public void setStationTypeIsSet(boolean value) {
14334
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14335
    }
14336
 
6524 rajveer 14337
    public boolean isOtgAvailable() {
14338
      return this.otgAvailable;
14339
    }
14340
 
14341
    public void setOtgAvailable(boolean otgAvailable) {
14342
      this.otgAvailable = otgAvailable;
14343
      setOtgAvailableIsSet(true);
14344
    }
14345
 
14346
    public void unsetOtgAvailable() {
14347
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14348
    }
14349
 
14350
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14351
    public boolean isSetOtgAvailable() {
14352
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14353
    }
14354
 
14355
    public void setOtgAvailableIsSet(boolean value) {
14356
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14357
    }
14358
 
6322 amar.kumar 14359
    public void setFieldValue(_Fields field, Object value) {
14360
      switch (field) {
14361
      case PROVIDER_ID:
14362
        if (value == null) {
14363
          unsetProviderId();
14364
        } else {
14365
          setProviderId((Long)value);
14366
        }
14367
        break;
14368
 
14369
      case PINCODE:
14370
        if (value == null) {
14371
          unsetPincode();
14372
        } else {
14373
          setPincode((String)value);
14374
        }
14375
        break;
14376
 
14377
      case DEST_CODE:
14378
        if (value == null) {
14379
          unsetDestCode();
14380
        } else {
14381
          setDestCode((String)value);
14382
        }
14383
        break;
14384
 
14385
      case EXP:
14386
        if (value == null) {
14387
          unsetExp();
14388
        } else {
14389
          setExp((Boolean)value);
14390
        }
14391
        break;
14392
 
14393
      case COD:
14394
        if (value == null) {
14395
          unsetCod();
14396
        } else {
14397
          setCod((Boolean)value);
14398
        }
14399
        break;
14400
 
14401
      case STATION_TYPE:
14402
        if (value == null) {
14403
          unsetStationType();
14404
        } else {
14405
          setStationType((Integer)value);
14406
        }
14407
        break;
14408
 
6524 rajveer 14409
      case OTG_AVAILABLE:
14410
        if (value == null) {
14411
          unsetOtgAvailable();
14412
        } else {
14413
          setOtgAvailable((Boolean)value);
14414
        }
14415
        break;
14416
 
6322 amar.kumar 14417
      }
14418
    }
14419
 
14420
    public Object getFieldValue(_Fields field) {
14421
      switch (field) {
14422
      case PROVIDER_ID:
14423
        return Long.valueOf(getProviderId());
14424
 
14425
      case PINCODE:
14426
        return getPincode();
14427
 
14428
      case DEST_CODE:
14429
        return getDestCode();
14430
 
14431
      case EXP:
14432
        return Boolean.valueOf(isExp());
14433
 
14434
      case COD:
14435
        return Boolean.valueOf(isCod());
14436
 
14437
      case STATION_TYPE:
14438
        return Integer.valueOf(getStationType());
14439
 
6524 rajveer 14440
      case OTG_AVAILABLE:
14441
        return Boolean.valueOf(isOtgAvailable());
14442
 
6322 amar.kumar 14443
      }
14444
      throw new IllegalStateException();
14445
    }
14446
 
14447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14448
    public boolean isSet(_Fields field) {
14449
      if (field == null) {
14450
        throw new IllegalArgumentException();
14451
      }
14452
 
14453
      switch (field) {
14454
      case PROVIDER_ID:
14455
        return isSetProviderId();
14456
      case PINCODE:
14457
        return isSetPincode();
14458
      case DEST_CODE:
14459
        return isSetDestCode();
14460
      case EXP:
14461
        return isSetExp();
14462
      case COD:
14463
        return isSetCod();
14464
      case STATION_TYPE:
14465
        return isSetStationType();
6524 rajveer 14466
      case OTG_AVAILABLE:
14467
        return isSetOtgAvailable();
6322 amar.kumar 14468
      }
14469
      throw new IllegalStateException();
14470
    }
14471
 
14472
    @Override
14473
    public boolean equals(Object that) {
14474
      if (that == null)
14475
        return false;
14476
      if (that instanceof addPincode_args)
14477
        return this.equals((addPincode_args)that);
14478
      return false;
14479
    }
14480
 
14481
    public boolean equals(addPincode_args that) {
14482
      if (that == null)
14483
        return false;
14484
 
14485
      boolean this_present_providerId = true;
14486
      boolean that_present_providerId = true;
14487
      if (this_present_providerId || that_present_providerId) {
14488
        if (!(this_present_providerId && that_present_providerId))
14489
          return false;
14490
        if (this.providerId != that.providerId)
14491
          return false;
14492
      }
14493
 
14494
      boolean this_present_pincode = true && this.isSetPincode();
14495
      boolean that_present_pincode = true && that.isSetPincode();
14496
      if (this_present_pincode || that_present_pincode) {
14497
        if (!(this_present_pincode && that_present_pincode))
14498
          return false;
14499
        if (!this.pincode.equals(that.pincode))
14500
          return false;
14501
      }
14502
 
14503
      boolean this_present_destCode = true && this.isSetDestCode();
14504
      boolean that_present_destCode = true && that.isSetDestCode();
14505
      if (this_present_destCode || that_present_destCode) {
14506
        if (!(this_present_destCode && that_present_destCode))
14507
          return false;
14508
        if (!this.destCode.equals(that.destCode))
14509
          return false;
14510
      }
14511
 
14512
      boolean this_present_exp = true;
14513
      boolean that_present_exp = true;
14514
      if (this_present_exp || that_present_exp) {
14515
        if (!(this_present_exp && that_present_exp))
14516
          return false;
14517
        if (this.exp != that.exp)
14518
          return false;
14519
      }
14520
 
14521
      boolean this_present_cod = true;
14522
      boolean that_present_cod = true;
14523
      if (this_present_cod || that_present_cod) {
14524
        if (!(this_present_cod && that_present_cod))
14525
          return false;
14526
        if (this.cod != that.cod)
14527
          return false;
14528
      }
14529
 
14530
      boolean this_present_stationType = true;
14531
      boolean that_present_stationType = true;
14532
      if (this_present_stationType || that_present_stationType) {
14533
        if (!(this_present_stationType && that_present_stationType))
14534
          return false;
14535
        if (this.stationType != that.stationType)
14536
          return false;
14537
      }
14538
 
6524 rajveer 14539
      boolean this_present_otgAvailable = true;
14540
      boolean that_present_otgAvailable = true;
14541
      if (this_present_otgAvailable || that_present_otgAvailable) {
14542
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14543
          return false;
14544
        if (this.otgAvailable != that.otgAvailable)
14545
          return false;
14546
      }
14547
 
6322 amar.kumar 14548
      return true;
14549
    }
14550
 
14551
    @Override
14552
    public int hashCode() {
14553
      return 0;
14554
    }
14555
 
14556
    public int compareTo(addPincode_args other) {
14557
      if (!getClass().equals(other.getClass())) {
14558
        return getClass().getName().compareTo(other.getClass().getName());
14559
      }
14560
 
14561
      int lastComparison = 0;
14562
      addPincode_args typedOther = (addPincode_args)other;
14563
 
14564
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14565
      if (lastComparison != 0) {
14566
        return lastComparison;
14567
      }
14568
      if (isSetProviderId()) {
14569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14570
        if (lastComparison != 0) {
14571
          return lastComparison;
14572
        }
14573
      }
14574
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14575
      if (lastComparison != 0) {
14576
        return lastComparison;
14577
      }
14578
      if (isSetPincode()) {
14579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14580
        if (lastComparison != 0) {
14581
          return lastComparison;
14582
        }
14583
      }
14584
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14585
      if (lastComparison != 0) {
14586
        return lastComparison;
14587
      }
14588
      if (isSetDestCode()) {
14589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14590
        if (lastComparison != 0) {
14591
          return lastComparison;
14592
        }
14593
      }
14594
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14595
      if (lastComparison != 0) {
14596
        return lastComparison;
14597
      }
14598
      if (isSetExp()) {
14599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14600
        if (lastComparison != 0) {
14601
          return lastComparison;
14602
        }
14603
      }
14604
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14605
      if (lastComparison != 0) {
14606
        return lastComparison;
14607
      }
14608
      if (isSetCod()) {
14609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14610
        if (lastComparison != 0) {
14611
          return lastComparison;
14612
        }
14613
      }
14614
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14615
      if (lastComparison != 0) {
14616
        return lastComparison;
14617
      }
14618
      if (isSetStationType()) {
14619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14620
        if (lastComparison != 0) {
14621
          return lastComparison;
14622
        }
14623
      }
6524 rajveer 14624
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14625
      if (lastComparison != 0) {
14626
        return lastComparison;
14627
      }
14628
      if (isSetOtgAvailable()) {
14629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14630
        if (lastComparison != 0) {
14631
          return lastComparison;
14632
        }
14633
      }
6322 amar.kumar 14634
      return 0;
14635
    }
14636
 
14637
    public _Fields fieldForId(int fieldId) {
14638
      return _Fields.findByThriftId(fieldId);
14639
    }
14640
 
14641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14642
      org.apache.thrift.protocol.TField field;
14643
      iprot.readStructBegin();
14644
      while (true)
14645
      {
14646
        field = iprot.readFieldBegin();
14647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14648
          break;
14649
        }
14650
        switch (field.id) {
14651
          case 1: // PROVIDER_ID
14652
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14653
              this.providerId = iprot.readI64();
14654
              setProviderIdIsSet(true);
14655
            } else { 
14656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14657
            }
14658
            break;
14659
          case 2: // PINCODE
14660
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14661
              this.pincode = iprot.readString();
14662
            } else { 
14663
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14664
            }
14665
            break;
14666
          case 3: // DEST_CODE
14667
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14668
              this.destCode = iprot.readString();
14669
            } else { 
14670
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14671
            }
14672
            break;
14673
          case 4: // EXP
14674
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14675
              this.exp = iprot.readBool();
14676
              setExpIsSet(true);
14677
            } else { 
14678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14679
            }
14680
            break;
14681
          case 5: // COD
14682
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14683
              this.cod = iprot.readBool();
14684
              setCodIsSet(true);
14685
            } else { 
14686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14687
            }
14688
            break;
14689
          case 6: // STATION_TYPE
14690
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14691
              this.stationType = iprot.readI32();
14692
              setStationTypeIsSet(true);
14693
            } else { 
14694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14695
            }
14696
            break;
6524 rajveer 14697
          case 7: // OTG_AVAILABLE
14698
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14699
              this.otgAvailable = iprot.readBool();
14700
              setOtgAvailableIsSet(true);
14701
            } else { 
14702
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14703
            }
14704
            break;
6322 amar.kumar 14705
          default:
14706
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14707
        }
14708
        iprot.readFieldEnd();
14709
      }
14710
      iprot.readStructEnd();
14711
      validate();
14712
    }
14713
 
14714
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14715
      validate();
14716
 
14717
      oprot.writeStructBegin(STRUCT_DESC);
14718
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14719
      oprot.writeI64(this.providerId);
14720
      oprot.writeFieldEnd();
14721
      if (this.pincode != null) {
14722
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14723
        oprot.writeString(this.pincode);
14724
        oprot.writeFieldEnd();
14725
      }
14726
      if (this.destCode != null) {
14727
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14728
        oprot.writeString(this.destCode);
14729
        oprot.writeFieldEnd();
14730
      }
14731
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14732
      oprot.writeBool(this.exp);
14733
      oprot.writeFieldEnd();
14734
      oprot.writeFieldBegin(COD_FIELD_DESC);
14735
      oprot.writeBool(this.cod);
14736
      oprot.writeFieldEnd();
14737
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14738
      oprot.writeI32(this.stationType);
14739
      oprot.writeFieldEnd();
6524 rajveer 14740
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14741
      oprot.writeBool(this.otgAvailable);
14742
      oprot.writeFieldEnd();
6322 amar.kumar 14743
      oprot.writeFieldStop();
14744
      oprot.writeStructEnd();
14745
    }
14746
 
14747
    @Override
14748
    public String toString() {
14749
      StringBuilder sb = new StringBuilder("addPincode_args(");
14750
      boolean first = true;
14751
 
14752
      sb.append("providerId:");
14753
      sb.append(this.providerId);
14754
      first = false;
14755
      if (!first) sb.append(", ");
14756
      sb.append("pincode:");
14757
      if (this.pincode == null) {
14758
        sb.append("null");
14759
      } else {
14760
        sb.append(this.pincode);
14761
      }
14762
      first = false;
14763
      if (!first) sb.append(", ");
14764
      sb.append("destCode:");
14765
      if (this.destCode == null) {
14766
        sb.append("null");
14767
      } else {
14768
        sb.append(this.destCode);
14769
      }
14770
      first = false;
14771
      if (!first) sb.append(", ");
14772
      sb.append("exp:");
14773
      sb.append(this.exp);
14774
      first = false;
14775
      if (!first) sb.append(", ");
14776
      sb.append("cod:");
14777
      sb.append(this.cod);
14778
      first = false;
14779
      if (!first) sb.append(", ");
14780
      sb.append("stationType:");
14781
      sb.append(this.stationType);
14782
      first = false;
6524 rajveer 14783
      if (!first) sb.append(", ");
14784
      sb.append("otgAvailable:");
14785
      sb.append(this.otgAvailable);
14786
      first = false;
6322 amar.kumar 14787
      sb.append(")");
14788
      return sb.toString();
14789
    }
14790
 
14791
    public void validate() throws org.apache.thrift.TException {
14792
      // check for required fields
14793
    }
14794
 
14795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14796
      try {
14797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14798
      } catch (org.apache.thrift.TException te) {
14799
        throw new java.io.IOException(te);
14800
      }
14801
    }
14802
 
14803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14804
      try {
14805
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14806
        __isset_bit_vector = new BitSet(1);
14807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14808
      } catch (org.apache.thrift.TException te) {
14809
        throw new java.io.IOException(te);
14810
      }
14811
    }
14812
 
14813
  }
14814
 
14815
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14817
 
14818
 
14819
 
14820
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14821
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14822
;
14823
 
14824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14825
 
14826
      static {
14827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14828
          byName.put(field.getFieldName(), field);
14829
        }
14830
      }
14831
 
14832
      /**
14833
       * Find the _Fields constant that matches fieldId, or null if its not found.
14834
       */
14835
      public static _Fields findByThriftId(int fieldId) {
14836
        switch(fieldId) {
14837
          default:
14838
            return null;
14839
        }
14840
      }
14841
 
14842
      /**
14843
       * Find the _Fields constant that matches fieldId, throwing an exception
14844
       * if it is not found.
14845
       */
14846
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14847
        _Fields fields = findByThriftId(fieldId);
14848
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14849
        return fields;
14850
      }
14851
 
14852
      /**
14853
       * Find the _Fields constant that matches name, or null if its not found.
14854
       */
14855
      public static _Fields findByName(String name) {
14856
        return byName.get(name);
14857
      }
14858
 
14859
      private final short _thriftId;
14860
      private final String _fieldName;
14861
 
14862
      _Fields(short thriftId, String fieldName) {
14863
        _thriftId = thriftId;
14864
        _fieldName = fieldName;
14865
      }
14866
 
14867
      public short getThriftFieldId() {
14868
        return _thriftId;
14869
      }
14870
 
14871
      public String getFieldName() {
14872
        return _fieldName;
14873
      }
14874
    }
14875
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14876
    static {
14877
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14878
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14879
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14880
    }
14881
 
14882
    public addPincode_result() {
14883
    }
14884
 
14885
    /**
14886
     * Performs a deep copy on <i>other</i>.
14887
     */
14888
    public addPincode_result(addPincode_result other) {
14889
    }
14890
 
14891
    public addPincode_result deepCopy() {
14892
      return new addPincode_result(this);
14893
    }
14894
 
14895
    @Override
14896
    public void clear() {
14897
    }
14898
 
14899
    public void setFieldValue(_Fields field, Object value) {
14900
      switch (field) {
14901
      }
14902
    }
14903
 
14904
    public Object getFieldValue(_Fields field) {
14905
      switch (field) {
14906
      }
14907
      throw new IllegalStateException();
14908
    }
14909
 
14910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14911
    public boolean isSet(_Fields field) {
14912
      if (field == null) {
14913
        throw new IllegalArgumentException();
14914
      }
14915
 
14916
      switch (field) {
14917
      }
14918
      throw new IllegalStateException();
14919
    }
14920
 
14921
    @Override
14922
    public boolean equals(Object that) {
14923
      if (that == null)
14924
        return false;
14925
      if (that instanceof addPincode_result)
14926
        return this.equals((addPincode_result)that);
14927
      return false;
14928
    }
14929
 
14930
    public boolean equals(addPincode_result that) {
14931
      if (that == null)
14932
        return false;
14933
 
14934
      return true;
14935
    }
14936
 
14937
    @Override
14938
    public int hashCode() {
14939
      return 0;
14940
    }
14941
 
14942
    public int compareTo(addPincode_result other) {
14943
      if (!getClass().equals(other.getClass())) {
14944
        return getClass().getName().compareTo(other.getClass().getName());
14945
      }
14946
 
14947
      int lastComparison = 0;
14948
      addPincode_result typedOther = (addPincode_result)other;
14949
 
14950
      return 0;
14951
    }
14952
 
14953
    public _Fields fieldForId(int fieldId) {
14954
      return _Fields.findByThriftId(fieldId);
14955
    }
14956
 
14957
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14958
      org.apache.thrift.protocol.TField field;
14959
      iprot.readStructBegin();
14960
      while (true)
14961
      {
14962
        field = iprot.readFieldBegin();
14963
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14964
          break;
14965
        }
14966
        switch (field.id) {
14967
          default:
14968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14969
        }
14970
        iprot.readFieldEnd();
14971
      }
14972
      iprot.readStructEnd();
14973
      validate();
14974
    }
14975
 
14976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14977
      oprot.writeStructBegin(STRUCT_DESC);
14978
 
14979
      oprot.writeFieldStop();
14980
      oprot.writeStructEnd();
14981
    }
14982
 
14983
    @Override
14984
    public String toString() {
14985
      StringBuilder sb = new StringBuilder("addPincode_result(");
14986
      boolean first = true;
14987
 
14988
      sb.append(")");
14989
      return sb.toString();
14990
    }
14991
 
14992
    public void validate() throws org.apache.thrift.TException {
14993
      // check for required fields
14994
    }
14995
 
14996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14997
      try {
14998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14999
      } catch (org.apache.thrift.TException te) {
15000
        throw new java.io.IOException(te);
15001
      }
15002
    }
15003
 
15004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15005
      try {
15006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15007
      } catch (org.apache.thrift.TException te) {
15008
        throw new java.io.IOException(te);
15009
      }
15010
    }
15011
 
15012
  }
15013
 
15014
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
15015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
15016
 
15017
    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);
15018
    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);
15019
    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);
15020
    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 15021
    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 15022
 
15023
    private long providerId; // required
15024
    private String pincode; // required
15025
    private boolean exp; // required
15026
    private boolean cod; // required
6524 rajveer 15027
    private boolean otgAvailable; // required
6322 amar.kumar 15028
 
15029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15031
      PROVIDER_ID((short)1, "providerId"),
15032
      PINCODE((short)2, "pincode"),
15033
      EXP((short)3, "exp"),
6524 rajveer 15034
      COD((short)4, "cod"),
15035
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 15036
 
15037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15038
 
15039
      static {
15040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15041
          byName.put(field.getFieldName(), field);
15042
        }
15043
      }
15044
 
15045
      /**
15046
       * Find the _Fields constant that matches fieldId, or null if its not found.
15047
       */
15048
      public static _Fields findByThriftId(int fieldId) {
15049
        switch(fieldId) {
15050
          case 1: // PROVIDER_ID
15051
            return PROVIDER_ID;
15052
          case 2: // PINCODE
15053
            return PINCODE;
15054
          case 3: // EXP
15055
            return EXP;
15056
          case 4: // COD
15057
            return COD;
6524 rajveer 15058
          case 5: // OTG_AVAILABLE
15059
            return OTG_AVAILABLE;
6322 amar.kumar 15060
          default:
15061
            return null;
15062
        }
15063
      }
15064
 
15065
      /**
15066
       * Find the _Fields constant that matches fieldId, throwing an exception
15067
       * if it is not found.
15068
       */
15069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15070
        _Fields fields = findByThriftId(fieldId);
15071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15072
        return fields;
15073
      }
15074
 
15075
      /**
15076
       * Find the _Fields constant that matches name, or null if its not found.
15077
       */
15078
      public static _Fields findByName(String name) {
15079
        return byName.get(name);
15080
      }
15081
 
15082
      private final short _thriftId;
15083
      private final String _fieldName;
15084
 
15085
      _Fields(short thriftId, String fieldName) {
15086
        _thriftId = thriftId;
15087
        _fieldName = fieldName;
15088
      }
15089
 
15090
      public short getThriftFieldId() {
15091
        return _thriftId;
15092
      }
15093
 
15094
      public String getFieldName() {
15095
        return _fieldName;
15096
      }
15097
    }
15098
 
15099
    // isset id assignments
15100
    private static final int __PROVIDERID_ISSET_ID = 0;
15101
    private static final int __EXP_ISSET_ID = 1;
15102
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 15103
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
15104
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 15105
 
15106
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15107
    static {
15108
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15109
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15111
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15113
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15115
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15116
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 15117
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 15119
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15120
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
15121
    }
15122
 
15123
    public updatePincode_args() {
15124
    }
15125
 
15126
    public updatePincode_args(
15127
      long providerId,
15128
      String pincode,
15129
      boolean exp,
6524 rajveer 15130
      boolean cod,
15131
      boolean otgAvailable)
6322 amar.kumar 15132
    {
15133
      this();
15134
      this.providerId = providerId;
15135
      setProviderIdIsSet(true);
15136
      this.pincode = pincode;
15137
      this.exp = exp;
15138
      setExpIsSet(true);
15139
      this.cod = cod;
15140
      setCodIsSet(true);
6524 rajveer 15141
      this.otgAvailable = otgAvailable;
15142
      setOtgAvailableIsSet(true);
6322 amar.kumar 15143
    }
15144
 
15145
    /**
15146
     * Performs a deep copy on <i>other</i>.
15147
     */
15148
    public updatePincode_args(updatePincode_args other) {
15149
      __isset_bit_vector.clear();
15150
      __isset_bit_vector.or(other.__isset_bit_vector);
15151
      this.providerId = other.providerId;
15152
      if (other.isSetPincode()) {
15153
        this.pincode = other.pincode;
15154
      }
15155
      this.exp = other.exp;
15156
      this.cod = other.cod;
6524 rajveer 15157
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 15158
    }
15159
 
15160
    public updatePincode_args deepCopy() {
15161
      return new updatePincode_args(this);
15162
    }
15163
 
15164
    @Override
15165
    public void clear() {
15166
      setProviderIdIsSet(false);
15167
      this.providerId = 0;
15168
      this.pincode = null;
15169
      setExpIsSet(false);
15170
      this.exp = false;
15171
      setCodIsSet(false);
15172
      this.cod = false;
6524 rajveer 15173
      setOtgAvailableIsSet(false);
15174
      this.otgAvailable = false;
6322 amar.kumar 15175
    }
15176
 
15177
    public long getProviderId() {
15178
      return this.providerId;
15179
    }
15180
 
15181
    public void setProviderId(long providerId) {
15182
      this.providerId = providerId;
15183
      setProviderIdIsSet(true);
15184
    }
15185
 
15186
    public void unsetProviderId() {
15187
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15188
    }
15189
 
15190
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15191
    public boolean isSetProviderId() {
15192
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15193
    }
15194
 
15195
    public void setProviderIdIsSet(boolean value) {
15196
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15197
    }
15198
 
15199
    public String getPincode() {
15200
      return this.pincode;
15201
    }
15202
 
15203
    public void setPincode(String pincode) {
15204
      this.pincode = pincode;
15205
    }
15206
 
15207
    public void unsetPincode() {
15208
      this.pincode = null;
15209
    }
15210
 
15211
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15212
    public boolean isSetPincode() {
15213
      return this.pincode != null;
15214
    }
15215
 
15216
    public void setPincodeIsSet(boolean value) {
15217
      if (!value) {
15218
        this.pincode = null;
15219
      }
15220
    }
15221
 
15222
    public boolean isExp() {
15223
      return this.exp;
15224
    }
15225
 
15226
    public void setExp(boolean exp) {
15227
      this.exp = exp;
15228
      setExpIsSet(true);
15229
    }
15230
 
15231
    public void unsetExp() {
15232
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15233
    }
15234
 
15235
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15236
    public boolean isSetExp() {
15237
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15238
    }
15239
 
15240
    public void setExpIsSet(boolean value) {
15241
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15242
    }
15243
 
15244
    public boolean isCod() {
15245
      return this.cod;
15246
    }
15247
 
15248
    public void setCod(boolean cod) {
15249
      this.cod = cod;
15250
      setCodIsSet(true);
15251
    }
15252
 
15253
    public void unsetCod() {
15254
      __isset_bit_vector.clear(__COD_ISSET_ID);
15255
    }
15256
 
15257
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15258
    public boolean isSetCod() {
15259
      return __isset_bit_vector.get(__COD_ISSET_ID);
15260
    }
15261
 
15262
    public void setCodIsSet(boolean value) {
15263
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15264
    }
15265
 
6524 rajveer 15266
    public boolean isOtgAvailable() {
15267
      return this.otgAvailable;
15268
    }
15269
 
15270
    public void setOtgAvailable(boolean otgAvailable) {
15271
      this.otgAvailable = otgAvailable;
15272
      setOtgAvailableIsSet(true);
15273
    }
15274
 
15275
    public void unsetOtgAvailable() {
15276
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15277
    }
15278
 
15279
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15280
    public boolean isSetOtgAvailable() {
15281
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15282
    }
15283
 
15284
    public void setOtgAvailableIsSet(boolean value) {
15285
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15286
    }
15287
 
6322 amar.kumar 15288
    public void setFieldValue(_Fields field, Object value) {
15289
      switch (field) {
15290
      case PROVIDER_ID:
15291
        if (value == null) {
15292
          unsetProviderId();
15293
        } else {
15294
          setProviderId((Long)value);
15295
        }
15296
        break;
15297
 
15298
      case PINCODE:
15299
        if (value == null) {
15300
          unsetPincode();
15301
        } else {
15302
          setPincode((String)value);
15303
        }
15304
        break;
15305
 
15306
      case EXP:
15307
        if (value == null) {
15308
          unsetExp();
15309
        } else {
15310
          setExp((Boolean)value);
15311
        }
15312
        break;
15313
 
15314
      case COD:
15315
        if (value == null) {
15316
          unsetCod();
15317
        } else {
15318
          setCod((Boolean)value);
15319
        }
15320
        break;
15321
 
6524 rajveer 15322
      case OTG_AVAILABLE:
15323
        if (value == null) {
15324
          unsetOtgAvailable();
15325
        } else {
15326
          setOtgAvailable((Boolean)value);
15327
        }
15328
        break;
15329
 
6322 amar.kumar 15330
      }
15331
    }
15332
 
15333
    public Object getFieldValue(_Fields field) {
15334
      switch (field) {
15335
      case PROVIDER_ID:
15336
        return Long.valueOf(getProviderId());
15337
 
15338
      case PINCODE:
15339
        return getPincode();
15340
 
15341
      case EXP:
15342
        return Boolean.valueOf(isExp());
15343
 
15344
      case COD:
15345
        return Boolean.valueOf(isCod());
15346
 
6524 rajveer 15347
      case OTG_AVAILABLE:
15348
        return Boolean.valueOf(isOtgAvailable());
15349
 
6322 amar.kumar 15350
      }
15351
      throw new IllegalStateException();
15352
    }
15353
 
15354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15355
    public boolean isSet(_Fields field) {
15356
      if (field == null) {
15357
        throw new IllegalArgumentException();
15358
      }
15359
 
15360
      switch (field) {
15361
      case PROVIDER_ID:
15362
        return isSetProviderId();
15363
      case PINCODE:
15364
        return isSetPincode();
15365
      case EXP:
15366
        return isSetExp();
15367
      case COD:
15368
        return isSetCod();
6524 rajveer 15369
      case OTG_AVAILABLE:
15370
        return isSetOtgAvailable();
6322 amar.kumar 15371
      }
15372
      throw new IllegalStateException();
15373
    }
15374
 
15375
    @Override
15376
    public boolean equals(Object that) {
15377
      if (that == null)
15378
        return false;
15379
      if (that instanceof updatePincode_args)
15380
        return this.equals((updatePincode_args)that);
15381
      return false;
15382
    }
15383
 
15384
    public boolean equals(updatePincode_args that) {
15385
      if (that == null)
15386
        return false;
15387
 
15388
      boolean this_present_providerId = true;
15389
      boolean that_present_providerId = true;
15390
      if (this_present_providerId || that_present_providerId) {
15391
        if (!(this_present_providerId && that_present_providerId))
15392
          return false;
15393
        if (this.providerId != that.providerId)
15394
          return false;
15395
      }
15396
 
15397
      boolean this_present_pincode = true && this.isSetPincode();
15398
      boolean that_present_pincode = true && that.isSetPincode();
15399
      if (this_present_pincode || that_present_pincode) {
15400
        if (!(this_present_pincode && that_present_pincode))
15401
          return false;
15402
        if (!this.pincode.equals(that.pincode))
15403
          return false;
15404
      }
15405
 
15406
      boolean this_present_exp = true;
15407
      boolean that_present_exp = true;
15408
      if (this_present_exp || that_present_exp) {
15409
        if (!(this_present_exp && that_present_exp))
15410
          return false;
15411
        if (this.exp != that.exp)
15412
          return false;
15413
      }
15414
 
15415
      boolean this_present_cod = true;
15416
      boolean that_present_cod = true;
15417
      if (this_present_cod || that_present_cod) {
15418
        if (!(this_present_cod && that_present_cod))
15419
          return false;
15420
        if (this.cod != that.cod)
15421
          return false;
15422
      }
15423
 
6524 rajveer 15424
      boolean this_present_otgAvailable = true;
15425
      boolean that_present_otgAvailable = true;
15426
      if (this_present_otgAvailable || that_present_otgAvailable) {
15427
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15428
          return false;
15429
        if (this.otgAvailable != that.otgAvailable)
15430
          return false;
15431
      }
15432
 
6322 amar.kumar 15433
      return true;
15434
    }
15435
 
15436
    @Override
15437
    public int hashCode() {
15438
      return 0;
15439
    }
15440
 
15441
    public int compareTo(updatePincode_args other) {
15442
      if (!getClass().equals(other.getClass())) {
15443
        return getClass().getName().compareTo(other.getClass().getName());
15444
      }
15445
 
15446
      int lastComparison = 0;
15447
      updatePincode_args typedOther = (updatePincode_args)other;
15448
 
15449
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15450
      if (lastComparison != 0) {
15451
        return lastComparison;
15452
      }
15453
      if (isSetProviderId()) {
15454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15455
        if (lastComparison != 0) {
15456
          return lastComparison;
15457
        }
15458
      }
15459
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15460
      if (lastComparison != 0) {
15461
        return lastComparison;
15462
      }
15463
      if (isSetPincode()) {
15464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15465
        if (lastComparison != 0) {
15466
          return lastComparison;
15467
        }
15468
      }
15469
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15470
      if (lastComparison != 0) {
15471
        return lastComparison;
15472
      }
15473
      if (isSetExp()) {
15474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15475
        if (lastComparison != 0) {
15476
          return lastComparison;
15477
        }
15478
      }
15479
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15480
      if (lastComparison != 0) {
15481
        return lastComparison;
15482
      }
15483
      if (isSetCod()) {
15484
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15485
        if (lastComparison != 0) {
15486
          return lastComparison;
15487
        }
15488
      }
6524 rajveer 15489
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15490
      if (lastComparison != 0) {
15491
        return lastComparison;
15492
      }
15493
      if (isSetOtgAvailable()) {
15494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15495
        if (lastComparison != 0) {
15496
          return lastComparison;
15497
        }
15498
      }
6322 amar.kumar 15499
      return 0;
15500
    }
15501
 
15502
    public _Fields fieldForId(int fieldId) {
15503
      return _Fields.findByThriftId(fieldId);
15504
    }
15505
 
15506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15507
      org.apache.thrift.protocol.TField field;
15508
      iprot.readStructBegin();
15509
      while (true)
15510
      {
15511
        field = iprot.readFieldBegin();
15512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15513
          break;
15514
        }
15515
        switch (field.id) {
15516
          case 1: // PROVIDER_ID
15517
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15518
              this.providerId = iprot.readI64();
15519
              setProviderIdIsSet(true);
15520
            } else { 
15521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15522
            }
15523
            break;
15524
          case 2: // PINCODE
15525
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15526
              this.pincode = iprot.readString();
15527
            } else { 
15528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15529
            }
15530
            break;
15531
          case 3: // EXP
15532
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15533
              this.exp = iprot.readBool();
15534
              setExpIsSet(true);
15535
            } else { 
15536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15537
            }
15538
            break;
15539
          case 4: // COD
15540
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15541
              this.cod = iprot.readBool();
15542
              setCodIsSet(true);
15543
            } else { 
15544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15545
            }
15546
            break;
6524 rajveer 15547
          case 5: // OTG_AVAILABLE
15548
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15549
              this.otgAvailable = iprot.readBool();
15550
              setOtgAvailableIsSet(true);
15551
            } else { 
15552
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15553
            }
15554
            break;
6322 amar.kumar 15555
          default:
15556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15557
        }
15558
        iprot.readFieldEnd();
15559
      }
15560
      iprot.readStructEnd();
15561
      validate();
15562
    }
15563
 
15564
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15565
      validate();
15566
 
15567
      oprot.writeStructBegin(STRUCT_DESC);
15568
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15569
      oprot.writeI64(this.providerId);
15570
      oprot.writeFieldEnd();
15571
      if (this.pincode != null) {
15572
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15573
        oprot.writeString(this.pincode);
15574
        oprot.writeFieldEnd();
15575
      }
15576
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15577
      oprot.writeBool(this.exp);
15578
      oprot.writeFieldEnd();
15579
      oprot.writeFieldBegin(COD_FIELD_DESC);
15580
      oprot.writeBool(this.cod);
15581
      oprot.writeFieldEnd();
6524 rajveer 15582
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15583
      oprot.writeBool(this.otgAvailable);
15584
      oprot.writeFieldEnd();
6322 amar.kumar 15585
      oprot.writeFieldStop();
15586
      oprot.writeStructEnd();
15587
    }
15588
 
15589
    @Override
15590
    public String toString() {
15591
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15592
      boolean first = true;
15593
 
15594
      sb.append("providerId:");
15595
      sb.append(this.providerId);
15596
      first = false;
15597
      if (!first) sb.append(", ");
15598
      sb.append("pincode:");
15599
      if (this.pincode == null) {
15600
        sb.append("null");
15601
      } else {
15602
        sb.append(this.pincode);
15603
      }
15604
      first = false;
15605
      if (!first) sb.append(", ");
15606
      sb.append("exp:");
15607
      sb.append(this.exp);
15608
      first = false;
15609
      if (!first) sb.append(", ");
15610
      sb.append("cod:");
15611
      sb.append(this.cod);
15612
      first = false;
6524 rajveer 15613
      if (!first) sb.append(", ");
15614
      sb.append("otgAvailable:");
15615
      sb.append(this.otgAvailable);
15616
      first = false;
6322 amar.kumar 15617
      sb.append(")");
15618
      return sb.toString();
15619
    }
15620
 
15621
    public void validate() throws org.apache.thrift.TException {
15622
      // check for required fields
15623
    }
15624
 
15625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15626
      try {
15627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15628
      } catch (org.apache.thrift.TException te) {
15629
        throw new java.io.IOException(te);
15630
      }
15631
    }
15632
 
15633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15634
      try {
15635
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15636
        __isset_bit_vector = new BitSet(1);
15637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15638
      } catch (org.apache.thrift.TException te) {
15639
        throw new java.io.IOException(te);
15640
      }
15641
    }
15642
 
15643
  }
15644
 
15645
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15647
 
15648
 
15649
 
15650
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15651
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15652
;
15653
 
15654
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15655
 
15656
      static {
15657
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15658
          byName.put(field.getFieldName(), field);
15659
        }
15660
      }
15661
 
15662
      /**
15663
       * Find the _Fields constant that matches fieldId, or null if its not found.
15664
       */
15665
      public static _Fields findByThriftId(int fieldId) {
15666
        switch(fieldId) {
15667
          default:
15668
            return null;
15669
        }
15670
      }
15671
 
15672
      /**
15673
       * Find the _Fields constant that matches fieldId, throwing an exception
15674
       * if it is not found.
15675
       */
15676
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15677
        _Fields fields = findByThriftId(fieldId);
15678
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15679
        return fields;
15680
      }
15681
 
15682
      /**
15683
       * Find the _Fields constant that matches name, or null if its not found.
15684
       */
15685
      public static _Fields findByName(String name) {
15686
        return byName.get(name);
15687
      }
15688
 
15689
      private final short _thriftId;
15690
      private final String _fieldName;
15691
 
15692
      _Fields(short thriftId, String fieldName) {
15693
        _thriftId = thriftId;
15694
        _fieldName = fieldName;
15695
      }
15696
 
15697
      public short getThriftFieldId() {
15698
        return _thriftId;
15699
      }
15700
 
15701
      public String getFieldName() {
15702
        return _fieldName;
15703
      }
15704
    }
15705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15706
    static {
15707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15710
    }
15711
 
15712
    public updatePincode_result() {
15713
    }
15714
 
15715
    /**
15716
     * Performs a deep copy on <i>other</i>.
15717
     */
15718
    public updatePincode_result(updatePincode_result other) {
15719
    }
15720
 
15721
    public updatePincode_result deepCopy() {
15722
      return new updatePincode_result(this);
15723
    }
15724
 
15725
    @Override
15726
    public void clear() {
15727
    }
15728
 
15729
    public void setFieldValue(_Fields field, Object value) {
15730
      switch (field) {
15731
      }
15732
    }
15733
 
15734
    public Object getFieldValue(_Fields field) {
15735
      switch (field) {
15736
      }
15737
      throw new IllegalStateException();
15738
    }
15739
 
15740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15741
    public boolean isSet(_Fields field) {
15742
      if (field == null) {
15743
        throw new IllegalArgumentException();
15744
      }
15745
 
15746
      switch (field) {
15747
      }
15748
      throw new IllegalStateException();
15749
    }
15750
 
15751
    @Override
15752
    public boolean equals(Object that) {
15753
      if (that == null)
15754
        return false;
15755
      if (that instanceof updatePincode_result)
15756
        return this.equals((updatePincode_result)that);
15757
      return false;
15758
    }
15759
 
15760
    public boolean equals(updatePincode_result that) {
15761
      if (that == null)
15762
        return false;
15763
 
15764
      return true;
15765
    }
15766
 
15767
    @Override
15768
    public int hashCode() {
15769
      return 0;
15770
    }
15771
 
15772
    public int compareTo(updatePincode_result other) {
15773
      if (!getClass().equals(other.getClass())) {
15774
        return getClass().getName().compareTo(other.getClass().getName());
15775
      }
15776
 
15777
      int lastComparison = 0;
15778
      updatePincode_result typedOther = (updatePincode_result)other;
15779
 
15780
      return 0;
15781
    }
15782
 
15783
    public _Fields fieldForId(int fieldId) {
15784
      return _Fields.findByThriftId(fieldId);
15785
    }
15786
 
15787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15788
      org.apache.thrift.protocol.TField field;
15789
      iprot.readStructBegin();
15790
      while (true)
15791
      {
15792
        field = iprot.readFieldBegin();
15793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15794
          break;
15795
        }
15796
        switch (field.id) {
15797
          default:
15798
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15799
        }
15800
        iprot.readFieldEnd();
15801
      }
15802
      iprot.readStructEnd();
15803
      validate();
15804
    }
15805
 
15806
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15807
      oprot.writeStructBegin(STRUCT_DESC);
15808
 
15809
      oprot.writeFieldStop();
15810
      oprot.writeStructEnd();
15811
    }
15812
 
15813
    @Override
15814
    public String toString() {
15815
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15816
      boolean first = true;
15817
 
15818
      sb.append(")");
15819
      return sb.toString();
15820
    }
15821
 
15822
    public void validate() throws org.apache.thrift.TException {
15823
      // check for required fields
15824
    }
15825
 
15826
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15827
      try {
15828
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15829
      } catch (org.apache.thrift.TException te) {
15830
        throw new java.io.IOException(te);
15831
      }
15832
    }
15833
 
15834
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15835
      try {
15836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15837
      } catch (org.apache.thrift.TException te) {
15838
        throw new java.io.IOException(te);
15839
      }
15840
    }
15841
 
15842
  }
15843
 
7567 rajveer 15844
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15846
 
15847
    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);
15848
    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);
15849
    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 15850
    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 15851
 
15852
    private long providerId; // required
15853
    private boolean cod; // required
15854
    private List<String> awbs; // required
13146 manish.sha 15855
    private long awbUsedFor; // required
7567 rajveer 15856
 
15857
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15858
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15859
      PROVIDER_ID((short)1, "providerId"),
15860
      COD((short)2, "cod"),
13146 manish.sha 15861
      AWBS((short)3, "awbs"),
15862
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15863
 
15864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15865
 
15866
      static {
15867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15868
          byName.put(field.getFieldName(), field);
15869
        }
15870
      }
15871
 
15872
      /**
15873
       * Find the _Fields constant that matches fieldId, or null if its not found.
15874
       */
15875
      public static _Fields findByThriftId(int fieldId) {
15876
        switch(fieldId) {
15877
          case 1: // PROVIDER_ID
15878
            return PROVIDER_ID;
15879
          case 2: // COD
15880
            return COD;
15881
          case 3: // AWBS
15882
            return AWBS;
13146 manish.sha 15883
          case 4: // AWB_USED_FOR
15884
            return AWB_USED_FOR;
7567 rajveer 15885
          default:
15886
            return null;
15887
        }
15888
      }
15889
 
15890
      /**
15891
       * Find the _Fields constant that matches fieldId, throwing an exception
15892
       * if it is not found.
15893
       */
15894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15895
        _Fields fields = findByThriftId(fieldId);
15896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15897
        return fields;
15898
      }
15899
 
15900
      /**
15901
       * Find the _Fields constant that matches name, or null if its not found.
15902
       */
15903
      public static _Fields findByName(String name) {
15904
        return byName.get(name);
15905
      }
15906
 
15907
      private final short _thriftId;
15908
      private final String _fieldName;
15909
 
15910
      _Fields(short thriftId, String fieldName) {
15911
        _thriftId = thriftId;
15912
        _fieldName = fieldName;
15913
      }
15914
 
15915
      public short getThriftFieldId() {
15916
        return _thriftId;
15917
      }
15918
 
15919
      public String getFieldName() {
15920
        return _fieldName;
15921
      }
15922
    }
15923
 
15924
    // isset id assignments
15925
    private static final int __PROVIDERID_ISSET_ID = 0;
15926
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15927
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15928
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15929
 
15930
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15931
    static {
15932
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15933
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15934
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15935
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15936
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15937
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15938
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15939
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15940
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15944
    }
15945
 
15946
    public addNewAwbs_args() {
15947
    }
15948
 
15949
    public addNewAwbs_args(
15950
      long providerId,
15951
      boolean cod,
13146 manish.sha 15952
      List<String> awbs,
15953
      long awbUsedFor)
7567 rajveer 15954
    {
15955
      this();
15956
      this.providerId = providerId;
15957
      setProviderIdIsSet(true);
15958
      this.cod = cod;
15959
      setCodIsSet(true);
15960
      this.awbs = awbs;
13146 manish.sha 15961
      this.awbUsedFor = awbUsedFor;
15962
      setAwbUsedForIsSet(true);
7567 rajveer 15963
    }
15964
 
15965
    /**
15966
     * Performs a deep copy on <i>other</i>.
15967
     */
15968
    public addNewAwbs_args(addNewAwbs_args other) {
15969
      __isset_bit_vector.clear();
15970
      __isset_bit_vector.or(other.__isset_bit_vector);
15971
      this.providerId = other.providerId;
15972
      this.cod = other.cod;
15973
      if (other.isSetAwbs()) {
15974
        List<String> __this__awbs = new ArrayList<String>();
15975
        for (String other_element : other.awbs) {
15976
          __this__awbs.add(other_element);
15977
        }
15978
        this.awbs = __this__awbs;
15979
      }
13146 manish.sha 15980
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15981
    }
15982
 
15983
    public addNewAwbs_args deepCopy() {
15984
      return new addNewAwbs_args(this);
15985
    }
15986
 
15987
    @Override
15988
    public void clear() {
15989
      setProviderIdIsSet(false);
15990
      this.providerId = 0;
15991
      setCodIsSet(false);
15992
      this.cod = false;
15993
      this.awbs = null;
13146 manish.sha 15994
      setAwbUsedForIsSet(false);
15995
      this.awbUsedFor = 0;
7567 rajveer 15996
    }
15997
 
15998
    public long getProviderId() {
15999
      return this.providerId;
16000
    }
16001
 
16002
    public void setProviderId(long providerId) {
16003
      this.providerId = providerId;
16004
      setProviderIdIsSet(true);
16005
    }
16006
 
16007
    public void unsetProviderId() {
16008
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
16009
    }
16010
 
16011
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
16012
    public boolean isSetProviderId() {
16013
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
16014
    }
16015
 
16016
    public void setProviderIdIsSet(boolean value) {
16017
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
16018
    }
16019
 
16020
    public boolean isCod() {
16021
      return this.cod;
16022
    }
16023
 
16024
    public void setCod(boolean cod) {
16025
      this.cod = cod;
16026
      setCodIsSet(true);
16027
    }
16028
 
16029
    public void unsetCod() {
16030
      __isset_bit_vector.clear(__COD_ISSET_ID);
16031
    }
16032
 
16033
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
16034
    public boolean isSetCod() {
16035
      return __isset_bit_vector.get(__COD_ISSET_ID);
16036
    }
16037
 
16038
    public void setCodIsSet(boolean value) {
16039
      __isset_bit_vector.set(__COD_ISSET_ID, value);
16040
    }
16041
 
16042
    public int getAwbsSize() {
16043
      return (this.awbs == null) ? 0 : this.awbs.size();
16044
    }
16045
 
16046
    public java.util.Iterator<String> getAwbsIterator() {
16047
      return (this.awbs == null) ? null : this.awbs.iterator();
16048
    }
16049
 
16050
    public void addToAwbs(String elem) {
16051
      if (this.awbs == null) {
16052
        this.awbs = new ArrayList<String>();
16053
      }
16054
      this.awbs.add(elem);
16055
    }
16056
 
16057
    public List<String> getAwbs() {
16058
      return this.awbs;
16059
    }
16060
 
16061
    public void setAwbs(List<String> awbs) {
16062
      this.awbs = awbs;
16063
    }
16064
 
16065
    public void unsetAwbs() {
16066
      this.awbs = null;
16067
    }
16068
 
16069
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
16070
    public boolean isSetAwbs() {
16071
      return this.awbs != null;
16072
    }
16073
 
16074
    public void setAwbsIsSet(boolean value) {
16075
      if (!value) {
16076
        this.awbs = null;
16077
      }
16078
    }
16079
 
13146 manish.sha 16080
    public long getAwbUsedFor() {
16081
      return this.awbUsedFor;
16082
    }
16083
 
16084
    public void setAwbUsedFor(long awbUsedFor) {
16085
      this.awbUsedFor = awbUsedFor;
16086
      setAwbUsedForIsSet(true);
16087
    }
16088
 
16089
    public void unsetAwbUsedFor() {
16090
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
16091
    }
16092
 
16093
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
16094
    public boolean isSetAwbUsedFor() {
16095
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
16096
    }
16097
 
16098
    public void setAwbUsedForIsSet(boolean value) {
16099
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
16100
    }
16101
 
7567 rajveer 16102
    public void setFieldValue(_Fields field, Object value) {
16103
      switch (field) {
16104
      case PROVIDER_ID:
16105
        if (value == null) {
16106
          unsetProviderId();
16107
        } else {
16108
          setProviderId((Long)value);
16109
        }
16110
        break;
16111
 
16112
      case COD:
16113
        if (value == null) {
16114
          unsetCod();
16115
        } else {
16116
          setCod((Boolean)value);
16117
        }
16118
        break;
16119
 
16120
      case AWBS:
16121
        if (value == null) {
16122
          unsetAwbs();
16123
        } else {
16124
          setAwbs((List<String>)value);
16125
        }
16126
        break;
16127
 
13146 manish.sha 16128
      case AWB_USED_FOR:
16129
        if (value == null) {
16130
          unsetAwbUsedFor();
16131
        } else {
16132
          setAwbUsedFor((Long)value);
16133
        }
16134
        break;
16135
 
7567 rajveer 16136
      }
16137
    }
16138
 
16139
    public Object getFieldValue(_Fields field) {
16140
      switch (field) {
16141
      case PROVIDER_ID:
16142
        return Long.valueOf(getProviderId());
16143
 
16144
      case COD:
16145
        return Boolean.valueOf(isCod());
16146
 
16147
      case AWBS:
16148
        return getAwbs();
16149
 
13146 manish.sha 16150
      case AWB_USED_FOR:
16151
        return Long.valueOf(getAwbUsedFor());
16152
 
7567 rajveer 16153
      }
16154
      throw new IllegalStateException();
16155
    }
16156
 
16157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16158
    public boolean isSet(_Fields field) {
16159
      if (field == null) {
16160
        throw new IllegalArgumentException();
16161
      }
16162
 
16163
      switch (field) {
16164
      case PROVIDER_ID:
16165
        return isSetProviderId();
16166
      case COD:
16167
        return isSetCod();
16168
      case AWBS:
16169
        return isSetAwbs();
13146 manish.sha 16170
      case AWB_USED_FOR:
16171
        return isSetAwbUsedFor();
7567 rajveer 16172
      }
16173
      throw new IllegalStateException();
16174
    }
16175
 
16176
    @Override
16177
    public boolean equals(Object that) {
16178
      if (that == null)
16179
        return false;
16180
      if (that instanceof addNewAwbs_args)
16181
        return this.equals((addNewAwbs_args)that);
16182
      return false;
16183
    }
16184
 
16185
    public boolean equals(addNewAwbs_args that) {
16186
      if (that == null)
16187
        return false;
16188
 
16189
      boolean this_present_providerId = true;
16190
      boolean that_present_providerId = true;
16191
      if (this_present_providerId || that_present_providerId) {
16192
        if (!(this_present_providerId && that_present_providerId))
16193
          return false;
16194
        if (this.providerId != that.providerId)
16195
          return false;
16196
      }
16197
 
16198
      boolean this_present_cod = true;
16199
      boolean that_present_cod = true;
16200
      if (this_present_cod || that_present_cod) {
16201
        if (!(this_present_cod && that_present_cod))
16202
          return false;
16203
        if (this.cod != that.cod)
16204
          return false;
16205
      }
16206
 
16207
      boolean this_present_awbs = true && this.isSetAwbs();
16208
      boolean that_present_awbs = true && that.isSetAwbs();
16209
      if (this_present_awbs || that_present_awbs) {
16210
        if (!(this_present_awbs && that_present_awbs))
16211
          return false;
16212
        if (!this.awbs.equals(that.awbs))
16213
          return false;
16214
      }
16215
 
13146 manish.sha 16216
      boolean this_present_awbUsedFor = true;
16217
      boolean that_present_awbUsedFor = true;
16218
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16219
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16220
          return false;
16221
        if (this.awbUsedFor != that.awbUsedFor)
16222
          return false;
16223
      }
16224
 
7567 rajveer 16225
      return true;
16226
    }
16227
 
16228
    @Override
16229
    public int hashCode() {
16230
      return 0;
16231
    }
16232
 
16233
    public int compareTo(addNewAwbs_args other) {
16234
      if (!getClass().equals(other.getClass())) {
16235
        return getClass().getName().compareTo(other.getClass().getName());
16236
      }
16237
 
16238
      int lastComparison = 0;
16239
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16240
 
16241
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16242
      if (lastComparison != 0) {
16243
        return lastComparison;
16244
      }
16245
      if (isSetProviderId()) {
16246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16247
        if (lastComparison != 0) {
16248
          return lastComparison;
16249
        }
16250
      }
16251
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16252
      if (lastComparison != 0) {
16253
        return lastComparison;
16254
      }
16255
      if (isSetCod()) {
16256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16257
        if (lastComparison != 0) {
16258
          return lastComparison;
16259
        }
16260
      }
16261
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16262
      if (lastComparison != 0) {
16263
        return lastComparison;
16264
      }
16265
      if (isSetAwbs()) {
16266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16267
        if (lastComparison != 0) {
16268
          return lastComparison;
16269
        }
16270
      }
13146 manish.sha 16271
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16272
      if (lastComparison != 0) {
16273
        return lastComparison;
16274
      }
16275
      if (isSetAwbUsedFor()) {
16276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16277
        if (lastComparison != 0) {
16278
          return lastComparison;
16279
        }
16280
      }
7567 rajveer 16281
      return 0;
16282
    }
16283
 
16284
    public _Fields fieldForId(int fieldId) {
16285
      return _Fields.findByThriftId(fieldId);
16286
    }
16287
 
16288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16289
      org.apache.thrift.protocol.TField field;
16290
      iprot.readStructBegin();
16291
      while (true)
16292
      {
16293
        field = iprot.readFieldBegin();
16294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16295
          break;
16296
        }
16297
        switch (field.id) {
16298
          case 1: // PROVIDER_ID
16299
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16300
              this.providerId = iprot.readI64();
16301
              setProviderIdIsSet(true);
16302
            } else { 
16303
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16304
            }
16305
            break;
16306
          case 2: // COD
16307
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16308
              this.cod = iprot.readBool();
16309
              setCodIsSet(true);
16310
            } else { 
16311
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16312
            }
16313
            break;
16314
          case 3: // AWBS
16315
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16316
              {
7792 anupam.sin 16317
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16318
                this.awbs = new ArrayList<String>(_list24.size);
16319
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16320
                {
7792 anupam.sin 16321
                  String _elem26; // required
16322
                  _elem26 = iprot.readString();
16323
                  this.awbs.add(_elem26);
7567 rajveer 16324
                }
16325
                iprot.readListEnd();
16326
              }
16327
            } else { 
16328
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16329
            }
16330
            break;
13146 manish.sha 16331
          case 4: // AWB_USED_FOR
16332
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16333
              this.awbUsedFor = iprot.readI64();
16334
              setAwbUsedForIsSet(true);
16335
            } else { 
16336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16337
            }
16338
            break;
7567 rajveer 16339
          default:
16340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16341
        }
16342
        iprot.readFieldEnd();
16343
      }
16344
      iprot.readStructEnd();
16345
      validate();
16346
    }
16347
 
16348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16349
      validate();
16350
 
16351
      oprot.writeStructBegin(STRUCT_DESC);
16352
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16353
      oprot.writeI64(this.providerId);
16354
      oprot.writeFieldEnd();
16355
      oprot.writeFieldBegin(COD_FIELD_DESC);
16356
      oprot.writeBool(this.cod);
16357
      oprot.writeFieldEnd();
16358
      if (this.awbs != null) {
16359
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16360
        {
16361
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16362
          for (String _iter27 : this.awbs)
7567 rajveer 16363
          {
7792 anupam.sin 16364
            oprot.writeString(_iter27);
7567 rajveer 16365
          }
16366
          oprot.writeListEnd();
16367
        }
16368
        oprot.writeFieldEnd();
16369
      }
13146 manish.sha 16370
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16371
      oprot.writeI64(this.awbUsedFor);
16372
      oprot.writeFieldEnd();
7567 rajveer 16373
      oprot.writeFieldStop();
16374
      oprot.writeStructEnd();
16375
    }
16376
 
16377
    @Override
16378
    public String toString() {
16379
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16380
      boolean first = true;
16381
 
16382
      sb.append("providerId:");
16383
      sb.append(this.providerId);
16384
      first = false;
16385
      if (!first) sb.append(", ");
16386
      sb.append("cod:");
16387
      sb.append(this.cod);
16388
      first = false;
16389
      if (!first) sb.append(", ");
16390
      sb.append("awbs:");
16391
      if (this.awbs == null) {
16392
        sb.append("null");
16393
      } else {
16394
        sb.append(this.awbs);
16395
      }
16396
      first = false;
13146 manish.sha 16397
      if (!first) sb.append(", ");
16398
      sb.append("awbUsedFor:");
16399
      sb.append(this.awbUsedFor);
16400
      first = false;
7567 rajveer 16401
      sb.append(")");
16402
      return sb.toString();
16403
    }
16404
 
16405
    public void validate() throws org.apache.thrift.TException {
16406
      // check for required fields
16407
    }
16408
 
16409
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16410
      try {
16411
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16412
      } catch (org.apache.thrift.TException te) {
16413
        throw new java.io.IOException(te);
16414
      }
16415
    }
16416
 
16417
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16418
      try {
16419
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16420
        __isset_bit_vector = new BitSet(1);
16421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16422
      } catch (org.apache.thrift.TException te) {
16423
        throw new java.io.IOException(te);
16424
      }
16425
    }
16426
 
16427
  }
16428
 
16429
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16431
 
16432
    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);
16433
 
16434
    private boolean success; // required
16435
 
16436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16438
      SUCCESS((short)0, "success");
16439
 
16440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16441
 
16442
      static {
16443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16444
          byName.put(field.getFieldName(), field);
16445
        }
16446
      }
16447
 
16448
      /**
16449
       * Find the _Fields constant that matches fieldId, or null if its not found.
16450
       */
16451
      public static _Fields findByThriftId(int fieldId) {
16452
        switch(fieldId) {
16453
          case 0: // SUCCESS
16454
            return SUCCESS;
16455
          default:
16456
            return null;
16457
        }
16458
      }
16459
 
16460
      /**
16461
       * Find the _Fields constant that matches fieldId, throwing an exception
16462
       * if it is not found.
16463
       */
16464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16465
        _Fields fields = findByThriftId(fieldId);
16466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16467
        return fields;
16468
      }
16469
 
16470
      /**
16471
       * Find the _Fields constant that matches name, or null if its not found.
16472
       */
16473
      public static _Fields findByName(String name) {
16474
        return byName.get(name);
16475
      }
16476
 
16477
      private final short _thriftId;
16478
      private final String _fieldName;
16479
 
16480
      _Fields(short thriftId, String fieldName) {
16481
        _thriftId = thriftId;
16482
        _fieldName = fieldName;
16483
      }
16484
 
16485
      public short getThriftFieldId() {
16486
        return _thriftId;
16487
      }
16488
 
16489
      public String getFieldName() {
16490
        return _fieldName;
16491
      }
16492
    }
16493
 
16494
    // isset id assignments
16495
    private static final int __SUCCESS_ISSET_ID = 0;
16496
    private BitSet __isset_bit_vector = new BitSet(1);
16497
 
16498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16499
    static {
16500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16501
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16505
    }
16506
 
16507
    public addNewAwbs_result() {
16508
    }
16509
 
16510
    public addNewAwbs_result(
16511
      boolean success)
16512
    {
16513
      this();
16514
      this.success = success;
16515
      setSuccessIsSet(true);
16516
    }
16517
 
16518
    /**
16519
     * Performs a deep copy on <i>other</i>.
16520
     */
16521
    public addNewAwbs_result(addNewAwbs_result other) {
16522
      __isset_bit_vector.clear();
16523
      __isset_bit_vector.or(other.__isset_bit_vector);
16524
      this.success = other.success;
16525
    }
16526
 
16527
    public addNewAwbs_result deepCopy() {
16528
      return new addNewAwbs_result(this);
16529
    }
16530
 
16531
    @Override
16532
    public void clear() {
16533
      setSuccessIsSet(false);
16534
      this.success = false;
16535
    }
16536
 
16537
    public boolean isSuccess() {
16538
      return this.success;
16539
    }
16540
 
16541
    public void setSuccess(boolean success) {
16542
      this.success = success;
16543
      setSuccessIsSet(true);
16544
    }
16545
 
16546
    public void unsetSuccess() {
16547
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16548
    }
16549
 
16550
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16551
    public boolean isSetSuccess() {
16552
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16553
    }
16554
 
16555
    public void setSuccessIsSet(boolean value) {
16556
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16557
    }
16558
 
16559
    public void setFieldValue(_Fields field, Object value) {
16560
      switch (field) {
16561
      case SUCCESS:
16562
        if (value == null) {
16563
          unsetSuccess();
16564
        } else {
16565
          setSuccess((Boolean)value);
16566
        }
16567
        break;
16568
 
16569
      }
16570
    }
16571
 
16572
    public Object getFieldValue(_Fields field) {
16573
      switch (field) {
16574
      case SUCCESS:
16575
        return Boolean.valueOf(isSuccess());
16576
 
16577
      }
16578
      throw new IllegalStateException();
16579
    }
16580
 
16581
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16582
    public boolean isSet(_Fields field) {
16583
      if (field == null) {
16584
        throw new IllegalArgumentException();
16585
      }
16586
 
16587
      switch (field) {
16588
      case SUCCESS:
16589
        return isSetSuccess();
16590
      }
16591
      throw new IllegalStateException();
16592
    }
16593
 
16594
    @Override
16595
    public boolean equals(Object that) {
16596
      if (that == null)
16597
        return false;
16598
      if (that instanceof addNewAwbs_result)
16599
        return this.equals((addNewAwbs_result)that);
16600
      return false;
16601
    }
16602
 
16603
    public boolean equals(addNewAwbs_result that) {
16604
      if (that == null)
16605
        return false;
16606
 
16607
      boolean this_present_success = true;
16608
      boolean that_present_success = true;
16609
      if (this_present_success || that_present_success) {
16610
        if (!(this_present_success && that_present_success))
16611
          return false;
16612
        if (this.success != that.success)
16613
          return false;
16614
      }
16615
 
16616
      return true;
16617
    }
16618
 
16619
    @Override
16620
    public int hashCode() {
16621
      return 0;
16622
    }
16623
 
16624
    public int compareTo(addNewAwbs_result other) {
16625
      if (!getClass().equals(other.getClass())) {
16626
        return getClass().getName().compareTo(other.getClass().getName());
16627
      }
16628
 
16629
      int lastComparison = 0;
16630
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16631
 
16632
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16633
      if (lastComparison != 0) {
16634
        return lastComparison;
16635
      }
16636
      if (isSetSuccess()) {
16637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16638
        if (lastComparison != 0) {
16639
          return lastComparison;
16640
        }
16641
      }
16642
      return 0;
16643
    }
16644
 
16645
    public _Fields fieldForId(int fieldId) {
16646
      return _Fields.findByThriftId(fieldId);
16647
    }
16648
 
16649
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16650
      org.apache.thrift.protocol.TField field;
16651
      iprot.readStructBegin();
16652
      while (true)
16653
      {
16654
        field = iprot.readFieldBegin();
16655
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16656
          break;
16657
        }
16658
        switch (field.id) {
16659
          case 0: // SUCCESS
16660
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16661
              this.success = iprot.readBool();
16662
              setSuccessIsSet(true);
16663
            } else { 
16664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16665
            }
16666
            break;
16667
          default:
16668
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16669
        }
16670
        iprot.readFieldEnd();
16671
      }
16672
      iprot.readStructEnd();
16673
      validate();
16674
    }
16675
 
16676
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16677
      oprot.writeStructBegin(STRUCT_DESC);
16678
 
16679
      if (this.isSetSuccess()) {
16680
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16681
        oprot.writeBool(this.success);
16682
        oprot.writeFieldEnd();
16683
      }
16684
      oprot.writeFieldStop();
16685
      oprot.writeStructEnd();
16686
    }
16687
 
16688
    @Override
16689
    public String toString() {
16690
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16691
      boolean first = true;
16692
 
16693
      sb.append("success:");
16694
      sb.append(this.success);
16695
      first = false;
16696
      sb.append(")");
16697
      return sb.toString();
16698
    }
16699
 
16700
    public void validate() throws org.apache.thrift.TException {
16701
      // check for required fields
16702
    }
16703
 
16704
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16705
      try {
16706
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16707
      } catch (org.apache.thrift.TException te) {
16708
        throw new java.io.IOException(te);
16709
      }
16710
    }
16711
 
16712
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16713
      try {
16714
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16715
      } catch (org.apache.thrift.TException te) {
16716
        throw new java.io.IOException(te);
16717
      }
16718
    }
16719
 
16720
  }
16721
 
7788 manish.sha 16722
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16723
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16724
 
7788 manish.sha 16725
    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);
16726
    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 16727
    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 16728
 
7788 manish.sha 16729
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16730
    private boolean runCompleteUpdate; // required
23123 amit.gupta 16731
    private long provider; // required
7737 manish.sha 16732
 
16733
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16734
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16735
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
23123 amit.gupta 16736
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate"),
16737
      PROVIDER((short)3, "provider");
7737 manish.sha 16738
 
16739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16740
 
16741
      static {
16742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16743
          byName.put(field.getFieldName(), field);
16744
        }
16745
      }
16746
 
16747
      /**
16748
       * Find the _Fields constant that matches fieldId, or null if its not found.
16749
       */
16750
      public static _Fields findByThriftId(int fieldId) {
16751
        switch(fieldId) {
7788 manish.sha 16752
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16753
            return LOGISTICS_LOCATION_INFO_LIST;
16754
          case 2: // RUN_COMPLETE_UPDATE
16755
            return RUN_COMPLETE_UPDATE;
23123 amit.gupta 16756
          case 3: // PROVIDER
16757
            return PROVIDER;
7737 manish.sha 16758
          default:
16759
            return null;
16760
        }
16761
      }
16762
 
16763
      /**
16764
       * Find the _Fields constant that matches fieldId, throwing an exception
16765
       * if it is not found.
16766
       */
16767
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16768
        _Fields fields = findByThriftId(fieldId);
16769
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16770
        return fields;
16771
      }
16772
 
16773
      /**
16774
       * Find the _Fields constant that matches name, or null if its not found.
16775
       */
16776
      public static _Fields findByName(String name) {
16777
        return byName.get(name);
16778
      }
16779
 
16780
      private final short _thriftId;
16781
      private final String _fieldName;
16782
 
16783
      _Fields(short thriftId, String fieldName) {
16784
        _thriftId = thriftId;
16785
        _fieldName = fieldName;
16786
      }
16787
 
16788
      public short getThriftFieldId() {
16789
        return _thriftId;
16790
      }
16791
 
16792
      public String getFieldName() {
16793
        return _fieldName;
16794
      }
16795
    }
16796
 
16797
    // isset id assignments
7788 manish.sha 16798
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
23123 amit.gupta 16799
    private static final int __PROVIDER_ISSET_ID = 1;
16800
    private BitSet __isset_bit_vector = new BitSet(2);
7737 manish.sha 16801
 
16802
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16803
    static {
16804
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16805
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16806
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16807
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16808
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23123 amit.gupta 16810
      tmpMap.put(_Fields.PROVIDER, new org.apache.thrift.meta_data.FieldMetaData("provider", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7737 manish.sha 16812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16814
    }
16815
 
7788 manish.sha 16816
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16817
    }
16818
 
7788 manish.sha 16819
    public runLogisticsLocationInfoUpdate_args(
16820
      List<LogisticsLocationInfo> logisticsLocationInfoList,
23123 amit.gupta 16821
      boolean runCompleteUpdate,
16822
      long provider)
7737 manish.sha 16823
    {
16824
      this();
7788 manish.sha 16825
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16826
      this.runCompleteUpdate = runCompleteUpdate;
16827
      setRunCompleteUpdateIsSet(true);
23123 amit.gupta 16828
      this.provider = provider;
16829
      setProviderIsSet(true);
7737 manish.sha 16830
    }
16831
 
16832
    /**
16833
     * Performs a deep copy on <i>other</i>.
16834
     */
7788 manish.sha 16835
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16836
      __isset_bit_vector.clear();
16837
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16838
      if (other.isSetLogisticsLocationInfoList()) {
16839
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16840
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16841
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16842
        }
16843
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16844
      }
7788 manish.sha 16845
      this.runCompleteUpdate = other.runCompleteUpdate;
23123 amit.gupta 16846
      this.provider = other.provider;
7737 manish.sha 16847
    }
16848
 
7788 manish.sha 16849
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16850
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16851
    }
16852
 
16853
    @Override
16854
    public void clear() {
7788 manish.sha 16855
      this.logisticsLocationInfoList = null;
16856
      setRunCompleteUpdateIsSet(false);
16857
      this.runCompleteUpdate = false;
23123 amit.gupta 16858
      setProviderIsSet(false);
16859
      this.provider = 0;
7737 manish.sha 16860
    }
16861
 
7788 manish.sha 16862
    public int getLogisticsLocationInfoListSize() {
16863
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16864
    }
16865
 
7788 manish.sha 16866
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16867
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16868
    }
16869
 
7788 manish.sha 16870
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16871
      if (this.logisticsLocationInfoList == null) {
16872
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16873
      }
16874
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16875
    }
16876
 
7788 manish.sha 16877
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16878
      return this.logisticsLocationInfoList;
7737 manish.sha 16879
    }
16880
 
7788 manish.sha 16881
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16882
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16883
    }
16884
 
7788 manish.sha 16885
    public void unsetLogisticsLocationInfoList() {
16886
      this.logisticsLocationInfoList = null;
7737 manish.sha 16887
    }
16888
 
7788 manish.sha 16889
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16890
    public boolean isSetLogisticsLocationInfoList() {
16891
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16892
    }
16893
 
7788 manish.sha 16894
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16895
      if (!value) {
16896
        this.logisticsLocationInfoList = null;
16897
      }
7737 manish.sha 16898
    }
16899
 
7788 manish.sha 16900
    public boolean isRunCompleteUpdate() {
16901
      return this.runCompleteUpdate;
7737 manish.sha 16902
    }
16903
 
7788 manish.sha 16904
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16905
      this.runCompleteUpdate = runCompleteUpdate;
16906
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16907
    }
16908
 
7788 manish.sha 16909
    public void unsetRunCompleteUpdate() {
16910
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16911
    }
16912
 
16913
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16914
    public boolean isSetRunCompleteUpdate() {
16915
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16916
    }
16917
 
16918
    public void setRunCompleteUpdateIsSet(boolean value) {
16919
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16920
    }
16921
 
23123 amit.gupta 16922
    public long getProvider() {
16923
      return this.provider;
16924
    }
16925
 
16926
    public void setProvider(long provider) {
16927
      this.provider = provider;
16928
      setProviderIsSet(true);
16929
    }
16930
 
16931
    public void unsetProvider() {
16932
      __isset_bit_vector.clear(__PROVIDER_ISSET_ID);
16933
    }
16934
 
16935
    /** Returns true if field provider is set (has been assigned a value) and false otherwise */
16936
    public boolean isSetProvider() {
16937
      return __isset_bit_vector.get(__PROVIDER_ISSET_ID);
16938
    }
16939
 
16940
    public void setProviderIsSet(boolean value) {
16941
      __isset_bit_vector.set(__PROVIDER_ISSET_ID, value);
16942
    }
16943
 
7737 manish.sha 16944
    public void setFieldValue(_Fields field, Object value) {
16945
      switch (field) {
7788 manish.sha 16946
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16947
        if (value == null) {
7788 manish.sha 16948
          unsetLogisticsLocationInfoList();
7737 manish.sha 16949
        } else {
7788 manish.sha 16950
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16951
        }
16952
        break;
16953
 
7788 manish.sha 16954
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16955
        if (value == null) {
7788 manish.sha 16956
          unsetRunCompleteUpdate();
7737 manish.sha 16957
        } else {
7788 manish.sha 16958
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16959
        }
16960
        break;
16961
 
23123 amit.gupta 16962
      case PROVIDER:
16963
        if (value == null) {
16964
          unsetProvider();
16965
        } else {
16966
          setProvider((Long)value);
16967
        }
16968
        break;
16969
 
7737 manish.sha 16970
      }
16971
    }
16972
 
16973
    public Object getFieldValue(_Fields field) {
16974
      switch (field) {
7788 manish.sha 16975
      case LOGISTICS_LOCATION_INFO_LIST:
16976
        return getLogisticsLocationInfoList();
7737 manish.sha 16977
 
7788 manish.sha 16978
      case RUN_COMPLETE_UPDATE:
16979
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16980
 
23123 amit.gupta 16981
      case PROVIDER:
16982
        return Long.valueOf(getProvider());
16983
 
7737 manish.sha 16984
      }
16985
      throw new IllegalStateException();
16986
    }
16987
 
16988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16989
    public boolean isSet(_Fields field) {
16990
      if (field == null) {
16991
        throw new IllegalArgumentException();
16992
      }
16993
 
16994
      switch (field) {
7788 manish.sha 16995
      case LOGISTICS_LOCATION_INFO_LIST:
16996
        return isSetLogisticsLocationInfoList();
16997
      case RUN_COMPLETE_UPDATE:
16998
        return isSetRunCompleteUpdate();
23123 amit.gupta 16999
      case PROVIDER:
17000
        return isSetProvider();
7737 manish.sha 17001
      }
17002
      throw new IllegalStateException();
17003
    }
17004
 
17005
    @Override
17006
    public boolean equals(Object that) {
17007
      if (that == null)
17008
        return false;
7788 manish.sha 17009
      if (that instanceof runLogisticsLocationInfoUpdate_args)
17010
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 17011
      return false;
17012
    }
17013
 
7788 manish.sha 17014
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 17015
      if (that == null)
17016
        return false;
17017
 
7788 manish.sha 17018
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
17019
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
17020
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
17021
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 17022
          return false;
7788 manish.sha 17023
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 17024
          return false;
17025
      }
17026
 
7788 manish.sha 17027
      boolean this_present_runCompleteUpdate = true;
17028
      boolean that_present_runCompleteUpdate = true;
17029
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
17030
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 17031
          return false;
7788 manish.sha 17032
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 17033
          return false;
17034
      }
17035
 
23123 amit.gupta 17036
      boolean this_present_provider = true;
17037
      boolean that_present_provider = true;
17038
      if (this_present_provider || that_present_provider) {
17039
        if (!(this_present_provider && that_present_provider))
17040
          return false;
17041
        if (this.provider != that.provider)
17042
          return false;
17043
      }
17044
 
7737 manish.sha 17045
      return true;
17046
    }
17047
 
17048
    @Override
17049
    public int hashCode() {
17050
      return 0;
17051
    }
17052
 
7788 manish.sha 17053
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 17054
      if (!getClass().equals(other.getClass())) {
17055
        return getClass().getName().compareTo(other.getClass().getName());
17056
      }
17057
 
17058
      int lastComparison = 0;
7788 manish.sha 17059
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 17060
 
7788 manish.sha 17061
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 17062
      if (lastComparison != 0) {
17063
        return lastComparison;
17064
      }
7788 manish.sha 17065
      if (isSetLogisticsLocationInfoList()) {
17066
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 17067
        if (lastComparison != 0) {
17068
          return lastComparison;
17069
        }
17070
      }
7788 manish.sha 17071
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 17072
      if (lastComparison != 0) {
17073
        return lastComparison;
17074
      }
7788 manish.sha 17075
      if (isSetRunCompleteUpdate()) {
17076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 17077
        if (lastComparison != 0) {
17078
          return lastComparison;
17079
        }
17080
      }
23123 amit.gupta 17081
      lastComparison = Boolean.valueOf(isSetProvider()).compareTo(typedOther.isSetProvider());
17082
      if (lastComparison != 0) {
17083
        return lastComparison;
17084
      }
17085
      if (isSetProvider()) {
17086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.provider, typedOther.provider);
17087
        if (lastComparison != 0) {
17088
          return lastComparison;
17089
        }
17090
      }
7737 manish.sha 17091
      return 0;
17092
    }
17093
 
17094
    public _Fields fieldForId(int fieldId) {
17095
      return _Fields.findByThriftId(fieldId);
17096
    }
17097
 
17098
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17099
      org.apache.thrift.protocol.TField field;
17100
      iprot.readStructBegin();
17101
      while (true)
17102
      {
17103
        field = iprot.readFieldBegin();
17104
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17105
          break;
17106
        }
17107
        switch (field.id) {
7788 manish.sha 17108
          case 1: // LOGISTICS_LOCATION_INFO_LIST
17109
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17110
              {
7808 anupam.sin 17111
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
17112
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
17113
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 17114
                {
7808 anupam.sin 17115
                  LogisticsLocationInfo _elem30; // required
17116
                  _elem30 = new LogisticsLocationInfo();
17117
                  _elem30.read(iprot);
17118
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 17119
                }
17120
                iprot.readListEnd();
17121
              }
7737 manish.sha 17122
            } else { 
17123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17124
            }
17125
            break;
7788 manish.sha 17126
          case 2: // RUN_COMPLETE_UPDATE
17127
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17128
              this.runCompleteUpdate = iprot.readBool();
17129
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 17130
            } else { 
17131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17132
            }
17133
            break;
23123 amit.gupta 17134
          case 3: // PROVIDER
17135
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17136
              this.provider = iprot.readI64();
17137
              setProviderIsSet(true);
17138
            } else { 
17139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17140
            }
17141
            break;
7737 manish.sha 17142
          default:
17143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17144
        }
17145
        iprot.readFieldEnd();
17146
      }
17147
      iprot.readStructEnd();
17148
      validate();
17149
    }
17150
 
17151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17152
      validate();
17153
 
17154
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 17155
      if (this.logisticsLocationInfoList != null) {
17156
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
17157
        {
17158
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 17159
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 17160
          {
7808 anupam.sin 17161
            _iter31.write(oprot);
7788 manish.sha 17162
          }
17163
          oprot.writeListEnd();
17164
        }
7737 manish.sha 17165
        oprot.writeFieldEnd();
17166
      }
7788 manish.sha 17167
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
17168
      oprot.writeBool(this.runCompleteUpdate);
17169
      oprot.writeFieldEnd();
23123 amit.gupta 17170
      oprot.writeFieldBegin(PROVIDER_FIELD_DESC);
17171
      oprot.writeI64(this.provider);
17172
      oprot.writeFieldEnd();
7737 manish.sha 17173
      oprot.writeFieldStop();
17174
      oprot.writeStructEnd();
17175
    }
17176
 
17177
    @Override
17178
    public String toString() {
7788 manish.sha 17179
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 17180
      boolean first = true;
17181
 
7788 manish.sha 17182
      sb.append("logisticsLocationInfoList:");
17183
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 17184
        sb.append("null");
17185
      } else {
7788 manish.sha 17186
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 17187
      }
17188
      first = false;
7788 manish.sha 17189
      if (!first) sb.append(", ");
17190
      sb.append("runCompleteUpdate:");
17191
      sb.append(this.runCompleteUpdate);
7737 manish.sha 17192
      first = false;
23123 amit.gupta 17193
      if (!first) sb.append(", ");
17194
      sb.append("provider:");
17195
      sb.append(this.provider);
17196
      first = false;
7737 manish.sha 17197
      sb.append(")");
17198
      return sb.toString();
17199
    }
17200
 
17201
    public void validate() throws org.apache.thrift.TException {
17202
      // check for required fields
17203
    }
17204
 
17205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17206
      try {
17207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17208
      } catch (org.apache.thrift.TException te) {
17209
        throw new java.io.IOException(te);
17210
      }
17211
    }
17212
 
17213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17214
      try {
7788 manish.sha 17215
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17216
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 17217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17218
      } catch (org.apache.thrift.TException te) {
17219
        throw new java.io.IOException(te);
17220
      }
17221
    }
17222
 
17223
  }
17224
 
7788 manish.sha 17225
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
17226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 17227
 
17228
 
17229
 
17230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17232
;
17233
 
17234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17235
 
17236
      static {
17237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17238
          byName.put(field.getFieldName(), field);
17239
        }
17240
      }
17241
 
17242
      /**
17243
       * Find the _Fields constant that matches fieldId, or null if its not found.
17244
       */
17245
      public static _Fields findByThriftId(int fieldId) {
17246
        switch(fieldId) {
17247
          default:
17248
            return null;
17249
        }
17250
      }
17251
 
17252
      /**
17253
       * Find the _Fields constant that matches fieldId, throwing an exception
17254
       * if it is not found.
17255
       */
17256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17257
        _Fields fields = findByThriftId(fieldId);
17258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17259
        return fields;
17260
      }
17261
 
17262
      /**
17263
       * Find the _Fields constant that matches name, or null if its not found.
17264
       */
17265
      public static _Fields findByName(String name) {
17266
        return byName.get(name);
17267
      }
17268
 
17269
      private final short _thriftId;
17270
      private final String _fieldName;
17271
 
17272
      _Fields(short thriftId, String fieldName) {
17273
        _thriftId = thriftId;
17274
        _fieldName = fieldName;
17275
      }
17276
 
17277
      public short getThriftFieldId() {
17278
        return _thriftId;
17279
      }
17280
 
17281
      public String getFieldName() {
17282
        return _fieldName;
17283
      }
17284
    }
17285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17286
    static {
17287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17288
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17289
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17290
    }
17291
 
7788 manish.sha 17292
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17293
    }
17294
 
17295
    /**
17296
     * Performs a deep copy on <i>other</i>.
17297
     */
7788 manish.sha 17298
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17299
    }
17300
 
7788 manish.sha 17301
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17302
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17303
    }
17304
 
17305
    @Override
17306
    public void clear() {
17307
    }
17308
 
17309
    public void setFieldValue(_Fields field, Object value) {
17310
      switch (field) {
17311
      }
17312
    }
17313
 
17314
    public Object getFieldValue(_Fields field) {
17315
      switch (field) {
17316
      }
17317
      throw new IllegalStateException();
17318
    }
17319
 
17320
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17321
    public boolean isSet(_Fields field) {
17322
      if (field == null) {
17323
        throw new IllegalArgumentException();
17324
      }
17325
 
17326
      switch (field) {
17327
      }
17328
      throw new IllegalStateException();
17329
    }
17330
 
17331
    @Override
17332
    public boolean equals(Object that) {
17333
      if (that == null)
17334
        return false;
7788 manish.sha 17335
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17336
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17337
      return false;
17338
    }
17339
 
7788 manish.sha 17340
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17341
      if (that == null)
17342
        return false;
17343
 
17344
      return true;
17345
    }
17346
 
17347
    @Override
17348
    public int hashCode() {
17349
      return 0;
17350
    }
17351
 
7788 manish.sha 17352
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17353
      if (!getClass().equals(other.getClass())) {
17354
        return getClass().getName().compareTo(other.getClass().getName());
17355
      }
17356
 
17357
      int lastComparison = 0;
7788 manish.sha 17358
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17359
 
17360
      return 0;
17361
    }
17362
 
17363
    public _Fields fieldForId(int fieldId) {
17364
      return _Fields.findByThriftId(fieldId);
17365
    }
17366
 
17367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17368
      org.apache.thrift.protocol.TField field;
17369
      iprot.readStructBegin();
17370
      while (true)
17371
      {
17372
        field = iprot.readFieldBegin();
17373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17374
          break;
17375
        }
17376
        switch (field.id) {
17377
          default:
17378
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17379
        }
17380
        iprot.readFieldEnd();
17381
      }
17382
      iprot.readStructEnd();
17383
      validate();
17384
    }
17385
 
17386
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17387
      oprot.writeStructBegin(STRUCT_DESC);
17388
 
17389
      oprot.writeFieldStop();
17390
      oprot.writeStructEnd();
17391
    }
17392
 
17393
    @Override
17394
    public String toString() {
7788 manish.sha 17395
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17396
      boolean first = true;
17397
 
17398
      sb.append(")");
17399
      return sb.toString();
17400
    }
17401
 
17402
    public void validate() throws org.apache.thrift.TException {
17403
      // check for required fields
17404
    }
17405
 
17406
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17407
      try {
17408
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17409
      } catch (org.apache.thrift.TException te) {
17410
        throw new java.io.IOException(te);
17411
      }
17412
    }
17413
 
17414
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17415
      try {
17416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17417
      } catch (org.apache.thrift.TException te) {
17418
        throw new java.io.IOException(te);
17419
      }
17420
    }
17421
 
17422
  }
17423
 
7888 rajveer 17424
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17426
 
17427
    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);
17428
    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);
17429
 
17430
    private long startDate; // required
17431
    private long days; // required
17432
 
17433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17435
      START_DATE((short)1, "startDate"),
17436
      DAYS((short)2, "days");
17437
 
17438
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17439
 
17440
      static {
17441
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17442
          byName.put(field.getFieldName(), field);
17443
        }
17444
      }
17445
 
17446
      /**
17447
       * Find the _Fields constant that matches fieldId, or null if its not found.
17448
       */
17449
      public static _Fields findByThriftId(int fieldId) {
17450
        switch(fieldId) {
17451
          case 1: // START_DATE
17452
            return START_DATE;
17453
          case 2: // DAYS
17454
            return DAYS;
17455
          default:
17456
            return null;
17457
        }
17458
      }
17459
 
17460
      /**
17461
       * Find the _Fields constant that matches fieldId, throwing an exception
17462
       * if it is not found.
17463
       */
17464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17465
        _Fields fields = findByThriftId(fieldId);
17466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17467
        return fields;
17468
      }
17469
 
17470
      /**
17471
       * Find the _Fields constant that matches name, or null if its not found.
17472
       */
17473
      public static _Fields findByName(String name) {
17474
        return byName.get(name);
17475
      }
17476
 
17477
      private final short _thriftId;
17478
      private final String _fieldName;
17479
 
17480
      _Fields(short thriftId, String fieldName) {
17481
        _thriftId = thriftId;
17482
        _fieldName = fieldName;
17483
      }
17484
 
17485
      public short getThriftFieldId() {
17486
        return _thriftId;
17487
      }
17488
 
17489
      public String getFieldName() {
17490
        return _fieldName;
17491
      }
17492
    }
17493
 
17494
    // isset id assignments
17495
    private static final int __STARTDATE_ISSET_ID = 0;
17496
    private static final int __DAYS_ISSET_ID = 1;
17497
    private BitSet __isset_bit_vector = new BitSet(2);
17498
 
17499
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17500
    static {
17501
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17502
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17503
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17504
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17505
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17506
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17507
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17508
    }
17509
 
17510
    public adjustDeliveryDays_args() {
17511
    }
17512
 
17513
    public adjustDeliveryDays_args(
17514
      long startDate,
17515
      long days)
17516
    {
17517
      this();
17518
      this.startDate = startDate;
17519
      setStartDateIsSet(true);
17520
      this.days = days;
17521
      setDaysIsSet(true);
17522
    }
17523
 
17524
    /**
17525
     * Performs a deep copy on <i>other</i>.
17526
     */
17527
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17528
      __isset_bit_vector.clear();
17529
      __isset_bit_vector.or(other.__isset_bit_vector);
17530
      this.startDate = other.startDate;
17531
      this.days = other.days;
17532
    }
17533
 
17534
    public adjustDeliveryDays_args deepCopy() {
17535
      return new adjustDeliveryDays_args(this);
17536
    }
17537
 
17538
    @Override
17539
    public void clear() {
17540
      setStartDateIsSet(false);
17541
      this.startDate = 0;
17542
      setDaysIsSet(false);
17543
      this.days = 0;
17544
    }
17545
 
17546
    public long getStartDate() {
17547
      return this.startDate;
17548
    }
17549
 
17550
    public void setStartDate(long startDate) {
17551
      this.startDate = startDate;
17552
      setStartDateIsSet(true);
17553
    }
17554
 
17555
    public void unsetStartDate() {
17556
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17557
    }
17558
 
17559
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17560
    public boolean isSetStartDate() {
17561
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17562
    }
17563
 
17564
    public void setStartDateIsSet(boolean value) {
17565
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17566
    }
17567
 
17568
    public long getDays() {
17569
      return this.days;
17570
    }
17571
 
17572
    public void setDays(long days) {
17573
      this.days = days;
17574
      setDaysIsSet(true);
17575
    }
17576
 
17577
    public void unsetDays() {
17578
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17579
    }
17580
 
17581
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17582
    public boolean isSetDays() {
17583
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17584
    }
17585
 
17586
    public void setDaysIsSet(boolean value) {
17587
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17588
    }
17589
 
17590
    public void setFieldValue(_Fields field, Object value) {
17591
      switch (field) {
17592
      case START_DATE:
17593
        if (value == null) {
17594
          unsetStartDate();
17595
        } else {
17596
          setStartDate((Long)value);
17597
        }
17598
        break;
17599
 
17600
      case DAYS:
17601
        if (value == null) {
17602
          unsetDays();
17603
        } else {
17604
          setDays((Long)value);
17605
        }
17606
        break;
17607
 
17608
      }
17609
    }
17610
 
17611
    public Object getFieldValue(_Fields field) {
17612
      switch (field) {
17613
      case START_DATE:
17614
        return Long.valueOf(getStartDate());
17615
 
17616
      case DAYS:
17617
        return Long.valueOf(getDays());
17618
 
17619
      }
17620
      throw new IllegalStateException();
17621
    }
17622
 
17623
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17624
    public boolean isSet(_Fields field) {
17625
      if (field == null) {
17626
        throw new IllegalArgumentException();
17627
      }
17628
 
17629
      switch (field) {
17630
      case START_DATE:
17631
        return isSetStartDate();
17632
      case DAYS:
17633
        return isSetDays();
17634
      }
17635
      throw new IllegalStateException();
17636
    }
17637
 
17638
    @Override
17639
    public boolean equals(Object that) {
17640
      if (that == null)
17641
        return false;
17642
      if (that instanceof adjustDeliveryDays_args)
17643
        return this.equals((adjustDeliveryDays_args)that);
17644
      return false;
17645
    }
17646
 
17647
    public boolean equals(adjustDeliveryDays_args that) {
17648
      if (that == null)
17649
        return false;
17650
 
17651
      boolean this_present_startDate = true;
17652
      boolean that_present_startDate = true;
17653
      if (this_present_startDate || that_present_startDate) {
17654
        if (!(this_present_startDate && that_present_startDate))
17655
          return false;
17656
        if (this.startDate != that.startDate)
17657
          return false;
17658
      }
17659
 
17660
      boolean this_present_days = true;
17661
      boolean that_present_days = true;
17662
      if (this_present_days || that_present_days) {
17663
        if (!(this_present_days && that_present_days))
17664
          return false;
17665
        if (this.days != that.days)
17666
          return false;
17667
      }
17668
 
17669
      return true;
17670
    }
17671
 
17672
    @Override
17673
    public int hashCode() {
17674
      return 0;
17675
    }
17676
 
17677
    public int compareTo(adjustDeliveryDays_args other) {
17678
      if (!getClass().equals(other.getClass())) {
17679
        return getClass().getName().compareTo(other.getClass().getName());
17680
      }
17681
 
17682
      int lastComparison = 0;
17683
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17684
 
17685
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17686
      if (lastComparison != 0) {
17687
        return lastComparison;
17688
      }
17689
      if (isSetStartDate()) {
17690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17691
        if (lastComparison != 0) {
17692
          return lastComparison;
17693
        }
17694
      }
17695
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17696
      if (lastComparison != 0) {
17697
        return lastComparison;
17698
      }
17699
      if (isSetDays()) {
17700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17701
        if (lastComparison != 0) {
17702
          return lastComparison;
17703
        }
17704
      }
17705
      return 0;
17706
    }
17707
 
17708
    public _Fields fieldForId(int fieldId) {
17709
      return _Fields.findByThriftId(fieldId);
17710
    }
17711
 
17712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17713
      org.apache.thrift.protocol.TField field;
17714
      iprot.readStructBegin();
17715
      while (true)
17716
      {
17717
        field = iprot.readFieldBegin();
17718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17719
          break;
17720
        }
17721
        switch (field.id) {
17722
          case 1: // START_DATE
17723
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17724
              this.startDate = iprot.readI64();
17725
              setStartDateIsSet(true);
17726
            } else { 
17727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17728
            }
17729
            break;
17730
          case 2: // DAYS
17731
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17732
              this.days = iprot.readI64();
17733
              setDaysIsSet(true);
17734
            } else { 
17735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17736
            }
17737
            break;
17738
          default:
17739
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17740
        }
17741
        iprot.readFieldEnd();
17742
      }
17743
      iprot.readStructEnd();
17744
      validate();
17745
    }
17746
 
17747
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17748
      validate();
17749
 
17750
      oprot.writeStructBegin(STRUCT_DESC);
17751
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17752
      oprot.writeI64(this.startDate);
17753
      oprot.writeFieldEnd();
17754
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17755
      oprot.writeI64(this.days);
17756
      oprot.writeFieldEnd();
17757
      oprot.writeFieldStop();
17758
      oprot.writeStructEnd();
17759
    }
17760
 
17761
    @Override
17762
    public String toString() {
17763
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17764
      boolean first = true;
17765
 
17766
      sb.append("startDate:");
17767
      sb.append(this.startDate);
17768
      first = false;
17769
      if (!first) sb.append(", ");
17770
      sb.append("days:");
17771
      sb.append(this.days);
17772
      first = false;
17773
      sb.append(")");
17774
      return sb.toString();
17775
    }
17776
 
17777
    public void validate() throws org.apache.thrift.TException {
17778
      // check for required fields
17779
    }
17780
 
17781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17782
      try {
17783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17784
      } catch (org.apache.thrift.TException te) {
17785
        throw new java.io.IOException(te);
17786
      }
17787
    }
17788
 
17789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17790
      try {
17791
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17792
        __isset_bit_vector = new BitSet(1);
17793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17794
      } catch (org.apache.thrift.TException te) {
17795
        throw new java.io.IOException(te);
17796
      }
17797
    }
17798
 
17799
  }
17800
 
17801
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17803
 
17804
    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);
17805
 
17806
    private long success; // required
17807
 
17808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17810
      SUCCESS((short)0, "success");
17811
 
17812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17813
 
17814
      static {
17815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17816
          byName.put(field.getFieldName(), field);
17817
        }
17818
      }
17819
 
17820
      /**
17821
       * Find the _Fields constant that matches fieldId, or null if its not found.
17822
       */
17823
      public static _Fields findByThriftId(int fieldId) {
17824
        switch(fieldId) {
17825
          case 0: // SUCCESS
17826
            return SUCCESS;
17827
          default:
17828
            return null;
17829
        }
17830
      }
17831
 
17832
      /**
17833
       * Find the _Fields constant that matches fieldId, throwing an exception
17834
       * if it is not found.
17835
       */
17836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17837
        _Fields fields = findByThriftId(fieldId);
17838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17839
        return fields;
17840
      }
17841
 
17842
      /**
17843
       * Find the _Fields constant that matches name, or null if its not found.
17844
       */
17845
      public static _Fields findByName(String name) {
17846
        return byName.get(name);
17847
      }
17848
 
17849
      private final short _thriftId;
17850
      private final String _fieldName;
17851
 
17852
      _Fields(short thriftId, String fieldName) {
17853
        _thriftId = thriftId;
17854
        _fieldName = fieldName;
17855
      }
17856
 
17857
      public short getThriftFieldId() {
17858
        return _thriftId;
17859
      }
17860
 
17861
      public String getFieldName() {
17862
        return _fieldName;
17863
      }
17864
    }
17865
 
17866
    // isset id assignments
17867
    private static final int __SUCCESS_ISSET_ID = 0;
17868
    private BitSet __isset_bit_vector = new BitSet(1);
17869
 
17870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17871
    static {
17872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17873
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17874
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17875
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17876
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17877
    }
17878
 
17879
    public adjustDeliveryDays_result() {
17880
    }
17881
 
17882
    public adjustDeliveryDays_result(
17883
      long success)
17884
    {
17885
      this();
17886
      this.success = success;
17887
      setSuccessIsSet(true);
17888
    }
17889
 
17890
    /**
17891
     * Performs a deep copy on <i>other</i>.
17892
     */
17893
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17894
      __isset_bit_vector.clear();
17895
      __isset_bit_vector.or(other.__isset_bit_vector);
17896
      this.success = other.success;
17897
    }
17898
 
17899
    public adjustDeliveryDays_result deepCopy() {
17900
      return new adjustDeliveryDays_result(this);
17901
    }
17902
 
17903
    @Override
17904
    public void clear() {
17905
      setSuccessIsSet(false);
17906
      this.success = 0;
17907
    }
17908
 
17909
    public long getSuccess() {
17910
      return this.success;
17911
    }
17912
 
17913
    public void setSuccess(long success) {
17914
      this.success = success;
17915
      setSuccessIsSet(true);
17916
    }
17917
 
17918
    public void unsetSuccess() {
17919
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17920
    }
17921
 
17922
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17923
    public boolean isSetSuccess() {
17924
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17925
    }
17926
 
17927
    public void setSuccessIsSet(boolean value) {
17928
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17929
    }
17930
 
17931
    public void setFieldValue(_Fields field, Object value) {
17932
      switch (field) {
17933
      case SUCCESS:
17934
        if (value == null) {
17935
          unsetSuccess();
17936
        } else {
17937
          setSuccess((Long)value);
17938
        }
17939
        break;
17940
 
17941
      }
17942
    }
17943
 
17944
    public Object getFieldValue(_Fields field) {
17945
      switch (field) {
17946
      case SUCCESS:
17947
        return Long.valueOf(getSuccess());
17948
 
17949
      }
17950
      throw new IllegalStateException();
17951
    }
17952
 
17953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17954
    public boolean isSet(_Fields field) {
17955
      if (field == null) {
17956
        throw new IllegalArgumentException();
17957
      }
17958
 
17959
      switch (field) {
17960
      case SUCCESS:
17961
        return isSetSuccess();
17962
      }
17963
      throw new IllegalStateException();
17964
    }
17965
 
17966
    @Override
17967
    public boolean equals(Object that) {
17968
      if (that == null)
17969
        return false;
17970
      if (that instanceof adjustDeliveryDays_result)
17971
        return this.equals((adjustDeliveryDays_result)that);
17972
      return false;
17973
    }
17974
 
17975
    public boolean equals(adjustDeliveryDays_result that) {
17976
      if (that == null)
17977
        return false;
17978
 
17979
      boolean this_present_success = true;
17980
      boolean that_present_success = true;
17981
      if (this_present_success || that_present_success) {
17982
        if (!(this_present_success && that_present_success))
17983
          return false;
17984
        if (this.success != that.success)
17985
          return false;
17986
      }
17987
 
17988
      return true;
17989
    }
17990
 
17991
    @Override
17992
    public int hashCode() {
17993
      return 0;
17994
    }
17995
 
17996
    public int compareTo(adjustDeliveryDays_result other) {
17997
      if (!getClass().equals(other.getClass())) {
17998
        return getClass().getName().compareTo(other.getClass().getName());
17999
      }
18000
 
18001
      int lastComparison = 0;
18002
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
18003
 
18004
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18005
      if (lastComparison != 0) {
18006
        return lastComparison;
18007
      }
18008
      if (isSetSuccess()) {
18009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18010
        if (lastComparison != 0) {
18011
          return lastComparison;
18012
        }
18013
      }
18014
      return 0;
18015
    }
18016
 
18017
    public _Fields fieldForId(int fieldId) {
18018
      return _Fields.findByThriftId(fieldId);
18019
    }
18020
 
18021
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18022
      org.apache.thrift.protocol.TField field;
18023
      iprot.readStructBegin();
18024
      while (true)
18025
      {
18026
        field = iprot.readFieldBegin();
18027
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18028
          break;
18029
        }
18030
        switch (field.id) {
18031
          case 0: // SUCCESS
18032
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18033
              this.success = iprot.readI64();
18034
              setSuccessIsSet(true);
18035
            } else { 
18036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18037
            }
18038
            break;
18039
          default:
18040
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18041
        }
18042
        iprot.readFieldEnd();
18043
      }
18044
      iprot.readStructEnd();
18045
      validate();
18046
    }
18047
 
18048
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18049
      oprot.writeStructBegin(STRUCT_DESC);
18050
 
18051
      if (this.isSetSuccess()) {
18052
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18053
        oprot.writeI64(this.success);
18054
        oprot.writeFieldEnd();
18055
      }
18056
      oprot.writeFieldStop();
18057
      oprot.writeStructEnd();
18058
    }
18059
 
18060
    @Override
18061
    public String toString() {
18062
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
18063
      boolean first = true;
18064
 
18065
      sb.append("success:");
18066
      sb.append(this.success);
18067
      first = false;
18068
      sb.append(")");
18069
      return sb.toString();
18070
    }
18071
 
18072
    public void validate() throws org.apache.thrift.TException {
18073
      // check for required fields
18074
    }
18075
 
18076
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18077
      try {
18078
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18079
      } catch (org.apache.thrift.TException te) {
18080
        throw new java.io.IOException(te);
18081
      }
18082
    }
18083
 
18084
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18085
      try {
18086
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18087
      } catch (org.apache.thrift.TException te) {
18088
        throw new java.io.IOException(te);
18089
      }
18090
    }
18091
 
18092
  }
18093
 
12895 manish.sha 18094
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
18095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
18096
 
18097
    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);
18098
    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);
18099
 
18100
    private String pincode; // required
18101
    private long whLocation; // required
18102
 
18103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18105
      PINCODE((short)1, "pincode"),
18106
      WH_LOCATION((short)2, "whLocation");
18107
 
18108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18109
 
18110
      static {
18111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18112
          byName.put(field.getFieldName(), field);
18113
        }
18114
      }
18115
 
18116
      /**
18117
       * Find the _Fields constant that matches fieldId, or null if its not found.
18118
       */
18119
      public static _Fields findByThriftId(int fieldId) {
18120
        switch(fieldId) {
18121
          case 1: // PINCODE
18122
            return PINCODE;
18123
          case 2: // WH_LOCATION
18124
            return WH_LOCATION;
18125
          default:
18126
            return null;
18127
        }
18128
      }
18129
 
18130
      /**
18131
       * Find the _Fields constant that matches fieldId, throwing an exception
18132
       * if it is not found.
18133
       */
18134
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18135
        _Fields fields = findByThriftId(fieldId);
18136
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18137
        return fields;
18138
      }
18139
 
18140
      /**
18141
       * Find the _Fields constant that matches name, or null if its not found.
18142
       */
18143
      public static _Fields findByName(String name) {
18144
        return byName.get(name);
18145
      }
18146
 
18147
      private final short _thriftId;
18148
      private final String _fieldName;
18149
 
18150
      _Fields(short thriftId, String fieldName) {
18151
        _thriftId = thriftId;
18152
        _fieldName = fieldName;
18153
      }
18154
 
18155
      public short getThriftFieldId() {
18156
        return _thriftId;
18157
      }
18158
 
18159
      public String getFieldName() {
18160
        return _fieldName;
18161
      }
18162
    }
18163
 
18164
    // isset id assignments
18165
    private static final int __WHLOCATION_ISSET_ID = 0;
18166
    private BitSet __isset_bit_vector = new BitSet(1);
18167
 
18168
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18169
    static {
18170
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18171
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18172
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18173
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
18177
    }
18178
 
18179
    public getFirstDeliveryEstimateForWhLocation_args() {
18180
    }
18181
 
18182
    public getFirstDeliveryEstimateForWhLocation_args(
18183
      String pincode,
18184
      long whLocation)
18185
    {
18186
      this();
18187
      this.pincode = pincode;
18188
      this.whLocation = whLocation;
18189
      setWhLocationIsSet(true);
18190
    }
18191
 
18192
    /**
18193
     * Performs a deep copy on <i>other</i>.
18194
     */
18195
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
18196
      __isset_bit_vector.clear();
18197
      __isset_bit_vector.or(other.__isset_bit_vector);
18198
      if (other.isSetPincode()) {
18199
        this.pincode = other.pincode;
18200
      }
18201
      this.whLocation = other.whLocation;
18202
    }
18203
 
18204
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
18205
      return new getFirstDeliveryEstimateForWhLocation_args(this);
18206
    }
18207
 
18208
    @Override
18209
    public void clear() {
18210
      this.pincode = null;
18211
      setWhLocationIsSet(false);
18212
      this.whLocation = 0;
18213
    }
18214
 
18215
    public String getPincode() {
18216
      return this.pincode;
18217
    }
18218
 
18219
    public void setPincode(String pincode) {
18220
      this.pincode = pincode;
18221
    }
18222
 
18223
    public void unsetPincode() {
18224
      this.pincode = null;
18225
    }
18226
 
18227
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
18228
    public boolean isSetPincode() {
18229
      return this.pincode != null;
18230
    }
18231
 
18232
    public void setPincodeIsSet(boolean value) {
18233
      if (!value) {
18234
        this.pincode = null;
18235
      }
18236
    }
18237
 
18238
    public long getWhLocation() {
18239
      return this.whLocation;
18240
    }
18241
 
18242
    public void setWhLocation(long whLocation) {
18243
      this.whLocation = whLocation;
18244
      setWhLocationIsSet(true);
18245
    }
18246
 
18247
    public void unsetWhLocation() {
18248
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18249
    }
18250
 
18251
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18252
    public boolean isSetWhLocation() {
18253
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18254
    }
18255
 
18256
    public void setWhLocationIsSet(boolean value) {
18257
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18258
    }
18259
 
18260
    public void setFieldValue(_Fields field, Object value) {
18261
      switch (field) {
18262
      case PINCODE:
18263
        if (value == null) {
18264
          unsetPincode();
18265
        } else {
18266
          setPincode((String)value);
18267
        }
18268
        break;
18269
 
18270
      case WH_LOCATION:
18271
        if (value == null) {
18272
          unsetWhLocation();
18273
        } else {
18274
          setWhLocation((Long)value);
18275
        }
18276
        break;
18277
 
18278
      }
18279
    }
18280
 
18281
    public Object getFieldValue(_Fields field) {
18282
      switch (field) {
18283
      case PINCODE:
18284
        return getPincode();
18285
 
18286
      case WH_LOCATION:
18287
        return Long.valueOf(getWhLocation());
18288
 
18289
      }
18290
      throw new IllegalStateException();
18291
    }
18292
 
18293
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18294
    public boolean isSet(_Fields field) {
18295
      if (field == null) {
18296
        throw new IllegalArgumentException();
18297
      }
18298
 
18299
      switch (field) {
18300
      case PINCODE:
18301
        return isSetPincode();
18302
      case WH_LOCATION:
18303
        return isSetWhLocation();
18304
      }
18305
      throw new IllegalStateException();
18306
    }
18307
 
18308
    @Override
18309
    public boolean equals(Object that) {
18310
      if (that == null)
18311
        return false;
18312
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18313
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18314
      return false;
18315
    }
18316
 
18317
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18318
      if (that == null)
18319
        return false;
18320
 
18321
      boolean this_present_pincode = true && this.isSetPincode();
18322
      boolean that_present_pincode = true && that.isSetPincode();
18323
      if (this_present_pincode || that_present_pincode) {
18324
        if (!(this_present_pincode && that_present_pincode))
18325
          return false;
18326
        if (!this.pincode.equals(that.pincode))
18327
          return false;
18328
      }
18329
 
18330
      boolean this_present_whLocation = true;
18331
      boolean that_present_whLocation = true;
18332
      if (this_present_whLocation || that_present_whLocation) {
18333
        if (!(this_present_whLocation && that_present_whLocation))
18334
          return false;
18335
        if (this.whLocation != that.whLocation)
18336
          return false;
18337
      }
18338
 
18339
      return true;
18340
    }
18341
 
18342
    @Override
18343
    public int hashCode() {
18344
      return 0;
18345
    }
18346
 
18347
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18348
      if (!getClass().equals(other.getClass())) {
18349
        return getClass().getName().compareTo(other.getClass().getName());
18350
      }
18351
 
18352
      int lastComparison = 0;
18353
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18354
 
18355
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18356
      if (lastComparison != 0) {
18357
        return lastComparison;
18358
      }
18359
      if (isSetPincode()) {
18360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18361
        if (lastComparison != 0) {
18362
          return lastComparison;
18363
        }
18364
      }
18365
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18366
      if (lastComparison != 0) {
18367
        return lastComparison;
18368
      }
18369
      if (isSetWhLocation()) {
18370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18371
        if (lastComparison != 0) {
18372
          return lastComparison;
18373
        }
18374
      }
18375
      return 0;
18376
    }
18377
 
18378
    public _Fields fieldForId(int fieldId) {
18379
      return _Fields.findByThriftId(fieldId);
18380
    }
18381
 
18382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18383
      org.apache.thrift.protocol.TField field;
18384
      iprot.readStructBegin();
18385
      while (true)
18386
      {
18387
        field = iprot.readFieldBegin();
18388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18389
          break;
18390
        }
18391
        switch (field.id) {
18392
          case 1: // PINCODE
18393
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18394
              this.pincode = iprot.readString();
18395
            } else { 
18396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18397
            }
18398
            break;
18399
          case 2: // WH_LOCATION
18400
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18401
              this.whLocation = iprot.readI64();
18402
              setWhLocationIsSet(true);
18403
            } else { 
18404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18405
            }
18406
            break;
18407
          default:
18408
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18409
        }
18410
        iprot.readFieldEnd();
18411
      }
18412
      iprot.readStructEnd();
18413
      validate();
18414
    }
18415
 
18416
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18417
      validate();
18418
 
18419
      oprot.writeStructBegin(STRUCT_DESC);
18420
      if (this.pincode != null) {
18421
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18422
        oprot.writeString(this.pincode);
18423
        oprot.writeFieldEnd();
18424
      }
18425
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18426
      oprot.writeI64(this.whLocation);
18427
      oprot.writeFieldEnd();
18428
      oprot.writeFieldStop();
18429
      oprot.writeStructEnd();
18430
    }
18431
 
18432
    @Override
18433
    public String toString() {
18434
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18435
      boolean first = true;
18436
 
18437
      sb.append("pincode:");
18438
      if (this.pincode == null) {
18439
        sb.append("null");
18440
      } else {
18441
        sb.append(this.pincode);
18442
      }
18443
      first = false;
18444
      if (!first) sb.append(", ");
18445
      sb.append("whLocation:");
18446
      sb.append(this.whLocation);
18447
      first = false;
18448
      sb.append(")");
18449
      return sb.toString();
18450
    }
18451
 
18452
    public void validate() throws org.apache.thrift.TException {
18453
      // check for required fields
18454
    }
18455
 
18456
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18457
      try {
18458
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18459
      } catch (org.apache.thrift.TException te) {
18460
        throw new java.io.IOException(te);
18461
      }
18462
    }
18463
 
18464
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18465
      try {
18466
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18467
        __isset_bit_vector = new BitSet(1);
18468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18469
      } catch (org.apache.thrift.TException te) {
18470
        throw new java.io.IOException(te);
18471
      }
18472
    }
18473
 
18474
  }
18475
 
18476
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18477
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18478
 
18479
    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);
18480
 
18481
    private long success; // required
18482
 
18483
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18484
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18485
      SUCCESS((short)0, "success");
18486
 
18487
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18488
 
18489
      static {
18490
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18491
          byName.put(field.getFieldName(), field);
18492
        }
18493
      }
18494
 
18495
      /**
18496
       * Find the _Fields constant that matches fieldId, or null if its not found.
18497
       */
18498
      public static _Fields findByThriftId(int fieldId) {
18499
        switch(fieldId) {
18500
          case 0: // SUCCESS
18501
            return SUCCESS;
18502
          default:
18503
            return null;
18504
        }
18505
      }
18506
 
18507
      /**
18508
       * Find the _Fields constant that matches fieldId, throwing an exception
18509
       * if it is not found.
18510
       */
18511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18512
        _Fields fields = findByThriftId(fieldId);
18513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18514
        return fields;
18515
      }
18516
 
18517
      /**
18518
       * Find the _Fields constant that matches name, or null if its not found.
18519
       */
18520
      public static _Fields findByName(String name) {
18521
        return byName.get(name);
18522
      }
18523
 
18524
      private final short _thriftId;
18525
      private final String _fieldName;
18526
 
18527
      _Fields(short thriftId, String fieldName) {
18528
        _thriftId = thriftId;
18529
        _fieldName = fieldName;
18530
      }
18531
 
18532
      public short getThriftFieldId() {
18533
        return _thriftId;
18534
      }
18535
 
18536
      public String getFieldName() {
18537
        return _fieldName;
18538
      }
18539
    }
18540
 
18541
    // isset id assignments
18542
    private static final int __SUCCESS_ISSET_ID = 0;
18543
    private BitSet __isset_bit_vector = new BitSet(1);
18544
 
18545
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18546
    static {
18547
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18548
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18552
    }
18553
 
18554
    public getFirstDeliveryEstimateForWhLocation_result() {
18555
    }
18556
 
18557
    public getFirstDeliveryEstimateForWhLocation_result(
18558
      long success)
18559
    {
18560
      this();
18561
      this.success = success;
18562
      setSuccessIsSet(true);
18563
    }
18564
 
18565
    /**
18566
     * Performs a deep copy on <i>other</i>.
18567
     */
18568
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18569
      __isset_bit_vector.clear();
18570
      __isset_bit_vector.or(other.__isset_bit_vector);
18571
      this.success = other.success;
18572
    }
18573
 
18574
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18575
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18576
    }
18577
 
18578
    @Override
18579
    public void clear() {
18580
      setSuccessIsSet(false);
18581
      this.success = 0;
18582
    }
18583
 
18584
    public long getSuccess() {
18585
      return this.success;
18586
    }
18587
 
18588
    public void setSuccess(long success) {
18589
      this.success = success;
18590
      setSuccessIsSet(true);
18591
    }
18592
 
18593
    public void unsetSuccess() {
18594
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18595
    }
18596
 
18597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18598
    public boolean isSetSuccess() {
18599
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18600
    }
18601
 
18602
    public void setSuccessIsSet(boolean value) {
18603
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18604
    }
18605
 
18606
    public void setFieldValue(_Fields field, Object value) {
18607
      switch (field) {
18608
      case SUCCESS:
18609
        if (value == null) {
18610
          unsetSuccess();
18611
        } else {
18612
          setSuccess((Long)value);
18613
        }
18614
        break;
18615
 
18616
      }
18617
    }
18618
 
18619
    public Object getFieldValue(_Fields field) {
18620
      switch (field) {
18621
      case SUCCESS:
18622
        return Long.valueOf(getSuccess());
18623
 
18624
      }
18625
      throw new IllegalStateException();
18626
    }
18627
 
18628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18629
    public boolean isSet(_Fields field) {
18630
      if (field == null) {
18631
        throw new IllegalArgumentException();
18632
      }
18633
 
18634
      switch (field) {
18635
      case SUCCESS:
18636
        return isSetSuccess();
18637
      }
18638
      throw new IllegalStateException();
18639
    }
18640
 
18641
    @Override
18642
    public boolean equals(Object that) {
18643
      if (that == null)
18644
        return false;
18645
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18646
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18647
      return false;
18648
    }
18649
 
18650
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18651
      if (that == null)
18652
        return false;
18653
 
18654
      boolean this_present_success = true;
18655
      boolean that_present_success = true;
18656
      if (this_present_success || that_present_success) {
18657
        if (!(this_present_success && that_present_success))
18658
          return false;
18659
        if (this.success != that.success)
18660
          return false;
18661
      }
18662
 
18663
      return true;
18664
    }
18665
 
18666
    @Override
18667
    public int hashCode() {
18668
      return 0;
18669
    }
18670
 
18671
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18672
      if (!getClass().equals(other.getClass())) {
18673
        return getClass().getName().compareTo(other.getClass().getName());
18674
      }
18675
 
18676
      int lastComparison = 0;
18677
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18678
 
18679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18680
      if (lastComparison != 0) {
18681
        return lastComparison;
18682
      }
18683
      if (isSetSuccess()) {
18684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18685
        if (lastComparison != 0) {
18686
          return lastComparison;
18687
        }
18688
      }
18689
      return 0;
18690
    }
18691
 
18692
    public _Fields fieldForId(int fieldId) {
18693
      return _Fields.findByThriftId(fieldId);
18694
    }
18695
 
18696
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18697
      org.apache.thrift.protocol.TField field;
18698
      iprot.readStructBegin();
18699
      while (true)
18700
      {
18701
        field = iprot.readFieldBegin();
18702
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18703
          break;
18704
        }
18705
        switch (field.id) {
18706
          case 0: // SUCCESS
18707
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18708
              this.success = iprot.readI64();
18709
              setSuccessIsSet(true);
18710
            } else { 
18711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18712
            }
18713
            break;
18714
          default:
18715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18716
        }
18717
        iprot.readFieldEnd();
18718
      }
18719
      iprot.readStructEnd();
18720
      validate();
18721
    }
18722
 
18723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18724
      oprot.writeStructBegin(STRUCT_DESC);
18725
 
18726
      if (this.isSetSuccess()) {
18727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18728
        oprot.writeI64(this.success);
18729
        oprot.writeFieldEnd();
18730
      }
18731
      oprot.writeFieldStop();
18732
      oprot.writeStructEnd();
18733
    }
18734
 
18735
    @Override
18736
    public String toString() {
18737
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18738
      boolean first = true;
18739
 
18740
      sb.append("success:");
18741
      sb.append(this.success);
18742
      first = false;
18743
      sb.append(")");
18744
      return sb.toString();
18745
    }
18746
 
18747
    public void validate() throws org.apache.thrift.TException {
18748
      // check for required fields
18749
    }
18750
 
18751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18752
      try {
18753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18754
      } catch (org.apache.thrift.TException te) {
18755
        throw new java.io.IOException(te);
18756
      }
18757
    }
18758
 
18759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18760
      try {
18761
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18762
      } catch (org.apache.thrift.TException te) {
18763
        throw new java.io.IOException(te);
18764
      }
18765
    }
18766
 
18767
  }
18768
 
13146 manish.sha 18769
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18770
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18771
 
18772
    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);
18773
    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);
18774
    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);
18775
 
18776
    private long providerId; // required
18777
    private DeliveryType type; // required
18778
    private long orderQuantity; // required
18779
 
18780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18781
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18782
      PROVIDER_ID((short)1, "providerId"),
18783
      /**
18784
       * 
18785
       * @see DeliveryType
18786
       */
18787
      TYPE((short)2, "type"),
18788
      ORDER_QUANTITY((short)3, "orderQuantity");
18789
 
18790
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18791
 
18792
      static {
18793
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18794
          byName.put(field.getFieldName(), field);
18795
        }
18796
      }
18797
 
18798
      /**
18799
       * Find the _Fields constant that matches fieldId, or null if its not found.
18800
       */
18801
      public static _Fields findByThriftId(int fieldId) {
18802
        switch(fieldId) {
18803
          case 1: // PROVIDER_ID
18804
            return PROVIDER_ID;
18805
          case 2: // TYPE
18806
            return TYPE;
18807
          case 3: // ORDER_QUANTITY
18808
            return ORDER_QUANTITY;
18809
          default:
18810
            return null;
18811
        }
18812
      }
18813
 
18814
      /**
18815
       * Find the _Fields constant that matches fieldId, throwing an exception
18816
       * if it is not found.
18817
       */
18818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18819
        _Fields fields = findByThriftId(fieldId);
18820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18821
        return fields;
18822
      }
18823
 
18824
      /**
18825
       * Find the _Fields constant that matches name, or null if its not found.
18826
       */
18827
      public static _Fields findByName(String name) {
18828
        return byName.get(name);
18829
      }
18830
 
18831
      private final short _thriftId;
18832
      private final String _fieldName;
18833
 
18834
      _Fields(short thriftId, String fieldName) {
18835
        _thriftId = thriftId;
18836
        _fieldName = fieldName;
18837
      }
18838
 
18839
      public short getThriftFieldId() {
18840
        return _thriftId;
18841
      }
18842
 
18843
      public String getFieldName() {
18844
        return _fieldName;
18845
      }
18846
    }
18847
 
18848
    // isset id assignments
18849
    private static final int __PROVIDERID_ISSET_ID = 0;
18850
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18851
    private BitSet __isset_bit_vector = new BitSet(2);
18852
 
18853
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18854
    static {
18855
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18856
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18858
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18859
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18860
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18864
    }
18865
 
18866
    public getNewEmptyAwb_args() {
18867
    }
18868
 
18869
    public getNewEmptyAwb_args(
18870
      long providerId,
18871
      DeliveryType type,
18872
      long orderQuantity)
18873
    {
18874
      this();
18875
      this.providerId = providerId;
18876
      setProviderIdIsSet(true);
18877
      this.type = type;
18878
      this.orderQuantity = orderQuantity;
18879
      setOrderQuantityIsSet(true);
18880
    }
18881
 
18882
    /**
18883
     * Performs a deep copy on <i>other</i>.
18884
     */
18885
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18886
      __isset_bit_vector.clear();
18887
      __isset_bit_vector.or(other.__isset_bit_vector);
18888
      this.providerId = other.providerId;
18889
      if (other.isSetType()) {
18890
        this.type = other.type;
18891
      }
18892
      this.orderQuantity = other.orderQuantity;
18893
    }
18894
 
18895
    public getNewEmptyAwb_args deepCopy() {
18896
      return new getNewEmptyAwb_args(this);
18897
    }
18898
 
18899
    @Override
18900
    public void clear() {
18901
      setProviderIdIsSet(false);
18902
      this.providerId = 0;
18903
      this.type = null;
18904
      setOrderQuantityIsSet(false);
18905
      this.orderQuantity = 0;
18906
    }
18907
 
18908
    public long getProviderId() {
18909
      return this.providerId;
18910
    }
18911
 
18912
    public void setProviderId(long providerId) {
18913
      this.providerId = providerId;
18914
      setProviderIdIsSet(true);
18915
    }
18916
 
18917
    public void unsetProviderId() {
18918
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18919
    }
18920
 
18921
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18922
    public boolean isSetProviderId() {
18923
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18924
    }
18925
 
18926
    public void setProviderIdIsSet(boolean value) {
18927
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18928
    }
18929
 
18930
    /**
18931
     * 
18932
     * @see DeliveryType
18933
     */
18934
    public DeliveryType getType() {
18935
      return this.type;
18936
    }
18937
 
18938
    /**
18939
     * 
18940
     * @see DeliveryType
18941
     */
18942
    public void setType(DeliveryType type) {
18943
      this.type = type;
18944
    }
18945
 
18946
    public void unsetType() {
18947
      this.type = null;
18948
    }
18949
 
18950
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18951
    public boolean isSetType() {
18952
      return this.type != null;
18953
    }
18954
 
18955
    public void setTypeIsSet(boolean value) {
18956
      if (!value) {
18957
        this.type = null;
18958
      }
18959
    }
18960
 
18961
    public long getOrderQuantity() {
18962
      return this.orderQuantity;
18963
    }
18964
 
18965
    public void setOrderQuantity(long orderQuantity) {
18966
      this.orderQuantity = orderQuantity;
18967
      setOrderQuantityIsSet(true);
18968
    }
18969
 
18970
    public void unsetOrderQuantity() {
18971
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18972
    }
18973
 
18974
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18975
    public boolean isSetOrderQuantity() {
18976
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18977
    }
18978
 
18979
    public void setOrderQuantityIsSet(boolean value) {
18980
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18981
    }
18982
 
18983
    public void setFieldValue(_Fields field, Object value) {
18984
      switch (field) {
18985
      case PROVIDER_ID:
18986
        if (value == null) {
18987
          unsetProviderId();
18988
        } else {
18989
          setProviderId((Long)value);
18990
        }
18991
        break;
18992
 
18993
      case TYPE:
18994
        if (value == null) {
18995
          unsetType();
18996
        } else {
18997
          setType((DeliveryType)value);
18998
        }
18999
        break;
19000
 
19001
      case ORDER_QUANTITY:
19002
        if (value == null) {
19003
          unsetOrderQuantity();
19004
        } else {
19005
          setOrderQuantity((Long)value);
19006
        }
19007
        break;
19008
 
19009
      }
19010
    }
19011
 
19012
    public Object getFieldValue(_Fields field) {
19013
      switch (field) {
19014
      case PROVIDER_ID:
19015
        return Long.valueOf(getProviderId());
19016
 
19017
      case TYPE:
19018
        return getType();
19019
 
19020
      case ORDER_QUANTITY:
19021
        return Long.valueOf(getOrderQuantity());
19022
 
19023
      }
19024
      throw new IllegalStateException();
19025
    }
19026
 
19027
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19028
    public boolean isSet(_Fields field) {
19029
      if (field == null) {
19030
        throw new IllegalArgumentException();
19031
      }
19032
 
19033
      switch (field) {
19034
      case PROVIDER_ID:
19035
        return isSetProviderId();
19036
      case TYPE:
19037
        return isSetType();
19038
      case ORDER_QUANTITY:
19039
        return isSetOrderQuantity();
19040
      }
19041
      throw new IllegalStateException();
19042
    }
19043
 
19044
    @Override
19045
    public boolean equals(Object that) {
19046
      if (that == null)
19047
        return false;
19048
      if (that instanceof getNewEmptyAwb_args)
19049
        return this.equals((getNewEmptyAwb_args)that);
19050
      return false;
19051
    }
19052
 
19053
    public boolean equals(getNewEmptyAwb_args that) {
19054
      if (that == null)
19055
        return false;
19056
 
19057
      boolean this_present_providerId = true;
19058
      boolean that_present_providerId = true;
19059
      if (this_present_providerId || that_present_providerId) {
19060
        if (!(this_present_providerId && that_present_providerId))
19061
          return false;
19062
        if (this.providerId != that.providerId)
19063
          return false;
19064
      }
19065
 
19066
      boolean this_present_type = true && this.isSetType();
19067
      boolean that_present_type = true && that.isSetType();
19068
      if (this_present_type || that_present_type) {
19069
        if (!(this_present_type && that_present_type))
19070
          return false;
19071
        if (!this.type.equals(that.type))
19072
          return false;
19073
      }
19074
 
19075
      boolean this_present_orderQuantity = true;
19076
      boolean that_present_orderQuantity = true;
19077
      if (this_present_orderQuantity || that_present_orderQuantity) {
19078
        if (!(this_present_orderQuantity && that_present_orderQuantity))
19079
          return false;
19080
        if (this.orderQuantity != that.orderQuantity)
19081
          return false;
19082
      }
19083
 
19084
      return true;
19085
    }
19086
 
19087
    @Override
19088
    public int hashCode() {
19089
      return 0;
19090
    }
19091
 
19092
    public int compareTo(getNewEmptyAwb_args other) {
19093
      if (!getClass().equals(other.getClass())) {
19094
        return getClass().getName().compareTo(other.getClass().getName());
19095
      }
19096
 
19097
      int lastComparison = 0;
19098
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
19099
 
19100
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19101
      if (lastComparison != 0) {
19102
        return lastComparison;
19103
      }
19104
      if (isSetProviderId()) {
19105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19106
        if (lastComparison != 0) {
19107
          return lastComparison;
19108
        }
19109
      }
19110
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
19111
      if (lastComparison != 0) {
19112
        return lastComparison;
19113
      }
19114
      if (isSetType()) {
19115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
19116
        if (lastComparison != 0) {
19117
          return lastComparison;
19118
        }
19119
      }
19120
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
19121
      if (lastComparison != 0) {
19122
        return lastComparison;
19123
      }
19124
      if (isSetOrderQuantity()) {
19125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
19126
        if (lastComparison != 0) {
19127
          return lastComparison;
19128
        }
19129
      }
19130
      return 0;
19131
    }
19132
 
19133
    public _Fields fieldForId(int fieldId) {
19134
      return _Fields.findByThriftId(fieldId);
19135
    }
19136
 
19137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19138
      org.apache.thrift.protocol.TField field;
19139
      iprot.readStructBegin();
19140
      while (true)
19141
      {
19142
        field = iprot.readFieldBegin();
19143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19144
          break;
19145
        }
19146
        switch (field.id) {
19147
          case 1: // PROVIDER_ID
19148
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19149
              this.providerId = iprot.readI64();
19150
              setProviderIdIsSet(true);
19151
            } else { 
19152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19153
            }
19154
            break;
19155
          case 2: // TYPE
19156
            if (field.type == org.apache.thrift.protocol.TType.I32) {
19157
              this.type = DeliveryType.findByValue(iprot.readI32());
19158
            } else { 
19159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19160
            }
19161
            break;
19162
          case 3: // ORDER_QUANTITY
19163
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19164
              this.orderQuantity = iprot.readI64();
19165
              setOrderQuantityIsSet(true);
19166
            } else { 
19167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19168
            }
19169
            break;
19170
          default:
19171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19172
        }
19173
        iprot.readFieldEnd();
19174
      }
19175
      iprot.readStructEnd();
19176
      validate();
19177
    }
19178
 
19179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19180
      validate();
19181
 
19182
      oprot.writeStructBegin(STRUCT_DESC);
19183
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19184
      oprot.writeI64(this.providerId);
19185
      oprot.writeFieldEnd();
19186
      if (this.type != null) {
19187
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
19188
        oprot.writeI32(this.type.getValue());
19189
        oprot.writeFieldEnd();
19190
      }
19191
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
19192
      oprot.writeI64(this.orderQuantity);
19193
      oprot.writeFieldEnd();
19194
      oprot.writeFieldStop();
19195
      oprot.writeStructEnd();
19196
    }
19197
 
19198
    @Override
19199
    public String toString() {
19200
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
19201
      boolean first = true;
19202
 
19203
      sb.append("providerId:");
19204
      sb.append(this.providerId);
19205
      first = false;
19206
      if (!first) sb.append(", ");
19207
      sb.append("type:");
19208
      if (this.type == null) {
19209
        sb.append("null");
19210
      } else {
19211
        sb.append(this.type);
19212
      }
19213
      first = false;
19214
      if (!first) sb.append(", ");
19215
      sb.append("orderQuantity:");
19216
      sb.append(this.orderQuantity);
19217
      first = false;
19218
      sb.append(")");
19219
      return sb.toString();
19220
    }
19221
 
19222
    public void validate() throws org.apache.thrift.TException {
19223
      // check for required fields
19224
    }
19225
 
19226
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19227
      try {
19228
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19229
      } catch (org.apache.thrift.TException te) {
19230
        throw new java.io.IOException(te);
19231
      }
19232
    }
19233
 
19234
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19235
      try {
19236
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19237
        __isset_bit_vector = new BitSet(1);
19238
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19239
      } catch (org.apache.thrift.TException te) {
19240
        throw new java.io.IOException(te);
19241
      }
19242
    }
19243
 
19244
  }
19245
 
19246
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19247
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19248
 
19249
    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);
19250
    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);
19251
 
19252
    private String success; // required
19253
    private LogisticsServiceException se; // required
19254
 
19255
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19256
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19257
      SUCCESS((short)0, "success"),
19258
      SE((short)1, "se");
19259
 
19260
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19261
 
19262
      static {
19263
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19264
          byName.put(field.getFieldName(), field);
19265
        }
19266
      }
19267
 
19268
      /**
19269
       * Find the _Fields constant that matches fieldId, or null if its not found.
19270
       */
19271
      public static _Fields findByThriftId(int fieldId) {
19272
        switch(fieldId) {
19273
          case 0: // SUCCESS
19274
            return SUCCESS;
19275
          case 1: // SE
19276
            return SE;
19277
          default:
19278
            return null;
19279
        }
19280
      }
19281
 
19282
      /**
19283
       * Find the _Fields constant that matches fieldId, throwing an exception
19284
       * if it is not found.
19285
       */
19286
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19287
        _Fields fields = findByThriftId(fieldId);
19288
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19289
        return fields;
19290
      }
19291
 
19292
      /**
19293
       * Find the _Fields constant that matches name, or null if its not found.
19294
       */
19295
      public static _Fields findByName(String name) {
19296
        return byName.get(name);
19297
      }
19298
 
19299
      private final short _thriftId;
19300
      private final String _fieldName;
19301
 
19302
      _Fields(short thriftId, String fieldName) {
19303
        _thriftId = thriftId;
19304
        _fieldName = fieldName;
19305
      }
19306
 
19307
      public short getThriftFieldId() {
19308
        return _thriftId;
19309
      }
19310
 
19311
      public String getFieldName() {
19312
        return _fieldName;
19313
      }
19314
    }
19315
 
19316
    // isset id assignments
19317
 
19318
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19319
    static {
19320
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19321
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19323
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19324
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19325
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19326
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19327
    }
19328
 
19329
    public getNewEmptyAwb_result() {
19330
    }
19331
 
19332
    public getNewEmptyAwb_result(
19333
      String success,
19334
      LogisticsServiceException se)
19335
    {
19336
      this();
19337
      this.success = success;
19338
      this.se = se;
19339
    }
19340
 
19341
    /**
19342
     * Performs a deep copy on <i>other</i>.
19343
     */
19344
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19345
      if (other.isSetSuccess()) {
19346
        this.success = other.success;
19347
      }
19348
      if (other.isSetSe()) {
19349
        this.se = new LogisticsServiceException(other.se);
19350
      }
19351
    }
19352
 
19353
    public getNewEmptyAwb_result deepCopy() {
19354
      return new getNewEmptyAwb_result(this);
19355
    }
19356
 
19357
    @Override
19358
    public void clear() {
19359
      this.success = null;
19360
      this.se = null;
19361
    }
19362
 
19363
    public String getSuccess() {
19364
      return this.success;
19365
    }
19366
 
19367
    public void setSuccess(String success) {
19368
      this.success = success;
19369
    }
19370
 
19371
    public void unsetSuccess() {
19372
      this.success = null;
19373
    }
19374
 
19375
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19376
    public boolean isSetSuccess() {
19377
      return this.success != null;
19378
    }
19379
 
19380
    public void setSuccessIsSet(boolean value) {
19381
      if (!value) {
19382
        this.success = null;
19383
      }
19384
    }
19385
 
19386
    public LogisticsServiceException getSe() {
19387
      return this.se;
19388
    }
19389
 
19390
    public void setSe(LogisticsServiceException se) {
19391
      this.se = se;
19392
    }
19393
 
19394
    public void unsetSe() {
19395
      this.se = null;
19396
    }
19397
 
19398
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19399
    public boolean isSetSe() {
19400
      return this.se != null;
19401
    }
19402
 
19403
    public void setSeIsSet(boolean value) {
19404
      if (!value) {
19405
        this.se = null;
19406
      }
19407
    }
19408
 
19409
    public void setFieldValue(_Fields field, Object value) {
19410
      switch (field) {
19411
      case SUCCESS:
19412
        if (value == null) {
19413
          unsetSuccess();
19414
        } else {
19415
          setSuccess((String)value);
19416
        }
19417
        break;
19418
 
19419
      case SE:
19420
        if (value == null) {
19421
          unsetSe();
19422
        } else {
19423
          setSe((LogisticsServiceException)value);
19424
        }
19425
        break;
19426
 
19427
      }
19428
    }
19429
 
19430
    public Object getFieldValue(_Fields field) {
19431
      switch (field) {
19432
      case SUCCESS:
19433
        return getSuccess();
19434
 
19435
      case SE:
19436
        return getSe();
19437
 
19438
      }
19439
      throw new IllegalStateException();
19440
    }
19441
 
19442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19443
    public boolean isSet(_Fields field) {
19444
      if (field == null) {
19445
        throw new IllegalArgumentException();
19446
      }
19447
 
19448
      switch (field) {
19449
      case SUCCESS:
19450
        return isSetSuccess();
19451
      case SE:
19452
        return isSetSe();
19453
      }
19454
      throw new IllegalStateException();
19455
    }
19456
 
19457
    @Override
19458
    public boolean equals(Object that) {
19459
      if (that == null)
19460
        return false;
19461
      if (that instanceof getNewEmptyAwb_result)
19462
        return this.equals((getNewEmptyAwb_result)that);
19463
      return false;
19464
    }
19465
 
19466
    public boolean equals(getNewEmptyAwb_result that) {
19467
      if (that == null)
19468
        return false;
19469
 
19470
      boolean this_present_success = true && this.isSetSuccess();
19471
      boolean that_present_success = true && that.isSetSuccess();
19472
      if (this_present_success || that_present_success) {
19473
        if (!(this_present_success && that_present_success))
19474
          return false;
19475
        if (!this.success.equals(that.success))
19476
          return false;
19477
      }
19478
 
19479
      boolean this_present_se = true && this.isSetSe();
19480
      boolean that_present_se = true && that.isSetSe();
19481
      if (this_present_se || that_present_se) {
19482
        if (!(this_present_se && that_present_se))
19483
          return false;
19484
        if (!this.se.equals(that.se))
19485
          return false;
19486
      }
19487
 
19488
      return true;
19489
    }
19490
 
19491
    @Override
19492
    public int hashCode() {
19493
      return 0;
19494
    }
19495
 
19496
    public int compareTo(getNewEmptyAwb_result other) {
19497
      if (!getClass().equals(other.getClass())) {
19498
        return getClass().getName().compareTo(other.getClass().getName());
19499
      }
19500
 
19501
      int lastComparison = 0;
19502
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19503
 
19504
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19505
      if (lastComparison != 0) {
19506
        return lastComparison;
19507
      }
19508
      if (isSetSuccess()) {
19509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19510
        if (lastComparison != 0) {
19511
          return lastComparison;
19512
        }
19513
      }
19514
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19515
      if (lastComparison != 0) {
19516
        return lastComparison;
19517
      }
19518
      if (isSetSe()) {
19519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19520
        if (lastComparison != 0) {
19521
          return lastComparison;
19522
        }
19523
      }
19524
      return 0;
19525
    }
19526
 
19527
    public _Fields fieldForId(int fieldId) {
19528
      return _Fields.findByThriftId(fieldId);
19529
    }
19530
 
19531
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19532
      org.apache.thrift.protocol.TField field;
19533
      iprot.readStructBegin();
19534
      while (true)
19535
      {
19536
        field = iprot.readFieldBegin();
19537
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19538
          break;
19539
        }
19540
        switch (field.id) {
19541
          case 0: // SUCCESS
19542
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19543
              this.success = iprot.readString();
19544
            } else { 
19545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19546
            }
19547
            break;
19548
          case 1: // SE
19549
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19550
              this.se = new LogisticsServiceException();
19551
              this.se.read(iprot);
19552
            } else { 
19553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19554
            }
19555
            break;
19556
          default:
19557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19558
        }
19559
        iprot.readFieldEnd();
19560
      }
19561
      iprot.readStructEnd();
19562
      validate();
19563
    }
19564
 
19565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19566
      oprot.writeStructBegin(STRUCT_DESC);
19567
 
19568
      if (this.isSetSuccess()) {
19569
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19570
        oprot.writeString(this.success);
19571
        oprot.writeFieldEnd();
19572
      } else if (this.isSetSe()) {
19573
        oprot.writeFieldBegin(SE_FIELD_DESC);
19574
        this.se.write(oprot);
19575
        oprot.writeFieldEnd();
19576
      }
19577
      oprot.writeFieldStop();
19578
      oprot.writeStructEnd();
19579
    }
19580
 
19581
    @Override
19582
    public String toString() {
19583
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19584
      boolean first = true;
19585
 
19586
      sb.append("success:");
19587
      if (this.success == null) {
19588
        sb.append("null");
19589
      } else {
19590
        sb.append(this.success);
19591
      }
19592
      first = false;
19593
      if (!first) sb.append(", ");
19594
      sb.append("se:");
19595
      if (this.se == null) {
19596
        sb.append("null");
19597
      } else {
19598
        sb.append(this.se);
19599
      }
19600
      first = false;
19601
      sb.append(")");
19602
      return sb.toString();
19603
    }
19604
 
19605
    public void validate() throws org.apache.thrift.TException {
19606
      // check for required fields
19607
    }
19608
 
19609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19610
      try {
19611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19612
      } catch (org.apache.thrift.TException te) {
19613
        throw new java.io.IOException(te);
19614
      }
19615
    }
19616
 
19617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19618
      try {
19619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19620
      } catch (org.apache.thrift.TException te) {
19621
        throw new java.io.IOException(te);
19622
      }
19623
    }
19624
 
19625
  }
19626
 
19627
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19629
 
19630
    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);
19631
    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);
19632
 
19633
    private long providerId; // required
19634
    private String pincode; // required
19635
 
19636
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19637
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19638
      PROVIDER_ID((short)1, "providerId"),
19639
      PINCODE((short)2, "pincode");
19640
 
19641
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19642
 
19643
      static {
19644
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19645
          byName.put(field.getFieldName(), field);
19646
        }
19647
      }
19648
 
19649
      /**
19650
       * Find the _Fields constant that matches fieldId, or null if its not found.
19651
       */
19652
      public static _Fields findByThriftId(int fieldId) {
19653
        switch(fieldId) {
19654
          case 1: // PROVIDER_ID
19655
            return PROVIDER_ID;
19656
          case 2: // PINCODE
19657
            return PINCODE;
19658
          default:
19659
            return null;
19660
        }
19661
      }
19662
 
19663
      /**
19664
       * Find the _Fields constant that matches fieldId, throwing an exception
19665
       * if it is not found.
19666
       */
19667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19668
        _Fields fields = findByThriftId(fieldId);
19669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19670
        return fields;
19671
      }
19672
 
19673
      /**
19674
       * Find the _Fields constant that matches name, or null if its not found.
19675
       */
19676
      public static _Fields findByName(String name) {
19677
        return byName.get(name);
19678
      }
19679
 
19680
      private final short _thriftId;
19681
      private final String _fieldName;
19682
 
19683
      _Fields(short thriftId, String fieldName) {
19684
        _thriftId = thriftId;
19685
        _fieldName = fieldName;
19686
      }
19687
 
19688
      public short getThriftFieldId() {
19689
        return _thriftId;
19690
      }
19691
 
19692
      public String getFieldName() {
19693
        return _fieldName;
19694
      }
19695
    }
19696
 
19697
    // isset id assignments
19698
    private static final int __PROVIDERID_ISSET_ID = 0;
19699
    private BitSet __isset_bit_vector = new BitSet(1);
19700
 
19701
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19702
    static {
19703
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19704
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19706
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19710
    }
19711
 
19712
    public getProviderLimitDetailsForPincode_args() {
19713
    }
19714
 
19715
    public getProviderLimitDetailsForPincode_args(
19716
      long providerId,
19717
      String pincode)
19718
    {
19719
      this();
19720
      this.providerId = providerId;
19721
      setProviderIdIsSet(true);
19722
      this.pincode = pincode;
19723
    }
19724
 
19725
    /**
19726
     * Performs a deep copy on <i>other</i>.
19727
     */
19728
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19729
      __isset_bit_vector.clear();
19730
      __isset_bit_vector.or(other.__isset_bit_vector);
19731
      this.providerId = other.providerId;
19732
      if (other.isSetPincode()) {
19733
        this.pincode = other.pincode;
19734
      }
19735
    }
19736
 
19737
    public getProviderLimitDetailsForPincode_args deepCopy() {
19738
      return new getProviderLimitDetailsForPincode_args(this);
19739
    }
19740
 
19741
    @Override
19742
    public void clear() {
19743
      setProviderIdIsSet(false);
19744
      this.providerId = 0;
19745
      this.pincode = null;
19746
    }
19747
 
19748
    public long getProviderId() {
19749
      return this.providerId;
19750
    }
19751
 
19752
    public void setProviderId(long providerId) {
19753
      this.providerId = providerId;
19754
      setProviderIdIsSet(true);
19755
    }
19756
 
19757
    public void unsetProviderId() {
19758
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19759
    }
19760
 
19761
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19762
    public boolean isSetProviderId() {
19763
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19764
    }
19765
 
19766
    public void setProviderIdIsSet(boolean value) {
19767
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19768
    }
19769
 
19770
    public String getPincode() {
19771
      return this.pincode;
19772
    }
19773
 
19774
    public void setPincode(String pincode) {
19775
      this.pincode = pincode;
19776
    }
19777
 
19778
    public void unsetPincode() {
19779
      this.pincode = null;
19780
    }
19781
 
19782
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19783
    public boolean isSetPincode() {
19784
      return this.pincode != null;
19785
    }
19786
 
19787
    public void setPincodeIsSet(boolean value) {
19788
      if (!value) {
19789
        this.pincode = null;
19790
      }
19791
    }
19792
 
19793
    public void setFieldValue(_Fields field, Object value) {
19794
      switch (field) {
19795
      case PROVIDER_ID:
19796
        if (value == null) {
19797
          unsetProviderId();
19798
        } else {
19799
          setProviderId((Long)value);
19800
        }
19801
        break;
19802
 
19803
      case PINCODE:
19804
        if (value == null) {
19805
          unsetPincode();
19806
        } else {
19807
          setPincode((String)value);
19808
        }
19809
        break;
19810
 
19811
      }
19812
    }
19813
 
19814
    public Object getFieldValue(_Fields field) {
19815
      switch (field) {
19816
      case PROVIDER_ID:
19817
        return Long.valueOf(getProviderId());
19818
 
19819
      case PINCODE:
19820
        return getPincode();
19821
 
19822
      }
19823
      throw new IllegalStateException();
19824
    }
19825
 
19826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19827
    public boolean isSet(_Fields field) {
19828
      if (field == null) {
19829
        throw new IllegalArgumentException();
19830
      }
19831
 
19832
      switch (field) {
19833
      case PROVIDER_ID:
19834
        return isSetProviderId();
19835
      case PINCODE:
19836
        return isSetPincode();
19837
      }
19838
      throw new IllegalStateException();
19839
    }
19840
 
19841
    @Override
19842
    public boolean equals(Object that) {
19843
      if (that == null)
19844
        return false;
19845
      if (that instanceof getProviderLimitDetailsForPincode_args)
19846
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19847
      return false;
19848
    }
19849
 
19850
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19851
      if (that == null)
19852
        return false;
19853
 
19854
      boolean this_present_providerId = true;
19855
      boolean that_present_providerId = true;
19856
      if (this_present_providerId || that_present_providerId) {
19857
        if (!(this_present_providerId && that_present_providerId))
19858
          return false;
19859
        if (this.providerId != that.providerId)
19860
          return false;
19861
      }
19862
 
19863
      boolean this_present_pincode = true && this.isSetPincode();
19864
      boolean that_present_pincode = true && that.isSetPincode();
19865
      if (this_present_pincode || that_present_pincode) {
19866
        if (!(this_present_pincode && that_present_pincode))
19867
          return false;
19868
        if (!this.pincode.equals(that.pincode))
19869
          return false;
19870
      }
19871
 
19872
      return true;
19873
    }
19874
 
19875
    @Override
19876
    public int hashCode() {
19877
      return 0;
19878
    }
19879
 
19880
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19881
      if (!getClass().equals(other.getClass())) {
19882
        return getClass().getName().compareTo(other.getClass().getName());
19883
      }
19884
 
19885
      int lastComparison = 0;
19886
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19887
 
19888
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19889
      if (lastComparison != 0) {
19890
        return lastComparison;
19891
      }
19892
      if (isSetProviderId()) {
19893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19894
        if (lastComparison != 0) {
19895
          return lastComparison;
19896
        }
19897
      }
19898
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19899
      if (lastComparison != 0) {
19900
        return lastComparison;
19901
      }
19902
      if (isSetPincode()) {
19903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19904
        if (lastComparison != 0) {
19905
          return lastComparison;
19906
        }
19907
      }
19908
      return 0;
19909
    }
19910
 
19911
    public _Fields fieldForId(int fieldId) {
19912
      return _Fields.findByThriftId(fieldId);
19913
    }
19914
 
19915
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19916
      org.apache.thrift.protocol.TField field;
19917
      iprot.readStructBegin();
19918
      while (true)
19919
      {
19920
        field = iprot.readFieldBegin();
19921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19922
          break;
19923
        }
19924
        switch (field.id) {
19925
          case 1: // PROVIDER_ID
19926
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19927
              this.providerId = iprot.readI64();
19928
              setProviderIdIsSet(true);
19929
            } else { 
19930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19931
            }
19932
            break;
19933
          case 2: // PINCODE
19934
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19935
              this.pincode = iprot.readString();
19936
            } else { 
19937
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19938
            }
19939
            break;
19940
          default:
19941
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19942
        }
19943
        iprot.readFieldEnd();
19944
      }
19945
      iprot.readStructEnd();
19946
      validate();
19947
    }
19948
 
19949
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19950
      validate();
19951
 
19952
      oprot.writeStructBegin(STRUCT_DESC);
19953
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19954
      oprot.writeI64(this.providerId);
19955
      oprot.writeFieldEnd();
19956
      if (this.pincode != null) {
19957
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19958
        oprot.writeString(this.pincode);
19959
        oprot.writeFieldEnd();
19960
      }
19961
      oprot.writeFieldStop();
19962
      oprot.writeStructEnd();
19963
    }
19964
 
19965
    @Override
19966
    public String toString() {
19967
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19968
      boolean first = true;
19969
 
19970
      sb.append("providerId:");
19971
      sb.append(this.providerId);
19972
      first = false;
19973
      if (!first) sb.append(", ");
19974
      sb.append("pincode:");
19975
      if (this.pincode == null) {
19976
        sb.append("null");
19977
      } else {
19978
        sb.append(this.pincode);
19979
      }
19980
      first = false;
19981
      sb.append(")");
19982
      return sb.toString();
19983
    }
19984
 
19985
    public void validate() throws org.apache.thrift.TException {
19986
      // check for required fields
19987
    }
19988
 
19989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19990
      try {
19991
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19992
      } catch (org.apache.thrift.TException te) {
19993
        throw new java.io.IOException(te);
19994
      }
19995
    }
19996
 
19997
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19998
      try {
19999
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20000
        __isset_bit_vector = new BitSet(1);
20001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20002
      } catch (org.apache.thrift.TException te) {
20003
        throw new java.io.IOException(te);
20004
      }
20005
    }
20006
 
20007
  }
20008
 
20009
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
20010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
20011
 
20012
    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);
20013
    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);
20014
 
20015
    private Map<String,String> success; // required
20016
    private LogisticsServiceException se; // required
20017
 
20018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20020
      SUCCESS((short)0, "success"),
20021
      SE((short)1, "se");
20022
 
20023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20024
 
20025
      static {
20026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20027
          byName.put(field.getFieldName(), field);
20028
        }
20029
      }
20030
 
20031
      /**
20032
       * Find the _Fields constant that matches fieldId, or null if its not found.
20033
       */
20034
      public static _Fields findByThriftId(int fieldId) {
20035
        switch(fieldId) {
20036
          case 0: // SUCCESS
20037
            return SUCCESS;
20038
          case 1: // SE
20039
            return SE;
20040
          default:
20041
            return null;
20042
        }
20043
      }
20044
 
20045
      /**
20046
       * Find the _Fields constant that matches fieldId, throwing an exception
20047
       * if it is not found.
20048
       */
20049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20050
        _Fields fields = findByThriftId(fieldId);
20051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20052
        return fields;
20053
      }
20054
 
20055
      /**
20056
       * Find the _Fields constant that matches name, or null if its not found.
20057
       */
20058
      public static _Fields findByName(String name) {
20059
        return byName.get(name);
20060
      }
20061
 
20062
      private final short _thriftId;
20063
      private final String _fieldName;
20064
 
20065
      _Fields(short thriftId, String fieldName) {
20066
        _thriftId = thriftId;
20067
        _fieldName = fieldName;
20068
      }
20069
 
20070
      public short getThriftFieldId() {
20071
        return _thriftId;
20072
      }
20073
 
20074
      public String getFieldName() {
20075
        return _fieldName;
20076
      }
20077
    }
20078
 
20079
    // isset id assignments
20080
 
20081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20082
    static {
20083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20084
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20085
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20086
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
20087
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20088
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
20092
    }
20093
 
20094
    public getProviderLimitDetailsForPincode_result() {
20095
    }
20096
 
20097
    public getProviderLimitDetailsForPincode_result(
20098
      Map<String,String> success,
20099
      LogisticsServiceException se)
20100
    {
20101
      this();
20102
      this.success = success;
20103
      this.se = se;
20104
    }
20105
 
20106
    /**
20107
     * Performs a deep copy on <i>other</i>.
20108
     */
20109
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
20110
      if (other.isSetSuccess()) {
20111
        Map<String,String> __this__success = new HashMap<String,String>();
20112
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
20113
 
20114
          String other_element_key = other_element.getKey();
20115
          String other_element_value = other_element.getValue();
20116
 
20117
          String __this__success_copy_key = other_element_key;
20118
 
20119
          String __this__success_copy_value = other_element_value;
20120
 
20121
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20122
        }
20123
        this.success = __this__success;
20124
      }
20125
      if (other.isSetSe()) {
20126
        this.se = new LogisticsServiceException(other.se);
20127
      }
20128
    }
20129
 
20130
    public getProviderLimitDetailsForPincode_result deepCopy() {
20131
      return new getProviderLimitDetailsForPincode_result(this);
20132
    }
20133
 
20134
    @Override
20135
    public void clear() {
20136
      this.success = null;
20137
      this.se = null;
20138
    }
20139
 
20140
    public int getSuccessSize() {
20141
      return (this.success == null) ? 0 : this.success.size();
20142
    }
20143
 
20144
    public void putToSuccess(String key, String val) {
20145
      if (this.success == null) {
20146
        this.success = new HashMap<String,String>();
20147
      }
20148
      this.success.put(key, val);
20149
    }
20150
 
20151
    public Map<String,String> getSuccess() {
20152
      return this.success;
20153
    }
20154
 
20155
    public void setSuccess(Map<String,String> success) {
20156
      this.success = success;
20157
    }
20158
 
20159
    public void unsetSuccess() {
20160
      this.success = null;
20161
    }
20162
 
20163
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20164
    public boolean isSetSuccess() {
20165
      return this.success != null;
20166
    }
20167
 
20168
    public void setSuccessIsSet(boolean value) {
20169
      if (!value) {
20170
        this.success = null;
20171
      }
20172
    }
20173
 
20174
    public LogisticsServiceException getSe() {
20175
      return this.se;
20176
    }
20177
 
20178
    public void setSe(LogisticsServiceException se) {
20179
      this.se = se;
20180
    }
20181
 
20182
    public void unsetSe() {
20183
      this.se = null;
20184
    }
20185
 
20186
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
20187
    public boolean isSetSe() {
20188
      return this.se != null;
20189
    }
20190
 
20191
    public void setSeIsSet(boolean value) {
20192
      if (!value) {
20193
        this.se = null;
20194
      }
20195
    }
20196
 
20197
    public void setFieldValue(_Fields field, Object value) {
20198
      switch (field) {
20199
      case SUCCESS:
20200
        if (value == null) {
20201
          unsetSuccess();
20202
        } else {
20203
          setSuccess((Map<String,String>)value);
20204
        }
20205
        break;
20206
 
20207
      case SE:
20208
        if (value == null) {
20209
          unsetSe();
20210
        } else {
20211
          setSe((LogisticsServiceException)value);
20212
        }
20213
        break;
20214
 
20215
      }
20216
    }
20217
 
20218
    public Object getFieldValue(_Fields field) {
20219
      switch (field) {
20220
      case SUCCESS:
20221
        return getSuccess();
20222
 
20223
      case SE:
20224
        return getSe();
20225
 
20226
      }
20227
      throw new IllegalStateException();
20228
    }
20229
 
20230
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20231
    public boolean isSet(_Fields field) {
20232
      if (field == null) {
20233
        throw new IllegalArgumentException();
20234
      }
20235
 
20236
      switch (field) {
20237
      case SUCCESS:
20238
        return isSetSuccess();
20239
      case SE:
20240
        return isSetSe();
20241
      }
20242
      throw new IllegalStateException();
20243
    }
20244
 
20245
    @Override
20246
    public boolean equals(Object that) {
20247
      if (that == null)
20248
        return false;
20249
      if (that instanceof getProviderLimitDetailsForPincode_result)
20250
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20251
      return false;
20252
    }
20253
 
20254
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20255
      if (that == null)
20256
        return false;
20257
 
20258
      boolean this_present_success = true && this.isSetSuccess();
20259
      boolean that_present_success = true && that.isSetSuccess();
20260
      if (this_present_success || that_present_success) {
20261
        if (!(this_present_success && that_present_success))
20262
          return false;
20263
        if (!this.success.equals(that.success))
20264
          return false;
20265
      }
20266
 
20267
      boolean this_present_se = true && this.isSetSe();
20268
      boolean that_present_se = true && that.isSetSe();
20269
      if (this_present_se || that_present_se) {
20270
        if (!(this_present_se && that_present_se))
20271
          return false;
20272
        if (!this.se.equals(that.se))
20273
          return false;
20274
      }
20275
 
20276
      return true;
20277
    }
20278
 
20279
    @Override
20280
    public int hashCode() {
20281
      return 0;
20282
    }
20283
 
20284
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20285
      if (!getClass().equals(other.getClass())) {
20286
        return getClass().getName().compareTo(other.getClass().getName());
20287
      }
20288
 
20289
      int lastComparison = 0;
20290
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20291
 
20292
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20293
      if (lastComparison != 0) {
20294
        return lastComparison;
20295
      }
20296
      if (isSetSuccess()) {
20297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20298
        if (lastComparison != 0) {
20299
          return lastComparison;
20300
        }
20301
      }
20302
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20303
      if (lastComparison != 0) {
20304
        return lastComparison;
20305
      }
20306
      if (isSetSe()) {
20307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20308
        if (lastComparison != 0) {
20309
          return lastComparison;
20310
        }
20311
      }
20312
      return 0;
20313
    }
20314
 
20315
    public _Fields fieldForId(int fieldId) {
20316
      return _Fields.findByThriftId(fieldId);
20317
    }
20318
 
20319
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20320
      org.apache.thrift.protocol.TField field;
20321
      iprot.readStructBegin();
20322
      while (true)
20323
      {
20324
        field = iprot.readFieldBegin();
20325
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20326
          break;
20327
        }
20328
        switch (field.id) {
20329
          case 0: // SUCCESS
20330
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20331
              {
20332
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20333
                this.success = new HashMap<String,String>(2*_map32.size);
20334
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20335
                {
20336
                  String _key34; // required
20337
                  String _val35; // required
20338
                  _key34 = iprot.readString();
20339
                  _val35 = iprot.readString();
20340
                  this.success.put(_key34, _val35);
20341
                }
20342
                iprot.readMapEnd();
20343
              }
20344
            } else { 
20345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20346
            }
20347
            break;
20348
          case 1: // SE
20349
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20350
              this.se = new LogisticsServiceException();
20351
              this.se.read(iprot);
20352
            } else { 
20353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20354
            }
20355
            break;
20356
          default:
20357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20358
        }
20359
        iprot.readFieldEnd();
20360
      }
20361
      iprot.readStructEnd();
20362
      validate();
20363
    }
20364
 
20365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20366
      oprot.writeStructBegin(STRUCT_DESC);
20367
 
20368
      if (this.isSetSuccess()) {
20369
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20370
        {
20371
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20372
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20373
          {
20374
            oprot.writeString(_iter36.getKey());
20375
            oprot.writeString(_iter36.getValue());
20376
          }
20377
          oprot.writeMapEnd();
20378
        }
20379
        oprot.writeFieldEnd();
20380
      } else if (this.isSetSe()) {
20381
        oprot.writeFieldBegin(SE_FIELD_DESC);
20382
        this.se.write(oprot);
20383
        oprot.writeFieldEnd();
20384
      }
20385
      oprot.writeFieldStop();
20386
      oprot.writeStructEnd();
20387
    }
20388
 
20389
    @Override
20390
    public String toString() {
20391
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20392
      boolean first = true;
20393
 
20394
      sb.append("success:");
20395
      if (this.success == null) {
20396
        sb.append("null");
20397
      } else {
20398
        sb.append(this.success);
20399
      }
20400
      first = false;
20401
      if (!first) sb.append(", ");
20402
      sb.append("se:");
20403
      if (this.se == null) {
20404
        sb.append("null");
20405
      } else {
20406
        sb.append(this.se);
20407
      }
20408
      first = false;
20409
      sb.append(")");
20410
      return sb.toString();
20411
    }
20412
 
20413
    public void validate() throws org.apache.thrift.TException {
20414
      // check for required fields
20415
    }
20416
 
20417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20418
      try {
20419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20420
      } catch (org.apache.thrift.TException te) {
20421
        throw new java.io.IOException(te);
20422
      }
20423
    }
20424
 
20425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20426
      try {
20427
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20428
      } catch (org.apache.thrift.TException te) {
20429
        throw new java.io.IOException(te);
20430
      }
20431
    }
20432
 
20433
  }
20434
 
19413 amit.gupta 20435
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20436
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20437
 
20438
    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);
20439
    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);
20440
 
20441
    private String destPincode; // required
20442
    private List<Long> price; // required
20443
 
20444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20446
      DEST_PINCODE((short)1, "destPincode"),
20447
      PRICE((short)2, "price");
20448
 
20449
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20450
 
20451
      static {
20452
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20453
          byName.put(field.getFieldName(), field);
20454
        }
20455
      }
20456
 
20457
      /**
20458
       * Find the _Fields constant that matches fieldId, or null if its not found.
20459
       */
20460
      public static _Fields findByThriftId(int fieldId) {
20461
        switch(fieldId) {
20462
          case 1: // DEST_PINCODE
20463
            return DEST_PINCODE;
20464
          case 2: // PRICE
20465
            return PRICE;
20466
          default:
20467
            return null;
20468
        }
20469
      }
20470
 
20471
      /**
20472
       * Find the _Fields constant that matches fieldId, throwing an exception
20473
       * if it is not found.
20474
       */
20475
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20476
        _Fields fields = findByThriftId(fieldId);
20477
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20478
        return fields;
20479
      }
20480
 
20481
      /**
20482
       * Find the _Fields constant that matches name, or null if its not found.
20483
       */
20484
      public static _Fields findByName(String name) {
20485
        return byName.get(name);
20486
      }
20487
 
20488
      private final short _thriftId;
20489
      private final String _fieldName;
20490
 
20491
      _Fields(short thriftId, String fieldName) {
20492
        _thriftId = thriftId;
20493
        _fieldName = fieldName;
20494
      }
20495
 
20496
      public short getThriftFieldId() {
20497
        return _thriftId;
20498
      }
20499
 
20500
      public String getFieldName() {
20501
        return _fieldName;
20502
      }
20503
    }
20504
 
20505
    // isset id assignments
20506
 
20507
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20508
    static {
20509
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20510
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20511
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20512
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20513
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20514
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20517
    }
20518
 
20519
    public getLocationInfoMap_args() {
20520
    }
20521
 
20522
    public getLocationInfoMap_args(
20523
      String destPincode,
20524
      List<Long> price)
20525
    {
20526
      this();
20527
      this.destPincode = destPincode;
20528
      this.price = price;
20529
    }
20530
 
20531
    /**
20532
     * Performs a deep copy on <i>other</i>.
20533
     */
20534
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20535
      if (other.isSetDestPincode()) {
20536
        this.destPincode = other.destPincode;
20537
      }
20538
      if (other.isSetPrice()) {
20539
        List<Long> __this__price = new ArrayList<Long>();
20540
        for (Long other_element : other.price) {
20541
          __this__price.add(other_element);
20542
        }
20543
        this.price = __this__price;
20544
      }
20545
    }
20546
 
20547
    public getLocationInfoMap_args deepCopy() {
20548
      return new getLocationInfoMap_args(this);
20549
    }
20550
 
20551
    @Override
20552
    public void clear() {
20553
      this.destPincode = null;
20554
      this.price = null;
20555
    }
20556
 
20557
    public String getDestPincode() {
20558
      return this.destPincode;
20559
    }
20560
 
20561
    public void setDestPincode(String destPincode) {
20562
      this.destPincode = destPincode;
20563
    }
20564
 
20565
    public void unsetDestPincode() {
20566
      this.destPincode = null;
20567
    }
20568
 
20569
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20570
    public boolean isSetDestPincode() {
20571
      return this.destPincode != null;
20572
    }
20573
 
20574
    public void setDestPincodeIsSet(boolean value) {
20575
      if (!value) {
20576
        this.destPincode = null;
20577
      }
20578
    }
20579
 
20580
    public int getPriceSize() {
20581
      return (this.price == null) ? 0 : this.price.size();
20582
    }
20583
 
20584
    public java.util.Iterator<Long> getPriceIterator() {
20585
      return (this.price == null) ? null : this.price.iterator();
20586
    }
20587
 
20588
    public void addToPrice(long elem) {
20589
      if (this.price == null) {
20590
        this.price = new ArrayList<Long>();
20591
      }
20592
      this.price.add(elem);
20593
    }
20594
 
20595
    public List<Long> getPrice() {
20596
      return this.price;
20597
    }
20598
 
20599
    public void setPrice(List<Long> price) {
20600
      this.price = price;
20601
    }
20602
 
20603
    public void unsetPrice() {
20604
      this.price = null;
20605
    }
20606
 
20607
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20608
    public boolean isSetPrice() {
20609
      return this.price != null;
20610
    }
20611
 
20612
    public void setPriceIsSet(boolean value) {
20613
      if (!value) {
20614
        this.price = null;
20615
      }
20616
    }
20617
 
20618
    public void setFieldValue(_Fields field, Object value) {
20619
      switch (field) {
20620
      case DEST_PINCODE:
20621
        if (value == null) {
20622
          unsetDestPincode();
20623
        } else {
20624
          setDestPincode((String)value);
20625
        }
20626
        break;
20627
 
20628
      case PRICE:
20629
        if (value == null) {
20630
          unsetPrice();
20631
        } else {
20632
          setPrice((List<Long>)value);
20633
        }
20634
        break;
20635
 
20636
      }
20637
    }
20638
 
20639
    public Object getFieldValue(_Fields field) {
20640
      switch (field) {
20641
      case DEST_PINCODE:
20642
        return getDestPincode();
20643
 
20644
      case PRICE:
20645
        return getPrice();
20646
 
20647
      }
20648
      throw new IllegalStateException();
20649
    }
20650
 
20651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20652
    public boolean isSet(_Fields field) {
20653
      if (field == null) {
20654
        throw new IllegalArgumentException();
20655
      }
20656
 
20657
      switch (field) {
20658
      case DEST_PINCODE:
20659
        return isSetDestPincode();
20660
      case PRICE:
20661
        return isSetPrice();
20662
      }
20663
      throw new IllegalStateException();
20664
    }
20665
 
20666
    @Override
20667
    public boolean equals(Object that) {
20668
      if (that == null)
20669
        return false;
20670
      if (that instanceof getLocationInfoMap_args)
20671
        return this.equals((getLocationInfoMap_args)that);
20672
      return false;
20673
    }
20674
 
20675
    public boolean equals(getLocationInfoMap_args that) {
20676
      if (that == null)
20677
        return false;
20678
 
20679
      boolean this_present_destPincode = true && this.isSetDestPincode();
20680
      boolean that_present_destPincode = true && that.isSetDestPincode();
20681
      if (this_present_destPincode || that_present_destPincode) {
20682
        if (!(this_present_destPincode && that_present_destPincode))
20683
          return false;
20684
        if (!this.destPincode.equals(that.destPincode))
20685
          return false;
20686
      }
20687
 
20688
      boolean this_present_price = true && this.isSetPrice();
20689
      boolean that_present_price = true && that.isSetPrice();
20690
      if (this_present_price || that_present_price) {
20691
        if (!(this_present_price && that_present_price))
20692
          return false;
20693
        if (!this.price.equals(that.price))
20694
          return false;
20695
      }
20696
 
20697
      return true;
20698
    }
20699
 
20700
    @Override
20701
    public int hashCode() {
20702
      return 0;
20703
    }
20704
 
20705
    public int compareTo(getLocationInfoMap_args other) {
20706
      if (!getClass().equals(other.getClass())) {
20707
        return getClass().getName().compareTo(other.getClass().getName());
20708
      }
20709
 
20710
      int lastComparison = 0;
20711
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20712
 
20713
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20714
      if (lastComparison != 0) {
20715
        return lastComparison;
20716
      }
20717
      if (isSetDestPincode()) {
20718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20719
        if (lastComparison != 0) {
20720
          return lastComparison;
20721
        }
20722
      }
20723
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20724
      if (lastComparison != 0) {
20725
        return lastComparison;
20726
      }
20727
      if (isSetPrice()) {
20728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20729
        if (lastComparison != 0) {
20730
          return lastComparison;
20731
        }
20732
      }
20733
      return 0;
20734
    }
20735
 
20736
    public _Fields fieldForId(int fieldId) {
20737
      return _Fields.findByThriftId(fieldId);
20738
    }
20739
 
20740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20741
      org.apache.thrift.protocol.TField field;
20742
      iprot.readStructBegin();
20743
      while (true)
20744
      {
20745
        field = iprot.readFieldBegin();
20746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20747
          break;
20748
        }
20749
        switch (field.id) {
20750
          case 1: // DEST_PINCODE
20751
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20752
              this.destPincode = iprot.readString();
20753
            } else { 
20754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20755
            }
20756
            break;
20757
          case 2: // PRICE
20758
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20759
              {
20760
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20761
                this.price = new ArrayList<Long>(_list37.size);
20762
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20763
                {
20764
                  long _elem39; // required
20765
                  _elem39 = iprot.readI64();
20766
                  this.price.add(_elem39);
20767
                }
20768
                iprot.readListEnd();
20769
              }
20770
            } else { 
20771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20772
            }
20773
            break;
20774
          default:
20775
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20776
        }
20777
        iprot.readFieldEnd();
20778
      }
20779
      iprot.readStructEnd();
20780
      validate();
20781
    }
20782
 
20783
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20784
      validate();
20785
 
20786
      oprot.writeStructBegin(STRUCT_DESC);
20787
      if (this.destPincode != null) {
20788
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20789
        oprot.writeString(this.destPincode);
20790
        oprot.writeFieldEnd();
20791
      }
20792
      if (this.price != null) {
20793
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20794
        {
20795
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20796
          for (long _iter40 : this.price)
20797
          {
20798
            oprot.writeI64(_iter40);
20799
          }
20800
          oprot.writeListEnd();
20801
        }
20802
        oprot.writeFieldEnd();
20803
      }
20804
      oprot.writeFieldStop();
20805
      oprot.writeStructEnd();
20806
    }
20807
 
20808
    @Override
20809
    public String toString() {
20810
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20811
      boolean first = true;
20812
 
20813
      sb.append("destPincode:");
20814
      if (this.destPincode == null) {
20815
        sb.append("null");
20816
      } else {
20817
        sb.append(this.destPincode);
20818
      }
20819
      first = false;
20820
      if (!first) sb.append(", ");
20821
      sb.append("price:");
20822
      if (this.price == null) {
20823
        sb.append("null");
20824
      } else {
20825
        sb.append(this.price);
20826
      }
20827
      first = false;
20828
      sb.append(")");
20829
      return sb.toString();
20830
    }
20831
 
20832
    public void validate() throws org.apache.thrift.TException {
20833
      // check for required fields
20834
    }
20835
 
20836
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20837
      try {
20838
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20839
      } catch (org.apache.thrift.TException te) {
20840
        throw new java.io.IOException(te);
20841
      }
20842
    }
20843
 
20844
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20845
      try {
20846
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20847
      } catch (org.apache.thrift.TException te) {
20848
        throw new java.io.IOException(te);
20849
      }
20850
    }
20851
 
20852
  }
20853
 
20854
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20855
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20856
 
20857
    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);
20858
 
20859
    private Map<Long,Map<Long,LocationInfo>> success; // required
20860
 
20861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20862
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20863
      SUCCESS((short)0, "success");
20864
 
20865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20866
 
20867
      static {
20868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20869
          byName.put(field.getFieldName(), field);
20870
        }
20871
      }
20872
 
20873
      /**
20874
       * Find the _Fields constant that matches fieldId, or null if its not found.
20875
       */
20876
      public static _Fields findByThriftId(int fieldId) {
20877
        switch(fieldId) {
20878
          case 0: // SUCCESS
20879
            return SUCCESS;
20880
          default:
20881
            return null;
20882
        }
20883
      }
20884
 
20885
      /**
20886
       * Find the _Fields constant that matches fieldId, throwing an exception
20887
       * if it is not found.
20888
       */
20889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20890
        _Fields fields = findByThriftId(fieldId);
20891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20892
        return fields;
20893
      }
20894
 
20895
      /**
20896
       * Find the _Fields constant that matches name, or null if its not found.
20897
       */
20898
      public static _Fields findByName(String name) {
20899
        return byName.get(name);
20900
      }
20901
 
20902
      private final short _thriftId;
20903
      private final String _fieldName;
20904
 
20905
      _Fields(short thriftId, String fieldName) {
20906
        _thriftId = thriftId;
20907
        _fieldName = fieldName;
20908
      }
20909
 
20910
      public short getThriftFieldId() {
20911
        return _thriftId;
20912
      }
20913
 
20914
      public String getFieldName() {
20915
        return _fieldName;
20916
      }
20917
    }
20918
 
20919
    // isset id assignments
20920
 
20921
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20922
    static {
20923
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20924
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20925
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20926
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20927
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20928
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20929
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20932
    }
20933
 
20934
    public getLocationInfoMap_result() {
20935
    }
20936
 
20937
    public getLocationInfoMap_result(
20938
      Map<Long,Map<Long,LocationInfo>> success)
20939
    {
20940
      this();
20941
      this.success = success;
20942
    }
20943
 
20944
    /**
20945
     * Performs a deep copy on <i>other</i>.
20946
     */
20947
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20948
      if (other.isSetSuccess()) {
20949
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20950
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20951
 
20952
          Long other_element_key = other_element.getKey();
20953
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20954
 
20955
          Long __this__success_copy_key = other_element_key;
20956
 
20957
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20958
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20959
 
20960
            Long other_element_value_element_key = other_element_value_element.getKey();
20961
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20962
 
20963
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20964
 
20965
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20966
 
20967
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20968
          }
20969
 
20970
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20971
        }
20972
        this.success = __this__success;
20973
      }
20974
    }
20975
 
20976
    public getLocationInfoMap_result deepCopy() {
20977
      return new getLocationInfoMap_result(this);
20978
    }
20979
 
20980
    @Override
20981
    public void clear() {
20982
      this.success = null;
20983
    }
20984
 
20985
    public int getSuccessSize() {
20986
      return (this.success == null) ? 0 : this.success.size();
20987
    }
20988
 
20989
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20990
      if (this.success == null) {
20991
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20992
      }
20993
      this.success.put(key, val);
20994
    }
20995
 
20996
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20997
      return this.success;
20998
    }
20999
 
21000
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
21001
      this.success = success;
21002
    }
21003
 
21004
    public void unsetSuccess() {
21005
      this.success = null;
21006
    }
21007
 
21008
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21009
    public boolean isSetSuccess() {
21010
      return this.success != null;
21011
    }
21012
 
21013
    public void setSuccessIsSet(boolean value) {
21014
      if (!value) {
21015
        this.success = null;
21016
      }
21017
    }
21018
 
21019
    public void setFieldValue(_Fields field, Object value) {
21020
      switch (field) {
21021
      case SUCCESS:
21022
        if (value == null) {
21023
          unsetSuccess();
21024
        } else {
21025
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
21026
        }
21027
        break;
21028
 
21029
      }
21030
    }
21031
 
21032
    public Object getFieldValue(_Fields field) {
21033
      switch (field) {
21034
      case SUCCESS:
21035
        return getSuccess();
21036
 
21037
      }
21038
      throw new IllegalStateException();
21039
    }
21040
 
21041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21042
    public boolean isSet(_Fields field) {
21043
      if (field == null) {
21044
        throw new IllegalArgumentException();
21045
      }
21046
 
21047
      switch (field) {
21048
      case SUCCESS:
21049
        return isSetSuccess();
21050
      }
21051
      throw new IllegalStateException();
21052
    }
21053
 
21054
    @Override
21055
    public boolean equals(Object that) {
21056
      if (that == null)
21057
        return false;
21058
      if (that instanceof getLocationInfoMap_result)
21059
        return this.equals((getLocationInfoMap_result)that);
21060
      return false;
21061
    }
21062
 
21063
    public boolean equals(getLocationInfoMap_result that) {
21064
      if (that == null)
21065
        return false;
21066
 
21067
      boolean this_present_success = true && this.isSetSuccess();
21068
      boolean that_present_success = true && that.isSetSuccess();
21069
      if (this_present_success || that_present_success) {
21070
        if (!(this_present_success && that_present_success))
21071
          return false;
21072
        if (!this.success.equals(that.success))
21073
          return false;
21074
      }
21075
 
21076
      return true;
21077
    }
21078
 
21079
    @Override
21080
    public int hashCode() {
21081
      return 0;
21082
    }
21083
 
21084
    public int compareTo(getLocationInfoMap_result other) {
21085
      if (!getClass().equals(other.getClass())) {
21086
        return getClass().getName().compareTo(other.getClass().getName());
21087
      }
21088
 
21089
      int lastComparison = 0;
21090
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
21091
 
21092
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21093
      if (lastComparison != 0) {
21094
        return lastComparison;
21095
      }
21096
      if (isSetSuccess()) {
21097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21098
        if (lastComparison != 0) {
21099
          return lastComparison;
21100
        }
21101
      }
21102
      return 0;
21103
    }
21104
 
21105
    public _Fields fieldForId(int fieldId) {
21106
      return _Fields.findByThriftId(fieldId);
21107
    }
21108
 
21109
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21110
      org.apache.thrift.protocol.TField field;
21111
      iprot.readStructBegin();
21112
      while (true)
21113
      {
21114
        field = iprot.readFieldBegin();
21115
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21116
          break;
21117
        }
21118
        switch (field.id) {
21119
          case 0: // SUCCESS
21120
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
21121
              {
21122
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
21123
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
21124
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
21125
                {
21126
                  long _key43; // required
21127
                  Map<Long,LocationInfo> _val44; // required
21128
                  _key43 = iprot.readI64();
21129
                  {
21130
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
21131
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
21132
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
21133
                    {
21134
                      long _key47; // required
21135
                      LocationInfo _val48; // required
21136
                      _key47 = iprot.readI64();
21137
                      _val48 = new LocationInfo();
21138
                      _val48.read(iprot);
21139
                      _val44.put(_key47, _val48);
21140
                    }
21141
                    iprot.readMapEnd();
21142
                  }
21143
                  this.success.put(_key43, _val44);
21144
                }
21145
                iprot.readMapEnd();
21146
              }
21147
            } else { 
21148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21149
            }
21150
            break;
21151
          default:
21152
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21153
        }
21154
        iprot.readFieldEnd();
21155
      }
21156
      iprot.readStructEnd();
21157
      validate();
21158
    }
21159
 
21160
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21161
      oprot.writeStructBegin(STRUCT_DESC);
21162
 
21163
      if (this.isSetSuccess()) {
21164
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21165
        {
21166
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
21167
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
21168
          {
21169
            oprot.writeI64(_iter49.getKey());
21170
            {
21171
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
21172
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
21173
              {
21174
                oprot.writeI64(_iter50.getKey());
21175
                _iter50.getValue().write(oprot);
21176
              }
21177
              oprot.writeMapEnd();
21178
            }
21179
          }
21180
          oprot.writeMapEnd();
21181
        }
21182
        oprot.writeFieldEnd();
21183
      }
21184
      oprot.writeFieldStop();
21185
      oprot.writeStructEnd();
21186
    }
21187
 
21188
    @Override
21189
    public String toString() {
21190
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
21191
      boolean first = true;
21192
 
21193
      sb.append("success:");
21194
      if (this.success == null) {
21195
        sb.append("null");
21196
      } else {
21197
        sb.append(this.success);
21198
      }
21199
      first = false;
21200
      sb.append(")");
21201
      return sb.toString();
21202
    }
21203
 
21204
    public void validate() throws org.apache.thrift.TException {
21205
      // check for required fields
21206
    }
21207
 
21208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21209
      try {
21210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21211
      } catch (org.apache.thrift.TException te) {
21212
        throw new java.io.IOException(te);
21213
      }
21214
    }
21215
 
21216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21217
      try {
21218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21219
      } catch (org.apache.thrift.TException te) {
21220
        throw new java.io.IOException(te);
21221
      }
21222
    }
21223
 
21224
  }
21225
 
19421 manish.sha 21226
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
21227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
21228
 
21229
    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);
21230
    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);
21231
    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);
21232
    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);
21233
    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 21234
    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 21235
 
21236
    private String pincode; // required
21237
    private double transactionAmount; // required
21238
    private boolean isCod; // required
21239
    private double weight; // required
21240
    private long billingWarehouseId; // required
19474 manish.sha 21241
    private boolean isCompleteTxn; // required
19421 manish.sha 21242
 
21243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21244
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21245
      PINCODE((short)1, "pincode"),
21246
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21247
      IS_COD((short)3, "isCod"),
21248
      WEIGHT((short)4, "weight"),
19474 manish.sha 21249
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
21250
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21251
 
21252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21253
 
21254
      static {
21255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21256
          byName.put(field.getFieldName(), field);
21257
        }
21258
      }
21259
 
21260
      /**
21261
       * Find the _Fields constant that matches fieldId, or null if its not found.
21262
       */
21263
      public static _Fields findByThriftId(int fieldId) {
21264
        switch(fieldId) {
21265
          case 1: // PINCODE
21266
            return PINCODE;
21267
          case 2: // TRANSACTION_AMOUNT
21268
            return TRANSACTION_AMOUNT;
21269
          case 3: // IS_COD
21270
            return IS_COD;
21271
          case 4: // WEIGHT
21272
            return WEIGHT;
21273
          case 5: // BILLING_WAREHOUSE_ID
21274
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21275
          case 6: // IS_COMPLETE_TXN
21276
            return IS_COMPLETE_TXN;
19421 manish.sha 21277
          default:
21278
            return null;
21279
        }
21280
      }
21281
 
21282
      /**
21283
       * Find the _Fields constant that matches fieldId, throwing an exception
21284
       * if it is not found.
21285
       */
21286
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21287
        _Fields fields = findByThriftId(fieldId);
21288
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21289
        return fields;
21290
      }
21291
 
21292
      /**
21293
       * Find the _Fields constant that matches name, or null if its not found.
21294
       */
21295
      public static _Fields findByName(String name) {
21296
        return byName.get(name);
21297
      }
21298
 
21299
      private final short _thriftId;
21300
      private final String _fieldName;
21301
 
21302
      _Fields(short thriftId, String fieldName) {
21303
        _thriftId = thriftId;
21304
        _fieldName = fieldName;
21305
      }
21306
 
21307
      public short getThriftFieldId() {
21308
        return _thriftId;
21309
      }
21310
 
21311
      public String getFieldName() {
21312
        return _fieldName;
21313
      }
21314
    }
21315
 
21316
    // isset id assignments
21317
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21318
    private static final int __ISCOD_ISSET_ID = 1;
21319
    private static final int __WEIGHT_ISSET_ID = 2;
21320
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21321
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21322
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21323
 
21324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21325
    static {
21326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21327
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21328
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21329
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21331
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21333
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21335
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21337
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21339
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21340
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21341
    }
21342
 
21343
    public getCostingAndDeliveryEstimateForPincode_args() {
21344
    }
21345
 
21346
    public getCostingAndDeliveryEstimateForPincode_args(
21347
      String pincode,
21348
      double transactionAmount,
21349
      boolean isCod,
21350
      double weight,
19474 manish.sha 21351
      long billingWarehouseId,
21352
      boolean isCompleteTxn)
19421 manish.sha 21353
    {
21354
      this();
21355
      this.pincode = pincode;
21356
      this.transactionAmount = transactionAmount;
21357
      setTransactionAmountIsSet(true);
21358
      this.isCod = isCod;
21359
      setIsCodIsSet(true);
21360
      this.weight = weight;
21361
      setWeightIsSet(true);
21362
      this.billingWarehouseId = billingWarehouseId;
21363
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21364
      this.isCompleteTxn = isCompleteTxn;
21365
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21366
    }
21367
 
21368
    /**
21369
     * Performs a deep copy on <i>other</i>.
21370
     */
21371
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21372
      __isset_bit_vector.clear();
21373
      __isset_bit_vector.or(other.__isset_bit_vector);
21374
      if (other.isSetPincode()) {
21375
        this.pincode = other.pincode;
21376
      }
21377
      this.transactionAmount = other.transactionAmount;
21378
      this.isCod = other.isCod;
21379
      this.weight = other.weight;
21380
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21381
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21382
    }
21383
 
21384
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21385
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21386
    }
21387
 
21388
    @Override
21389
    public void clear() {
21390
      this.pincode = null;
21391
      setTransactionAmountIsSet(false);
21392
      this.transactionAmount = 0.0;
21393
      setIsCodIsSet(false);
21394
      this.isCod = false;
21395
      setWeightIsSet(false);
21396
      this.weight = 0.0;
21397
      setBillingWarehouseIdIsSet(false);
21398
      this.billingWarehouseId = 0;
19474 manish.sha 21399
      setIsCompleteTxnIsSet(false);
21400
      this.isCompleteTxn = false;
19421 manish.sha 21401
    }
21402
 
21403
    public String getPincode() {
21404
      return this.pincode;
21405
    }
21406
 
21407
    public void setPincode(String pincode) {
21408
      this.pincode = pincode;
21409
    }
21410
 
21411
    public void unsetPincode() {
21412
      this.pincode = null;
21413
    }
21414
 
21415
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21416
    public boolean isSetPincode() {
21417
      return this.pincode != null;
21418
    }
21419
 
21420
    public void setPincodeIsSet(boolean value) {
21421
      if (!value) {
21422
        this.pincode = null;
21423
      }
21424
    }
21425
 
21426
    public double getTransactionAmount() {
21427
      return this.transactionAmount;
21428
    }
21429
 
21430
    public void setTransactionAmount(double transactionAmount) {
21431
      this.transactionAmount = transactionAmount;
21432
      setTransactionAmountIsSet(true);
21433
    }
21434
 
21435
    public void unsetTransactionAmount() {
21436
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21437
    }
21438
 
21439
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21440
    public boolean isSetTransactionAmount() {
21441
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21442
    }
21443
 
21444
    public void setTransactionAmountIsSet(boolean value) {
21445
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21446
    }
21447
 
21448
    public boolean isIsCod() {
21449
      return this.isCod;
21450
    }
21451
 
21452
    public void setIsCod(boolean isCod) {
21453
      this.isCod = isCod;
21454
      setIsCodIsSet(true);
21455
    }
21456
 
21457
    public void unsetIsCod() {
21458
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21459
    }
21460
 
21461
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21462
    public boolean isSetIsCod() {
21463
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21464
    }
21465
 
21466
    public void setIsCodIsSet(boolean value) {
21467
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21468
    }
21469
 
21470
    public double getWeight() {
21471
      return this.weight;
21472
    }
21473
 
21474
    public void setWeight(double weight) {
21475
      this.weight = weight;
21476
      setWeightIsSet(true);
21477
    }
21478
 
21479
    public void unsetWeight() {
21480
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21481
    }
21482
 
21483
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21484
    public boolean isSetWeight() {
21485
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21486
    }
21487
 
21488
    public void setWeightIsSet(boolean value) {
21489
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21490
    }
21491
 
21492
    public long getBillingWarehouseId() {
21493
      return this.billingWarehouseId;
21494
    }
21495
 
21496
    public void setBillingWarehouseId(long billingWarehouseId) {
21497
      this.billingWarehouseId = billingWarehouseId;
21498
      setBillingWarehouseIdIsSet(true);
21499
    }
21500
 
21501
    public void unsetBillingWarehouseId() {
21502
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21503
    }
21504
 
21505
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21506
    public boolean isSetBillingWarehouseId() {
21507
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21508
    }
21509
 
21510
    public void setBillingWarehouseIdIsSet(boolean value) {
21511
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21512
    }
21513
 
19474 manish.sha 21514
    public boolean isIsCompleteTxn() {
21515
      return this.isCompleteTxn;
21516
    }
21517
 
21518
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21519
      this.isCompleteTxn = isCompleteTxn;
21520
      setIsCompleteTxnIsSet(true);
21521
    }
21522
 
21523
    public void unsetIsCompleteTxn() {
21524
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21525
    }
21526
 
21527
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21528
    public boolean isSetIsCompleteTxn() {
21529
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21530
    }
21531
 
21532
    public void setIsCompleteTxnIsSet(boolean value) {
21533
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21534
    }
21535
 
19421 manish.sha 21536
    public void setFieldValue(_Fields field, Object value) {
21537
      switch (field) {
21538
      case PINCODE:
21539
        if (value == null) {
21540
          unsetPincode();
21541
        } else {
21542
          setPincode((String)value);
21543
        }
21544
        break;
21545
 
21546
      case TRANSACTION_AMOUNT:
21547
        if (value == null) {
21548
          unsetTransactionAmount();
21549
        } else {
21550
          setTransactionAmount((Double)value);
21551
        }
21552
        break;
21553
 
21554
      case IS_COD:
21555
        if (value == null) {
21556
          unsetIsCod();
21557
        } else {
21558
          setIsCod((Boolean)value);
21559
        }
21560
        break;
21561
 
21562
      case WEIGHT:
21563
        if (value == null) {
21564
          unsetWeight();
21565
        } else {
21566
          setWeight((Double)value);
21567
        }
21568
        break;
21569
 
21570
      case BILLING_WAREHOUSE_ID:
21571
        if (value == null) {
21572
          unsetBillingWarehouseId();
21573
        } else {
21574
          setBillingWarehouseId((Long)value);
21575
        }
21576
        break;
21577
 
19474 manish.sha 21578
      case IS_COMPLETE_TXN:
21579
        if (value == null) {
21580
          unsetIsCompleteTxn();
21581
        } else {
21582
          setIsCompleteTxn((Boolean)value);
21583
        }
21584
        break;
21585
 
19421 manish.sha 21586
      }
21587
    }
21588
 
21589
    public Object getFieldValue(_Fields field) {
21590
      switch (field) {
21591
      case PINCODE:
21592
        return getPincode();
21593
 
21594
      case TRANSACTION_AMOUNT:
21595
        return Double.valueOf(getTransactionAmount());
21596
 
21597
      case IS_COD:
21598
        return Boolean.valueOf(isIsCod());
21599
 
21600
      case WEIGHT:
21601
        return Double.valueOf(getWeight());
21602
 
21603
      case BILLING_WAREHOUSE_ID:
21604
        return Long.valueOf(getBillingWarehouseId());
21605
 
19474 manish.sha 21606
      case IS_COMPLETE_TXN:
21607
        return Boolean.valueOf(isIsCompleteTxn());
21608
 
19421 manish.sha 21609
      }
21610
      throw new IllegalStateException();
21611
    }
21612
 
21613
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21614
    public boolean isSet(_Fields field) {
21615
      if (field == null) {
21616
        throw new IllegalArgumentException();
21617
      }
21618
 
21619
      switch (field) {
21620
      case PINCODE:
21621
        return isSetPincode();
21622
      case TRANSACTION_AMOUNT:
21623
        return isSetTransactionAmount();
21624
      case IS_COD:
21625
        return isSetIsCod();
21626
      case WEIGHT:
21627
        return isSetWeight();
21628
      case BILLING_WAREHOUSE_ID:
21629
        return isSetBillingWarehouseId();
19474 manish.sha 21630
      case IS_COMPLETE_TXN:
21631
        return isSetIsCompleteTxn();
19421 manish.sha 21632
      }
21633
      throw new IllegalStateException();
21634
    }
21635
 
21636
    @Override
21637
    public boolean equals(Object that) {
21638
      if (that == null)
21639
        return false;
21640
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21641
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21642
      return false;
21643
    }
21644
 
21645
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21646
      if (that == null)
21647
        return false;
21648
 
21649
      boolean this_present_pincode = true && this.isSetPincode();
21650
      boolean that_present_pincode = true && that.isSetPincode();
21651
      if (this_present_pincode || that_present_pincode) {
21652
        if (!(this_present_pincode && that_present_pincode))
21653
          return false;
21654
        if (!this.pincode.equals(that.pincode))
21655
          return false;
21656
      }
21657
 
21658
      boolean this_present_transactionAmount = true;
21659
      boolean that_present_transactionAmount = true;
21660
      if (this_present_transactionAmount || that_present_transactionAmount) {
21661
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21662
          return false;
21663
        if (this.transactionAmount != that.transactionAmount)
21664
          return false;
21665
      }
21666
 
21667
      boolean this_present_isCod = true;
21668
      boolean that_present_isCod = true;
21669
      if (this_present_isCod || that_present_isCod) {
21670
        if (!(this_present_isCod && that_present_isCod))
21671
          return false;
21672
        if (this.isCod != that.isCod)
21673
          return false;
21674
      }
21675
 
21676
      boolean this_present_weight = true;
21677
      boolean that_present_weight = true;
21678
      if (this_present_weight || that_present_weight) {
21679
        if (!(this_present_weight && that_present_weight))
21680
          return false;
21681
        if (this.weight != that.weight)
21682
          return false;
21683
      }
21684
 
21685
      boolean this_present_billingWarehouseId = true;
21686
      boolean that_present_billingWarehouseId = true;
21687
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21688
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21689
          return false;
21690
        if (this.billingWarehouseId != that.billingWarehouseId)
21691
          return false;
21692
      }
21693
 
19474 manish.sha 21694
      boolean this_present_isCompleteTxn = true;
21695
      boolean that_present_isCompleteTxn = true;
21696
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21697
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21698
          return false;
21699
        if (this.isCompleteTxn != that.isCompleteTxn)
21700
          return false;
21701
      }
21702
 
19421 manish.sha 21703
      return true;
21704
    }
21705
 
21706
    @Override
21707
    public int hashCode() {
21708
      return 0;
21709
    }
21710
 
21711
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21712
      if (!getClass().equals(other.getClass())) {
21713
        return getClass().getName().compareTo(other.getClass().getName());
21714
      }
21715
 
21716
      int lastComparison = 0;
21717
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21718
 
21719
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21720
      if (lastComparison != 0) {
21721
        return lastComparison;
21722
      }
21723
      if (isSetPincode()) {
21724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21725
        if (lastComparison != 0) {
21726
          return lastComparison;
21727
        }
21728
      }
21729
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21730
      if (lastComparison != 0) {
21731
        return lastComparison;
21732
      }
21733
      if (isSetTransactionAmount()) {
21734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21735
        if (lastComparison != 0) {
21736
          return lastComparison;
21737
        }
21738
      }
21739
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21740
      if (lastComparison != 0) {
21741
        return lastComparison;
21742
      }
21743
      if (isSetIsCod()) {
21744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21745
        if (lastComparison != 0) {
21746
          return lastComparison;
21747
        }
21748
      }
21749
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21750
      if (lastComparison != 0) {
21751
        return lastComparison;
21752
      }
21753
      if (isSetWeight()) {
21754
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21755
        if (lastComparison != 0) {
21756
          return lastComparison;
21757
        }
21758
      }
21759
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21760
      if (lastComparison != 0) {
21761
        return lastComparison;
21762
      }
21763
      if (isSetBillingWarehouseId()) {
21764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21765
        if (lastComparison != 0) {
21766
          return lastComparison;
21767
        }
21768
      }
19474 manish.sha 21769
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21770
      if (lastComparison != 0) {
21771
        return lastComparison;
21772
      }
21773
      if (isSetIsCompleteTxn()) {
21774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21775
        if (lastComparison != 0) {
21776
          return lastComparison;
21777
        }
21778
      }
19421 manish.sha 21779
      return 0;
21780
    }
21781
 
21782
    public _Fields fieldForId(int fieldId) {
21783
      return _Fields.findByThriftId(fieldId);
21784
    }
21785
 
21786
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21787
      org.apache.thrift.protocol.TField field;
21788
      iprot.readStructBegin();
21789
      while (true)
21790
      {
21791
        field = iprot.readFieldBegin();
21792
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21793
          break;
21794
        }
21795
        switch (field.id) {
21796
          case 1: // PINCODE
21797
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21798
              this.pincode = iprot.readString();
21799
            } else { 
21800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21801
            }
21802
            break;
21803
          case 2: // TRANSACTION_AMOUNT
21804
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21805
              this.transactionAmount = iprot.readDouble();
21806
              setTransactionAmountIsSet(true);
21807
            } else { 
21808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21809
            }
21810
            break;
21811
          case 3: // IS_COD
21812
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21813
              this.isCod = iprot.readBool();
21814
              setIsCodIsSet(true);
21815
            } else { 
21816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21817
            }
21818
            break;
21819
          case 4: // WEIGHT
21820
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21821
              this.weight = iprot.readDouble();
21822
              setWeightIsSet(true);
21823
            } else { 
21824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21825
            }
21826
            break;
21827
          case 5: // BILLING_WAREHOUSE_ID
21828
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21829
              this.billingWarehouseId = iprot.readI64();
21830
              setBillingWarehouseIdIsSet(true);
21831
            } else { 
21832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21833
            }
21834
            break;
19474 manish.sha 21835
          case 6: // IS_COMPLETE_TXN
21836
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21837
              this.isCompleteTxn = iprot.readBool();
21838
              setIsCompleteTxnIsSet(true);
21839
            } else { 
21840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21841
            }
21842
            break;
19421 manish.sha 21843
          default:
21844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21845
        }
21846
        iprot.readFieldEnd();
21847
      }
21848
      iprot.readStructEnd();
21849
      validate();
21850
    }
21851
 
21852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21853
      validate();
21854
 
21855
      oprot.writeStructBegin(STRUCT_DESC);
21856
      if (this.pincode != null) {
21857
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21858
        oprot.writeString(this.pincode);
21859
        oprot.writeFieldEnd();
21860
      }
21861
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21862
      oprot.writeDouble(this.transactionAmount);
21863
      oprot.writeFieldEnd();
21864
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21865
      oprot.writeBool(this.isCod);
21866
      oprot.writeFieldEnd();
21867
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21868
      oprot.writeDouble(this.weight);
21869
      oprot.writeFieldEnd();
21870
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21871
      oprot.writeI64(this.billingWarehouseId);
21872
      oprot.writeFieldEnd();
19474 manish.sha 21873
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21874
      oprot.writeBool(this.isCompleteTxn);
21875
      oprot.writeFieldEnd();
19421 manish.sha 21876
      oprot.writeFieldStop();
21877
      oprot.writeStructEnd();
21878
    }
21879
 
21880
    @Override
21881
    public String toString() {
21882
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21883
      boolean first = true;
21884
 
21885
      sb.append("pincode:");
21886
      if (this.pincode == null) {
21887
        sb.append("null");
21888
      } else {
21889
        sb.append(this.pincode);
21890
      }
21891
      first = false;
21892
      if (!first) sb.append(", ");
21893
      sb.append("transactionAmount:");
21894
      sb.append(this.transactionAmount);
21895
      first = false;
21896
      if (!first) sb.append(", ");
21897
      sb.append("isCod:");
21898
      sb.append(this.isCod);
21899
      first = false;
21900
      if (!first) sb.append(", ");
21901
      sb.append("weight:");
21902
      sb.append(this.weight);
21903
      first = false;
21904
      if (!first) sb.append(", ");
21905
      sb.append("billingWarehouseId:");
21906
      sb.append(this.billingWarehouseId);
21907
      first = false;
19474 manish.sha 21908
      if (!first) sb.append(", ");
21909
      sb.append("isCompleteTxn:");
21910
      sb.append(this.isCompleteTxn);
21911
      first = false;
19421 manish.sha 21912
      sb.append(")");
21913
      return sb.toString();
21914
    }
21915
 
21916
    public void validate() throws org.apache.thrift.TException {
21917
      // check for required fields
21918
    }
21919
 
21920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21921
      try {
21922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21923
      } catch (org.apache.thrift.TException te) {
21924
        throw new java.io.IOException(te);
21925
      }
21926
    }
21927
 
21928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21929
      try {
21930
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21931
        __isset_bit_vector = new BitSet(1);
21932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21933
      } catch (org.apache.thrift.TException te) {
21934
        throw new java.io.IOException(te);
21935
      }
21936
    }
21937
 
21938
  }
21939
 
21940
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21942
 
21943
    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);
21944
    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);
21945
 
21946
    private DeliveryEstimateAndCosting success; // required
21947
    private LogisticsServiceException se; // required
21948
 
21949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21951
      SUCCESS((short)0, "success"),
21952
      SE((short)1, "se");
21953
 
21954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21955
 
21956
      static {
21957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21958
          byName.put(field.getFieldName(), field);
21959
        }
21960
      }
21961
 
21962
      /**
21963
       * Find the _Fields constant that matches fieldId, or null if its not found.
21964
       */
21965
      public static _Fields findByThriftId(int fieldId) {
21966
        switch(fieldId) {
21967
          case 0: // SUCCESS
21968
            return SUCCESS;
21969
          case 1: // SE
21970
            return SE;
21971
          default:
21972
            return null;
21973
        }
21974
      }
21975
 
21976
      /**
21977
       * Find the _Fields constant that matches fieldId, throwing an exception
21978
       * if it is not found.
21979
       */
21980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21981
        _Fields fields = findByThriftId(fieldId);
21982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21983
        return fields;
21984
      }
21985
 
21986
      /**
21987
       * Find the _Fields constant that matches name, or null if its not found.
21988
       */
21989
      public static _Fields findByName(String name) {
21990
        return byName.get(name);
21991
      }
21992
 
21993
      private final short _thriftId;
21994
      private final String _fieldName;
21995
 
21996
      _Fields(short thriftId, String fieldName) {
21997
        _thriftId = thriftId;
21998
        _fieldName = fieldName;
21999
      }
22000
 
22001
      public short getThriftFieldId() {
22002
        return _thriftId;
22003
      }
22004
 
22005
      public String getFieldName() {
22006
        return _fieldName;
22007
      }
22008
    }
22009
 
22010
    // isset id assignments
22011
 
22012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22013
    static {
22014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22015
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22016
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
22017
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
22021
    }
22022
 
22023
    public getCostingAndDeliveryEstimateForPincode_result() {
22024
    }
22025
 
22026
    public getCostingAndDeliveryEstimateForPincode_result(
22027
      DeliveryEstimateAndCosting success,
22028
      LogisticsServiceException se)
22029
    {
22030
      this();
22031
      this.success = success;
22032
      this.se = se;
22033
    }
22034
 
22035
    /**
22036
     * Performs a deep copy on <i>other</i>.
22037
     */
22038
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
22039
      if (other.isSetSuccess()) {
22040
        this.success = new DeliveryEstimateAndCosting(other.success);
22041
      }
22042
      if (other.isSetSe()) {
22043
        this.se = new LogisticsServiceException(other.se);
22044
      }
22045
    }
22046
 
22047
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
22048
      return new getCostingAndDeliveryEstimateForPincode_result(this);
22049
    }
22050
 
22051
    @Override
22052
    public void clear() {
22053
      this.success = null;
22054
      this.se = null;
22055
    }
22056
 
22057
    public DeliveryEstimateAndCosting getSuccess() {
22058
      return this.success;
22059
    }
22060
 
22061
    public void setSuccess(DeliveryEstimateAndCosting success) {
22062
      this.success = success;
22063
    }
22064
 
22065
    public void unsetSuccess() {
22066
      this.success = null;
22067
    }
22068
 
22069
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22070
    public boolean isSetSuccess() {
22071
      return this.success != null;
22072
    }
22073
 
22074
    public void setSuccessIsSet(boolean value) {
22075
      if (!value) {
22076
        this.success = null;
22077
      }
22078
    }
22079
 
22080
    public LogisticsServiceException getSe() {
22081
      return this.se;
22082
    }
22083
 
22084
    public void setSe(LogisticsServiceException se) {
22085
      this.se = se;
22086
    }
22087
 
22088
    public void unsetSe() {
22089
      this.se = null;
22090
    }
22091
 
22092
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22093
    public boolean isSetSe() {
22094
      return this.se != null;
22095
    }
22096
 
22097
    public void setSeIsSet(boolean value) {
22098
      if (!value) {
22099
        this.se = null;
22100
      }
22101
    }
22102
 
22103
    public void setFieldValue(_Fields field, Object value) {
22104
      switch (field) {
22105
      case SUCCESS:
22106
        if (value == null) {
22107
          unsetSuccess();
22108
        } else {
22109
          setSuccess((DeliveryEstimateAndCosting)value);
22110
        }
22111
        break;
22112
 
22113
      case SE:
22114
        if (value == null) {
22115
          unsetSe();
22116
        } else {
22117
          setSe((LogisticsServiceException)value);
22118
        }
22119
        break;
22120
 
22121
      }
22122
    }
22123
 
22124
    public Object getFieldValue(_Fields field) {
22125
      switch (field) {
22126
      case SUCCESS:
22127
        return getSuccess();
22128
 
22129
      case SE:
22130
        return getSe();
22131
 
22132
      }
22133
      throw new IllegalStateException();
22134
    }
22135
 
22136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22137
    public boolean isSet(_Fields field) {
22138
      if (field == null) {
22139
        throw new IllegalArgumentException();
22140
      }
22141
 
22142
      switch (field) {
22143
      case SUCCESS:
22144
        return isSetSuccess();
22145
      case SE:
22146
        return isSetSe();
22147
      }
22148
      throw new IllegalStateException();
22149
    }
22150
 
22151
    @Override
22152
    public boolean equals(Object that) {
22153
      if (that == null)
22154
        return false;
22155
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
22156
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
22157
      return false;
22158
    }
22159
 
22160
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
22161
      if (that == null)
22162
        return false;
22163
 
22164
      boolean this_present_success = true && this.isSetSuccess();
22165
      boolean that_present_success = true && that.isSetSuccess();
22166
      if (this_present_success || that_present_success) {
22167
        if (!(this_present_success && that_present_success))
22168
          return false;
22169
        if (!this.success.equals(that.success))
22170
          return false;
22171
      }
22172
 
22173
      boolean this_present_se = true && this.isSetSe();
22174
      boolean that_present_se = true && that.isSetSe();
22175
      if (this_present_se || that_present_se) {
22176
        if (!(this_present_se && that_present_se))
22177
          return false;
22178
        if (!this.se.equals(that.se))
22179
          return false;
22180
      }
22181
 
22182
      return true;
22183
    }
22184
 
22185
    @Override
22186
    public int hashCode() {
22187
      return 0;
22188
    }
22189
 
22190
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
22191
      if (!getClass().equals(other.getClass())) {
22192
        return getClass().getName().compareTo(other.getClass().getName());
22193
      }
22194
 
22195
      int lastComparison = 0;
22196
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
22197
 
22198
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22199
      if (lastComparison != 0) {
22200
        return lastComparison;
22201
      }
22202
      if (isSetSuccess()) {
22203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22204
        if (lastComparison != 0) {
22205
          return lastComparison;
22206
        }
22207
      }
22208
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22209
      if (lastComparison != 0) {
22210
        return lastComparison;
22211
      }
22212
      if (isSetSe()) {
22213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22214
        if (lastComparison != 0) {
22215
          return lastComparison;
22216
        }
22217
      }
22218
      return 0;
22219
    }
22220
 
22221
    public _Fields fieldForId(int fieldId) {
22222
      return _Fields.findByThriftId(fieldId);
22223
    }
22224
 
22225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22226
      org.apache.thrift.protocol.TField field;
22227
      iprot.readStructBegin();
22228
      while (true)
22229
      {
22230
        field = iprot.readFieldBegin();
22231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22232
          break;
22233
        }
22234
        switch (field.id) {
22235
          case 0: // SUCCESS
22236
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22237
              this.success = new DeliveryEstimateAndCosting();
22238
              this.success.read(iprot);
22239
            } else { 
22240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22241
            }
22242
            break;
22243
          case 1: // SE
22244
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22245
              this.se = new LogisticsServiceException();
22246
              this.se.read(iprot);
22247
            } else { 
22248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22249
            }
22250
            break;
22251
          default:
22252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22253
        }
22254
        iprot.readFieldEnd();
22255
      }
22256
      iprot.readStructEnd();
22257
      validate();
22258
    }
22259
 
22260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22261
      oprot.writeStructBegin(STRUCT_DESC);
22262
 
22263
      if (this.isSetSuccess()) {
22264
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22265
        this.success.write(oprot);
22266
        oprot.writeFieldEnd();
22267
      } else if (this.isSetSe()) {
22268
        oprot.writeFieldBegin(SE_FIELD_DESC);
22269
        this.se.write(oprot);
22270
        oprot.writeFieldEnd();
22271
      }
22272
      oprot.writeFieldStop();
22273
      oprot.writeStructEnd();
22274
    }
22275
 
22276
    @Override
22277
    public String toString() {
22278
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22279
      boolean first = true;
22280
 
22281
      sb.append("success:");
22282
      if (this.success == null) {
22283
        sb.append("null");
22284
      } else {
22285
        sb.append(this.success);
22286
      }
22287
      first = false;
22288
      if (!first) sb.append(", ");
22289
      sb.append("se:");
22290
      if (this.se == null) {
22291
        sb.append("null");
22292
      } else {
22293
        sb.append(this.se);
22294
      }
22295
      first = false;
22296
      sb.append(")");
22297
      return sb.toString();
22298
    }
22299
 
22300
    public void validate() throws org.apache.thrift.TException {
22301
      // check for required fields
22302
    }
22303
 
22304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22305
      try {
22306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22307
      } catch (org.apache.thrift.TException te) {
22308
        throw new java.io.IOException(te);
22309
      }
22310
    }
22311
 
22312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22313
      try {
22314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22315
      } catch (org.apache.thrift.TException te) {
22316
        throw new java.io.IOException(te);
22317
      }
22318
    }
22319
 
22320
  }
22321
 
20744 kshitij.so 22322
  public static class getBluedartAttributesForLogisticsTxnId_args implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_args, getBluedartAttributesForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
22323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_args");
22324
 
22325
    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);
22326
    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);
22327
 
22328
    private String logisticsTxnId; // required
22329
    private String name; // required
22330
 
22331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22333
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId"),
22334
      NAME((short)2, "name");
22335
 
22336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22337
 
22338
      static {
22339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22340
          byName.put(field.getFieldName(), field);
22341
        }
22342
      }
22343
 
22344
      /**
22345
       * Find the _Fields constant that matches fieldId, or null if its not found.
22346
       */
22347
      public static _Fields findByThriftId(int fieldId) {
22348
        switch(fieldId) {
22349
          case 1: // LOGISTICS_TXN_ID
22350
            return LOGISTICS_TXN_ID;
22351
          case 2: // NAME
22352
            return NAME;
22353
          default:
22354
            return null;
22355
        }
22356
      }
22357
 
22358
      /**
22359
       * Find the _Fields constant that matches fieldId, throwing an exception
22360
       * if it is not found.
22361
       */
22362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22363
        _Fields fields = findByThriftId(fieldId);
22364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22365
        return fields;
22366
      }
22367
 
22368
      /**
22369
       * Find the _Fields constant that matches name, or null if its not found.
22370
       */
22371
      public static _Fields findByName(String name) {
22372
        return byName.get(name);
22373
      }
22374
 
22375
      private final short _thriftId;
22376
      private final String _fieldName;
22377
 
22378
      _Fields(short thriftId, String fieldName) {
22379
        _thriftId = thriftId;
22380
        _fieldName = fieldName;
22381
      }
22382
 
22383
      public short getThriftFieldId() {
22384
        return _thriftId;
22385
      }
22386
 
22387
      public String getFieldName() {
22388
        return _fieldName;
22389
      }
22390
    }
22391
 
22392
    // isset id assignments
22393
 
22394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22395
    static {
22396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22397
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22399
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_args.class, metaDataMap);
22403
    }
22404
 
22405
    public getBluedartAttributesForLogisticsTxnId_args() {
22406
    }
22407
 
22408
    public getBluedartAttributesForLogisticsTxnId_args(
22409
      String logisticsTxnId,
22410
      String name)
22411
    {
22412
      this();
22413
      this.logisticsTxnId = logisticsTxnId;
22414
      this.name = name;
22415
    }
22416
 
22417
    /**
22418
     * Performs a deep copy on <i>other</i>.
22419
     */
22420
    public getBluedartAttributesForLogisticsTxnId_args(getBluedartAttributesForLogisticsTxnId_args other) {
22421
      if (other.isSetLogisticsTxnId()) {
22422
        this.logisticsTxnId = other.logisticsTxnId;
22423
      }
22424
      if (other.isSetName()) {
22425
        this.name = other.name;
22426
      }
22427
    }
22428
 
22429
    public getBluedartAttributesForLogisticsTxnId_args deepCopy() {
22430
      return new getBluedartAttributesForLogisticsTxnId_args(this);
22431
    }
22432
 
22433
    @Override
22434
    public void clear() {
22435
      this.logisticsTxnId = null;
22436
      this.name = null;
22437
    }
22438
 
22439
    public String getLogisticsTxnId() {
22440
      return this.logisticsTxnId;
22441
    }
22442
 
22443
    public void setLogisticsTxnId(String logisticsTxnId) {
22444
      this.logisticsTxnId = logisticsTxnId;
22445
    }
22446
 
22447
    public void unsetLogisticsTxnId() {
22448
      this.logisticsTxnId = null;
22449
    }
22450
 
22451
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
22452
    public boolean isSetLogisticsTxnId() {
22453
      return this.logisticsTxnId != null;
22454
    }
22455
 
22456
    public void setLogisticsTxnIdIsSet(boolean value) {
22457
      if (!value) {
22458
        this.logisticsTxnId = null;
22459
      }
22460
    }
22461
 
22462
    public String getName() {
22463
      return this.name;
22464
    }
22465
 
22466
    public void setName(String name) {
22467
      this.name = name;
22468
    }
22469
 
22470
    public void unsetName() {
22471
      this.name = null;
22472
    }
22473
 
22474
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
22475
    public boolean isSetName() {
22476
      return this.name != null;
22477
    }
22478
 
22479
    public void setNameIsSet(boolean value) {
22480
      if (!value) {
22481
        this.name = null;
22482
      }
22483
    }
22484
 
22485
    public void setFieldValue(_Fields field, Object value) {
22486
      switch (field) {
22487
      case LOGISTICS_TXN_ID:
22488
        if (value == null) {
22489
          unsetLogisticsTxnId();
22490
        } else {
22491
          setLogisticsTxnId((String)value);
22492
        }
22493
        break;
22494
 
22495
      case NAME:
22496
        if (value == null) {
22497
          unsetName();
22498
        } else {
22499
          setName((String)value);
22500
        }
22501
        break;
22502
 
22503
      }
22504
    }
22505
 
22506
    public Object getFieldValue(_Fields field) {
22507
      switch (field) {
22508
      case LOGISTICS_TXN_ID:
22509
        return getLogisticsTxnId();
22510
 
22511
      case NAME:
22512
        return getName();
22513
 
22514
      }
22515
      throw new IllegalStateException();
22516
    }
22517
 
22518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22519
    public boolean isSet(_Fields field) {
22520
      if (field == null) {
22521
        throw new IllegalArgumentException();
22522
      }
22523
 
22524
      switch (field) {
22525
      case LOGISTICS_TXN_ID:
22526
        return isSetLogisticsTxnId();
22527
      case NAME:
22528
        return isSetName();
22529
      }
22530
      throw new IllegalStateException();
22531
    }
22532
 
22533
    @Override
22534
    public boolean equals(Object that) {
22535
      if (that == null)
22536
        return false;
22537
      if (that instanceof getBluedartAttributesForLogisticsTxnId_args)
22538
        return this.equals((getBluedartAttributesForLogisticsTxnId_args)that);
22539
      return false;
22540
    }
22541
 
22542
    public boolean equals(getBluedartAttributesForLogisticsTxnId_args that) {
22543
      if (that == null)
22544
        return false;
22545
 
22546
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
22547
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
22548
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
22549
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
22550
          return false;
22551
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
22552
          return false;
22553
      }
22554
 
22555
      boolean this_present_name = true && this.isSetName();
22556
      boolean that_present_name = true && that.isSetName();
22557
      if (this_present_name || that_present_name) {
22558
        if (!(this_present_name && that_present_name))
22559
          return false;
22560
        if (!this.name.equals(that.name))
22561
          return false;
22562
      }
22563
 
22564
      return true;
22565
    }
22566
 
22567
    @Override
22568
    public int hashCode() {
22569
      return 0;
22570
    }
22571
 
22572
    public int compareTo(getBluedartAttributesForLogisticsTxnId_args other) {
22573
      if (!getClass().equals(other.getClass())) {
22574
        return getClass().getName().compareTo(other.getClass().getName());
22575
      }
22576
 
22577
      int lastComparison = 0;
22578
      getBluedartAttributesForLogisticsTxnId_args typedOther = (getBluedartAttributesForLogisticsTxnId_args)other;
22579
 
22580
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
22581
      if (lastComparison != 0) {
22582
        return lastComparison;
22583
      }
22584
      if (isSetLogisticsTxnId()) {
22585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
22586
        if (lastComparison != 0) {
22587
          return lastComparison;
22588
        }
22589
      }
22590
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
22591
      if (lastComparison != 0) {
22592
        return lastComparison;
22593
      }
22594
      if (isSetName()) {
22595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
22596
        if (lastComparison != 0) {
22597
          return lastComparison;
22598
        }
22599
      }
22600
      return 0;
22601
    }
22602
 
22603
    public _Fields fieldForId(int fieldId) {
22604
      return _Fields.findByThriftId(fieldId);
22605
    }
22606
 
22607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22608
      org.apache.thrift.protocol.TField field;
22609
      iprot.readStructBegin();
22610
      while (true)
22611
      {
22612
        field = iprot.readFieldBegin();
22613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22614
          break;
22615
        }
22616
        switch (field.id) {
22617
          case 1: // LOGISTICS_TXN_ID
22618
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22619
              this.logisticsTxnId = iprot.readString();
22620
            } else { 
22621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22622
            }
22623
            break;
22624
          case 2: // NAME
22625
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22626
              this.name = iprot.readString();
22627
            } else { 
22628
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22629
            }
22630
            break;
22631
          default:
22632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22633
        }
22634
        iprot.readFieldEnd();
22635
      }
22636
      iprot.readStructEnd();
22637
      validate();
22638
    }
22639
 
22640
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22641
      validate();
22642
 
22643
      oprot.writeStructBegin(STRUCT_DESC);
22644
      if (this.logisticsTxnId != null) {
22645
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
22646
        oprot.writeString(this.logisticsTxnId);
22647
        oprot.writeFieldEnd();
22648
      }
22649
      if (this.name != null) {
22650
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22651
        oprot.writeString(this.name);
22652
        oprot.writeFieldEnd();
22653
      }
22654
      oprot.writeFieldStop();
22655
      oprot.writeStructEnd();
22656
    }
22657
 
22658
    @Override
22659
    public String toString() {
22660
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_args(");
22661
      boolean first = true;
22662
 
22663
      sb.append("logisticsTxnId:");
22664
      if (this.logisticsTxnId == null) {
22665
        sb.append("null");
22666
      } else {
22667
        sb.append(this.logisticsTxnId);
22668
      }
22669
      first = false;
22670
      if (!first) sb.append(", ");
22671
      sb.append("name:");
22672
      if (this.name == null) {
22673
        sb.append("null");
22674
      } else {
22675
        sb.append(this.name);
22676
      }
22677
      first = false;
22678
      sb.append(")");
22679
      return sb.toString();
22680
    }
22681
 
22682
    public void validate() throws org.apache.thrift.TException {
22683
      // check for required fields
22684
    }
22685
 
22686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22687
      try {
22688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22689
      } catch (org.apache.thrift.TException te) {
22690
        throw new java.io.IOException(te);
22691
      }
22692
    }
22693
 
22694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22695
      try {
22696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22697
      } catch (org.apache.thrift.TException te) {
22698
        throw new java.io.IOException(te);
22699
      }
22700
    }
22701
 
22702
  }
22703
 
22704
  public static class getBluedartAttributesForLogisticsTxnId_result implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_result, getBluedartAttributesForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
22705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_result");
22706
 
22707
    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);
22708
    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);
22709
 
22710
    private BluedartAttributes success; // required
22711
    private LogisticsServiceException se; // required
22712
 
22713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22715
      SUCCESS((short)0, "success"),
22716
      SE((short)1, "se");
22717
 
22718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22719
 
22720
      static {
22721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22722
          byName.put(field.getFieldName(), field);
22723
        }
22724
      }
22725
 
22726
      /**
22727
       * Find the _Fields constant that matches fieldId, or null if its not found.
22728
       */
22729
      public static _Fields findByThriftId(int fieldId) {
22730
        switch(fieldId) {
22731
          case 0: // SUCCESS
22732
            return SUCCESS;
22733
          case 1: // SE
22734
            return SE;
22735
          default:
22736
            return null;
22737
        }
22738
      }
22739
 
22740
      /**
22741
       * Find the _Fields constant that matches fieldId, throwing an exception
22742
       * if it is not found.
22743
       */
22744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22745
        _Fields fields = findByThriftId(fieldId);
22746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22747
        return fields;
22748
      }
22749
 
22750
      /**
22751
       * Find the _Fields constant that matches name, or null if its not found.
22752
       */
22753
      public static _Fields findByName(String name) {
22754
        return byName.get(name);
22755
      }
22756
 
22757
      private final short _thriftId;
22758
      private final String _fieldName;
22759
 
22760
      _Fields(short thriftId, String fieldName) {
22761
        _thriftId = thriftId;
22762
        _fieldName = fieldName;
22763
      }
22764
 
22765
      public short getThriftFieldId() {
22766
        return _thriftId;
22767
      }
22768
 
22769
      public String getFieldName() {
22770
        return _fieldName;
22771
      }
22772
    }
22773
 
22774
    // isset id assignments
22775
 
22776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22777
    static {
22778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22779
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22780
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BluedartAttributes.class)));
22781
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_result.class, metaDataMap);
22785
    }
22786
 
22787
    public getBluedartAttributesForLogisticsTxnId_result() {
22788
    }
22789
 
22790
    public getBluedartAttributesForLogisticsTxnId_result(
22791
      BluedartAttributes success,
22792
      LogisticsServiceException se)
22793
    {
22794
      this();
22795
      this.success = success;
22796
      this.se = se;
22797
    }
22798
 
22799
    /**
22800
     * Performs a deep copy on <i>other</i>.
22801
     */
22802
    public getBluedartAttributesForLogisticsTxnId_result(getBluedartAttributesForLogisticsTxnId_result other) {
22803
      if (other.isSetSuccess()) {
22804
        this.success = new BluedartAttributes(other.success);
22805
      }
22806
      if (other.isSetSe()) {
22807
        this.se = new LogisticsServiceException(other.se);
22808
      }
22809
    }
22810
 
22811
    public getBluedartAttributesForLogisticsTxnId_result deepCopy() {
22812
      return new getBluedartAttributesForLogisticsTxnId_result(this);
22813
    }
22814
 
22815
    @Override
22816
    public void clear() {
22817
      this.success = null;
22818
      this.se = null;
22819
    }
22820
 
22821
    public BluedartAttributes getSuccess() {
22822
      return this.success;
22823
    }
22824
 
22825
    public void setSuccess(BluedartAttributes success) {
22826
      this.success = success;
22827
    }
22828
 
22829
    public void unsetSuccess() {
22830
      this.success = null;
22831
    }
22832
 
22833
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22834
    public boolean isSetSuccess() {
22835
      return this.success != null;
22836
    }
22837
 
22838
    public void setSuccessIsSet(boolean value) {
22839
      if (!value) {
22840
        this.success = null;
22841
      }
22842
    }
22843
 
22844
    public LogisticsServiceException getSe() {
22845
      return this.se;
22846
    }
22847
 
22848
    public void setSe(LogisticsServiceException se) {
22849
      this.se = se;
22850
    }
22851
 
22852
    public void unsetSe() {
22853
      this.se = null;
22854
    }
22855
 
22856
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22857
    public boolean isSetSe() {
22858
      return this.se != null;
22859
    }
22860
 
22861
    public void setSeIsSet(boolean value) {
22862
      if (!value) {
22863
        this.se = null;
22864
      }
22865
    }
22866
 
22867
    public void setFieldValue(_Fields field, Object value) {
22868
      switch (field) {
22869
      case SUCCESS:
22870
        if (value == null) {
22871
          unsetSuccess();
22872
        } else {
22873
          setSuccess((BluedartAttributes)value);
22874
        }
22875
        break;
22876
 
22877
      case SE:
22878
        if (value == null) {
22879
          unsetSe();
22880
        } else {
22881
          setSe((LogisticsServiceException)value);
22882
        }
22883
        break;
22884
 
22885
      }
22886
    }
22887
 
22888
    public Object getFieldValue(_Fields field) {
22889
      switch (field) {
22890
      case SUCCESS:
22891
        return getSuccess();
22892
 
22893
      case SE:
22894
        return getSe();
22895
 
22896
      }
22897
      throw new IllegalStateException();
22898
    }
22899
 
22900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22901
    public boolean isSet(_Fields field) {
22902
      if (field == null) {
22903
        throw new IllegalArgumentException();
22904
      }
22905
 
22906
      switch (field) {
22907
      case SUCCESS:
22908
        return isSetSuccess();
22909
      case SE:
22910
        return isSetSe();
22911
      }
22912
      throw new IllegalStateException();
22913
    }
22914
 
22915
    @Override
22916
    public boolean equals(Object that) {
22917
      if (that == null)
22918
        return false;
22919
      if (that instanceof getBluedartAttributesForLogisticsTxnId_result)
22920
        return this.equals((getBluedartAttributesForLogisticsTxnId_result)that);
22921
      return false;
22922
    }
22923
 
22924
    public boolean equals(getBluedartAttributesForLogisticsTxnId_result that) {
22925
      if (that == null)
22926
        return false;
22927
 
22928
      boolean this_present_success = true && this.isSetSuccess();
22929
      boolean that_present_success = true && that.isSetSuccess();
22930
      if (this_present_success || that_present_success) {
22931
        if (!(this_present_success && that_present_success))
22932
          return false;
22933
        if (!this.success.equals(that.success))
22934
          return false;
22935
      }
22936
 
22937
      boolean this_present_se = true && this.isSetSe();
22938
      boolean that_present_se = true && that.isSetSe();
22939
      if (this_present_se || that_present_se) {
22940
        if (!(this_present_se && that_present_se))
22941
          return false;
22942
        if (!this.se.equals(that.se))
22943
          return false;
22944
      }
22945
 
22946
      return true;
22947
    }
22948
 
22949
    @Override
22950
    public int hashCode() {
22951
      return 0;
22952
    }
22953
 
22954
    public int compareTo(getBluedartAttributesForLogisticsTxnId_result other) {
22955
      if (!getClass().equals(other.getClass())) {
22956
        return getClass().getName().compareTo(other.getClass().getName());
22957
      }
22958
 
22959
      int lastComparison = 0;
22960
      getBluedartAttributesForLogisticsTxnId_result typedOther = (getBluedartAttributesForLogisticsTxnId_result)other;
22961
 
22962
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22963
      if (lastComparison != 0) {
22964
        return lastComparison;
22965
      }
22966
      if (isSetSuccess()) {
22967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22968
        if (lastComparison != 0) {
22969
          return lastComparison;
22970
        }
22971
      }
22972
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22973
      if (lastComparison != 0) {
22974
        return lastComparison;
22975
      }
22976
      if (isSetSe()) {
22977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22978
        if (lastComparison != 0) {
22979
          return lastComparison;
22980
        }
22981
      }
22982
      return 0;
22983
    }
22984
 
22985
    public _Fields fieldForId(int fieldId) {
22986
      return _Fields.findByThriftId(fieldId);
22987
    }
22988
 
22989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22990
      org.apache.thrift.protocol.TField field;
22991
      iprot.readStructBegin();
22992
      while (true)
22993
      {
22994
        field = iprot.readFieldBegin();
22995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22996
          break;
22997
        }
22998
        switch (field.id) {
22999
          case 0: // SUCCESS
23000
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23001
              this.success = new BluedartAttributes();
23002
              this.success.read(iprot);
23003
            } else { 
23004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23005
            }
23006
            break;
23007
          case 1: // SE
23008
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23009
              this.se = new LogisticsServiceException();
23010
              this.se.read(iprot);
23011
            } else { 
23012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23013
            }
23014
            break;
23015
          default:
23016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23017
        }
23018
        iprot.readFieldEnd();
23019
      }
23020
      iprot.readStructEnd();
23021
      validate();
23022
    }
23023
 
23024
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23025
      oprot.writeStructBegin(STRUCT_DESC);
23026
 
23027
      if (this.isSetSuccess()) {
23028
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23029
        this.success.write(oprot);
23030
        oprot.writeFieldEnd();
23031
      } else if (this.isSetSe()) {
23032
        oprot.writeFieldBegin(SE_FIELD_DESC);
23033
        this.se.write(oprot);
23034
        oprot.writeFieldEnd();
23035
      }
23036
      oprot.writeFieldStop();
23037
      oprot.writeStructEnd();
23038
    }
23039
 
23040
    @Override
23041
    public String toString() {
23042
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_result(");
23043
      boolean first = true;
23044
 
23045
      sb.append("success:");
23046
      if (this.success == null) {
23047
        sb.append("null");
23048
      } else {
23049
        sb.append(this.success);
23050
      }
23051
      first = false;
23052
      if (!first) sb.append(", ");
23053
      sb.append("se:");
23054
      if (this.se == null) {
23055
        sb.append("null");
23056
      } else {
23057
        sb.append(this.se);
23058
      }
23059
      first = false;
23060
      sb.append(")");
23061
      return sb.toString();
23062
    }
23063
 
23064
    public void validate() throws org.apache.thrift.TException {
23065
      // check for required fields
23066
    }
23067
 
23068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23069
      try {
23070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23071
      } catch (org.apache.thrift.TException te) {
23072
        throw new java.io.IOException(te);
23073
      }
23074
    }
23075
 
23076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23077
      try {
23078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23079
      } catch (org.apache.thrift.TException te) {
23080
        throw new java.io.IOException(te);
23081
      }
23082
    }
23083
 
23084
  }
23085
 
23218 amit.gupta 23086
  public static class pushCourierDetailsForEcomExpress_args implements org.apache.thrift.TBase<pushCourierDetailsForEcomExpress_args, pushCourierDetailsForEcomExpress_args._Fields>, java.io.Serializable, Cloneable   {
23087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushCourierDetailsForEcomExpress_args");
23088
 
23089
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionIds", org.apache.thrift.protocol.TType.LIST, (short)1);
23090
 
23091
    private List<String> logisticsTransactionIds; // required
23092
 
23093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23095
      LOGISTICS_TRANSACTION_IDS((short)1, "logisticsTransactionIds");
23096
 
23097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23098
 
23099
      static {
23100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23101
          byName.put(field.getFieldName(), field);
23102
        }
23103
      }
23104
 
23105
      /**
23106
       * Find the _Fields constant that matches fieldId, or null if its not found.
23107
       */
23108
      public static _Fields findByThriftId(int fieldId) {
23109
        switch(fieldId) {
23110
          case 1: // LOGISTICS_TRANSACTION_IDS
23111
            return LOGISTICS_TRANSACTION_IDS;
23112
          default:
23113
            return null;
23114
        }
23115
      }
23116
 
23117
      /**
23118
       * Find the _Fields constant that matches fieldId, throwing an exception
23119
       * if it is not found.
23120
       */
23121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23122
        _Fields fields = findByThriftId(fieldId);
23123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23124
        return fields;
23125
      }
23126
 
23127
      /**
23128
       * Find the _Fields constant that matches name, or null if its not found.
23129
       */
23130
      public static _Fields findByName(String name) {
23131
        return byName.get(name);
23132
      }
23133
 
23134
      private final short _thriftId;
23135
      private final String _fieldName;
23136
 
23137
      _Fields(short thriftId, String fieldName) {
23138
        _thriftId = thriftId;
23139
        _fieldName = fieldName;
23140
      }
23141
 
23142
      public short getThriftFieldId() {
23143
        return _thriftId;
23144
      }
23145
 
23146
      public String getFieldName() {
23147
        return _fieldName;
23148
      }
23149
    }
23150
 
23151
    // isset id assignments
23152
 
23153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23154
    static {
23155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23156
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_IDS, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23157
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23158
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23159
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23160
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushCourierDetailsForEcomExpress_args.class, metaDataMap);
23161
    }
23162
 
23163
    public pushCourierDetailsForEcomExpress_args() {
23164
    }
23165
 
23166
    public pushCourierDetailsForEcomExpress_args(
23167
      List<String> logisticsTransactionIds)
23168
    {
23169
      this();
23170
      this.logisticsTransactionIds = logisticsTransactionIds;
23171
    }
23172
 
23173
    /**
23174
     * Performs a deep copy on <i>other</i>.
23175
     */
23176
    public pushCourierDetailsForEcomExpress_args(pushCourierDetailsForEcomExpress_args other) {
23177
      if (other.isSetLogisticsTransactionIds()) {
23178
        List<String> __this__logisticsTransactionIds = new ArrayList<String>();
23179
        for (String other_element : other.logisticsTransactionIds) {
23180
          __this__logisticsTransactionIds.add(other_element);
23181
        }
23182
        this.logisticsTransactionIds = __this__logisticsTransactionIds;
23183
      }
23184
    }
23185
 
23186
    public pushCourierDetailsForEcomExpress_args deepCopy() {
23187
      return new pushCourierDetailsForEcomExpress_args(this);
23188
    }
23189
 
23190
    @Override
23191
    public void clear() {
23192
      this.logisticsTransactionIds = null;
23193
    }
23194
 
23195
    public int getLogisticsTransactionIdsSize() {
23196
      return (this.logisticsTransactionIds == null) ? 0 : this.logisticsTransactionIds.size();
23197
    }
23198
 
23199
    public java.util.Iterator<String> getLogisticsTransactionIdsIterator() {
23200
      return (this.logisticsTransactionIds == null) ? null : this.logisticsTransactionIds.iterator();
23201
    }
23202
 
23203
    public void addToLogisticsTransactionIds(String elem) {
23204
      if (this.logisticsTransactionIds == null) {
23205
        this.logisticsTransactionIds = new ArrayList<String>();
23206
      }
23207
      this.logisticsTransactionIds.add(elem);
23208
    }
23209
 
23210
    public List<String> getLogisticsTransactionIds() {
23211
      return this.logisticsTransactionIds;
23212
    }
23213
 
23214
    public void setLogisticsTransactionIds(List<String> logisticsTransactionIds) {
23215
      this.logisticsTransactionIds = logisticsTransactionIds;
23216
    }
23217
 
23218
    public void unsetLogisticsTransactionIds() {
23219
      this.logisticsTransactionIds = null;
23220
    }
23221
 
23222
    /** Returns true if field logisticsTransactionIds is set (has been assigned a value) and false otherwise */
23223
    public boolean isSetLogisticsTransactionIds() {
23224
      return this.logisticsTransactionIds != null;
23225
    }
23226
 
23227
    public void setLogisticsTransactionIdsIsSet(boolean value) {
23228
      if (!value) {
23229
        this.logisticsTransactionIds = null;
23230
      }
23231
    }
23232
 
23233
    public void setFieldValue(_Fields field, Object value) {
23234
      switch (field) {
23235
      case LOGISTICS_TRANSACTION_IDS:
23236
        if (value == null) {
23237
          unsetLogisticsTransactionIds();
23238
        } else {
23239
          setLogisticsTransactionIds((List<String>)value);
23240
        }
23241
        break;
23242
 
23243
      }
23244
    }
23245
 
23246
    public Object getFieldValue(_Fields field) {
23247
      switch (field) {
23248
      case LOGISTICS_TRANSACTION_IDS:
23249
        return getLogisticsTransactionIds();
23250
 
23251
      }
23252
      throw new IllegalStateException();
23253
    }
23254
 
23255
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23256
    public boolean isSet(_Fields field) {
23257
      if (field == null) {
23258
        throw new IllegalArgumentException();
23259
      }
23260
 
23261
      switch (field) {
23262
      case LOGISTICS_TRANSACTION_IDS:
23263
        return isSetLogisticsTransactionIds();
23264
      }
23265
      throw new IllegalStateException();
23266
    }
23267
 
23268
    @Override
23269
    public boolean equals(Object that) {
23270
      if (that == null)
23271
        return false;
23272
      if (that instanceof pushCourierDetailsForEcomExpress_args)
23273
        return this.equals((pushCourierDetailsForEcomExpress_args)that);
23274
      return false;
23275
    }
23276
 
23277
    public boolean equals(pushCourierDetailsForEcomExpress_args that) {
23278
      if (that == null)
23279
        return false;
23280
 
23281
      boolean this_present_logisticsTransactionIds = true && this.isSetLogisticsTransactionIds();
23282
      boolean that_present_logisticsTransactionIds = true && that.isSetLogisticsTransactionIds();
23283
      if (this_present_logisticsTransactionIds || that_present_logisticsTransactionIds) {
23284
        if (!(this_present_logisticsTransactionIds && that_present_logisticsTransactionIds))
23285
          return false;
23286
        if (!this.logisticsTransactionIds.equals(that.logisticsTransactionIds))
23287
          return false;
23288
      }
23289
 
23290
      return true;
23291
    }
23292
 
23293
    @Override
23294
    public int hashCode() {
23295
      return 0;
23296
    }
23297
 
23298
    public int compareTo(pushCourierDetailsForEcomExpress_args other) {
23299
      if (!getClass().equals(other.getClass())) {
23300
        return getClass().getName().compareTo(other.getClass().getName());
23301
      }
23302
 
23303
      int lastComparison = 0;
23304
      pushCourierDetailsForEcomExpress_args typedOther = (pushCourierDetailsForEcomExpress_args)other;
23305
 
23306
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionIds()).compareTo(typedOther.isSetLogisticsTransactionIds());
23307
      if (lastComparison != 0) {
23308
        return lastComparison;
23309
      }
23310
      if (isSetLogisticsTransactionIds()) {
23311
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionIds, typedOther.logisticsTransactionIds);
23312
        if (lastComparison != 0) {
23313
          return lastComparison;
23314
        }
23315
      }
23316
      return 0;
23317
    }
23318
 
23319
    public _Fields fieldForId(int fieldId) {
23320
      return _Fields.findByThriftId(fieldId);
23321
    }
23322
 
23323
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23324
      org.apache.thrift.protocol.TField field;
23325
      iprot.readStructBegin();
23326
      while (true)
23327
      {
23328
        field = iprot.readFieldBegin();
23329
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23330
          break;
23331
        }
23332
        switch (field.id) {
23333
          case 1: // LOGISTICS_TRANSACTION_IDS
23334
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23335
              {
23336
                org.apache.thrift.protocol.TList _list51 = iprot.readListBegin();
23337
                this.logisticsTransactionIds = new ArrayList<String>(_list51.size);
23338
                for (int _i52 = 0; _i52 < _list51.size; ++_i52)
23339
                {
23340
                  String _elem53; // required
23341
                  _elem53 = iprot.readString();
23342
                  this.logisticsTransactionIds.add(_elem53);
23343
                }
23344
                iprot.readListEnd();
23345
              }
23346
            } else { 
23347
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23348
            }
23349
            break;
23350
          default:
23351
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23352
        }
23353
        iprot.readFieldEnd();
23354
      }
23355
      iprot.readStructEnd();
23356
      validate();
23357
    }
23358
 
23359
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23360
      validate();
23361
 
23362
      oprot.writeStructBegin(STRUCT_DESC);
23363
      if (this.logisticsTransactionIds != null) {
23364
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_IDS_FIELD_DESC);
23365
        {
23366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.logisticsTransactionIds.size()));
23367
          for (String _iter54 : this.logisticsTransactionIds)
23368
          {
23369
            oprot.writeString(_iter54);
23370
          }
23371
          oprot.writeListEnd();
23372
        }
23373
        oprot.writeFieldEnd();
23374
      }
23375
      oprot.writeFieldStop();
23376
      oprot.writeStructEnd();
23377
    }
23378
 
23379
    @Override
23380
    public String toString() {
23381
      StringBuilder sb = new StringBuilder("pushCourierDetailsForEcomExpress_args(");
23382
      boolean first = true;
23383
 
23384
      sb.append("logisticsTransactionIds:");
23385
      if (this.logisticsTransactionIds == null) {
23386
        sb.append("null");
23387
      } else {
23388
        sb.append(this.logisticsTransactionIds);
23389
      }
23390
      first = false;
23391
      sb.append(")");
23392
      return sb.toString();
23393
    }
23394
 
23395
    public void validate() throws org.apache.thrift.TException {
23396
      // check for required fields
23397
    }
23398
 
23399
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23400
      try {
23401
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23402
      } catch (org.apache.thrift.TException te) {
23403
        throw new java.io.IOException(te);
23404
      }
23405
    }
23406
 
23407
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23408
      try {
23409
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23410
      } catch (org.apache.thrift.TException te) {
23411
        throw new java.io.IOException(te);
23412
      }
23413
    }
23414
 
23415
  }
23416
 
23417
  public static class pushCourierDetailsForEcomExpress_result implements org.apache.thrift.TBase<pushCourierDetailsForEcomExpress_result, pushCourierDetailsForEcomExpress_result._Fields>, java.io.Serializable, Cloneable   {
23418
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushCourierDetailsForEcomExpress_result");
23419
 
23420
    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);
23421
 
23422
    private boolean success; // required
23423
 
23424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23426
      SUCCESS((short)0, "success");
23427
 
23428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23429
 
23430
      static {
23431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23432
          byName.put(field.getFieldName(), field);
23433
        }
23434
      }
23435
 
23436
      /**
23437
       * Find the _Fields constant that matches fieldId, or null if its not found.
23438
       */
23439
      public static _Fields findByThriftId(int fieldId) {
23440
        switch(fieldId) {
23441
          case 0: // SUCCESS
23442
            return SUCCESS;
23443
          default:
23444
            return null;
23445
        }
23446
      }
23447
 
23448
      /**
23449
       * Find the _Fields constant that matches fieldId, throwing an exception
23450
       * if it is not found.
23451
       */
23452
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23453
        _Fields fields = findByThriftId(fieldId);
23454
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23455
        return fields;
23456
      }
23457
 
23458
      /**
23459
       * Find the _Fields constant that matches name, or null if its not found.
23460
       */
23461
      public static _Fields findByName(String name) {
23462
        return byName.get(name);
23463
      }
23464
 
23465
      private final short _thriftId;
23466
      private final String _fieldName;
23467
 
23468
      _Fields(short thriftId, String fieldName) {
23469
        _thriftId = thriftId;
23470
        _fieldName = fieldName;
23471
      }
23472
 
23473
      public short getThriftFieldId() {
23474
        return _thriftId;
23475
      }
23476
 
23477
      public String getFieldName() {
23478
        return _fieldName;
23479
      }
23480
    }
23481
 
23482
    // isset id assignments
23483
    private static final int __SUCCESS_ISSET_ID = 0;
23484
    private BitSet __isset_bit_vector = new BitSet(1);
23485
 
23486
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23487
    static {
23488
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23489
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23490
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23491
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23492
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushCourierDetailsForEcomExpress_result.class, metaDataMap);
23493
    }
23494
 
23495
    public pushCourierDetailsForEcomExpress_result() {
23496
    }
23497
 
23498
    public pushCourierDetailsForEcomExpress_result(
23499
      boolean success)
23500
    {
23501
      this();
23502
      this.success = success;
23503
      setSuccessIsSet(true);
23504
    }
23505
 
23506
    /**
23507
     * Performs a deep copy on <i>other</i>.
23508
     */
23509
    public pushCourierDetailsForEcomExpress_result(pushCourierDetailsForEcomExpress_result other) {
23510
      __isset_bit_vector.clear();
23511
      __isset_bit_vector.or(other.__isset_bit_vector);
23512
      this.success = other.success;
23513
    }
23514
 
23515
    public pushCourierDetailsForEcomExpress_result deepCopy() {
23516
      return new pushCourierDetailsForEcomExpress_result(this);
23517
    }
23518
 
23519
    @Override
23520
    public void clear() {
23521
      setSuccessIsSet(false);
23522
      this.success = false;
23523
    }
23524
 
23525
    public boolean isSuccess() {
23526
      return this.success;
23527
    }
23528
 
23529
    public void setSuccess(boolean success) {
23530
      this.success = success;
23531
      setSuccessIsSet(true);
23532
    }
23533
 
23534
    public void unsetSuccess() {
23535
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
23536
    }
23537
 
23538
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23539
    public boolean isSetSuccess() {
23540
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
23541
    }
23542
 
23543
    public void setSuccessIsSet(boolean value) {
23544
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
23545
    }
23546
 
23547
    public void setFieldValue(_Fields field, Object value) {
23548
      switch (field) {
23549
      case SUCCESS:
23550
        if (value == null) {
23551
          unsetSuccess();
23552
        } else {
23553
          setSuccess((Boolean)value);
23554
        }
23555
        break;
23556
 
23557
      }
23558
    }
23559
 
23560
    public Object getFieldValue(_Fields field) {
23561
      switch (field) {
23562
      case SUCCESS:
23563
        return Boolean.valueOf(isSuccess());
23564
 
23565
      }
23566
      throw new IllegalStateException();
23567
    }
23568
 
23569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23570
    public boolean isSet(_Fields field) {
23571
      if (field == null) {
23572
        throw new IllegalArgumentException();
23573
      }
23574
 
23575
      switch (field) {
23576
      case SUCCESS:
23577
        return isSetSuccess();
23578
      }
23579
      throw new IllegalStateException();
23580
    }
23581
 
23582
    @Override
23583
    public boolean equals(Object that) {
23584
      if (that == null)
23585
        return false;
23586
      if (that instanceof pushCourierDetailsForEcomExpress_result)
23587
        return this.equals((pushCourierDetailsForEcomExpress_result)that);
23588
      return false;
23589
    }
23590
 
23591
    public boolean equals(pushCourierDetailsForEcomExpress_result that) {
23592
      if (that == null)
23593
        return false;
23594
 
23595
      boolean this_present_success = true;
23596
      boolean that_present_success = true;
23597
      if (this_present_success || that_present_success) {
23598
        if (!(this_present_success && that_present_success))
23599
          return false;
23600
        if (this.success != that.success)
23601
          return false;
23602
      }
23603
 
23604
      return true;
23605
    }
23606
 
23607
    @Override
23608
    public int hashCode() {
23609
      return 0;
23610
    }
23611
 
23612
    public int compareTo(pushCourierDetailsForEcomExpress_result other) {
23613
      if (!getClass().equals(other.getClass())) {
23614
        return getClass().getName().compareTo(other.getClass().getName());
23615
      }
23616
 
23617
      int lastComparison = 0;
23618
      pushCourierDetailsForEcomExpress_result typedOther = (pushCourierDetailsForEcomExpress_result)other;
23619
 
23620
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23621
      if (lastComparison != 0) {
23622
        return lastComparison;
23623
      }
23624
      if (isSetSuccess()) {
23625
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23626
        if (lastComparison != 0) {
23627
          return lastComparison;
23628
        }
23629
      }
23630
      return 0;
23631
    }
23632
 
23633
    public _Fields fieldForId(int fieldId) {
23634
      return _Fields.findByThriftId(fieldId);
23635
    }
23636
 
23637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23638
      org.apache.thrift.protocol.TField field;
23639
      iprot.readStructBegin();
23640
      while (true)
23641
      {
23642
        field = iprot.readFieldBegin();
23643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23644
          break;
23645
        }
23646
        switch (field.id) {
23647
          case 0: // SUCCESS
23648
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
23649
              this.success = iprot.readBool();
23650
              setSuccessIsSet(true);
23651
            } else { 
23652
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23653
            }
23654
            break;
23655
          default:
23656
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23657
        }
23658
        iprot.readFieldEnd();
23659
      }
23660
      iprot.readStructEnd();
23661
      validate();
23662
    }
23663
 
23664
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23665
      oprot.writeStructBegin(STRUCT_DESC);
23666
 
23667
      if (this.isSetSuccess()) {
23668
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23669
        oprot.writeBool(this.success);
23670
        oprot.writeFieldEnd();
23671
      }
23672
      oprot.writeFieldStop();
23673
      oprot.writeStructEnd();
23674
    }
23675
 
23676
    @Override
23677
    public String toString() {
23678
      StringBuilder sb = new StringBuilder("pushCourierDetailsForEcomExpress_result(");
23679
      boolean first = true;
23680
 
23681
      sb.append("success:");
23682
      sb.append(this.success);
23683
      first = false;
23684
      sb.append(")");
23685
      return sb.toString();
23686
    }
23687
 
23688
    public void validate() throws org.apache.thrift.TException {
23689
      // check for required fields
23690
    }
23691
 
23692
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23693
      try {
23694
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23695
      } catch (org.apache.thrift.TException te) {
23696
        throw new java.io.IOException(te);
23697
      }
23698
    }
23699
 
23700
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23701
      try {
23702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23703
      } catch (org.apache.thrift.TException te) {
23704
        throw new java.io.IOException(te);
23705
      }
23706
    }
23707
 
23708
  }
23709
 
412 ashish 23710
}