Subversion Repositories SmartDukaan

Rev

Rev 23218 | 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
23446 amit.gupta 59
     * @param stateId
648 chandransh 60
     */
23446 amit.gupta 61
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 62
 
648 chandransh 63
    /**
64
     * Returns an unused AWB number for the given provider.
65
     * 
66
     * @param providerId
20724 kshitij.so 67
     * @param logisticsTransactionId
648 chandransh 68
     */
20724 kshitij.so 69
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 70
 
648 chandransh 71
    /**
72
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
73
     * 
6643 rajveer 74
     * @param awbNumber
648 chandransh 75
     * @param providerId
76
     */
6643 rajveer 77
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 78
 
730 chandransh 79
    /**
6643 rajveer 80
     * Store the update for the given AWB number and provider id.
81
     * 
82
     * @param update
83
     */
84
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
85
 
86
    /**
730 chandransh 87
     * Returns the short three letter code of a pincode for the given provider.
88
     *    Raises an exception if the pin code is not serviced by the given provider.
89
     * 
90
     * @param providerId
91
     * @param pinCode
92
     */
3430 rajveer 93
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 94
 
1139 chandransh 95
    /**
3103 chandransh 96
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 97
     * 
98
     * @param providerId
3103 chandransh 99
     * @param type
1139 chandransh 100
     */
3430 rajveer 101
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 102
 
1730 ankur.sing 103
    /**
104
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
105
     * fromDate should be passed as milliseconds corresponding to the start of the day.
106
     * If fromDate is passed as -1, fromDate is not considered for filtering
107
     * If toDate is passed as -1, toDate is not considered for filtering
108
     * 
109
     * @param fromDate
110
     * @param toDate
111
     */
3430 rajveer 112
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 113
 
4934 amit.gupta 114
    /**
115
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
116
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
117
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
118
     * 
119
     * @param catalogItemId
120
     * @param destination_pin
121
     * @param type
122
     */
9840 amit.gupta 123
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
4934 amit.gupta 124
 
5527 anupam.sin 125
    /**
126
     * Returns the id for a given pickUpType
127
     * 
128
     * @param pickUp
129
     */
130
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
131
 
5553 rajveer 132
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
133
 
134
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
135
 
5719 rajveer 136
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
137
 
6524 rajveer 138
    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 139
 
6524 rajveer 140
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 141
 
13146 manish.sha 142
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException;
7567 rajveer 143
 
23123 amit.gupta 144
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException;
7737 manish.sha 145
 
7888 rajveer 146
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
147
 
12895 manish.sha 148
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
149
 
13146 manish.sha 150
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
151
 
152
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
153
 
19413 amit.gupta 154
    /**
155
     * This returns map for locations and providers corresponding their serviceability and delay
156
     * 
157
     * @param destPincode
158
     * @param price
159
     */
160
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
161
 
19474 manish.sha 162
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
19421 manish.sha 163
 
20744 kshitij.so 164
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException;
165
 
23218 amit.gupta 166
    public boolean pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException;
167
 
412 ashish 168
  }
169
 
3430 rajveer 170
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
171
 
172
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
173
 
174
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
175
 
4630 mandeep.dh 176
    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 177
 
7256 rajveer 178
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
179
 
23446 amit.gupta 180
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 181
 
20724 kshitij.so 182
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 183
 
6643 rajveer 184
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 185
 
6643 rajveer 186
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
187
 
3430 rajveer 188
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
189
 
190
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
191
 
192
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
193
 
4934 amit.gupta 194
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
195
 
5527 anupam.sin 196
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
197
 
5553 rajveer 198
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
199
 
200
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
201
 
5719 rajveer 202
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
203
 
6524 rajveer 204
    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 205
 
6524 rajveer 206
    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 207
 
13146 manish.sha 208
    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 209
 
23123 amit.gupta 210
    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 211
 
7888 rajveer 212
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
213
 
12895 manish.sha 214
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
215
 
13146 manish.sha 216
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
217
 
218
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
219
 
19413 amit.gupta 220
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
221
 
19474 manish.sha 222
    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 223
 
20744 kshitij.so 224
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
225
 
23218 amit.gupta 226
    public void pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.pushCourierDetailsForEcomExpress_call> resultHandler) throws org.apache.thrift.TException;
227
 
3430 rajveer 228
  }
229
 
3374 rajveer 230
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 231
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
232
      public Factory() {}
233
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
234
        return new Client(prot);
235
      }
236
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
237
        return new Client(iprot, oprot);
238
      }
239
    }
240
 
241
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 242
    {
3430 rajveer 243
      super(prot, prot);
412 ashish 244
    }
245
 
3430 rajveer 246
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 247
      super(iprot, oprot);
412 ashish 248
    }
249
 
3430 rajveer 250
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 251
    {
252
      send_getProvider(providerId);
253
      return recv_getProvider();
254
    }
255
 
3430 rajveer 256
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 257
    {
258
      getProvider_args args = new getProvider_args();
3430 rajveer 259
      args.setProviderId(providerId);
260
      sendBase("getProvider", args);
668 chandransh 261
    }
262
 
3430 rajveer 263
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 264
    {
265
      getProvider_result result = new getProvider_result();
3430 rajveer 266
      receiveBase(result, "getProvider");
668 chandransh 267
      if (result.isSetSuccess()) {
268
        return result.success;
269
      }
270
      if (result.lse != null) {
271
        throw result.lse;
272
      }
3430 rajveer 273
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 274
    }
275
 
3430 rajveer 276
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 277
    {
278
      send_getAllProviders();
279
      return recv_getAllProviders();
280
    }
281
 
3430 rajveer 282
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 283
    {
284
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 285
      sendBase("getAllProviders", args);
674 chandransh 286
    }
287
 
3430 rajveer 288
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 289
    {
290
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 291
      receiveBase(result, "getAllProviders");
674 chandransh 292
      if (result.isSetSuccess()) {
293
        return result.success;
294
      }
295
      if (result.lse != null) {
296
        throw result.lse;
297
      }
3430 rajveer 298
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 299
    }
300
 
4630 mandeep.dh 301
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 302
    {
4630 mandeep.dh 303
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 304
      return recv_getLogisticsEstimation();
305
    }
306
 
4630 mandeep.dh 307
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 308
    {
309
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 310
      args.setItemId(itemId);
311
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 312
      args.setType(type);
3430 rajveer 313
      sendBase("getLogisticsEstimation", args);
471 rajveer 314
    }
315
 
3430 rajveer 316
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 317
    {
318
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 319
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 320
      if (result.isSetSuccess()) {
321
        return result.success;
322
      }
323
      if (result.se != null) {
324
        throw result.se;
325
      }
3430 rajveer 326
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 327
    }
328
 
7256 rajveer 329
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
330
    {
331
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
332
      return recv_getLogisticsEstimationForStore();
333
    }
334
 
335
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
336
    {
337
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
338
      args.setItemId(itemId);
339
      args.setDestination_pin(destination_pin);
340
      args.setType(type);
341
      sendBase("getLogisticsEstimationForStore", args);
342
    }
343
 
344
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
345
    {
346
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
347
      receiveBase(result, "getLogisticsEstimationForStore");
348
      if (result.isSetSuccess()) {
349
        return result.success;
350
      }
351
      if (result.se != null) {
352
        throw result.se;
353
      }
354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
355
    }
356
 
23446 amit.gupta 357
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 358
    {
23446 amit.gupta 359
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp, stateId);
648 chandransh 360
      return recv_getLogisticsInfo();
471 rajveer 361
    }
362
 
23446 amit.gupta 363
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws org.apache.thrift.TException
471 rajveer 364
    {
648 chandransh 365
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 366
      args.setDestination_pincode(destination_pincode);
367
      args.setItem_id(item_id);
368
      args.setType(type);
5766 rajveer 369
      args.setPickUp(pickUp);
23446 amit.gupta 370
      args.setStateId(stateId);
3430 rajveer 371
      sendBase("getLogisticsInfo", args);
471 rajveer 372
    }
373
 
3430 rajveer 374
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 375
    {
648 chandransh 376
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 377
      receiveBase(result, "getLogisticsInfo");
648 chandransh 378
      if (result.isSetSuccess()) {
379
        return result.success;
477 rajveer 380
      }
648 chandransh 381
      if (result.se != null) {
382
        throw result.se;
412 ashish 383
      }
3430 rajveer 384
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 385
    }
386
 
20724 kshitij.so 387
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 388
    {
20724 kshitij.so 389
      send_getEmptyAWB(providerId, logisticsTransactionId);
412 ashish 390
      return recv_getEmptyAWB();
391
    }
392
 
20724 kshitij.so 393
    public void send_getEmptyAWB(long providerId, String logisticsTransactionId) throws org.apache.thrift.TException
412 ashish 394
    {
395
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 396
      args.setProviderId(providerId);
20724 kshitij.so 397
      args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 398
      sendBase("getEmptyAWB", args);
412 ashish 399
    }
400
 
3430 rajveer 401
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 402
    {
403
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 404
      receiveBase(result, "getEmptyAWB");
412 ashish 405
      if (result.isSetSuccess()) {
406
        return result.success;
407
      }
648 chandransh 408
      if (result.se != null) {
409
        throw result.se;
410
      }
3430 rajveer 411
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 412
    }
413
 
6643 rajveer 414
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 415
    {
6643 rajveer 416
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 417
      return recv_getShipmentInfo();
418
    }
419
 
6643 rajveer 420
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 421
    {
422
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 423
      args.setAwbNumber(awbNumber);
3430 rajveer 424
      args.setProviderId(providerId);
425
      sendBase("getShipmentInfo", args);
412 ashish 426
    }
427
 
3430 rajveer 428
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 429
    {
430
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 431
      receiveBase(result, "getShipmentInfo");
412 ashish 432
      if (result.isSetSuccess()) {
433
        return result.success;
434
      }
648 chandransh 435
      if (result.se != null) {
436
        throw result.se;
437
      }
3430 rajveer 438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 439
    }
440
 
6643 rajveer 441
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
442
    {
443
      send_storeShipmentInfo(update);
444
      recv_storeShipmentInfo();
445
    }
446
 
447
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
448
    {
449
      storeShipmentInfo_args args = new storeShipmentInfo_args();
450
      args.setUpdate(update);
451
      sendBase("storeShipmentInfo", args);
452
    }
453
 
454
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
455
    {
456
      storeShipmentInfo_result result = new storeShipmentInfo_result();
457
      receiveBase(result, "storeShipmentInfo");
458
      if (result.se != null) {
459
        throw result.se;
460
      }
461
      return;
462
    }
463
 
3430 rajveer 464
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 465
    {
466
      send_getDestinationCode(providerId, pinCode);
467
      return recv_getDestinationCode();
468
    }
469
 
3430 rajveer 470
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 471
    {
472
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 473
      args.setProviderId(providerId);
474
      args.setPinCode(pinCode);
475
      sendBase("getDestinationCode", args);
730 chandransh 476
    }
477
 
3430 rajveer 478
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 479
    {
480
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 481
      receiveBase(result, "getDestinationCode");
730 chandransh 482
      if (result.isSetSuccess()) {
483
        return result.success;
484
      }
485
      if (result.se != null) {
486
        throw result.se;
487
      }
3430 rajveer 488
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 489
    }
490
 
3430 rajveer 491
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 492
    {
3103 chandransh 493
      send_getFreeAwbCount(providerId, type);
1139 chandransh 494
      return recv_getFreeAwbCount();
495
    }
496
 
3430 rajveer 497
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 498
    {
499
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 500
      args.setProviderId(providerId);
501
      args.setType(type);
502
      sendBase("getFreeAwbCount", args);
1139 chandransh 503
    }
504
 
3430 rajveer 505
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 506
    {
507
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 508
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 509
      if (result.isSetSuccess()) {
510
        return result.success;
511
      }
3430 rajveer 512
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 513
    }
514
 
3430 rajveer 515
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 516
    {
517
      send_getHolidays(fromDate, toDate);
518
      return recv_getHolidays();
519
    }
520
 
3430 rajveer 521
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 522
    {
523
      getHolidays_args args = new getHolidays_args();
3430 rajveer 524
      args.setFromDate(fromDate);
525
      args.setToDate(toDate);
526
      sendBase("getHolidays", args);
1730 ankur.sing 527
    }
528
 
3430 rajveer 529
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 530
    {
531
      getHolidays_result result = new getHolidays_result();
3430 rajveer 532
      receiveBase(result, "getHolidays");
1730 ankur.sing 533
      if (result.isSetSuccess()) {
534
        return result.success;
535
      }
3430 rajveer 536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 537
    }
538
 
9840 amit.gupta 539
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 540
    {
541
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
542
      return recv_getEntityLogisticsEstimation();
543
    }
544
 
545
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
546
    {
547
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
548
      args.setCatalogItemId(catalogItemId);
549
      args.setDestination_pin(destination_pin);
550
      args.setType(type);
551
      sendBase("getEntityLogisticsEstimation", args);
552
    }
553
 
9840 amit.gupta 554
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 555
    {
556
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
557
      receiveBase(result, "getEntityLogisticsEstimation");
558
      if (result.isSetSuccess()) {
559
        return result.success;
560
      }
561
      if (result.se != null) {
562
        throw result.se;
563
      }
564
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
565
    }
566
 
5527 anupam.sin 567
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
568
    {
569
      send_getProviderForPickupType(pickUp);
570
      return recv_getProviderForPickupType();
571
    }
572
 
573
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
574
    {
575
      getProviderForPickupType_args args = new getProviderForPickupType_args();
576
      args.setPickUp(pickUp);
577
      sendBase("getProviderForPickupType", args);
578
    }
579
 
580
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
581
    {
582
      getProviderForPickupType_result result = new getProviderForPickupType_result();
583
      receiveBase(result, "getProviderForPickupType");
584
      if (result.isSetSuccess()) {
585
        return result.success;
586
      }
587
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
588
    }
589
 
5553 rajveer 590
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
591
    {
592
      send_getAllPickupStores();
593
      return recv_getAllPickupStores();
594
    }
595
 
596
    public void send_getAllPickupStores() throws org.apache.thrift.TException
597
    {
598
      getAllPickupStores_args args = new getAllPickupStores_args();
599
      sendBase("getAllPickupStores", args);
600
    }
601
 
602
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
603
    {
604
      getAllPickupStores_result result = new getAllPickupStores_result();
605
      receiveBase(result, "getAllPickupStores");
606
      if (result.isSetSuccess()) {
607
        return result.success;
608
      }
609
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
610
    }
611
 
612
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
613
    {
614
      send_getPickupStore(storeId);
615
      return recv_getPickupStore();
616
    }
617
 
618
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
619
    {
620
      getPickupStore_args args = new getPickupStore_args();
621
      args.setStoreId(storeId);
622
      sendBase("getPickupStore", args);
623
    }
624
 
625
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
626
    {
627
      getPickupStore_result result = new getPickupStore_result();
628
      receiveBase(result, "getPickupStore");
629
      if (result.isSetSuccess()) {
630
        return result.success;
631
      }
632
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
633
    }
634
 
5719 rajveer 635
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
636
    {
637
      send_getPickupStoreByHotspotId(hotspotId);
638
      return recv_getPickupStoreByHotspotId();
639
    }
640
 
641
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
642
    {
643
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
644
      args.setHotspotId(hotspotId);
645
      sendBase("getPickupStoreByHotspotId", args);
646
    }
647
 
648
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
649
    {
650
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
651
      receiveBase(result, "getPickupStoreByHotspotId");
652
      if (result.isSetSuccess()) {
653
        return result.success;
654
      }
655
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
656
    }
657
 
6524 rajveer 658
    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 659
    {
6524 rajveer 660
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 661
      recv_addPincode();
662
    }
663
 
6524 rajveer 664
    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 665
    {
666
      addPincode_args args = new addPincode_args();
667
      args.setProviderId(providerId);
668
      args.setPincode(pincode);
669
      args.setDestCode(destCode);
670
      args.setExp(exp);
671
      args.setCod(cod);
672
      args.setStationType(stationType);
6524 rajveer 673
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 674
      sendBase("addPincode", args);
675
    }
676
 
677
    public void recv_addPincode() throws org.apache.thrift.TException
678
    {
679
      addPincode_result result = new addPincode_result();
680
      receiveBase(result, "addPincode");
681
      return;
682
    }
683
 
6524 rajveer 684
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 685
    {
6524 rajveer 686
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 687
      recv_updatePincode();
688
    }
689
 
6524 rajveer 690
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 691
    {
692
      updatePincode_args args = new updatePincode_args();
693
      args.setProviderId(providerId);
694
      args.setPincode(pincode);
695
      args.setExp(exp);
696
      args.setCod(cod);
6524 rajveer 697
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 698
      sendBase("updatePincode", args);
699
    }
700
 
701
    public void recv_updatePincode() throws org.apache.thrift.TException
702
    {
703
      updatePincode_result result = new updatePincode_result();
704
      receiveBase(result, "updatePincode");
705
      return;
706
    }
707
 
13146 manish.sha 708
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 709
    {
13146 manish.sha 710
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 711
      return recv_addNewAwbs();
712
    }
713
 
13146 manish.sha 714
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 715
    {
716
      addNewAwbs_args args = new addNewAwbs_args();
717
      args.setProviderId(providerId);
718
      args.setCod(cod);
719
      args.setAwbs(awbs);
13146 manish.sha 720
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 721
      sendBase("addNewAwbs", args);
722
    }
723
 
724
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
725
    {
726
      addNewAwbs_result result = new addNewAwbs_result();
727
      receiveBase(result, "addNewAwbs");
728
      if (result.isSetSuccess()) {
729
        return result.success;
730
      }
731
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
732
    }
733
 
23123 amit.gupta 734
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException
7737 manish.sha 735
    {
23123 amit.gupta 736
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate, provider);
7788 manish.sha 737
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 738
    }
739
 
23123 amit.gupta 740
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, long provider) throws org.apache.thrift.TException
7737 manish.sha 741
    {
7788 manish.sha 742
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
743
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
744
      args.setRunCompleteUpdate(runCompleteUpdate);
23123 amit.gupta 745
      args.setProvider(provider);
7788 manish.sha 746
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 747
    }
748
 
7788 manish.sha 749
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 750
    {
7788 manish.sha 751
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
752
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 753
      return;
754
    }
755
 
7888 rajveer 756
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
757
    {
758
      send_adjustDeliveryDays(startDate, days);
759
      return recv_adjustDeliveryDays();
760
    }
761
 
762
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
763
    {
764
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
765
      args.setStartDate(startDate);
766
      args.setDays(days);
767
      sendBase("adjustDeliveryDays", args);
768
    }
769
 
770
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
771
    {
772
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
773
      receiveBase(result, "adjustDeliveryDays");
774
      if (result.isSetSuccess()) {
775
        return result.success;
776
      }
777
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
778
    }
779
 
12895 manish.sha 780
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
781
    {
782
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
783
      return recv_getFirstDeliveryEstimateForWhLocation();
784
    }
785
 
786
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
787
    {
788
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
789
      args.setPincode(pincode);
790
      args.setWhLocation(whLocation);
791
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
792
    }
793
 
794
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
795
    {
796
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
797
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
798
      if (result.isSetSuccess()) {
799
        return result.success;
800
      }
801
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
802
    }
803
 
13146 manish.sha 804
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
805
    {
806
      send_getNewEmptyAwb(providerId, type, orderQuantity);
807
      return recv_getNewEmptyAwb();
808
    }
809
 
810
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
811
    {
812
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
813
      args.setProviderId(providerId);
814
      args.setType(type);
815
      args.setOrderQuantity(orderQuantity);
816
      sendBase("getNewEmptyAwb", args);
817
    }
818
 
819
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
820
    {
821
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
822
      receiveBase(result, "getNewEmptyAwb");
823
      if (result.isSetSuccess()) {
824
        return result.success;
825
      }
826
      if (result.se != null) {
827
        throw result.se;
828
      }
829
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
830
    }
831
 
832
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
833
    {
834
      send_getProviderLimitDetailsForPincode(providerId, pincode);
835
      return recv_getProviderLimitDetailsForPincode();
836
    }
837
 
838
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
839
    {
840
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
841
      args.setProviderId(providerId);
842
      args.setPincode(pincode);
843
      sendBase("getProviderLimitDetailsForPincode", args);
844
    }
845
 
846
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
847
    {
848
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
849
      receiveBase(result, "getProviderLimitDetailsForPincode");
850
      if (result.isSetSuccess()) {
851
        return result.success;
852
      }
853
      if (result.se != null) {
854
        throw result.se;
855
      }
856
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
857
    }
858
 
19413 amit.gupta 859
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
860
    {
861
      send_getLocationInfoMap(destPincode, price);
862
      return recv_getLocationInfoMap();
863
    }
864
 
865
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
866
    {
867
      getLocationInfoMap_args args = new getLocationInfoMap_args();
868
      args.setDestPincode(destPincode);
869
      args.setPrice(price);
870
      sendBase("getLocationInfoMap", args);
871
    }
872
 
873
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
874
    {
875
      getLocationInfoMap_result result = new getLocationInfoMap_result();
876
      receiveBase(result, "getLocationInfoMap");
877
      if (result.isSetSuccess()) {
878
        return result.success;
879
      }
880
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
881
    }
882
 
19474 manish.sha 883
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
19421 manish.sha 884
    {
19474 manish.sha 885
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
19421 manish.sha 886
      return recv_getCostingAndDeliveryEstimateForPincode();
887
    }
888
 
19474 manish.sha 889
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
19421 manish.sha 890
    {
891
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
892
      args.setPincode(pincode);
893
      args.setTransactionAmount(transactionAmount);
894
      args.setIsCod(isCod);
895
      args.setWeight(weight);
896
      args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 897
      args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 898
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
899
    }
900
 
901
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
902
    {
903
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
904
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
905
      if (result.isSetSuccess()) {
906
        return result.success;
907
      }
908
      if (result.se != null) {
909
        throw result.se;
910
      }
911
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
912
    }
913
 
20744 kshitij.so 914
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException
915
    {
916
      send_getBluedartAttributesForLogisticsTxnId(logisticsTxnId, name);
917
      return recv_getBluedartAttributesForLogisticsTxnId();
918
    }
919
 
920
    public void send_getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws org.apache.thrift.TException
921
    {
922
      getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
923
      args.setLogisticsTxnId(logisticsTxnId);
924
      args.setName(name);
925
      sendBase("getBluedartAttributesForLogisticsTxnId", args);
926
    }
927
 
928
    public BluedartAttributes recv_getBluedartAttributesForLogisticsTxnId() throws LogisticsServiceException, org.apache.thrift.TException
929
    {
930
      getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
931
      receiveBase(result, "getBluedartAttributesForLogisticsTxnId");
932
      if (result.isSetSuccess()) {
933
        return result.success;
934
      }
935
      if (result.se != null) {
936
        throw result.se;
937
      }
938
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
939
    }
940
 
23218 amit.gupta 941
    public boolean pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException
942
    {
943
      send_pushCourierDetailsForEcomExpress(logisticsTransactionIds);
944
      return recv_pushCourierDetailsForEcomExpress();
945
    }
946
 
947
    public void send_pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds) throws org.apache.thrift.TException
948
    {
949
      pushCourierDetailsForEcomExpress_args args = new pushCourierDetailsForEcomExpress_args();
950
      args.setLogisticsTransactionIds(logisticsTransactionIds);
951
      sendBase("pushCourierDetailsForEcomExpress", args);
952
    }
953
 
954
    public boolean recv_pushCourierDetailsForEcomExpress() throws org.apache.thrift.TException
955
    {
956
      pushCourierDetailsForEcomExpress_result result = new pushCourierDetailsForEcomExpress_result();
957
      receiveBase(result, "pushCourierDetailsForEcomExpress");
958
      if (result.isSetSuccess()) {
959
        return result.success;
960
      }
961
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushCourierDetailsForEcomExpress failed: unknown result");
962
    }
963
 
412 ashish 964
  }
3430 rajveer 965
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
966
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
967
      private org.apache.thrift.async.TAsyncClientManager clientManager;
968
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
969
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
970
        this.clientManager = clientManager;
971
        this.protocolFactory = protocolFactory;
972
      }
973
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
974
        return new AsyncClient(protocolFactory, clientManager, transport);
975
      }
412 ashish 976
    }
977
 
3430 rajveer 978
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
979
      super(protocolFactory, clientManager, transport);
980
    }
412 ashish 981
 
3430 rajveer 982
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
983
      checkReady();
984
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
985
      this.___currentMethod = method_call;
986
      ___manager.call(method_call);
987
    }
988
 
989
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
990
      private long providerId;
991
      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 {
992
        super(client, protocolFactory, transport, resultHandler, false);
993
        this.providerId = providerId;
412 ashish 994
      }
3430 rajveer 995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        getProvider_args args = new getProvider_args();
999
        args.setProviderId(providerId);
1000
        args.write(prot);
1001
        prot.writeMessageEnd();
1002
      }
1003
 
1004
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1005
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1006
          throw new IllegalStateException("Method call not finished!");
1007
        }
1008
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1009
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1010
        return (new Client(prot)).recv_getProvider();
1011
      }
412 ashish 1012
    }
1013
 
3430 rajveer 1014
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
1015
      checkReady();
1016
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
1017
      this.___currentMethod = method_call;
1018
      ___manager.call(method_call);
1019
    }
1020
 
1021
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
1022
      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 {
1023
        super(client, protocolFactory, transport, resultHandler, false);
1024
      }
1025
 
1026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
1028
        getAllProviders_args args = new getAllProviders_args();
1029
        args.write(prot);
1030
        prot.writeMessageEnd();
1031
      }
1032
 
1033
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1034
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1035
          throw new IllegalStateException("Method call not finished!");
1036
        }
1037
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1038
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1039
        return (new Client(prot)).recv_getAllProviders();
1040
      }
1041
    }
1042
 
4630 mandeep.dh 1043
    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 1044
      checkReady();
4630 mandeep.dh 1045
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1046
      this.___currentMethod = method_call;
1047
      ___manager.call(method_call);
1048
    }
1049
 
1050
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1051
      private long itemId;
1052
      private String destination_pin;
4630 mandeep.dh 1053
      private DeliveryType type;
1054
      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 1055
        super(client, protocolFactory, transport, resultHandler, false);
1056
        this.itemId = itemId;
1057
        this.destination_pin = destination_pin;
4630 mandeep.dh 1058
        this.type = type;
3430 rajveer 1059
      }
1060
 
1061
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1062
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1063
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1064
        args.setItemId(itemId);
1065
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1066
        args.setType(type);
3430 rajveer 1067
        args.write(prot);
1068
        prot.writeMessageEnd();
1069
      }
1070
 
1071
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1072
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1073
          throw new IllegalStateException("Method call not finished!");
1074
        }
1075
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1076
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1077
        return (new Client(prot)).recv_getLogisticsEstimation();
1078
      }
1079
    }
1080
 
7256 rajveer 1081
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1082
      checkReady();
1083
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1084
      this.___currentMethod = method_call;
1085
      ___manager.call(method_call);
1086
    }
1087
 
1088
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1089
      private long itemId;
1090
      private String destination_pin;
1091
      private DeliveryType type;
1092
      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 {
1093
        super(client, protocolFactory, transport, resultHandler, false);
1094
        this.itemId = itemId;
1095
        this.destination_pin = destination_pin;
1096
        this.type = type;
1097
      }
1098
 
1099
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1100
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1101
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1102
        args.setItemId(itemId);
1103
        args.setDestination_pin(destination_pin);
1104
        args.setType(type);
1105
        args.write(prot);
1106
        prot.writeMessageEnd();
1107
      }
1108
 
1109
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1110
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1111
          throw new IllegalStateException("Method call not finished!");
1112
        }
1113
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1114
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1115
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1116
      }
1117
    }
1118
 
23446 amit.gupta 1119
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1120
      checkReady();
23446 amit.gupta 1121
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, stateId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1122
      this.___currentMethod = method_call;
1123
      ___manager.call(method_call);
1124
    }
1125
 
1126
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1127
      private String destination_pincode;
1128
      private long item_id;
1129
      private DeliveryType type;
5766 rajveer 1130
      private PickUpType pickUp;
23446 amit.gupta 1131
      private long stateId;
1132
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, 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 1133
        super(client, protocolFactory, transport, resultHandler, false);
1134
        this.destination_pincode = destination_pincode;
1135
        this.item_id = item_id;
1136
        this.type = type;
5766 rajveer 1137
        this.pickUp = pickUp;
23446 amit.gupta 1138
        this.stateId = stateId;
3430 rajveer 1139
      }
1140
 
1141
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1142
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1143
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1144
        args.setDestination_pincode(destination_pincode);
1145
        args.setItem_id(item_id);
1146
        args.setType(type);
5766 rajveer 1147
        args.setPickUp(pickUp);
23446 amit.gupta 1148
        args.setStateId(stateId);
3430 rajveer 1149
        args.write(prot);
1150
        prot.writeMessageEnd();
1151
      }
1152
 
1153
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1154
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1155
          throw new IllegalStateException("Method call not finished!");
1156
        }
1157
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1159
        return (new Client(prot)).recv_getLogisticsInfo();
1160
      }
1161
    }
1162
 
20724 kshitij.so 1163
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1164
      checkReady();
20724 kshitij.so 1165
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1166
      this.___currentMethod = method_call;
1167
      ___manager.call(method_call);
1168
    }
1169
 
1170
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1171
      private long providerId;
20724 kshitij.so 1172
      private String logisticsTransactionId;
1173
      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 1174
        super(client, protocolFactory, transport, resultHandler, false);
1175
        this.providerId = providerId;
20724 kshitij.so 1176
        this.logisticsTransactionId = logisticsTransactionId;
3430 rajveer 1177
      }
1178
 
1179
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1180
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1181
        getEmptyAWB_args args = new getEmptyAWB_args();
1182
        args.setProviderId(providerId);
20724 kshitij.so 1183
        args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 1184
        args.write(prot);
1185
        prot.writeMessageEnd();
1186
      }
1187
 
1188
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1189
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1190
          throw new IllegalStateException("Method call not finished!");
1191
        }
1192
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1193
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1194
        return (new Client(prot)).recv_getEmptyAWB();
1195
      }
1196
    }
1197
 
6643 rajveer 1198
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1199
      checkReady();
6643 rajveer 1200
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1201
      this.___currentMethod = method_call;
1202
      ___manager.call(method_call);
1203
    }
1204
 
1205
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1206
      private String awbNumber;
3430 rajveer 1207
      private long providerId;
6643 rajveer 1208
      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 1209
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1210
        this.awbNumber = awbNumber;
3430 rajveer 1211
        this.providerId = providerId;
1212
      }
1213
 
1214
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1215
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1216
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1217
        args.setAwbNumber(awbNumber);
3430 rajveer 1218
        args.setProviderId(providerId);
1219
        args.write(prot);
1220
        prot.writeMessageEnd();
1221
      }
1222
 
1223
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1224
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1225
          throw new IllegalStateException("Method call not finished!");
1226
        }
1227
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1228
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1229
        return (new Client(prot)).recv_getShipmentInfo();
1230
      }
1231
    }
1232
 
6643 rajveer 1233
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1234
      checkReady();
1235
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1236
      this.___currentMethod = method_call;
1237
      ___manager.call(method_call);
1238
    }
1239
 
1240
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1241
      private AwbUpdate update;
1242
      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 {
1243
        super(client, protocolFactory, transport, resultHandler, false);
1244
        this.update = update;
1245
      }
1246
 
1247
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1248
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1249
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1250
        args.setUpdate(update);
1251
        args.write(prot);
1252
        prot.writeMessageEnd();
1253
      }
1254
 
1255
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1256
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1257
          throw new IllegalStateException("Method call not finished!");
1258
        }
1259
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1260
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1261
        (new Client(prot)).recv_storeShipmentInfo();
1262
      }
1263
    }
1264
 
3430 rajveer 1265
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1266
      checkReady();
1267
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1268
      this.___currentMethod = method_call;
1269
      ___manager.call(method_call);
1270
    }
1271
 
1272
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1273
      private long providerId;
1274
      private String pinCode;
1275
      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 {
1276
        super(client, protocolFactory, transport, resultHandler, false);
1277
        this.providerId = providerId;
1278
        this.pinCode = pinCode;
1279
      }
1280
 
1281
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1282
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1283
        getDestinationCode_args args = new getDestinationCode_args();
1284
        args.setProviderId(providerId);
1285
        args.setPinCode(pinCode);
1286
        args.write(prot);
1287
        prot.writeMessageEnd();
1288
      }
1289
 
1290
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1291
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1292
          throw new IllegalStateException("Method call not finished!");
1293
        }
1294
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1295
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1296
        return (new Client(prot)).recv_getDestinationCode();
1297
      }
1298
    }
1299
 
1300
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1301
      checkReady();
1302
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1303
      this.___currentMethod = method_call;
1304
      ___manager.call(method_call);
1305
    }
1306
 
1307
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1308
      private long providerId;
1309
      private String type;
1310
      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 {
1311
        super(client, protocolFactory, transport, resultHandler, false);
1312
        this.providerId = providerId;
1313
        this.type = type;
1314
      }
1315
 
1316
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1317
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1318
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1319
        args.setProviderId(providerId);
1320
        args.setType(type);
1321
        args.write(prot);
1322
        prot.writeMessageEnd();
1323
      }
1324
 
1325
      public long getResult() throws org.apache.thrift.TException {
1326
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1327
          throw new IllegalStateException("Method call not finished!");
1328
        }
1329
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1330
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1331
        return (new Client(prot)).recv_getFreeAwbCount();
1332
      }
1333
    }
1334
 
1335
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1336
      checkReady();
1337
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1338
      this.___currentMethod = method_call;
1339
      ___manager.call(method_call);
1340
    }
1341
 
1342
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1343
      private long fromDate;
1344
      private long toDate;
1345
      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 {
1346
        super(client, protocolFactory, transport, resultHandler, false);
1347
        this.fromDate = fromDate;
1348
        this.toDate = toDate;
1349
      }
1350
 
1351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1353
        getHolidays_args args = new getHolidays_args();
1354
        args.setFromDate(fromDate);
1355
        args.setToDate(toDate);
1356
        args.write(prot);
1357
        prot.writeMessageEnd();
1358
      }
1359
 
1360
      public List<Long> getResult() throws org.apache.thrift.TException {
1361
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1362
          throw new IllegalStateException("Method call not finished!");
1363
        }
1364
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1366
        return (new Client(prot)).recv_getHolidays();
1367
      }
1368
    }
1369
 
4934 amit.gupta 1370
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1371
      checkReady();
1372
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1373
      this.___currentMethod = method_call;
1374
      ___manager.call(method_call);
1375
    }
1376
 
1377
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1378
      private long catalogItemId;
1379
      private String destination_pin;
1380
      private DeliveryType type;
1381
      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 {
1382
        super(client, protocolFactory, transport, resultHandler, false);
1383
        this.catalogItemId = catalogItemId;
1384
        this.destination_pin = destination_pin;
1385
        this.type = type;
1386
      }
1387
 
1388
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1389
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1390
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1391
        args.setCatalogItemId(catalogItemId);
1392
        args.setDestination_pin(destination_pin);
1393
        args.setType(type);
1394
        args.write(prot);
1395
        prot.writeMessageEnd();
1396
      }
1397
 
9840 amit.gupta 1398
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1399
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1400
          throw new IllegalStateException("Method call not finished!");
1401
        }
1402
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1403
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1404
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1405
      }
1406
    }
1407
 
5527 anupam.sin 1408
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1409
      checkReady();
1410
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1411
      this.___currentMethod = method_call;
1412
      ___manager.call(method_call);
1413
    }
1414
 
1415
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1416
      private long pickUp;
1417
      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 {
1418
        super(client, protocolFactory, transport, resultHandler, false);
1419
        this.pickUp = pickUp;
1420
      }
1421
 
1422
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1423
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1424
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1425
        args.setPickUp(pickUp);
1426
        args.write(prot);
1427
        prot.writeMessageEnd();
1428
      }
1429
 
1430
      public long getResult() throws org.apache.thrift.TException {
1431
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1432
          throw new IllegalStateException("Method call not finished!");
1433
        }
1434
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1436
        return (new Client(prot)).recv_getProviderForPickupType();
1437
      }
1438
    }
1439
 
5553 rajveer 1440
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1441
      checkReady();
1442
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1443
      this.___currentMethod = method_call;
1444
      ___manager.call(method_call);
1445
    }
1446
 
1447
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1448
      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 {
1449
        super(client, protocolFactory, transport, resultHandler, false);
1450
      }
1451
 
1452
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1453
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1454
        getAllPickupStores_args args = new getAllPickupStores_args();
1455
        args.write(prot);
1456
        prot.writeMessageEnd();
1457
      }
1458
 
1459
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1460
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1461
          throw new IllegalStateException("Method call not finished!");
1462
        }
1463
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1465
        return (new Client(prot)).recv_getAllPickupStores();
1466
      }
1467
    }
1468
 
1469
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1470
      checkReady();
1471
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1472
      this.___currentMethod = method_call;
1473
      ___manager.call(method_call);
1474
    }
1475
 
1476
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1477
      private long storeId;
1478
      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 {
1479
        super(client, protocolFactory, transport, resultHandler, false);
1480
        this.storeId = storeId;
1481
      }
1482
 
1483
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1484
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1485
        getPickupStore_args args = new getPickupStore_args();
1486
        args.setStoreId(storeId);
1487
        args.write(prot);
1488
        prot.writeMessageEnd();
1489
      }
1490
 
1491
      public PickupStore getResult() throws org.apache.thrift.TException {
1492
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1493
          throw new IllegalStateException("Method call not finished!");
1494
        }
1495
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1496
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1497
        return (new Client(prot)).recv_getPickupStore();
1498
      }
1499
    }
1500
 
5719 rajveer 1501
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1502
      checkReady();
1503
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1504
      this.___currentMethod = method_call;
1505
      ___manager.call(method_call);
1506
    }
1507
 
1508
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1509
      private String hotspotId;
1510
      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 {
1511
        super(client, protocolFactory, transport, resultHandler, false);
1512
        this.hotspotId = hotspotId;
1513
      }
1514
 
1515
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1516
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1517
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1518
        args.setHotspotId(hotspotId);
1519
        args.write(prot);
1520
        prot.writeMessageEnd();
1521
      }
1522
 
1523
      public PickupStore getResult() throws org.apache.thrift.TException {
1524
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1525
          throw new IllegalStateException("Method call not finished!");
1526
        }
1527
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1528
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1529
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1530
      }
1531
    }
1532
 
6524 rajveer 1533
    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 1534
      checkReady();
6524 rajveer 1535
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1536
      this.___currentMethod = method_call;
1537
      ___manager.call(method_call);
1538
    }
1539
 
1540
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1541
      private long providerId;
1542
      private String pincode;
1543
      private String destCode;
1544
      private boolean exp;
1545
      private boolean cod;
1546
      private int stationType;
6524 rajveer 1547
      private boolean otgAvailable;
1548
      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 1549
        super(client, protocolFactory, transport, resultHandler, false);
1550
        this.providerId = providerId;
1551
        this.pincode = pincode;
1552
        this.destCode = destCode;
1553
        this.exp = exp;
1554
        this.cod = cod;
1555
        this.stationType = stationType;
6524 rajveer 1556
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1557
      }
1558
 
1559
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1560
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1561
        addPincode_args args = new addPincode_args();
1562
        args.setProviderId(providerId);
1563
        args.setPincode(pincode);
1564
        args.setDestCode(destCode);
1565
        args.setExp(exp);
1566
        args.setCod(cod);
1567
        args.setStationType(stationType);
6524 rajveer 1568
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1569
        args.write(prot);
1570
        prot.writeMessageEnd();
1571
      }
1572
 
1573
      public void getResult() throws org.apache.thrift.TException {
1574
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1575
          throw new IllegalStateException("Method call not finished!");
1576
        }
1577
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1578
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1579
        (new Client(prot)).recv_addPincode();
1580
      }
1581
    }
1582
 
6524 rajveer 1583
    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 1584
      checkReady();
6524 rajveer 1585
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1586
      this.___currentMethod = method_call;
1587
      ___manager.call(method_call);
1588
    }
1589
 
1590
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1591
      private long providerId;
1592
      private String pincode;
1593
      private boolean exp;
1594
      private boolean cod;
6524 rajveer 1595
      private boolean otgAvailable;
1596
      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 1597
        super(client, protocolFactory, transport, resultHandler, false);
1598
        this.providerId = providerId;
1599
        this.pincode = pincode;
1600
        this.exp = exp;
1601
        this.cod = cod;
6524 rajveer 1602
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1603
      }
1604
 
1605
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1606
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1607
        updatePincode_args args = new updatePincode_args();
1608
        args.setProviderId(providerId);
1609
        args.setPincode(pincode);
1610
        args.setExp(exp);
1611
        args.setCod(cod);
6524 rajveer 1612
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1613
        args.write(prot);
1614
        prot.writeMessageEnd();
1615
      }
1616
 
1617
      public void getResult() throws org.apache.thrift.TException {
1618
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1619
          throw new IllegalStateException("Method call not finished!");
1620
        }
1621
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1622
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1623
        (new Client(prot)).recv_updatePincode();
1624
      }
1625
    }
1626
 
13146 manish.sha 1627
    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 1628
      checkReady();
13146 manish.sha 1629
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1630
      this.___currentMethod = method_call;
1631
      ___manager.call(method_call);
1632
    }
1633
 
1634
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1635
      private long providerId;
1636
      private boolean cod;
1637
      private List<String> awbs;
13146 manish.sha 1638
      private long awbUsedFor;
1639
      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 1640
        super(client, protocolFactory, transport, resultHandler, false);
1641
        this.providerId = providerId;
1642
        this.cod = cod;
1643
        this.awbs = awbs;
13146 manish.sha 1644
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1645
      }
1646
 
1647
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1648
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1649
        addNewAwbs_args args = new addNewAwbs_args();
1650
        args.setProviderId(providerId);
1651
        args.setCod(cod);
1652
        args.setAwbs(awbs);
13146 manish.sha 1653
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1654
        args.write(prot);
1655
        prot.writeMessageEnd();
1656
      }
1657
 
1658
      public boolean getResult() throws org.apache.thrift.TException {
1659
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1660
          throw new IllegalStateException("Method call not finished!");
1661
        }
1662
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1663
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1664
        return (new Client(prot)).recv_addNewAwbs();
1665
      }
1666
    }
1667
 
23123 amit.gupta 1668
    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 1669
      checkReady();
23123 amit.gupta 1670
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, provider, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1671
      this.___currentMethod = method_call;
1672
      ___manager.call(method_call);
1673
    }
1674
 
7788 manish.sha 1675
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1676
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1677
      private boolean runCompleteUpdate;
23123 amit.gupta 1678
      private long provider;
1679
      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 1680
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1681
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1682
        this.runCompleteUpdate = runCompleteUpdate;
23123 amit.gupta 1683
        this.provider = provider;
7737 manish.sha 1684
      }
1685
 
1686
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1687
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1688
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1689
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1690
        args.setRunCompleteUpdate(runCompleteUpdate);
23123 amit.gupta 1691
        args.setProvider(provider);
7737 manish.sha 1692
        args.write(prot);
1693
        prot.writeMessageEnd();
1694
      }
1695
 
1696
      public void getResult() throws org.apache.thrift.TException {
1697
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1698
          throw new IllegalStateException("Method call not finished!");
1699
        }
1700
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1701
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1702
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1703
      }
1704
    }
1705
 
7888 rajveer 1706
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1707
      checkReady();
1708
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1709
      this.___currentMethod = method_call;
1710
      ___manager.call(method_call);
1711
    }
1712
 
1713
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1714
      private long startDate;
1715
      private long days;
1716
      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 {
1717
        super(client, protocolFactory, transport, resultHandler, false);
1718
        this.startDate = startDate;
1719
        this.days = days;
1720
      }
1721
 
1722
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1723
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1724
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1725
        args.setStartDate(startDate);
1726
        args.setDays(days);
1727
        args.write(prot);
1728
        prot.writeMessageEnd();
1729
      }
1730
 
1731
      public long getResult() throws org.apache.thrift.TException {
1732
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1733
          throw new IllegalStateException("Method call not finished!");
1734
        }
1735
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1736
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1737
        return (new Client(prot)).recv_adjustDeliveryDays();
1738
      }
1739
    }
1740
 
12895 manish.sha 1741
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1742
      checkReady();
1743
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1744
      this.___currentMethod = method_call;
1745
      ___manager.call(method_call);
1746
    }
1747
 
1748
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1749
      private String pincode;
1750
      private long whLocation;
1751
      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 {
1752
        super(client, protocolFactory, transport, resultHandler, false);
1753
        this.pincode = pincode;
1754
        this.whLocation = whLocation;
1755
      }
1756
 
1757
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1758
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1759
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1760
        args.setPincode(pincode);
1761
        args.setWhLocation(whLocation);
1762
        args.write(prot);
1763
        prot.writeMessageEnd();
1764
      }
1765
 
1766
      public long getResult() throws org.apache.thrift.TException {
1767
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1768
          throw new IllegalStateException("Method call not finished!");
1769
        }
1770
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1771
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1772
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1773
      }
1774
    }
1775
 
13146 manish.sha 1776
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1777
      checkReady();
1778
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1779
      this.___currentMethod = method_call;
1780
      ___manager.call(method_call);
1781
    }
1782
 
1783
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1784
      private long providerId;
1785
      private DeliveryType type;
1786
      private long orderQuantity;
1787
      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 {
1788
        super(client, protocolFactory, transport, resultHandler, false);
1789
        this.providerId = providerId;
1790
        this.type = type;
1791
        this.orderQuantity = orderQuantity;
1792
      }
1793
 
1794
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1795
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1796
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1797
        args.setProviderId(providerId);
1798
        args.setType(type);
1799
        args.setOrderQuantity(orderQuantity);
1800
        args.write(prot);
1801
        prot.writeMessageEnd();
1802
      }
1803
 
1804
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1805
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1806
          throw new IllegalStateException("Method call not finished!");
1807
        }
1808
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1810
        return (new Client(prot)).recv_getNewEmptyAwb();
1811
      }
1812
    }
1813
 
1814
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1815
      checkReady();
1816
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1817
      this.___currentMethod = method_call;
1818
      ___manager.call(method_call);
1819
    }
1820
 
1821
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1822
      private long providerId;
1823
      private String pincode;
1824
      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 {
1825
        super(client, protocolFactory, transport, resultHandler, false);
1826
        this.providerId = providerId;
1827
        this.pincode = pincode;
1828
      }
1829
 
1830
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1831
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1832
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1833
        args.setProviderId(providerId);
1834
        args.setPincode(pincode);
1835
        args.write(prot);
1836
        prot.writeMessageEnd();
1837
      }
1838
 
1839
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1840
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1841
          throw new IllegalStateException("Method call not finished!");
1842
        }
1843
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1844
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1845
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1846
      }
1847
    }
1848
 
19413 amit.gupta 1849
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1850
      checkReady();
1851
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1852
      this.___currentMethod = method_call;
1853
      ___manager.call(method_call);
1854
    }
1855
 
1856
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1857
      private String destPincode;
1858
      private List<Long> price;
1859
      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 {
1860
        super(client, protocolFactory, transport, resultHandler, false);
1861
        this.destPincode = destPincode;
1862
        this.price = price;
1863
      }
1864
 
1865
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1866
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1867
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1868
        args.setDestPincode(destPincode);
1869
        args.setPrice(price);
1870
        args.write(prot);
1871
        prot.writeMessageEnd();
1872
      }
1873
 
1874
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1875
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1876
          throw new IllegalStateException("Method call not finished!");
1877
        }
1878
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1879
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1880
        return (new Client(prot)).recv_getLocationInfoMap();
1881
      }
1882
    }
1883
 
19474 manish.sha 1884
    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 1885
      checkReady();
19474 manish.sha 1886
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
19421 manish.sha 1887
      this.___currentMethod = method_call;
1888
      ___manager.call(method_call);
1889
    }
1890
 
1891
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1892
      private String pincode;
1893
      private double transactionAmount;
1894
      private boolean isCod;
1895
      private double weight;
1896
      private long billingWarehouseId;
19474 manish.sha 1897
      private boolean isCompleteTxn;
1898
      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 1899
        super(client, protocolFactory, transport, resultHandler, false);
1900
        this.pincode = pincode;
1901
        this.transactionAmount = transactionAmount;
1902
        this.isCod = isCod;
1903
        this.weight = weight;
1904
        this.billingWarehouseId = billingWarehouseId;
19474 manish.sha 1905
        this.isCompleteTxn = isCompleteTxn;
19421 manish.sha 1906
      }
1907
 
1908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1910
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1911
        args.setPincode(pincode);
1912
        args.setTransactionAmount(transactionAmount);
1913
        args.setIsCod(isCod);
1914
        args.setWeight(weight);
1915
        args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 1916
        args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 1917
        args.write(prot);
1918
        prot.writeMessageEnd();
1919
      }
1920
 
1921
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1922
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1923
          throw new IllegalStateException("Method call not finished!");
1924
        }
1925
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1927
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1928
      }
1929
    }
1930
 
20744 kshitij.so 1931
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
1932
      checkReady();
1933
      getBluedartAttributesForLogisticsTxnId_call method_call = new getBluedartAttributesForLogisticsTxnId_call(logisticsTxnId, name, resultHandler, this, ___protocolFactory, ___transport);
1934
      this.___currentMethod = method_call;
1935
      ___manager.call(method_call);
1936
    }
1937
 
1938
    public static class getBluedartAttributesForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1939
      private String logisticsTxnId;
1940
      private String name;
1941
      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 {
1942
        super(client, protocolFactory, transport, resultHandler, false);
1943
        this.logisticsTxnId = logisticsTxnId;
1944
        this.name = name;
1945
      }
1946
 
1947
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1948
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBluedartAttributesForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1949
        getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
1950
        args.setLogisticsTxnId(logisticsTxnId);
1951
        args.setName(name);
1952
        args.write(prot);
1953
        prot.writeMessageEnd();
1954
      }
1955
 
1956
      public BluedartAttributes getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1957
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1958
          throw new IllegalStateException("Method call not finished!");
1959
        }
1960
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1961
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1962
        return (new Client(prot)).recv_getBluedartAttributesForLogisticsTxnId();
1963
      }
1964
    }
1965
 
23218 amit.gupta 1966
    public void pushCourierDetailsForEcomExpress(List<String> logisticsTransactionIds, org.apache.thrift.async.AsyncMethodCallback<pushCourierDetailsForEcomExpress_call> resultHandler) throws org.apache.thrift.TException {
1967
      checkReady();
1968
      pushCourierDetailsForEcomExpress_call method_call = new pushCourierDetailsForEcomExpress_call(logisticsTransactionIds, resultHandler, this, ___protocolFactory, ___transport);
1969
      this.___currentMethod = method_call;
1970
      ___manager.call(method_call);
1971
    }
1972
 
1973
    public static class pushCourierDetailsForEcomExpress_call extends org.apache.thrift.async.TAsyncMethodCall {
1974
      private List<String> logisticsTransactionIds;
1975
      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 {
1976
        super(client, protocolFactory, transport, resultHandler, false);
1977
        this.logisticsTransactionIds = logisticsTransactionIds;
1978
      }
1979
 
1980
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1981
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushCourierDetailsForEcomExpress", org.apache.thrift.protocol.TMessageType.CALL, 0));
1982
        pushCourierDetailsForEcomExpress_args args = new pushCourierDetailsForEcomExpress_args();
1983
        args.setLogisticsTransactionIds(logisticsTransactionIds);
1984
        args.write(prot);
1985
        prot.writeMessageEnd();
1986
      }
1987
 
1988
      public boolean getResult() throws org.apache.thrift.TException {
1989
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1990
          throw new IllegalStateException("Method call not finished!");
1991
        }
1992
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1993
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1994
        return (new Client(prot)).recv_pushCourierDetailsForEcomExpress();
1995
      }
1996
    }
1997
 
3430 rajveer 1998
  }
1999
 
2000
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2001
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2002
    public Processor(I iface) {
2003
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2004
    }
2005
 
2006
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2007
      super(iface, getProcessMap(processMap));
2008
    }
2009
 
2010
    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) {
2011
      processMap.put("getProvider", new getProvider());
2012
      processMap.put("getAllProviders", new getAllProviders());
2013
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 2014
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 2015
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
2016
      processMap.put("getEmptyAWB", new getEmptyAWB());
2017
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 2018
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 2019
      processMap.put("getDestinationCode", new getDestinationCode());
2020
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
2021
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 2022
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 2023
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 2024
      processMap.put("getAllPickupStores", new getAllPickupStores());
2025
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 2026
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 2027
      processMap.put("addPincode", new addPincode());
2028
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 2029
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 2030
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 2031
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 2032
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 2033
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
2034
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 2035
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 2036
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
20744 kshitij.so 2037
      processMap.put("getBluedartAttributesForLogisticsTxnId", new getBluedartAttributesForLogisticsTxnId());
23218 amit.gupta 2038
      processMap.put("pushCourierDetailsForEcomExpress", new pushCourierDetailsForEcomExpress());
3430 rajveer 2039
      return processMap;
2040
    }
2041
 
2042
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
2043
      public getProvider() {
2044
        super("getProvider");
2045
      }
2046
 
2047
      protected getProvider_args getEmptyArgsInstance() {
2048
        return new getProvider_args();
2049
      }
2050
 
2051
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 2052
        getProvider_result result = new getProvider_result();
2053
        try {
3430 rajveer 2054
          result.success = iface.getProvider(args.providerId);
668 chandransh 2055
        } catch (LogisticsServiceException lse) {
2056
          result.lse = lse;
2057
        }
3430 rajveer 2058
        return result;
668 chandransh 2059
      }
2060
    }
2061
 
3430 rajveer 2062
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
2063
      public getAllProviders() {
2064
        super("getAllProviders");
2065
      }
2066
 
2067
      protected getAllProviders_args getEmptyArgsInstance() {
2068
        return new getAllProviders_args();
2069
      }
2070
 
2071
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 2072
        getAllProviders_result result = new getAllProviders_result();
2073
        try {
3430 rajveer 2074
          result.success = iface.getAllProviders();
674 chandransh 2075
        } catch (LogisticsServiceException lse) {
2076
          result.lse = lse;
2077
        }
3430 rajveer 2078
        return result;
674 chandransh 2079
      }
2080
    }
2081
 
3430 rajveer 2082
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
2083
      public getLogisticsEstimation() {
2084
        super("getLogisticsEstimation");
2085
      }
2086
 
2087
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
2088
        return new getLogisticsEstimation_args();
2089
      }
2090
 
2091
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 2092
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 2093
        try {
4630 mandeep.dh 2094
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 2095
        } catch (LogisticsServiceException se) {
2096
          result.se = se;
2097
        }
3430 rajveer 2098
        return result;
483 rajveer 2099
      }
2100
    }
2101
 
7256 rajveer 2102
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
2103
      public getLogisticsEstimationForStore() {
2104
        super("getLogisticsEstimationForStore");
2105
      }
2106
 
2107
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
2108
        return new getLogisticsEstimationForStore_args();
2109
      }
2110
 
2111
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
2112
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
2113
        try {
2114
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
2115
        } catch (LogisticsServiceException se) {
2116
          result.se = se;
2117
        }
2118
        return result;
2119
      }
2120
    }
2121
 
3430 rajveer 2122
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
2123
      public getLogisticsInfo() {
2124
        super("getLogisticsInfo");
2125
      }
2126
 
2127
      protected getLogisticsInfo_args getEmptyArgsInstance() {
2128
        return new getLogisticsInfo_args();
2129
      }
2130
 
2131
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 2132
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 2133
        try {
23446 amit.gupta 2134
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp, args.stateId);
471 rajveer 2135
        } catch (LogisticsServiceException se) {
2136
          result.se = se;
2137
        }
3430 rajveer 2138
        return result;
471 rajveer 2139
      }
2140
    }
2141
 
3430 rajveer 2142
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2143
      public getEmptyAWB() {
2144
        super("getEmptyAWB");
2145
      }
2146
 
2147
      protected getEmptyAWB_args getEmptyArgsInstance() {
2148
        return new getEmptyAWB_args();
2149
      }
2150
 
2151
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2152
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2153
        try {
20724 kshitij.so 2154
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
648 chandransh 2155
        } catch (LogisticsServiceException se) {
2156
          result.se = se;
2157
        }
3430 rajveer 2158
        return result;
412 ashish 2159
      }
2160
    }
2161
 
3430 rajveer 2162
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2163
      public getShipmentInfo() {
2164
        super("getShipmentInfo");
2165
      }
2166
 
2167
      protected getShipmentInfo_args getEmptyArgsInstance() {
2168
        return new getShipmentInfo_args();
2169
      }
2170
 
2171
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2172
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2173
        try {
6643 rajveer 2174
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2175
        } catch (LogisticsServiceException se) {
2176
          result.se = se;
2177
        }
3430 rajveer 2178
        return result;
412 ashish 2179
      }
2180
    }
2181
 
6643 rajveer 2182
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2183
      public storeShipmentInfo() {
2184
        super("storeShipmentInfo");
2185
      }
2186
 
2187
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2188
        return new storeShipmentInfo_args();
2189
      }
2190
 
2191
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2192
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2193
        try {
2194
          iface.storeShipmentInfo(args.update);
2195
        } catch (LogisticsServiceException se) {
2196
          result.se = se;
2197
        }
2198
        return result;
2199
      }
2200
    }
2201
 
3430 rajveer 2202
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2203
      public getDestinationCode() {
2204
        super("getDestinationCode");
2205
      }
2206
 
2207
      protected getDestinationCode_args getEmptyArgsInstance() {
2208
        return new getDestinationCode_args();
2209
      }
2210
 
2211
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2212
        getDestinationCode_result result = new getDestinationCode_result();
2213
        try {
3430 rajveer 2214
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2215
        } catch (LogisticsServiceException se) {
2216
          result.se = se;
2217
        }
3430 rajveer 2218
        return result;
730 chandransh 2219
      }
2220
    }
2221
 
3430 rajveer 2222
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2223
      public getFreeAwbCount() {
2224
        super("getFreeAwbCount");
2225
      }
2226
 
2227
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2228
        return new getFreeAwbCount_args();
2229
      }
2230
 
2231
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2232
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2233
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2234
        result.setSuccessIsSet(true);
3430 rajveer 2235
        return result;
1139 chandransh 2236
      }
2237
    }
2238
 
3430 rajveer 2239
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2240
      public getHolidays() {
2241
        super("getHolidays");
2242
      }
2243
 
2244
      protected getHolidays_args getEmptyArgsInstance() {
2245
        return new getHolidays_args();
2246
      }
2247
 
2248
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2249
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2250
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2251
        return result;
1730 ankur.sing 2252
      }
2253
    }
2254
 
4934 amit.gupta 2255
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2256
      public getEntityLogisticsEstimation() {
2257
        super("getEntityLogisticsEstimation");
2258
      }
2259
 
2260
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2261
        return new getEntityLogisticsEstimation_args();
2262
      }
2263
 
2264
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2265
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2266
        try {
2267
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2268
        } catch (LogisticsServiceException se) {
2269
          result.se = se;
2270
        }
2271
        return result;
2272
      }
2273
    }
2274
 
5527 anupam.sin 2275
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2276
      public getProviderForPickupType() {
2277
        super("getProviderForPickupType");
2278
      }
2279
 
2280
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2281
        return new getProviderForPickupType_args();
2282
      }
2283
 
2284
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2285
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2286
        result.success = iface.getProviderForPickupType(args.pickUp);
2287
        result.setSuccessIsSet(true);
2288
        return result;
2289
      }
2290
    }
2291
 
5553 rajveer 2292
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2293
      public getAllPickupStores() {
2294
        super("getAllPickupStores");
2295
      }
2296
 
2297
      protected getAllPickupStores_args getEmptyArgsInstance() {
2298
        return new getAllPickupStores_args();
2299
      }
2300
 
2301
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2302
        getAllPickupStores_result result = new getAllPickupStores_result();
2303
        result.success = iface.getAllPickupStores();
2304
        return result;
2305
      }
2306
    }
2307
 
2308
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2309
      public getPickupStore() {
2310
        super("getPickupStore");
2311
      }
2312
 
2313
      protected getPickupStore_args getEmptyArgsInstance() {
2314
        return new getPickupStore_args();
2315
      }
2316
 
2317
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2318
        getPickupStore_result result = new getPickupStore_result();
2319
        result.success = iface.getPickupStore(args.storeId);
2320
        return result;
2321
      }
2322
    }
2323
 
5719 rajveer 2324
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2325
      public getPickupStoreByHotspotId() {
2326
        super("getPickupStoreByHotspotId");
2327
      }
2328
 
2329
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2330
        return new getPickupStoreByHotspotId_args();
2331
      }
2332
 
2333
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2334
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2335
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2336
        return result;
2337
      }
2338
    }
2339
 
6322 amar.kumar 2340
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2341
      public addPincode() {
2342
        super("addPincode");
2343
      }
2344
 
2345
      protected addPincode_args getEmptyArgsInstance() {
2346
        return new addPincode_args();
2347
      }
2348
 
2349
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2350
        addPincode_result result = new addPincode_result();
6524 rajveer 2351
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2352
        return result;
2353
      }
2354
    }
2355
 
2356
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2357
      public updatePincode() {
2358
        super("updatePincode");
2359
      }
2360
 
2361
      protected updatePincode_args getEmptyArgsInstance() {
2362
        return new updatePincode_args();
2363
      }
2364
 
2365
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2366
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2367
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2368
        return result;
2369
      }
2370
    }
2371
 
7567 rajveer 2372
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2373
      public addNewAwbs() {
2374
        super("addNewAwbs");
2375
      }
2376
 
2377
      protected addNewAwbs_args getEmptyArgsInstance() {
2378
        return new addNewAwbs_args();
2379
      }
2380
 
2381
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2382
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2383
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2384
        result.setSuccessIsSet(true);
2385
        return result;
2386
      }
2387
    }
2388
 
7788 manish.sha 2389
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2390
      public runLogisticsLocationInfoUpdate() {
2391
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2392
      }
2393
 
7788 manish.sha 2394
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2395
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2396
      }
2397
 
7788 manish.sha 2398
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2399
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
23123 amit.gupta 2400
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate, args.provider);
7737 manish.sha 2401
        return result;
2402
      }
2403
    }
2404
 
7888 rajveer 2405
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2406
      public adjustDeliveryDays() {
2407
        super("adjustDeliveryDays");
2408
      }
2409
 
2410
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2411
        return new adjustDeliveryDays_args();
2412
      }
2413
 
2414
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2415
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2416
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2417
        result.setSuccessIsSet(true);
2418
        return result;
2419
      }
2420
    }
2421
 
12895 manish.sha 2422
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2423
      public getFirstDeliveryEstimateForWhLocation() {
2424
        super("getFirstDeliveryEstimateForWhLocation");
2425
      }
2426
 
2427
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2428
        return new getFirstDeliveryEstimateForWhLocation_args();
2429
      }
2430
 
2431
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2432
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2433
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2434
        result.setSuccessIsSet(true);
2435
        return result;
2436
      }
2437
    }
2438
 
13146 manish.sha 2439
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2440
      public getNewEmptyAwb() {
2441
        super("getNewEmptyAwb");
2442
      }
2443
 
2444
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2445
        return new getNewEmptyAwb_args();
2446
      }
2447
 
2448
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2449
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2450
        try {
2451
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2452
        } catch (LogisticsServiceException se) {
2453
          result.se = se;
2454
        }
2455
        return result;
2456
      }
2457
    }
2458
 
2459
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2460
      public getProviderLimitDetailsForPincode() {
2461
        super("getProviderLimitDetailsForPincode");
2462
      }
2463
 
2464
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2465
        return new getProviderLimitDetailsForPincode_args();
2466
      }
2467
 
2468
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2469
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2470
        try {
2471
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2472
        } catch (LogisticsServiceException se) {
2473
          result.se = se;
2474
        }
2475
        return result;
2476
      }
2477
    }
2478
 
19413 amit.gupta 2479
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2480
      public getLocationInfoMap() {
2481
        super("getLocationInfoMap");
2482
      }
2483
 
2484
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2485
        return new getLocationInfoMap_args();
2486
      }
2487
 
2488
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2489
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2490
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2491
        return result;
2492
      }
2493
    }
2494
 
19421 manish.sha 2495
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2496
      public getCostingAndDeliveryEstimateForPincode() {
2497
        super("getCostingAndDeliveryEstimateForPincode");
2498
      }
2499
 
2500
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2501
        return new getCostingAndDeliveryEstimateForPincode_args();
2502
      }
2503
 
2504
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2505
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2506
        try {
19474 manish.sha 2507
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
19421 manish.sha 2508
        } catch (LogisticsServiceException se) {
2509
          result.se = se;
2510
        }
2511
        return result;
2512
      }
2513
    }
2514
 
20744 kshitij.so 2515
    private static class getBluedartAttributesForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBluedartAttributesForLogisticsTxnId_args> {
2516
      public getBluedartAttributesForLogisticsTxnId() {
2517
        super("getBluedartAttributesForLogisticsTxnId");
2518
      }
2519
 
2520
      protected getBluedartAttributesForLogisticsTxnId_args getEmptyArgsInstance() {
2521
        return new getBluedartAttributesForLogisticsTxnId_args();
2522
      }
2523
 
2524
      protected getBluedartAttributesForLogisticsTxnId_result getResult(I iface, getBluedartAttributesForLogisticsTxnId_args args) throws org.apache.thrift.TException {
2525
        getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
2526
        try {
2527
          result.success = iface.getBluedartAttributesForLogisticsTxnId(args.logisticsTxnId, args.name);
2528
        } catch (LogisticsServiceException se) {
2529
          result.se = se;
2530
        }
2531
        return result;
2532
      }
2533
    }
2534
 
23218 amit.gupta 2535
    private static class pushCourierDetailsForEcomExpress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushCourierDetailsForEcomExpress_args> {
2536
      public pushCourierDetailsForEcomExpress() {
2537
        super("pushCourierDetailsForEcomExpress");
2538
      }
2539
 
2540
      protected pushCourierDetailsForEcomExpress_args getEmptyArgsInstance() {
2541
        return new pushCourierDetailsForEcomExpress_args();
2542
      }
2543
 
2544
      protected pushCourierDetailsForEcomExpress_result getResult(I iface, pushCourierDetailsForEcomExpress_args args) throws org.apache.thrift.TException {
2545
        pushCourierDetailsForEcomExpress_result result = new pushCourierDetailsForEcomExpress_result();
2546
        result.success = iface.pushCourierDetailsForEcomExpress(args.logisticsTransactionIds);
2547
        result.setSuccessIsSet(true);
2548
        return result;
2549
      }
2550
    }
2551
 
412 ashish 2552
  }
2553
 
3430 rajveer 2554
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2556
 
3430 rajveer 2557
    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 2558
 
3430 rajveer 2559
    private long providerId; // required
668 chandransh 2560
 
2561
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2562
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2563
      PROVIDER_ID((short)1, "providerId");
2564
 
2565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2566
 
2567
      static {
2568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2569
          byName.put(field.getFieldName(), field);
2570
        }
2571
      }
2572
 
2573
      /**
2574
       * Find the _Fields constant that matches fieldId, or null if its not found.
2575
       */
2576
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2577
        switch(fieldId) {
2578
          case 1: // PROVIDER_ID
2579
            return PROVIDER_ID;
2580
          default:
2581
            return null;
2582
        }
668 chandransh 2583
      }
2584
 
2585
      /**
2586
       * Find the _Fields constant that matches fieldId, throwing an exception
2587
       * if it is not found.
2588
       */
2589
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2590
        _Fields fields = findByThriftId(fieldId);
2591
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2592
        return fields;
2593
      }
2594
 
2595
      /**
2596
       * Find the _Fields constant that matches name, or null if its not found.
2597
       */
2598
      public static _Fields findByName(String name) {
2599
        return byName.get(name);
2600
      }
2601
 
2602
      private final short _thriftId;
2603
      private final String _fieldName;
2604
 
2605
      _Fields(short thriftId, String fieldName) {
2606
        _thriftId = thriftId;
2607
        _fieldName = fieldName;
2608
      }
2609
 
2610
      public short getThriftFieldId() {
2611
        return _thriftId;
2612
      }
2613
 
2614
      public String getFieldName() {
2615
        return _fieldName;
2616
      }
2617
    }
2618
 
2619
    // isset id assignments
2620
    private static final int __PROVIDERID_ISSET_ID = 0;
2621
    private BitSet __isset_bit_vector = new BitSet(1);
2622
 
3430 rajveer 2623
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2624
    static {
3430 rajveer 2625
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2626
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2627
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2628
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2629
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2630
    }
2631
 
2632
    public getProvider_args() {
2633
    }
2634
 
2635
    public getProvider_args(
2636
      long providerId)
2637
    {
2638
      this();
2639
      this.providerId = providerId;
2640
      setProviderIdIsSet(true);
2641
    }
2642
 
2643
    /**
2644
     * Performs a deep copy on <i>other</i>.
2645
     */
2646
    public getProvider_args(getProvider_args other) {
2647
      __isset_bit_vector.clear();
2648
      __isset_bit_vector.or(other.__isset_bit_vector);
2649
      this.providerId = other.providerId;
2650
    }
2651
 
2652
    public getProvider_args deepCopy() {
2653
      return new getProvider_args(this);
2654
    }
2655
 
3430 rajveer 2656
    @Override
2657
    public void clear() {
2658
      setProviderIdIsSet(false);
2659
      this.providerId = 0;
668 chandransh 2660
    }
2661
 
2662
    public long getProviderId() {
2663
      return this.providerId;
2664
    }
2665
 
3430 rajveer 2666
    public void setProviderId(long providerId) {
668 chandransh 2667
      this.providerId = providerId;
2668
      setProviderIdIsSet(true);
2669
    }
2670
 
2671
    public void unsetProviderId() {
2672
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2673
    }
2674
 
3430 rajveer 2675
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2676
    public boolean isSetProviderId() {
2677
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2678
    }
2679
 
2680
    public void setProviderIdIsSet(boolean value) {
2681
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2682
    }
2683
 
2684
    public void setFieldValue(_Fields field, Object value) {
2685
      switch (field) {
2686
      case PROVIDER_ID:
2687
        if (value == null) {
2688
          unsetProviderId();
2689
        } else {
2690
          setProviderId((Long)value);
2691
        }
2692
        break;
2693
 
2694
      }
2695
    }
2696
 
2697
    public Object getFieldValue(_Fields field) {
2698
      switch (field) {
2699
      case PROVIDER_ID:
3430 rajveer 2700
        return Long.valueOf(getProviderId());
668 chandransh 2701
 
2702
      }
2703
      throw new IllegalStateException();
2704
    }
2705
 
3430 rajveer 2706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2707
    public boolean isSet(_Fields field) {
2708
      if (field == null) {
2709
        throw new IllegalArgumentException();
2710
      }
668 chandransh 2711
 
2712
      switch (field) {
2713
      case PROVIDER_ID:
2714
        return isSetProviderId();
2715
      }
2716
      throw new IllegalStateException();
2717
    }
2718
 
2719
    @Override
2720
    public boolean equals(Object that) {
2721
      if (that == null)
2722
        return false;
2723
      if (that instanceof getProvider_args)
2724
        return this.equals((getProvider_args)that);
2725
      return false;
2726
    }
2727
 
2728
    public boolean equals(getProvider_args that) {
2729
      if (that == null)
2730
        return false;
2731
 
2732
      boolean this_present_providerId = true;
2733
      boolean that_present_providerId = true;
2734
      if (this_present_providerId || that_present_providerId) {
2735
        if (!(this_present_providerId && that_present_providerId))
2736
          return false;
2737
        if (this.providerId != that.providerId)
2738
          return false;
2739
      }
2740
 
2741
      return true;
2742
    }
2743
 
2744
    @Override
2745
    public int hashCode() {
2746
      return 0;
2747
    }
2748
 
2749
    public int compareTo(getProvider_args other) {
2750
      if (!getClass().equals(other.getClass())) {
2751
        return getClass().getName().compareTo(other.getClass().getName());
2752
      }
2753
 
2754
      int lastComparison = 0;
2755
      getProvider_args typedOther = (getProvider_args)other;
2756
 
3430 rajveer 2757
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2758
      if (lastComparison != 0) {
2759
        return lastComparison;
2760
      }
3430 rajveer 2761
      if (isSetProviderId()) {
2762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2763
        if (lastComparison != 0) {
2764
          return lastComparison;
2765
        }
668 chandransh 2766
      }
2767
      return 0;
2768
    }
2769
 
3430 rajveer 2770
    public _Fields fieldForId(int fieldId) {
2771
      return _Fields.findByThriftId(fieldId);
2772
    }
2773
 
2774
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2775
      org.apache.thrift.protocol.TField field;
668 chandransh 2776
      iprot.readStructBegin();
2777
      while (true)
2778
      {
2779
        field = iprot.readFieldBegin();
3430 rajveer 2780
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2781
          break;
2782
        }
3430 rajveer 2783
        switch (field.id) {
2784
          case 1: // PROVIDER_ID
2785
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2786
              this.providerId = iprot.readI64();
2787
              setProviderIdIsSet(true);
2788
            } else { 
2789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2790
            }
2791
            break;
2792
          default:
2793
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2794
        }
3430 rajveer 2795
        iprot.readFieldEnd();
668 chandransh 2796
      }
2797
      iprot.readStructEnd();
2798
      validate();
2799
    }
2800
 
3430 rajveer 2801
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2802
      validate();
2803
 
2804
      oprot.writeStructBegin(STRUCT_DESC);
2805
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2806
      oprot.writeI64(this.providerId);
2807
      oprot.writeFieldEnd();
2808
      oprot.writeFieldStop();
2809
      oprot.writeStructEnd();
2810
    }
2811
 
2812
    @Override
2813
    public String toString() {
2814
      StringBuilder sb = new StringBuilder("getProvider_args(");
2815
      boolean first = true;
2816
 
2817
      sb.append("providerId:");
2818
      sb.append(this.providerId);
2819
      first = false;
2820
      sb.append(")");
2821
      return sb.toString();
2822
    }
2823
 
3430 rajveer 2824
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2825
      // check for required fields
2826
    }
2827
 
3430 rajveer 2828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2829
      try {
2830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2831
      } catch (org.apache.thrift.TException te) {
2832
        throw new java.io.IOException(te);
2833
      }
2834
    }
2835
 
2836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2837
      try {
2838
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2839
      } catch (org.apache.thrift.TException te) {
2840
        throw new java.io.IOException(te);
2841
      }
2842
    }
2843
 
668 chandransh 2844
  }
2845
 
3430 rajveer 2846
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2847
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2848
 
3430 rajveer 2849
    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);
2850
    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 2851
 
3430 rajveer 2852
    private Provider success; // required
2853
    private LogisticsServiceException lse; // required
668 chandransh 2854
 
2855
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2856
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2857
      SUCCESS((short)0, "success"),
2858
      LSE((short)1, "lse");
2859
 
2860
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2861
 
2862
      static {
2863
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2864
          byName.put(field.getFieldName(), field);
2865
        }
2866
      }
2867
 
2868
      /**
2869
       * Find the _Fields constant that matches fieldId, or null if its not found.
2870
       */
2871
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2872
        switch(fieldId) {
2873
          case 0: // SUCCESS
2874
            return SUCCESS;
2875
          case 1: // LSE
2876
            return LSE;
2877
          default:
2878
            return null;
2879
        }
668 chandransh 2880
      }
2881
 
2882
      /**
2883
       * Find the _Fields constant that matches fieldId, throwing an exception
2884
       * if it is not found.
2885
       */
2886
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2887
        _Fields fields = findByThriftId(fieldId);
2888
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2889
        return fields;
2890
      }
2891
 
2892
      /**
2893
       * Find the _Fields constant that matches name, or null if its not found.
2894
       */
2895
      public static _Fields findByName(String name) {
2896
        return byName.get(name);
2897
      }
2898
 
2899
      private final short _thriftId;
2900
      private final String _fieldName;
2901
 
2902
      _Fields(short thriftId, String fieldName) {
2903
        _thriftId = thriftId;
2904
        _fieldName = fieldName;
2905
      }
2906
 
2907
      public short getThriftFieldId() {
2908
        return _thriftId;
2909
      }
2910
 
2911
      public String getFieldName() {
2912
        return _fieldName;
2913
      }
2914
    }
2915
 
2916
    // isset id assignments
2917
 
3430 rajveer 2918
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2919
    static {
3430 rajveer 2920
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2921
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2922
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2923
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2924
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2925
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2926
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2927
    }
2928
 
2929
    public getProvider_result() {
2930
    }
2931
 
2932
    public getProvider_result(
2933
      Provider success,
2934
      LogisticsServiceException lse)
2935
    {
2936
      this();
2937
      this.success = success;
2938
      this.lse = lse;
2939
    }
2940
 
2941
    /**
2942
     * Performs a deep copy on <i>other</i>.
2943
     */
2944
    public getProvider_result(getProvider_result other) {
2945
      if (other.isSetSuccess()) {
2946
        this.success = new Provider(other.success);
2947
      }
2948
      if (other.isSetLse()) {
2949
        this.lse = new LogisticsServiceException(other.lse);
2950
      }
2951
    }
2952
 
2953
    public getProvider_result deepCopy() {
2954
      return new getProvider_result(this);
2955
    }
2956
 
3430 rajveer 2957
    @Override
2958
    public void clear() {
2959
      this.success = null;
2960
      this.lse = null;
668 chandransh 2961
    }
2962
 
2963
    public Provider getSuccess() {
2964
      return this.success;
2965
    }
2966
 
3430 rajveer 2967
    public void setSuccess(Provider success) {
668 chandransh 2968
      this.success = success;
2969
    }
2970
 
2971
    public void unsetSuccess() {
2972
      this.success = null;
2973
    }
2974
 
3430 rajveer 2975
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2976
    public boolean isSetSuccess() {
2977
      return this.success != null;
2978
    }
2979
 
2980
    public void setSuccessIsSet(boolean value) {
2981
      if (!value) {
2982
        this.success = null;
2983
      }
2984
    }
2985
 
2986
    public LogisticsServiceException getLse() {
2987
      return this.lse;
2988
    }
2989
 
3430 rajveer 2990
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2991
      this.lse = lse;
2992
    }
2993
 
2994
    public void unsetLse() {
2995
      this.lse = null;
2996
    }
2997
 
3430 rajveer 2998
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2999
    public boolean isSetLse() {
3000
      return this.lse != null;
3001
    }
3002
 
3003
    public void setLseIsSet(boolean value) {
3004
      if (!value) {
3005
        this.lse = null;
3006
      }
3007
    }
3008
 
3009
    public void setFieldValue(_Fields field, Object value) {
3010
      switch (field) {
3011
      case SUCCESS:
3012
        if (value == null) {
3013
          unsetSuccess();
3014
        } else {
3015
          setSuccess((Provider)value);
3016
        }
3017
        break;
3018
 
3019
      case LSE:
3020
        if (value == null) {
3021
          unsetLse();
3022
        } else {
3023
          setLse((LogisticsServiceException)value);
3024
        }
3025
        break;
3026
 
3027
      }
3028
    }
3029
 
3030
    public Object getFieldValue(_Fields field) {
3031
      switch (field) {
3032
      case SUCCESS:
3033
        return getSuccess();
3034
 
3035
      case LSE:
3036
        return getLse();
3037
 
3038
      }
3039
      throw new IllegalStateException();
3040
    }
3041
 
3430 rajveer 3042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3043
    public boolean isSet(_Fields field) {
3044
      if (field == null) {
3045
        throw new IllegalArgumentException();
3046
      }
668 chandransh 3047
 
3048
      switch (field) {
3049
      case SUCCESS:
3050
        return isSetSuccess();
3051
      case LSE:
3052
        return isSetLse();
3053
      }
3054
      throw new IllegalStateException();
3055
    }
3056
 
3057
    @Override
3058
    public boolean equals(Object that) {
3059
      if (that == null)
3060
        return false;
3061
      if (that instanceof getProvider_result)
3062
        return this.equals((getProvider_result)that);
3063
      return false;
3064
    }
3065
 
3066
    public boolean equals(getProvider_result that) {
3067
      if (that == null)
3068
        return false;
3069
 
3070
      boolean this_present_success = true && this.isSetSuccess();
3071
      boolean that_present_success = true && that.isSetSuccess();
3072
      if (this_present_success || that_present_success) {
3073
        if (!(this_present_success && that_present_success))
3074
          return false;
3075
        if (!this.success.equals(that.success))
3076
          return false;
3077
      }
3078
 
3079
      boolean this_present_lse = true && this.isSetLse();
3080
      boolean that_present_lse = true && that.isSetLse();
3081
      if (this_present_lse || that_present_lse) {
3082
        if (!(this_present_lse && that_present_lse))
3083
          return false;
3084
        if (!this.lse.equals(that.lse))
3085
          return false;
3086
      }
3087
 
3088
      return true;
3089
    }
3090
 
3091
    @Override
3092
    public int hashCode() {
3093
      return 0;
3094
    }
3095
 
3430 rajveer 3096
    public int compareTo(getProvider_result other) {
3097
      if (!getClass().equals(other.getClass())) {
3098
        return getClass().getName().compareTo(other.getClass().getName());
3099
      }
3100
 
3101
      int lastComparison = 0;
3102
      getProvider_result typedOther = (getProvider_result)other;
3103
 
3104
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3105
      if (lastComparison != 0) {
3106
        return lastComparison;
3107
      }
3108
      if (isSetSuccess()) {
3109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3110
        if (lastComparison != 0) {
3111
          return lastComparison;
3112
        }
3113
      }
3114
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3115
      if (lastComparison != 0) {
3116
        return lastComparison;
3117
      }
3118
      if (isSetLse()) {
3119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3120
        if (lastComparison != 0) {
3121
          return lastComparison;
3122
        }
3123
      }
3124
      return 0;
3125
    }
3126
 
3127
    public _Fields fieldForId(int fieldId) {
3128
      return _Fields.findByThriftId(fieldId);
3129
    }
3130
 
3131
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3132
      org.apache.thrift.protocol.TField field;
668 chandransh 3133
      iprot.readStructBegin();
3134
      while (true)
3135
      {
3136
        field = iprot.readFieldBegin();
3430 rajveer 3137
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 3138
          break;
3139
        }
3430 rajveer 3140
        switch (field.id) {
3141
          case 0: // SUCCESS
3142
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3143
              this.success = new Provider();
3144
              this.success.read(iprot);
3145
            } else { 
3146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3147
            }
3148
            break;
3149
          case 1: // LSE
3150
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3151
              this.lse = new LogisticsServiceException();
3152
              this.lse.read(iprot);
3153
            } else { 
3154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3155
            }
3156
            break;
3157
          default:
3158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 3159
        }
3430 rajveer 3160
        iprot.readFieldEnd();
668 chandransh 3161
      }
3162
      iprot.readStructEnd();
3163
      validate();
3164
    }
3165
 
3430 rajveer 3166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 3167
      oprot.writeStructBegin(STRUCT_DESC);
3168
 
3169
      if (this.isSetSuccess()) {
3170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3171
        this.success.write(oprot);
3172
        oprot.writeFieldEnd();
3173
      } else if (this.isSetLse()) {
3174
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3175
        this.lse.write(oprot);
3176
        oprot.writeFieldEnd();
3177
      }
3178
      oprot.writeFieldStop();
3179
      oprot.writeStructEnd();
3180
    }
3181
 
3182
    @Override
3183
    public String toString() {
3184
      StringBuilder sb = new StringBuilder("getProvider_result(");
3185
      boolean first = true;
3186
 
3187
      sb.append("success:");
3188
      if (this.success == null) {
3189
        sb.append("null");
3190
      } else {
3191
        sb.append(this.success);
3192
      }
3193
      first = false;
3194
      if (!first) sb.append(", ");
3195
      sb.append("lse:");
3196
      if (this.lse == null) {
3197
        sb.append("null");
3198
      } else {
3199
        sb.append(this.lse);
3200
      }
3201
      first = false;
3202
      sb.append(")");
3203
      return sb.toString();
3204
    }
3205
 
3430 rajveer 3206
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3207
      // check for required fields
3208
    }
3209
 
3430 rajveer 3210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3211
      try {
3212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3213
      } catch (org.apache.thrift.TException te) {
3214
        throw new java.io.IOException(te);
3215
      }
3216
    }
3217
 
3218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3219
      try {
3220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3221
      } catch (org.apache.thrift.TException te) {
3222
        throw new java.io.IOException(te);
3223
      }
3224
    }
3225
 
668 chandransh 3226
  }
3227
 
3430 rajveer 3228
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3230
 
3231
 
3232
 
3233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3235
;
3236
 
3237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3238
 
3239
      static {
3240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3241
          byName.put(field.getFieldName(), field);
3242
        }
3243
      }
3244
 
3245
      /**
3246
       * Find the _Fields constant that matches fieldId, or null if its not found.
3247
       */
3248
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3249
        switch(fieldId) {
3250
          default:
3251
            return null;
3252
        }
674 chandransh 3253
      }
3254
 
3255
      /**
3256
       * Find the _Fields constant that matches fieldId, throwing an exception
3257
       * if it is not found.
3258
       */
3259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3260
        _Fields fields = findByThriftId(fieldId);
3261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3262
        return fields;
3263
      }
3264
 
3265
      /**
3266
       * Find the _Fields constant that matches name, or null if its not found.
3267
       */
3268
      public static _Fields findByName(String name) {
3269
        return byName.get(name);
3270
      }
3271
 
3272
      private final short _thriftId;
3273
      private final String _fieldName;
3274
 
3275
      _Fields(short thriftId, String fieldName) {
3276
        _thriftId = thriftId;
3277
        _fieldName = fieldName;
3278
      }
3279
 
3280
      public short getThriftFieldId() {
3281
        return _thriftId;
3282
      }
3283
 
3284
      public String getFieldName() {
3285
        return _fieldName;
3286
      }
3287
    }
3430 rajveer 3288
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3289
    static {
3430 rajveer 3290
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3293
    }
3294
 
3295
    public getAllProviders_args() {
3296
    }
3297
 
3298
    /**
3299
     * Performs a deep copy on <i>other</i>.
3300
     */
3301
    public getAllProviders_args(getAllProviders_args other) {
3302
    }
3303
 
3304
    public getAllProviders_args deepCopy() {
3305
      return new getAllProviders_args(this);
3306
    }
3307
 
3430 rajveer 3308
    @Override
3309
    public void clear() {
674 chandransh 3310
    }
3311
 
3312
    public void setFieldValue(_Fields field, Object value) {
3313
      switch (field) {
3314
      }
3315
    }
3316
 
3317
    public Object getFieldValue(_Fields field) {
3318
      switch (field) {
3319
      }
3320
      throw new IllegalStateException();
3321
    }
3322
 
3430 rajveer 3323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3324
    public boolean isSet(_Fields field) {
3325
      if (field == null) {
3326
        throw new IllegalArgumentException();
3327
      }
674 chandransh 3328
 
3329
      switch (field) {
3330
      }
3331
      throw new IllegalStateException();
3332
    }
3333
 
3334
    @Override
3335
    public boolean equals(Object that) {
3336
      if (that == null)
3337
        return false;
3338
      if (that instanceof getAllProviders_args)
3339
        return this.equals((getAllProviders_args)that);
3340
      return false;
3341
    }
3342
 
3343
    public boolean equals(getAllProviders_args that) {
3344
      if (that == null)
3345
        return false;
3346
 
3347
      return true;
3348
    }
3349
 
3350
    @Override
3351
    public int hashCode() {
3352
      return 0;
3353
    }
3354
 
3355
    public int compareTo(getAllProviders_args other) {
3356
      if (!getClass().equals(other.getClass())) {
3357
        return getClass().getName().compareTo(other.getClass().getName());
3358
      }
3359
 
3360
      int lastComparison = 0;
3361
      getAllProviders_args typedOther = (getAllProviders_args)other;
3362
 
3363
      return 0;
3364
    }
3365
 
3430 rajveer 3366
    public _Fields fieldForId(int fieldId) {
3367
      return _Fields.findByThriftId(fieldId);
3368
    }
3369
 
3370
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3371
      org.apache.thrift.protocol.TField field;
674 chandransh 3372
      iprot.readStructBegin();
3373
      while (true)
3374
      {
3375
        field = iprot.readFieldBegin();
3430 rajveer 3376
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3377
          break;
3378
        }
3430 rajveer 3379
        switch (field.id) {
3380
          default:
3381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3382
        }
3430 rajveer 3383
        iprot.readFieldEnd();
674 chandransh 3384
      }
3385
      iprot.readStructEnd();
3386
      validate();
3387
    }
3388
 
3430 rajveer 3389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3390
      validate();
3391
 
3392
      oprot.writeStructBegin(STRUCT_DESC);
3393
      oprot.writeFieldStop();
3394
      oprot.writeStructEnd();
3395
    }
3396
 
3397
    @Override
3398
    public String toString() {
3399
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3400
      boolean first = true;
3401
 
3402
      sb.append(")");
3403
      return sb.toString();
3404
    }
3405
 
3430 rajveer 3406
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3407
      // check for required fields
3408
    }
3409
 
3430 rajveer 3410
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3411
      try {
3412
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3413
      } catch (org.apache.thrift.TException te) {
3414
        throw new java.io.IOException(te);
3415
      }
3416
    }
3417
 
3418
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3419
      try {
3420
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3421
      } catch (org.apache.thrift.TException te) {
3422
        throw new java.io.IOException(te);
3423
      }
3424
    }
3425
 
674 chandransh 3426
  }
3427
 
3430 rajveer 3428
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3429
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3430
 
3430 rajveer 3431
    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);
3432
    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 3433
 
3430 rajveer 3434
    private List<Provider> success; // required
3435
    private LogisticsServiceException lse; // required
674 chandransh 3436
 
3437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3439
      SUCCESS((short)0, "success"),
3440
      LSE((short)1, "lse");
3441
 
3442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3443
 
3444
      static {
3445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3446
          byName.put(field.getFieldName(), field);
3447
        }
3448
      }
3449
 
3450
      /**
3451
       * Find the _Fields constant that matches fieldId, or null if its not found.
3452
       */
3453
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3454
        switch(fieldId) {
3455
          case 0: // SUCCESS
3456
            return SUCCESS;
3457
          case 1: // LSE
3458
            return LSE;
3459
          default:
3460
            return null;
3461
        }
674 chandransh 3462
      }
3463
 
3464
      /**
3465
       * Find the _Fields constant that matches fieldId, throwing an exception
3466
       * if it is not found.
3467
       */
3468
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3469
        _Fields fields = findByThriftId(fieldId);
3470
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3471
        return fields;
3472
      }
3473
 
3474
      /**
3475
       * Find the _Fields constant that matches name, or null if its not found.
3476
       */
3477
      public static _Fields findByName(String name) {
3478
        return byName.get(name);
3479
      }
3480
 
3481
      private final short _thriftId;
3482
      private final String _fieldName;
3483
 
3484
      _Fields(short thriftId, String fieldName) {
3485
        _thriftId = thriftId;
3486
        _fieldName = fieldName;
3487
      }
3488
 
3489
      public short getThriftFieldId() {
3490
        return _thriftId;
3491
      }
3492
 
3493
      public String getFieldName() {
3494
        return _fieldName;
3495
      }
3496
    }
3497
 
3498
    // isset id assignments
3499
 
3430 rajveer 3500
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3501
    static {
3430 rajveer 3502
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3503
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3504
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3505
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3506
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3510
    }
3511
 
3512
    public getAllProviders_result() {
3513
    }
3514
 
3515
    public getAllProviders_result(
3516
      List<Provider> success,
3517
      LogisticsServiceException lse)
3518
    {
3519
      this();
3520
      this.success = success;
3521
      this.lse = lse;
3522
    }
3523
 
3524
    /**
3525
     * Performs a deep copy on <i>other</i>.
3526
     */
3527
    public getAllProviders_result(getAllProviders_result other) {
3528
      if (other.isSetSuccess()) {
3529
        List<Provider> __this__success = new ArrayList<Provider>();
3530
        for (Provider other_element : other.success) {
3531
          __this__success.add(new Provider(other_element));
3532
        }
3533
        this.success = __this__success;
3534
      }
3535
      if (other.isSetLse()) {
3536
        this.lse = new LogisticsServiceException(other.lse);
3537
      }
3538
    }
3539
 
3540
    public getAllProviders_result deepCopy() {
3541
      return new getAllProviders_result(this);
3542
    }
3543
 
3430 rajveer 3544
    @Override
3545
    public void clear() {
3546
      this.success = null;
3547
      this.lse = null;
674 chandransh 3548
    }
3549
 
3550
    public int getSuccessSize() {
3551
      return (this.success == null) ? 0 : this.success.size();
3552
    }
3553
 
3554
    public java.util.Iterator<Provider> getSuccessIterator() {
3555
      return (this.success == null) ? null : this.success.iterator();
3556
    }
3557
 
3558
    public void addToSuccess(Provider elem) {
3559
      if (this.success == null) {
3560
        this.success = new ArrayList<Provider>();
3561
      }
3562
      this.success.add(elem);
3563
    }
3564
 
3565
    public List<Provider> getSuccess() {
3566
      return this.success;
3567
    }
3568
 
3430 rajveer 3569
    public void setSuccess(List<Provider> success) {
674 chandransh 3570
      this.success = success;
3571
    }
3572
 
3573
    public void unsetSuccess() {
3574
      this.success = null;
3575
    }
3576
 
3430 rajveer 3577
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3578
    public boolean isSetSuccess() {
3579
      return this.success != null;
3580
    }
3581
 
3582
    public void setSuccessIsSet(boolean value) {
3583
      if (!value) {
3584
        this.success = null;
3585
      }
3586
    }
3587
 
3588
    public LogisticsServiceException getLse() {
3589
      return this.lse;
3590
    }
3591
 
3430 rajveer 3592
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3593
      this.lse = lse;
3594
    }
3595
 
3596
    public void unsetLse() {
3597
      this.lse = null;
3598
    }
3599
 
3430 rajveer 3600
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3601
    public boolean isSetLse() {
3602
      return this.lse != null;
3603
    }
3604
 
3605
    public void setLseIsSet(boolean value) {
3606
      if (!value) {
3607
        this.lse = null;
3608
      }
3609
    }
3610
 
3611
    public void setFieldValue(_Fields field, Object value) {
3612
      switch (field) {
3613
      case SUCCESS:
3614
        if (value == null) {
3615
          unsetSuccess();
3616
        } else {
3617
          setSuccess((List<Provider>)value);
3618
        }
3619
        break;
3620
 
3621
      case LSE:
3622
        if (value == null) {
3623
          unsetLse();
3624
        } else {
3625
          setLse((LogisticsServiceException)value);
3626
        }
3627
        break;
3628
 
3629
      }
3630
    }
3631
 
3632
    public Object getFieldValue(_Fields field) {
3633
      switch (field) {
3634
      case SUCCESS:
3635
        return getSuccess();
3636
 
3637
      case LSE:
3638
        return getLse();
3639
 
3640
      }
3641
      throw new IllegalStateException();
3642
    }
3643
 
3430 rajveer 3644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3645
    public boolean isSet(_Fields field) {
3646
      if (field == null) {
3647
        throw new IllegalArgumentException();
3648
      }
674 chandransh 3649
 
3650
      switch (field) {
3651
      case SUCCESS:
3652
        return isSetSuccess();
3653
      case LSE:
3654
        return isSetLse();
3655
      }
3656
      throw new IllegalStateException();
3657
    }
3658
 
3659
    @Override
3660
    public boolean equals(Object that) {
3661
      if (that == null)
3662
        return false;
3663
      if (that instanceof getAllProviders_result)
3664
        return this.equals((getAllProviders_result)that);
3665
      return false;
3666
    }
3667
 
3668
    public boolean equals(getAllProviders_result that) {
3669
      if (that == null)
3670
        return false;
3671
 
3672
      boolean this_present_success = true && this.isSetSuccess();
3673
      boolean that_present_success = true && that.isSetSuccess();
3674
      if (this_present_success || that_present_success) {
3675
        if (!(this_present_success && that_present_success))
3676
          return false;
3677
        if (!this.success.equals(that.success))
3678
          return false;
3679
      }
3680
 
3681
      boolean this_present_lse = true && this.isSetLse();
3682
      boolean that_present_lse = true && that.isSetLse();
3683
      if (this_present_lse || that_present_lse) {
3684
        if (!(this_present_lse && that_present_lse))
3685
          return false;
3686
        if (!this.lse.equals(that.lse))
3687
          return false;
3688
      }
3689
 
3690
      return true;
3691
    }
3692
 
3693
    @Override
3694
    public int hashCode() {
3695
      return 0;
3696
    }
3697
 
3430 rajveer 3698
    public int compareTo(getAllProviders_result other) {
3699
      if (!getClass().equals(other.getClass())) {
3700
        return getClass().getName().compareTo(other.getClass().getName());
3701
      }
3702
 
3703
      int lastComparison = 0;
3704
      getAllProviders_result typedOther = (getAllProviders_result)other;
3705
 
3706
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3707
      if (lastComparison != 0) {
3708
        return lastComparison;
3709
      }
3710
      if (isSetSuccess()) {
3711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3712
        if (lastComparison != 0) {
3713
          return lastComparison;
3714
        }
3715
      }
3716
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3717
      if (lastComparison != 0) {
3718
        return lastComparison;
3719
      }
3720
      if (isSetLse()) {
3721
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3722
        if (lastComparison != 0) {
3723
          return lastComparison;
3724
        }
3725
      }
3726
      return 0;
3727
    }
3728
 
3729
    public _Fields fieldForId(int fieldId) {
3730
      return _Fields.findByThriftId(fieldId);
3731
    }
3732
 
3733
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3734
      org.apache.thrift.protocol.TField field;
674 chandransh 3735
      iprot.readStructBegin();
3736
      while (true)
3737
      {
3738
        field = iprot.readFieldBegin();
3430 rajveer 3739
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3740
          break;
3741
        }
3430 rajveer 3742
        switch (field.id) {
3743
          case 0: // SUCCESS
3744
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3745
              {
7792 anupam.sin 3746
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3747
                this.success = new ArrayList<Provider>(_list4.size);
3748
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3749
                {
7792 anupam.sin 3750
                  Provider _elem6; // required
3751
                  _elem6 = new Provider();
3752
                  _elem6.read(iprot);
3753
                  this.success.add(_elem6);
674 chandransh 3754
                }
3430 rajveer 3755
                iprot.readListEnd();
674 chandransh 3756
              }
3430 rajveer 3757
            } else { 
3758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3759
            }
3760
            break;
3761
          case 1: // LSE
3762
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3763
              this.lse = new LogisticsServiceException();
3764
              this.lse.read(iprot);
3765
            } else { 
3766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3767
            }
3768
            break;
3769
          default:
3770
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3771
        }
3430 rajveer 3772
        iprot.readFieldEnd();
674 chandransh 3773
      }
3774
      iprot.readStructEnd();
3775
      validate();
3776
    }
3777
 
3430 rajveer 3778
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3779
      oprot.writeStructBegin(STRUCT_DESC);
3780
 
3781
      if (this.isSetSuccess()) {
3782
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3783
        {
3430 rajveer 3784
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3785
          for (Provider _iter7 : this.success)
674 chandransh 3786
          {
7792 anupam.sin 3787
            _iter7.write(oprot);
674 chandransh 3788
          }
3789
          oprot.writeListEnd();
3790
        }
3791
        oprot.writeFieldEnd();
3792
      } else if (this.isSetLse()) {
3793
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3794
        this.lse.write(oprot);
3795
        oprot.writeFieldEnd();
3796
      }
3797
      oprot.writeFieldStop();
3798
      oprot.writeStructEnd();
3799
    }
3800
 
3801
    @Override
3802
    public String toString() {
3803
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3804
      boolean first = true;
3805
 
3806
      sb.append("success:");
3807
      if (this.success == null) {
3808
        sb.append("null");
3809
      } else {
3810
        sb.append(this.success);
3811
      }
3812
      first = false;
3813
      if (!first) sb.append(", ");
3814
      sb.append("lse:");
3815
      if (this.lse == null) {
3816
        sb.append("null");
3817
      } else {
3818
        sb.append(this.lse);
3819
      }
3820
      first = false;
3821
      sb.append(")");
3822
      return sb.toString();
3823
    }
3824
 
3430 rajveer 3825
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3826
      // check for required fields
3827
    }
3828
 
3430 rajveer 3829
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3830
      try {
3831
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3832
      } catch (org.apache.thrift.TException te) {
3833
        throw new java.io.IOException(te);
3834
      }
3835
    }
3836
 
3837
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3838
      try {
3839
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3840
      } catch (org.apache.thrift.TException te) {
3841
        throw new java.io.IOException(te);
3842
      }
3843
    }
3844
 
674 chandransh 3845
  }
3846
 
3430 rajveer 3847
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3848
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3849
 
3430 rajveer 3850
    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);
3851
    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 3852
    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 3853
 
3430 rajveer 3854
    private long itemId; // required
3855
    private String destination_pin; // required
4630 mandeep.dh 3856
    private DeliveryType type; // required
471 rajveer 3857
 
3858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3860
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3861
      DESTINATION_PIN((short)2, "destination_pin"),
3862
      /**
3863
       * 
3864
       * @see DeliveryType
3865
       */
3866
      TYPE((short)3, "type");
471 rajveer 3867
 
3868
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3869
 
3870
      static {
3871
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3872
          byName.put(field.getFieldName(), field);
3873
        }
3874
      }
3875
 
3876
      /**
3877
       * Find the _Fields constant that matches fieldId, or null if its not found.
3878
       */
3879
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3880
        switch(fieldId) {
3881
          case 1: // ITEM_ID
3882
            return ITEM_ID;
3883
          case 2: // DESTINATION_PIN
3884
            return DESTINATION_PIN;
4630 mandeep.dh 3885
          case 3: // TYPE
3886
            return TYPE;
3430 rajveer 3887
          default:
3888
            return null;
3889
        }
471 rajveer 3890
      }
3891
 
3892
      /**
3893
       * Find the _Fields constant that matches fieldId, throwing an exception
3894
       * if it is not found.
3895
       */
3896
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3897
        _Fields fields = findByThriftId(fieldId);
3898
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3899
        return fields;
3900
      }
3901
 
3902
      /**
3903
       * Find the _Fields constant that matches name, or null if its not found.
3904
       */
3905
      public static _Fields findByName(String name) {
3906
        return byName.get(name);
3907
      }
3908
 
3909
      private final short _thriftId;
3910
      private final String _fieldName;
3911
 
3912
      _Fields(short thriftId, String fieldName) {
3913
        _thriftId = thriftId;
3914
        _fieldName = fieldName;
3915
      }
3916
 
3917
      public short getThriftFieldId() {
3918
        return _thriftId;
3919
      }
3920
 
3921
      public String getFieldName() {
3922
        return _fieldName;
3923
      }
3924
    }
3925
 
3926
    // isset id assignments
3927
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3928
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3929
 
3430 rajveer 3930
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3931
    static {
3430 rajveer 3932
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3933
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3934
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3935
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3936
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3937
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3938
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3939
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3940
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3941
    }
3942
 
3943
    public getLogisticsEstimation_args() {
3944
    }
3945
 
3946
    public getLogisticsEstimation_args(
3947
      long itemId,
4630 mandeep.dh 3948
      String destination_pin,
3949
      DeliveryType type)
471 rajveer 3950
    {
3951
      this();
3952
      this.itemId = itemId;
3953
      setItemIdIsSet(true);
3954
      this.destination_pin = destination_pin;
4630 mandeep.dh 3955
      this.type = type;
471 rajveer 3956
    }
3957
 
3958
    /**
3959
     * Performs a deep copy on <i>other</i>.
3960
     */
3961
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3962
      __isset_bit_vector.clear();
3963
      __isset_bit_vector.or(other.__isset_bit_vector);
3964
      this.itemId = other.itemId;
3965
      if (other.isSetDestination_pin()) {
3966
        this.destination_pin = other.destination_pin;
3967
      }
4630 mandeep.dh 3968
      if (other.isSetType()) {
3969
        this.type = other.type;
3970
      }
471 rajveer 3971
    }
3972
 
3973
    public getLogisticsEstimation_args deepCopy() {
3974
      return new getLogisticsEstimation_args(this);
3975
    }
3976
 
3430 rajveer 3977
    @Override
3978
    public void clear() {
3979
      setItemIdIsSet(false);
3980
      this.itemId = 0;
3981
      this.destination_pin = null;
4630 mandeep.dh 3982
      this.type = null;
471 rajveer 3983
    }
3984
 
3985
    public long getItemId() {
3986
      return this.itemId;
3987
    }
3988
 
3430 rajveer 3989
    public void setItemId(long itemId) {
471 rajveer 3990
      this.itemId = itemId;
3991
      setItemIdIsSet(true);
3992
    }
3993
 
3994
    public void unsetItemId() {
3995
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3996
    }
3997
 
3430 rajveer 3998
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3999
    public boolean isSetItemId() {
4000
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4001
    }
4002
 
4003
    public void setItemIdIsSet(boolean value) {
4004
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4005
    }
4006
 
4007
    public String getDestination_pin() {
4008
      return this.destination_pin;
4009
    }
4010
 
3430 rajveer 4011
    public void setDestination_pin(String destination_pin) {
471 rajveer 4012
      this.destination_pin = destination_pin;
4013
    }
4014
 
4015
    public void unsetDestination_pin() {
4016
      this.destination_pin = null;
4017
    }
4018
 
3430 rajveer 4019
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 4020
    public boolean isSetDestination_pin() {
4021
      return this.destination_pin != null;
4022
    }
4023
 
4024
    public void setDestination_pinIsSet(boolean value) {
4025
      if (!value) {
4026
        this.destination_pin = null;
4027
      }
4028
    }
4029
 
4630 mandeep.dh 4030
    /**
4031
     * 
4032
     * @see DeliveryType
4033
     */
4034
    public DeliveryType getType() {
4035
      return this.type;
4036
    }
4037
 
4038
    /**
4039
     * 
4040
     * @see DeliveryType
4041
     */
4042
    public void setType(DeliveryType type) {
4043
      this.type = type;
4044
    }
4045
 
4046
    public void unsetType() {
4047
      this.type = null;
4048
    }
4049
 
4050
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4051
    public boolean isSetType() {
4052
      return this.type != null;
4053
    }
4054
 
4055
    public void setTypeIsSet(boolean value) {
4056
      if (!value) {
4057
        this.type = null;
4058
      }
4059
    }
4060
 
471 rajveer 4061
    public void setFieldValue(_Fields field, Object value) {
4062
      switch (field) {
4063
      case ITEM_ID:
4064
        if (value == null) {
4065
          unsetItemId();
4066
        } else {
4067
          setItemId((Long)value);
4068
        }
4069
        break;
4070
 
4071
      case DESTINATION_PIN:
4072
        if (value == null) {
4073
          unsetDestination_pin();
4074
        } else {
4075
          setDestination_pin((String)value);
4076
        }
4077
        break;
4078
 
4630 mandeep.dh 4079
      case TYPE:
4080
        if (value == null) {
4081
          unsetType();
4082
        } else {
4083
          setType((DeliveryType)value);
4084
        }
4085
        break;
4086
 
471 rajveer 4087
      }
4088
    }
4089
 
4090
    public Object getFieldValue(_Fields field) {
4091
      switch (field) {
4092
      case ITEM_ID:
3430 rajveer 4093
        return Long.valueOf(getItemId());
471 rajveer 4094
 
4095
      case DESTINATION_PIN:
4096
        return getDestination_pin();
4097
 
4630 mandeep.dh 4098
      case TYPE:
4099
        return getType();
4100
 
471 rajveer 4101
      }
4102
      throw new IllegalStateException();
4103
    }
4104
 
3430 rajveer 4105
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4106
    public boolean isSet(_Fields field) {
4107
      if (field == null) {
4108
        throw new IllegalArgumentException();
4109
      }
471 rajveer 4110
 
4111
      switch (field) {
4112
      case ITEM_ID:
4113
        return isSetItemId();
4114
      case DESTINATION_PIN:
4115
        return isSetDestination_pin();
4630 mandeep.dh 4116
      case TYPE:
4117
        return isSetType();
471 rajveer 4118
      }
4119
      throw new IllegalStateException();
4120
    }
4121
 
4122
    @Override
4123
    public boolean equals(Object that) {
4124
      if (that == null)
4125
        return false;
4126
      if (that instanceof getLogisticsEstimation_args)
4127
        return this.equals((getLogisticsEstimation_args)that);
4128
      return false;
4129
    }
4130
 
4131
    public boolean equals(getLogisticsEstimation_args that) {
4132
      if (that == null)
4133
        return false;
4134
 
4135
      boolean this_present_itemId = true;
4136
      boolean that_present_itemId = true;
4137
      if (this_present_itemId || that_present_itemId) {
4138
        if (!(this_present_itemId && that_present_itemId))
4139
          return false;
4140
        if (this.itemId != that.itemId)
4141
          return false;
4142
      }
4143
 
4144
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4145
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4146
      if (this_present_destination_pin || that_present_destination_pin) {
4147
        if (!(this_present_destination_pin && that_present_destination_pin))
4148
          return false;
4149
        if (!this.destination_pin.equals(that.destination_pin))
4150
          return false;
4151
      }
4152
 
4630 mandeep.dh 4153
      boolean this_present_type = true && this.isSetType();
4154
      boolean that_present_type = true && that.isSetType();
4155
      if (this_present_type || that_present_type) {
4156
        if (!(this_present_type && that_present_type))
4157
          return false;
4158
        if (!this.type.equals(that.type))
4159
          return false;
4160
      }
4161
 
471 rajveer 4162
      return true;
4163
    }
4164
 
4165
    @Override
4166
    public int hashCode() {
4167
      return 0;
4168
    }
4169
 
4170
    public int compareTo(getLogisticsEstimation_args other) {
4171
      if (!getClass().equals(other.getClass())) {
4172
        return getClass().getName().compareTo(other.getClass().getName());
4173
      }
4174
 
4175
      int lastComparison = 0;
4176
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4177
 
3430 rajveer 4178
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4179
      if (lastComparison != 0) {
4180
        return lastComparison;
4181
      }
3430 rajveer 4182
      if (isSetItemId()) {
4183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4184
        if (lastComparison != 0) {
4185
          return lastComparison;
4186
        }
471 rajveer 4187
      }
3430 rajveer 4188
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4189
      if (lastComparison != 0) {
4190
        return lastComparison;
4191
      }
3430 rajveer 4192
      if (isSetDestination_pin()) {
4193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4194
        if (lastComparison != 0) {
4195
          return lastComparison;
4196
        }
471 rajveer 4197
      }
4630 mandeep.dh 4198
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4199
      if (lastComparison != 0) {
4200
        return lastComparison;
4201
      }
4202
      if (isSetType()) {
4203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4204
        if (lastComparison != 0) {
4205
          return lastComparison;
4206
        }
4207
      }
471 rajveer 4208
      return 0;
4209
    }
4210
 
3430 rajveer 4211
    public _Fields fieldForId(int fieldId) {
4212
      return _Fields.findByThriftId(fieldId);
4213
    }
4214
 
4215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4216
      org.apache.thrift.protocol.TField field;
471 rajveer 4217
      iprot.readStructBegin();
4218
      while (true)
4219
      {
4220
        field = iprot.readFieldBegin();
3430 rajveer 4221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4222
          break;
4223
        }
3430 rajveer 4224
        switch (field.id) {
4225
          case 1: // ITEM_ID
4226
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4227
              this.itemId = iprot.readI64();
4228
              setItemIdIsSet(true);
4229
            } else { 
4230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4231
            }
4232
            break;
4233
          case 2: // DESTINATION_PIN
4234
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4235
              this.destination_pin = iprot.readString();
4236
            } else { 
4237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4238
            }
4239
            break;
4630 mandeep.dh 4240
          case 3: // TYPE
4241
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4242
              this.type = DeliveryType.findByValue(iprot.readI32());
4243
            } else { 
4244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4245
            }
4246
            break;
3430 rajveer 4247
          default:
4248
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4249
        }
3430 rajveer 4250
        iprot.readFieldEnd();
471 rajveer 4251
      }
4252
      iprot.readStructEnd();
4253
      validate();
4254
    }
4255
 
3430 rajveer 4256
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4257
      validate();
4258
 
4259
      oprot.writeStructBegin(STRUCT_DESC);
4260
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4261
      oprot.writeI64(this.itemId);
4262
      oprot.writeFieldEnd();
4263
      if (this.destination_pin != null) {
4264
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4265
        oprot.writeString(this.destination_pin);
4266
        oprot.writeFieldEnd();
4267
      }
4630 mandeep.dh 4268
      if (this.type != null) {
4269
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4270
        oprot.writeI32(this.type.getValue());
4271
        oprot.writeFieldEnd();
4272
      }
471 rajveer 4273
      oprot.writeFieldStop();
4274
      oprot.writeStructEnd();
4275
    }
4276
 
4277
    @Override
4278
    public String toString() {
4279
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4280
      boolean first = true;
4281
 
4282
      sb.append("itemId:");
4283
      sb.append(this.itemId);
4284
      first = false;
4285
      if (!first) sb.append(", ");
4286
      sb.append("destination_pin:");
4287
      if (this.destination_pin == null) {
4288
        sb.append("null");
4289
      } else {
4290
        sb.append(this.destination_pin);
4291
      }
4292
      first = false;
4630 mandeep.dh 4293
      if (!first) sb.append(", ");
4294
      sb.append("type:");
4295
      if (this.type == null) {
4296
        sb.append("null");
4297
      } else {
4298
        sb.append(this.type);
4299
      }
4300
      first = false;
471 rajveer 4301
      sb.append(")");
4302
      return sb.toString();
4303
    }
4304
 
3430 rajveer 4305
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4306
      // check for required fields
4307
    }
4308
 
3430 rajveer 4309
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4310
      try {
4311
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4312
      } catch (org.apache.thrift.TException te) {
4313
        throw new java.io.IOException(te);
4314
      }
4315
    }
4316
 
4317
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4318
      try {
4319
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4320
      } catch (org.apache.thrift.TException te) {
4321
        throw new java.io.IOException(te);
4322
      }
4323
    }
4324
 
471 rajveer 4325
  }
4326
 
3430 rajveer 4327
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4328
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4329
 
3430 rajveer 4330
    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);
4331
    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 4332
 
3430 rajveer 4333
    private LogisticsInfo success; // required
4334
    private LogisticsServiceException se; // required
471 rajveer 4335
 
4336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4337
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4338
      SUCCESS((short)0, "success"),
4339
      SE((short)1, "se");
4340
 
4341
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4342
 
4343
      static {
4344
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4345
          byName.put(field.getFieldName(), field);
4346
        }
4347
      }
4348
 
4349
      /**
4350
       * Find the _Fields constant that matches fieldId, or null if its not found.
4351
       */
4352
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4353
        switch(fieldId) {
4354
          case 0: // SUCCESS
4355
            return SUCCESS;
4356
          case 1: // SE
4357
            return SE;
4358
          default:
4359
            return null;
4360
        }
471 rajveer 4361
      }
4362
 
4363
      /**
4364
       * Find the _Fields constant that matches fieldId, throwing an exception
4365
       * if it is not found.
4366
       */
4367
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4368
        _Fields fields = findByThriftId(fieldId);
4369
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4370
        return fields;
4371
      }
4372
 
4373
      /**
4374
       * Find the _Fields constant that matches name, or null if its not found.
4375
       */
4376
      public static _Fields findByName(String name) {
4377
        return byName.get(name);
4378
      }
4379
 
4380
      private final short _thriftId;
4381
      private final String _fieldName;
4382
 
4383
      _Fields(short thriftId, String fieldName) {
4384
        _thriftId = thriftId;
4385
        _fieldName = fieldName;
4386
      }
4387
 
4388
      public short getThriftFieldId() {
4389
        return _thriftId;
4390
      }
4391
 
4392
      public String getFieldName() {
4393
        return _fieldName;
4394
      }
4395
    }
4396
 
4397
    // isset id assignments
4398
 
3430 rajveer 4399
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4400
    static {
3430 rajveer 4401
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4402
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4403
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4404
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4405
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4406
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4407
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4408
    }
4409
 
4410
    public getLogisticsEstimation_result() {
4411
    }
4412
 
4413
    public getLogisticsEstimation_result(
648 chandransh 4414
      LogisticsInfo success,
471 rajveer 4415
      LogisticsServiceException se)
4416
    {
4417
      this();
4418
      this.success = success;
4419
      this.se = se;
4420
    }
4421
 
4422
    /**
4423
     * Performs a deep copy on <i>other</i>.
4424
     */
4425
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4426
      if (other.isSetSuccess()) {
648 chandransh 4427
        this.success = new LogisticsInfo(other.success);
471 rajveer 4428
      }
4429
      if (other.isSetSe()) {
4430
        this.se = new LogisticsServiceException(other.se);
4431
      }
4432
    }
4433
 
4434
    public getLogisticsEstimation_result deepCopy() {
4435
      return new getLogisticsEstimation_result(this);
4436
    }
4437
 
3430 rajveer 4438
    @Override
4439
    public void clear() {
4440
      this.success = null;
4441
      this.se = null;
471 rajveer 4442
    }
4443
 
648 chandransh 4444
    public LogisticsInfo getSuccess() {
471 rajveer 4445
      return this.success;
4446
    }
4447
 
3430 rajveer 4448
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4449
      this.success = success;
4450
    }
4451
 
4452
    public void unsetSuccess() {
4453
      this.success = null;
4454
    }
4455
 
3430 rajveer 4456
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4457
    public boolean isSetSuccess() {
4458
      return this.success != null;
4459
    }
4460
 
4461
    public void setSuccessIsSet(boolean value) {
4462
      if (!value) {
4463
        this.success = null;
4464
      }
4465
    }
4466
 
4467
    public LogisticsServiceException getSe() {
4468
      return this.se;
4469
    }
4470
 
3430 rajveer 4471
    public void setSe(LogisticsServiceException se) {
471 rajveer 4472
      this.se = se;
4473
    }
4474
 
4475
    public void unsetSe() {
4476
      this.se = null;
4477
    }
4478
 
3430 rajveer 4479
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4480
    public boolean isSetSe() {
4481
      return this.se != null;
4482
    }
4483
 
4484
    public void setSeIsSet(boolean value) {
4485
      if (!value) {
4486
        this.se = null;
4487
      }
4488
    }
4489
 
4490
    public void setFieldValue(_Fields field, Object value) {
4491
      switch (field) {
4492
      case SUCCESS:
4493
        if (value == null) {
4494
          unsetSuccess();
4495
        } else {
648 chandransh 4496
          setSuccess((LogisticsInfo)value);
471 rajveer 4497
        }
4498
        break;
4499
 
4500
      case SE:
4501
        if (value == null) {
4502
          unsetSe();
4503
        } else {
4504
          setSe((LogisticsServiceException)value);
4505
        }
4506
        break;
4507
 
4508
      }
4509
    }
4510
 
4511
    public Object getFieldValue(_Fields field) {
4512
      switch (field) {
4513
      case SUCCESS:
4514
        return getSuccess();
4515
 
4516
      case SE:
4517
        return getSe();
4518
 
4519
      }
4520
      throw new IllegalStateException();
4521
    }
4522
 
3430 rajveer 4523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4524
    public boolean isSet(_Fields field) {
4525
      if (field == null) {
4526
        throw new IllegalArgumentException();
4527
      }
471 rajveer 4528
 
4529
      switch (field) {
4530
      case SUCCESS:
4531
        return isSetSuccess();
4532
      case SE:
4533
        return isSetSe();
4534
      }
4535
      throw new IllegalStateException();
4536
    }
4537
 
4538
    @Override
4539
    public boolean equals(Object that) {
4540
      if (that == null)
4541
        return false;
4542
      if (that instanceof getLogisticsEstimation_result)
4543
        return this.equals((getLogisticsEstimation_result)that);
4544
      return false;
4545
    }
4546
 
4547
    public boolean equals(getLogisticsEstimation_result that) {
4548
      if (that == null)
4549
        return false;
4550
 
4551
      boolean this_present_success = true && this.isSetSuccess();
4552
      boolean that_present_success = true && that.isSetSuccess();
4553
      if (this_present_success || that_present_success) {
4554
        if (!(this_present_success && that_present_success))
4555
          return false;
4556
        if (!this.success.equals(that.success))
4557
          return false;
4558
      }
4559
 
4560
      boolean this_present_se = true && this.isSetSe();
4561
      boolean that_present_se = true && that.isSetSe();
4562
      if (this_present_se || that_present_se) {
4563
        if (!(this_present_se && that_present_se))
4564
          return false;
4565
        if (!this.se.equals(that.se))
4566
          return false;
4567
      }
4568
 
4569
      return true;
4570
    }
4571
 
4572
    @Override
4573
    public int hashCode() {
4574
      return 0;
4575
    }
4576
 
4577
    public int compareTo(getLogisticsEstimation_result other) {
4578
      if (!getClass().equals(other.getClass())) {
4579
        return getClass().getName().compareTo(other.getClass().getName());
4580
      }
4581
 
4582
      int lastComparison = 0;
4583
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4584
 
3430 rajveer 4585
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4586
      if (lastComparison != 0) {
4587
        return lastComparison;
4588
      }
3430 rajveer 4589
      if (isSetSuccess()) {
4590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4591
        if (lastComparison != 0) {
4592
          return lastComparison;
4593
        }
471 rajveer 4594
      }
3430 rajveer 4595
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4596
      if (lastComparison != 0) {
4597
        return lastComparison;
4598
      }
3430 rajveer 4599
      if (isSetSe()) {
4600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4601
        if (lastComparison != 0) {
4602
          return lastComparison;
4603
        }
471 rajveer 4604
      }
4605
      return 0;
4606
    }
4607
 
3430 rajveer 4608
    public _Fields fieldForId(int fieldId) {
4609
      return _Fields.findByThriftId(fieldId);
4610
    }
4611
 
4612
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4613
      org.apache.thrift.protocol.TField field;
471 rajveer 4614
      iprot.readStructBegin();
4615
      while (true)
4616
      {
4617
        field = iprot.readFieldBegin();
3430 rajveer 4618
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4619
          break;
4620
        }
3430 rajveer 4621
        switch (field.id) {
4622
          case 0: // SUCCESS
4623
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4624
              this.success = new LogisticsInfo();
4625
              this.success.read(iprot);
4626
            } else { 
4627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4628
            }
4629
            break;
4630
          case 1: // SE
4631
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4632
              this.se = new LogisticsServiceException();
4633
              this.se.read(iprot);
4634
            } else { 
4635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4636
            }
4637
            break;
4638
          default:
4639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4640
        }
3430 rajveer 4641
        iprot.readFieldEnd();
471 rajveer 4642
      }
4643
      iprot.readStructEnd();
4644
      validate();
4645
    }
4646
 
3430 rajveer 4647
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4648
      oprot.writeStructBegin(STRUCT_DESC);
4649
 
4650
      if (this.isSetSuccess()) {
4651
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4652
        this.success.write(oprot);
4653
        oprot.writeFieldEnd();
4654
      } else if (this.isSetSe()) {
4655
        oprot.writeFieldBegin(SE_FIELD_DESC);
4656
        this.se.write(oprot);
4657
        oprot.writeFieldEnd();
4658
      }
4659
      oprot.writeFieldStop();
4660
      oprot.writeStructEnd();
4661
    }
4662
 
4663
    @Override
4664
    public String toString() {
4665
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4666
      boolean first = true;
4667
 
4668
      sb.append("success:");
4669
      if (this.success == null) {
4670
        sb.append("null");
4671
      } else {
4672
        sb.append(this.success);
4673
      }
4674
      first = false;
4675
      if (!first) sb.append(", ");
4676
      sb.append("se:");
4677
      if (this.se == null) {
4678
        sb.append("null");
4679
      } else {
4680
        sb.append(this.se);
4681
      }
4682
      first = false;
4683
      sb.append(")");
4684
      return sb.toString();
4685
    }
4686
 
3430 rajveer 4687
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4688
      // check for required fields
4689
    }
4690
 
3430 rajveer 4691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4692
      try {
4693
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4694
      } catch (org.apache.thrift.TException te) {
4695
        throw new java.io.IOException(te);
4696
      }
4697
    }
4698
 
4699
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4700
      try {
4701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4702
      } catch (org.apache.thrift.TException te) {
4703
        throw new java.io.IOException(te);
4704
      }
4705
    }
4706
 
471 rajveer 4707
  }
4708
 
7256 rajveer 4709
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4711
 
4712
    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);
4713
    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);
4714
    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);
4715
 
4716
    private long itemId; // required
4717
    private String destination_pin; // required
4718
    private DeliveryType type; // required
4719
 
4720
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4721
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4722
      ITEM_ID((short)1, "itemId"),
4723
      DESTINATION_PIN((short)2, "destination_pin"),
4724
      /**
4725
       * 
4726
       * @see DeliveryType
4727
       */
4728
      TYPE((short)3, "type");
4729
 
4730
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4731
 
4732
      static {
4733
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4734
          byName.put(field.getFieldName(), field);
4735
        }
4736
      }
4737
 
4738
      /**
4739
       * Find the _Fields constant that matches fieldId, or null if its not found.
4740
       */
4741
      public static _Fields findByThriftId(int fieldId) {
4742
        switch(fieldId) {
4743
          case 1: // ITEM_ID
4744
            return ITEM_ID;
4745
          case 2: // DESTINATION_PIN
4746
            return DESTINATION_PIN;
4747
          case 3: // TYPE
4748
            return TYPE;
4749
          default:
4750
            return null;
4751
        }
4752
      }
4753
 
4754
      /**
4755
       * Find the _Fields constant that matches fieldId, throwing an exception
4756
       * if it is not found.
4757
       */
4758
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4759
        _Fields fields = findByThriftId(fieldId);
4760
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4761
        return fields;
4762
      }
4763
 
4764
      /**
4765
       * Find the _Fields constant that matches name, or null if its not found.
4766
       */
4767
      public static _Fields findByName(String name) {
4768
        return byName.get(name);
4769
      }
4770
 
4771
      private final short _thriftId;
4772
      private final String _fieldName;
4773
 
4774
      _Fields(short thriftId, String fieldName) {
4775
        _thriftId = thriftId;
4776
        _fieldName = fieldName;
4777
      }
4778
 
4779
      public short getThriftFieldId() {
4780
        return _thriftId;
4781
      }
4782
 
4783
      public String getFieldName() {
4784
        return _fieldName;
4785
      }
4786
    }
4787
 
4788
    // isset id assignments
4789
    private static final int __ITEMID_ISSET_ID = 0;
4790
    private BitSet __isset_bit_vector = new BitSet(1);
4791
 
4792
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4793
    static {
4794
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4795
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4796
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4797
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4798
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4799
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4800
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4803
    }
4804
 
4805
    public getLogisticsEstimationForStore_args() {
4806
    }
4807
 
4808
    public getLogisticsEstimationForStore_args(
4809
      long itemId,
4810
      String destination_pin,
4811
      DeliveryType type)
4812
    {
4813
      this();
4814
      this.itemId = itemId;
4815
      setItemIdIsSet(true);
4816
      this.destination_pin = destination_pin;
4817
      this.type = type;
4818
    }
4819
 
4820
    /**
4821
     * Performs a deep copy on <i>other</i>.
4822
     */
4823
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4824
      __isset_bit_vector.clear();
4825
      __isset_bit_vector.or(other.__isset_bit_vector);
4826
      this.itemId = other.itemId;
4827
      if (other.isSetDestination_pin()) {
4828
        this.destination_pin = other.destination_pin;
4829
      }
4830
      if (other.isSetType()) {
4831
        this.type = other.type;
4832
      }
4833
    }
4834
 
4835
    public getLogisticsEstimationForStore_args deepCopy() {
4836
      return new getLogisticsEstimationForStore_args(this);
4837
    }
4838
 
4839
    @Override
4840
    public void clear() {
4841
      setItemIdIsSet(false);
4842
      this.itemId = 0;
4843
      this.destination_pin = null;
4844
      this.type = null;
4845
    }
4846
 
4847
    public long getItemId() {
4848
      return this.itemId;
4849
    }
4850
 
4851
    public void setItemId(long itemId) {
4852
      this.itemId = itemId;
4853
      setItemIdIsSet(true);
4854
    }
4855
 
4856
    public void unsetItemId() {
4857
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4858
    }
4859
 
4860
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4861
    public boolean isSetItemId() {
4862
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4863
    }
4864
 
4865
    public void setItemIdIsSet(boolean value) {
4866
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4867
    }
4868
 
4869
    public String getDestination_pin() {
4870
      return this.destination_pin;
4871
    }
4872
 
4873
    public void setDestination_pin(String destination_pin) {
4874
      this.destination_pin = destination_pin;
4875
    }
4876
 
4877
    public void unsetDestination_pin() {
4878
      this.destination_pin = null;
4879
    }
4880
 
4881
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4882
    public boolean isSetDestination_pin() {
4883
      return this.destination_pin != null;
4884
    }
4885
 
4886
    public void setDestination_pinIsSet(boolean value) {
4887
      if (!value) {
4888
        this.destination_pin = null;
4889
      }
4890
    }
4891
 
4892
    /**
4893
     * 
4894
     * @see DeliveryType
4895
     */
4896
    public DeliveryType getType() {
4897
      return this.type;
4898
    }
4899
 
4900
    /**
4901
     * 
4902
     * @see DeliveryType
4903
     */
4904
    public void setType(DeliveryType type) {
4905
      this.type = type;
4906
    }
4907
 
4908
    public void unsetType() {
4909
      this.type = null;
4910
    }
4911
 
4912
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4913
    public boolean isSetType() {
4914
      return this.type != null;
4915
    }
4916
 
4917
    public void setTypeIsSet(boolean value) {
4918
      if (!value) {
4919
        this.type = null;
4920
      }
4921
    }
4922
 
4923
    public void setFieldValue(_Fields field, Object value) {
4924
      switch (field) {
4925
      case ITEM_ID:
4926
        if (value == null) {
4927
          unsetItemId();
4928
        } else {
4929
          setItemId((Long)value);
4930
        }
4931
        break;
4932
 
4933
      case DESTINATION_PIN:
4934
        if (value == null) {
4935
          unsetDestination_pin();
4936
        } else {
4937
          setDestination_pin((String)value);
4938
        }
4939
        break;
4940
 
4941
      case TYPE:
4942
        if (value == null) {
4943
          unsetType();
4944
        } else {
4945
          setType((DeliveryType)value);
4946
        }
4947
        break;
4948
 
4949
      }
4950
    }
4951
 
4952
    public Object getFieldValue(_Fields field) {
4953
      switch (field) {
4954
      case ITEM_ID:
4955
        return Long.valueOf(getItemId());
4956
 
4957
      case DESTINATION_PIN:
4958
        return getDestination_pin();
4959
 
4960
      case TYPE:
4961
        return getType();
4962
 
4963
      }
4964
      throw new IllegalStateException();
4965
    }
4966
 
4967
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4968
    public boolean isSet(_Fields field) {
4969
      if (field == null) {
4970
        throw new IllegalArgumentException();
4971
      }
4972
 
4973
      switch (field) {
4974
      case ITEM_ID:
4975
        return isSetItemId();
4976
      case DESTINATION_PIN:
4977
        return isSetDestination_pin();
4978
      case TYPE:
4979
        return isSetType();
4980
      }
4981
      throw new IllegalStateException();
4982
    }
4983
 
4984
    @Override
4985
    public boolean equals(Object that) {
4986
      if (that == null)
4987
        return false;
4988
      if (that instanceof getLogisticsEstimationForStore_args)
4989
        return this.equals((getLogisticsEstimationForStore_args)that);
4990
      return false;
4991
    }
4992
 
4993
    public boolean equals(getLogisticsEstimationForStore_args that) {
4994
      if (that == null)
4995
        return false;
4996
 
4997
      boolean this_present_itemId = true;
4998
      boolean that_present_itemId = true;
4999
      if (this_present_itemId || that_present_itemId) {
5000
        if (!(this_present_itemId && that_present_itemId))
5001
          return false;
5002
        if (this.itemId != that.itemId)
5003
          return false;
5004
      }
5005
 
5006
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
5007
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
5008
      if (this_present_destination_pin || that_present_destination_pin) {
5009
        if (!(this_present_destination_pin && that_present_destination_pin))
5010
          return false;
5011
        if (!this.destination_pin.equals(that.destination_pin))
5012
          return false;
5013
      }
5014
 
5015
      boolean this_present_type = true && this.isSetType();
5016
      boolean that_present_type = true && that.isSetType();
5017
      if (this_present_type || that_present_type) {
5018
        if (!(this_present_type && that_present_type))
5019
          return false;
5020
        if (!this.type.equals(that.type))
5021
          return false;
5022
      }
5023
 
5024
      return true;
5025
    }
5026
 
5027
    @Override
5028
    public int hashCode() {
5029
      return 0;
5030
    }
5031
 
5032
    public int compareTo(getLogisticsEstimationForStore_args other) {
5033
      if (!getClass().equals(other.getClass())) {
5034
        return getClass().getName().compareTo(other.getClass().getName());
5035
      }
5036
 
5037
      int lastComparison = 0;
5038
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
5039
 
5040
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
5041
      if (lastComparison != 0) {
5042
        return lastComparison;
5043
      }
5044
      if (isSetItemId()) {
5045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
5046
        if (lastComparison != 0) {
5047
          return lastComparison;
5048
        }
5049
      }
5050
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
5051
      if (lastComparison != 0) {
5052
        return lastComparison;
5053
      }
5054
      if (isSetDestination_pin()) {
5055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
5056
        if (lastComparison != 0) {
5057
          return lastComparison;
5058
        }
5059
      }
5060
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
5061
      if (lastComparison != 0) {
5062
        return lastComparison;
5063
      }
5064
      if (isSetType()) {
5065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5066
        if (lastComparison != 0) {
5067
          return lastComparison;
5068
        }
5069
      }
5070
      return 0;
5071
    }
5072
 
5073
    public _Fields fieldForId(int fieldId) {
5074
      return _Fields.findByThriftId(fieldId);
5075
    }
5076
 
5077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5078
      org.apache.thrift.protocol.TField field;
5079
      iprot.readStructBegin();
5080
      while (true)
5081
      {
5082
        field = iprot.readFieldBegin();
5083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5084
          break;
5085
        }
5086
        switch (field.id) {
5087
          case 1: // ITEM_ID
5088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5089
              this.itemId = iprot.readI64();
5090
              setItemIdIsSet(true);
5091
            } else { 
5092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5093
            }
5094
            break;
5095
          case 2: // DESTINATION_PIN
5096
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5097
              this.destination_pin = iprot.readString();
5098
            } else { 
5099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5100
            }
5101
            break;
5102
          case 3: // TYPE
5103
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5104
              this.type = DeliveryType.findByValue(iprot.readI32());
5105
            } else { 
5106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5107
            }
5108
            break;
5109
          default:
5110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5111
        }
5112
        iprot.readFieldEnd();
5113
      }
5114
      iprot.readStructEnd();
5115
      validate();
5116
    }
5117
 
5118
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5119
      validate();
5120
 
5121
      oprot.writeStructBegin(STRUCT_DESC);
5122
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5123
      oprot.writeI64(this.itemId);
5124
      oprot.writeFieldEnd();
5125
      if (this.destination_pin != null) {
5126
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
5127
        oprot.writeString(this.destination_pin);
5128
        oprot.writeFieldEnd();
5129
      }
5130
      if (this.type != null) {
5131
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5132
        oprot.writeI32(this.type.getValue());
5133
        oprot.writeFieldEnd();
5134
      }
5135
      oprot.writeFieldStop();
5136
      oprot.writeStructEnd();
5137
    }
5138
 
5139
    @Override
5140
    public String toString() {
5141
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
5142
      boolean first = true;
5143
 
5144
      sb.append("itemId:");
5145
      sb.append(this.itemId);
5146
      first = false;
5147
      if (!first) sb.append(", ");
5148
      sb.append("destination_pin:");
5149
      if (this.destination_pin == null) {
5150
        sb.append("null");
5151
      } else {
5152
        sb.append(this.destination_pin);
5153
      }
5154
      first = false;
5155
      if (!first) sb.append(", ");
5156
      sb.append("type:");
5157
      if (this.type == null) {
5158
        sb.append("null");
5159
      } else {
5160
        sb.append(this.type);
5161
      }
5162
      first = false;
5163
      sb.append(")");
5164
      return sb.toString();
5165
    }
5166
 
5167
    public void validate() throws org.apache.thrift.TException {
5168
      // check for required fields
5169
    }
5170
 
5171
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5172
      try {
5173
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5174
      } catch (org.apache.thrift.TException te) {
5175
        throw new java.io.IOException(te);
5176
      }
5177
    }
5178
 
5179
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5180
      try {
5181
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5182
        __isset_bit_vector = new BitSet(1);
5183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5184
      } catch (org.apache.thrift.TException te) {
5185
        throw new java.io.IOException(te);
5186
      }
5187
    }
5188
 
5189
  }
5190
 
5191
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5193
 
5194
    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);
5195
    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);
5196
 
5197
    private LogisticsInfo success; // required
5198
    private LogisticsServiceException se; // required
5199
 
5200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5202
      SUCCESS((short)0, "success"),
5203
      SE((short)1, "se");
5204
 
5205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5206
 
5207
      static {
5208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5209
          byName.put(field.getFieldName(), field);
5210
        }
5211
      }
5212
 
5213
      /**
5214
       * Find the _Fields constant that matches fieldId, or null if its not found.
5215
       */
5216
      public static _Fields findByThriftId(int fieldId) {
5217
        switch(fieldId) {
5218
          case 0: // SUCCESS
5219
            return SUCCESS;
5220
          case 1: // SE
5221
            return SE;
5222
          default:
5223
            return null;
5224
        }
5225
      }
5226
 
5227
      /**
5228
       * Find the _Fields constant that matches fieldId, throwing an exception
5229
       * if it is not found.
5230
       */
5231
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5232
        _Fields fields = findByThriftId(fieldId);
5233
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5234
        return fields;
5235
      }
5236
 
5237
      /**
5238
       * Find the _Fields constant that matches name, or null if its not found.
5239
       */
5240
      public static _Fields findByName(String name) {
5241
        return byName.get(name);
5242
      }
5243
 
5244
      private final short _thriftId;
5245
      private final String _fieldName;
5246
 
5247
      _Fields(short thriftId, String fieldName) {
5248
        _thriftId = thriftId;
5249
        _fieldName = fieldName;
5250
      }
5251
 
5252
      public short getThriftFieldId() {
5253
        return _thriftId;
5254
      }
5255
 
5256
      public String getFieldName() {
5257
        return _fieldName;
5258
      }
5259
    }
5260
 
5261
    // isset id assignments
5262
 
5263
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5264
    static {
5265
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5266
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5267
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5268
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5272
    }
5273
 
5274
    public getLogisticsEstimationForStore_result() {
5275
    }
5276
 
5277
    public getLogisticsEstimationForStore_result(
5278
      LogisticsInfo success,
5279
      LogisticsServiceException se)
5280
    {
5281
      this();
5282
      this.success = success;
5283
      this.se = se;
5284
    }
5285
 
5286
    /**
5287
     * Performs a deep copy on <i>other</i>.
5288
     */
5289
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5290
      if (other.isSetSuccess()) {
5291
        this.success = new LogisticsInfo(other.success);
5292
      }
5293
      if (other.isSetSe()) {
5294
        this.se = new LogisticsServiceException(other.se);
5295
      }
5296
    }
5297
 
5298
    public getLogisticsEstimationForStore_result deepCopy() {
5299
      return new getLogisticsEstimationForStore_result(this);
5300
    }
5301
 
5302
    @Override
5303
    public void clear() {
5304
      this.success = null;
5305
      this.se = null;
5306
    }
5307
 
5308
    public LogisticsInfo getSuccess() {
5309
      return this.success;
5310
    }
5311
 
5312
    public void setSuccess(LogisticsInfo success) {
5313
      this.success = success;
5314
    }
5315
 
5316
    public void unsetSuccess() {
5317
      this.success = null;
5318
    }
5319
 
5320
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5321
    public boolean isSetSuccess() {
5322
      return this.success != null;
5323
    }
5324
 
5325
    public void setSuccessIsSet(boolean value) {
5326
      if (!value) {
5327
        this.success = null;
5328
      }
5329
    }
5330
 
5331
    public LogisticsServiceException getSe() {
5332
      return this.se;
5333
    }
5334
 
5335
    public void setSe(LogisticsServiceException se) {
5336
      this.se = se;
5337
    }
5338
 
5339
    public void unsetSe() {
5340
      this.se = null;
5341
    }
5342
 
5343
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5344
    public boolean isSetSe() {
5345
      return this.se != null;
5346
    }
5347
 
5348
    public void setSeIsSet(boolean value) {
5349
      if (!value) {
5350
        this.se = null;
5351
      }
5352
    }
5353
 
5354
    public void setFieldValue(_Fields field, Object value) {
5355
      switch (field) {
5356
      case SUCCESS:
5357
        if (value == null) {
5358
          unsetSuccess();
5359
        } else {
5360
          setSuccess((LogisticsInfo)value);
5361
        }
5362
        break;
5363
 
5364
      case SE:
5365
        if (value == null) {
5366
          unsetSe();
5367
        } else {
5368
          setSe((LogisticsServiceException)value);
5369
        }
5370
        break;
5371
 
5372
      }
5373
    }
5374
 
5375
    public Object getFieldValue(_Fields field) {
5376
      switch (field) {
5377
      case SUCCESS:
5378
        return getSuccess();
5379
 
5380
      case SE:
5381
        return getSe();
5382
 
5383
      }
5384
      throw new IllegalStateException();
5385
    }
5386
 
5387
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5388
    public boolean isSet(_Fields field) {
5389
      if (field == null) {
5390
        throw new IllegalArgumentException();
5391
      }
5392
 
5393
      switch (field) {
5394
      case SUCCESS:
5395
        return isSetSuccess();
5396
      case SE:
5397
        return isSetSe();
5398
      }
5399
      throw new IllegalStateException();
5400
    }
5401
 
5402
    @Override
5403
    public boolean equals(Object that) {
5404
      if (that == null)
5405
        return false;
5406
      if (that instanceof getLogisticsEstimationForStore_result)
5407
        return this.equals((getLogisticsEstimationForStore_result)that);
5408
      return false;
5409
    }
5410
 
5411
    public boolean equals(getLogisticsEstimationForStore_result that) {
5412
      if (that == null)
5413
        return false;
5414
 
5415
      boolean this_present_success = true && this.isSetSuccess();
5416
      boolean that_present_success = true && that.isSetSuccess();
5417
      if (this_present_success || that_present_success) {
5418
        if (!(this_present_success && that_present_success))
5419
          return false;
5420
        if (!this.success.equals(that.success))
5421
          return false;
5422
      }
5423
 
5424
      boolean this_present_se = true && this.isSetSe();
5425
      boolean that_present_se = true && that.isSetSe();
5426
      if (this_present_se || that_present_se) {
5427
        if (!(this_present_se && that_present_se))
5428
          return false;
5429
        if (!this.se.equals(that.se))
5430
          return false;
5431
      }
5432
 
5433
      return true;
5434
    }
5435
 
5436
    @Override
5437
    public int hashCode() {
5438
      return 0;
5439
    }
5440
 
5441
    public int compareTo(getLogisticsEstimationForStore_result other) {
5442
      if (!getClass().equals(other.getClass())) {
5443
        return getClass().getName().compareTo(other.getClass().getName());
5444
      }
5445
 
5446
      int lastComparison = 0;
5447
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5448
 
5449
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5450
      if (lastComparison != 0) {
5451
        return lastComparison;
5452
      }
5453
      if (isSetSuccess()) {
5454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5455
        if (lastComparison != 0) {
5456
          return lastComparison;
5457
        }
5458
      }
5459
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5460
      if (lastComparison != 0) {
5461
        return lastComparison;
5462
      }
5463
      if (isSetSe()) {
5464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5465
        if (lastComparison != 0) {
5466
          return lastComparison;
5467
        }
5468
      }
5469
      return 0;
5470
    }
5471
 
5472
    public _Fields fieldForId(int fieldId) {
5473
      return _Fields.findByThriftId(fieldId);
5474
    }
5475
 
5476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5477
      org.apache.thrift.protocol.TField field;
5478
      iprot.readStructBegin();
5479
      while (true)
5480
      {
5481
        field = iprot.readFieldBegin();
5482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5483
          break;
5484
        }
5485
        switch (field.id) {
5486
          case 0: // SUCCESS
5487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5488
              this.success = new LogisticsInfo();
5489
              this.success.read(iprot);
5490
            } else { 
5491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5492
            }
5493
            break;
5494
          case 1: // SE
5495
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5496
              this.se = new LogisticsServiceException();
5497
              this.se.read(iprot);
5498
            } else { 
5499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5500
            }
5501
            break;
5502
          default:
5503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5504
        }
5505
        iprot.readFieldEnd();
5506
      }
5507
      iprot.readStructEnd();
5508
      validate();
5509
    }
5510
 
5511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5512
      oprot.writeStructBegin(STRUCT_DESC);
5513
 
5514
      if (this.isSetSuccess()) {
5515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5516
        this.success.write(oprot);
5517
        oprot.writeFieldEnd();
5518
      } else if (this.isSetSe()) {
5519
        oprot.writeFieldBegin(SE_FIELD_DESC);
5520
        this.se.write(oprot);
5521
        oprot.writeFieldEnd();
5522
      }
5523
      oprot.writeFieldStop();
5524
      oprot.writeStructEnd();
5525
    }
5526
 
5527
    @Override
5528
    public String toString() {
5529
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5530
      boolean first = true;
5531
 
5532
      sb.append("success:");
5533
      if (this.success == null) {
5534
        sb.append("null");
5535
      } else {
5536
        sb.append(this.success);
5537
      }
5538
      first = false;
5539
      if (!first) sb.append(", ");
5540
      sb.append("se:");
5541
      if (this.se == null) {
5542
        sb.append("null");
5543
      } else {
5544
        sb.append(this.se);
5545
      }
5546
      first = false;
5547
      sb.append(")");
5548
      return sb.toString();
5549
    }
5550
 
5551
    public void validate() throws org.apache.thrift.TException {
5552
      // check for required fields
5553
    }
5554
 
5555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5556
      try {
5557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5558
      } catch (org.apache.thrift.TException te) {
5559
        throw new java.io.IOException(te);
5560
      }
5561
    }
5562
 
5563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5564
      try {
5565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5566
      } catch (org.apache.thrift.TException te) {
5567
        throw new java.io.IOException(te);
5568
      }
5569
    }
5570
 
5571
  }
5572
 
3430 rajveer 5573
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5575
 
3430 rajveer 5576
    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);
5577
    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);
5578
    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 5579
    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);
23446 amit.gupta 5580
    private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)5);
471 rajveer 5581
 
3430 rajveer 5582
    private String destination_pincode; // required
5583
    private long item_id; // required
5584
    private DeliveryType type; // required
5766 rajveer 5585
    private PickUpType pickUp; // required
23446 amit.gupta 5586
    private long stateId; // required
471 rajveer 5587
 
5588
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5589
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5590
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5591
      ITEM_ID((short)2, "item_id"),
5592
      /**
5593
       * 
5594
       * @see DeliveryType
5595
       */
5766 rajveer 5596
      TYPE((short)3, "type"),
5597
      /**
5598
       * 
5599
       * @see PickUpType
5600
       */
23446 amit.gupta 5601
      PICK_UP((short)4, "pickUp"),
5602
      STATE_ID((short)5, "stateId");
471 rajveer 5603
 
5604
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5605
 
5606
      static {
5607
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5608
          byName.put(field.getFieldName(), field);
5609
        }
5610
      }
5611
 
5612
      /**
5613
       * Find the _Fields constant that matches fieldId, or null if its not found.
5614
       */
5615
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5616
        switch(fieldId) {
5617
          case 1: // DESTINATION_PINCODE
5618
            return DESTINATION_PINCODE;
5619
          case 2: // ITEM_ID
5620
            return ITEM_ID;
5621
          case 3: // TYPE
5622
            return TYPE;
5766 rajveer 5623
          case 4: // PICK_UP
5624
            return PICK_UP;
23446 amit.gupta 5625
          case 5: // STATE_ID
5626
            return STATE_ID;
3430 rajveer 5627
          default:
5628
            return null;
5629
        }
471 rajveer 5630
      }
5631
 
5632
      /**
5633
       * Find the _Fields constant that matches fieldId, throwing an exception
5634
       * if it is not found.
5635
       */
5636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5637
        _Fields fields = findByThriftId(fieldId);
5638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5639
        return fields;
5640
      }
5641
 
5642
      /**
5643
       * Find the _Fields constant that matches name, or null if its not found.
5644
       */
5645
      public static _Fields findByName(String name) {
5646
        return byName.get(name);
5647
      }
5648
 
5649
      private final short _thriftId;
5650
      private final String _fieldName;
5651
 
5652
      _Fields(short thriftId, String fieldName) {
5653
        _thriftId = thriftId;
5654
        _fieldName = fieldName;
5655
      }
5656
 
5657
      public short getThriftFieldId() {
5658
        return _thriftId;
5659
      }
5660
 
5661
      public String getFieldName() {
5662
        return _fieldName;
5663
      }
5664
    }
5665
 
5666
    // isset id assignments
715 rajveer 5667
    private static final int __ITEM_ID_ISSET_ID = 0;
23446 amit.gupta 5668
    private static final int __STATEID_ISSET_ID = 1;
5669
    private BitSet __isset_bit_vector = new BitSet(2);
471 rajveer 5670
 
3430 rajveer 5671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5672
    static {
3430 rajveer 5673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5674
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5676
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5678
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5679
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5680
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5681
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
23446 amit.gupta 5682
      tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 5684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5686
    }
5687
 
648 chandransh 5688
    public getLogisticsInfo_args() {
477 rajveer 5689
    }
5690
 
648 chandransh 5691
    public getLogisticsInfo_args(
5692
      String destination_pincode,
3044 chandransh 5693
      long item_id,
5766 rajveer 5694
      DeliveryType type,
23446 amit.gupta 5695
      PickUpType pickUp,
5696
      long stateId)
477 rajveer 5697
    {
5698
      this();
648 chandransh 5699
      this.destination_pincode = destination_pincode;
5700
      this.item_id = item_id;
715 rajveer 5701
      setItem_idIsSet(true);
3044 chandransh 5702
      this.type = type;
5766 rajveer 5703
      this.pickUp = pickUp;
23446 amit.gupta 5704
      this.stateId = stateId;
5705
      setStateIdIsSet(true);
477 rajveer 5706
    }
5707
 
5708
    /**
5709
     * Performs a deep copy on <i>other</i>.
5710
     */
648 chandransh 5711
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5712
      __isset_bit_vector.clear();
5713
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5714
      if (other.isSetDestination_pincode()) {
5715
        this.destination_pincode = other.destination_pincode;
477 rajveer 5716
      }
715 rajveer 5717
      this.item_id = other.item_id;
3044 chandransh 5718
      if (other.isSetType()) {
5719
        this.type = other.type;
5720
      }
5766 rajveer 5721
      if (other.isSetPickUp()) {
5722
        this.pickUp = other.pickUp;
5723
      }
23446 amit.gupta 5724
      this.stateId = other.stateId;
477 rajveer 5725
    }
5726
 
648 chandransh 5727
    public getLogisticsInfo_args deepCopy() {
5728
      return new getLogisticsInfo_args(this);
477 rajveer 5729
    }
5730
 
3430 rajveer 5731
    @Override
5732
    public void clear() {
5733
      this.destination_pincode = null;
5734
      setItem_idIsSet(false);
5735
      this.item_id = 0;
5736
      this.type = null;
5766 rajveer 5737
      this.pickUp = null;
23446 amit.gupta 5738
      setStateIdIsSet(false);
5739
      this.stateId = 0;
477 rajveer 5740
    }
5741
 
648 chandransh 5742
    public String getDestination_pincode() {
5743
      return this.destination_pincode;
477 rajveer 5744
    }
5745
 
3430 rajveer 5746
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5747
      this.destination_pincode = destination_pincode;
477 rajveer 5748
    }
5749
 
648 chandransh 5750
    public void unsetDestination_pincode() {
5751
      this.destination_pincode = null;
477 rajveer 5752
    }
5753
 
3430 rajveer 5754
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5755
    public boolean isSetDestination_pincode() {
5756
      return this.destination_pincode != null;
477 rajveer 5757
    }
5758
 
648 chandransh 5759
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5760
      if (!value) {
648 chandransh 5761
        this.destination_pincode = null;
477 rajveer 5762
      }
5763
    }
5764
 
715 rajveer 5765
    public long getItem_id() {
648 chandransh 5766
      return this.item_id;
477 rajveer 5767
    }
5768
 
3430 rajveer 5769
    public void setItem_id(long item_id) {
648 chandransh 5770
      this.item_id = item_id;
715 rajveer 5771
      setItem_idIsSet(true);
477 rajveer 5772
    }
5773
 
648 chandransh 5774
    public void unsetItem_id() {
715 rajveer 5775
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5776
    }
5777
 
3430 rajveer 5778
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5779
    public boolean isSetItem_id() {
715 rajveer 5780
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5781
    }
5782
 
648 chandransh 5783
    public void setItem_idIsSet(boolean value) {
715 rajveer 5784
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5785
    }
5786
 
3044 chandransh 5787
    /**
5788
     * 
5789
     * @see DeliveryType
5790
     */
5791
    public DeliveryType getType() {
5792
      return this.type;
5793
    }
5794
 
5795
    /**
5796
     * 
5797
     * @see DeliveryType
5798
     */
3430 rajveer 5799
    public void setType(DeliveryType type) {
3044 chandransh 5800
      this.type = type;
5801
    }
5802
 
5803
    public void unsetType() {
5804
      this.type = null;
5805
    }
5806
 
3430 rajveer 5807
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5808
    public boolean isSetType() {
5809
      return this.type != null;
5810
    }
5811
 
5812
    public void setTypeIsSet(boolean value) {
5813
      if (!value) {
5814
        this.type = null;
5815
      }
5816
    }
5817
 
5766 rajveer 5818
    /**
5819
     * 
5820
     * @see PickUpType
5821
     */
5822
    public PickUpType getPickUp() {
5823
      return this.pickUp;
5824
    }
5825
 
5826
    /**
5827
     * 
5828
     * @see PickUpType
5829
     */
5830
    public void setPickUp(PickUpType pickUp) {
5831
      this.pickUp = pickUp;
5832
    }
5833
 
5834
    public void unsetPickUp() {
5835
      this.pickUp = null;
5836
    }
5837
 
5838
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5839
    public boolean isSetPickUp() {
5840
      return this.pickUp != null;
5841
    }
5842
 
5843
    public void setPickUpIsSet(boolean value) {
5844
      if (!value) {
5845
        this.pickUp = null;
5846
      }
5847
    }
5848
 
23446 amit.gupta 5849
    public long getStateId() {
5850
      return this.stateId;
5851
    }
5852
 
5853
    public void setStateId(long stateId) {
5854
      this.stateId = stateId;
5855
      setStateIdIsSet(true);
5856
    }
5857
 
5858
    public void unsetStateId() {
5859
      __isset_bit_vector.clear(__STATEID_ISSET_ID);
5860
    }
5861
 
5862
    /** Returns true if field stateId is set (has been assigned a value) and false otherwise */
5863
    public boolean isSetStateId() {
5864
      return __isset_bit_vector.get(__STATEID_ISSET_ID);
5865
    }
5866
 
5867
    public void setStateIdIsSet(boolean value) {
5868
      __isset_bit_vector.set(__STATEID_ISSET_ID, value);
5869
    }
5870
 
477 rajveer 5871
    public void setFieldValue(_Fields field, Object value) {
5872
      switch (field) {
648 chandransh 5873
      case DESTINATION_PINCODE:
477 rajveer 5874
        if (value == null) {
648 chandransh 5875
          unsetDestination_pincode();
477 rajveer 5876
        } else {
648 chandransh 5877
          setDestination_pincode((String)value);
477 rajveer 5878
        }
5879
        break;
5880
 
648 chandransh 5881
      case ITEM_ID:
477 rajveer 5882
        if (value == null) {
648 chandransh 5883
          unsetItem_id();
477 rajveer 5884
        } else {
715 rajveer 5885
          setItem_id((Long)value);
477 rajveer 5886
        }
5887
        break;
5888
 
3044 chandransh 5889
      case TYPE:
5890
        if (value == null) {
5891
          unsetType();
5892
        } else {
5893
          setType((DeliveryType)value);
5894
        }
5895
        break;
5896
 
5766 rajveer 5897
      case PICK_UP:
5898
        if (value == null) {
5899
          unsetPickUp();
5900
        } else {
5901
          setPickUp((PickUpType)value);
5902
        }
5903
        break;
5904
 
23446 amit.gupta 5905
      case STATE_ID:
5906
        if (value == null) {
5907
          unsetStateId();
5908
        } else {
5909
          setStateId((Long)value);
5910
        }
5911
        break;
5912
 
477 rajveer 5913
      }
5914
    }
5915
 
5916
    public Object getFieldValue(_Fields field) {
5917
      switch (field) {
648 chandransh 5918
      case DESTINATION_PINCODE:
5919
        return getDestination_pincode();
477 rajveer 5920
 
648 chandransh 5921
      case ITEM_ID:
3430 rajveer 5922
        return Long.valueOf(getItem_id());
477 rajveer 5923
 
3044 chandransh 5924
      case TYPE:
5925
        return getType();
5926
 
5766 rajveer 5927
      case PICK_UP:
5928
        return getPickUp();
5929
 
23446 amit.gupta 5930
      case STATE_ID:
5931
        return Long.valueOf(getStateId());
5932
 
477 rajveer 5933
      }
5934
      throw new IllegalStateException();
5935
    }
5936
 
3430 rajveer 5937
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5938
    public boolean isSet(_Fields field) {
5939
      if (field == null) {
5940
        throw new IllegalArgumentException();
5941
      }
477 rajveer 5942
 
5943
      switch (field) {
648 chandransh 5944
      case DESTINATION_PINCODE:
5945
        return isSetDestination_pincode();
5946
      case ITEM_ID:
5947
        return isSetItem_id();
3044 chandransh 5948
      case TYPE:
5949
        return isSetType();
5766 rajveer 5950
      case PICK_UP:
5951
        return isSetPickUp();
23446 amit.gupta 5952
      case STATE_ID:
5953
        return isSetStateId();
477 rajveer 5954
      }
5955
      throw new IllegalStateException();
5956
    }
5957
 
5958
    @Override
5959
    public boolean equals(Object that) {
5960
      if (that == null)
5961
        return false;
648 chandransh 5962
      if (that instanceof getLogisticsInfo_args)
5963
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5964
      return false;
5965
    }
5966
 
648 chandransh 5967
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5968
      if (that == null)
5969
        return false;
5970
 
648 chandransh 5971
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5972
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5973
      if (this_present_destination_pincode || that_present_destination_pincode) {
5974
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5975
          return false;
648 chandransh 5976
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5977
          return false;
5978
      }
5979
 
715 rajveer 5980
      boolean this_present_item_id = true;
5981
      boolean that_present_item_id = true;
648 chandransh 5982
      if (this_present_item_id || that_present_item_id) {
5983
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5984
          return false;
715 rajveer 5985
        if (this.item_id != that.item_id)
477 rajveer 5986
          return false;
5987
      }
5988
 
3044 chandransh 5989
      boolean this_present_type = true && this.isSetType();
5990
      boolean that_present_type = true && that.isSetType();
5991
      if (this_present_type || that_present_type) {
5992
        if (!(this_present_type && that_present_type))
5993
          return false;
5994
        if (!this.type.equals(that.type))
5995
          return false;
5996
      }
5997
 
5766 rajveer 5998
      boolean this_present_pickUp = true && this.isSetPickUp();
5999
      boolean that_present_pickUp = true && that.isSetPickUp();
6000
      if (this_present_pickUp || that_present_pickUp) {
6001
        if (!(this_present_pickUp && that_present_pickUp))
6002
          return false;
6003
        if (!this.pickUp.equals(that.pickUp))
6004
          return false;
6005
      }
6006
 
23446 amit.gupta 6007
      boolean this_present_stateId = true;
6008
      boolean that_present_stateId = true;
6009
      if (this_present_stateId || that_present_stateId) {
6010
        if (!(this_present_stateId && that_present_stateId))
6011
          return false;
6012
        if (this.stateId != that.stateId)
6013
          return false;
6014
      }
6015
 
477 rajveer 6016
      return true;
6017
    }
6018
 
6019
    @Override
6020
    public int hashCode() {
6021
      return 0;
6022
    }
6023
 
648 chandransh 6024
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 6025
      if (!getClass().equals(other.getClass())) {
6026
        return getClass().getName().compareTo(other.getClass().getName());
6027
      }
6028
 
6029
      int lastComparison = 0;
648 chandransh 6030
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 6031
 
3430 rajveer 6032
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 6033
      if (lastComparison != 0) {
6034
        return lastComparison;
6035
      }
3430 rajveer 6036
      if (isSetDestination_pincode()) {
6037
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
6038
        if (lastComparison != 0) {
6039
          return lastComparison;
6040
        }
477 rajveer 6041
      }
3430 rajveer 6042
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 6043
      if (lastComparison != 0) {
6044
        return lastComparison;
6045
      }
3430 rajveer 6046
      if (isSetItem_id()) {
6047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
6048
        if (lastComparison != 0) {
6049
          return lastComparison;
6050
        }
477 rajveer 6051
      }
3430 rajveer 6052
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 6053
      if (lastComparison != 0) {
6054
        return lastComparison;
6055
      }
3430 rajveer 6056
      if (isSetType()) {
6057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6058
        if (lastComparison != 0) {
6059
          return lastComparison;
6060
        }
3044 chandransh 6061
      }
5766 rajveer 6062
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
6063
      if (lastComparison != 0) {
6064
        return lastComparison;
6065
      }
6066
      if (isSetPickUp()) {
6067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
6068
        if (lastComparison != 0) {
6069
          return lastComparison;
6070
        }
6071
      }
23446 amit.gupta 6072
      lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
6073
      if (lastComparison != 0) {
6074
        return lastComparison;
6075
      }
6076
      if (isSetStateId()) {
6077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
6078
        if (lastComparison != 0) {
6079
          return lastComparison;
6080
        }
6081
      }
477 rajveer 6082
      return 0;
6083
    }
6084
 
3430 rajveer 6085
    public _Fields fieldForId(int fieldId) {
6086
      return _Fields.findByThriftId(fieldId);
6087
    }
6088
 
6089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6090
      org.apache.thrift.protocol.TField field;
477 rajveer 6091
      iprot.readStructBegin();
6092
      while (true)
6093
      {
6094
        field = iprot.readFieldBegin();
3430 rajveer 6095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 6096
          break;
6097
        }
3430 rajveer 6098
        switch (field.id) {
6099
          case 1: // DESTINATION_PINCODE
6100
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6101
              this.destination_pincode = iprot.readString();
6102
            } else { 
6103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6104
            }
6105
            break;
6106
          case 2: // ITEM_ID
6107
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6108
              this.item_id = iprot.readI64();
6109
              setItem_idIsSet(true);
6110
            } else { 
6111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6112
            }
6113
            break;
6114
          case 3: // TYPE
6115
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6116
              this.type = DeliveryType.findByValue(iprot.readI32());
6117
            } else { 
6118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6119
            }
6120
            break;
5766 rajveer 6121
          case 4: // PICK_UP
6122
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6123
              this.pickUp = PickUpType.findByValue(iprot.readI32());
6124
            } else { 
6125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6126
            }
6127
            break;
23446 amit.gupta 6128
          case 5: // STATE_ID
6129
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6130
              this.stateId = iprot.readI64();
6131
              setStateIdIsSet(true);
6132
            } else { 
6133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6134
            }
6135
            break;
3430 rajveer 6136
          default:
6137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 6138
        }
3430 rajveer 6139
        iprot.readFieldEnd();
477 rajveer 6140
      }
6141
      iprot.readStructEnd();
6142
      validate();
6143
    }
6144
 
3430 rajveer 6145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 6146
      validate();
6147
 
6148
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 6149
      if (this.destination_pincode != null) {
6150
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
6151
        oprot.writeString(this.destination_pincode);
477 rajveer 6152
        oprot.writeFieldEnd();
6153
      }
715 rajveer 6154
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
6155
      oprot.writeI64(this.item_id);
6156
      oprot.writeFieldEnd();
3044 chandransh 6157
      if (this.type != null) {
6158
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6159
        oprot.writeI32(this.type.getValue());
6160
        oprot.writeFieldEnd();
6161
      }
5766 rajveer 6162
      if (this.pickUp != null) {
6163
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
6164
        oprot.writeI32(this.pickUp.getValue());
6165
        oprot.writeFieldEnd();
6166
      }
23446 amit.gupta 6167
      oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
6168
      oprot.writeI64(this.stateId);
6169
      oprot.writeFieldEnd();
477 rajveer 6170
      oprot.writeFieldStop();
6171
      oprot.writeStructEnd();
6172
    }
6173
 
6174
    @Override
6175
    public String toString() {
648 chandransh 6176
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 6177
      boolean first = true;
6178
 
648 chandransh 6179
      sb.append("destination_pincode:");
6180
      if (this.destination_pincode == null) {
477 rajveer 6181
        sb.append("null");
6182
      } else {
648 chandransh 6183
        sb.append(this.destination_pincode);
477 rajveer 6184
      }
6185
      first = false;
6186
      if (!first) sb.append(", ");
648 chandransh 6187
      sb.append("item_id:");
715 rajveer 6188
      sb.append(this.item_id);
477 rajveer 6189
      first = false;
3044 chandransh 6190
      if (!first) sb.append(", ");
6191
      sb.append("type:");
6192
      if (this.type == null) {
6193
        sb.append("null");
6194
      } else {
6195
        sb.append(this.type);
6196
      }
6197
      first = false;
5766 rajveer 6198
      if (!first) sb.append(", ");
6199
      sb.append("pickUp:");
6200
      if (this.pickUp == null) {
6201
        sb.append("null");
6202
      } else {
6203
        sb.append(this.pickUp);
6204
      }
6205
      first = false;
23446 amit.gupta 6206
      if (!first) sb.append(", ");
6207
      sb.append("stateId:");
6208
      sb.append(this.stateId);
6209
      first = false;
477 rajveer 6210
      sb.append(")");
6211
      return sb.toString();
6212
    }
6213
 
3430 rajveer 6214
    public void validate() throws org.apache.thrift.TException {
477 rajveer 6215
      // check for required fields
6216
    }
6217
 
3430 rajveer 6218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6219
      try {
6220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6221
      } catch (org.apache.thrift.TException te) {
6222
        throw new java.io.IOException(te);
6223
      }
6224
    }
6225
 
6226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6227
      try {
6228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6229
      } catch (org.apache.thrift.TException te) {
6230
        throw new java.io.IOException(te);
6231
      }
6232
    }
6233
 
477 rajveer 6234
  }
6235
 
3430 rajveer 6236
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
6237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 6238
 
3430 rajveer 6239
    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);
6240
    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 6241
 
3430 rajveer 6242
    private LogisticsInfo success; // required
6243
    private LogisticsServiceException se; // required
477 rajveer 6244
 
6245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6247
      SUCCESS((short)0, "success"),
6248
      SE((short)1, "se");
477 rajveer 6249
 
6250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6251
 
6252
      static {
6253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6254
          byName.put(field.getFieldName(), field);
6255
        }
6256
      }
6257
 
6258
      /**
6259
       * Find the _Fields constant that matches fieldId, or null if its not found.
6260
       */
6261
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6262
        switch(fieldId) {
6263
          case 0: // SUCCESS
6264
            return SUCCESS;
6265
          case 1: // SE
6266
            return SE;
6267
          default:
6268
            return null;
6269
        }
477 rajveer 6270
      }
6271
 
6272
      /**
6273
       * Find the _Fields constant that matches fieldId, throwing an exception
6274
       * if it is not found.
6275
       */
6276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6277
        _Fields fields = findByThriftId(fieldId);
6278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6279
        return fields;
6280
      }
6281
 
6282
      /**
6283
       * Find the _Fields constant that matches name, or null if its not found.
6284
       */
6285
      public static _Fields findByName(String name) {
6286
        return byName.get(name);
6287
      }
6288
 
6289
      private final short _thriftId;
6290
      private final String _fieldName;
6291
 
6292
      _Fields(short thriftId, String fieldName) {
6293
        _thriftId = thriftId;
6294
        _fieldName = fieldName;
6295
      }
6296
 
6297
      public short getThriftFieldId() {
6298
        return _thriftId;
6299
      }
6300
 
6301
      public String getFieldName() {
6302
        return _fieldName;
6303
      }
6304
    }
6305
 
412 ashish 6306
    // isset id assignments
6307
 
3430 rajveer 6308
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6309
    static {
3430 rajveer 6310
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6311
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6312
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6313
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6314
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6315
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6316
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6317
    }
6318
 
648 chandransh 6319
    public getLogisticsInfo_result() {
412 ashish 6320
    }
6321
 
648 chandransh 6322
    public getLogisticsInfo_result(
6323
      LogisticsInfo success,
6324
      LogisticsServiceException se)
412 ashish 6325
    {
6326
      this();
648 chandransh 6327
      this.success = success;
6328
      this.se = se;
412 ashish 6329
    }
6330
 
6331
    /**
6332
     * Performs a deep copy on <i>other</i>.
6333
     */
648 chandransh 6334
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6335
      if (other.isSetSuccess()) {
6336
        this.success = new LogisticsInfo(other.success);
412 ashish 6337
      }
648 chandransh 6338
      if (other.isSetSe()) {
6339
        this.se = new LogisticsServiceException(other.se);
6340
      }
412 ashish 6341
    }
6342
 
648 chandransh 6343
    public getLogisticsInfo_result deepCopy() {
6344
      return new getLogisticsInfo_result(this);
412 ashish 6345
    }
6346
 
3430 rajveer 6347
    @Override
6348
    public void clear() {
6349
      this.success = null;
6350
      this.se = null;
412 ashish 6351
    }
6352
 
648 chandransh 6353
    public LogisticsInfo getSuccess() {
6354
      return this.success;
412 ashish 6355
    }
6356
 
3430 rajveer 6357
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6358
      this.success = success;
412 ashish 6359
    }
6360
 
648 chandransh 6361
    public void unsetSuccess() {
6362
      this.success = null;
412 ashish 6363
    }
6364
 
3430 rajveer 6365
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6366
    public boolean isSetSuccess() {
6367
      return this.success != null;
412 ashish 6368
    }
6369
 
648 chandransh 6370
    public void setSuccessIsSet(boolean value) {
412 ashish 6371
      if (!value) {
648 chandransh 6372
        this.success = null;
412 ashish 6373
      }
6374
    }
6375
 
648 chandransh 6376
    public LogisticsServiceException getSe() {
6377
      return this.se;
412 ashish 6378
    }
6379
 
3430 rajveer 6380
    public void setSe(LogisticsServiceException se) {
648 chandransh 6381
      this.se = se;
412 ashish 6382
    }
6383
 
648 chandransh 6384
    public void unsetSe() {
6385
      this.se = null;
412 ashish 6386
    }
6387
 
3430 rajveer 6388
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6389
    public boolean isSetSe() {
6390
      return this.se != null;
412 ashish 6391
    }
6392
 
648 chandransh 6393
    public void setSeIsSet(boolean value) {
6394
      if (!value) {
6395
        this.se = null;
6396
      }
412 ashish 6397
    }
6398
 
6399
    public void setFieldValue(_Fields field, Object value) {
6400
      switch (field) {
648 chandransh 6401
      case SUCCESS:
412 ashish 6402
        if (value == null) {
648 chandransh 6403
          unsetSuccess();
412 ashish 6404
        } else {
648 chandransh 6405
          setSuccess((LogisticsInfo)value);
412 ashish 6406
        }
6407
        break;
6408
 
648 chandransh 6409
      case SE:
412 ashish 6410
        if (value == null) {
648 chandransh 6411
          unsetSe();
412 ashish 6412
        } else {
648 chandransh 6413
          setSe((LogisticsServiceException)value);
412 ashish 6414
        }
6415
        break;
6416
 
6417
      }
6418
    }
6419
 
6420
    public Object getFieldValue(_Fields field) {
6421
      switch (field) {
648 chandransh 6422
      case SUCCESS:
6423
        return getSuccess();
412 ashish 6424
 
648 chandransh 6425
      case SE:
6426
        return getSe();
412 ashish 6427
 
6428
      }
6429
      throw new IllegalStateException();
6430
    }
6431
 
3430 rajveer 6432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6433
    public boolean isSet(_Fields field) {
6434
      if (field == null) {
6435
        throw new IllegalArgumentException();
6436
      }
412 ashish 6437
 
6438
      switch (field) {
648 chandransh 6439
      case SUCCESS:
6440
        return isSetSuccess();
6441
      case SE:
6442
        return isSetSe();
412 ashish 6443
      }
6444
      throw new IllegalStateException();
6445
    }
6446
 
6447
    @Override
6448
    public boolean equals(Object that) {
6449
      if (that == null)
6450
        return false;
648 chandransh 6451
      if (that instanceof getLogisticsInfo_result)
6452
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6453
      return false;
6454
    }
6455
 
648 chandransh 6456
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6457
      if (that == null)
6458
        return false;
6459
 
648 chandransh 6460
      boolean this_present_success = true && this.isSetSuccess();
6461
      boolean that_present_success = true && that.isSetSuccess();
6462
      if (this_present_success || that_present_success) {
6463
        if (!(this_present_success && that_present_success))
412 ashish 6464
          return false;
648 chandransh 6465
        if (!this.success.equals(that.success))
412 ashish 6466
          return false;
6467
      }
6468
 
648 chandransh 6469
      boolean this_present_se = true && this.isSetSe();
6470
      boolean that_present_se = true && that.isSetSe();
6471
      if (this_present_se || that_present_se) {
6472
        if (!(this_present_se && that_present_se))
412 ashish 6473
          return false;
648 chandransh 6474
        if (!this.se.equals(that.se))
412 ashish 6475
          return false;
6476
      }
6477
 
6478
      return true;
6479
    }
6480
 
6481
    @Override
6482
    public int hashCode() {
6483
      return 0;
6484
    }
6485
 
648 chandransh 6486
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6487
      if (!getClass().equals(other.getClass())) {
6488
        return getClass().getName().compareTo(other.getClass().getName());
6489
      }
6490
 
6491
      int lastComparison = 0;
648 chandransh 6492
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6493
 
3430 rajveer 6494
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6495
      if (lastComparison != 0) {
6496
        return lastComparison;
6497
      }
3430 rajveer 6498
      if (isSetSuccess()) {
6499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6500
        if (lastComparison != 0) {
6501
          return lastComparison;
6502
        }
412 ashish 6503
      }
3430 rajveer 6504
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6505
      if (lastComparison != 0) {
6506
        return lastComparison;
6507
      }
3430 rajveer 6508
      if (isSetSe()) {
6509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6510
        if (lastComparison != 0) {
6511
          return lastComparison;
6512
        }
412 ashish 6513
      }
6514
      return 0;
6515
    }
6516
 
3430 rajveer 6517
    public _Fields fieldForId(int fieldId) {
6518
      return _Fields.findByThriftId(fieldId);
6519
    }
6520
 
6521
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6522
      org.apache.thrift.protocol.TField field;
412 ashish 6523
      iprot.readStructBegin();
6524
      while (true)
6525
      {
6526
        field = iprot.readFieldBegin();
3430 rajveer 6527
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6528
          break;
6529
        }
3430 rajveer 6530
        switch (field.id) {
6531
          case 0: // SUCCESS
6532
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6533
              this.success = new LogisticsInfo();
6534
              this.success.read(iprot);
6535
            } else { 
6536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6537
            }
6538
            break;
6539
          case 1: // SE
6540
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6541
              this.se = new LogisticsServiceException();
6542
              this.se.read(iprot);
6543
            } else { 
6544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6545
            }
6546
            break;
6547
          default:
6548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6549
        }
3430 rajveer 6550
        iprot.readFieldEnd();
412 ashish 6551
      }
6552
      iprot.readStructEnd();
6553
      validate();
6554
    }
6555
 
3430 rajveer 6556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6557
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6558
 
648 chandransh 6559
      if (this.isSetSuccess()) {
6560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6561
        this.success.write(oprot);
412 ashish 6562
        oprot.writeFieldEnd();
648 chandransh 6563
      } else if (this.isSetSe()) {
6564
        oprot.writeFieldBegin(SE_FIELD_DESC);
6565
        this.se.write(oprot);
6566
        oprot.writeFieldEnd();
412 ashish 6567
      }
6568
      oprot.writeFieldStop();
6569
      oprot.writeStructEnd();
6570
    }
6571
 
6572
    @Override
6573
    public String toString() {
648 chandransh 6574
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6575
      boolean first = true;
6576
 
648 chandransh 6577
      sb.append("success:");
6578
      if (this.success == null) {
412 ashish 6579
        sb.append("null");
6580
      } else {
648 chandransh 6581
        sb.append(this.success);
412 ashish 6582
      }
6583
      first = false;
6584
      if (!first) sb.append(", ");
648 chandransh 6585
      sb.append("se:");
6586
      if (this.se == null) {
6587
        sb.append("null");
6588
      } else {
6589
        sb.append(this.se);
6590
      }
412 ashish 6591
      first = false;
6592
      sb.append(")");
6593
      return sb.toString();
6594
    }
6595
 
3430 rajveer 6596
    public void validate() throws org.apache.thrift.TException {
412 ashish 6597
      // check for required fields
6598
    }
6599
 
3430 rajveer 6600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6601
      try {
6602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6603
      } catch (org.apache.thrift.TException te) {
6604
        throw new java.io.IOException(te);
6605
      }
6606
    }
6607
 
6608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6609
      try {
6610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6611
      } catch (org.apache.thrift.TException te) {
6612
        throw new java.io.IOException(te);
6613
      }
6614
    }
6615
 
412 ashish 6616
  }
6617
 
3430 rajveer 6618
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6620
 
3430 rajveer 6621
    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 6622
    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 6623
 
3430 rajveer 6624
    private long providerId; // required
20724 kshitij.so 6625
    private String logisticsTransactionId; // required
412 ashish 6626
 
6627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6629
      PROVIDER_ID((short)1, "providerId"),
20724 kshitij.so 6630
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
412 ashish 6631
 
6632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6633
 
6634
      static {
6635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6636
          byName.put(field.getFieldName(), field);
6637
        }
6638
      }
6639
 
6640
      /**
6641
       * Find the _Fields constant that matches fieldId, or null if its not found.
6642
       */
6643
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6644
        switch(fieldId) {
6645
          case 1: // PROVIDER_ID
6646
            return PROVIDER_ID;
20724 kshitij.so 6647
          case 2: // LOGISTICS_TRANSACTION_ID
6648
            return LOGISTICS_TRANSACTION_ID;
3430 rajveer 6649
          default:
6650
            return null;
6651
        }
412 ashish 6652
      }
6653
 
6654
      /**
6655
       * Find the _Fields constant that matches fieldId, throwing an exception
6656
       * if it is not found.
6657
       */
6658
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6659
        _Fields fields = findByThriftId(fieldId);
6660
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6661
        return fields;
6662
      }
6663
 
6664
      /**
6665
       * Find the _Fields constant that matches name, or null if its not found.
6666
       */
6667
      public static _Fields findByName(String name) {
6668
        return byName.get(name);
6669
      }
6670
 
6671
      private final short _thriftId;
6672
      private final String _fieldName;
6673
 
6674
      _Fields(short thriftId, String fieldName) {
6675
        _thriftId = thriftId;
6676
        _fieldName = fieldName;
6677
      }
6678
 
6679
      public short getThriftFieldId() {
6680
        return _thriftId;
6681
      }
6682
 
6683
      public String getFieldName() {
6684
        return _fieldName;
6685
      }
6686
    }
6687
 
6688
    // isset id assignments
648 chandransh 6689
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6690
    private BitSet __isset_bit_vector = new BitSet(1);
6691
 
3430 rajveer 6692
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6693
    static {
3430 rajveer 6694
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6695
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6696
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20724 kshitij.so 6697
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6701
    }
6702
 
6703
    public getEmptyAWB_args() {
6704
    }
6705
 
6706
    public getEmptyAWB_args(
5247 rajveer 6707
      long providerId,
20724 kshitij.so 6708
      String logisticsTransactionId)
412 ashish 6709
    {
6710
      this();
648 chandransh 6711
      this.providerId = providerId;
6712
      setProviderIdIsSet(true);
20724 kshitij.so 6713
      this.logisticsTransactionId = logisticsTransactionId;
412 ashish 6714
    }
6715
 
6716
    /**
6717
     * Performs a deep copy on <i>other</i>.
6718
     */
6719
    public getEmptyAWB_args(getEmptyAWB_args other) {
6720
      __isset_bit_vector.clear();
6721
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6722
      this.providerId = other.providerId;
20724 kshitij.so 6723
      if (other.isSetLogisticsTransactionId()) {
6724
        this.logisticsTransactionId = other.logisticsTransactionId;
5247 rajveer 6725
      }
412 ashish 6726
    }
6727
 
6728
    public getEmptyAWB_args deepCopy() {
6729
      return new getEmptyAWB_args(this);
6730
    }
6731
 
3430 rajveer 6732
    @Override
6733
    public void clear() {
6734
      setProviderIdIsSet(false);
6735
      this.providerId = 0;
20724 kshitij.so 6736
      this.logisticsTransactionId = null;
412 ashish 6737
    }
6738
 
648 chandransh 6739
    public long getProviderId() {
6740
      return this.providerId;
412 ashish 6741
    }
6742
 
3430 rajveer 6743
    public void setProviderId(long providerId) {
648 chandransh 6744
      this.providerId = providerId;
6745
      setProviderIdIsSet(true);
412 ashish 6746
    }
6747
 
648 chandransh 6748
    public void unsetProviderId() {
6749
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6750
    }
6751
 
3430 rajveer 6752
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6753
    public boolean isSetProviderId() {
6754
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6755
    }
6756
 
648 chandransh 6757
    public void setProviderIdIsSet(boolean value) {
6758
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6759
    }
6760
 
20724 kshitij.so 6761
    public String getLogisticsTransactionId() {
6762
      return this.logisticsTransactionId;
5247 rajveer 6763
    }
6764
 
20724 kshitij.so 6765
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6766
      this.logisticsTransactionId = logisticsTransactionId;
5247 rajveer 6767
    }
6768
 
20724 kshitij.so 6769
    public void unsetLogisticsTransactionId() {
6770
      this.logisticsTransactionId = null;
5247 rajveer 6771
    }
6772
 
20724 kshitij.so 6773
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6774
    public boolean isSetLogisticsTransactionId() {
6775
      return this.logisticsTransactionId != null;
5247 rajveer 6776
    }
6777
 
20724 kshitij.so 6778
    public void setLogisticsTransactionIdIsSet(boolean value) {
5247 rajveer 6779
      if (!value) {
20724 kshitij.so 6780
        this.logisticsTransactionId = null;
5247 rajveer 6781
      }
6782
    }
6783
 
412 ashish 6784
    public void setFieldValue(_Fields field, Object value) {
6785
      switch (field) {
6786
      case PROVIDER_ID:
6787
        if (value == null) {
648 chandransh 6788
          unsetProviderId();
412 ashish 6789
        } else {
648 chandransh 6790
          setProviderId((Long)value);
412 ashish 6791
        }
6792
        break;
6793
 
20724 kshitij.so 6794
      case LOGISTICS_TRANSACTION_ID:
5247 rajveer 6795
        if (value == null) {
20724 kshitij.so 6796
          unsetLogisticsTransactionId();
5247 rajveer 6797
        } else {
20724 kshitij.so 6798
          setLogisticsTransactionId((String)value);
5247 rajveer 6799
        }
6800
        break;
6801
 
412 ashish 6802
      }
6803
    }
6804
 
6805
    public Object getFieldValue(_Fields field) {
6806
      switch (field) {
6807
      case PROVIDER_ID:
3430 rajveer 6808
        return Long.valueOf(getProviderId());
412 ashish 6809
 
20724 kshitij.so 6810
      case LOGISTICS_TRANSACTION_ID:
6811
        return getLogisticsTransactionId();
5247 rajveer 6812
 
412 ashish 6813
      }
6814
      throw new IllegalStateException();
6815
    }
6816
 
3430 rajveer 6817
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6818
    public boolean isSet(_Fields field) {
6819
      if (field == null) {
6820
        throw new IllegalArgumentException();
6821
      }
412 ashish 6822
 
6823
      switch (field) {
6824
      case PROVIDER_ID:
648 chandransh 6825
        return isSetProviderId();
20724 kshitij.so 6826
      case LOGISTICS_TRANSACTION_ID:
6827
        return isSetLogisticsTransactionId();
412 ashish 6828
      }
6829
      throw new IllegalStateException();
6830
    }
6831
 
6832
    @Override
6833
    public boolean equals(Object that) {
6834
      if (that == null)
6835
        return false;
6836
      if (that instanceof getEmptyAWB_args)
6837
        return this.equals((getEmptyAWB_args)that);
6838
      return false;
6839
    }
6840
 
6841
    public boolean equals(getEmptyAWB_args that) {
6842
      if (that == null)
6843
        return false;
6844
 
648 chandransh 6845
      boolean this_present_providerId = true;
6846
      boolean that_present_providerId = true;
6847
      if (this_present_providerId || that_present_providerId) {
6848
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6849
          return false;
648 chandransh 6850
        if (this.providerId != that.providerId)
412 ashish 6851
          return false;
6852
      }
6853
 
20724 kshitij.so 6854
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6855
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6856
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6857
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
5247 rajveer 6858
          return false;
20724 kshitij.so 6859
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
5247 rajveer 6860
          return false;
6861
      }
6862
 
412 ashish 6863
      return true;
6864
    }
6865
 
6866
    @Override
6867
    public int hashCode() {
6868
      return 0;
6869
    }
6870
 
6871
    public int compareTo(getEmptyAWB_args other) {
6872
      if (!getClass().equals(other.getClass())) {
6873
        return getClass().getName().compareTo(other.getClass().getName());
6874
      }
6875
 
6876
      int lastComparison = 0;
6877
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6878
 
3430 rajveer 6879
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6880
      if (lastComparison != 0) {
6881
        return lastComparison;
6882
      }
3430 rajveer 6883
      if (isSetProviderId()) {
6884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6885
        if (lastComparison != 0) {
6886
          return lastComparison;
6887
        }
412 ashish 6888
      }
20724 kshitij.so 6889
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
5247 rajveer 6890
      if (lastComparison != 0) {
6891
        return lastComparison;
6892
      }
20724 kshitij.so 6893
      if (isSetLogisticsTransactionId()) {
6894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
5247 rajveer 6895
        if (lastComparison != 0) {
6896
          return lastComparison;
6897
        }
6898
      }
412 ashish 6899
      return 0;
6900
    }
6901
 
3430 rajveer 6902
    public _Fields fieldForId(int fieldId) {
6903
      return _Fields.findByThriftId(fieldId);
6904
    }
6905
 
6906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6907
      org.apache.thrift.protocol.TField field;
412 ashish 6908
      iprot.readStructBegin();
6909
      while (true)
6910
      {
6911
        field = iprot.readFieldBegin();
3430 rajveer 6912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6913
          break;
6914
        }
3430 rajveer 6915
        switch (field.id) {
6916
          case 1: // PROVIDER_ID
6917
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6918
              this.providerId = iprot.readI64();
6919
              setProviderIdIsSet(true);
6920
            } else { 
6921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6922
            }
6923
            break;
20724 kshitij.so 6924
          case 2: // LOGISTICS_TRANSACTION_ID
6925
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6926
              this.logisticsTransactionId = iprot.readString();
5247 rajveer 6927
            } else { 
6928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6929
            }
6930
            break;
3430 rajveer 6931
          default:
6932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6933
        }
3430 rajveer 6934
        iprot.readFieldEnd();
412 ashish 6935
      }
6936
      iprot.readStructEnd();
6937
      validate();
6938
    }
6939
 
3430 rajveer 6940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6941
      validate();
6942
 
6943
      oprot.writeStructBegin(STRUCT_DESC);
6944
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6945
      oprot.writeI64(this.providerId);
412 ashish 6946
      oprot.writeFieldEnd();
20724 kshitij.so 6947
      if (this.logisticsTransactionId != null) {
6948
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
6949
        oprot.writeString(this.logisticsTransactionId);
6950
        oprot.writeFieldEnd();
6951
      }
412 ashish 6952
      oprot.writeFieldStop();
6953
      oprot.writeStructEnd();
6954
    }
6955
 
6956
    @Override
6957
    public String toString() {
6958
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6959
      boolean first = true;
6960
 
648 chandransh 6961
      sb.append("providerId:");
6962
      sb.append(this.providerId);
412 ashish 6963
      first = false;
5247 rajveer 6964
      if (!first) sb.append(", ");
20724 kshitij.so 6965
      sb.append("logisticsTransactionId:");
6966
      if (this.logisticsTransactionId == null) {
5247 rajveer 6967
        sb.append("null");
6968
      } else {
20724 kshitij.so 6969
        sb.append(this.logisticsTransactionId);
5247 rajveer 6970
      }
6971
      first = false;
412 ashish 6972
      sb.append(")");
6973
      return sb.toString();
6974
    }
6975
 
3430 rajveer 6976
    public void validate() throws org.apache.thrift.TException {
412 ashish 6977
      // check for required fields
6978
    }
6979
 
3430 rajveer 6980
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6981
      try {
6982
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6983
      } catch (org.apache.thrift.TException te) {
6984
        throw new java.io.IOException(te);
6985
      }
6986
    }
6987
 
6988
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6989
      try {
6990
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6991
        __isset_bit_vector = new BitSet(1);
6992
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6993
      } catch (org.apache.thrift.TException te) {
6994
        throw new java.io.IOException(te);
6995
      }
6996
    }
6997
 
412 ashish 6998
  }
6999
 
3430 rajveer 7000
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
7001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 7002
 
3430 rajveer 7003
    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);
7004
    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 7005
 
3430 rajveer 7006
    private String success; // required
7007
    private LogisticsServiceException se; // required
412 ashish 7008
 
7009
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7010
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7011
      SUCCESS((short)0, "success"),
7012
      SE((short)1, "se");
412 ashish 7013
 
7014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7015
 
7016
      static {
7017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7018
          byName.put(field.getFieldName(), field);
7019
        }
7020
      }
7021
 
7022
      /**
7023
       * Find the _Fields constant that matches fieldId, or null if its not found.
7024
       */
7025
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7026
        switch(fieldId) {
7027
          case 0: // SUCCESS
7028
            return SUCCESS;
7029
          case 1: // SE
7030
            return SE;
7031
          default:
7032
            return null;
7033
        }
412 ashish 7034
      }
7035
 
7036
      /**
7037
       * Find the _Fields constant that matches fieldId, throwing an exception
7038
       * if it is not found.
7039
       */
7040
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7041
        _Fields fields = findByThriftId(fieldId);
7042
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7043
        return fields;
7044
      }
7045
 
7046
      /**
7047
       * Find the _Fields constant that matches name, or null if its not found.
7048
       */
7049
      public static _Fields findByName(String name) {
7050
        return byName.get(name);
7051
      }
7052
 
7053
      private final short _thriftId;
7054
      private final String _fieldName;
7055
 
7056
      _Fields(short thriftId, String fieldName) {
7057
        _thriftId = thriftId;
7058
        _fieldName = fieldName;
7059
      }
7060
 
7061
      public short getThriftFieldId() {
7062
        return _thriftId;
7063
      }
7064
 
7065
      public String getFieldName() {
7066
        return _fieldName;
7067
      }
7068
    }
7069
 
7070
    // isset id assignments
7071
 
3430 rajveer 7072
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7073
    static {
3430 rajveer 7074
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7075
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7076
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7077
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 7081
    }
7082
 
7083
    public getEmptyAWB_result() {
7084
    }
7085
 
7086
    public getEmptyAWB_result(
648 chandransh 7087
      String success,
7088
      LogisticsServiceException se)
412 ashish 7089
    {
7090
      this();
7091
      this.success = success;
648 chandransh 7092
      this.se = se;
412 ashish 7093
    }
7094
 
7095
    /**
7096
     * Performs a deep copy on <i>other</i>.
7097
     */
7098
    public getEmptyAWB_result(getEmptyAWB_result other) {
7099
      if (other.isSetSuccess()) {
7100
        this.success = other.success;
7101
      }
648 chandransh 7102
      if (other.isSetSe()) {
7103
        this.se = new LogisticsServiceException(other.se);
7104
      }
412 ashish 7105
    }
7106
 
7107
    public getEmptyAWB_result deepCopy() {
7108
      return new getEmptyAWB_result(this);
7109
    }
7110
 
3430 rajveer 7111
    @Override
7112
    public void clear() {
7113
      this.success = null;
7114
      this.se = null;
412 ashish 7115
    }
7116
 
7117
    public String getSuccess() {
7118
      return this.success;
7119
    }
7120
 
3430 rajveer 7121
    public void setSuccess(String success) {
412 ashish 7122
      this.success = success;
7123
    }
7124
 
7125
    public void unsetSuccess() {
7126
      this.success = null;
7127
    }
7128
 
3430 rajveer 7129
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7130
    public boolean isSetSuccess() {
7131
      return this.success != null;
7132
    }
7133
 
7134
    public void setSuccessIsSet(boolean value) {
7135
      if (!value) {
7136
        this.success = null;
7137
      }
7138
    }
7139
 
648 chandransh 7140
    public LogisticsServiceException getSe() {
7141
      return this.se;
412 ashish 7142
    }
7143
 
3430 rajveer 7144
    public void setSe(LogisticsServiceException se) {
648 chandransh 7145
      this.se = se;
412 ashish 7146
    }
7147
 
648 chandransh 7148
    public void unsetSe() {
7149
      this.se = null;
412 ashish 7150
    }
7151
 
3430 rajveer 7152
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7153
    public boolean isSetSe() {
7154
      return this.se != null;
412 ashish 7155
    }
7156
 
648 chandransh 7157
    public void setSeIsSet(boolean value) {
412 ashish 7158
      if (!value) {
648 chandransh 7159
        this.se = null;
412 ashish 7160
      }
7161
    }
7162
 
7163
    public void setFieldValue(_Fields field, Object value) {
7164
      switch (field) {
7165
      case SUCCESS:
7166
        if (value == null) {
7167
          unsetSuccess();
7168
        } else {
648 chandransh 7169
          setSuccess((String)value);
412 ashish 7170
        }
7171
        break;
7172
 
648 chandransh 7173
      case SE:
7174
        if (value == null) {
7175
          unsetSe();
7176
        } else {
7177
          setSe((LogisticsServiceException)value);
7178
        }
7179
        break;
7180
 
412 ashish 7181
      }
7182
    }
7183
 
7184
    public Object getFieldValue(_Fields field) {
7185
      switch (field) {
7186
      case SUCCESS:
7187
        return getSuccess();
7188
 
648 chandransh 7189
      case SE:
7190
        return getSe();
7191
 
412 ashish 7192
      }
7193
      throw new IllegalStateException();
7194
    }
7195
 
3430 rajveer 7196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7197
    public boolean isSet(_Fields field) {
7198
      if (field == null) {
7199
        throw new IllegalArgumentException();
7200
      }
412 ashish 7201
 
7202
      switch (field) {
7203
      case SUCCESS:
7204
        return isSetSuccess();
648 chandransh 7205
      case SE:
7206
        return isSetSe();
412 ashish 7207
      }
7208
      throw new IllegalStateException();
7209
    }
7210
 
7211
    @Override
7212
    public boolean equals(Object that) {
7213
      if (that == null)
7214
        return false;
648 chandransh 7215
      if (that instanceof getEmptyAWB_result)
7216
        return this.equals((getEmptyAWB_result)that);
412 ashish 7217
      return false;
7218
    }
7219
 
648 chandransh 7220
    public boolean equals(getEmptyAWB_result that) {
412 ashish 7221
      if (that == null)
7222
        return false;
7223
 
7224
      boolean this_present_success = true && this.isSetSuccess();
7225
      boolean that_present_success = true && that.isSetSuccess();
7226
      if (this_present_success || that_present_success) {
7227
        if (!(this_present_success && that_present_success))
7228
          return false;
7229
        if (!this.success.equals(that.success))
7230
          return false;
7231
      }
7232
 
648 chandransh 7233
      boolean this_present_se = true && this.isSetSe();
7234
      boolean that_present_se = true && that.isSetSe();
7235
      if (this_present_se || that_present_se) {
7236
        if (!(this_present_se && that_present_se))
7237
          return false;
7238
        if (!this.se.equals(that.se))
7239
          return false;
7240
      }
7241
 
412 ashish 7242
      return true;
7243
    }
7244
 
7245
    @Override
7246
    public int hashCode() {
7247
      return 0;
7248
    }
7249
 
648 chandransh 7250
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7251
      if (!getClass().equals(other.getClass())) {
7252
        return getClass().getName().compareTo(other.getClass().getName());
7253
      }
7254
 
7255
      int lastComparison = 0;
648 chandransh 7256
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7257
 
3430 rajveer 7258
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7259
      if (lastComparison != 0) {
7260
        return lastComparison;
7261
      }
3430 rajveer 7262
      if (isSetSuccess()) {
7263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7264
        if (lastComparison != 0) {
7265
          return lastComparison;
7266
        }
412 ashish 7267
      }
3430 rajveer 7268
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7269
      if (lastComparison != 0) {
7270
        return lastComparison;
7271
      }
3430 rajveer 7272
      if (isSetSe()) {
7273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7274
        if (lastComparison != 0) {
7275
          return lastComparison;
7276
        }
412 ashish 7277
      }
7278
      return 0;
7279
    }
7280
 
3430 rajveer 7281
    public _Fields fieldForId(int fieldId) {
7282
      return _Fields.findByThriftId(fieldId);
7283
    }
7284
 
7285
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7286
      org.apache.thrift.protocol.TField field;
412 ashish 7287
      iprot.readStructBegin();
7288
      while (true)
7289
      {
7290
        field = iprot.readFieldBegin();
3430 rajveer 7291
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7292
          break;
7293
        }
3430 rajveer 7294
        switch (field.id) {
7295
          case 0: // SUCCESS
7296
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7297
              this.success = iprot.readString();
7298
            } else { 
7299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7300
            }
7301
            break;
7302
          case 1: // SE
7303
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7304
              this.se = new LogisticsServiceException();
7305
              this.se.read(iprot);
7306
            } else { 
7307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7308
            }
7309
            break;
7310
          default:
7311
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7312
        }
3430 rajveer 7313
        iprot.readFieldEnd();
412 ashish 7314
      }
7315
      iprot.readStructEnd();
7316
      validate();
7317
    }
7318
 
3430 rajveer 7319
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7320
      oprot.writeStructBegin(STRUCT_DESC);
7321
 
7322
      if (this.isSetSuccess()) {
7323
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7324
        oprot.writeString(this.success);
412 ashish 7325
        oprot.writeFieldEnd();
648 chandransh 7326
      } else if (this.isSetSe()) {
7327
        oprot.writeFieldBegin(SE_FIELD_DESC);
7328
        this.se.write(oprot);
7329
        oprot.writeFieldEnd();
412 ashish 7330
      }
7331
      oprot.writeFieldStop();
7332
      oprot.writeStructEnd();
7333
    }
7334
 
7335
    @Override
7336
    public String toString() {
648 chandransh 7337
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7338
      boolean first = true;
7339
 
7340
      sb.append("success:");
7341
      if (this.success == null) {
7342
        sb.append("null");
7343
      } else {
7344
        sb.append(this.success);
7345
      }
7346
      first = false;
648 chandransh 7347
      if (!first) sb.append(", ");
7348
      sb.append("se:");
7349
      if (this.se == null) {
442 rajveer 7350
        sb.append("null");
7351
      } else {
648 chandransh 7352
        sb.append(this.se);
442 rajveer 7353
      }
7354
      first = false;
7355
      sb.append(")");
7356
      return sb.toString();
7357
    }
7358
 
3430 rajveer 7359
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7360
      // check for required fields
7361
    }
7362
 
3430 rajveer 7363
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7364
      try {
7365
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7366
      } catch (org.apache.thrift.TException te) {
7367
        throw new java.io.IOException(te);
7368
      }
7369
    }
7370
 
7371
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7372
      try {
7373
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7374
      } catch (org.apache.thrift.TException te) {
7375
        throw new java.io.IOException(te);
7376
      }
7377
    }
7378
 
442 rajveer 7379
  }
7380
 
3430 rajveer 7381
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7383
 
6643 rajveer 7384
    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 7385
    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 7386
 
6643 rajveer 7387
    private String awbNumber; // required
3430 rajveer 7388
    private long providerId; // required
442 rajveer 7389
 
7390
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7391
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7392
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7393
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7394
 
7395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7396
 
7397
      static {
7398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7399
          byName.put(field.getFieldName(), field);
7400
        }
7401
      }
7402
 
7403
      /**
7404
       * Find the _Fields constant that matches fieldId, or null if its not found.
7405
       */
7406
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7407
        switch(fieldId) {
6643 rajveer 7408
          case 1: // AWB_NUMBER
7409
            return AWB_NUMBER;
3430 rajveer 7410
          case 2: // PROVIDER_ID
7411
            return PROVIDER_ID;
7412
          default:
7413
            return null;
7414
        }
442 rajveer 7415
      }
7416
 
7417
      /**
7418
       * Find the _Fields constant that matches fieldId, throwing an exception
7419
       * if it is not found.
7420
       */
7421
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7422
        _Fields fields = findByThriftId(fieldId);
7423
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7424
        return fields;
7425
      }
7426
 
7427
      /**
7428
       * Find the _Fields constant that matches name, or null if its not found.
7429
       */
7430
      public static _Fields findByName(String name) {
7431
        return byName.get(name);
7432
      }
7433
 
7434
      private final short _thriftId;
7435
      private final String _fieldName;
7436
 
7437
      _Fields(short thriftId, String fieldName) {
7438
        _thriftId = thriftId;
7439
        _fieldName = fieldName;
7440
      }
7441
 
7442
      public short getThriftFieldId() {
7443
        return _thriftId;
7444
      }
7445
 
7446
      public String getFieldName() {
7447
        return _fieldName;
7448
      }
7449
    }
7450
 
7451
    // isset id assignments
648 chandransh 7452
    private static final int __PROVIDERID_ISSET_ID = 0;
7453
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7454
 
3430 rajveer 7455
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7456
    static {
3430 rajveer 7457
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7458
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7460
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7462
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7463
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7464
    }
7465
 
648 chandransh 7466
    public getShipmentInfo_args() {
442 rajveer 7467
    }
7468
 
648 chandransh 7469
    public getShipmentInfo_args(
6643 rajveer 7470
      String awbNumber,
648 chandransh 7471
      long providerId)
442 rajveer 7472
    {
7473
      this();
6643 rajveer 7474
      this.awbNumber = awbNumber;
648 chandransh 7475
      this.providerId = providerId;
7476
      setProviderIdIsSet(true);
442 rajveer 7477
    }
7478
 
7479
    /**
7480
     * Performs a deep copy on <i>other</i>.
7481
     */
648 chandransh 7482
    public getShipmentInfo_args(getShipmentInfo_args other) {
7483
      __isset_bit_vector.clear();
7484
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7485
      if (other.isSetAwbNumber()) {
7486
        this.awbNumber = other.awbNumber;
442 rajveer 7487
      }
648 chandransh 7488
      this.providerId = other.providerId;
442 rajveer 7489
    }
7490
 
648 chandransh 7491
    public getShipmentInfo_args deepCopy() {
7492
      return new getShipmentInfo_args(this);
442 rajveer 7493
    }
7494
 
3430 rajveer 7495
    @Override
7496
    public void clear() {
6643 rajveer 7497
      this.awbNumber = null;
3430 rajveer 7498
      setProviderIdIsSet(false);
7499
      this.providerId = 0;
442 rajveer 7500
    }
7501
 
6643 rajveer 7502
    public String getAwbNumber() {
7503
      return this.awbNumber;
442 rajveer 7504
    }
7505
 
6643 rajveer 7506
    public void setAwbNumber(String awbNumber) {
7507
      this.awbNumber = awbNumber;
442 rajveer 7508
    }
7509
 
6643 rajveer 7510
    public void unsetAwbNumber() {
7511
      this.awbNumber = null;
442 rajveer 7512
    }
7513
 
6643 rajveer 7514
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7515
    public boolean isSetAwbNumber() {
7516
      return this.awbNumber != null;
442 rajveer 7517
    }
7518
 
6643 rajveer 7519
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7520
      if (!value) {
6643 rajveer 7521
        this.awbNumber = null;
442 rajveer 7522
      }
7523
    }
7524
 
648 chandransh 7525
    public long getProviderId() {
7526
      return this.providerId;
442 rajveer 7527
    }
7528
 
3430 rajveer 7529
    public void setProviderId(long providerId) {
648 chandransh 7530
      this.providerId = providerId;
7531
      setProviderIdIsSet(true);
442 rajveer 7532
    }
7533
 
648 chandransh 7534
    public void unsetProviderId() {
7535
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7536
    }
7537
 
3430 rajveer 7538
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7539
    public boolean isSetProviderId() {
7540
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7541
    }
7542
 
648 chandransh 7543
    public void setProviderIdIsSet(boolean value) {
7544
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7545
    }
7546
 
7547
    public void setFieldValue(_Fields field, Object value) {
7548
      switch (field) {
6643 rajveer 7549
      case AWB_NUMBER:
442 rajveer 7550
        if (value == null) {
6643 rajveer 7551
          unsetAwbNumber();
442 rajveer 7552
        } else {
6643 rajveer 7553
          setAwbNumber((String)value);
442 rajveer 7554
        }
7555
        break;
7556
 
648 chandransh 7557
      case PROVIDER_ID:
442 rajveer 7558
        if (value == null) {
648 chandransh 7559
          unsetProviderId();
442 rajveer 7560
        } else {
648 chandransh 7561
          setProviderId((Long)value);
442 rajveer 7562
        }
7563
        break;
7564
 
7565
      }
7566
    }
7567
 
7568
    public Object getFieldValue(_Fields field) {
7569
      switch (field) {
6643 rajveer 7570
      case AWB_NUMBER:
7571
        return getAwbNumber();
442 rajveer 7572
 
648 chandransh 7573
      case PROVIDER_ID:
3430 rajveer 7574
        return Long.valueOf(getProviderId());
442 rajveer 7575
 
7576
      }
7577
      throw new IllegalStateException();
7578
    }
7579
 
3430 rajveer 7580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7581
    public boolean isSet(_Fields field) {
7582
      if (field == null) {
7583
        throw new IllegalArgumentException();
7584
      }
442 rajveer 7585
 
7586
      switch (field) {
6643 rajveer 7587
      case AWB_NUMBER:
7588
        return isSetAwbNumber();
648 chandransh 7589
      case PROVIDER_ID:
7590
        return isSetProviderId();
442 rajveer 7591
      }
7592
      throw new IllegalStateException();
7593
    }
7594
 
7595
    @Override
7596
    public boolean equals(Object that) {
7597
      if (that == null)
7598
        return false;
648 chandransh 7599
      if (that instanceof getShipmentInfo_args)
7600
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7601
      return false;
7602
    }
7603
 
648 chandransh 7604
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7605
      if (that == null)
7606
        return false;
7607
 
6643 rajveer 7608
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7609
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7610
      if (this_present_awbNumber || that_present_awbNumber) {
7611
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7612
          return false;
6643 rajveer 7613
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7614
          return false;
7615
      }
7616
 
648 chandransh 7617
      boolean this_present_providerId = true;
7618
      boolean that_present_providerId = true;
7619
      if (this_present_providerId || that_present_providerId) {
7620
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7621
          return false;
648 chandransh 7622
        if (this.providerId != that.providerId)
442 rajveer 7623
          return false;
7624
      }
7625
 
7626
      return true;
7627
    }
7628
 
7629
    @Override
7630
    public int hashCode() {
7631
      return 0;
7632
    }
7633
 
648 chandransh 7634
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7635
      if (!getClass().equals(other.getClass())) {
7636
        return getClass().getName().compareTo(other.getClass().getName());
7637
      }
7638
 
7639
      int lastComparison = 0;
648 chandransh 7640
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7641
 
6643 rajveer 7642
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7643
      if (lastComparison != 0) {
7644
        return lastComparison;
7645
      }
6643 rajveer 7646
      if (isSetAwbNumber()) {
7647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7648
        if (lastComparison != 0) {
7649
          return lastComparison;
7650
        }
442 rajveer 7651
      }
3430 rajveer 7652
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7653
      if (lastComparison != 0) {
7654
        return lastComparison;
7655
      }
3430 rajveer 7656
      if (isSetProviderId()) {
7657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7658
        if (lastComparison != 0) {
7659
          return lastComparison;
7660
        }
442 rajveer 7661
      }
7662
      return 0;
7663
    }
7664
 
3430 rajveer 7665
    public _Fields fieldForId(int fieldId) {
7666
      return _Fields.findByThriftId(fieldId);
7667
    }
7668
 
7669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7670
      org.apache.thrift.protocol.TField field;
442 rajveer 7671
      iprot.readStructBegin();
7672
      while (true)
7673
      {
7674
        field = iprot.readFieldBegin();
3430 rajveer 7675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7676
          break;
7677
        }
3430 rajveer 7678
        switch (field.id) {
6643 rajveer 7679
          case 1: // AWB_NUMBER
3430 rajveer 7680
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7681
              this.awbNumber = iprot.readString();
3430 rajveer 7682
            } else { 
7683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7684
            }
7685
            break;
7686
          case 2: // PROVIDER_ID
7687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7688
              this.providerId = iprot.readI64();
7689
              setProviderIdIsSet(true);
7690
            } else { 
7691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7692
            }
7693
            break;
7694
          default:
7695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7696
        }
3430 rajveer 7697
        iprot.readFieldEnd();
442 rajveer 7698
      }
7699
      iprot.readStructEnd();
7700
      validate();
7701
    }
7702
 
3430 rajveer 7703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7704
      validate();
7705
 
7706
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7707
      if (this.awbNumber != null) {
7708
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7709
        oprot.writeString(this.awbNumber);
442 rajveer 7710
        oprot.writeFieldEnd();
7711
      }
648 chandransh 7712
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7713
      oprot.writeI64(this.providerId);
7714
      oprot.writeFieldEnd();
442 rajveer 7715
      oprot.writeFieldStop();
7716
      oprot.writeStructEnd();
7717
    }
7718
 
7719
    @Override
7720
    public String toString() {
648 chandransh 7721
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7722
      boolean first = true;
7723
 
6643 rajveer 7724
      sb.append("awbNumber:");
7725
      if (this.awbNumber == null) {
442 rajveer 7726
        sb.append("null");
7727
      } else {
6643 rajveer 7728
        sb.append(this.awbNumber);
442 rajveer 7729
      }
7730
      first = false;
7731
      if (!first) sb.append(", ");
648 chandransh 7732
      sb.append("providerId:");
7733
      sb.append(this.providerId);
442 rajveer 7734
      first = false;
7735
      sb.append(")");
7736
      return sb.toString();
7737
    }
7738
 
3430 rajveer 7739
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7740
      // check for required fields
7741
    }
7742
 
3430 rajveer 7743
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7744
      try {
7745
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7746
      } catch (org.apache.thrift.TException te) {
7747
        throw new java.io.IOException(te);
7748
      }
7749
    }
7750
 
7751
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7752
      try {
7753
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7754
      } catch (org.apache.thrift.TException te) {
7755
        throw new java.io.IOException(te);
7756
      }
7757
    }
7758
 
442 rajveer 7759
  }
7760
 
3430 rajveer 7761
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7762
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7763
 
3430 rajveer 7764
    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);
7765
    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 7766
 
3430 rajveer 7767
    private List<AwbUpdate> success; // required
7768
    private LogisticsServiceException se; // required
412 ashish 7769
 
7770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7772
      SUCCESS((short)0, "success"),
7773
      SE((short)1, "se");
412 ashish 7774
 
7775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7776
 
7777
      static {
7778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7779
          byName.put(field.getFieldName(), field);
7780
        }
7781
      }
7782
 
7783
      /**
7784
       * Find the _Fields constant that matches fieldId, or null if its not found.
7785
       */
7786
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7787
        switch(fieldId) {
7788
          case 0: // SUCCESS
7789
            return SUCCESS;
7790
          case 1: // SE
7791
            return SE;
7792
          default:
7793
            return null;
7794
        }
412 ashish 7795
      }
7796
 
7797
      /**
7798
       * Find the _Fields constant that matches fieldId, throwing an exception
7799
       * if it is not found.
7800
       */
7801
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7802
        _Fields fields = findByThriftId(fieldId);
7803
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7804
        return fields;
7805
      }
7806
 
7807
      /**
7808
       * Find the _Fields constant that matches name, or null if its not found.
7809
       */
7810
      public static _Fields findByName(String name) {
7811
        return byName.get(name);
7812
      }
7813
 
7814
      private final short _thriftId;
7815
      private final String _fieldName;
7816
 
7817
      _Fields(short thriftId, String fieldName) {
7818
        _thriftId = thriftId;
7819
        _fieldName = fieldName;
7820
      }
7821
 
7822
      public short getThriftFieldId() {
7823
        return _thriftId;
7824
      }
7825
 
7826
      public String getFieldName() {
7827
        return _fieldName;
7828
      }
7829
    }
7830
 
7831
    // isset id assignments
7832
 
3430 rajveer 7833
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7834
    static {
3430 rajveer 7835
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7836
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7837
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7838
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7839
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7840
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7843
    }
7844
 
7845
    public getShipmentInfo_result() {
7846
    }
7847
 
7848
    public getShipmentInfo_result(
648 chandransh 7849
      List<AwbUpdate> success,
7850
      LogisticsServiceException se)
412 ashish 7851
    {
7852
      this();
7853
      this.success = success;
648 chandransh 7854
      this.se = se;
412 ashish 7855
    }
7856
 
7857
    /**
7858
     * Performs a deep copy on <i>other</i>.
7859
     */
7860
    public getShipmentInfo_result(getShipmentInfo_result other) {
7861
      if (other.isSetSuccess()) {
648 chandransh 7862
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7863
        for (AwbUpdate other_element : other.success) {
7864
          __this__success.add(new AwbUpdate(other_element));
7865
        }
7866
        this.success = __this__success;
412 ashish 7867
      }
648 chandransh 7868
      if (other.isSetSe()) {
7869
        this.se = new LogisticsServiceException(other.se);
7870
      }
412 ashish 7871
    }
7872
 
7873
    public getShipmentInfo_result deepCopy() {
7874
      return new getShipmentInfo_result(this);
7875
    }
7876
 
3430 rajveer 7877
    @Override
7878
    public void clear() {
7879
      this.success = null;
7880
      this.se = null;
412 ashish 7881
    }
7882
 
7883
    public int getSuccessSize() {
7884
      return (this.success == null) ? 0 : this.success.size();
7885
    }
7886
 
648 chandransh 7887
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7888
      return (this.success == null) ? null : this.success.iterator();
7889
    }
7890
 
648 chandransh 7891
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7892
      if (this.success == null) {
648 chandransh 7893
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7894
      }
7895
      this.success.add(elem);
7896
    }
7897
 
648 chandransh 7898
    public List<AwbUpdate> getSuccess() {
412 ashish 7899
      return this.success;
7900
    }
7901
 
3430 rajveer 7902
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7903
      this.success = success;
7904
    }
7905
 
7906
    public void unsetSuccess() {
7907
      this.success = null;
7908
    }
7909
 
3430 rajveer 7910
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7911
    public boolean isSetSuccess() {
7912
      return this.success != null;
7913
    }
7914
 
7915
    public void setSuccessIsSet(boolean value) {
7916
      if (!value) {
7917
        this.success = null;
7918
      }
7919
    }
7920
 
648 chandransh 7921
    public LogisticsServiceException getSe() {
7922
      return this.se;
412 ashish 7923
    }
7924
 
3430 rajveer 7925
    public void setSe(LogisticsServiceException se) {
648 chandransh 7926
      this.se = se;
412 ashish 7927
    }
7928
 
648 chandransh 7929
    public void unsetSe() {
7930
      this.se = null;
412 ashish 7931
    }
7932
 
3430 rajveer 7933
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7934
    public boolean isSetSe() {
7935
      return this.se != null;
412 ashish 7936
    }
7937
 
648 chandransh 7938
    public void setSeIsSet(boolean value) {
7939
      if (!value) {
7940
        this.se = null;
412 ashish 7941
      }
7942
    }
7943
 
7944
    public void setFieldValue(_Fields field, Object value) {
7945
      switch (field) {
648 chandransh 7946
      case SUCCESS:
412 ashish 7947
        if (value == null) {
648 chandransh 7948
          unsetSuccess();
412 ashish 7949
        } else {
648 chandransh 7950
          setSuccess((List<AwbUpdate>)value);
412 ashish 7951
        }
7952
        break;
7953
 
648 chandransh 7954
      case SE:
412 ashish 7955
        if (value == null) {
648 chandransh 7956
          unsetSe();
412 ashish 7957
        } else {
648 chandransh 7958
          setSe((LogisticsServiceException)value);
412 ashish 7959
        }
7960
        break;
7961
 
7962
      }
7963
    }
7964
 
7965
    public Object getFieldValue(_Fields field) {
7966
      switch (field) {
648 chandransh 7967
      case SUCCESS:
7968
        return getSuccess();
412 ashish 7969
 
648 chandransh 7970
      case SE:
7971
        return getSe();
412 ashish 7972
 
7973
      }
7974
      throw new IllegalStateException();
7975
    }
7976
 
3430 rajveer 7977
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7978
    public boolean isSet(_Fields field) {
7979
      if (field == null) {
7980
        throw new IllegalArgumentException();
7981
      }
412 ashish 7982
 
7983
      switch (field) {
648 chandransh 7984
      case SUCCESS:
7985
        return isSetSuccess();
7986
      case SE:
7987
        return isSetSe();
412 ashish 7988
      }
7989
      throw new IllegalStateException();
7990
    }
7991
 
7992
    @Override
7993
    public boolean equals(Object that) {
7994
      if (that == null)
7995
        return false;
648 chandransh 7996
      if (that instanceof getShipmentInfo_result)
7997
        return this.equals((getShipmentInfo_result)that);
412 ashish 7998
      return false;
7999
    }
8000
 
648 chandransh 8001
    public boolean equals(getShipmentInfo_result that) {
412 ashish 8002
      if (that == null)
8003
        return false;
8004
 
648 chandransh 8005
      boolean this_present_success = true && this.isSetSuccess();
8006
      boolean that_present_success = true && that.isSetSuccess();
8007
      if (this_present_success || that_present_success) {
8008
        if (!(this_present_success && that_present_success))
412 ashish 8009
          return false;
648 chandransh 8010
        if (!this.success.equals(that.success))
412 ashish 8011
          return false;
8012
      }
8013
 
648 chandransh 8014
      boolean this_present_se = true && this.isSetSe();
8015
      boolean that_present_se = true && that.isSetSe();
8016
      if (this_present_se || that_present_se) {
8017
        if (!(this_present_se && that_present_se))
412 ashish 8018
          return false;
648 chandransh 8019
        if (!this.se.equals(that.se))
412 ashish 8020
          return false;
8021
      }
8022
 
8023
      return true;
8024
    }
8025
 
8026
    @Override
8027
    public int hashCode() {
8028
      return 0;
8029
    }
8030
 
648 chandransh 8031
    public int compareTo(getShipmentInfo_result other) {
412 ashish 8032
      if (!getClass().equals(other.getClass())) {
8033
        return getClass().getName().compareTo(other.getClass().getName());
8034
      }
8035
 
8036
      int lastComparison = 0;
648 chandransh 8037
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 8038
 
3430 rajveer 8039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 8040
      if (lastComparison != 0) {
8041
        return lastComparison;
8042
      }
3430 rajveer 8043
      if (isSetSuccess()) {
8044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8045
        if (lastComparison != 0) {
8046
          return lastComparison;
8047
        }
412 ashish 8048
      }
3430 rajveer 8049
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 8050
      if (lastComparison != 0) {
8051
        return lastComparison;
8052
      }
3430 rajveer 8053
      if (isSetSe()) {
8054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8055
        if (lastComparison != 0) {
8056
          return lastComparison;
8057
        }
412 ashish 8058
      }
8059
      return 0;
8060
    }
8061
 
3430 rajveer 8062
    public _Fields fieldForId(int fieldId) {
8063
      return _Fields.findByThriftId(fieldId);
8064
    }
8065
 
8066
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8067
      org.apache.thrift.protocol.TField field;
412 ashish 8068
      iprot.readStructBegin();
8069
      while (true)
8070
      {
8071
        field = iprot.readFieldBegin();
3430 rajveer 8072
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 8073
          break;
8074
        }
3430 rajveer 8075
        switch (field.id) {
8076
          case 0: // SUCCESS
8077
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8078
              {
7792 anupam.sin 8079
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
8080
                this.success = new ArrayList<AwbUpdate>(_list8.size);
8081
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 8082
                {
7792 anupam.sin 8083
                  AwbUpdate _elem10; // required
8084
                  _elem10 = new AwbUpdate();
8085
                  _elem10.read(iprot);
8086
                  this.success.add(_elem10);
412 ashish 8087
                }
3430 rajveer 8088
                iprot.readListEnd();
412 ashish 8089
              }
3430 rajveer 8090
            } else { 
8091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8092
            }
8093
            break;
8094
          case 1: // SE
8095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8096
              this.se = new LogisticsServiceException();
8097
              this.se.read(iprot);
8098
            } else { 
8099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8100
            }
8101
            break;
8102
          default:
8103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 8104
        }
3430 rajveer 8105
        iprot.readFieldEnd();
412 ashish 8106
      }
8107
      iprot.readStructEnd();
8108
      validate();
8109
    }
8110
 
3430 rajveer 8111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 8112
      oprot.writeStructBegin(STRUCT_DESC);
8113
 
8114
      if (this.isSetSuccess()) {
8115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8116
        {
3430 rajveer 8117
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 8118
          for (AwbUpdate _iter11 : this.success)
412 ashish 8119
          {
7792 anupam.sin 8120
            _iter11.write(oprot);
412 ashish 8121
          }
8122
          oprot.writeListEnd();
8123
        }
8124
        oprot.writeFieldEnd();
648 chandransh 8125
      } else if (this.isSetSe()) {
8126
        oprot.writeFieldBegin(SE_FIELD_DESC);
8127
        this.se.write(oprot);
8128
        oprot.writeFieldEnd();
412 ashish 8129
      }
8130
      oprot.writeFieldStop();
8131
      oprot.writeStructEnd();
8132
    }
8133
 
8134
    @Override
8135
    public String toString() {
648 chandransh 8136
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 8137
      boolean first = true;
8138
 
8139
      sb.append("success:");
8140
      if (this.success == null) {
8141
        sb.append("null");
8142
      } else {
8143
        sb.append(this.success);
8144
      }
8145
      first = false;
648 chandransh 8146
      if (!first) sb.append(", ");
8147
      sb.append("se:");
8148
      if (this.se == null) {
8149
        sb.append("null");
8150
      } else {
8151
        sb.append(this.se);
8152
      }
8153
      first = false;
412 ashish 8154
      sb.append(")");
8155
      return sb.toString();
8156
    }
8157
 
3430 rajveer 8158
    public void validate() throws org.apache.thrift.TException {
412 ashish 8159
      // check for required fields
8160
    }
8161
 
3430 rajveer 8162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8163
      try {
8164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8165
      } catch (org.apache.thrift.TException te) {
8166
        throw new java.io.IOException(te);
8167
      }
8168
    }
8169
 
8170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8171
      try {
8172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8173
      } catch (org.apache.thrift.TException te) {
8174
        throw new java.io.IOException(te);
8175
      }
8176
    }
8177
 
412 ashish 8178
  }
8179
 
6643 rajveer 8180
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
8181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
8182
 
8183
    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);
8184
 
8185
    private AwbUpdate update; // required
8186
 
8187
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8188
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8189
      UPDATE((short)1, "update");
8190
 
8191
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8192
 
8193
      static {
8194
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8195
          byName.put(field.getFieldName(), field);
8196
        }
8197
      }
8198
 
8199
      /**
8200
       * Find the _Fields constant that matches fieldId, or null if its not found.
8201
       */
8202
      public static _Fields findByThriftId(int fieldId) {
8203
        switch(fieldId) {
8204
          case 1: // UPDATE
8205
            return UPDATE;
8206
          default:
8207
            return null;
8208
        }
8209
      }
8210
 
8211
      /**
8212
       * Find the _Fields constant that matches fieldId, throwing an exception
8213
       * if it is not found.
8214
       */
8215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8216
        _Fields fields = findByThriftId(fieldId);
8217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8218
        return fields;
8219
      }
8220
 
8221
      /**
8222
       * Find the _Fields constant that matches name, or null if its not found.
8223
       */
8224
      public static _Fields findByName(String name) {
8225
        return byName.get(name);
8226
      }
8227
 
8228
      private final short _thriftId;
8229
      private final String _fieldName;
8230
 
8231
      _Fields(short thriftId, String fieldName) {
8232
        _thriftId = thriftId;
8233
        _fieldName = fieldName;
8234
      }
8235
 
8236
      public short getThriftFieldId() {
8237
        return _thriftId;
8238
      }
8239
 
8240
      public String getFieldName() {
8241
        return _fieldName;
8242
      }
8243
    }
8244
 
8245
    // isset id assignments
8246
 
8247
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8248
    static {
8249
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8250
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8251
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8254
    }
8255
 
8256
    public storeShipmentInfo_args() {
8257
    }
8258
 
8259
    public storeShipmentInfo_args(
8260
      AwbUpdate update)
8261
    {
8262
      this();
8263
      this.update = update;
8264
    }
8265
 
8266
    /**
8267
     * Performs a deep copy on <i>other</i>.
8268
     */
8269
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8270
      if (other.isSetUpdate()) {
8271
        this.update = new AwbUpdate(other.update);
8272
      }
8273
    }
8274
 
8275
    public storeShipmentInfo_args deepCopy() {
8276
      return new storeShipmentInfo_args(this);
8277
    }
8278
 
8279
    @Override
8280
    public void clear() {
8281
      this.update = null;
8282
    }
8283
 
8284
    public AwbUpdate getUpdate() {
8285
      return this.update;
8286
    }
8287
 
8288
    public void setUpdate(AwbUpdate update) {
8289
      this.update = update;
8290
    }
8291
 
8292
    public void unsetUpdate() {
8293
      this.update = null;
8294
    }
8295
 
8296
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8297
    public boolean isSetUpdate() {
8298
      return this.update != null;
8299
    }
8300
 
8301
    public void setUpdateIsSet(boolean value) {
8302
      if (!value) {
8303
        this.update = null;
8304
      }
8305
    }
8306
 
8307
    public void setFieldValue(_Fields field, Object value) {
8308
      switch (field) {
8309
      case UPDATE:
8310
        if (value == null) {
8311
          unsetUpdate();
8312
        } else {
8313
          setUpdate((AwbUpdate)value);
8314
        }
8315
        break;
8316
 
8317
      }
8318
    }
8319
 
8320
    public Object getFieldValue(_Fields field) {
8321
      switch (field) {
8322
      case UPDATE:
8323
        return getUpdate();
8324
 
8325
      }
8326
      throw new IllegalStateException();
8327
    }
8328
 
8329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8330
    public boolean isSet(_Fields field) {
8331
      if (field == null) {
8332
        throw new IllegalArgumentException();
8333
      }
8334
 
8335
      switch (field) {
8336
      case UPDATE:
8337
        return isSetUpdate();
8338
      }
8339
      throw new IllegalStateException();
8340
    }
8341
 
8342
    @Override
8343
    public boolean equals(Object that) {
8344
      if (that == null)
8345
        return false;
8346
      if (that instanceof storeShipmentInfo_args)
8347
        return this.equals((storeShipmentInfo_args)that);
8348
      return false;
8349
    }
8350
 
8351
    public boolean equals(storeShipmentInfo_args that) {
8352
      if (that == null)
8353
        return false;
8354
 
8355
      boolean this_present_update = true && this.isSetUpdate();
8356
      boolean that_present_update = true && that.isSetUpdate();
8357
      if (this_present_update || that_present_update) {
8358
        if (!(this_present_update && that_present_update))
8359
          return false;
8360
        if (!this.update.equals(that.update))
8361
          return false;
8362
      }
8363
 
8364
      return true;
8365
    }
8366
 
8367
    @Override
8368
    public int hashCode() {
8369
      return 0;
8370
    }
8371
 
8372
    public int compareTo(storeShipmentInfo_args other) {
8373
      if (!getClass().equals(other.getClass())) {
8374
        return getClass().getName().compareTo(other.getClass().getName());
8375
      }
8376
 
8377
      int lastComparison = 0;
8378
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8379
 
8380
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8381
      if (lastComparison != 0) {
8382
        return lastComparison;
8383
      }
8384
      if (isSetUpdate()) {
8385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8386
        if (lastComparison != 0) {
8387
          return lastComparison;
8388
        }
8389
      }
8390
      return 0;
8391
    }
8392
 
8393
    public _Fields fieldForId(int fieldId) {
8394
      return _Fields.findByThriftId(fieldId);
8395
    }
8396
 
8397
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8398
      org.apache.thrift.protocol.TField field;
8399
      iprot.readStructBegin();
8400
      while (true)
8401
      {
8402
        field = iprot.readFieldBegin();
8403
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8404
          break;
8405
        }
8406
        switch (field.id) {
8407
          case 1: // UPDATE
8408
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8409
              this.update = new AwbUpdate();
8410
              this.update.read(iprot);
8411
            } else { 
8412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8413
            }
8414
            break;
8415
          default:
8416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8417
        }
8418
        iprot.readFieldEnd();
8419
      }
8420
      iprot.readStructEnd();
8421
      validate();
8422
    }
8423
 
8424
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8425
      validate();
8426
 
8427
      oprot.writeStructBegin(STRUCT_DESC);
8428
      if (this.update != null) {
8429
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8430
        this.update.write(oprot);
8431
        oprot.writeFieldEnd();
8432
      }
8433
      oprot.writeFieldStop();
8434
      oprot.writeStructEnd();
8435
    }
8436
 
8437
    @Override
8438
    public String toString() {
8439
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8440
      boolean first = true;
8441
 
8442
      sb.append("update:");
8443
      if (this.update == null) {
8444
        sb.append("null");
8445
      } else {
8446
        sb.append(this.update);
8447
      }
8448
      first = false;
8449
      sb.append(")");
8450
      return sb.toString();
8451
    }
8452
 
8453
    public void validate() throws org.apache.thrift.TException {
8454
      // check for required fields
8455
    }
8456
 
8457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8458
      try {
8459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8460
      } catch (org.apache.thrift.TException te) {
8461
        throw new java.io.IOException(te);
8462
      }
8463
    }
8464
 
8465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8466
      try {
8467
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8468
      } catch (org.apache.thrift.TException te) {
8469
        throw new java.io.IOException(te);
8470
      }
8471
    }
8472
 
8473
  }
8474
 
8475
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8476
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8477
 
8478
    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);
8479
 
8480
    private LogisticsServiceException se; // required
8481
 
8482
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8483
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8484
      SE((short)1, "se");
8485
 
8486
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8487
 
8488
      static {
8489
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8490
          byName.put(field.getFieldName(), field);
8491
        }
8492
      }
8493
 
8494
      /**
8495
       * Find the _Fields constant that matches fieldId, or null if its not found.
8496
       */
8497
      public static _Fields findByThriftId(int fieldId) {
8498
        switch(fieldId) {
8499
          case 1: // SE
8500
            return SE;
8501
          default:
8502
            return null;
8503
        }
8504
      }
8505
 
8506
      /**
8507
       * Find the _Fields constant that matches fieldId, throwing an exception
8508
       * if it is not found.
8509
       */
8510
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8511
        _Fields fields = findByThriftId(fieldId);
8512
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8513
        return fields;
8514
      }
8515
 
8516
      /**
8517
       * Find the _Fields constant that matches name, or null if its not found.
8518
       */
8519
      public static _Fields findByName(String name) {
8520
        return byName.get(name);
8521
      }
8522
 
8523
      private final short _thriftId;
8524
      private final String _fieldName;
8525
 
8526
      _Fields(short thriftId, String fieldName) {
8527
        _thriftId = thriftId;
8528
        _fieldName = fieldName;
8529
      }
8530
 
8531
      public short getThriftFieldId() {
8532
        return _thriftId;
8533
      }
8534
 
8535
      public String getFieldName() {
8536
        return _fieldName;
8537
      }
8538
    }
8539
 
8540
    // isset id assignments
8541
 
8542
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8543
    static {
8544
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8545
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8549
    }
8550
 
8551
    public storeShipmentInfo_result() {
8552
    }
8553
 
8554
    public storeShipmentInfo_result(
8555
      LogisticsServiceException se)
8556
    {
8557
      this();
8558
      this.se = se;
8559
    }
8560
 
8561
    /**
8562
     * Performs a deep copy on <i>other</i>.
8563
     */
8564
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8565
      if (other.isSetSe()) {
8566
        this.se = new LogisticsServiceException(other.se);
8567
      }
8568
    }
8569
 
8570
    public storeShipmentInfo_result deepCopy() {
8571
      return new storeShipmentInfo_result(this);
8572
    }
8573
 
8574
    @Override
8575
    public void clear() {
8576
      this.se = null;
8577
    }
8578
 
8579
    public LogisticsServiceException getSe() {
8580
      return this.se;
8581
    }
8582
 
8583
    public void setSe(LogisticsServiceException se) {
8584
      this.se = se;
8585
    }
8586
 
8587
    public void unsetSe() {
8588
      this.se = null;
8589
    }
8590
 
8591
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8592
    public boolean isSetSe() {
8593
      return this.se != null;
8594
    }
8595
 
8596
    public void setSeIsSet(boolean value) {
8597
      if (!value) {
8598
        this.se = null;
8599
      }
8600
    }
8601
 
8602
    public void setFieldValue(_Fields field, Object value) {
8603
      switch (field) {
8604
      case SE:
8605
        if (value == null) {
8606
          unsetSe();
8607
        } else {
8608
          setSe((LogisticsServiceException)value);
8609
        }
8610
        break;
8611
 
8612
      }
8613
    }
8614
 
8615
    public Object getFieldValue(_Fields field) {
8616
      switch (field) {
8617
      case SE:
8618
        return getSe();
8619
 
8620
      }
8621
      throw new IllegalStateException();
8622
    }
8623
 
8624
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8625
    public boolean isSet(_Fields field) {
8626
      if (field == null) {
8627
        throw new IllegalArgumentException();
8628
      }
8629
 
8630
      switch (field) {
8631
      case SE:
8632
        return isSetSe();
8633
      }
8634
      throw new IllegalStateException();
8635
    }
8636
 
8637
    @Override
8638
    public boolean equals(Object that) {
8639
      if (that == null)
8640
        return false;
8641
      if (that instanceof storeShipmentInfo_result)
8642
        return this.equals((storeShipmentInfo_result)that);
8643
      return false;
8644
    }
8645
 
8646
    public boolean equals(storeShipmentInfo_result that) {
8647
      if (that == null)
8648
        return false;
8649
 
8650
      boolean this_present_se = true && this.isSetSe();
8651
      boolean that_present_se = true && that.isSetSe();
8652
      if (this_present_se || that_present_se) {
8653
        if (!(this_present_se && that_present_se))
8654
          return false;
8655
        if (!this.se.equals(that.se))
8656
          return false;
8657
      }
8658
 
8659
      return true;
8660
    }
8661
 
8662
    @Override
8663
    public int hashCode() {
8664
      return 0;
8665
    }
8666
 
8667
    public int compareTo(storeShipmentInfo_result other) {
8668
      if (!getClass().equals(other.getClass())) {
8669
        return getClass().getName().compareTo(other.getClass().getName());
8670
      }
8671
 
8672
      int lastComparison = 0;
8673
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8674
 
8675
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8676
      if (lastComparison != 0) {
8677
        return lastComparison;
8678
      }
8679
      if (isSetSe()) {
8680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8681
        if (lastComparison != 0) {
8682
          return lastComparison;
8683
        }
8684
      }
8685
      return 0;
8686
    }
8687
 
8688
    public _Fields fieldForId(int fieldId) {
8689
      return _Fields.findByThriftId(fieldId);
8690
    }
8691
 
8692
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8693
      org.apache.thrift.protocol.TField field;
8694
      iprot.readStructBegin();
8695
      while (true)
8696
      {
8697
        field = iprot.readFieldBegin();
8698
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8699
          break;
8700
        }
8701
        switch (field.id) {
8702
          case 1: // SE
8703
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8704
              this.se = new LogisticsServiceException();
8705
              this.se.read(iprot);
8706
            } else { 
8707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8708
            }
8709
            break;
8710
          default:
8711
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8712
        }
8713
        iprot.readFieldEnd();
8714
      }
8715
      iprot.readStructEnd();
8716
      validate();
8717
    }
8718
 
8719
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8720
      oprot.writeStructBegin(STRUCT_DESC);
8721
 
8722
      if (this.isSetSe()) {
8723
        oprot.writeFieldBegin(SE_FIELD_DESC);
8724
        this.se.write(oprot);
8725
        oprot.writeFieldEnd();
8726
      }
8727
      oprot.writeFieldStop();
8728
      oprot.writeStructEnd();
8729
    }
8730
 
8731
    @Override
8732
    public String toString() {
8733
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8734
      boolean first = true;
8735
 
8736
      sb.append("se:");
8737
      if (this.se == null) {
8738
        sb.append("null");
8739
      } else {
8740
        sb.append(this.se);
8741
      }
8742
      first = false;
8743
      sb.append(")");
8744
      return sb.toString();
8745
    }
8746
 
8747
    public void validate() throws org.apache.thrift.TException {
8748
      // check for required fields
8749
    }
8750
 
8751
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8752
      try {
8753
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8754
      } catch (org.apache.thrift.TException te) {
8755
        throw new java.io.IOException(te);
8756
      }
8757
    }
8758
 
8759
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8760
      try {
8761
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8762
      } catch (org.apache.thrift.TException te) {
8763
        throw new java.io.IOException(te);
8764
      }
8765
    }
8766
 
8767
  }
8768
 
3430 rajveer 8769
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8770
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8771
 
3430 rajveer 8772
    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);
8773
    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 8774
 
3430 rajveer 8775
    private long providerId; // required
8776
    private String pinCode; // required
730 chandransh 8777
 
8778
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8779
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8780
      PROVIDER_ID((short)1, "providerId"),
8781
      PIN_CODE((short)2, "pinCode");
8782
 
8783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8784
 
8785
      static {
8786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8787
          byName.put(field.getFieldName(), field);
8788
        }
8789
      }
8790
 
8791
      /**
8792
       * Find the _Fields constant that matches fieldId, or null if its not found.
8793
       */
8794
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8795
        switch(fieldId) {
8796
          case 1: // PROVIDER_ID
8797
            return PROVIDER_ID;
8798
          case 2: // PIN_CODE
8799
            return PIN_CODE;
8800
          default:
8801
            return null;
8802
        }
730 chandransh 8803
      }
8804
 
8805
      /**
8806
       * Find the _Fields constant that matches fieldId, throwing an exception
8807
       * if it is not found.
8808
       */
8809
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8810
        _Fields fields = findByThriftId(fieldId);
8811
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8812
        return fields;
8813
      }
8814
 
8815
      /**
8816
       * Find the _Fields constant that matches name, or null if its not found.
8817
       */
8818
      public static _Fields findByName(String name) {
8819
        return byName.get(name);
8820
      }
8821
 
8822
      private final short _thriftId;
8823
      private final String _fieldName;
8824
 
8825
      _Fields(short thriftId, String fieldName) {
8826
        _thriftId = thriftId;
8827
        _fieldName = fieldName;
8828
      }
8829
 
8830
      public short getThriftFieldId() {
8831
        return _thriftId;
8832
      }
8833
 
8834
      public String getFieldName() {
8835
        return _fieldName;
8836
      }
8837
    }
8838
 
8839
    // isset id assignments
8840
    private static final int __PROVIDERID_ISSET_ID = 0;
8841
    private BitSet __isset_bit_vector = new BitSet(1);
8842
 
3430 rajveer 8843
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8844
    static {
3430 rajveer 8845
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8846
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8847
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8848
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8849
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8850
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8851
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8852
    }
8853
 
8854
    public getDestinationCode_args() {
8855
    }
8856
 
8857
    public getDestinationCode_args(
8858
      long providerId,
8859
      String pinCode)
8860
    {
8861
      this();
8862
      this.providerId = providerId;
8863
      setProviderIdIsSet(true);
8864
      this.pinCode = pinCode;
8865
    }
8866
 
8867
    /**
8868
     * Performs a deep copy on <i>other</i>.
8869
     */
8870
    public getDestinationCode_args(getDestinationCode_args other) {
8871
      __isset_bit_vector.clear();
8872
      __isset_bit_vector.or(other.__isset_bit_vector);
8873
      this.providerId = other.providerId;
8874
      if (other.isSetPinCode()) {
8875
        this.pinCode = other.pinCode;
8876
      }
8877
    }
8878
 
8879
    public getDestinationCode_args deepCopy() {
8880
      return new getDestinationCode_args(this);
8881
    }
8882
 
3430 rajveer 8883
    @Override
8884
    public void clear() {
8885
      setProviderIdIsSet(false);
8886
      this.providerId = 0;
8887
      this.pinCode = null;
730 chandransh 8888
    }
8889
 
8890
    public long getProviderId() {
8891
      return this.providerId;
8892
    }
8893
 
3430 rajveer 8894
    public void setProviderId(long providerId) {
730 chandransh 8895
      this.providerId = providerId;
8896
      setProviderIdIsSet(true);
8897
    }
8898
 
8899
    public void unsetProviderId() {
8900
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8901
    }
8902
 
3430 rajveer 8903
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8904
    public boolean isSetProviderId() {
8905
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8906
    }
8907
 
8908
    public void setProviderIdIsSet(boolean value) {
8909
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8910
    }
8911
 
8912
    public String getPinCode() {
8913
      return this.pinCode;
8914
    }
8915
 
3430 rajveer 8916
    public void setPinCode(String pinCode) {
730 chandransh 8917
      this.pinCode = pinCode;
8918
    }
8919
 
8920
    public void unsetPinCode() {
8921
      this.pinCode = null;
8922
    }
8923
 
3430 rajveer 8924
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8925
    public boolean isSetPinCode() {
8926
      return this.pinCode != null;
8927
    }
8928
 
8929
    public void setPinCodeIsSet(boolean value) {
8930
      if (!value) {
8931
        this.pinCode = null;
8932
      }
8933
    }
8934
 
8935
    public void setFieldValue(_Fields field, Object value) {
8936
      switch (field) {
8937
      case PROVIDER_ID:
8938
        if (value == null) {
8939
          unsetProviderId();
8940
        } else {
8941
          setProviderId((Long)value);
8942
        }
8943
        break;
8944
 
8945
      case PIN_CODE:
8946
        if (value == null) {
8947
          unsetPinCode();
8948
        } else {
8949
          setPinCode((String)value);
8950
        }
8951
        break;
8952
 
8953
      }
8954
    }
8955
 
8956
    public Object getFieldValue(_Fields field) {
8957
      switch (field) {
8958
      case PROVIDER_ID:
3430 rajveer 8959
        return Long.valueOf(getProviderId());
730 chandransh 8960
 
8961
      case PIN_CODE:
8962
        return getPinCode();
8963
 
8964
      }
8965
      throw new IllegalStateException();
8966
    }
8967
 
3430 rajveer 8968
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8969
    public boolean isSet(_Fields field) {
8970
      if (field == null) {
8971
        throw new IllegalArgumentException();
8972
      }
730 chandransh 8973
 
8974
      switch (field) {
8975
      case PROVIDER_ID:
8976
        return isSetProviderId();
8977
      case PIN_CODE:
8978
        return isSetPinCode();
8979
      }
8980
      throw new IllegalStateException();
8981
    }
8982
 
8983
    @Override
8984
    public boolean equals(Object that) {
8985
      if (that == null)
8986
        return false;
8987
      if (that instanceof getDestinationCode_args)
8988
        return this.equals((getDestinationCode_args)that);
8989
      return false;
8990
    }
8991
 
8992
    public boolean equals(getDestinationCode_args that) {
8993
      if (that == null)
8994
        return false;
8995
 
8996
      boolean this_present_providerId = true;
8997
      boolean that_present_providerId = true;
8998
      if (this_present_providerId || that_present_providerId) {
8999
        if (!(this_present_providerId && that_present_providerId))
9000
          return false;
9001
        if (this.providerId != that.providerId)
9002
          return false;
9003
      }
9004
 
9005
      boolean this_present_pinCode = true && this.isSetPinCode();
9006
      boolean that_present_pinCode = true && that.isSetPinCode();
9007
      if (this_present_pinCode || that_present_pinCode) {
9008
        if (!(this_present_pinCode && that_present_pinCode))
9009
          return false;
9010
        if (!this.pinCode.equals(that.pinCode))
9011
          return false;
9012
      }
9013
 
9014
      return true;
9015
    }
9016
 
9017
    @Override
9018
    public int hashCode() {
9019
      return 0;
9020
    }
9021
 
9022
    public int compareTo(getDestinationCode_args other) {
9023
      if (!getClass().equals(other.getClass())) {
9024
        return getClass().getName().compareTo(other.getClass().getName());
9025
      }
9026
 
9027
      int lastComparison = 0;
9028
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
9029
 
3430 rajveer 9030
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 9031
      if (lastComparison != 0) {
9032
        return lastComparison;
9033
      }
3430 rajveer 9034
      if (isSetProviderId()) {
9035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9036
        if (lastComparison != 0) {
9037
          return lastComparison;
9038
        }
730 chandransh 9039
      }
3430 rajveer 9040
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 9041
      if (lastComparison != 0) {
9042
        return lastComparison;
9043
      }
3430 rajveer 9044
      if (isSetPinCode()) {
9045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
9046
        if (lastComparison != 0) {
9047
          return lastComparison;
9048
        }
730 chandransh 9049
      }
9050
      return 0;
9051
    }
9052
 
3430 rajveer 9053
    public _Fields fieldForId(int fieldId) {
9054
      return _Fields.findByThriftId(fieldId);
9055
    }
9056
 
9057
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9058
      org.apache.thrift.protocol.TField field;
730 chandransh 9059
      iprot.readStructBegin();
9060
      while (true)
9061
      {
9062
        field = iprot.readFieldBegin();
3430 rajveer 9063
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9064
          break;
9065
        }
3430 rajveer 9066
        switch (field.id) {
9067
          case 1: // PROVIDER_ID
9068
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9069
              this.providerId = iprot.readI64();
9070
              setProviderIdIsSet(true);
9071
            } else { 
9072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9073
            }
9074
            break;
9075
          case 2: // PIN_CODE
9076
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9077
              this.pinCode = iprot.readString();
9078
            } else { 
9079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9080
            }
9081
            break;
9082
          default:
9083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9084
        }
3430 rajveer 9085
        iprot.readFieldEnd();
730 chandransh 9086
      }
9087
      iprot.readStructEnd();
9088
      validate();
9089
    }
9090
 
3430 rajveer 9091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9092
      validate();
9093
 
9094
      oprot.writeStructBegin(STRUCT_DESC);
9095
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9096
      oprot.writeI64(this.providerId);
9097
      oprot.writeFieldEnd();
9098
      if (this.pinCode != null) {
9099
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
9100
        oprot.writeString(this.pinCode);
9101
        oprot.writeFieldEnd();
9102
      }
9103
      oprot.writeFieldStop();
9104
      oprot.writeStructEnd();
9105
    }
9106
 
9107
    @Override
9108
    public String toString() {
9109
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
9110
      boolean first = true;
9111
 
9112
      sb.append("providerId:");
9113
      sb.append(this.providerId);
9114
      first = false;
9115
      if (!first) sb.append(", ");
9116
      sb.append("pinCode:");
9117
      if (this.pinCode == null) {
9118
        sb.append("null");
9119
      } else {
9120
        sb.append(this.pinCode);
9121
      }
9122
      first = false;
9123
      sb.append(")");
9124
      return sb.toString();
9125
    }
9126
 
3430 rajveer 9127
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9128
      // check for required fields
9129
    }
9130
 
3430 rajveer 9131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9132
      try {
9133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9134
      } catch (org.apache.thrift.TException te) {
9135
        throw new java.io.IOException(te);
9136
      }
9137
    }
9138
 
9139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9140
      try {
9141
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9142
      } catch (org.apache.thrift.TException te) {
9143
        throw new java.io.IOException(te);
9144
      }
9145
    }
9146
 
730 chandransh 9147
  }
9148
 
3430 rajveer 9149
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
9150
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 9151
 
3430 rajveer 9152
    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);
9153
    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 9154
 
3430 rajveer 9155
    private String success; // required
9156
    private LogisticsServiceException se; // required
730 chandransh 9157
 
9158
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9159
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 9160
      SUCCESS((short)0, "success"),
9161
      SE((short)1, "se");
9162
 
9163
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9164
 
9165
      static {
9166
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9167
          byName.put(field.getFieldName(), field);
9168
        }
9169
      }
9170
 
9171
      /**
9172
       * Find the _Fields constant that matches fieldId, or null if its not found.
9173
       */
9174
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9175
        switch(fieldId) {
9176
          case 0: // SUCCESS
9177
            return SUCCESS;
9178
          case 1: // SE
9179
            return SE;
9180
          default:
9181
            return null;
9182
        }
730 chandransh 9183
      }
9184
 
9185
      /**
9186
       * Find the _Fields constant that matches fieldId, throwing an exception
9187
       * if it is not found.
9188
       */
9189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9190
        _Fields fields = findByThriftId(fieldId);
9191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9192
        return fields;
9193
      }
9194
 
9195
      /**
9196
       * Find the _Fields constant that matches name, or null if its not found.
9197
       */
9198
      public static _Fields findByName(String name) {
9199
        return byName.get(name);
9200
      }
9201
 
9202
      private final short _thriftId;
9203
      private final String _fieldName;
9204
 
9205
      _Fields(short thriftId, String fieldName) {
9206
        _thriftId = thriftId;
9207
        _fieldName = fieldName;
9208
      }
9209
 
9210
      public short getThriftFieldId() {
9211
        return _thriftId;
9212
      }
9213
 
9214
      public String getFieldName() {
9215
        return _fieldName;
9216
      }
9217
    }
9218
 
9219
    // isset id assignments
9220
 
3430 rajveer 9221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 9222
    static {
3430 rajveer 9223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9224
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9225
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9226
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9228
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9229
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 9230
    }
9231
 
9232
    public getDestinationCode_result() {
9233
    }
9234
 
9235
    public getDestinationCode_result(
9236
      String success,
9237
      LogisticsServiceException se)
9238
    {
9239
      this();
9240
      this.success = success;
9241
      this.se = se;
9242
    }
9243
 
9244
    /**
9245
     * Performs a deep copy on <i>other</i>.
9246
     */
9247
    public getDestinationCode_result(getDestinationCode_result other) {
9248
      if (other.isSetSuccess()) {
9249
        this.success = other.success;
9250
      }
9251
      if (other.isSetSe()) {
9252
        this.se = new LogisticsServiceException(other.se);
9253
      }
9254
    }
9255
 
9256
    public getDestinationCode_result deepCopy() {
9257
      return new getDestinationCode_result(this);
9258
    }
9259
 
3430 rajveer 9260
    @Override
9261
    public void clear() {
9262
      this.success = null;
9263
      this.se = null;
730 chandransh 9264
    }
9265
 
9266
    public String getSuccess() {
9267
      return this.success;
9268
    }
9269
 
3430 rajveer 9270
    public void setSuccess(String success) {
730 chandransh 9271
      this.success = success;
9272
    }
9273
 
9274
    public void unsetSuccess() {
9275
      this.success = null;
9276
    }
9277
 
3430 rajveer 9278
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9279
    public boolean isSetSuccess() {
9280
      return this.success != null;
9281
    }
9282
 
9283
    public void setSuccessIsSet(boolean value) {
9284
      if (!value) {
9285
        this.success = null;
9286
      }
9287
    }
9288
 
9289
    public LogisticsServiceException getSe() {
9290
      return this.se;
9291
    }
9292
 
3430 rajveer 9293
    public void setSe(LogisticsServiceException se) {
730 chandransh 9294
      this.se = se;
9295
    }
9296
 
9297
    public void unsetSe() {
9298
      this.se = null;
9299
    }
9300
 
3430 rajveer 9301
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9302
    public boolean isSetSe() {
9303
      return this.se != null;
9304
    }
9305
 
9306
    public void setSeIsSet(boolean value) {
9307
      if (!value) {
9308
        this.se = null;
9309
      }
9310
    }
9311
 
9312
    public void setFieldValue(_Fields field, Object value) {
9313
      switch (field) {
9314
      case SUCCESS:
9315
        if (value == null) {
9316
          unsetSuccess();
9317
        } else {
9318
          setSuccess((String)value);
9319
        }
9320
        break;
9321
 
9322
      case SE:
9323
        if (value == null) {
9324
          unsetSe();
9325
        } else {
9326
          setSe((LogisticsServiceException)value);
9327
        }
9328
        break;
9329
 
9330
      }
9331
    }
9332
 
9333
    public Object getFieldValue(_Fields field) {
9334
      switch (field) {
9335
      case SUCCESS:
9336
        return getSuccess();
9337
 
9338
      case SE:
9339
        return getSe();
9340
 
9341
      }
9342
      throw new IllegalStateException();
9343
    }
9344
 
3430 rajveer 9345
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9346
    public boolean isSet(_Fields field) {
9347
      if (field == null) {
9348
        throw new IllegalArgumentException();
9349
      }
730 chandransh 9350
 
9351
      switch (field) {
9352
      case SUCCESS:
9353
        return isSetSuccess();
9354
      case SE:
9355
        return isSetSe();
9356
      }
9357
      throw new IllegalStateException();
9358
    }
9359
 
9360
    @Override
9361
    public boolean equals(Object that) {
9362
      if (that == null)
9363
        return false;
9364
      if (that instanceof getDestinationCode_result)
9365
        return this.equals((getDestinationCode_result)that);
9366
      return false;
9367
    }
9368
 
9369
    public boolean equals(getDestinationCode_result that) {
9370
      if (that == null)
9371
        return false;
9372
 
9373
      boolean this_present_success = true && this.isSetSuccess();
9374
      boolean that_present_success = true && that.isSetSuccess();
9375
      if (this_present_success || that_present_success) {
9376
        if (!(this_present_success && that_present_success))
9377
          return false;
9378
        if (!this.success.equals(that.success))
9379
          return false;
9380
      }
9381
 
9382
      boolean this_present_se = true && this.isSetSe();
9383
      boolean that_present_se = true && that.isSetSe();
9384
      if (this_present_se || that_present_se) {
9385
        if (!(this_present_se && that_present_se))
9386
          return false;
9387
        if (!this.se.equals(that.se))
9388
          return false;
9389
      }
9390
 
9391
      return true;
9392
    }
9393
 
9394
    @Override
9395
    public int hashCode() {
9396
      return 0;
9397
    }
9398
 
9399
    public int compareTo(getDestinationCode_result other) {
9400
      if (!getClass().equals(other.getClass())) {
9401
        return getClass().getName().compareTo(other.getClass().getName());
9402
      }
9403
 
9404
      int lastComparison = 0;
9405
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9406
 
3430 rajveer 9407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9408
      if (lastComparison != 0) {
9409
        return lastComparison;
9410
      }
3430 rajveer 9411
      if (isSetSuccess()) {
9412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9413
        if (lastComparison != 0) {
9414
          return lastComparison;
9415
        }
730 chandransh 9416
      }
3430 rajveer 9417
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9418
      if (lastComparison != 0) {
9419
        return lastComparison;
9420
      }
3430 rajveer 9421
      if (isSetSe()) {
9422
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9423
        if (lastComparison != 0) {
9424
          return lastComparison;
9425
        }
730 chandransh 9426
      }
9427
      return 0;
9428
    }
9429
 
3430 rajveer 9430
    public _Fields fieldForId(int fieldId) {
9431
      return _Fields.findByThriftId(fieldId);
9432
    }
9433
 
9434
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9435
      org.apache.thrift.protocol.TField field;
730 chandransh 9436
      iprot.readStructBegin();
9437
      while (true)
9438
      {
9439
        field = iprot.readFieldBegin();
3430 rajveer 9440
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9441
          break;
9442
        }
3430 rajveer 9443
        switch (field.id) {
9444
          case 0: // SUCCESS
9445
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9446
              this.success = iprot.readString();
9447
            } else { 
9448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9449
            }
9450
            break;
9451
          case 1: // SE
9452
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9453
              this.se = new LogisticsServiceException();
9454
              this.se.read(iprot);
9455
            } else { 
9456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9457
            }
9458
            break;
9459
          default:
9460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9461
        }
3430 rajveer 9462
        iprot.readFieldEnd();
730 chandransh 9463
      }
9464
      iprot.readStructEnd();
9465
      validate();
9466
    }
9467
 
3430 rajveer 9468
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9469
      oprot.writeStructBegin(STRUCT_DESC);
9470
 
9471
      if (this.isSetSuccess()) {
9472
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9473
        oprot.writeString(this.success);
9474
        oprot.writeFieldEnd();
9475
      } else if (this.isSetSe()) {
9476
        oprot.writeFieldBegin(SE_FIELD_DESC);
9477
        this.se.write(oprot);
9478
        oprot.writeFieldEnd();
9479
      }
9480
      oprot.writeFieldStop();
9481
      oprot.writeStructEnd();
9482
    }
9483
 
9484
    @Override
9485
    public String toString() {
9486
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9487
      boolean first = true;
9488
 
9489
      sb.append("success:");
9490
      if (this.success == null) {
9491
        sb.append("null");
9492
      } else {
9493
        sb.append(this.success);
9494
      }
9495
      first = false;
9496
      if (!first) sb.append(", ");
9497
      sb.append("se:");
9498
      if (this.se == null) {
9499
        sb.append("null");
9500
      } else {
9501
        sb.append(this.se);
9502
      }
9503
      first = false;
9504
      sb.append(")");
9505
      return sb.toString();
9506
    }
9507
 
3430 rajveer 9508
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9509
      // check for required fields
9510
    }
9511
 
3430 rajveer 9512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9513
      try {
9514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9515
      } catch (org.apache.thrift.TException te) {
9516
        throw new java.io.IOException(te);
9517
      }
9518
    }
9519
 
9520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9521
      try {
9522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9523
      } catch (org.apache.thrift.TException te) {
9524
        throw new java.io.IOException(te);
9525
      }
9526
    }
9527
 
730 chandransh 9528
  }
9529
 
3430 rajveer 9530
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9532
 
3430 rajveer 9533
    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);
9534
    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 9535
 
3430 rajveer 9536
    private long providerId; // required
9537
    private String type; // required
1139 chandransh 9538
 
9539
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9540
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9541
      PROVIDER_ID((short)1, "providerId"),
9542
      TYPE((short)2, "type");
1139 chandransh 9543
 
9544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9545
 
9546
      static {
9547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9548
          byName.put(field.getFieldName(), field);
9549
        }
9550
      }
9551
 
9552
      /**
9553
       * Find the _Fields constant that matches fieldId, or null if its not found.
9554
       */
9555
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9556
        switch(fieldId) {
9557
          case 1: // PROVIDER_ID
9558
            return PROVIDER_ID;
9559
          case 2: // TYPE
9560
            return TYPE;
9561
          default:
9562
            return null;
9563
        }
1139 chandransh 9564
      }
9565
 
9566
      /**
9567
       * Find the _Fields constant that matches fieldId, throwing an exception
9568
       * if it is not found.
9569
       */
9570
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9571
        _Fields fields = findByThriftId(fieldId);
9572
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9573
        return fields;
9574
      }
9575
 
9576
      /**
9577
       * Find the _Fields constant that matches name, or null if its not found.
9578
       */
9579
      public static _Fields findByName(String name) {
9580
        return byName.get(name);
9581
      }
9582
 
9583
      private final short _thriftId;
9584
      private final String _fieldName;
9585
 
9586
      _Fields(short thriftId, String fieldName) {
9587
        _thriftId = thriftId;
9588
        _fieldName = fieldName;
9589
      }
9590
 
9591
      public short getThriftFieldId() {
9592
        return _thriftId;
9593
      }
9594
 
9595
      public String getFieldName() {
9596
        return _fieldName;
9597
      }
9598
    }
9599
 
9600
    // isset id assignments
9601
    private static final int __PROVIDERID_ISSET_ID = 0;
9602
    private BitSet __isset_bit_vector = new BitSet(1);
9603
 
3430 rajveer 9604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9605
    static {
3430 rajveer 9606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9607
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9609
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9613
    }
9614
 
9615
    public getFreeAwbCount_args() {
9616
    }
9617
 
9618
    public getFreeAwbCount_args(
3103 chandransh 9619
      long providerId,
9620
      String type)
1139 chandransh 9621
    {
9622
      this();
9623
      this.providerId = providerId;
9624
      setProviderIdIsSet(true);
3103 chandransh 9625
      this.type = type;
1139 chandransh 9626
    }
9627
 
9628
    /**
9629
     * Performs a deep copy on <i>other</i>.
9630
     */
9631
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9632
      __isset_bit_vector.clear();
9633
      __isset_bit_vector.or(other.__isset_bit_vector);
9634
      this.providerId = other.providerId;
3103 chandransh 9635
      if (other.isSetType()) {
9636
        this.type = other.type;
9637
      }
1139 chandransh 9638
    }
9639
 
9640
    public getFreeAwbCount_args deepCopy() {
9641
      return new getFreeAwbCount_args(this);
9642
    }
9643
 
3430 rajveer 9644
    @Override
9645
    public void clear() {
9646
      setProviderIdIsSet(false);
9647
      this.providerId = 0;
9648
      this.type = null;
1139 chandransh 9649
    }
9650
 
9651
    public long getProviderId() {
9652
      return this.providerId;
9653
    }
9654
 
3430 rajveer 9655
    public void setProviderId(long providerId) {
1139 chandransh 9656
      this.providerId = providerId;
9657
      setProviderIdIsSet(true);
9658
    }
9659
 
9660
    public void unsetProviderId() {
9661
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9662
    }
9663
 
3430 rajveer 9664
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9665
    public boolean isSetProviderId() {
9666
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9667
    }
9668
 
9669
    public void setProviderIdIsSet(boolean value) {
9670
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9671
    }
9672
 
3103 chandransh 9673
    public String getType() {
9674
      return this.type;
9675
    }
9676
 
3430 rajveer 9677
    public void setType(String type) {
3103 chandransh 9678
      this.type = type;
9679
    }
9680
 
9681
    public void unsetType() {
9682
      this.type = null;
9683
    }
9684
 
3430 rajveer 9685
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9686
    public boolean isSetType() {
9687
      return this.type != null;
9688
    }
9689
 
9690
    public void setTypeIsSet(boolean value) {
9691
      if (!value) {
9692
        this.type = null;
9693
      }
9694
    }
9695
 
1139 chandransh 9696
    public void setFieldValue(_Fields field, Object value) {
9697
      switch (field) {
9698
      case PROVIDER_ID:
9699
        if (value == null) {
9700
          unsetProviderId();
9701
        } else {
9702
          setProviderId((Long)value);
9703
        }
9704
        break;
9705
 
3103 chandransh 9706
      case TYPE:
9707
        if (value == null) {
9708
          unsetType();
9709
        } else {
9710
          setType((String)value);
9711
        }
9712
        break;
9713
 
1139 chandransh 9714
      }
9715
    }
9716
 
9717
    public Object getFieldValue(_Fields field) {
9718
      switch (field) {
9719
      case PROVIDER_ID:
3430 rajveer 9720
        return Long.valueOf(getProviderId());
1139 chandransh 9721
 
3103 chandransh 9722
      case TYPE:
9723
        return getType();
9724
 
1139 chandransh 9725
      }
9726
      throw new IllegalStateException();
9727
    }
9728
 
3430 rajveer 9729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9730
    public boolean isSet(_Fields field) {
9731
      if (field == null) {
9732
        throw new IllegalArgumentException();
9733
      }
1139 chandransh 9734
 
9735
      switch (field) {
9736
      case PROVIDER_ID:
9737
        return isSetProviderId();
3103 chandransh 9738
      case TYPE:
9739
        return isSetType();
1139 chandransh 9740
      }
9741
      throw new IllegalStateException();
9742
    }
9743
 
9744
    @Override
9745
    public boolean equals(Object that) {
9746
      if (that == null)
9747
        return false;
9748
      if (that instanceof getFreeAwbCount_args)
9749
        return this.equals((getFreeAwbCount_args)that);
9750
      return false;
9751
    }
9752
 
9753
    public boolean equals(getFreeAwbCount_args that) {
9754
      if (that == null)
9755
        return false;
9756
 
9757
      boolean this_present_providerId = true;
9758
      boolean that_present_providerId = true;
9759
      if (this_present_providerId || that_present_providerId) {
9760
        if (!(this_present_providerId && that_present_providerId))
9761
          return false;
9762
        if (this.providerId != that.providerId)
9763
          return false;
9764
      }
9765
 
3103 chandransh 9766
      boolean this_present_type = true && this.isSetType();
9767
      boolean that_present_type = true && that.isSetType();
9768
      if (this_present_type || that_present_type) {
9769
        if (!(this_present_type && that_present_type))
9770
          return false;
9771
        if (!this.type.equals(that.type))
9772
          return false;
9773
      }
9774
 
1139 chandransh 9775
      return true;
9776
    }
9777
 
9778
    @Override
9779
    public int hashCode() {
9780
      return 0;
9781
    }
9782
 
9783
    public int compareTo(getFreeAwbCount_args other) {
9784
      if (!getClass().equals(other.getClass())) {
9785
        return getClass().getName().compareTo(other.getClass().getName());
9786
      }
9787
 
9788
      int lastComparison = 0;
9789
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9790
 
3430 rajveer 9791
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9792
      if (lastComparison != 0) {
9793
        return lastComparison;
9794
      }
3430 rajveer 9795
      if (isSetProviderId()) {
9796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9797
        if (lastComparison != 0) {
9798
          return lastComparison;
9799
        }
1139 chandransh 9800
      }
3430 rajveer 9801
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9802
      if (lastComparison != 0) {
9803
        return lastComparison;
9804
      }
3430 rajveer 9805
      if (isSetType()) {
9806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9807
        if (lastComparison != 0) {
9808
          return lastComparison;
9809
        }
3103 chandransh 9810
      }
1139 chandransh 9811
      return 0;
9812
    }
9813
 
3430 rajveer 9814
    public _Fields fieldForId(int fieldId) {
9815
      return _Fields.findByThriftId(fieldId);
9816
    }
9817
 
9818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9819
      org.apache.thrift.protocol.TField field;
1139 chandransh 9820
      iprot.readStructBegin();
9821
      while (true)
9822
      {
9823
        field = iprot.readFieldBegin();
3430 rajveer 9824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9825
          break;
9826
        }
3430 rajveer 9827
        switch (field.id) {
9828
          case 1: // PROVIDER_ID
9829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9830
              this.providerId = iprot.readI64();
9831
              setProviderIdIsSet(true);
9832
            } else { 
9833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9834
            }
9835
            break;
9836
          case 2: // TYPE
9837
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9838
              this.type = iprot.readString();
9839
            } else { 
9840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9841
            }
9842
            break;
9843
          default:
9844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9845
        }
3430 rajveer 9846
        iprot.readFieldEnd();
1139 chandransh 9847
      }
9848
      iprot.readStructEnd();
9849
      validate();
9850
    }
9851
 
3430 rajveer 9852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9853
      validate();
9854
 
9855
      oprot.writeStructBegin(STRUCT_DESC);
9856
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9857
      oprot.writeI64(this.providerId);
9858
      oprot.writeFieldEnd();
3103 chandransh 9859
      if (this.type != null) {
9860
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9861
        oprot.writeString(this.type);
9862
        oprot.writeFieldEnd();
9863
      }
1139 chandransh 9864
      oprot.writeFieldStop();
9865
      oprot.writeStructEnd();
9866
    }
9867
 
9868
    @Override
9869
    public String toString() {
9870
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9871
      boolean first = true;
9872
 
9873
      sb.append("providerId:");
9874
      sb.append(this.providerId);
9875
      first = false;
3103 chandransh 9876
      if (!first) sb.append(", ");
9877
      sb.append("type:");
9878
      if (this.type == null) {
9879
        sb.append("null");
9880
      } else {
9881
        sb.append(this.type);
9882
      }
9883
      first = false;
1139 chandransh 9884
      sb.append(")");
9885
      return sb.toString();
9886
    }
9887
 
3430 rajveer 9888
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9889
      // check for required fields
9890
    }
9891
 
3430 rajveer 9892
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9893
      try {
9894
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9895
      } catch (org.apache.thrift.TException te) {
9896
        throw new java.io.IOException(te);
9897
      }
9898
    }
9899
 
9900
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9901
      try {
9902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9903
      } catch (org.apache.thrift.TException te) {
9904
        throw new java.io.IOException(te);
9905
      }
9906
    }
9907
 
1139 chandransh 9908
  }
9909
 
3430 rajveer 9910
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9912
 
3430 rajveer 9913
    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 9914
 
3430 rajveer 9915
    private long success; // required
1139 chandransh 9916
 
9917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9919
      SUCCESS((short)0, "success");
9920
 
9921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9922
 
9923
      static {
9924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9925
          byName.put(field.getFieldName(), field);
9926
        }
9927
      }
9928
 
9929
      /**
9930
       * Find the _Fields constant that matches fieldId, or null if its not found.
9931
       */
9932
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9933
        switch(fieldId) {
9934
          case 0: // SUCCESS
9935
            return SUCCESS;
9936
          default:
9937
            return null;
9938
        }
1139 chandransh 9939
      }
9940
 
9941
      /**
9942
       * Find the _Fields constant that matches fieldId, throwing an exception
9943
       * if it is not found.
9944
       */
9945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9946
        _Fields fields = findByThriftId(fieldId);
9947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9948
        return fields;
9949
      }
9950
 
9951
      /**
9952
       * Find the _Fields constant that matches name, or null if its not found.
9953
       */
9954
      public static _Fields findByName(String name) {
9955
        return byName.get(name);
9956
      }
9957
 
9958
      private final short _thriftId;
9959
      private final String _fieldName;
9960
 
9961
      _Fields(short thriftId, String fieldName) {
9962
        _thriftId = thriftId;
9963
        _fieldName = fieldName;
9964
      }
9965
 
9966
      public short getThriftFieldId() {
9967
        return _thriftId;
9968
      }
9969
 
9970
      public String getFieldName() {
9971
        return _fieldName;
9972
      }
9973
    }
9974
 
9975
    // isset id assignments
9976
    private static final int __SUCCESS_ISSET_ID = 0;
9977
    private BitSet __isset_bit_vector = new BitSet(1);
9978
 
3430 rajveer 9979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9980
    static {
3430 rajveer 9981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9982
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9986
    }
9987
 
9988
    public getFreeAwbCount_result() {
9989
    }
9990
 
9991
    public getFreeAwbCount_result(
9992
      long success)
9993
    {
9994
      this();
9995
      this.success = success;
9996
      setSuccessIsSet(true);
9997
    }
9998
 
9999
    /**
10000
     * Performs a deep copy on <i>other</i>.
10001
     */
10002
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
10003
      __isset_bit_vector.clear();
10004
      __isset_bit_vector.or(other.__isset_bit_vector);
10005
      this.success = other.success;
10006
    }
10007
 
10008
    public getFreeAwbCount_result deepCopy() {
10009
      return new getFreeAwbCount_result(this);
10010
    }
10011
 
3430 rajveer 10012
    @Override
10013
    public void clear() {
10014
      setSuccessIsSet(false);
10015
      this.success = 0;
1139 chandransh 10016
    }
10017
 
10018
    public long getSuccess() {
10019
      return this.success;
10020
    }
10021
 
3430 rajveer 10022
    public void setSuccess(long success) {
1139 chandransh 10023
      this.success = success;
10024
      setSuccessIsSet(true);
10025
    }
10026
 
10027
    public void unsetSuccess() {
10028
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10029
    }
10030
 
3430 rajveer 10031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 10032
    public boolean isSetSuccess() {
10033
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10034
    }
10035
 
10036
    public void setSuccessIsSet(boolean value) {
10037
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10038
    }
10039
 
10040
    public void setFieldValue(_Fields field, Object value) {
10041
      switch (field) {
10042
      case SUCCESS:
10043
        if (value == null) {
10044
          unsetSuccess();
10045
        } else {
10046
          setSuccess((Long)value);
10047
        }
10048
        break;
10049
 
10050
      }
10051
    }
10052
 
10053
    public Object getFieldValue(_Fields field) {
10054
      switch (field) {
10055
      case SUCCESS:
3430 rajveer 10056
        return Long.valueOf(getSuccess());
1139 chandransh 10057
 
10058
      }
10059
      throw new IllegalStateException();
10060
    }
10061
 
3430 rajveer 10062
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10063
    public boolean isSet(_Fields field) {
10064
      if (field == null) {
10065
        throw new IllegalArgumentException();
10066
      }
1139 chandransh 10067
 
10068
      switch (field) {
10069
      case SUCCESS:
10070
        return isSetSuccess();
10071
      }
10072
      throw new IllegalStateException();
10073
    }
10074
 
10075
    @Override
10076
    public boolean equals(Object that) {
10077
      if (that == null)
10078
        return false;
10079
      if (that instanceof getFreeAwbCount_result)
10080
        return this.equals((getFreeAwbCount_result)that);
10081
      return false;
10082
    }
10083
 
10084
    public boolean equals(getFreeAwbCount_result that) {
10085
      if (that == null)
10086
        return false;
10087
 
10088
      boolean this_present_success = true;
10089
      boolean that_present_success = true;
10090
      if (this_present_success || that_present_success) {
10091
        if (!(this_present_success && that_present_success))
10092
          return false;
10093
        if (this.success != that.success)
10094
          return false;
10095
      }
10096
 
10097
      return true;
10098
    }
10099
 
10100
    @Override
10101
    public int hashCode() {
10102
      return 0;
10103
    }
10104
 
10105
    public int compareTo(getFreeAwbCount_result other) {
10106
      if (!getClass().equals(other.getClass())) {
10107
        return getClass().getName().compareTo(other.getClass().getName());
10108
      }
10109
 
10110
      int lastComparison = 0;
10111
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
10112
 
3430 rajveer 10113
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 10114
      if (lastComparison != 0) {
10115
        return lastComparison;
10116
      }
3430 rajveer 10117
      if (isSetSuccess()) {
10118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10119
        if (lastComparison != 0) {
10120
          return lastComparison;
10121
        }
1139 chandransh 10122
      }
10123
      return 0;
10124
    }
10125
 
3430 rajveer 10126
    public _Fields fieldForId(int fieldId) {
10127
      return _Fields.findByThriftId(fieldId);
10128
    }
10129
 
10130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10131
      org.apache.thrift.protocol.TField field;
1139 chandransh 10132
      iprot.readStructBegin();
10133
      while (true)
10134
      {
10135
        field = iprot.readFieldBegin();
3430 rajveer 10136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 10137
          break;
10138
        }
3430 rajveer 10139
        switch (field.id) {
10140
          case 0: // SUCCESS
10141
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10142
              this.success = iprot.readI64();
10143
              setSuccessIsSet(true);
10144
            } else { 
10145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10146
            }
10147
            break;
10148
          default:
10149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 10150
        }
3430 rajveer 10151
        iprot.readFieldEnd();
1139 chandransh 10152
      }
10153
      iprot.readStructEnd();
10154
      validate();
10155
    }
10156
 
3430 rajveer 10157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 10158
      oprot.writeStructBegin(STRUCT_DESC);
10159
 
10160
      if (this.isSetSuccess()) {
10161
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10162
        oprot.writeI64(this.success);
10163
        oprot.writeFieldEnd();
10164
      }
10165
      oprot.writeFieldStop();
10166
      oprot.writeStructEnd();
10167
    }
10168
 
10169
    @Override
10170
    public String toString() {
10171
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
10172
      boolean first = true;
10173
 
10174
      sb.append("success:");
10175
      sb.append(this.success);
10176
      first = false;
10177
      sb.append(")");
10178
      return sb.toString();
10179
    }
10180
 
3430 rajveer 10181
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 10182
      // check for required fields
10183
    }
10184
 
3430 rajveer 10185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10186
      try {
10187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10188
      } catch (org.apache.thrift.TException te) {
10189
        throw new java.io.IOException(te);
10190
      }
10191
    }
10192
 
10193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10194
      try {
10195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10196
      } catch (org.apache.thrift.TException te) {
10197
        throw new java.io.IOException(te);
10198
      }
10199
    }
10200
 
1139 chandransh 10201
  }
10202
 
3430 rajveer 10203
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
10204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 10205
 
3430 rajveer 10206
    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);
10207
    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 10208
 
3430 rajveer 10209
    private long fromDate; // required
10210
    private long toDate; // required
1730 ankur.sing 10211
 
10212
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10213
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10214
      FROM_DATE((short)1, "fromDate"),
10215
      TO_DATE((short)2, "toDate");
10216
 
10217
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10218
 
10219
      static {
10220
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10221
          byName.put(field.getFieldName(), field);
10222
        }
10223
      }
10224
 
10225
      /**
10226
       * Find the _Fields constant that matches fieldId, or null if its not found.
10227
       */
10228
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10229
        switch(fieldId) {
10230
          case 1: // FROM_DATE
10231
            return FROM_DATE;
10232
          case 2: // TO_DATE
10233
            return TO_DATE;
10234
          default:
10235
            return null;
10236
        }
1730 ankur.sing 10237
      }
10238
 
10239
      /**
10240
       * Find the _Fields constant that matches fieldId, throwing an exception
10241
       * if it is not found.
10242
       */
10243
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10244
        _Fields fields = findByThriftId(fieldId);
10245
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10246
        return fields;
10247
      }
10248
 
10249
      /**
10250
       * Find the _Fields constant that matches name, or null if its not found.
10251
       */
10252
      public static _Fields findByName(String name) {
10253
        return byName.get(name);
10254
      }
10255
 
10256
      private final short _thriftId;
10257
      private final String _fieldName;
10258
 
10259
      _Fields(short thriftId, String fieldName) {
10260
        _thriftId = thriftId;
10261
        _fieldName = fieldName;
10262
      }
10263
 
10264
      public short getThriftFieldId() {
10265
        return _thriftId;
10266
      }
10267
 
10268
      public String getFieldName() {
10269
        return _fieldName;
10270
      }
10271
    }
10272
 
10273
    // isset id assignments
10274
    private static final int __FROMDATE_ISSET_ID = 0;
10275
    private static final int __TODATE_ISSET_ID = 1;
10276
    private BitSet __isset_bit_vector = new BitSet(2);
10277
 
3430 rajveer 10278
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10279
    static {
3430 rajveer 10280
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10281
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10282
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10283
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10285
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10286
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10287
    }
10288
 
10289
    public getHolidays_args() {
10290
    }
10291
 
10292
    public getHolidays_args(
10293
      long fromDate,
10294
      long toDate)
10295
    {
10296
      this();
10297
      this.fromDate = fromDate;
10298
      setFromDateIsSet(true);
10299
      this.toDate = toDate;
10300
      setToDateIsSet(true);
10301
    }
10302
 
10303
    /**
10304
     * Performs a deep copy on <i>other</i>.
10305
     */
10306
    public getHolidays_args(getHolidays_args other) {
10307
      __isset_bit_vector.clear();
10308
      __isset_bit_vector.or(other.__isset_bit_vector);
10309
      this.fromDate = other.fromDate;
10310
      this.toDate = other.toDate;
10311
    }
10312
 
10313
    public getHolidays_args deepCopy() {
10314
      return new getHolidays_args(this);
10315
    }
10316
 
3430 rajveer 10317
    @Override
10318
    public void clear() {
10319
      setFromDateIsSet(false);
10320
      this.fromDate = 0;
10321
      setToDateIsSet(false);
10322
      this.toDate = 0;
1730 ankur.sing 10323
    }
10324
 
10325
    public long getFromDate() {
10326
      return this.fromDate;
10327
    }
10328
 
3430 rajveer 10329
    public void setFromDate(long fromDate) {
1730 ankur.sing 10330
      this.fromDate = fromDate;
10331
      setFromDateIsSet(true);
10332
    }
10333
 
10334
    public void unsetFromDate() {
10335
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10336
    }
10337
 
3430 rajveer 10338
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10339
    public boolean isSetFromDate() {
10340
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10341
    }
10342
 
10343
    public void setFromDateIsSet(boolean value) {
10344
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10345
    }
10346
 
10347
    public long getToDate() {
10348
      return this.toDate;
10349
    }
10350
 
3430 rajveer 10351
    public void setToDate(long toDate) {
1730 ankur.sing 10352
      this.toDate = toDate;
10353
      setToDateIsSet(true);
10354
    }
10355
 
10356
    public void unsetToDate() {
10357
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10358
    }
10359
 
3430 rajveer 10360
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10361
    public boolean isSetToDate() {
10362
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10363
    }
10364
 
10365
    public void setToDateIsSet(boolean value) {
10366
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10367
    }
10368
 
10369
    public void setFieldValue(_Fields field, Object value) {
10370
      switch (field) {
10371
      case FROM_DATE:
10372
        if (value == null) {
10373
          unsetFromDate();
10374
        } else {
10375
          setFromDate((Long)value);
10376
        }
10377
        break;
10378
 
10379
      case TO_DATE:
10380
        if (value == null) {
10381
          unsetToDate();
10382
        } else {
10383
          setToDate((Long)value);
10384
        }
10385
        break;
10386
 
10387
      }
10388
    }
10389
 
10390
    public Object getFieldValue(_Fields field) {
10391
      switch (field) {
10392
      case FROM_DATE:
3430 rajveer 10393
        return Long.valueOf(getFromDate());
1730 ankur.sing 10394
 
10395
      case TO_DATE:
3430 rajveer 10396
        return Long.valueOf(getToDate());
1730 ankur.sing 10397
 
10398
      }
10399
      throw new IllegalStateException();
10400
    }
10401
 
3430 rajveer 10402
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10403
    public boolean isSet(_Fields field) {
10404
      if (field == null) {
10405
        throw new IllegalArgumentException();
10406
      }
1730 ankur.sing 10407
 
10408
      switch (field) {
10409
      case FROM_DATE:
10410
        return isSetFromDate();
10411
      case TO_DATE:
10412
        return isSetToDate();
10413
      }
10414
      throw new IllegalStateException();
10415
    }
10416
 
10417
    @Override
10418
    public boolean equals(Object that) {
10419
      if (that == null)
10420
        return false;
10421
      if (that instanceof getHolidays_args)
10422
        return this.equals((getHolidays_args)that);
10423
      return false;
10424
    }
10425
 
10426
    public boolean equals(getHolidays_args that) {
10427
      if (that == null)
10428
        return false;
10429
 
10430
      boolean this_present_fromDate = true;
10431
      boolean that_present_fromDate = true;
10432
      if (this_present_fromDate || that_present_fromDate) {
10433
        if (!(this_present_fromDate && that_present_fromDate))
10434
          return false;
10435
        if (this.fromDate != that.fromDate)
10436
          return false;
10437
      }
10438
 
10439
      boolean this_present_toDate = true;
10440
      boolean that_present_toDate = true;
10441
      if (this_present_toDate || that_present_toDate) {
10442
        if (!(this_present_toDate && that_present_toDate))
10443
          return false;
10444
        if (this.toDate != that.toDate)
10445
          return false;
10446
      }
10447
 
10448
      return true;
10449
    }
10450
 
10451
    @Override
10452
    public int hashCode() {
10453
      return 0;
10454
    }
10455
 
10456
    public int compareTo(getHolidays_args other) {
10457
      if (!getClass().equals(other.getClass())) {
10458
        return getClass().getName().compareTo(other.getClass().getName());
10459
      }
10460
 
10461
      int lastComparison = 0;
10462
      getHolidays_args typedOther = (getHolidays_args)other;
10463
 
3430 rajveer 10464
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10465
      if (lastComparison != 0) {
10466
        return lastComparison;
10467
      }
3430 rajveer 10468
      if (isSetFromDate()) {
10469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10470
        if (lastComparison != 0) {
10471
          return lastComparison;
10472
        }
1730 ankur.sing 10473
      }
3430 rajveer 10474
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10475
      if (lastComparison != 0) {
10476
        return lastComparison;
10477
      }
3430 rajveer 10478
      if (isSetToDate()) {
10479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10480
        if (lastComparison != 0) {
10481
          return lastComparison;
10482
        }
1730 ankur.sing 10483
      }
10484
      return 0;
10485
    }
10486
 
3430 rajveer 10487
    public _Fields fieldForId(int fieldId) {
10488
      return _Fields.findByThriftId(fieldId);
10489
    }
10490
 
10491
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10492
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10493
      iprot.readStructBegin();
10494
      while (true)
10495
      {
10496
        field = iprot.readFieldBegin();
3430 rajveer 10497
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10498
          break;
10499
        }
3430 rajveer 10500
        switch (field.id) {
10501
          case 1: // FROM_DATE
10502
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10503
              this.fromDate = iprot.readI64();
10504
              setFromDateIsSet(true);
10505
            } else { 
10506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10507
            }
10508
            break;
10509
          case 2: // TO_DATE
10510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10511
              this.toDate = iprot.readI64();
10512
              setToDateIsSet(true);
10513
            } else { 
10514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10515
            }
10516
            break;
10517
          default:
10518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10519
        }
3430 rajveer 10520
        iprot.readFieldEnd();
1730 ankur.sing 10521
      }
10522
      iprot.readStructEnd();
10523
      validate();
10524
    }
10525
 
3430 rajveer 10526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10527
      validate();
10528
 
10529
      oprot.writeStructBegin(STRUCT_DESC);
10530
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10531
      oprot.writeI64(this.fromDate);
10532
      oprot.writeFieldEnd();
10533
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10534
      oprot.writeI64(this.toDate);
10535
      oprot.writeFieldEnd();
10536
      oprot.writeFieldStop();
10537
      oprot.writeStructEnd();
10538
    }
10539
 
10540
    @Override
10541
    public String toString() {
10542
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10543
      boolean first = true;
10544
 
10545
      sb.append("fromDate:");
10546
      sb.append(this.fromDate);
10547
      first = false;
10548
      if (!first) sb.append(", ");
10549
      sb.append("toDate:");
10550
      sb.append(this.toDate);
10551
      first = false;
10552
      sb.append(")");
10553
      return sb.toString();
10554
    }
10555
 
3430 rajveer 10556
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10557
      // check for required fields
10558
    }
10559
 
3430 rajveer 10560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10561
      try {
10562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10563
      } catch (org.apache.thrift.TException te) {
10564
        throw new java.io.IOException(te);
10565
      }
10566
    }
10567
 
10568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10569
      try {
10570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10571
      } catch (org.apache.thrift.TException te) {
10572
        throw new java.io.IOException(te);
10573
      }
10574
    }
10575
 
1730 ankur.sing 10576
  }
10577
 
3430 rajveer 10578
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10580
 
3430 rajveer 10581
    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 10582
 
3430 rajveer 10583
    private List<Long> success; // required
1730 ankur.sing 10584
 
10585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10587
      SUCCESS((short)0, "success");
10588
 
10589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10590
 
10591
      static {
10592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10593
          byName.put(field.getFieldName(), field);
10594
        }
10595
      }
10596
 
10597
      /**
10598
       * Find the _Fields constant that matches fieldId, or null if its not found.
10599
       */
10600
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10601
        switch(fieldId) {
10602
          case 0: // SUCCESS
10603
            return SUCCESS;
10604
          default:
10605
            return null;
10606
        }
1730 ankur.sing 10607
      }
10608
 
10609
      /**
10610
       * Find the _Fields constant that matches fieldId, throwing an exception
10611
       * if it is not found.
10612
       */
10613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10614
        _Fields fields = findByThriftId(fieldId);
10615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10616
        return fields;
10617
      }
10618
 
10619
      /**
10620
       * Find the _Fields constant that matches name, or null if its not found.
10621
       */
10622
      public static _Fields findByName(String name) {
10623
        return byName.get(name);
10624
      }
10625
 
10626
      private final short _thriftId;
10627
      private final String _fieldName;
10628
 
10629
      _Fields(short thriftId, String fieldName) {
10630
        _thriftId = thriftId;
10631
        _fieldName = fieldName;
10632
      }
10633
 
10634
      public short getThriftFieldId() {
10635
        return _thriftId;
10636
      }
10637
 
10638
      public String getFieldName() {
10639
        return _fieldName;
10640
      }
10641
    }
10642
 
10643
    // isset id assignments
10644
 
3430 rajveer 10645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10646
    static {
3430 rajveer 10647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10649
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10650
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10653
    }
10654
 
10655
    public getHolidays_result() {
10656
    }
10657
 
10658
    public getHolidays_result(
10659
      List<Long> success)
10660
    {
10661
      this();
10662
      this.success = success;
10663
    }
10664
 
10665
    /**
10666
     * Performs a deep copy on <i>other</i>.
10667
     */
10668
    public getHolidays_result(getHolidays_result other) {
10669
      if (other.isSetSuccess()) {
10670
        List<Long> __this__success = new ArrayList<Long>();
10671
        for (Long other_element : other.success) {
10672
          __this__success.add(other_element);
10673
        }
10674
        this.success = __this__success;
10675
      }
10676
    }
10677
 
10678
    public getHolidays_result deepCopy() {
10679
      return new getHolidays_result(this);
10680
    }
10681
 
3430 rajveer 10682
    @Override
10683
    public void clear() {
10684
      this.success = null;
1730 ankur.sing 10685
    }
10686
 
10687
    public int getSuccessSize() {
10688
      return (this.success == null) ? 0 : this.success.size();
10689
    }
10690
 
10691
    public java.util.Iterator<Long> getSuccessIterator() {
10692
      return (this.success == null) ? null : this.success.iterator();
10693
    }
10694
 
10695
    public void addToSuccess(long elem) {
10696
      if (this.success == null) {
10697
        this.success = new ArrayList<Long>();
10698
      }
10699
      this.success.add(elem);
10700
    }
10701
 
10702
    public List<Long> getSuccess() {
10703
      return this.success;
10704
    }
10705
 
3430 rajveer 10706
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10707
      this.success = success;
10708
    }
10709
 
10710
    public void unsetSuccess() {
10711
      this.success = null;
10712
    }
10713
 
3430 rajveer 10714
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10715
    public boolean isSetSuccess() {
10716
      return this.success != null;
10717
    }
10718
 
10719
    public void setSuccessIsSet(boolean value) {
10720
      if (!value) {
10721
        this.success = null;
10722
      }
10723
    }
10724
 
10725
    public void setFieldValue(_Fields field, Object value) {
10726
      switch (field) {
10727
      case SUCCESS:
10728
        if (value == null) {
10729
          unsetSuccess();
10730
        } else {
10731
          setSuccess((List<Long>)value);
10732
        }
10733
        break;
10734
 
10735
      }
10736
    }
10737
 
10738
    public Object getFieldValue(_Fields field) {
10739
      switch (field) {
10740
      case SUCCESS:
10741
        return getSuccess();
10742
 
10743
      }
10744
      throw new IllegalStateException();
10745
    }
10746
 
3430 rajveer 10747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10748
    public boolean isSet(_Fields field) {
10749
      if (field == null) {
10750
        throw new IllegalArgumentException();
10751
      }
1730 ankur.sing 10752
 
10753
      switch (field) {
10754
      case SUCCESS:
10755
        return isSetSuccess();
10756
      }
10757
      throw new IllegalStateException();
10758
    }
10759
 
10760
    @Override
10761
    public boolean equals(Object that) {
10762
      if (that == null)
10763
        return false;
10764
      if (that instanceof getHolidays_result)
10765
        return this.equals((getHolidays_result)that);
10766
      return false;
10767
    }
10768
 
10769
    public boolean equals(getHolidays_result that) {
10770
      if (that == null)
10771
        return false;
10772
 
10773
      boolean this_present_success = true && this.isSetSuccess();
10774
      boolean that_present_success = true && that.isSetSuccess();
10775
      if (this_present_success || that_present_success) {
10776
        if (!(this_present_success && that_present_success))
10777
          return false;
10778
        if (!this.success.equals(that.success))
10779
          return false;
10780
      }
10781
 
10782
      return true;
10783
    }
10784
 
10785
    @Override
10786
    public int hashCode() {
10787
      return 0;
10788
    }
10789
 
10790
    public int compareTo(getHolidays_result other) {
10791
      if (!getClass().equals(other.getClass())) {
10792
        return getClass().getName().compareTo(other.getClass().getName());
10793
      }
10794
 
10795
      int lastComparison = 0;
10796
      getHolidays_result typedOther = (getHolidays_result)other;
10797
 
3430 rajveer 10798
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10799
      if (lastComparison != 0) {
10800
        return lastComparison;
10801
      }
3430 rajveer 10802
      if (isSetSuccess()) {
10803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10804
        if (lastComparison != 0) {
10805
          return lastComparison;
10806
        }
1730 ankur.sing 10807
      }
10808
      return 0;
10809
    }
10810
 
3430 rajveer 10811
    public _Fields fieldForId(int fieldId) {
10812
      return _Fields.findByThriftId(fieldId);
10813
    }
10814
 
10815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10816
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10817
      iprot.readStructBegin();
10818
      while (true)
10819
      {
10820
        field = iprot.readFieldBegin();
3430 rajveer 10821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10822
          break;
10823
        }
3430 rajveer 10824
        switch (field.id) {
10825
          case 0: // SUCCESS
10826
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10827
              {
7792 anupam.sin 10828
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10829
                this.success = new ArrayList<Long>(_list12.size);
10830
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10831
                {
7792 anupam.sin 10832
                  long _elem14; // required
10833
                  _elem14 = iprot.readI64();
10834
                  this.success.add(_elem14);
1730 ankur.sing 10835
                }
3430 rajveer 10836
                iprot.readListEnd();
1730 ankur.sing 10837
              }
3430 rajveer 10838
            } else { 
10839
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10840
            }
10841
            break;
10842
          default:
10843
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10844
        }
3430 rajveer 10845
        iprot.readFieldEnd();
1730 ankur.sing 10846
      }
10847
      iprot.readStructEnd();
10848
      validate();
10849
    }
10850
 
3430 rajveer 10851
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10852
      oprot.writeStructBegin(STRUCT_DESC);
10853
 
10854
      if (this.isSetSuccess()) {
10855
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10856
        {
3430 rajveer 10857
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10858
          for (long _iter15 : this.success)
1730 ankur.sing 10859
          {
7792 anupam.sin 10860
            oprot.writeI64(_iter15);
1730 ankur.sing 10861
          }
10862
          oprot.writeListEnd();
10863
        }
10864
        oprot.writeFieldEnd();
10865
      }
10866
      oprot.writeFieldStop();
10867
      oprot.writeStructEnd();
10868
    }
10869
 
10870
    @Override
10871
    public String toString() {
10872
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10873
      boolean first = true;
10874
 
10875
      sb.append("success:");
10876
      if (this.success == null) {
10877
        sb.append("null");
10878
      } else {
10879
        sb.append(this.success);
10880
      }
10881
      first = false;
10882
      sb.append(")");
10883
      return sb.toString();
10884
    }
10885
 
3430 rajveer 10886
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10887
      // check for required fields
10888
    }
10889
 
3430 rajveer 10890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10891
      try {
10892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10893
      } catch (org.apache.thrift.TException te) {
10894
        throw new java.io.IOException(te);
10895
      }
10896
    }
10897
 
10898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10899
      try {
10900
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10901
      } catch (org.apache.thrift.TException te) {
10902
        throw new java.io.IOException(te);
10903
      }
10904
    }
10905
 
1730 ankur.sing 10906
  }
10907
 
4934 amit.gupta 10908
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10910
 
10911
    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);
10912
    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);
10913
    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);
10914
 
10915
    private long catalogItemId; // required
10916
    private String destination_pin; // required
10917
    private DeliveryType type; // required
10918
 
10919
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10920
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10921
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10922
      DESTINATION_PIN((short)2, "destination_pin"),
10923
      /**
10924
       * 
10925
       * @see DeliveryType
10926
       */
10927
      TYPE((short)3, "type");
10928
 
10929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10930
 
10931
      static {
10932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10933
          byName.put(field.getFieldName(), field);
10934
        }
10935
      }
10936
 
10937
      /**
10938
       * Find the _Fields constant that matches fieldId, or null if its not found.
10939
       */
10940
      public static _Fields findByThriftId(int fieldId) {
10941
        switch(fieldId) {
10942
          case 1: // CATALOG_ITEM_ID
10943
            return CATALOG_ITEM_ID;
10944
          case 2: // DESTINATION_PIN
10945
            return DESTINATION_PIN;
10946
          case 3: // TYPE
10947
            return TYPE;
10948
          default:
10949
            return null;
10950
        }
10951
      }
10952
 
10953
      /**
10954
       * Find the _Fields constant that matches fieldId, throwing an exception
10955
       * if it is not found.
10956
       */
10957
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10958
        _Fields fields = findByThriftId(fieldId);
10959
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10960
        return fields;
10961
      }
10962
 
10963
      /**
10964
       * Find the _Fields constant that matches name, or null if its not found.
10965
       */
10966
      public static _Fields findByName(String name) {
10967
        return byName.get(name);
10968
      }
10969
 
10970
      private final short _thriftId;
10971
      private final String _fieldName;
10972
 
10973
      _Fields(short thriftId, String fieldName) {
10974
        _thriftId = thriftId;
10975
        _fieldName = fieldName;
10976
      }
10977
 
10978
      public short getThriftFieldId() {
10979
        return _thriftId;
10980
      }
10981
 
10982
      public String getFieldName() {
10983
        return _fieldName;
10984
      }
10985
    }
10986
 
10987
    // isset id assignments
10988
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10989
    private BitSet __isset_bit_vector = new BitSet(1);
10990
 
10991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10992
    static {
10993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10994
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10995
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10996
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10997
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10998
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10999
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
11000
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11001
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
11002
    }
11003
 
11004
    public getEntityLogisticsEstimation_args() {
11005
    }
11006
 
11007
    public getEntityLogisticsEstimation_args(
11008
      long catalogItemId,
11009
      String destination_pin,
11010
      DeliveryType type)
11011
    {
11012
      this();
11013
      this.catalogItemId = catalogItemId;
11014
      setCatalogItemIdIsSet(true);
11015
      this.destination_pin = destination_pin;
11016
      this.type = type;
11017
    }
11018
 
11019
    /**
11020
     * Performs a deep copy on <i>other</i>.
11021
     */
11022
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
11023
      __isset_bit_vector.clear();
11024
      __isset_bit_vector.or(other.__isset_bit_vector);
11025
      this.catalogItemId = other.catalogItemId;
11026
      if (other.isSetDestination_pin()) {
11027
        this.destination_pin = other.destination_pin;
11028
      }
11029
      if (other.isSetType()) {
11030
        this.type = other.type;
11031
      }
11032
    }
11033
 
11034
    public getEntityLogisticsEstimation_args deepCopy() {
11035
      return new getEntityLogisticsEstimation_args(this);
11036
    }
11037
 
11038
    @Override
11039
    public void clear() {
11040
      setCatalogItemIdIsSet(false);
11041
      this.catalogItemId = 0;
11042
      this.destination_pin = null;
11043
      this.type = null;
11044
    }
11045
 
11046
    public long getCatalogItemId() {
11047
      return this.catalogItemId;
11048
    }
11049
 
11050
    public void setCatalogItemId(long catalogItemId) {
11051
      this.catalogItemId = catalogItemId;
11052
      setCatalogItemIdIsSet(true);
11053
    }
11054
 
11055
    public void unsetCatalogItemId() {
11056
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
11057
    }
11058
 
11059
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
11060
    public boolean isSetCatalogItemId() {
11061
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
11062
    }
11063
 
11064
    public void setCatalogItemIdIsSet(boolean value) {
11065
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
11066
    }
11067
 
11068
    public String getDestination_pin() {
11069
      return this.destination_pin;
11070
    }
11071
 
11072
    public void setDestination_pin(String destination_pin) {
11073
      this.destination_pin = destination_pin;
11074
    }
11075
 
11076
    public void unsetDestination_pin() {
11077
      this.destination_pin = null;
11078
    }
11079
 
11080
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
11081
    public boolean isSetDestination_pin() {
11082
      return this.destination_pin != null;
11083
    }
11084
 
11085
    public void setDestination_pinIsSet(boolean value) {
11086
      if (!value) {
11087
        this.destination_pin = null;
11088
      }
11089
    }
11090
 
11091
    /**
11092
     * 
11093
     * @see DeliveryType
11094
     */
11095
    public DeliveryType getType() {
11096
      return this.type;
11097
    }
11098
 
11099
    /**
11100
     * 
11101
     * @see DeliveryType
11102
     */
11103
    public void setType(DeliveryType type) {
11104
      this.type = type;
11105
    }
11106
 
11107
    public void unsetType() {
11108
      this.type = null;
11109
    }
11110
 
11111
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
11112
    public boolean isSetType() {
11113
      return this.type != null;
11114
    }
11115
 
11116
    public void setTypeIsSet(boolean value) {
11117
      if (!value) {
11118
        this.type = null;
11119
      }
11120
    }
11121
 
11122
    public void setFieldValue(_Fields field, Object value) {
11123
      switch (field) {
11124
      case CATALOG_ITEM_ID:
11125
        if (value == null) {
11126
          unsetCatalogItemId();
11127
        } else {
11128
          setCatalogItemId((Long)value);
11129
        }
11130
        break;
11131
 
11132
      case DESTINATION_PIN:
11133
        if (value == null) {
11134
          unsetDestination_pin();
11135
        } else {
11136
          setDestination_pin((String)value);
11137
        }
11138
        break;
11139
 
11140
      case TYPE:
11141
        if (value == null) {
11142
          unsetType();
11143
        } else {
11144
          setType((DeliveryType)value);
11145
        }
11146
        break;
11147
 
11148
      }
11149
    }
11150
 
11151
    public Object getFieldValue(_Fields field) {
11152
      switch (field) {
11153
      case CATALOG_ITEM_ID:
11154
        return Long.valueOf(getCatalogItemId());
11155
 
11156
      case DESTINATION_PIN:
11157
        return getDestination_pin();
11158
 
11159
      case TYPE:
11160
        return getType();
11161
 
11162
      }
11163
      throw new IllegalStateException();
11164
    }
11165
 
11166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11167
    public boolean isSet(_Fields field) {
11168
      if (field == null) {
11169
        throw new IllegalArgumentException();
11170
      }
11171
 
11172
      switch (field) {
11173
      case CATALOG_ITEM_ID:
11174
        return isSetCatalogItemId();
11175
      case DESTINATION_PIN:
11176
        return isSetDestination_pin();
11177
      case TYPE:
11178
        return isSetType();
11179
      }
11180
      throw new IllegalStateException();
11181
    }
11182
 
11183
    @Override
11184
    public boolean equals(Object that) {
11185
      if (that == null)
11186
        return false;
11187
      if (that instanceof getEntityLogisticsEstimation_args)
11188
        return this.equals((getEntityLogisticsEstimation_args)that);
11189
      return false;
11190
    }
11191
 
11192
    public boolean equals(getEntityLogisticsEstimation_args that) {
11193
      if (that == null)
11194
        return false;
11195
 
11196
      boolean this_present_catalogItemId = true;
11197
      boolean that_present_catalogItemId = true;
11198
      if (this_present_catalogItemId || that_present_catalogItemId) {
11199
        if (!(this_present_catalogItemId && that_present_catalogItemId))
11200
          return false;
11201
        if (this.catalogItemId != that.catalogItemId)
11202
          return false;
11203
      }
11204
 
11205
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
11206
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
11207
      if (this_present_destination_pin || that_present_destination_pin) {
11208
        if (!(this_present_destination_pin && that_present_destination_pin))
11209
          return false;
11210
        if (!this.destination_pin.equals(that.destination_pin))
11211
          return false;
11212
      }
11213
 
11214
      boolean this_present_type = true && this.isSetType();
11215
      boolean that_present_type = true && that.isSetType();
11216
      if (this_present_type || that_present_type) {
11217
        if (!(this_present_type && that_present_type))
11218
          return false;
11219
        if (!this.type.equals(that.type))
11220
          return false;
11221
      }
11222
 
11223
      return true;
11224
    }
11225
 
11226
    @Override
11227
    public int hashCode() {
11228
      return 0;
11229
    }
11230
 
11231
    public int compareTo(getEntityLogisticsEstimation_args other) {
11232
      if (!getClass().equals(other.getClass())) {
11233
        return getClass().getName().compareTo(other.getClass().getName());
11234
      }
11235
 
11236
      int lastComparison = 0;
11237
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
11238
 
11239
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
11240
      if (lastComparison != 0) {
11241
        return lastComparison;
11242
      }
11243
      if (isSetCatalogItemId()) {
11244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
11245
        if (lastComparison != 0) {
11246
          return lastComparison;
11247
        }
11248
      }
11249
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11250
      if (lastComparison != 0) {
11251
        return lastComparison;
11252
      }
11253
      if (isSetDestination_pin()) {
11254
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11255
        if (lastComparison != 0) {
11256
          return lastComparison;
11257
        }
11258
      }
11259
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11260
      if (lastComparison != 0) {
11261
        return lastComparison;
11262
      }
11263
      if (isSetType()) {
11264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11265
        if (lastComparison != 0) {
11266
          return lastComparison;
11267
        }
11268
      }
11269
      return 0;
11270
    }
11271
 
11272
    public _Fields fieldForId(int fieldId) {
11273
      return _Fields.findByThriftId(fieldId);
11274
    }
11275
 
11276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11277
      org.apache.thrift.protocol.TField field;
11278
      iprot.readStructBegin();
11279
      while (true)
11280
      {
11281
        field = iprot.readFieldBegin();
11282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11283
          break;
11284
        }
11285
        switch (field.id) {
11286
          case 1: // CATALOG_ITEM_ID
11287
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11288
              this.catalogItemId = iprot.readI64();
11289
              setCatalogItemIdIsSet(true);
11290
            } else { 
11291
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11292
            }
11293
            break;
11294
          case 2: // DESTINATION_PIN
11295
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11296
              this.destination_pin = iprot.readString();
11297
            } else { 
11298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11299
            }
11300
            break;
11301
          case 3: // TYPE
11302
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11303
              this.type = DeliveryType.findByValue(iprot.readI32());
11304
            } else { 
11305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11306
            }
11307
            break;
11308
          default:
11309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11310
        }
11311
        iprot.readFieldEnd();
11312
      }
11313
      iprot.readStructEnd();
11314
      validate();
11315
    }
11316
 
11317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11318
      validate();
11319
 
11320
      oprot.writeStructBegin(STRUCT_DESC);
11321
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11322
      oprot.writeI64(this.catalogItemId);
11323
      oprot.writeFieldEnd();
11324
      if (this.destination_pin != null) {
11325
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11326
        oprot.writeString(this.destination_pin);
11327
        oprot.writeFieldEnd();
11328
      }
11329
      if (this.type != null) {
11330
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11331
        oprot.writeI32(this.type.getValue());
11332
        oprot.writeFieldEnd();
11333
      }
11334
      oprot.writeFieldStop();
11335
      oprot.writeStructEnd();
11336
    }
11337
 
11338
    @Override
11339
    public String toString() {
11340
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11341
      boolean first = true;
11342
 
11343
      sb.append("catalogItemId:");
11344
      sb.append(this.catalogItemId);
11345
      first = false;
11346
      if (!first) sb.append(", ");
11347
      sb.append("destination_pin:");
11348
      if (this.destination_pin == null) {
11349
        sb.append("null");
11350
      } else {
11351
        sb.append(this.destination_pin);
11352
      }
11353
      first = false;
11354
      if (!first) sb.append(", ");
11355
      sb.append("type:");
11356
      if (this.type == null) {
11357
        sb.append("null");
11358
      } else {
11359
        sb.append(this.type);
11360
      }
11361
      first = false;
11362
      sb.append(")");
11363
      return sb.toString();
11364
    }
11365
 
11366
    public void validate() throws org.apache.thrift.TException {
11367
      // check for required fields
11368
    }
11369
 
11370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11371
      try {
11372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11373
      } catch (org.apache.thrift.TException te) {
11374
        throw new java.io.IOException(te);
11375
      }
11376
    }
11377
 
11378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11379
      try {
11380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11381
      } catch (org.apache.thrift.TException te) {
11382
        throw new java.io.IOException(te);
11383
      }
11384
    }
11385
 
11386
  }
11387
 
11388
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11390
 
11391
    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);
11392
    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);
11393
 
9840 amit.gupta 11394
    private List<ItemText> success; // required
4934 amit.gupta 11395
    private LogisticsServiceException se; // required
11396
 
11397
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11398
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11399
      SUCCESS((short)0, "success"),
11400
      SE((short)1, "se");
11401
 
11402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11403
 
11404
      static {
11405
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11406
          byName.put(field.getFieldName(), field);
11407
        }
11408
      }
11409
 
11410
      /**
11411
       * Find the _Fields constant that matches fieldId, or null if its not found.
11412
       */
11413
      public static _Fields findByThriftId(int fieldId) {
11414
        switch(fieldId) {
11415
          case 0: // SUCCESS
11416
            return SUCCESS;
11417
          case 1: // SE
11418
            return SE;
11419
          default:
11420
            return null;
11421
        }
11422
      }
11423
 
11424
      /**
11425
       * Find the _Fields constant that matches fieldId, throwing an exception
11426
       * if it is not found.
11427
       */
11428
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11429
        _Fields fields = findByThriftId(fieldId);
11430
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11431
        return fields;
11432
      }
11433
 
11434
      /**
11435
       * Find the _Fields constant that matches name, or null if its not found.
11436
       */
11437
      public static _Fields findByName(String name) {
11438
        return byName.get(name);
11439
      }
11440
 
11441
      private final short _thriftId;
11442
      private final String _fieldName;
11443
 
11444
      _Fields(short thriftId, String fieldName) {
11445
        _thriftId = thriftId;
11446
        _fieldName = fieldName;
11447
      }
11448
 
11449
      public short getThriftFieldId() {
11450
        return _thriftId;
11451
      }
11452
 
11453
      public String getFieldName() {
11454
        return _fieldName;
11455
      }
11456
    }
11457
 
11458
    // isset id assignments
11459
 
11460
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11461
    static {
11462
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11463
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11464
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11465
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11466
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11467
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11468
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11469
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11470
    }
11471
 
11472
    public getEntityLogisticsEstimation_result() {
11473
    }
11474
 
11475
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11476
      List<ItemText> success,
4934 amit.gupta 11477
      LogisticsServiceException se)
11478
    {
11479
      this();
11480
      this.success = success;
11481
      this.se = se;
11482
    }
11483
 
11484
    /**
11485
     * Performs a deep copy on <i>other</i>.
11486
     */
11487
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11488
      if (other.isSetSuccess()) {
9840 amit.gupta 11489
        List<ItemText> __this__success = new ArrayList<ItemText>();
11490
        for (ItemText other_element : other.success) {
11491
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11492
        }
11493
        this.success = __this__success;
11494
      }
11495
      if (other.isSetSe()) {
11496
        this.se = new LogisticsServiceException(other.se);
11497
      }
11498
    }
11499
 
11500
    public getEntityLogisticsEstimation_result deepCopy() {
11501
      return new getEntityLogisticsEstimation_result(this);
11502
    }
11503
 
11504
    @Override
11505
    public void clear() {
11506
      this.success = null;
11507
      this.se = null;
11508
    }
11509
 
11510
    public int getSuccessSize() {
11511
      return (this.success == null) ? 0 : this.success.size();
11512
    }
11513
 
9840 amit.gupta 11514
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11515
      return (this.success == null) ? null : this.success.iterator();
11516
    }
11517
 
9840 amit.gupta 11518
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11519
      if (this.success == null) {
9840 amit.gupta 11520
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11521
      }
11522
      this.success.add(elem);
11523
    }
11524
 
9840 amit.gupta 11525
    public List<ItemText> getSuccess() {
4934 amit.gupta 11526
      return this.success;
11527
    }
11528
 
9840 amit.gupta 11529
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11530
      this.success = success;
11531
    }
11532
 
11533
    public void unsetSuccess() {
11534
      this.success = null;
11535
    }
11536
 
11537
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11538
    public boolean isSetSuccess() {
11539
      return this.success != null;
11540
    }
11541
 
11542
    public void setSuccessIsSet(boolean value) {
11543
      if (!value) {
11544
        this.success = null;
11545
      }
11546
    }
11547
 
11548
    public LogisticsServiceException getSe() {
11549
      return this.se;
11550
    }
11551
 
11552
    public void setSe(LogisticsServiceException se) {
11553
      this.se = se;
11554
    }
11555
 
11556
    public void unsetSe() {
11557
      this.se = null;
11558
    }
11559
 
11560
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11561
    public boolean isSetSe() {
11562
      return this.se != null;
11563
    }
11564
 
11565
    public void setSeIsSet(boolean value) {
11566
      if (!value) {
11567
        this.se = null;
11568
      }
11569
    }
11570
 
11571
    public void setFieldValue(_Fields field, Object value) {
11572
      switch (field) {
11573
      case SUCCESS:
11574
        if (value == null) {
11575
          unsetSuccess();
11576
        } else {
9840 amit.gupta 11577
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11578
        }
11579
        break;
11580
 
11581
      case SE:
11582
        if (value == null) {
11583
          unsetSe();
11584
        } else {
11585
          setSe((LogisticsServiceException)value);
11586
        }
11587
        break;
11588
 
11589
      }
11590
    }
11591
 
11592
    public Object getFieldValue(_Fields field) {
11593
      switch (field) {
11594
      case SUCCESS:
11595
        return getSuccess();
11596
 
11597
      case SE:
11598
        return getSe();
11599
 
11600
      }
11601
      throw new IllegalStateException();
11602
    }
11603
 
11604
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11605
    public boolean isSet(_Fields field) {
11606
      if (field == null) {
11607
        throw new IllegalArgumentException();
11608
      }
11609
 
11610
      switch (field) {
11611
      case SUCCESS:
11612
        return isSetSuccess();
11613
      case SE:
11614
        return isSetSe();
11615
      }
11616
      throw new IllegalStateException();
11617
    }
11618
 
11619
    @Override
11620
    public boolean equals(Object that) {
11621
      if (that == null)
11622
        return false;
11623
      if (that instanceof getEntityLogisticsEstimation_result)
11624
        return this.equals((getEntityLogisticsEstimation_result)that);
11625
      return false;
11626
    }
11627
 
11628
    public boolean equals(getEntityLogisticsEstimation_result that) {
11629
      if (that == null)
11630
        return false;
11631
 
11632
      boolean this_present_success = true && this.isSetSuccess();
11633
      boolean that_present_success = true && that.isSetSuccess();
11634
      if (this_present_success || that_present_success) {
11635
        if (!(this_present_success && that_present_success))
11636
          return false;
11637
        if (!this.success.equals(that.success))
11638
          return false;
11639
      }
11640
 
11641
      boolean this_present_se = true && this.isSetSe();
11642
      boolean that_present_se = true && that.isSetSe();
11643
      if (this_present_se || that_present_se) {
11644
        if (!(this_present_se && that_present_se))
11645
          return false;
11646
        if (!this.se.equals(that.se))
11647
          return false;
11648
      }
11649
 
11650
      return true;
11651
    }
11652
 
11653
    @Override
11654
    public int hashCode() {
11655
      return 0;
11656
    }
11657
 
11658
    public int compareTo(getEntityLogisticsEstimation_result other) {
11659
      if (!getClass().equals(other.getClass())) {
11660
        return getClass().getName().compareTo(other.getClass().getName());
11661
      }
11662
 
11663
      int lastComparison = 0;
11664
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11665
 
11666
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11667
      if (lastComparison != 0) {
11668
        return lastComparison;
11669
      }
11670
      if (isSetSuccess()) {
11671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11672
        if (lastComparison != 0) {
11673
          return lastComparison;
11674
        }
11675
      }
11676
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11677
      if (lastComparison != 0) {
11678
        return lastComparison;
11679
      }
11680
      if (isSetSe()) {
11681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11682
        if (lastComparison != 0) {
11683
          return lastComparison;
11684
        }
11685
      }
11686
      return 0;
11687
    }
11688
 
11689
    public _Fields fieldForId(int fieldId) {
11690
      return _Fields.findByThriftId(fieldId);
11691
    }
11692
 
11693
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11694
      org.apache.thrift.protocol.TField field;
11695
      iprot.readStructBegin();
11696
      while (true)
11697
      {
11698
        field = iprot.readFieldBegin();
11699
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11700
          break;
11701
        }
11702
        switch (field.id) {
11703
          case 0: // SUCCESS
11704
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11705
              {
7792 anupam.sin 11706
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11707
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11708
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11709
                {
9840 amit.gupta 11710
                  ItemText _elem18; // required
11711
                  _elem18 = new ItemText();
11712
                  _elem18.read(iprot);
7792 anupam.sin 11713
                  this.success.add(_elem18);
4934 amit.gupta 11714
                }
11715
                iprot.readListEnd();
11716
              }
11717
            } else { 
11718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11719
            }
11720
            break;
11721
          case 1: // SE
11722
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11723
              this.se = new LogisticsServiceException();
11724
              this.se.read(iprot);
11725
            } else { 
11726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11727
            }
11728
            break;
11729
          default:
11730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11731
        }
11732
        iprot.readFieldEnd();
11733
      }
11734
      iprot.readStructEnd();
11735
      validate();
11736
    }
11737
 
11738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11739
      oprot.writeStructBegin(STRUCT_DESC);
11740
 
11741
      if (this.isSetSuccess()) {
11742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11743
        {
9840 amit.gupta 11744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11745
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11746
          {
9840 amit.gupta 11747
            _iter19.write(oprot);
4934 amit.gupta 11748
          }
11749
          oprot.writeListEnd();
11750
        }
11751
        oprot.writeFieldEnd();
11752
      } else if (this.isSetSe()) {
11753
        oprot.writeFieldBegin(SE_FIELD_DESC);
11754
        this.se.write(oprot);
11755
        oprot.writeFieldEnd();
11756
      }
11757
      oprot.writeFieldStop();
11758
      oprot.writeStructEnd();
11759
    }
11760
 
11761
    @Override
11762
    public String toString() {
11763
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11764
      boolean first = true;
11765
 
11766
      sb.append("success:");
11767
      if (this.success == null) {
11768
        sb.append("null");
11769
      } else {
11770
        sb.append(this.success);
11771
      }
11772
      first = false;
11773
      if (!first) sb.append(", ");
11774
      sb.append("se:");
11775
      if (this.se == null) {
11776
        sb.append("null");
11777
      } else {
11778
        sb.append(this.se);
11779
      }
11780
      first = false;
11781
      sb.append(")");
11782
      return sb.toString();
11783
    }
11784
 
11785
    public void validate() throws org.apache.thrift.TException {
11786
      // check for required fields
11787
    }
11788
 
11789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11790
      try {
11791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11792
      } catch (org.apache.thrift.TException te) {
11793
        throw new java.io.IOException(te);
11794
      }
11795
    }
11796
 
11797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11798
      try {
11799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11800
      } catch (org.apache.thrift.TException te) {
11801
        throw new java.io.IOException(te);
11802
      }
11803
    }
11804
 
11805
  }
11806
 
5527 anupam.sin 11807
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11809
 
11810
    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);
11811
 
11812
    private long pickUp; // required
11813
 
11814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11816
      PICK_UP((short)1, "pickUp");
11817
 
11818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11819
 
11820
      static {
11821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11822
          byName.put(field.getFieldName(), field);
11823
        }
11824
      }
11825
 
11826
      /**
11827
       * Find the _Fields constant that matches fieldId, or null if its not found.
11828
       */
11829
      public static _Fields findByThriftId(int fieldId) {
11830
        switch(fieldId) {
11831
          case 1: // PICK_UP
11832
            return PICK_UP;
11833
          default:
11834
            return null;
11835
        }
11836
      }
11837
 
11838
      /**
11839
       * Find the _Fields constant that matches fieldId, throwing an exception
11840
       * if it is not found.
11841
       */
11842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11843
        _Fields fields = findByThriftId(fieldId);
11844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11845
        return fields;
11846
      }
11847
 
11848
      /**
11849
       * Find the _Fields constant that matches name, or null if its not found.
11850
       */
11851
      public static _Fields findByName(String name) {
11852
        return byName.get(name);
11853
      }
11854
 
11855
      private final short _thriftId;
11856
      private final String _fieldName;
11857
 
11858
      _Fields(short thriftId, String fieldName) {
11859
        _thriftId = thriftId;
11860
        _fieldName = fieldName;
11861
      }
11862
 
11863
      public short getThriftFieldId() {
11864
        return _thriftId;
11865
      }
11866
 
11867
      public String getFieldName() {
11868
        return _fieldName;
11869
      }
11870
    }
11871
 
11872
    // isset id assignments
11873
    private static final int __PICKUP_ISSET_ID = 0;
11874
    private BitSet __isset_bit_vector = new BitSet(1);
11875
 
11876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11877
    static {
11878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11879
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11883
    }
11884
 
11885
    public getProviderForPickupType_args() {
11886
    }
11887
 
11888
    public getProviderForPickupType_args(
11889
      long pickUp)
11890
    {
11891
      this();
11892
      this.pickUp = pickUp;
11893
      setPickUpIsSet(true);
11894
    }
11895
 
11896
    /**
11897
     * Performs a deep copy on <i>other</i>.
11898
     */
11899
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11900
      __isset_bit_vector.clear();
11901
      __isset_bit_vector.or(other.__isset_bit_vector);
11902
      this.pickUp = other.pickUp;
11903
    }
11904
 
11905
    public getProviderForPickupType_args deepCopy() {
11906
      return new getProviderForPickupType_args(this);
11907
    }
11908
 
11909
    @Override
11910
    public void clear() {
11911
      setPickUpIsSet(false);
11912
      this.pickUp = 0;
11913
    }
11914
 
11915
    public long getPickUp() {
11916
      return this.pickUp;
11917
    }
11918
 
11919
    public void setPickUp(long pickUp) {
11920
      this.pickUp = pickUp;
11921
      setPickUpIsSet(true);
11922
    }
11923
 
11924
    public void unsetPickUp() {
11925
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11926
    }
11927
 
11928
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11929
    public boolean isSetPickUp() {
11930
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11931
    }
11932
 
11933
    public void setPickUpIsSet(boolean value) {
11934
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11935
    }
11936
 
11937
    public void setFieldValue(_Fields field, Object value) {
11938
      switch (field) {
11939
      case PICK_UP:
11940
        if (value == null) {
11941
          unsetPickUp();
11942
        } else {
11943
          setPickUp((Long)value);
11944
        }
11945
        break;
11946
 
11947
      }
11948
    }
11949
 
11950
    public Object getFieldValue(_Fields field) {
11951
      switch (field) {
11952
      case PICK_UP:
11953
        return Long.valueOf(getPickUp());
11954
 
11955
      }
11956
      throw new IllegalStateException();
11957
    }
11958
 
11959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11960
    public boolean isSet(_Fields field) {
11961
      if (field == null) {
11962
        throw new IllegalArgumentException();
11963
      }
11964
 
11965
      switch (field) {
11966
      case PICK_UP:
11967
        return isSetPickUp();
11968
      }
11969
      throw new IllegalStateException();
11970
    }
11971
 
11972
    @Override
11973
    public boolean equals(Object that) {
11974
      if (that == null)
11975
        return false;
11976
      if (that instanceof getProviderForPickupType_args)
11977
        return this.equals((getProviderForPickupType_args)that);
11978
      return false;
11979
    }
11980
 
11981
    public boolean equals(getProviderForPickupType_args that) {
11982
      if (that == null)
11983
        return false;
11984
 
11985
      boolean this_present_pickUp = true;
11986
      boolean that_present_pickUp = true;
11987
      if (this_present_pickUp || that_present_pickUp) {
11988
        if (!(this_present_pickUp && that_present_pickUp))
11989
          return false;
11990
        if (this.pickUp != that.pickUp)
11991
          return false;
11992
      }
11993
 
11994
      return true;
11995
    }
11996
 
11997
    @Override
11998
    public int hashCode() {
11999
      return 0;
12000
    }
12001
 
12002
    public int compareTo(getProviderForPickupType_args other) {
12003
      if (!getClass().equals(other.getClass())) {
12004
        return getClass().getName().compareTo(other.getClass().getName());
12005
      }
12006
 
12007
      int lastComparison = 0;
12008
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
12009
 
12010
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
12011
      if (lastComparison != 0) {
12012
        return lastComparison;
12013
      }
12014
      if (isSetPickUp()) {
12015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
12016
        if (lastComparison != 0) {
12017
          return lastComparison;
12018
        }
12019
      }
12020
      return 0;
12021
    }
12022
 
12023
    public _Fields fieldForId(int fieldId) {
12024
      return _Fields.findByThriftId(fieldId);
12025
    }
12026
 
12027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12028
      org.apache.thrift.protocol.TField field;
12029
      iprot.readStructBegin();
12030
      while (true)
12031
      {
12032
        field = iprot.readFieldBegin();
12033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12034
          break;
12035
        }
12036
        switch (field.id) {
12037
          case 1: // PICK_UP
12038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12039
              this.pickUp = iprot.readI64();
12040
              setPickUpIsSet(true);
12041
            } else { 
12042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12043
            }
12044
            break;
12045
          default:
12046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12047
        }
12048
        iprot.readFieldEnd();
12049
      }
12050
      iprot.readStructEnd();
12051
      validate();
12052
    }
12053
 
12054
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12055
      validate();
12056
 
12057
      oprot.writeStructBegin(STRUCT_DESC);
12058
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
12059
      oprot.writeI64(this.pickUp);
12060
      oprot.writeFieldEnd();
12061
      oprot.writeFieldStop();
12062
      oprot.writeStructEnd();
12063
    }
12064
 
12065
    @Override
12066
    public String toString() {
12067
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
12068
      boolean first = true;
12069
 
12070
      sb.append("pickUp:");
12071
      sb.append(this.pickUp);
12072
      first = false;
12073
      sb.append(")");
12074
      return sb.toString();
12075
    }
12076
 
12077
    public void validate() throws org.apache.thrift.TException {
12078
      // check for required fields
12079
    }
12080
 
12081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12082
      try {
12083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12084
      } catch (org.apache.thrift.TException te) {
12085
        throw new java.io.IOException(te);
12086
      }
12087
    }
12088
 
12089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12090
      try {
12091
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12092
        __isset_bit_vector = new BitSet(1);
12093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12094
      } catch (org.apache.thrift.TException te) {
12095
        throw new java.io.IOException(te);
12096
      }
12097
    }
12098
 
12099
  }
12100
 
12101
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
12102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
12103
 
12104
    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);
12105
 
12106
    private long success; // required
12107
 
12108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12109
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12110
      SUCCESS((short)0, "success");
12111
 
12112
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12113
 
12114
      static {
12115
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12116
          byName.put(field.getFieldName(), field);
12117
        }
12118
      }
12119
 
12120
      /**
12121
       * Find the _Fields constant that matches fieldId, or null if its not found.
12122
       */
12123
      public static _Fields findByThriftId(int fieldId) {
12124
        switch(fieldId) {
12125
          case 0: // SUCCESS
12126
            return SUCCESS;
12127
          default:
12128
            return null;
12129
        }
12130
      }
12131
 
12132
      /**
12133
       * Find the _Fields constant that matches fieldId, throwing an exception
12134
       * if it is not found.
12135
       */
12136
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12137
        _Fields fields = findByThriftId(fieldId);
12138
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12139
        return fields;
12140
      }
12141
 
12142
      /**
12143
       * Find the _Fields constant that matches name, or null if its not found.
12144
       */
12145
      public static _Fields findByName(String name) {
12146
        return byName.get(name);
12147
      }
12148
 
12149
      private final short _thriftId;
12150
      private final String _fieldName;
12151
 
12152
      _Fields(short thriftId, String fieldName) {
12153
        _thriftId = thriftId;
12154
        _fieldName = fieldName;
12155
      }
12156
 
12157
      public short getThriftFieldId() {
12158
        return _thriftId;
12159
      }
12160
 
12161
      public String getFieldName() {
12162
        return _fieldName;
12163
      }
12164
    }
12165
 
12166
    // isset id assignments
12167
    private static final int __SUCCESS_ISSET_ID = 0;
12168
    private BitSet __isset_bit_vector = new BitSet(1);
12169
 
12170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12171
    static {
12172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12173
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
12177
    }
12178
 
12179
    public getProviderForPickupType_result() {
12180
    }
12181
 
12182
    public getProviderForPickupType_result(
12183
      long success)
12184
    {
12185
      this();
12186
      this.success = success;
12187
      setSuccessIsSet(true);
12188
    }
12189
 
12190
    /**
12191
     * Performs a deep copy on <i>other</i>.
12192
     */
12193
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
12194
      __isset_bit_vector.clear();
12195
      __isset_bit_vector.or(other.__isset_bit_vector);
12196
      this.success = other.success;
12197
    }
12198
 
12199
    public getProviderForPickupType_result deepCopy() {
12200
      return new getProviderForPickupType_result(this);
12201
    }
12202
 
12203
    @Override
12204
    public void clear() {
12205
      setSuccessIsSet(false);
12206
      this.success = 0;
12207
    }
12208
 
12209
    public long getSuccess() {
12210
      return this.success;
12211
    }
12212
 
12213
    public void setSuccess(long success) {
12214
      this.success = success;
12215
      setSuccessIsSet(true);
12216
    }
12217
 
12218
    public void unsetSuccess() {
12219
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12220
    }
12221
 
12222
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12223
    public boolean isSetSuccess() {
12224
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12225
    }
12226
 
12227
    public void setSuccessIsSet(boolean value) {
12228
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12229
    }
12230
 
12231
    public void setFieldValue(_Fields field, Object value) {
12232
      switch (field) {
12233
      case SUCCESS:
12234
        if (value == null) {
12235
          unsetSuccess();
12236
        } else {
12237
          setSuccess((Long)value);
12238
        }
12239
        break;
12240
 
12241
      }
12242
    }
12243
 
12244
    public Object getFieldValue(_Fields field) {
12245
      switch (field) {
12246
      case SUCCESS:
12247
        return Long.valueOf(getSuccess());
12248
 
12249
      }
12250
      throw new IllegalStateException();
12251
    }
12252
 
12253
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12254
    public boolean isSet(_Fields field) {
12255
      if (field == null) {
12256
        throw new IllegalArgumentException();
12257
      }
12258
 
12259
      switch (field) {
12260
      case SUCCESS:
12261
        return isSetSuccess();
12262
      }
12263
      throw new IllegalStateException();
12264
    }
12265
 
12266
    @Override
12267
    public boolean equals(Object that) {
12268
      if (that == null)
12269
        return false;
12270
      if (that instanceof getProviderForPickupType_result)
12271
        return this.equals((getProviderForPickupType_result)that);
12272
      return false;
12273
    }
12274
 
12275
    public boolean equals(getProviderForPickupType_result that) {
12276
      if (that == null)
12277
        return false;
12278
 
12279
      boolean this_present_success = true;
12280
      boolean that_present_success = true;
12281
      if (this_present_success || that_present_success) {
12282
        if (!(this_present_success && that_present_success))
12283
          return false;
12284
        if (this.success != that.success)
12285
          return false;
12286
      }
12287
 
12288
      return true;
12289
    }
12290
 
12291
    @Override
12292
    public int hashCode() {
12293
      return 0;
12294
    }
12295
 
12296
    public int compareTo(getProviderForPickupType_result other) {
12297
      if (!getClass().equals(other.getClass())) {
12298
        return getClass().getName().compareTo(other.getClass().getName());
12299
      }
12300
 
12301
      int lastComparison = 0;
12302
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12303
 
12304
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12305
      if (lastComparison != 0) {
12306
        return lastComparison;
12307
      }
12308
      if (isSetSuccess()) {
12309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12310
        if (lastComparison != 0) {
12311
          return lastComparison;
12312
        }
12313
      }
12314
      return 0;
12315
    }
12316
 
12317
    public _Fields fieldForId(int fieldId) {
12318
      return _Fields.findByThriftId(fieldId);
12319
    }
12320
 
12321
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12322
      org.apache.thrift.protocol.TField field;
12323
      iprot.readStructBegin();
12324
      while (true)
12325
      {
12326
        field = iprot.readFieldBegin();
12327
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12328
          break;
12329
        }
12330
        switch (field.id) {
12331
          case 0: // SUCCESS
12332
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12333
              this.success = iprot.readI64();
12334
              setSuccessIsSet(true);
12335
            } else { 
12336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12337
            }
12338
            break;
12339
          default:
12340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12341
        }
12342
        iprot.readFieldEnd();
12343
      }
12344
      iprot.readStructEnd();
12345
      validate();
12346
    }
12347
 
12348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12349
      oprot.writeStructBegin(STRUCT_DESC);
12350
 
12351
      if (this.isSetSuccess()) {
12352
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12353
        oprot.writeI64(this.success);
12354
        oprot.writeFieldEnd();
12355
      }
12356
      oprot.writeFieldStop();
12357
      oprot.writeStructEnd();
12358
    }
12359
 
12360
    @Override
12361
    public String toString() {
12362
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12363
      boolean first = true;
12364
 
12365
      sb.append("success:");
12366
      sb.append(this.success);
12367
      first = false;
12368
      sb.append(")");
12369
      return sb.toString();
12370
    }
12371
 
12372
    public void validate() throws org.apache.thrift.TException {
12373
      // check for required fields
12374
    }
12375
 
12376
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12377
      try {
12378
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12379
      } catch (org.apache.thrift.TException te) {
12380
        throw new java.io.IOException(te);
12381
      }
12382
    }
12383
 
12384
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12385
      try {
12386
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12387
      } catch (org.apache.thrift.TException te) {
12388
        throw new java.io.IOException(te);
12389
      }
12390
    }
12391
 
12392
  }
12393
 
5553 rajveer 12394
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12395
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12396
 
12397
 
12398
 
12399
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12400
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12401
;
12402
 
12403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12404
 
12405
      static {
12406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12407
          byName.put(field.getFieldName(), field);
12408
        }
12409
      }
12410
 
12411
      /**
12412
       * Find the _Fields constant that matches fieldId, or null if its not found.
12413
       */
12414
      public static _Fields findByThriftId(int fieldId) {
12415
        switch(fieldId) {
12416
          default:
12417
            return null;
12418
        }
12419
      }
12420
 
12421
      /**
12422
       * Find the _Fields constant that matches fieldId, throwing an exception
12423
       * if it is not found.
12424
       */
12425
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12426
        _Fields fields = findByThriftId(fieldId);
12427
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12428
        return fields;
12429
      }
12430
 
12431
      /**
12432
       * Find the _Fields constant that matches name, or null if its not found.
12433
       */
12434
      public static _Fields findByName(String name) {
12435
        return byName.get(name);
12436
      }
12437
 
12438
      private final short _thriftId;
12439
      private final String _fieldName;
12440
 
12441
      _Fields(short thriftId, String fieldName) {
12442
        _thriftId = thriftId;
12443
        _fieldName = fieldName;
12444
      }
12445
 
12446
      public short getThriftFieldId() {
12447
        return _thriftId;
12448
      }
12449
 
12450
      public String getFieldName() {
12451
        return _fieldName;
12452
      }
12453
    }
12454
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12455
    static {
12456
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12459
    }
12460
 
12461
    public getAllPickupStores_args() {
12462
    }
12463
 
12464
    /**
12465
     * Performs a deep copy on <i>other</i>.
12466
     */
12467
    public getAllPickupStores_args(getAllPickupStores_args other) {
12468
    }
12469
 
12470
    public getAllPickupStores_args deepCopy() {
12471
      return new getAllPickupStores_args(this);
12472
    }
12473
 
12474
    @Override
12475
    public void clear() {
12476
    }
12477
 
12478
    public void setFieldValue(_Fields field, Object value) {
12479
      switch (field) {
12480
      }
12481
    }
12482
 
12483
    public Object getFieldValue(_Fields field) {
12484
      switch (field) {
12485
      }
12486
      throw new IllegalStateException();
12487
    }
12488
 
12489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12490
    public boolean isSet(_Fields field) {
12491
      if (field == null) {
12492
        throw new IllegalArgumentException();
12493
      }
12494
 
12495
      switch (field) {
12496
      }
12497
      throw new IllegalStateException();
12498
    }
12499
 
12500
    @Override
12501
    public boolean equals(Object that) {
12502
      if (that == null)
12503
        return false;
12504
      if (that instanceof getAllPickupStores_args)
12505
        return this.equals((getAllPickupStores_args)that);
12506
      return false;
12507
    }
12508
 
12509
    public boolean equals(getAllPickupStores_args that) {
12510
      if (that == null)
12511
        return false;
12512
 
12513
      return true;
12514
    }
12515
 
12516
    @Override
12517
    public int hashCode() {
12518
      return 0;
12519
    }
12520
 
12521
    public int compareTo(getAllPickupStores_args other) {
12522
      if (!getClass().equals(other.getClass())) {
12523
        return getClass().getName().compareTo(other.getClass().getName());
12524
      }
12525
 
12526
      int lastComparison = 0;
12527
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12528
 
12529
      return 0;
12530
    }
12531
 
12532
    public _Fields fieldForId(int fieldId) {
12533
      return _Fields.findByThriftId(fieldId);
12534
    }
12535
 
12536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12537
      org.apache.thrift.protocol.TField field;
12538
      iprot.readStructBegin();
12539
      while (true)
12540
      {
12541
        field = iprot.readFieldBegin();
12542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12543
          break;
12544
        }
12545
        switch (field.id) {
12546
          default:
12547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12548
        }
12549
        iprot.readFieldEnd();
12550
      }
12551
      iprot.readStructEnd();
12552
      validate();
12553
    }
12554
 
12555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12556
      validate();
12557
 
12558
      oprot.writeStructBegin(STRUCT_DESC);
12559
      oprot.writeFieldStop();
12560
      oprot.writeStructEnd();
12561
    }
12562
 
12563
    @Override
12564
    public String toString() {
12565
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12566
      boolean first = true;
12567
 
12568
      sb.append(")");
12569
      return sb.toString();
12570
    }
12571
 
12572
    public void validate() throws org.apache.thrift.TException {
12573
      // check for required fields
12574
    }
12575
 
12576
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12577
      try {
12578
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12579
      } catch (org.apache.thrift.TException te) {
12580
        throw new java.io.IOException(te);
12581
      }
12582
    }
12583
 
12584
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12585
      try {
12586
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12587
      } catch (org.apache.thrift.TException te) {
12588
        throw new java.io.IOException(te);
12589
      }
12590
    }
12591
 
12592
  }
12593
 
12594
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12595
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12596
 
12597
    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);
12598
 
12599
    private List<PickupStore> success; // required
12600
 
12601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12602
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12603
      SUCCESS((short)0, "success");
12604
 
12605
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12606
 
12607
      static {
12608
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12609
          byName.put(field.getFieldName(), field);
12610
        }
12611
      }
12612
 
12613
      /**
12614
       * Find the _Fields constant that matches fieldId, or null if its not found.
12615
       */
12616
      public static _Fields findByThriftId(int fieldId) {
12617
        switch(fieldId) {
12618
          case 0: // SUCCESS
12619
            return SUCCESS;
12620
          default:
12621
            return null;
12622
        }
12623
      }
12624
 
12625
      /**
12626
       * Find the _Fields constant that matches fieldId, throwing an exception
12627
       * if it is not found.
12628
       */
12629
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12630
        _Fields fields = findByThriftId(fieldId);
12631
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12632
        return fields;
12633
      }
12634
 
12635
      /**
12636
       * Find the _Fields constant that matches name, or null if its not found.
12637
       */
12638
      public static _Fields findByName(String name) {
12639
        return byName.get(name);
12640
      }
12641
 
12642
      private final short _thriftId;
12643
      private final String _fieldName;
12644
 
12645
      _Fields(short thriftId, String fieldName) {
12646
        _thriftId = thriftId;
12647
        _fieldName = fieldName;
12648
      }
12649
 
12650
      public short getThriftFieldId() {
12651
        return _thriftId;
12652
      }
12653
 
12654
      public String getFieldName() {
12655
        return _fieldName;
12656
      }
12657
    }
12658
 
12659
    // isset id assignments
12660
 
12661
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12662
    static {
12663
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12664
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12665
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12666
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12667
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12668
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12669
    }
12670
 
12671
    public getAllPickupStores_result() {
12672
    }
12673
 
12674
    public getAllPickupStores_result(
12675
      List<PickupStore> success)
12676
    {
12677
      this();
12678
      this.success = success;
12679
    }
12680
 
12681
    /**
12682
     * Performs a deep copy on <i>other</i>.
12683
     */
12684
    public getAllPickupStores_result(getAllPickupStores_result other) {
12685
      if (other.isSetSuccess()) {
12686
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12687
        for (PickupStore other_element : other.success) {
12688
          __this__success.add(new PickupStore(other_element));
12689
        }
12690
        this.success = __this__success;
12691
      }
12692
    }
12693
 
12694
    public getAllPickupStores_result deepCopy() {
12695
      return new getAllPickupStores_result(this);
12696
    }
12697
 
12698
    @Override
12699
    public void clear() {
12700
      this.success = null;
12701
    }
12702
 
12703
    public int getSuccessSize() {
12704
      return (this.success == null) ? 0 : this.success.size();
12705
    }
12706
 
12707
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12708
      return (this.success == null) ? null : this.success.iterator();
12709
    }
12710
 
12711
    public void addToSuccess(PickupStore elem) {
12712
      if (this.success == null) {
12713
        this.success = new ArrayList<PickupStore>();
12714
      }
12715
      this.success.add(elem);
12716
    }
12717
 
12718
    public List<PickupStore> getSuccess() {
12719
      return this.success;
12720
    }
12721
 
12722
    public void setSuccess(List<PickupStore> success) {
12723
      this.success = success;
12724
    }
12725
 
12726
    public void unsetSuccess() {
12727
      this.success = null;
12728
    }
12729
 
12730
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12731
    public boolean isSetSuccess() {
12732
      return this.success != null;
12733
    }
12734
 
12735
    public void setSuccessIsSet(boolean value) {
12736
      if (!value) {
12737
        this.success = null;
12738
      }
12739
    }
12740
 
12741
    public void setFieldValue(_Fields field, Object value) {
12742
      switch (field) {
12743
      case SUCCESS:
12744
        if (value == null) {
12745
          unsetSuccess();
12746
        } else {
12747
          setSuccess((List<PickupStore>)value);
12748
        }
12749
        break;
12750
 
12751
      }
12752
    }
12753
 
12754
    public Object getFieldValue(_Fields field) {
12755
      switch (field) {
12756
      case SUCCESS:
12757
        return getSuccess();
12758
 
12759
      }
12760
      throw new IllegalStateException();
12761
    }
12762
 
12763
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12764
    public boolean isSet(_Fields field) {
12765
      if (field == null) {
12766
        throw new IllegalArgumentException();
12767
      }
12768
 
12769
      switch (field) {
12770
      case SUCCESS:
12771
        return isSetSuccess();
12772
      }
12773
      throw new IllegalStateException();
12774
    }
12775
 
12776
    @Override
12777
    public boolean equals(Object that) {
12778
      if (that == null)
12779
        return false;
12780
      if (that instanceof getAllPickupStores_result)
12781
        return this.equals((getAllPickupStores_result)that);
12782
      return false;
12783
    }
12784
 
12785
    public boolean equals(getAllPickupStores_result that) {
12786
      if (that == null)
12787
        return false;
12788
 
12789
      boolean this_present_success = true && this.isSetSuccess();
12790
      boolean that_present_success = true && that.isSetSuccess();
12791
      if (this_present_success || that_present_success) {
12792
        if (!(this_present_success && that_present_success))
12793
          return false;
12794
        if (!this.success.equals(that.success))
12795
          return false;
12796
      }
12797
 
12798
      return true;
12799
    }
12800
 
12801
    @Override
12802
    public int hashCode() {
12803
      return 0;
12804
    }
12805
 
12806
    public int compareTo(getAllPickupStores_result other) {
12807
      if (!getClass().equals(other.getClass())) {
12808
        return getClass().getName().compareTo(other.getClass().getName());
12809
      }
12810
 
12811
      int lastComparison = 0;
12812
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12813
 
12814
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12815
      if (lastComparison != 0) {
12816
        return lastComparison;
12817
      }
12818
      if (isSetSuccess()) {
12819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12820
        if (lastComparison != 0) {
12821
          return lastComparison;
12822
        }
12823
      }
12824
      return 0;
12825
    }
12826
 
12827
    public _Fields fieldForId(int fieldId) {
12828
      return _Fields.findByThriftId(fieldId);
12829
    }
12830
 
12831
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12832
      org.apache.thrift.protocol.TField field;
12833
      iprot.readStructBegin();
12834
      while (true)
12835
      {
12836
        field = iprot.readFieldBegin();
12837
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12838
          break;
12839
        }
12840
        switch (field.id) {
12841
          case 0: // SUCCESS
12842
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12843
              {
7792 anupam.sin 12844
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12845
                this.success = new ArrayList<PickupStore>(_list20.size);
12846
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12847
                {
7792 anupam.sin 12848
                  PickupStore _elem22; // required
12849
                  _elem22 = new PickupStore();
12850
                  _elem22.read(iprot);
12851
                  this.success.add(_elem22);
5553 rajveer 12852
                }
12853
                iprot.readListEnd();
12854
              }
12855
            } else { 
12856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12857
            }
12858
            break;
12859
          default:
12860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12861
        }
12862
        iprot.readFieldEnd();
12863
      }
12864
      iprot.readStructEnd();
12865
      validate();
12866
    }
12867
 
12868
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12869
      oprot.writeStructBegin(STRUCT_DESC);
12870
 
12871
      if (this.isSetSuccess()) {
12872
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12873
        {
12874
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12875
          for (PickupStore _iter23 : this.success)
5553 rajveer 12876
          {
7792 anupam.sin 12877
            _iter23.write(oprot);
5553 rajveer 12878
          }
12879
          oprot.writeListEnd();
12880
        }
12881
        oprot.writeFieldEnd();
12882
      }
12883
      oprot.writeFieldStop();
12884
      oprot.writeStructEnd();
12885
    }
12886
 
12887
    @Override
12888
    public String toString() {
12889
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12890
      boolean first = true;
12891
 
12892
      sb.append("success:");
12893
      if (this.success == null) {
12894
        sb.append("null");
12895
      } else {
12896
        sb.append(this.success);
12897
      }
12898
      first = false;
12899
      sb.append(")");
12900
      return sb.toString();
12901
    }
12902
 
12903
    public void validate() throws org.apache.thrift.TException {
12904
      // check for required fields
12905
    }
12906
 
12907
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12908
      try {
12909
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12910
      } catch (org.apache.thrift.TException te) {
12911
        throw new java.io.IOException(te);
12912
      }
12913
    }
12914
 
12915
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12916
      try {
12917
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12918
      } catch (org.apache.thrift.TException te) {
12919
        throw new java.io.IOException(te);
12920
      }
12921
    }
12922
 
12923
  }
12924
 
12925
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12926
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12927
 
12928
    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);
12929
 
12930
    private long storeId; // required
12931
 
12932
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12933
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12934
      STORE_ID((short)1, "storeId");
12935
 
12936
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12937
 
12938
      static {
12939
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12940
          byName.put(field.getFieldName(), field);
12941
        }
12942
      }
12943
 
12944
      /**
12945
       * Find the _Fields constant that matches fieldId, or null if its not found.
12946
       */
12947
      public static _Fields findByThriftId(int fieldId) {
12948
        switch(fieldId) {
12949
          case 1: // STORE_ID
12950
            return STORE_ID;
12951
          default:
12952
            return null;
12953
        }
12954
      }
12955
 
12956
      /**
12957
       * Find the _Fields constant that matches fieldId, throwing an exception
12958
       * if it is not found.
12959
       */
12960
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12961
        _Fields fields = findByThriftId(fieldId);
12962
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12963
        return fields;
12964
      }
12965
 
12966
      /**
12967
       * Find the _Fields constant that matches name, or null if its not found.
12968
       */
12969
      public static _Fields findByName(String name) {
12970
        return byName.get(name);
12971
      }
12972
 
12973
      private final short _thriftId;
12974
      private final String _fieldName;
12975
 
12976
      _Fields(short thriftId, String fieldName) {
12977
        _thriftId = thriftId;
12978
        _fieldName = fieldName;
12979
      }
12980
 
12981
      public short getThriftFieldId() {
12982
        return _thriftId;
12983
      }
12984
 
12985
      public String getFieldName() {
12986
        return _fieldName;
12987
      }
12988
    }
12989
 
12990
    // isset id assignments
12991
    private static final int __STOREID_ISSET_ID = 0;
12992
    private BitSet __isset_bit_vector = new BitSet(1);
12993
 
12994
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12995
    static {
12996
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12997
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12998
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12999
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13000
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
13001
    }
13002
 
13003
    public getPickupStore_args() {
13004
    }
13005
 
13006
    public getPickupStore_args(
13007
      long storeId)
13008
    {
13009
      this();
13010
      this.storeId = storeId;
13011
      setStoreIdIsSet(true);
13012
    }
13013
 
13014
    /**
13015
     * Performs a deep copy on <i>other</i>.
13016
     */
13017
    public getPickupStore_args(getPickupStore_args other) {
13018
      __isset_bit_vector.clear();
13019
      __isset_bit_vector.or(other.__isset_bit_vector);
13020
      this.storeId = other.storeId;
13021
    }
13022
 
13023
    public getPickupStore_args deepCopy() {
13024
      return new getPickupStore_args(this);
13025
    }
13026
 
13027
    @Override
13028
    public void clear() {
13029
      setStoreIdIsSet(false);
13030
      this.storeId = 0;
13031
    }
13032
 
13033
    public long getStoreId() {
13034
      return this.storeId;
13035
    }
13036
 
13037
    public void setStoreId(long storeId) {
13038
      this.storeId = storeId;
13039
      setStoreIdIsSet(true);
13040
    }
13041
 
13042
    public void unsetStoreId() {
13043
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
13044
    }
13045
 
13046
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
13047
    public boolean isSetStoreId() {
13048
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
13049
    }
13050
 
13051
    public void setStoreIdIsSet(boolean value) {
13052
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
13053
    }
13054
 
13055
    public void setFieldValue(_Fields field, Object value) {
13056
      switch (field) {
13057
      case STORE_ID:
13058
        if (value == null) {
13059
          unsetStoreId();
13060
        } else {
13061
          setStoreId((Long)value);
13062
        }
13063
        break;
13064
 
13065
      }
13066
    }
13067
 
13068
    public Object getFieldValue(_Fields field) {
13069
      switch (field) {
13070
      case STORE_ID:
13071
        return Long.valueOf(getStoreId());
13072
 
13073
      }
13074
      throw new IllegalStateException();
13075
    }
13076
 
13077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13078
    public boolean isSet(_Fields field) {
13079
      if (field == null) {
13080
        throw new IllegalArgumentException();
13081
      }
13082
 
13083
      switch (field) {
13084
      case STORE_ID:
13085
        return isSetStoreId();
13086
      }
13087
      throw new IllegalStateException();
13088
    }
13089
 
13090
    @Override
13091
    public boolean equals(Object that) {
13092
      if (that == null)
13093
        return false;
13094
      if (that instanceof getPickupStore_args)
13095
        return this.equals((getPickupStore_args)that);
13096
      return false;
13097
    }
13098
 
13099
    public boolean equals(getPickupStore_args that) {
13100
      if (that == null)
13101
        return false;
13102
 
13103
      boolean this_present_storeId = true;
13104
      boolean that_present_storeId = true;
13105
      if (this_present_storeId || that_present_storeId) {
13106
        if (!(this_present_storeId && that_present_storeId))
13107
          return false;
13108
        if (this.storeId != that.storeId)
13109
          return false;
13110
      }
13111
 
13112
      return true;
13113
    }
13114
 
13115
    @Override
13116
    public int hashCode() {
13117
      return 0;
13118
    }
13119
 
13120
    public int compareTo(getPickupStore_args other) {
13121
      if (!getClass().equals(other.getClass())) {
13122
        return getClass().getName().compareTo(other.getClass().getName());
13123
      }
13124
 
13125
      int lastComparison = 0;
13126
      getPickupStore_args typedOther = (getPickupStore_args)other;
13127
 
13128
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
13129
      if (lastComparison != 0) {
13130
        return lastComparison;
13131
      }
13132
      if (isSetStoreId()) {
13133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
13134
        if (lastComparison != 0) {
13135
          return lastComparison;
13136
        }
13137
      }
13138
      return 0;
13139
    }
13140
 
13141
    public _Fields fieldForId(int fieldId) {
13142
      return _Fields.findByThriftId(fieldId);
13143
    }
13144
 
13145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13146
      org.apache.thrift.protocol.TField field;
13147
      iprot.readStructBegin();
13148
      while (true)
13149
      {
13150
        field = iprot.readFieldBegin();
13151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13152
          break;
13153
        }
13154
        switch (field.id) {
13155
          case 1: // STORE_ID
13156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13157
              this.storeId = iprot.readI64();
13158
              setStoreIdIsSet(true);
13159
            } else { 
13160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13161
            }
13162
            break;
13163
          default:
13164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13165
        }
13166
        iprot.readFieldEnd();
13167
      }
13168
      iprot.readStructEnd();
13169
      validate();
13170
    }
13171
 
13172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13173
      validate();
13174
 
13175
      oprot.writeStructBegin(STRUCT_DESC);
13176
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
13177
      oprot.writeI64(this.storeId);
13178
      oprot.writeFieldEnd();
13179
      oprot.writeFieldStop();
13180
      oprot.writeStructEnd();
13181
    }
13182
 
13183
    @Override
13184
    public String toString() {
13185
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
13186
      boolean first = true;
13187
 
13188
      sb.append("storeId:");
13189
      sb.append(this.storeId);
13190
      first = false;
13191
      sb.append(")");
13192
      return sb.toString();
13193
    }
13194
 
13195
    public void validate() throws org.apache.thrift.TException {
13196
      // check for required fields
13197
    }
13198
 
13199
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13200
      try {
13201
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13202
      } catch (org.apache.thrift.TException te) {
13203
        throw new java.io.IOException(te);
13204
      }
13205
    }
13206
 
13207
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13208
      try {
13209
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13210
        __isset_bit_vector = new BitSet(1);
13211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13212
      } catch (org.apache.thrift.TException te) {
13213
        throw new java.io.IOException(te);
13214
      }
13215
    }
13216
 
13217
  }
13218
 
13219
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
13220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
13221
 
13222
    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);
13223
 
13224
    private PickupStore success; // required
13225
 
13226
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13227
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13228
      SUCCESS((short)0, "success");
13229
 
13230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13231
 
13232
      static {
13233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13234
          byName.put(field.getFieldName(), field);
13235
        }
13236
      }
13237
 
13238
      /**
13239
       * Find the _Fields constant that matches fieldId, or null if its not found.
13240
       */
13241
      public static _Fields findByThriftId(int fieldId) {
13242
        switch(fieldId) {
13243
          case 0: // SUCCESS
13244
            return SUCCESS;
13245
          default:
13246
            return null;
13247
        }
13248
      }
13249
 
13250
      /**
13251
       * Find the _Fields constant that matches fieldId, throwing an exception
13252
       * if it is not found.
13253
       */
13254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13255
        _Fields fields = findByThriftId(fieldId);
13256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13257
        return fields;
13258
      }
13259
 
13260
      /**
13261
       * Find the _Fields constant that matches name, or null if its not found.
13262
       */
13263
      public static _Fields findByName(String name) {
13264
        return byName.get(name);
13265
      }
13266
 
13267
      private final short _thriftId;
13268
      private final String _fieldName;
13269
 
13270
      _Fields(short thriftId, String fieldName) {
13271
        _thriftId = thriftId;
13272
        _fieldName = fieldName;
13273
      }
13274
 
13275
      public short getThriftFieldId() {
13276
        return _thriftId;
13277
      }
13278
 
13279
      public String getFieldName() {
13280
        return _fieldName;
13281
      }
13282
    }
13283
 
13284
    // isset id assignments
13285
 
13286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13287
    static {
13288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13289
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13290
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13293
    }
13294
 
13295
    public getPickupStore_result() {
13296
    }
13297
 
13298
    public getPickupStore_result(
13299
      PickupStore success)
13300
    {
13301
      this();
13302
      this.success = success;
13303
    }
13304
 
13305
    /**
13306
     * Performs a deep copy on <i>other</i>.
13307
     */
13308
    public getPickupStore_result(getPickupStore_result other) {
13309
      if (other.isSetSuccess()) {
13310
        this.success = new PickupStore(other.success);
13311
      }
13312
    }
13313
 
13314
    public getPickupStore_result deepCopy() {
13315
      return new getPickupStore_result(this);
13316
    }
13317
 
13318
    @Override
13319
    public void clear() {
13320
      this.success = null;
13321
    }
13322
 
13323
    public PickupStore getSuccess() {
13324
      return this.success;
13325
    }
13326
 
13327
    public void setSuccess(PickupStore success) {
13328
      this.success = success;
13329
    }
13330
 
13331
    public void unsetSuccess() {
13332
      this.success = null;
13333
    }
13334
 
13335
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13336
    public boolean isSetSuccess() {
13337
      return this.success != null;
13338
    }
13339
 
13340
    public void setSuccessIsSet(boolean value) {
13341
      if (!value) {
13342
        this.success = null;
13343
      }
13344
    }
13345
 
13346
    public void setFieldValue(_Fields field, Object value) {
13347
      switch (field) {
13348
      case SUCCESS:
13349
        if (value == null) {
13350
          unsetSuccess();
13351
        } else {
13352
          setSuccess((PickupStore)value);
13353
        }
13354
        break;
13355
 
13356
      }
13357
    }
13358
 
13359
    public Object getFieldValue(_Fields field) {
13360
      switch (field) {
13361
      case SUCCESS:
13362
        return getSuccess();
13363
 
13364
      }
13365
      throw new IllegalStateException();
13366
    }
13367
 
13368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13369
    public boolean isSet(_Fields field) {
13370
      if (field == null) {
13371
        throw new IllegalArgumentException();
13372
      }
13373
 
13374
      switch (field) {
13375
      case SUCCESS:
13376
        return isSetSuccess();
13377
      }
13378
      throw new IllegalStateException();
13379
    }
13380
 
13381
    @Override
13382
    public boolean equals(Object that) {
13383
      if (that == null)
13384
        return false;
13385
      if (that instanceof getPickupStore_result)
13386
        return this.equals((getPickupStore_result)that);
13387
      return false;
13388
    }
13389
 
13390
    public boolean equals(getPickupStore_result that) {
13391
      if (that == null)
13392
        return false;
13393
 
13394
      boolean this_present_success = true && this.isSetSuccess();
13395
      boolean that_present_success = true && that.isSetSuccess();
13396
      if (this_present_success || that_present_success) {
13397
        if (!(this_present_success && that_present_success))
13398
          return false;
13399
        if (!this.success.equals(that.success))
13400
          return false;
13401
      }
13402
 
13403
      return true;
13404
    }
13405
 
13406
    @Override
13407
    public int hashCode() {
13408
      return 0;
13409
    }
13410
 
13411
    public int compareTo(getPickupStore_result other) {
13412
      if (!getClass().equals(other.getClass())) {
13413
        return getClass().getName().compareTo(other.getClass().getName());
13414
      }
13415
 
13416
      int lastComparison = 0;
13417
      getPickupStore_result typedOther = (getPickupStore_result)other;
13418
 
13419
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13420
      if (lastComparison != 0) {
13421
        return lastComparison;
13422
      }
13423
      if (isSetSuccess()) {
13424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13425
        if (lastComparison != 0) {
13426
          return lastComparison;
13427
        }
13428
      }
13429
      return 0;
13430
    }
13431
 
13432
    public _Fields fieldForId(int fieldId) {
13433
      return _Fields.findByThriftId(fieldId);
13434
    }
13435
 
13436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13437
      org.apache.thrift.protocol.TField field;
13438
      iprot.readStructBegin();
13439
      while (true)
13440
      {
13441
        field = iprot.readFieldBegin();
13442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13443
          break;
13444
        }
13445
        switch (field.id) {
13446
          case 0: // SUCCESS
13447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13448
              this.success = new PickupStore();
13449
              this.success.read(iprot);
13450
            } else { 
13451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13452
            }
13453
            break;
13454
          default:
13455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13456
        }
13457
        iprot.readFieldEnd();
13458
      }
13459
      iprot.readStructEnd();
13460
      validate();
13461
    }
13462
 
13463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13464
      oprot.writeStructBegin(STRUCT_DESC);
13465
 
13466
      if (this.isSetSuccess()) {
13467
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13468
        this.success.write(oprot);
13469
        oprot.writeFieldEnd();
13470
      }
13471
      oprot.writeFieldStop();
13472
      oprot.writeStructEnd();
13473
    }
13474
 
13475
    @Override
13476
    public String toString() {
13477
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13478
      boolean first = true;
13479
 
13480
      sb.append("success:");
13481
      if (this.success == null) {
13482
        sb.append("null");
13483
      } else {
13484
        sb.append(this.success);
13485
      }
13486
      first = false;
13487
      sb.append(")");
13488
      return sb.toString();
13489
    }
13490
 
13491
    public void validate() throws org.apache.thrift.TException {
13492
      // check for required fields
13493
    }
13494
 
13495
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13496
      try {
13497
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13498
      } catch (org.apache.thrift.TException te) {
13499
        throw new java.io.IOException(te);
13500
      }
13501
    }
13502
 
13503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13504
      try {
13505
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13506
      } catch (org.apache.thrift.TException te) {
13507
        throw new java.io.IOException(te);
13508
      }
13509
    }
13510
 
13511
  }
13512
 
5719 rajveer 13513
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13514
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13515
 
13516
    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);
13517
 
13518
    private String hotspotId; // required
13519
 
13520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13522
      HOTSPOT_ID((short)1, "hotspotId");
13523
 
13524
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13525
 
13526
      static {
13527
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13528
          byName.put(field.getFieldName(), field);
13529
        }
13530
      }
13531
 
13532
      /**
13533
       * Find the _Fields constant that matches fieldId, or null if its not found.
13534
       */
13535
      public static _Fields findByThriftId(int fieldId) {
13536
        switch(fieldId) {
13537
          case 1: // HOTSPOT_ID
13538
            return HOTSPOT_ID;
13539
          default:
13540
            return null;
13541
        }
13542
      }
13543
 
13544
      /**
13545
       * Find the _Fields constant that matches fieldId, throwing an exception
13546
       * if it is not found.
13547
       */
13548
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13549
        _Fields fields = findByThriftId(fieldId);
13550
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13551
        return fields;
13552
      }
13553
 
13554
      /**
13555
       * Find the _Fields constant that matches name, or null if its not found.
13556
       */
13557
      public static _Fields findByName(String name) {
13558
        return byName.get(name);
13559
      }
13560
 
13561
      private final short _thriftId;
13562
      private final String _fieldName;
13563
 
13564
      _Fields(short thriftId, String fieldName) {
13565
        _thriftId = thriftId;
13566
        _fieldName = fieldName;
13567
      }
13568
 
13569
      public short getThriftFieldId() {
13570
        return _thriftId;
13571
      }
13572
 
13573
      public String getFieldName() {
13574
        return _fieldName;
13575
      }
13576
    }
13577
 
13578
    // isset id assignments
13579
 
13580
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13581
    static {
13582
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13583
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13587
    }
13588
 
13589
    public getPickupStoreByHotspotId_args() {
13590
    }
13591
 
13592
    public getPickupStoreByHotspotId_args(
13593
      String hotspotId)
13594
    {
13595
      this();
13596
      this.hotspotId = hotspotId;
13597
    }
13598
 
13599
    /**
13600
     * Performs a deep copy on <i>other</i>.
13601
     */
13602
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13603
      if (other.isSetHotspotId()) {
13604
        this.hotspotId = other.hotspotId;
13605
      }
13606
    }
13607
 
13608
    public getPickupStoreByHotspotId_args deepCopy() {
13609
      return new getPickupStoreByHotspotId_args(this);
13610
    }
13611
 
13612
    @Override
13613
    public void clear() {
13614
      this.hotspotId = null;
13615
    }
13616
 
13617
    public String getHotspotId() {
13618
      return this.hotspotId;
13619
    }
13620
 
13621
    public void setHotspotId(String hotspotId) {
13622
      this.hotspotId = hotspotId;
13623
    }
13624
 
13625
    public void unsetHotspotId() {
13626
      this.hotspotId = null;
13627
    }
13628
 
13629
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13630
    public boolean isSetHotspotId() {
13631
      return this.hotspotId != null;
13632
    }
13633
 
13634
    public void setHotspotIdIsSet(boolean value) {
13635
      if (!value) {
13636
        this.hotspotId = null;
13637
      }
13638
    }
13639
 
13640
    public void setFieldValue(_Fields field, Object value) {
13641
      switch (field) {
13642
      case HOTSPOT_ID:
13643
        if (value == null) {
13644
          unsetHotspotId();
13645
        } else {
13646
          setHotspotId((String)value);
13647
        }
13648
        break;
13649
 
13650
      }
13651
    }
13652
 
13653
    public Object getFieldValue(_Fields field) {
13654
      switch (field) {
13655
      case HOTSPOT_ID:
13656
        return getHotspotId();
13657
 
13658
      }
13659
      throw new IllegalStateException();
13660
    }
13661
 
13662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13663
    public boolean isSet(_Fields field) {
13664
      if (field == null) {
13665
        throw new IllegalArgumentException();
13666
      }
13667
 
13668
      switch (field) {
13669
      case HOTSPOT_ID:
13670
        return isSetHotspotId();
13671
      }
13672
      throw new IllegalStateException();
13673
    }
13674
 
13675
    @Override
13676
    public boolean equals(Object that) {
13677
      if (that == null)
13678
        return false;
13679
      if (that instanceof getPickupStoreByHotspotId_args)
13680
        return this.equals((getPickupStoreByHotspotId_args)that);
13681
      return false;
13682
    }
13683
 
13684
    public boolean equals(getPickupStoreByHotspotId_args that) {
13685
      if (that == null)
13686
        return false;
13687
 
13688
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13689
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13690
      if (this_present_hotspotId || that_present_hotspotId) {
13691
        if (!(this_present_hotspotId && that_present_hotspotId))
13692
          return false;
13693
        if (!this.hotspotId.equals(that.hotspotId))
13694
          return false;
13695
      }
13696
 
13697
      return true;
13698
    }
13699
 
13700
    @Override
13701
    public int hashCode() {
13702
      return 0;
13703
    }
13704
 
13705
    public int compareTo(getPickupStoreByHotspotId_args other) {
13706
      if (!getClass().equals(other.getClass())) {
13707
        return getClass().getName().compareTo(other.getClass().getName());
13708
      }
13709
 
13710
      int lastComparison = 0;
13711
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13712
 
13713
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13714
      if (lastComparison != 0) {
13715
        return lastComparison;
13716
      }
13717
      if (isSetHotspotId()) {
13718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13719
        if (lastComparison != 0) {
13720
          return lastComparison;
13721
        }
13722
      }
13723
      return 0;
13724
    }
13725
 
13726
    public _Fields fieldForId(int fieldId) {
13727
      return _Fields.findByThriftId(fieldId);
13728
    }
13729
 
13730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13731
      org.apache.thrift.protocol.TField field;
13732
      iprot.readStructBegin();
13733
      while (true)
13734
      {
13735
        field = iprot.readFieldBegin();
13736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13737
          break;
13738
        }
13739
        switch (field.id) {
13740
          case 1: // HOTSPOT_ID
13741
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13742
              this.hotspotId = iprot.readString();
13743
            } else { 
13744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13745
            }
13746
            break;
13747
          default:
13748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13749
        }
13750
        iprot.readFieldEnd();
13751
      }
13752
      iprot.readStructEnd();
13753
      validate();
13754
    }
13755
 
13756
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13757
      validate();
13758
 
13759
      oprot.writeStructBegin(STRUCT_DESC);
13760
      if (this.hotspotId != null) {
13761
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13762
        oprot.writeString(this.hotspotId);
13763
        oprot.writeFieldEnd();
13764
      }
13765
      oprot.writeFieldStop();
13766
      oprot.writeStructEnd();
13767
    }
13768
 
13769
    @Override
13770
    public String toString() {
13771
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13772
      boolean first = true;
13773
 
13774
      sb.append("hotspotId:");
13775
      if (this.hotspotId == null) {
13776
        sb.append("null");
13777
      } else {
13778
        sb.append(this.hotspotId);
13779
      }
13780
      first = false;
13781
      sb.append(")");
13782
      return sb.toString();
13783
    }
13784
 
13785
    public void validate() throws org.apache.thrift.TException {
13786
      // check for required fields
13787
    }
13788
 
13789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13790
      try {
13791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13792
      } catch (org.apache.thrift.TException te) {
13793
        throw new java.io.IOException(te);
13794
      }
13795
    }
13796
 
13797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13798
      try {
13799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13800
      } catch (org.apache.thrift.TException te) {
13801
        throw new java.io.IOException(te);
13802
      }
13803
    }
13804
 
13805
  }
13806
 
13807
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13809
 
13810
    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);
13811
 
13812
    private PickupStore success; // required
13813
 
13814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13816
      SUCCESS((short)0, "success");
13817
 
13818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13819
 
13820
      static {
13821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13822
          byName.put(field.getFieldName(), field);
13823
        }
13824
      }
13825
 
13826
      /**
13827
       * Find the _Fields constant that matches fieldId, or null if its not found.
13828
       */
13829
      public static _Fields findByThriftId(int fieldId) {
13830
        switch(fieldId) {
13831
          case 0: // SUCCESS
13832
            return SUCCESS;
13833
          default:
13834
            return null;
13835
        }
13836
      }
13837
 
13838
      /**
13839
       * Find the _Fields constant that matches fieldId, throwing an exception
13840
       * if it is not found.
13841
       */
13842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13843
        _Fields fields = findByThriftId(fieldId);
13844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13845
        return fields;
13846
      }
13847
 
13848
      /**
13849
       * Find the _Fields constant that matches name, or null if its not found.
13850
       */
13851
      public static _Fields findByName(String name) {
13852
        return byName.get(name);
13853
      }
13854
 
13855
      private final short _thriftId;
13856
      private final String _fieldName;
13857
 
13858
      _Fields(short thriftId, String fieldName) {
13859
        _thriftId = thriftId;
13860
        _fieldName = fieldName;
13861
      }
13862
 
13863
      public short getThriftFieldId() {
13864
        return _thriftId;
13865
      }
13866
 
13867
      public String getFieldName() {
13868
        return _fieldName;
13869
      }
13870
    }
13871
 
13872
    // isset id assignments
13873
 
13874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13875
    static {
13876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13877
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13878
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13881
    }
13882
 
13883
    public getPickupStoreByHotspotId_result() {
13884
    }
13885
 
13886
    public getPickupStoreByHotspotId_result(
13887
      PickupStore success)
13888
    {
13889
      this();
13890
      this.success = success;
13891
    }
13892
 
13893
    /**
13894
     * Performs a deep copy on <i>other</i>.
13895
     */
13896
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13897
      if (other.isSetSuccess()) {
13898
        this.success = new PickupStore(other.success);
13899
      }
13900
    }
13901
 
13902
    public getPickupStoreByHotspotId_result deepCopy() {
13903
      return new getPickupStoreByHotspotId_result(this);
13904
    }
13905
 
13906
    @Override
13907
    public void clear() {
13908
      this.success = null;
13909
    }
13910
 
13911
    public PickupStore getSuccess() {
13912
      return this.success;
13913
    }
13914
 
13915
    public void setSuccess(PickupStore success) {
13916
      this.success = success;
13917
    }
13918
 
13919
    public void unsetSuccess() {
13920
      this.success = null;
13921
    }
13922
 
13923
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13924
    public boolean isSetSuccess() {
13925
      return this.success != null;
13926
    }
13927
 
13928
    public void setSuccessIsSet(boolean value) {
13929
      if (!value) {
13930
        this.success = null;
13931
      }
13932
    }
13933
 
13934
    public void setFieldValue(_Fields field, Object value) {
13935
      switch (field) {
13936
      case SUCCESS:
13937
        if (value == null) {
13938
          unsetSuccess();
13939
        } else {
13940
          setSuccess((PickupStore)value);
13941
        }
13942
        break;
13943
 
13944
      }
13945
    }
13946
 
13947
    public Object getFieldValue(_Fields field) {
13948
      switch (field) {
13949
      case SUCCESS:
13950
        return getSuccess();
13951
 
13952
      }
13953
      throw new IllegalStateException();
13954
    }
13955
 
13956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13957
    public boolean isSet(_Fields field) {
13958
      if (field == null) {
13959
        throw new IllegalArgumentException();
13960
      }
13961
 
13962
      switch (field) {
13963
      case SUCCESS:
13964
        return isSetSuccess();
13965
      }
13966
      throw new IllegalStateException();
13967
    }
13968
 
13969
    @Override
13970
    public boolean equals(Object that) {
13971
      if (that == null)
13972
        return false;
13973
      if (that instanceof getPickupStoreByHotspotId_result)
13974
        return this.equals((getPickupStoreByHotspotId_result)that);
13975
      return false;
13976
    }
13977
 
13978
    public boolean equals(getPickupStoreByHotspotId_result that) {
13979
      if (that == null)
13980
        return false;
13981
 
13982
      boolean this_present_success = true && this.isSetSuccess();
13983
      boolean that_present_success = true && that.isSetSuccess();
13984
      if (this_present_success || that_present_success) {
13985
        if (!(this_present_success && that_present_success))
13986
          return false;
13987
        if (!this.success.equals(that.success))
13988
          return false;
13989
      }
13990
 
13991
      return true;
13992
    }
13993
 
13994
    @Override
13995
    public int hashCode() {
13996
      return 0;
13997
    }
13998
 
13999
    public int compareTo(getPickupStoreByHotspotId_result other) {
14000
      if (!getClass().equals(other.getClass())) {
14001
        return getClass().getName().compareTo(other.getClass().getName());
14002
      }
14003
 
14004
      int lastComparison = 0;
14005
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
14006
 
14007
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14008
      if (lastComparison != 0) {
14009
        return lastComparison;
14010
      }
14011
      if (isSetSuccess()) {
14012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14013
        if (lastComparison != 0) {
14014
          return lastComparison;
14015
        }
14016
      }
14017
      return 0;
14018
    }
14019
 
14020
    public _Fields fieldForId(int fieldId) {
14021
      return _Fields.findByThriftId(fieldId);
14022
    }
14023
 
14024
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14025
      org.apache.thrift.protocol.TField field;
14026
      iprot.readStructBegin();
14027
      while (true)
14028
      {
14029
        field = iprot.readFieldBegin();
14030
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14031
          break;
14032
        }
14033
        switch (field.id) {
14034
          case 0: // SUCCESS
14035
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14036
              this.success = new PickupStore();
14037
              this.success.read(iprot);
14038
            } else { 
14039
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14040
            }
14041
            break;
14042
          default:
14043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14044
        }
14045
        iprot.readFieldEnd();
14046
      }
14047
      iprot.readStructEnd();
14048
      validate();
14049
    }
14050
 
14051
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14052
      oprot.writeStructBegin(STRUCT_DESC);
14053
 
14054
      if (this.isSetSuccess()) {
14055
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14056
        this.success.write(oprot);
14057
        oprot.writeFieldEnd();
14058
      }
14059
      oprot.writeFieldStop();
14060
      oprot.writeStructEnd();
14061
    }
14062
 
14063
    @Override
14064
    public String toString() {
14065
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
14066
      boolean first = true;
14067
 
14068
      sb.append("success:");
14069
      if (this.success == null) {
14070
        sb.append("null");
14071
      } else {
14072
        sb.append(this.success);
14073
      }
14074
      first = false;
14075
      sb.append(")");
14076
      return sb.toString();
14077
    }
14078
 
14079
    public void validate() throws org.apache.thrift.TException {
14080
      // check for required fields
14081
    }
14082
 
14083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14084
      try {
14085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14086
      } catch (org.apache.thrift.TException te) {
14087
        throw new java.io.IOException(te);
14088
      }
14089
    }
14090
 
14091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14092
      try {
14093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14094
      } catch (org.apache.thrift.TException te) {
14095
        throw new java.io.IOException(te);
14096
      }
14097
    }
14098
 
14099
  }
14100
 
6322 amar.kumar 14101
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
14102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
14103
 
14104
    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);
14105
    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);
14106
    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);
14107
    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);
14108
    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);
14109
    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 14110
    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 14111
 
14112
    private long providerId; // required
14113
    private String pincode; // required
14114
    private String destCode; // required
14115
    private boolean exp; // required
14116
    private boolean cod; // required
14117
    private int stationType; // required
6524 rajveer 14118
    private boolean otgAvailable; // required
6322 amar.kumar 14119
 
14120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14122
      PROVIDER_ID((short)1, "providerId"),
14123
      PINCODE((short)2, "pincode"),
14124
      DEST_CODE((short)3, "destCode"),
14125
      EXP((short)4, "exp"),
14126
      COD((short)5, "cod"),
6524 rajveer 14127
      STATION_TYPE((short)6, "stationType"),
14128
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 14129
 
14130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14131
 
14132
      static {
14133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14134
          byName.put(field.getFieldName(), field);
14135
        }
14136
      }
14137
 
14138
      /**
14139
       * Find the _Fields constant that matches fieldId, or null if its not found.
14140
       */
14141
      public static _Fields findByThriftId(int fieldId) {
14142
        switch(fieldId) {
14143
          case 1: // PROVIDER_ID
14144
            return PROVIDER_ID;
14145
          case 2: // PINCODE
14146
            return PINCODE;
14147
          case 3: // DEST_CODE
14148
            return DEST_CODE;
14149
          case 4: // EXP
14150
            return EXP;
14151
          case 5: // COD
14152
            return COD;
14153
          case 6: // STATION_TYPE
14154
            return STATION_TYPE;
6524 rajveer 14155
          case 7: // OTG_AVAILABLE
14156
            return OTG_AVAILABLE;
6322 amar.kumar 14157
          default:
14158
            return null;
14159
        }
14160
      }
14161
 
14162
      /**
14163
       * Find the _Fields constant that matches fieldId, throwing an exception
14164
       * if it is not found.
14165
       */
14166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14167
        _Fields fields = findByThriftId(fieldId);
14168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14169
        return fields;
14170
      }
14171
 
14172
      /**
14173
       * Find the _Fields constant that matches name, or null if its not found.
14174
       */
14175
      public static _Fields findByName(String name) {
14176
        return byName.get(name);
14177
      }
14178
 
14179
      private final short _thriftId;
14180
      private final String _fieldName;
14181
 
14182
      _Fields(short thriftId, String fieldName) {
14183
        _thriftId = thriftId;
14184
        _fieldName = fieldName;
14185
      }
14186
 
14187
      public short getThriftFieldId() {
14188
        return _thriftId;
14189
      }
14190
 
14191
      public String getFieldName() {
14192
        return _fieldName;
14193
      }
14194
    }
14195
 
14196
    // isset id assignments
14197
    private static final int __PROVIDERID_ISSET_ID = 0;
14198
    private static final int __EXP_ISSET_ID = 1;
14199
    private static final int __COD_ISSET_ID = 2;
14200
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 14201
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
14202
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 14203
 
14204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14205
    static {
14206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14207
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14209
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14211
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14213
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14215
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14217
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 14219
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
14223
    }
14224
 
14225
    public addPincode_args() {
14226
    }
14227
 
14228
    public addPincode_args(
14229
      long providerId,
14230
      String pincode,
14231
      String destCode,
14232
      boolean exp,
14233
      boolean cod,
6524 rajveer 14234
      int stationType,
14235
      boolean otgAvailable)
6322 amar.kumar 14236
    {
14237
      this();
14238
      this.providerId = providerId;
14239
      setProviderIdIsSet(true);
14240
      this.pincode = pincode;
14241
      this.destCode = destCode;
14242
      this.exp = exp;
14243
      setExpIsSet(true);
14244
      this.cod = cod;
14245
      setCodIsSet(true);
14246
      this.stationType = stationType;
14247
      setStationTypeIsSet(true);
6524 rajveer 14248
      this.otgAvailable = otgAvailable;
14249
      setOtgAvailableIsSet(true);
6322 amar.kumar 14250
    }
14251
 
14252
    /**
14253
     * Performs a deep copy on <i>other</i>.
14254
     */
14255
    public addPincode_args(addPincode_args other) {
14256
      __isset_bit_vector.clear();
14257
      __isset_bit_vector.or(other.__isset_bit_vector);
14258
      this.providerId = other.providerId;
14259
      if (other.isSetPincode()) {
14260
        this.pincode = other.pincode;
14261
      }
14262
      if (other.isSetDestCode()) {
14263
        this.destCode = other.destCode;
14264
      }
14265
      this.exp = other.exp;
14266
      this.cod = other.cod;
14267
      this.stationType = other.stationType;
6524 rajveer 14268
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14269
    }
14270
 
14271
    public addPincode_args deepCopy() {
14272
      return new addPincode_args(this);
14273
    }
14274
 
14275
    @Override
14276
    public void clear() {
14277
      setProviderIdIsSet(false);
14278
      this.providerId = 0;
14279
      this.pincode = null;
14280
      this.destCode = null;
14281
      setExpIsSet(false);
14282
      this.exp = false;
14283
      setCodIsSet(false);
14284
      this.cod = false;
14285
      setStationTypeIsSet(false);
14286
      this.stationType = 0;
6524 rajveer 14287
      setOtgAvailableIsSet(false);
14288
      this.otgAvailable = false;
6322 amar.kumar 14289
    }
14290
 
14291
    public long getProviderId() {
14292
      return this.providerId;
14293
    }
14294
 
14295
    public void setProviderId(long providerId) {
14296
      this.providerId = providerId;
14297
      setProviderIdIsSet(true);
14298
    }
14299
 
14300
    public void unsetProviderId() {
14301
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14302
    }
14303
 
14304
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14305
    public boolean isSetProviderId() {
14306
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14307
    }
14308
 
14309
    public void setProviderIdIsSet(boolean value) {
14310
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14311
    }
14312
 
14313
    public String getPincode() {
14314
      return this.pincode;
14315
    }
14316
 
14317
    public void setPincode(String pincode) {
14318
      this.pincode = pincode;
14319
    }
14320
 
14321
    public void unsetPincode() {
14322
      this.pincode = null;
14323
    }
14324
 
14325
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14326
    public boolean isSetPincode() {
14327
      return this.pincode != null;
14328
    }
14329
 
14330
    public void setPincodeIsSet(boolean value) {
14331
      if (!value) {
14332
        this.pincode = null;
14333
      }
14334
    }
14335
 
14336
    public String getDestCode() {
14337
      return this.destCode;
14338
    }
14339
 
14340
    public void setDestCode(String destCode) {
14341
      this.destCode = destCode;
14342
    }
14343
 
14344
    public void unsetDestCode() {
14345
      this.destCode = null;
14346
    }
14347
 
14348
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14349
    public boolean isSetDestCode() {
14350
      return this.destCode != null;
14351
    }
14352
 
14353
    public void setDestCodeIsSet(boolean value) {
14354
      if (!value) {
14355
        this.destCode = null;
14356
      }
14357
    }
14358
 
14359
    public boolean isExp() {
14360
      return this.exp;
14361
    }
14362
 
14363
    public void setExp(boolean exp) {
14364
      this.exp = exp;
14365
      setExpIsSet(true);
14366
    }
14367
 
14368
    public void unsetExp() {
14369
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14370
    }
14371
 
14372
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14373
    public boolean isSetExp() {
14374
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14375
    }
14376
 
14377
    public void setExpIsSet(boolean value) {
14378
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14379
    }
14380
 
14381
    public boolean isCod() {
14382
      return this.cod;
14383
    }
14384
 
14385
    public void setCod(boolean cod) {
14386
      this.cod = cod;
14387
      setCodIsSet(true);
14388
    }
14389
 
14390
    public void unsetCod() {
14391
      __isset_bit_vector.clear(__COD_ISSET_ID);
14392
    }
14393
 
14394
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14395
    public boolean isSetCod() {
14396
      return __isset_bit_vector.get(__COD_ISSET_ID);
14397
    }
14398
 
14399
    public void setCodIsSet(boolean value) {
14400
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14401
    }
14402
 
14403
    public int getStationType() {
14404
      return this.stationType;
14405
    }
14406
 
14407
    public void setStationType(int stationType) {
14408
      this.stationType = stationType;
14409
      setStationTypeIsSet(true);
14410
    }
14411
 
14412
    public void unsetStationType() {
14413
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14414
    }
14415
 
14416
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14417
    public boolean isSetStationType() {
14418
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14419
    }
14420
 
14421
    public void setStationTypeIsSet(boolean value) {
14422
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14423
    }
14424
 
6524 rajveer 14425
    public boolean isOtgAvailable() {
14426
      return this.otgAvailable;
14427
    }
14428
 
14429
    public void setOtgAvailable(boolean otgAvailable) {
14430
      this.otgAvailable = otgAvailable;
14431
      setOtgAvailableIsSet(true);
14432
    }
14433
 
14434
    public void unsetOtgAvailable() {
14435
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14436
    }
14437
 
14438
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14439
    public boolean isSetOtgAvailable() {
14440
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14441
    }
14442
 
14443
    public void setOtgAvailableIsSet(boolean value) {
14444
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14445
    }
14446
 
6322 amar.kumar 14447
    public void setFieldValue(_Fields field, Object value) {
14448
      switch (field) {
14449
      case PROVIDER_ID:
14450
        if (value == null) {
14451
          unsetProviderId();
14452
        } else {
14453
          setProviderId((Long)value);
14454
        }
14455
        break;
14456
 
14457
      case PINCODE:
14458
        if (value == null) {
14459
          unsetPincode();
14460
        } else {
14461
          setPincode((String)value);
14462
        }
14463
        break;
14464
 
14465
      case DEST_CODE:
14466
        if (value == null) {
14467
          unsetDestCode();
14468
        } else {
14469
          setDestCode((String)value);
14470
        }
14471
        break;
14472
 
14473
      case EXP:
14474
        if (value == null) {
14475
          unsetExp();
14476
        } else {
14477
          setExp((Boolean)value);
14478
        }
14479
        break;
14480
 
14481
      case COD:
14482
        if (value == null) {
14483
          unsetCod();
14484
        } else {
14485
          setCod((Boolean)value);
14486
        }
14487
        break;
14488
 
14489
      case STATION_TYPE:
14490
        if (value == null) {
14491
          unsetStationType();
14492
        } else {
14493
          setStationType((Integer)value);
14494
        }
14495
        break;
14496
 
6524 rajveer 14497
      case OTG_AVAILABLE:
14498
        if (value == null) {
14499
          unsetOtgAvailable();
14500
        } else {
14501
          setOtgAvailable((Boolean)value);
14502
        }
14503
        break;
14504
 
6322 amar.kumar 14505
      }
14506
    }
14507
 
14508
    public Object getFieldValue(_Fields field) {
14509
      switch (field) {
14510
      case PROVIDER_ID:
14511
        return Long.valueOf(getProviderId());
14512
 
14513
      case PINCODE:
14514
        return getPincode();
14515
 
14516
      case DEST_CODE:
14517
        return getDestCode();
14518
 
14519
      case EXP:
14520
        return Boolean.valueOf(isExp());
14521
 
14522
      case COD:
14523
        return Boolean.valueOf(isCod());
14524
 
14525
      case STATION_TYPE:
14526
        return Integer.valueOf(getStationType());
14527
 
6524 rajveer 14528
      case OTG_AVAILABLE:
14529
        return Boolean.valueOf(isOtgAvailable());
14530
 
6322 amar.kumar 14531
      }
14532
      throw new IllegalStateException();
14533
    }
14534
 
14535
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14536
    public boolean isSet(_Fields field) {
14537
      if (field == null) {
14538
        throw new IllegalArgumentException();
14539
      }
14540
 
14541
      switch (field) {
14542
      case PROVIDER_ID:
14543
        return isSetProviderId();
14544
      case PINCODE:
14545
        return isSetPincode();
14546
      case DEST_CODE:
14547
        return isSetDestCode();
14548
      case EXP:
14549
        return isSetExp();
14550
      case COD:
14551
        return isSetCod();
14552
      case STATION_TYPE:
14553
        return isSetStationType();
6524 rajveer 14554
      case OTG_AVAILABLE:
14555
        return isSetOtgAvailable();
6322 amar.kumar 14556
      }
14557
      throw new IllegalStateException();
14558
    }
14559
 
14560
    @Override
14561
    public boolean equals(Object that) {
14562
      if (that == null)
14563
        return false;
14564
      if (that instanceof addPincode_args)
14565
        return this.equals((addPincode_args)that);
14566
      return false;
14567
    }
14568
 
14569
    public boolean equals(addPincode_args that) {
14570
      if (that == null)
14571
        return false;
14572
 
14573
      boolean this_present_providerId = true;
14574
      boolean that_present_providerId = true;
14575
      if (this_present_providerId || that_present_providerId) {
14576
        if (!(this_present_providerId && that_present_providerId))
14577
          return false;
14578
        if (this.providerId != that.providerId)
14579
          return false;
14580
      }
14581
 
14582
      boolean this_present_pincode = true && this.isSetPincode();
14583
      boolean that_present_pincode = true && that.isSetPincode();
14584
      if (this_present_pincode || that_present_pincode) {
14585
        if (!(this_present_pincode && that_present_pincode))
14586
          return false;
14587
        if (!this.pincode.equals(that.pincode))
14588
          return false;
14589
      }
14590
 
14591
      boolean this_present_destCode = true && this.isSetDestCode();
14592
      boolean that_present_destCode = true && that.isSetDestCode();
14593
      if (this_present_destCode || that_present_destCode) {
14594
        if (!(this_present_destCode && that_present_destCode))
14595
          return false;
14596
        if (!this.destCode.equals(that.destCode))
14597
          return false;
14598
      }
14599
 
14600
      boolean this_present_exp = true;
14601
      boolean that_present_exp = true;
14602
      if (this_present_exp || that_present_exp) {
14603
        if (!(this_present_exp && that_present_exp))
14604
          return false;
14605
        if (this.exp != that.exp)
14606
          return false;
14607
      }
14608
 
14609
      boolean this_present_cod = true;
14610
      boolean that_present_cod = true;
14611
      if (this_present_cod || that_present_cod) {
14612
        if (!(this_present_cod && that_present_cod))
14613
          return false;
14614
        if (this.cod != that.cod)
14615
          return false;
14616
      }
14617
 
14618
      boolean this_present_stationType = true;
14619
      boolean that_present_stationType = true;
14620
      if (this_present_stationType || that_present_stationType) {
14621
        if (!(this_present_stationType && that_present_stationType))
14622
          return false;
14623
        if (this.stationType != that.stationType)
14624
          return false;
14625
      }
14626
 
6524 rajveer 14627
      boolean this_present_otgAvailable = true;
14628
      boolean that_present_otgAvailable = true;
14629
      if (this_present_otgAvailable || that_present_otgAvailable) {
14630
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14631
          return false;
14632
        if (this.otgAvailable != that.otgAvailable)
14633
          return false;
14634
      }
14635
 
6322 amar.kumar 14636
      return true;
14637
    }
14638
 
14639
    @Override
14640
    public int hashCode() {
14641
      return 0;
14642
    }
14643
 
14644
    public int compareTo(addPincode_args other) {
14645
      if (!getClass().equals(other.getClass())) {
14646
        return getClass().getName().compareTo(other.getClass().getName());
14647
      }
14648
 
14649
      int lastComparison = 0;
14650
      addPincode_args typedOther = (addPincode_args)other;
14651
 
14652
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14653
      if (lastComparison != 0) {
14654
        return lastComparison;
14655
      }
14656
      if (isSetProviderId()) {
14657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14658
        if (lastComparison != 0) {
14659
          return lastComparison;
14660
        }
14661
      }
14662
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14663
      if (lastComparison != 0) {
14664
        return lastComparison;
14665
      }
14666
      if (isSetPincode()) {
14667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14668
        if (lastComparison != 0) {
14669
          return lastComparison;
14670
        }
14671
      }
14672
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14673
      if (lastComparison != 0) {
14674
        return lastComparison;
14675
      }
14676
      if (isSetDestCode()) {
14677
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14678
        if (lastComparison != 0) {
14679
          return lastComparison;
14680
        }
14681
      }
14682
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14683
      if (lastComparison != 0) {
14684
        return lastComparison;
14685
      }
14686
      if (isSetExp()) {
14687
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14688
        if (lastComparison != 0) {
14689
          return lastComparison;
14690
        }
14691
      }
14692
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14693
      if (lastComparison != 0) {
14694
        return lastComparison;
14695
      }
14696
      if (isSetCod()) {
14697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14698
        if (lastComparison != 0) {
14699
          return lastComparison;
14700
        }
14701
      }
14702
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14703
      if (lastComparison != 0) {
14704
        return lastComparison;
14705
      }
14706
      if (isSetStationType()) {
14707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14708
        if (lastComparison != 0) {
14709
          return lastComparison;
14710
        }
14711
      }
6524 rajveer 14712
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14713
      if (lastComparison != 0) {
14714
        return lastComparison;
14715
      }
14716
      if (isSetOtgAvailable()) {
14717
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14718
        if (lastComparison != 0) {
14719
          return lastComparison;
14720
        }
14721
      }
6322 amar.kumar 14722
      return 0;
14723
    }
14724
 
14725
    public _Fields fieldForId(int fieldId) {
14726
      return _Fields.findByThriftId(fieldId);
14727
    }
14728
 
14729
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14730
      org.apache.thrift.protocol.TField field;
14731
      iprot.readStructBegin();
14732
      while (true)
14733
      {
14734
        field = iprot.readFieldBegin();
14735
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14736
          break;
14737
        }
14738
        switch (field.id) {
14739
          case 1: // PROVIDER_ID
14740
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14741
              this.providerId = iprot.readI64();
14742
              setProviderIdIsSet(true);
14743
            } else { 
14744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14745
            }
14746
            break;
14747
          case 2: // PINCODE
14748
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14749
              this.pincode = iprot.readString();
14750
            } else { 
14751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14752
            }
14753
            break;
14754
          case 3: // DEST_CODE
14755
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14756
              this.destCode = iprot.readString();
14757
            } else { 
14758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14759
            }
14760
            break;
14761
          case 4: // EXP
14762
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14763
              this.exp = iprot.readBool();
14764
              setExpIsSet(true);
14765
            } else { 
14766
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14767
            }
14768
            break;
14769
          case 5: // COD
14770
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14771
              this.cod = iprot.readBool();
14772
              setCodIsSet(true);
14773
            } else { 
14774
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14775
            }
14776
            break;
14777
          case 6: // STATION_TYPE
14778
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14779
              this.stationType = iprot.readI32();
14780
              setStationTypeIsSet(true);
14781
            } else { 
14782
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14783
            }
14784
            break;
6524 rajveer 14785
          case 7: // OTG_AVAILABLE
14786
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14787
              this.otgAvailable = iprot.readBool();
14788
              setOtgAvailableIsSet(true);
14789
            } else { 
14790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14791
            }
14792
            break;
6322 amar.kumar 14793
          default:
14794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14795
        }
14796
        iprot.readFieldEnd();
14797
      }
14798
      iprot.readStructEnd();
14799
      validate();
14800
    }
14801
 
14802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14803
      validate();
14804
 
14805
      oprot.writeStructBegin(STRUCT_DESC);
14806
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14807
      oprot.writeI64(this.providerId);
14808
      oprot.writeFieldEnd();
14809
      if (this.pincode != null) {
14810
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14811
        oprot.writeString(this.pincode);
14812
        oprot.writeFieldEnd();
14813
      }
14814
      if (this.destCode != null) {
14815
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14816
        oprot.writeString(this.destCode);
14817
        oprot.writeFieldEnd();
14818
      }
14819
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14820
      oprot.writeBool(this.exp);
14821
      oprot.writeFieldEnd();
14822
      oprot.writeFieldBegin(COD_FIELD_DESC);
14823
      oprot.writeBool(this.cod);
14824
      oprot.writeFieldEnd();
14825
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14826
      oprot.writeI32(this.stationType);
14827
      oprot.writeFieldEnd();
6524 rajveer 14828
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14829
      oprot.writeBool(this.otgAvailable);
14830
      oprot.writeFieldEnd();
6322 amar.kumar 14831
      oprot.writeFieldStop();
14832
      oprot.writeStructEnd();
14833
    }
14834
 
14835
    @Override
14836
    public String toString() {
14837
      StringBuilder sb = new StringBuilder("addPincode_args(");
14838
      boolean first = true;
14839
 
14840
      sb.append("providerId:");
14841
      sb.append(this.providerId);
14842
      first = false;
14843
      if (!first) sb.append(", ");
14844
      sb.append("pincode:");
14845
      if (this.pincode == null) {
14846
        sb.append("null");
14847
      } else {
14848
        sb.append(this.pincode);
14849
      }
14850
      first = false;
14851
      if (!first) sb.append(", ");
14852
      sb.append("destCode:");
14853
      if (this.destCode == null) {
14854
        sb.append("null");
14855
      } else {
14856
        sb.append(this.destCode);
14857
      }
14858
      first = false;
14859
      if (!first) sb.append(", ");
14860
      sb.append("exp:");
14861
      sb.append(this.exp);
14862
      first = false;
14863
      if (!first) sb.append(", ");
14864
      sb.append("cod:");
14865
      sb.append(this.cod);
14866
      first = false;
14867
      if (!first) sb.append(", ");
14868
      sb.append("stationType:");
14869
      sb.append(this.stationType);
14870
      first = false;
6524 rajveer 14871
      if (!first) sb.append(", ");
14872
      sb.append("otgAvailable:");
14873
      sb.append(this.otgAvailable);
14874
      first = false;
6322 amar.kumar 14875
      sb.append(")");
14876
      return sb.toString();
14877
    }
14878
 
14879
    public void validate() throws org.apache.thrift.TException {
14880
      // check for required fields
14881
    }
14882
 
14883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14884
      try {
14885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14886
      } catch (org.apache.thrift.TException te) {
14887
        throw new java.io.IOException(te);
14888
      }
14889
    }
14890
 
14891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14892
      try {
14893
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14894
        __isset_bit_vector = new BitSet(1);
14895
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14896
      } catch (org.apache.thrift.TException te) {
14897
        throw new java.io.IOException(te);
14898
      }
14899
    }
14900
 
14901
  }
14902
 
14903
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14904
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14905
 
14906
 
14907
 
14908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14910
;
14911
 
14912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14913
 
14914
      static {
14915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14916
          byName.put(field.getFieldName(), field);
14917
        }
14918
      }
14919
 
14920
      /**
14921
       * Find the _Fields constant that matches fieldId, or null if its not found.
14922
       */
14923
      public static _Fields findByThriftId(int fieldId) {
14924
        switch(fieldId) {
14925
          default:
14926
            return null;
14927
        }
14928
      }
14929
 
14930
      /**
14931
       * Find the _Fields constant that matches fieldId, throwing an exception
14932
       * if it is not found.
14933
       */
14934
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14935
        _Fields fields = findByThriftId(fieldId);
14936
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14937
        return fields;
14938
      }
14939
 
14940
      /**
14941
       * Find the _Fields constant that matches name, or null if its not found.
14942
       */
14943
      public static _Fields findByName(String name) {
14944
        return byName.get(name);
14945
      }
14946
 
14947
      private final short _thriftId;
14948
      private final String _fieldName;
14949
 
14950
      _Fields(short thriftId, String fieldName) {
14951
        _thriftId = thriftId;
14952
        _fieldName = fieldName;
14953
      }
14954
 
14955
      public short getThriftFieldId() {
14956
        return _thriftId;
14957
      }
14958
 
14959
      public String getFieldName() {
14960
        return _fieldName;
14961
      }
14962
    }
14963
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14964
    static {
14965
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14968
    }
14969
 
14970
    public addPincode_result() {
14971
    }
14972
 
14973
    /**
14974
     * Performs a deep copy on <i>other</i>.
14975
     */
14976
    public addPincode_result(addPincode_result other) {
14977
    }
14978
 
14979
    public addPincode_result deepCopy() {
14980
      return new addPincode_result(this);
14981
    }
14982
 
14983
    @Override
14984
    public void clear() {
14985
    }
14986
 
14987
    public void setFieldValue(_Fields field, Object value) {
14988
      switch (field) {
14989
      }
14990
    }
14991
 
14992
    public Object getFieldValue(_Fields field) {
14993
      switch (field) {
14994
      }
14995
      throw new IllegalStateException();
14996
    }
14997
 
14998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14999
    public boolean isSet(_Fields field) {
15000
      if (field == null) {
15001
        throw new IllegalArgumentException();
15002
      }
15003
 
15004
      switch (field) {
15005
      }
15006
      throw new IllegalStateException();
15007
    }
15008
 
15009
    @Override
15010
    public boolean equals(Object that) {
15011
      if (that == null)
15012
        return false;
15013
      if (that instanceof addPincode_result)
15014
        return this.equals((addPincode_result)that);
15015
      return false;
15016
    }
15017
 
15018
    public boolean equals(addPincode_result that) {
15019
      if (that == null)
15020
        return false;
15021
 
15022
      return true;
15023
    }
15024
 
15025
    @Override
15026
    public int hashCode() {
15027
      return 0;
15028
    }
15029
 
15030
    public int compareTo(addPincode_result other) {
15031
      if (!getClass().equals(other.getClass())) {
15032
        return getClass().getName().compareTo(other.getClass().getName());
15033
      }
15034
 
15035
      int lastComparison = 0;
15036
      addPincode_result typedOther = (addPincode_result)other;
15037
 
15038
      return 0;
15039
    }
15040
 
15041
    public _Fields fieldForId(int fieldId) {
15042
      return _Fields.findByThriftId(fieldId);
15043
    }
15044
 
15045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15046
      org.apache.thrift.protocol.TField field;
15047
      iprot.readStructBegin();
15048
      while (true)
15049
      {
15050
        field = iprot.readFieldBegin();
15051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15052
          break;
15053
        }
15054
        switch (field.id) {
15055
          default:
15056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15057
        }
15058
        iprot.readFieldEnd();
15059
      }
15060
      iprot.readStructEnd();
15061
      validate();
15062
    }
15063
 
15064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15065
      oprot.writeStructBegin(STRUCT_DESC);
15066
 
15067
      oprot.writeFieldStop();
15068
      oprot.writeStructEnd();
15069
    }
15070
 
15071
    @Override
15072
    public String toString() {
15073
      StringBuilder sb = new StringBuilder("addPincode_result(");
15074
      boolean first = true;
15075
 
15076
      sb.append(")");
15077
      return sb.toString();
15078
    }
15079
 
15080
    public void validate() throws org.apache.thrift.TException {
15081
      // check for required fields
15082
    }
15083
 
15084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15085
      try {
15086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15087
      } catch (org.apache.thrift.TException te) {
15088
        throw new java.io.IOException(te);
15089
      }
15090
    }
15091
 
15092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15093
      try {
15094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15095
      } catch (org.apache.thrift.TException te) {
15096
        throw new java.io.IOException(te);
15097
      }
15098
    }
15099
 
15100
  }
15101
 
15102
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
15103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
15104
 
15105
    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);
15106
    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);
15107
    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);
15108
    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 15109
    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 15110
 
15111
    private long providerId; // required
15112
    private String pincode; // required
15113
    private boolean exp; // required
15114
    private boolean cod; // required
6524 rajveer 15115
    private boolean otgAvailable; // required
6322 amar.kumar 15116
 
15117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15119
      PROVIDER_ID((short)1, "providerId"),
15120
      PINCODE((short)2, "pincode"),
15121
      EXP((short)3, "exp"),
6524 rajveer 15122
      COD((short)4, "cod"),
15123
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 15124
 
15125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15126
 
15127
      static {
15128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15129
          byName.put(field.getFieldName(), field);
15130
        }
15131
      }
15132
 
15133
      /**
15134
       * Find the _Fields constant that matches fieldId, or null if its not found.
15135
       */
15136
      public static _Fields findByThriftId(int fieldId) {
15137
        switch(fieldId) {
15138
          case 1: // PROVIDER_ID
15139
            return PROVIDER_ID;
15140
          case 2: // PINCODE
15141
            return PINCODE;
15142
          case 3: // EXP
15143
            return EXP;
15144
          case 4: // COD
15145
            return COD;
6524 rajveer 15146
          case 5: // OTG_AVAILABLE
15147
            return OTG_AVAILABLE;
6322 amar.kumar 15148
          default:
15149
            return null;
15150
        }
15151
      }
15152
 
15153
      /**
15154
       * Find the _Fields constant that matches fieldId, throwing an exception
15155
       * if it is not found.
15156
       */
15157
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15158
        _Fields fields = findByThriftId(fieldId);
15159
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15160
        return fields;
15161
      }
15162
 
15163
      /**
15164
       * Find the _Fields constant that matches name, or null if its not found.
15165
       */
15166
      public static _Fields findByName(String name) {
15167
        return byName.get(name);
15168
      }
15169
 
15170
      private final short _thriftId;
15171
      private final String _fieldName;
15172
 
15173
      _Fields(short thriftId, String fieldName) {
15174
        _thriftId = thriftId;
15175
        _fieldName = fieldName;
15176
      }
15177
 
15178
      public short getThriftFieldId() {
15179
        return _thriftId;
15180
      }
15181
 
15182
      public String getFieldName() {
15183
        return _fieldName;
15184
      }
15185
    }
15186
 
15187
    // isset id assignments
15188
    private static final int __PROVIDERID_ISSET_ID = 0;
15189
    private static final int __EXP_ISSET_ID = 1;
15190
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 15191
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
15192
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 15193
 
15194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15195
    static {
15196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15197
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15199
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15201
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15202
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15203
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15204
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 15205
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15206
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 15207
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15208
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
15209
    }
15210
 
15211
    public updatePincode_args() {
15212
    }
15213
 
15214
    public updatePincode_args(
15215
      long providerId,
15216
      String pincode,
15217
      boolean exp,
6524 rajveer 15218
      boolean cod,
15219
      boolean otgAvailable)
6322 amar.kumar 15220
    {
15221
      this();
15222
      this.providerId = providerId;
15223
      setProviderIdIsSet(true);
15224
      this.pincode = pincode;
15225
      this.exp = exp;
15226
      setExpIsSet(true);
15227
      this.cod = cod;
15228
      setCodIsSet(true);
6524 rajveer 15229
      this.otgAvailable = otgAvailable;
15230
      setOtgAvailableIsSet(true);
6322 amar.kumar 15231
    }
15232
 
15233
    /**
15234
     * Performs a deep copy on <i>other</i>.
15235
     */
15236
    public updatePincode_args(updatePincode_args other) {
15237
      __isset_bit_vector.clear();
15238
      __isset_bit_vector.or(other.__isset_bit_vector);
15239
      this.providerId = other.providerId;
15240
      if (other.isSetPincode()) {
15241
        this.pincode = other.pincode;
15242
      }
15243
      this.exp = other.exp;
15244
      this.cod = other.cod;
6524 rajveer 15245
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 15246
    }
15247
 
15248
    public updatePincode_args deepCopy() {
15249
      return new updatePincode_args(this);
15250
    }
15251
 
15252
    @Override
15253
    public void clear() {
15254
      setProviderIdIsSet(false);
15255
      this.providerId = 0;
15256
      this.pincode = null;
15257
      setExpIsSet(false);
15258
      this.exp = false;
15259
      setCodIsSet(false);
15260
      this.cod = false;
6524 rajveer 15261
      setOtgAvailableIsSet(false);
15262
      this.otgAvailable = false;
6322 amar.kumar 15263
    }
15264
 
15265
    public long getProviderId() {
15266
      return this.providerId;
15267
    }
15268
 
15269
    public void setProviderId(long providerId) {
15270
      this.providerId = providerId;
15271
      setProviderIdIsSet(true);
15272
    }
15273
 
15274
    public void unsetProviderId() {
15275
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15276
    }
15277
 
15278
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15279
    public boolean isSetProviderId() {
15280
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15281
    }
15282
 
15283
    public void setProviderIdIsSet(boolean value) {
15284
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15285
    }
15286
 
15287
    public String getPincode() {
15288
      return this.pincode;
15289
    }
15290
 
15291
    public void setPincode(String pincode) {
15292
      this.pincode = pincode;
15293
    }
15294
 
15295
    public void unsetPincode() {
15296
      this.pincode = null;
15297
    }
15298
 
15299
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15300
    public boolean isSetPincode() {
15301
      return this.pincode != null;
15302
    }
15303
 
15304
    public void setPincodeIsSet(boolean value) {
15305
      if (!value) {
15306
        this.pincode = null;
15307
      }
15308
    }
15309
 
15310
    public boolean isExp() {
15311
      return this.exp;
15312
    }
15313
 
15314
    public void setExp(boolean exp) {
15315
      this.exp = exp;
15316
      setExpIsSet(true);
15317
    }
15318
 
15319
    public void unsetExp() {
15320
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15321
    }
15322
 
15323
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15324
    public boolean isSetExp() {
15325
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15326
    }
15327
 
15328
    public void setExpIsSet(boolean value) {
15329
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15330
    }
15331
 
15332
    public boolean isCod() {
15333
      return this.cod;
15334
    }
15335
 
15336
    public void setCod(boolean cod) {
15337
      this.cod = cod;
15338
      setCodIsSet(true);
15339
    }
15340
 
15341
    public void unsetCod() {
15342
      __isset_bit_vector.clear(__COD_ISSET_ID);
15343
    }
15344
 
15345
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15346
    public boolean isSetCod() {
15347
      return __isset_bit_vector.get(__COD_ISSET_ID);
15348
    }
15349
 
15350
    public void setCodIsSet(boolean value) {
15351
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15352
    }
15353
 
6524 rajveer 15354
    public boolean isOtgAvailable() {
15355
      return this.otgAvailable;
15356
    }
15357
 
15358
    public void setOtgAvailable(boolean otgAvailable) {
15359
      this.otgAvailable = otgAvailable;
15360
      setOtgAvailableIsSet(true);
15361
    }
15362
 
15363
    public void unsetOtgAvailable() {
15364
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15365
    }
15366
 
15367
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15368
    public boolean isSetOtgAvailable() {
15369
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15370
    }
15371
 
15372
    public void setOtgAvailableIsSet(boolean value) {
15373
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15374
    }
15375
 
6322 amar.kumar 15376
    public void setFieldValue(_Fields field, Object value) {
15377
      switch (field) {
15378
      case PROVIDER_ID:
15379
        if (value == null) {
15380
          unsetProviderId();
15381
        } else {
15382
          setProviderId((Long)value);
15383
        }
15384
        break;
15385
 
15386
      case PINCODE:
15387
        if (value == null) {
15388
          unsetPincode();
15389
        } else {
15390
          setPincode((String)value);
15391
        }
15392
        break;
15393
 
15394
      case EXP:
15395
        if (value == null) {
15396
          unsetExp();
15397
        } else {
15398
          setExp((Boolean)value);
15399
        }
15400
        break;
15401
 
15402
      case COD:
15403
        if (value == null) {
15404
          unsetCod();
15405
        } else {
15406
          setCod((Boolean)value);
15407
        }
15408
        break;
15409
 
6524 rajveer 15410
      case OTG_AVAILABLE:
15411
        if (value == null) {
15412
          unsetOtgAvailable();
15413
        } else {
15414
          setOtgAvailable((Boolean)value);
15415
        }
15416
        break;
15417
 
6322 amar.kumar 15418
      }
15419
    }
15420
 
15421
    public Object getFieldValue(_Fields field) {
15422
      switch (field) {
15423
      case PROVIDER_ID:
15424
        return Long.valueOf(getProviderId());
15425
 
15426
      case PINCODE:
15427
        return getPincode();
15428
 
15429
      case EXP:
15430
        return Boolean.valueOf(isExp());
15431
 
15432
      case COD:
15433
        return Boolean.valueOf(isCod());
15434
 
6524 rajveer 15435
      case OTG_AVAILABLE:
15436
        return Boolean.valueOf(isOtgAvailable());
15437
 
6322 amar.kumar 15438
      }
15439
      throw new IllegalStateException();
15440
    }
15441
 
15442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15443
    public boolean isSet(_Fields field) {
15444
      if (field == null) {
15445
        throw new IllegalArgumentException();
15446
      }
15447
 
15448
      switch (field) {
15449
      case PROVIDER_ID:
15450
        return isSetProviderId();
15451
      case PINCODE:
15452
        return isSetPincode();
15453
      case EXP:
15454
        return isSetExp();
15455
      case COD:
15456
        return isSetCod();
6524 rajveer 15457
      case OTG_AVAILABLE:
15458
        return isSetOtgAvailable();
6322 amar.kumar 15459
      }
15460
      throw new IllegalStateException();
15461
    }
15462
 
15463
    @Override
15464
    public boolean equals(Object that) {
15465
      if (that == null)
15466
        return false;
15467
      if (that instanceof updatePincode_args)
15468
        return this.equals((updatePincode_args)that);
15469
      return false;
15470
    }
15471
 
15472
    public boolean equals(updatePincode_args that) {
15473
      if (that == null)
15474
        return false;
15475
 
15476
      boolean this_present_providerId = true;
15477
      boolean that_present_providerId = true;
15478
      if (this_present_providerId || that_present_providerId) {
15479
        if (!(this_present_providerId && that_present_providerId))
15480
          return false;
15481
        if (this.providerId != that.providerId)
15482
          return false;
15483
      }
15484
 
15485
      boolean this_present_pincode = true && this.isSetPincode();
15486
      boolean that_present_pincode = true && that.isSetPincode();
15487
      if (this_present_pincode || that_present_pincode) {
15488
        if (!(this_present_pincode && that_present_pincode))
15489
          return false;
15490
        if (!this.pincode.equals(that.pincode))
15491
          return false;
15492
      }
15493
 
15494
      boolean this_present_exp = true;
15495
      boolean that_present_exp = true;
15496
      if (this_present_exp || that_present_exp) {
15497
        if (!(this_present_exp && that_present_exp))
15498
          return false;
15499
        if (this.exp != that.exp)
15500
          return false;
15501
      }
15502
 
15503
      boolean this_present_cod = true;
15504
      boolean that_present_cod = true;
15505
      if (this_present_cod || that_present_cod) {
15506
        if (!(this_present_cod && that_present_cod))
15507
          return false;
15508
        if (this.cod != that.cod)
15509
          return false;
15510
      }
15511
 
6524 rajveer 15512
      boolean this_present_otgAvailable = true;
15513
      boolean that_present_otgAvailable = true;
15514
      if (this_present_otgAvailable || that_present_otgAvailable) {
15515
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15516
          return false;
15517
        if (this.otgAvailable != that.otgAvailable)
15518
          return false;
15519
      }
15520
 
6322 amar.kumar 15521
      return true;
15522
    }
15523
 
15524
    @Override
15525
    public int hashCode() {
15526
      return 0;
15527
    }
15528
 
15529
    public int compareTo(updatePincode_args other) {
15530
      if (!getClass().equals(other.getClass())) {
15531
        return getClass().getName().compareTo(other.getClass().getName());
15532
      }
15533
 
15534
      int lastComparison = 0;
15535
      updatePincode_args typedOther = (updatePincode_args)other;
15536
 
15537
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15538
      if (lastComparison != 0) {
15539
        return lastComparison;
15540
      }
15541
      if (isSetProviderId()) {
15542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15543
        if (lastComparison != 0) {
15544
          return lastComparison;
15545
        }
15546
      }
15547
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15548
      if (lastComparison != 0) {
15549
        return lastComparison;
15550
      }
15551
      if (isSetPincode()) {
15552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15553
        if (lastComparison != 0) {
15554
          return lastComparison;
15555
        }
15556
      }
15557
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15558
      if (lastComparison != 0) {
15559
        return lastComparison;
15560
      }
15561
      if (isSetExp()) {
15562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15563
        if (lastComparison != 0) {
15564
          return lastComparison;
15565
        }
15566
      }
15567
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15568
      if (lastComparison != 0) {
15569
        return lastComparison;
15570
      }
15571
      if (isSetCod()) {
15572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15573
        if (lastComparison != 0) {
15574
          return lastComparison;
15575
        }
15576
      }
6524 rajveer 15577
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15578
      if (lastComparison != 0) {
15579
        return lastComparison;
15580
      }
15581
      if (isSetOtgAvailable()) {
15582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15583
        if (lastComparison != 0) {
15584
          return lastComparison;
15585
        }
15586
      }
6322 amar.kumar 15587
      return 0;
15588
    }
15589
 
15590
    public _Fields fieldForId(int fieldId) {
15591
      return _Fields.findByThriftId(fieldId);
15592
    }
15593
 
15594
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15595
      org.apache.thrift.protocol.TField field;
15596
      iprot.readStructBegin();
15597
      while (true)
15598
      {
15599
        field = iprot.readFieldBegin();
15600
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15601
          break;
15602
        }
15603
        switch (field.id) {
15604
          case 1: // PROVIDER_ID
15605
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15606
              this.providerId = iprot.readI64();
15607
              setProviderIdIsSet(true);
15608
            } else { 
15609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15610
            }
15611
            break;
15612
          case 2: // PINCODE
15613
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15614
              this.pincode = iprot.readString();
15615
            } else { 
15616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15617
            }
15618
            break;
15619
          case 3: // EXP
15620
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15621
              this.exp = iprot.readBool();
15622
              setExpIsSet(true);
15623
            } else { 
15624
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15625
            }
15626
            break;
15627
          case 4: // COD
15628
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15629
              this.cod = iprot.readBool();
15630
              setCodIsSet(true);
15631
            } else { 
15632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15633
            }
15634
            break;
6524 rajveer 15635
          case 5: // OTG_AVAILABLE
15636
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15637
              this.otgAvailable = iprot.readBool();
15638
              setOtgAvailableIsSet(true);
15639
            } else { 
15640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15641
            }
15642
            break;
6322 amar.kumar 15643
          default:
15644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15645
        }
15646
        iprot.readFieldEnd();
15647
      }
15648
      iprot.readStructEnd();
15649
      validate();
15650
    }
15651
 
15652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15653
      validate();
15654
 
15655
      oprot.writeStructBegin(STRUCT_DESC);
15656
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15657
      oprot.writeI64(this.providerId);
15658
      oprot.writeFieldEnd();
15659
      if (this.pincode != null) {
15660
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15661
        oprot.writeString(this.pincode);
15662
        oprot.writeFieldEnd();
15663
      }
15664
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15665
      oprot.writeBool(this.exp);
15666
      oprot.writeFieldEnd();
15667
      oprot.writeFieldBegin(COD_FIELD_DESC);
15668
      oprot.writeBool(this.cod);
15669
      oprot.writeFieldEnd();
6524 rajveer 15670
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15671
      oprot.writeBool(this.otgAvailable);
15672
      oprot.writeFieldEnd();
6322 amar.kumar 15673
      oprot.writeFieldStop();
15674
      oprot.writeStructEnd();
15675
    }
15676
 
15677
    @Override
15678
    public String toString() {
15679
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15680
      boolean first = true;
15681
 
15682
      sb.append("providerId:");
15683
      sb.append(this.providerId);
15684
      first = false;
15685
      if (!first) sb.append(", ");
15686
      sb.append("pincode:");
15687
      if (this.pincode == null) {
15688
        sb.append("null");
15689
      } else {
15690
        sb.append(this.pincode);
15691
      }
15692
      first = false;
15693
      if (!first) sb.append(", ");
15694
      sb.append("exp:");
15695
      sb.append(this.exp);
15696
      first = false;
15697
      if (!first) sb.append(", ");
15698
      sb.append("cod:");
15699
      sb.append(this.cod);
15700
      first = false;
6524 rajveer 15701
      if (!first) sb.append(", ");
15702
      sb.append("otgAvailable:");
15703
      sb.append(this.otgAvailable);
15704
      first = false;
6322 amar.kumar 15705
      sb.append(")");
15706
      return sb.toString();
15707
    }
15708
 
15709
    public void validate() throws org.apache.thrift.TException {
15710
      // check for required fields
15711
    }
15712
 
15713
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15714
      try {
15715
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15716
      } catch (org.apache.thrift.TException te) {
15717
        throw new java.io.IOException(te);
15718
      }
15719
    }
15720
 
15721
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15722
      try {
15723
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15724
        __isset_bit_vector = new BitSet(1);
15725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15726
      } catch (org.apache.thrift.TException te) {
15727
        throw new java.io.IOException(te);
15728
      }
15729
    }
15730
 
15731
  }
15732
 
15733
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15735
 
15736
 
15737
 
15738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15740
;
15741
 
15742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15743
 
15744
      static {
15745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15746
          byName.put(field.getFieldName(), field);
15747
        }
15748
      }
15749
 
15750
      /**
15751
       * Find the _Fields constant that matches fieldId, or null if its not found.
15752
       */
15753
      public static _Fields findByThriftId(int fieldId) {
15754
        switch(fieldId) {
15755
          default:
15756
            return null;
15757
        }
15758
      }
15759
 
15760
      /**
15761
       * Find the _Fields constant that matches fieldId, throwing an exception
15762
       * if it is not found.
15763
       */
15764
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15765
        _Fields fields = findByThriftId(fieldId);
15766
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15767
        return fields;
15768
      }
15769
 
15770
      /**
15771
       * Find the _Fields constant that matches name, or null if its not found.
15772
       */
15773
      public static _Fields findByName(String name) {
15774
        return byName.get(name);
15775
      }
15776
 
15777
      private final short _thriftId;
15778
      private final String _fieldName;
15779
 
15780
      _Fields(short thriftId, String fieldName) {
15781
        _thriftId = thriftId;
15782
        _fieldName = fieldName;
15783
      }
15784
 
15785
      public short getThriftFieldId() {
15786
        return _thriftId;
15787
      }
15788
 
15789
      public String getFieldName() {
15790
        return _fieldName;
15791
      }
15792
    }
15793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15794
    static {
15795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15796
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15797
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15798
    }
15799
 
15800
    public updatePincode_result() {
15801
    }
15802
 
15803
    /**
15804
     * Performs a deep copy on <i>other</i>.
15805
     */
15806
    public updatePincode_result(updatePincode_result other) {
15807
    }
15808
 
15809
    public updatePincode_result deepCopy() {
15810
      return new updatePincode_result(this);
15811
    }
15812
 
15813
    @Override
15814
    public void clear() {
15815
    }
15816
 
15817
    public void setFieldValue(_Fields field, Object value) {
15818
      switch (field) {
15819
      }
15820
    }
15821
 
15822
    public Object getFieldValue(_Fields field) {
15823
      switch (field) {
15824
      }
15825
      throw new IllegalStateException();
15826
    }
15827
 
15828
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15829
    public boolean isSet(_Fields field) {
15830
      if (field == null) {
15831
        throw new IllegalArgumentException();
15832
      }
15833
 
15834
      switch (field) {
15835
      }
15836
      throw new IllegalStateException();
15837
    }
15838
 
15839
    @Override
15840
    public boolean equals(Object that) {
15841
      if (that == null)
15842
        return false;
15843
      if (that instanceof updatePincode_result)
15844
        return this.equals((updatePincode_result)that);
15845
      return false;
15846
    }
15847
 
15848
    public boolean equals(updatePincode_result that) {
15849
      if (that == null)
15850
        return false;
15851
 
15852
      return true;
15853
    }
15854
 
15855
    @Override
15856
    public int hashCode() {
15857
      return 0;
15858
    }
15859
 
15860
    public int compareTo(updatePincode_result other) {
15861
      if (!getClass().equals(other.getClass())) {
15862
        return getClass().getName().compareTo(other.getClass().getName());
15863
      }
15864
 
15865
      int lastComparison = 0;
15866
      updatePincode_result typedOther = (updatePincode_result)other;
15867
 
15868
      return 0;
15869
    }
15870
 
15871
    public _Fields fieldForId(int fieldId) {
15872
      return _Fields.findByThriftId(fieldId);
15873
    }
15874
 
15875
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15876
      org.apache.thrift.protocol.TField field;
15877
      iprot.readStructBegin();
15878
      while (true)
15879
      {
15880
        field = iprot.readFieldBegin();
15881
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15882
          break;
15883
        }
15884
        switch (field.id) {
15885
          default:
15886
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15887
        }
15888
        iprot.readFieldEnd();
15889
      }
15890
      iprot.readStructEnd();
15891
      validate();
15892
    }
15893
 
15894
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15895
      oprot.writeStructBegin(STRUCT_DESC);
15896
 
15897
      oprot.writeFieldStop();
15898
      oprot.writeStructEnd();
15899
    }
15900
 
15901
    @Override
15902
    public String toString() {
15903
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15904
      boolean first = true;
15905
 
15906
      sb.append(")");
15907
      return sb.toString();
15908
    }
15909
 
15910
    public void validate() throws org.apache.thrift.TException {
15911
      // check for required fields
15912
    }
15913
 
15914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15915
      try {
15916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15917
      } catch (org.apache.thrift.TException te) {
15918
        throw new java.io.IOException(te);
15919
      }
15920
    }
15921
 
15922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15923
      try {
15924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15925
      } catch (org.apache.thrift.TException te) {
15926
        throw new java.io.IOException(te);
15927
      }
15928
    }
15929
 
15930
  }
15931
 
7567 rajveer 15932
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15934
 
15935
    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);
15936
    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);
15937
    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 15938
    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 15939
 
15940
    private long providerId; // required
15941
    private boolean cod; // required
15942
    private List<String> awbs; // required
13146 manish.sha 15943
    private long awbUsedFor; // required
7567 rajveer 15944
 
15945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15947
      PROVIDER_ID((short)1, "providerId"),
15948
      COD((short)2, "cod"),
13146 manish.sha 15949
      AWBS((short)3, "awbs"),
15950
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15951
 
15952
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15953
 
15954
      static {
15955
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15956
          byName.put(field.getFieldName(), field);
15957
        }
15958
      }
15959
 
15960
      /**
15961
       * Find the _Fields constant that matches fieldId, or null if its not found.
15962
       */
15963
      public static _Fields findByThriftId(int fieldId) {
15964
        switch(fieldId) {
15965
          case 1: // PROVIDER_ID
15966
            return PROVIDER_ID;
15967
          case 2: // COD
15968
            return COD;
15969
          case 3: // AWBS
15970
            return AWBS;
13146 manish.sha 15971
          case 4: // AWB_USED_FOR
15972
            return AWB_USED_FOR;
7567 rajveer 15973
          default:
15974
            return null;
15975
        }
15976
      }
15977
 
15978
      /**
15979
       * Find the _Fields constant that matches fieldId, throwing an exception
15980
       * if it is not found.
15981
       */
15982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15983
        _Fields fields = findByThriftId(fieldId);
15984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15985
        return fields;
15986
      }
15987
 
15988
      /**
15989
       * Find the _Fields constant that matches name, or null if its not found.
15990
       */
15991
      public static _Fields findByName(String name) {
15992
        return byName.get(name);
15993
      }
15994
 
15995
      private final short _thriftId;
15996
      private final String _fieldName;
15997
 
15998
      _Fields(short thriftId, String fieldName) {
15999
        _thriftId = thriftId;
16000
        _fieldName = fieldName;
16001
      }
16002
 
16003
      public short getThriftFieldId() {
16004
        return _thriftId;
16005
      }
16006
 
16007
      public String getFieldName() {
16008
        return _fieldName;
16009
      }
16010
    }
16011
 
16012
    // isset id assignments
16013
    private static final int __PROVIDERID_ISSET_ID = 0;
16014
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 16015
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
16016
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 16017
 
16018
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16019
    static {
16020
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16021
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16023
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16025
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16026
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16027
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 16028
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16029
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 16030
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16031
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
16032
    }
16033
 
16034
    public addNewAwbs_args() {
16035
    }
16036
 
16037
    public addNewAwbs_args(
16038
      long providerId,
16039
      boolean cod,
13146 manish.sha 16040
      List<String> awbs,
16041
      long awbUsedFor)
7567 rajveer 16042
    {
16043
      this();
16044
      this.providerId = providerId;
16045
      setProviderIdIsSet(true);
16046
      this.cod = cod;
16047
      setCodIsSet(true);
16048
      this.awbs = awbs;
13146 manish.sha 16049
      this.awbUsedFor = awbUsedFor;
16050
      setAwbUsedForIsSet(true);
7567 rajveer 16051
    }
16052
 
16053
    /**
16054
     * Performs a deep copy on <i>other</i>.
16055
     */
16056
    public addNewAwbs_args(addNewAwbs_args other) {
16057
      __isset_bit_vector.clear();
16058
      __isset_bit_vector.or(other.__isset_bit_vector);
16059
      this.providerId = other.providerId;
16060
      this.cod = other.cod;
16061
      if (other.isSetAwbs()) {
16062
        List<String> __this__awbs = new ArrayList<String>();
16063
        for (String other_element : other.awbs) {
16064
          __this__awbs.add(other_element);
16065
        }
16066
        this.awbs = __this__awbs;
16067
      }
13146 manish.sha 16068
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 16069
    }
16070
 
16071
    public addNewAwbs_args deepCopy() {
16072
      return new addNewAwbs_args(this);
16073
    }
16074
 
16075
    @Override
16076
    public void clear() {
16077
      setProviderIdIsSet(false);
16078
      this.providerId = 0;
16079
      setCodIsSet(false);
16080
      this.cod = false;
16081
      this.awbs = null;
13146 manish.sha 16082
      setAwbUsedForIsSet(false);
16083
      this.awbUsedFor = 0;
7567 rajveer 16084
    }
16085
 
16086
    public long getProviderId() {
16087
      return this.providerId;
16088
    }
16089
 
16090
    public void setProviderId(long providerId) {
16091
      this.providerId = providerId;
16092
      setProviderIdIsSet(true);
16093
    }
16094
 
16095
    public void unsetProviderId() {
16096
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
16097
    }
16098
 
16099
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
16100
    public boolean isSetProviderId() {
16101
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
16102
    }
16103
 
16104
    public void setProviderIdIsSet(boolean value) {
16105
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
16106
    }
16107
 
16108
    public boolean isCod() {
16109
      return this.cod;
16110
    }
16111
 
16112
    public void setCod(boolean cod) {
16113
      this.cod = cod;
16114
      setCodIsSet(true);
16115
    }
16116
 
16117
    public void unsetCod() {
16118
      __isset_bit_vector.clear(__COD_ISSET_ID);
16119
    }
16120
 
16121
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
16122
    public boolean isSetCod() {
16123
      return __isset_bit_vector.get(__COD_ISSET_ID);
16124
    }
16125
 
16126
    public void setCodIsSet(boolean value) {
16127
      __isset_bit_vector.set(__COD_ISSET_ID, value);
16128
    }
16129
 
16130
    public int getAwbsSize() {
16131
      return (this.awbs == null) ? 0 : this.awbs.size();
16132
    }
16133
 
16134
    public java.util.Iterator<String> getAwbsIterator() {
16135
      return (this.awbs == null) ? null : this.awbs.iterator();
16136
    }
16137
 
16138
    public void addToAwbs(String elem) {
16139
      if (this.awbs == null) {
16140
        this.awbs = new ArrayList<String>();
16141
      }
16142
      this.awbs.add(elem);
16143
    }
16144
 
16145
    public List<String> getAwbs() {
16146
      return this.awbs;
16147
    }
16148
 
16149
    public void setAwbs(List<String> awbs) {
16150
      this.awbs = awbs;
16151
    }
16152
 
16153
    public void unsetAwbs() {
16154
      this.awbs = null;
16155
    }
16156
 
16157
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
16158
    public boolean isSetAwbs() {
16159
      return this.awbs != null;
16160
    }
16161
 
16162
    public void setAwbsIsSet(boolean value) {
16163
      if (!value) {
16164
        this.awbs = null;
16165
      }
16166
    }
16167
 
13146 manish.sha 16168
    public long getAwbUsedFor() {
16169
      return this.awbUsedFor;
16170
    }
16171
 
16172
    public void setAwbUsedFor(long awbUsedFor) {
16173
      this.awbUsedFor = awbUsedFor;
16174
      setAwbUsedForIsSet(true);
16175
    }
16176
 
16177
    public void unsetAwbUsedFor() {
16178
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
16179
    }
16180
 
16181
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
16182
    public boolean isSetAwbUsedFor() {
16183
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
16184
    }
16185
 
16186
    public void setAwbUsedForIsSet(boolean value) {
16187
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
16188
    }
16189
 
7567 rajveer 16190
    public void setFieldValue(_Fields field, Object value) {
16191
      switch (field) {
16192
      case PROVIDER_ID:
16193
        if (value == null) {
16194
          unsetProviderId();
16195
        } else {
16196
          setProviderId((Long)value);
16197
        }
16198
        break;
16199
 
16200
      case COD:
16201
        if (value == null) {
16202
          unsetCod();
16203
        } else {
16204
          setCod((Boolean)value);
16205
        }
16206
        break;
16207
 
16208
      case AWBS:
16209
        if (value == null) {
16210
          unsetAwbs();
16211
        } else {
16212
          setAwbs((List<String>)value);
16213
        }
16214
        break;
16215
 
13146 manish.sha 16216
      case AWB_USED_FOR:
16217
        if (value == null) {
16218
          unsetAwbUsedFor();
16219
        } else {
16220
          setAwbUsedFor((Long)value);
16221
        }
16222
        break;
16223
 
7567 rajveer 16224
      }
16225
    }
16226
 
16227
    public Object getFieldValue(_Fields field) {
16228
      switch (field) {
16229
      case PROVIDER_ID:
16230
        return Long.valueOf(getProviderId());
16231
 
16232
      case COD:
16233
        return Boolean.valueOf(isCod());
16234
 
16235
      case AWBS:
16236
        return getAwbs();
16237
 
13146 manish.sha 16238
      case AWB_USED_FOR:
16239
        return Long.valueOf(getAwbUsedFor());
16240
 
7567 rajveer 16241
      }
16242
      throw new IllegalStateException();
16243
    }
16244
 
16245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16246
    public boolean isSet(_Fields field) {
16247
      if (field == null) {
16248
        throw new IllegalArgumentException();
16249
      }
16250
 
16251
      switch (field) {
16252
      case PROVIDER_ID:
16253
        return isSetProviderId();
16254
      case COD:
16255
        return isSetCod();
16256
      case AWBS:
16257
        return isSetAwbs();
13146 manish.sha 16258
      case AWB_USED_FOR:
16259
        return isSetAwbUsedFor();
7567 rajveer 16260
      }
16261
      throw new IllegalStateException();
16262
    }
16263
 
16264
    @Override
16265
    public boolean equals(Object that) {
16266
      if (that == null)
16267
        return false;
16268
      if (that instanceof addNewAwbs_args)
16269
        return this.equals((addNewAwbs_args)that);
16270
      return false;
16271
    }
16272
 
16273
    public boolean equals(addNewAwbs_args that) {
16274
      if (that == null)
16275
        return false;
16276
 
16277
      boolean this_present_providerId = true;
16278
      boolean that_present_providerId = true;
16279
      if (this_present_providerId || that_present_providerId) {
16280
        if (!(this_present_providerId && that_present_providerId))
16281
          return false;
16282
        if (this.providerId != that.providerId)
16283
          return false;
16284
      }
16285
 
16286
      boolean this_present_cod = true;
16287
      boolean that_present_cod = true;
16288
      if (this_present_cod || that_present_cod) {
16289
        if (!(this_present_cod && that_present_cod))
16290
          return false;
16291
        if (this.cod != that.cod)
16292
          return false;
16293
      }
16294
 
16295
      boolean this_present_awbs = true && this.isSetAwbs();
16296
      boolean that_present_awbs = true && that.isSetAwbs();
16297
      if (this_present_awbs || that_present_awbs) {
16298
        if (!(this_present_awbs && that_present_awbs))
16299
          return false;
16300
        if (!this.awbs.equals(that.awbs))
16301
          return false;
16302
      }
16303
 
13146 manish.sha 16304
      boolean this_present_awbUsedFor = true;
16305
      boolean that_present_awbUsedFor = true;
16306
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16307
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16308
          return false;
16309
        if (this.awbUsedFor != that.awbUsedFor)
16310
          return false;
16311
      }
16312
 
7567 rajveer 16313
      return true;
16314
    }
16315
 
16316
    @Override
16317
    public int hashCode() {
16318
      return 0;
16319
    }
16320
 
16321
    public int compareTo(addNewAwbs_args other) {
16322
      if (!getClass().equals(other.getClass())) {
16323
        return getClass().getName().compareTo(other.getClass().getName());
16324
      }
16325
 
16326
      int lastComparison = 0;
16327
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16328
 
16329
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16330
      if (lastComparison != 0) {
16331
        return lastComparison;
16332
      }
16333
      if (isSetProviderId()) {
16334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16335
        if (lastComparison != 0) {
16336
          return lastComparison;
16337
        }
16338
      }
16339
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16340
      if (lastComparison != 0) {
16341
        return lastComparison;
16342
      }
16343
      if (isSetCod()) {
16344
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16345
        if (lastComparison != 0) {
16346
          return lastComparison;
16347
        }
16348
      }
16349
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16350
      if (lastComparison != 0) {
16351
        return lastComparison;
16352
      }
16353
      if (isSetAwbs()) {
16354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16355
        if (lastComparison != 0) {
16356
          return lastComparison;
16357
        }
16358
      }
13146 manish.sha 16359
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16360
      if (lastComparison != 0) {
16361
        return lastComparison;
16362
      }
16363
      if (isSetAwbUsedFor()) {
16364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16365
        if (lastComparison != 0) {
16366
          return lastComparison;
16367
        }
16368
      }
7567 rajveer 16369
      return 0;
16370
    }
16371
 
16372
    public _Fields fieldForId(int fieldId) {
16373
      return _Fields.findByThriftId(fieldId);
16374
    }
16375
 
16376
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16377
      org.apache.thrift.protocol.TField field;
16378
      iprot.readStructBegin();
16379
      while (true)
16380
      {
16381
        field = iprot.readFieldBegin();
16382
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16383
          break;
16384
        }
16385
        switch (field.id) {
16386
          case 1: // PROVIDER_ID
16387
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16388
              this.providerId = iprot.readI64();
16389
              setProviderIdIsSet(true);
16390
            } else { 
16391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16392
            }
16393
            break;
16394
          case 2: // COD
16395
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16396
              this.cod = iprot.readBool();
16397
              setCodIsSet(true);
16398
            } else { 
16399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16400
            }
16401
            break;
16402
          case 3: // AWBS
16403
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16404
              {
7792 anupam.sin 16405
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16406
                this.awbs = new ArrayList<String>(_list24.size);
16407
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16408
                {
7792 anupam.sin 16409
                  String _elem26; // required
16410
                  _elem26 = iprot.readString();
16411
                  this.awbs.add(_elem26);
7567 rajveer 16412
                }
16413
                iprot.readListEnd();
16414
              }
16415
            } else { 
16416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16417
            }
16418
            break;
13146 manish.sha 16419
          case 4: // AWB_USED_FOR
16420
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16421
              this.awbUsedFor = iprot.readI64();
16422
              setAwbUsedForIsSet(true);
16423
            } else { 
16424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16425
            }
16426
            break;
7567 rajveer 16427
          default:
16428
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16429
        }
16430
        iprot.readFieldEnd();
16431
      }
16432
      iprot.readStructEnd();
16433
      validate();
16434
    }
16435
 
16436
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16437
      validate();
16438
 
16439
      oprot.writeStructBegin(STRUCT_DESC);
16440
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16441
      oprot.writeI64(this.providerId);
16442
      oprot.writeFieldEnd();
16443
      oprot.writeFieldBegin(COD_FIELD_DESC);
16444
      oprot.writeBool(this.cod);
16445
      oprot.writeFieldEnd();
16446
      if (this.awbs != null) {
16447
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16448
        {
16449
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16450
          for (String _iter27 : this.awbs)
7567 rajveer 16451
          {
7792 anupam.sin 16452
            oprot.writeString(_iter27);
7567 rajveer 16453
          }
16454
          oprot.writeListEnd();
16455
        }
16456
        oprot.writeFieldEnd();
16457
      }
13146 manish.sha 16458
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16459
      oprot.writeI64(this.awbUsedFor);
16460
      oprot.writeFieldEnd();
7567 rajveer 16461
      oprot.writeFieldStop();
16462
      oprot.writeStructEnd();
16463
    }
16464
 
16465
    @Override
16466
    public String toString() {
16467
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16468
      boolean first = true;
16469
 
16470
      sb.append("providerId:");
16471
      sb.append(this.providerId);
16472
      first = false;
16473
      if (!first) sb.append(", ");
16474
      sb.append("cod:");
16475
      sb.append(this.cod);
16476
      first = false;
16477
      if (!first) sb.append(", ");
16478
      sb.append("awbs:");
16479
      if (this.awbs == null) {
16480
        sb.append("null");
16481
      } else {
16482
        sb.append(this.awbs);
16483
      }
16484
      first = false;
13146 manish.sha 16485
      if (!first) sb.append(", ");
16486
      sb.append("awbUsedFor:");
16487
      sb.append(this.awbUsedFor);
16488
      first = false;
7567 rajveer 16489
      sb.append(")");
16490
      return sb.toString();
16491
    }
16492
 
16493
    public void validate() throws org.apache.thrift.TException {
16494
      // check for required fields
16495
    }
16496
 
16497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16498
      try {
16499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16500
      } catch (org.apache.thrift.TException te) {
16501
        throw new java.io.IOException(te);
16502
      }
16503
    }
16504
 
16505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16506
      try {
16507
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16508
        __isset_bit_vector = new BitSet(1);
16509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16510
      } catch (org.apache.thrift.TException te) {
16511
        throw new java.io.IOException(te);
16512
      }
16513
    }
16514
 
16515
  }
16516
 
16517
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16519
 
16520
    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);
16521
 
16522
    private boolean success; // required
16523
 
16524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16526
      SUCCESS((short)0, "success");
16527
 
16528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16529
 
16530
      static {
16531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16532
          byName.put(field.getFieldName(), field);
16533
        }
16534
      }
16535
 
16536
      /**
16537
       * Find the _Fields constant that matches fieldId, or null if its not found.
16538
       */
16539
      public static _Fields findByThriftId(int fieldId) {
16540
        switch(fieldId) {
16541
          case 0: // SUCCESS
16542
            return SUCCESS;
16543
          default:
16544
            return null;
16545
        }
16546
      }
16547
 
16548
      /**
16549
       * Find the _Fields constant that matches fieldId, throwing an exception
16550
       * if it is not found.
16551
       */
16552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16553
        _Fields fields = findByThriftId(fieldId);
16554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16555
        return fields;
16556
      }
16557
 
16558
      /**
16559
       * Find the _Fields constant that matches name, or null if its not found.
16560
       */
16561
      public static _Fields findByName(String name) {
16562
        return byName.get(name);
16563
      }
16564
 
16565
      private final short _thriftId;
16566
      private final String _fieldName;
16567
 
16568
      _Fields(short thriftId, String fieldName) {
16569
        _thriftId = thriftId;
16570
        _fieldName = fieldName;
16571
      }
16572
 
16573
      public short getThriftFieldId() {
16574
        return _thriftId;
16575
      }
16576
 
16577
      public String getFieldName() {
16578
        return _fieldName;
16579
      }
16580
    }
16581
 
16582
    // isset id assignments
16583
    private static final int __SUCCESS_ISSET_ID = 0;
16584
    private BitSet __isset_bit_vector = new BitSet(1);
16585
 
16586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16587
    static {
16588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16589
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16593
    }
16594
 
16595
    public addNewAwbs_result() {
16596
    }
16597
 
16598
    public addNewAwbs_result(
16599
      boolean success)
16600
    {
16601
      this();
16602
      this.success = success;
16603
      setSuccessIsSet(true);
16604
    }
16605
 
16606
    /**
16607
     * Performs a deep copy on <i>other</i>.
16608
     */
16609
    public addNewAwbs_result(addNewAwbs_result other) {
16610
      __isset_bit_vector.clear();
16611
      __isset_bit_vector.or(other.__isset_bit_vector);
16612
      this.success = other.success;
16613
    }
16614
 
16615
    public addNewAwbs_result deepCopy() {
16616
      return new addNewAwbs_result(this);
16617
    }
16618
 
16619
    @Override
16620
    public void clear() {
16621
      setSuccessIsSet(false);
16622
      this.success = false;
16623
    }
16624
 
16625
    public boolean isSuccess() {
16626
      return this.success;
16627
    }
16628
 
16629
    public void setSuccess(boolean success) {
16630
      this.success = success;
16631
      setSuccessIsSet(true);
16632
    }
16633
 
16634
    public void unsetSuccess() {
16635
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16636
    }
16637
 
16638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16639
    public boolean isSetSuccess() {
16640
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16641
    }
16642
 
16643
    public void setSuccessIsSet(boolean value) {
16644
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16645
    }
16646
 
16647
    public void setFieldValue(_Fields field, Object value) {
16648
      switch (field) {
16649
      case SUCCESS:
16650
        if (value == null) {
16651
          unsetSuccess();
16652
        } else {
16653
          setSuccess((Boolean)value);
16654
        }
16655
        break;
16656
 
16657
      }
16658
    }
16659
 
16660
    public Object getFieldValue(_Fields field) {
16661
      switch (field) {
16662
      case SUCCESS:
16663
        return Boolean.valueOf(isSuccess());
16664
 
16665
      }
16666
      throw new IllegalStateException();
16667
    }
16668
 
16669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16670
    public boolean isSet(_Fields field) {
16671
      if (field == null) {
16672
        throw new IllegalArgumentException();
16673
      }
16674
 
16675
      switch (field) {
16676
      case SUCCESS:
16677
        return isSetSuccess();
16678
      }
16679
      throw new IllegalStateException();
16680
    }
16681
 
16682
    @Override
16683
    public boolean equals(Object that) {
16684
      if (that == null)
16685
        return false;
16686
      if (that instanceof addNewAwbs_result)
16687
        return this.equals((addNewAwbs_result)that);
16688
      return false;
16689
    }
16690
 
16691
    public boolean equals(addNewAwbs_result that) {
16692
      if (that == null)
16693
        return false;
16694
 
16695
      boolean this_present_success = true;
16696
      boolean that_present_success = true;
16697
      if (this_present_success || that_present_success) {
16698
        if (!(this_present_success && that_present_success))
16699
          return false;
16700
        if (this.success != that.success)
16701
          return false;
16702
      }
16703
 
16704
      return true;
16705
    }
16706
 
16707
    @Override
16708
    public int hashCode() {
16709
      return 0;
16710
    }
16711
 
16712
    public int compareTo(addNewAwbs_result other) {
16713
      if (!getClass().equals(other.getClass())) {
16714
        return getClass().getName().compareTo(other.getClass().getName());
16715
      }
16716
 
16717
      int lastComparison = 0;
16718
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16719
 
16720
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16721
      if (lastComparison != 0) {
16722
        return lastComparison;
16723
      }
16724
      if (isSetSuccess()) {
16725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16726
        if (lastComparison != 0) {
16727
          return lastComparison;
16728
        }
16729
      }
16730
      return 0;
16731
    }
16732
 
16733
    public _Fields fieldForId(int fieldId) {
16734
      return _Fields.findByThriftId(fieldId);
16735
    }
16736
 
16737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16738
      org.apache.thrift.protocol.TField field;
16739
      iprot.readStructBegin();
16740
      while (true)
16741
      {
16742
        field = iprot.readFieldBegin();
16743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16744
          break;
16745
        }
16746
        switch (field.id) {
16747
          case 0: // SUCCESS
16748
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16749
              this.success = iprot.readBool();
16750
              setSuccessIsSet(true);
16751
            } else { 
16752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16753
            }
16754
            break;
16755
          default:
16756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16757
        }
16758
        iprot.readFieldEnd();
16759
      }
16760
      iprot.readStructEnd();
16761
      validate();
16762
    }
16763
 
16764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16765
      oprot.writeStructBegin(STRUCT_DESC);
16766
 
16767
      if (this.isSetSuccess()) {
16768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16769
        oprot.writeBool(this.success);
16770
        oprot.writeFieldEnd();
16771
      }
16772
      oprot.writeFieldStop();
16773
      oprot.writeStructEnd();
16774
    }
16775
 
16776
    @Override
16777
    public String toString() {
16778
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16779
      boolean first = true;
16780
 
16781
      sb.append("success:");
16782
      sb.append(this.success);
16783
      first = false;
16784
      sb.append(")");
16785
      return sb.toString();
16786
    }
16787
 
16788
    public void validate() throws org.apache.thrift.TException {
16789
      // check for required fields
16790
    }
16791
 
16792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16793
      try {
16794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16795
      } catch (org.apache.thrift.TException te) {
16796
        throw new java.io.IOException(te);
16797
      }
16798
    }
16799
 
16800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16801
      try {
16802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16803
      } catch (org.apache.thrift.TException te) {
16804
        throw new java.io.IOException(te);
16805
      }
16806
    }
16807
 
16808
  }
16809
 
7788 manish.sha 16810
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16812
 
7788 manish.sha 16813
    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);
16814
    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 16815
    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 16816
 
7788 manish.sha 16817
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16818
    private boolean runCompleteUpdate; // required
23123 amit.gupta 16819
    private long provider; // required
7737 manish.sha 16820
 
16821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16823
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
23123 amit.gupta 16824
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate"),
16825
      PROVIDER((short)3, "provider");
7737 manish.sha 16826
 
16827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16828
 
16829
      static {
16830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16831
          byName.put(field.getFieldName(), field);
16832
        }
16833
      }
16834
 
16835
      /**
16836
       * Find the _Fields constant that matches fieldId, or null if its not found.
16837
       */
16838
      public static _Fields findByThriftId(int fieldId) {
16839
        switch(fieldId) {
7788 manish.sha 16840
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16841
            return LOGISTICS_LOCATION_INFO_LIST;
16842
          case 2: // RUN_COMPLETE_UPDATE
16843
            return RUN_COMPLETE_UPDATE;
23123 amit.gupta 16844
          case 3: // PROVIDER
16845
            return PROVIDER;
7737 manish.sha 16846
          default:
16847
            return null;
16848
        }
16849
      }
16850
 
16851
      /**
16852
       * Find the _Fields constant that matches fieldId, throwing an exception
16853
       * if it is not found.
16854
       */
16855
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16856
        _Fields fields = findByThriftId(fieldId);
16857
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16858
        return fields;
16859
      }
16860
 
16861
      /**
16862
       * Find the _Fields constant that matches name, or null if its not found.
16863
       */
16864
      public static _Fields findByName(String name) {
16865
        return byName.get(name);
16866
      }
16867
 
16868
      private final short _thriftId;
16869
      private final String _fieldName;
16870
 
16871
      _Fields(short thriftId, String fieldName) {
16872
        _thriftId = thriftId;
16873
        _fieldName = fieldName;
16874
      }
16875
 
16876
      public short getThriftFieldId() {
16877
        return _thriftId;
16878
      }
16879
 
16880
      public String getFieldName() {
16881
        return _fieldName;
16882
      }
16883
    }
16884
 
16885
    // isset id assignments
7788 manish.sha 16886
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
23123 amit.gupta 16887
    private static final int __PROVIDER_ISSET_ID = 1;
16888
    private BitSet __isset_bit_vector = new BitSet(2);
7737 manish.sha 16889
 
16890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16891
    static {
16892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16893
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16894
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16895
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16896
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16897
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23123 amit.gupta 16898
      tmpMap.put(_Fields.PROVIDER, new org.apache.thrift.meta_data.FieldMetaData("provider", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7737 manish.sha 16900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16902
    }
16903
 
7788 manish.sha 16904
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16905
    }
16906
 
7788 manish.sha 16907
    public runLogisticsLocationInfoUpdate_args(
16908
      List<LogisticsLocationInfo> logisticsLocationInfoList,
23123 amit.gupta 16909
      boolean runCompleteUpdate,
16910
      long provider)
7737 manish.sha 16911
    {
16912
      this();
7788 manish.sha 16913
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16914
      this.runCompleteUpdate = runCompleteUpdate;
16915
      setRunCompleteUpdateIsSet(true);
23123 amit.gupta 16916
      this.provider = provider;
16917
      setProviderIsSet(true);
7737 manish.sha 16918
    }
16919
 
16920
    /**
16921
     * Performs a deep copy on <i>other</i>.
16922
     */
7788 manish.sha 16923
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16924
      __isset_bit_vector.clear();
16925
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16926
      if (other.isSetLogisticsLocationInfoList()) {
16927
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16928
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16929
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16930
        }
16931
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16932
      }
7788 manish.sha 16933
      this.runCompleteUpdate = other.runCompleteUpdate;
23123 amit.gupta 16934
      this.provider = other.provider;
7737 manish.sha 16935
    }
16936
 
7788 manish.sha 16937
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16938
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16939
    }
16940
 
16941
    @Override
16942
    public void clear() {
7788 manish.sha 16943
      this.logisticsLocationInfoList = null;
16944
      setRunCompleteUpdateIsSet(false);
16945
      this.runCompleteUpdate = false;
23123 amit.gupta 16946
      setProviderIsSet(false);
16947
      this.provider = 0;
7737 manish.sha 16948
    }
16949
 
7788 manish.sha 16950
    public int getLogisticsLocationInfoListSize() {
16951
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16952
    }
16953
 
7788 manish.sha 16954
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16955
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16956
    }
16957
 
7788 manish.sha 16958
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16959
      if (this.logisticsLocationInfoList == null) {
16960
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16961
      }
16962
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16963
    }
16964
 
7788 manish.sha 16965
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16966
      return this.logisticsLocationInfoList;
7737 manish.sha 16967
    }
16968
 
7788 manish.sha 16969
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16970
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16971
    }
16972
 
7788 manish.sha 16973
    public void unsetLogisticsLocationInfoList() {
16974
      this.logisticsLocationInfoList = null;
7737 manish.sha 16975
    }
16976
 
7788 manish.sha 16977
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16978
    public boolean isSetLogisticsLocationInfoList() {
16979
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16980
    }
16981
 
7788 manish.sha 16982
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16983
      if (!value) {
16984
        this.logisticsLocationInfoList = null;
16985
      }
7737 manish.sha 16986
    }
16987
 
7788 manish.sha 16988
    public boolean isRunCompleteUpdate() {
16989
      return this.runCompleteUpdate;
7737 manish.sha 16990
    }
16991
 
7788 manish.sha 16992
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16993
      this.runCompleteUpdate = runCompleteUpdate;
16994
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16995
    }
16996
 
7788 manish.sha 16997
    public void unsetRunCompleteUpdate() {
16998
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16999
    }
17000
 
17001
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
17002
    public boolean isSetRunCompleteUpdate() {
17003
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
17004
    }
17005
 
17006
    public void setRunCompleteUpdateIsSet(boolean value) {
17007
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
17008
    }
17009
 
23123 amit.gupta 17010
    public long getProvider() {
17011
      return this.provider;
17012
    }
17013
 
17014
    public void setProvider(long provider) {
17015
      this.provider = provider;
17016
      setProviderIsSet(true);
17017
    }
17018
 
17019
    public void unsetProvider() {
17020
      __isset_bit_vector.clear(__PROVIDER_ISSET_ID);
17021
    }
17022
 
17023
    /** Returns true if field provider is set (has been assigned a value) and false otherwise */
17024
    public boolean isSetProvider() {
17025
      return __isset_bit_vector.get(__PROVIDER_ISSET_ID);
17026
    }
17027
 
17028
    public void setProviderIsSet(boolean value) {
17029
      __isset_bit_vector.set(__PROVIDER_ISSET_ID, value);
17030
    }
17031
 
7737 manish.sha 17032
    public void setFieldValue(_Fields field, Object value) {
17033
      switch (field) {
7788 manish.sha 17034
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 17035
        if (value == null) {
7788 manish.sha 17036
          unsetLogisticsLocationInfoList();
7737 manish.sha 17037
        } else {
7788 manish.sha 17038
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 17039
        }
17040
        break;
17041
 
7788 manish.sha 17042
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 17043
        if (value == null) {
7788 manish.sha 17044
          unsetRunCompleteUpdate();
7737 manish.sha 17045
        } else {
7788 manish.sha 17046
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 17047
        }
17048
        break;
17049
 
23123 amit.gupta 17050
      case PROVIDER:
17051
        if (value == null) {
17052
          unsetProvider();
17053
        } else {
17054
          setProvider((Long)value);
17055
        }
17056
        break;
17057
 
7737 manish.sha 17058
      }
17059
    }
17060
 
17061
    public Object getFieldValue(_Fields field) {
17062
      switch (field) {
7788 manish.sha 17063
      case LOGISTICS_LOCATION_INFO_LIST:
17064
        return getLogisticsLocationInfoList();
7737 manish.sha 17065
 
7788 manish.sha 17066
      case RUN_COMPLETE_UPDATE:
17067
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 17068
 
23123 amit.gupta 17069
      case PROVIDER:
17070
        return Long.valueOf(getProvider());
17071
 
7737 manish.sha 17072
      }
17073
      throw new IllegalStateException();
17074
    }
17075
 
17076
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17077
    public boolean isSet(_Fields field) {
17078
      if (field == null) {
17079
        throw new IllegalArgumentException();
17080
      }
17081
 
17082
      switch (field) {
7788 manish.sha 17083
      case LOGISTICS_LOCATION_INFO_LIST:
17084
        return isSetLogisticsLocationInfoList();
17085
      case RUN_COMPLETE_UPDATE:
17086
        return isSetRunCompleteUpdate();
23123 amit.gupta 17087
      case PROVIDER:
17088
        return isSetProvider();
7737 manish.sha 17089
      }
17090
      throw new IllegalStateException();
17091
    }
17092
 
17093
    @Override
17094
    public boolean equals(Object that) {
17095
      if (that == null)
17096
        return false;
7788 manish.sha 17097
      if (that instanceof runLogisticsLocationInfoUpdate_args)
17098
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 17099
      return false;
17100
    }
17101
 
7788 manish.sha 17102
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 17103
      if (that == null)
17104
        return false;
17105
 
7788 manish.sha 17106
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
17107
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
17108
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
17109
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 17110
          return false;
7788 manish.sha 17111
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 17112
          return false;
17113
      }
17114
 
7788 manish.sha 17115
      boolean this_present_runCompleteUpdate = true;
17116
      boolean that_present_runCompleteUpdate = true;
17117
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
17118
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 17119
          return false;
7788 manish.sha 17120
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 17121
          return false;
17122
      }
17123
 
23123 amit.gupta 17124
      boolean this_present_provider = true;
17125
      boolean that_present_provider = true;
17126
      if (this_present_provider || that_present_provider) {
17127
        if (!(this_present_provider && that_present_provider))
17128
          return false;
17129
        if (this.provider != that.provider)
17130
          return false;
17131
      }
17132
 
7737 manish.sha 17133
      return true;
17134
    }
17135
 
17136
    @Override
17137
    public int hashCode() {
17138
      return 0;
17139
    }
17140
 
7788 manish.sha 17141
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 17142
      if (!getClass().equals(other.getClass())) {
17143
        return getClass().getName().compareTo(other.getClass().getName());
17144
      }
17145
 
17146
      int lastComparison = 0;
7788 manish.sha 17147
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 17148
 
7788 manish.sha 17149
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 17150
      if (lastComparison != 0) {
17151
        return lastComparison;
17152
      }
7788 manish.sha 17153
      if (isSetLogisticsLocationInfoList()) {
17154
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 17155
        if (lastComparison != 0) {
17156
          return lastComparison;
17157
        }
17158
      }
7788 manish.sha 17159
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 17160
      if (lastComparison != 0) {
17161
        return lastComparison;
17162
      }
7788 manish.sha 17163
      if (isSetRunCompleteUpdate()) {
17164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 17165
        if (lastComparison != 0) {
17166
          return lastComparison;
17167
        }
17168
      }
23123 amit.gupta 17169
      lastComparison = Boolean.valueOf(isSetProvider()).compareTo(typedOther.isSetProvider());
17170
      if (lastComparison != 0) {
17171
        return lastComparison;
17172
      }
17173
      if (isSetProvider()) {
17174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.provider, typedOther.provider);
17175
        if (lastComparison != 0) {
17176
          return lastComparison;
17177
        }
17178
      }
7737 manish.sha 17179
      return 0;
17180
    }
17181
 
17182
    public _Fields fieldForId(int fieldId) {
17183
      return _Fields.findByThriftId(fieldId);
17184
    }
17185
 
17186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17187
      org.apache.thrift.protocol.TField field;
17188
      iprot.readStructBegin();
17189
      while (true)
17190
      {
17191
        field = iprot.readFieldBegin();
17192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17193
          break;
17194
        }
17195
        switch (field.id) {
7788 manish.sha 17196
          case 1: // LOGISTICS_LOCATION_INFO_LIST
17197
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17198
              {
7808 anupam.sin 17199
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
17200
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
17201
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 17202
                {
7808 anupam.sin 17203
                  LogisticsLocationInfo _elem30; // required
17204
                  _elem30 = new LogisticsLocationInfo();
17205
                  _elem30.read(iprot);
17206
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 17207
                }
17208
                iprot.readListEnd();
17209
              }
7737 manish.sha 17210
            } else { 
17211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17212
            }
17213
            break;
7788 manish.sha 17214
          case 2: // RUN_COMPLETE_UPDATE
17215
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17216
              this.runCompleteUpdate = iprot.readBool();
17217
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 17218
            } else { 
17219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17220
            }
17221
            break;
23123 amit.gupta 17222
          case 3: // PROVIDER
17223
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17224
              this.provider = iprot.readI64();
17225
              setProviderIsSet(true);
17226
            } else { 
17227
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17228
            }
17229
            break;
7737 manish.sha 17230
          default:
17231
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17232
        }
17233
        iprot.readFieldEnd();
17234
      }
17235
      iprot.readStructEnd();
17236
      validate();
17237
    }
17238
 
17239
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17240
      validate();
17241
 
17242
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 17243
      if (this.logisticsLocationInfoList != null) {
17244
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
17245
        {
17246
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 17247
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 17248
          {
7808 anupam.sin 17249
            _iter31.write(oprot);
7788 manish.sha 17250
          }
17251
          oprot.writeListEnd();
17252
        }
7737 manish.sha 17253
        oprot.writeFieldEnd();
17254
      }
7788 manish.sha 17255
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
17256
      oprot.writeBool(this.runCompleteUpdate);
17257
      oprot.writeFieldEnd();
23123 amit.gupta 17258
      oprot.writeFieldBegin(PROVIDER_FIELD_DESC);
17259
      oprot.writeI64(this.provider);
17260
      oprot.writeFieldEnd();
7737 manish.sha 17261
      oprot.writeFieldStop();
17262
      oprot.writeStructEnd();
17263
    }
17264
 
17265
    @Override
17266
    public String toString() {
7788 manish.sha 17267
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 17268
      boolean first = true;
17269
 
7788 manish.sha 17270
      sb.append("logisticsLocationInfoList:");
17271
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 17272
        sb.append("null");
17273
      } else {
7788 manish.sha 17274
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 17275
      }
17276
      first = false;
7788 manish.sha 17277
      if (!first) sb.append(", ");
17278
      sb.append("runCompleteUpdate:");
17279
      sb.append(this.runCompleteUpdate);
7737 manish.sha 17280
      first = false;
23123 amit.gupta 17281
      if (!first) sb.append(", ");
17282
      sb.append("provider:");
17283
      sb.append(this.provider);
17284
      first = false;
7737 manish.sha 17285
      sb.append(")");
17286
      return sb.toString();
17287
    }
17288
 
17289
    public void validate() throws org.apache.thrift.TException {
17290
      // check for required fields
17291
    }
17292
 
17293
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17294
      try {
17295
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17296
      } catch (org.apache.thrift.TException te) {
17297
        throw new java.io.IOException(te);
17298
      }
17299
    }
17300
 
17301
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17302
      try {
7788 manish.sha 17303
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17304
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 17305
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17306
      } catch (org.apache.thrift.TException te) {
17307
        throw new java.io.IOException(te);
17308
      }
17309
    }
17310
 
17311
  }
17312
 
7788 manish.sha 17313
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
17314
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 17315
 
17316
 
17317
 
17318
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17319
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17320
;
17321
 
17322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17323
 
17324
      static {
17325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17326
          byName.put(field.getFieldName(), field);
17327
        }
17328
      }
17329
 
17330
      /**
17331
       * Find the _Fields constant that matches fieldId, or null if its not found.
17332
       */
17333
      public static _Fields findByThriftId(int fieldId) {
17334
        switch(fieldId) {
17335
          default:
17336
            return null;
17337
        }
17338
      }
17339
 
17340
      /**
17341
       * Find the _Fields constant that matches fieldId, throwing an exception
17342
       * if it is not found.
17343
       */
17344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17345
        _Fields fields = findByThriftId(fieldId);
17346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17347
        return fields;
17348
      }
17349
 
17350
      /**
17351
       * Find the _Fields constant that matches name, or null if its not found.
17352
       */
17353
      public static _Fields findByName(String name) {
17354
        return byName.get(name);
17355
      }
17356
 
17357
      private final short _thriftId;
17358
      private final String _fieldName;
17359
 
17360
      _Fields(short thriftId, String fieldName) {
17361
        _thriftId = thriftId;
17362
        _fieldName = fieldName;
17363
      }
17364
 
17365
      public short getThriftFieldId() {
17366
        return _thriftId;
17367
      }
17368
 
17369
      public String getFieldName() {
17370
        return _fieldName;
17371
      }
17372
    }
17373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17374
    static {
17375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17376
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17377
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17378
    }
17379
 
7788 manish.sha 17380
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17381
    }
17382
 
17383
    /**
17384
     * Performs a deep copy on <i>other</i>.
17385
     */
7788 manish.sha 17386
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17387
    }
17388
 
7788 manish.sha 17389
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17390
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17391
    }
17392
 
17393
    @Override
17394
    public void clear() {
17395
    }
17396
 
17397
    public void setFieldValue(_Fields field, Object value) {
17398
      switch (field) {
17399
      }
17400
    }
17401
 
17402
    public Object getFieldValue(_Fields field) {
17403
      switch (field) {
17404
      }
17405
      throw new IllegalStateException();
17406
    }
17407
 
17408
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17409
    public boolean isSet(_Fields field) {
17410
      if (field == null) {
17411
        throw new IllegalArgumentException();
17412
      }
17413
 
17414
      switch (field) {
17415
      }
17416
      throw new IllegalStateException();
17417
    }
17418
 
17419
    @Override
17420
    public boolean equals(Object that) {
17421
      if (that == null)
17422
        return false;
7788 manish.sha 17423
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17424
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17425
      return false;
17426
    }
17427
 
7788 manish.sha 17428
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17429
      if (that == null)
17430
        return false;
17431
 
17432
      return true;
17433
    }
17434
 
17435
    @Override
17436
    public int hashCode() {
17437
      return 0;
17438
    }
17439
 
7788 manish.sha 17440
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17441
      if (!getClass().equals(other.getClass())) {
17442
        return getClass().getName().compareTo(other.getClass().getName());
17443
      }
17444
 
17445
      int lastComparison = 0;
7788 manish.sha 17446
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17447
 
17448
      return 0;
17449
    }
17450
 
17451
    public _Fields fieldForId(int fieldId) {
17452
      return _Fields.findByThriftId(fieldId);
17453
    }
17454
 
17455
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17456
      org.apache.thrift.protocol.TField field;
17457
      iprot.readStructBegin();
17458
      while (true)
17459
      {
17460
        field = iprot.readFieldBegin();
17461
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17462
          break;
17463
        }
17464
        switch (field.id) {
17465
          default:
17466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17467
        }
17468
        iprot.readFieldEnd();
17469
      }
17470
      iprot.readStructEnd();
17471
      validate();
17472
    }
17473
 
17474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17475
      oprot.writeStructBegin(STRUCT_DESC);
17476
 
17477
      oprot.writeFieldStop();
17478
      oprot.writeStructEnd();
17479
    }
17480
 
17481
    @Override
17482
    public String toString() {
7788 manish.sha 17483
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17484
      boolean first = true;
17485
 
17486
      sb.append(")");
17487
      return sb.toString();
17488
    }
17489
 
17490
    public void validate() throws org.apache.thrift.TException {
17491
      // check for required fields
17492
    }
17493
 
17494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17495
      try {
17496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17497
      } catch (org.apache.thrift.TException te) {
17498
        throw new java.io.IOException(te);
17499
      }
17500
    }
17501
 
17502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17503
      try {
17504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17505
      } catch (org.apache.thrift.TException te) {
17506
        throw new java.io.IOException(te);
17507
      }
17508
    }
17509
 
17510
  }
17511
 
7888 rajveer 17512
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17514
 
17515
    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);
17516
    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);
17517
 
17518
    private long startDate; // required
17519
    private long days; // required
17520
 
17521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17523
      START_DATE((short)1, "startDate"),
17524
      DAYS((short)2, "days");
17525
 
17526
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17527
 
17528
      static {
17529
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17530
          byName.put(field.getFieldName(), field);
17531
        }
17532
      }
17533
 
17534
      /**
17535
       * Find the _Fields constant that matches fieldId, or null if its not found.
17536
       */
17537
      public static _Fields findByThriftId(int fieldId) {
17538
        switch(fieldId) {
17539
          case 1: // START_DATE
17540
            return START_DATE;
17541
          case 2: // DAYS
17542
            return DAYS;
17543
          default:
17544
            return null;
17545
        }
17546
      }
17547
 
17548
      /**
17549
       * Find the _Fields constant that matches fieldId, throwing an exception
17550
       * if it is not found.
17551
       */
17552
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17553
        _Fields fields = findByThriftId(fieldId);
17554
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17555
        return fields;
17556
      }
17557
 
17558
      /**
17559
       * Find the _Fields constant that matches name, or null if its not found.
17560
       */
17561
      public static _Fields findByName(String name) {
17562
        return byName.get(name);
17563
      }
17564
 
17565
      private final short _thriftId;
17566
      private final String _fieldName;
17567
 
17568
      _Fields(short thriftId, String fieldName) {
17569
        _thriftId = thriftId;
17570
        _fieldName = fieldName;
17571
      }
17572
 
17573
      public short getThriftFieldId() {
17574
        return _thriftId;
17575
      }
17576
 
17577
      public String getFieldName() {
17578
        return _fieldName;
17579
      }
17580
    }
17581
 
17582
    // isset id assignments
17583
    private static final int __STARTDATE_ISSET_ID = 0;
17584
    private static final int __DAYS_ISSET_ID = 1;
17585
    private BitSet __isset_bit_vector = new BitSet(2);
17586
 
17587
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17588
    static {
17589
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17590
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17592
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17596
    }
17597
 
17598
    public adjustDeliveryDays_args() {
17599
    }
17600
 
17601
    public adjustDeliveryDays_args(
17602
      long startDate,
17603
      long days)
17604
    {
17605
      this();
17606
      this.startDate = startDate;
17607
      setStartDateIsSet(true);
17608
      this.days = days;
17609
      setDaysIsSet(true);
17610
    }
17611
 
17612
    /**
17613
     * Performs a deep copy on <i>other</i>.
17614
     */
17615
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17616
      __isset_bit_vector.clear();
17617
      __isset_bit_vector.or(other.__isset_bit_vector);
17618
      this.startDate = other.startDate;
17619
      this.days = other.days;
17620
    }
17621
 
17622
    public adjustDeliveryDays_args deepCopy() {
17623
      return new adjustDeliveryDays_args(this);
17624
    }
17625
 
17626
    @Override
17627
    public void clear() {
17628
      setStartDateIsSet(false);
17629
      this.startDate = 0;
17630
      setDaysIsSet(false);
17631
      this.days = 0;
17632
    }
17633
 
17634
    public long getStartDate() {
17635
      return this.startDate;
17636
    }
17637
 
17638
    public void setStartDate(long startDate) {
17639
      this.startDate = startDate;
17640
      setStartDateIsSet(true);
17641
    }
17642
 
17643
    public void unsetStartDate() {
17644
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17645
    }
17646
 
17647
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17648
    public boolean isSetStartDate() {
17649
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17650
    }
17651
 
17652
    public void setStartDateIsSet(boolean value) {
17653
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17654
    }
17655
 
17656
    public long getDays() {
17657
      return this.days;
17658
    }
17659
 
17660
    public void setDays(long days) {
17661
      this.days = days;
17662
      setDaysIsSet(true);
17663
    }
17664
 
17665
    public void unsetDays() {
17666
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17667
    }
17668
 
17669
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17670
    public boolean isSetDays() {
17671
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17672
    }
17673
 
17674
    public void setDaysIsSet(boolean value) {
17675
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17676
    }
17677
 
17678
    public void setFieldValue(_Fields field, Object value) {
17679
      switch (field) {
17680
      case START_DATE:
17681
        if (value == null) {
17682
          unsetStartDate();
17683
        } else {
17684
          setStartDate((Long)value);
17685
        }
17686
        break;
17687
 
17688
      case DAYS:
17689
        if (value == null) {
17690
          unsetDays();
17691
        } else {
17692
          setDays((Long)value);
17693
        }
17694
        break;
17695
 
17696
      }
17697
    }
17698
 
17699
    public Object getFieldValue(_Fields field) {
17700
      switch (field) {
17701
      case START_DATE:
17702
        return Long.valueOf(getStartDate());
17703
 
17704
      case DAYS:
17705
        return Long.valueOf(getDays());
17706
 
17707
      }
17708
      throw new IllegalStateException();
17709
    }
17710
 
17711
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17712
    public boolean isSet(_Fields field) {
17713
      if (field == null) {
17714
        throw new IllegalArgumentException();
17715
      }
17716
 
17717
      switch (field) {
17718
      case START_DATE:
17719
        return isSetStartDate();
17720
      case DAYS:
17721
        return isSetDays();
17722
      }
17723
      throw new IllegalStateException();
17724
    }
17725
 
17726
    @Override
17727
    public boolean equals(Object that) {
17728
      if (that == null)
17729
        return false;
17730
      if (that instanceof adjustDeliveryDays_args)
17731
        return this.equals((adjustDeliveryDays_args)that);
17732
      return false;
17733
    }
17734
 
17735
    public boolean equals(adjustDeliveryDays_args that) {
17736
      if (that == null)
17737
        return false;
17738
 
17739
      boolean this_present_startDate = true;
17740
      boolean that_present_startDate = true;
17741
      if (this_present_startDate || that_present_startDate) {
17742
        if (!(this_present_startDate && that_present_startDate))
17743
          return false;
17744
        if (this.startDate != that.startDate)
17745
          return false;
17746
      }
17747
 
17748
      boolean this_present_days = true;
17749
      boolean that_present_days = true;
17750
      if (this_present_days || that_present_days) {
17751
        if (!(this_present_days && that_present_days))
17752
          return false;
17753
        if (this.days != that.days)
17754
          return false;
17755
      }
17756
 
17757
      return true;
17758
    }
17759
 
17760
    @Override
17761
    public int hashCode() {
17762
      return 0;
17763
    }
17764
 
17765
    public int compareTo(adjustDeliveryDays_args other) {
17766
      if (!getClass().equals(other.getClass())) {
17767
        return getClass().getName().compareTo(other.getClass().getName());
17768
      }
17769
 
17770
      int lastComparison = 0;
17771
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17772
 
17773
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17774
      if (lastComparison != 0) {
17775
        return lastComparison;
17776
      }
17777
      if (isSetStartDate()) {
17778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17779
        if (lastComparison != 0) {
17780
          return lastComparison;
17781
        }
17782
      }
17783
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17784
      if (lastComparison != 0) {
17785
        return lastComparison;
17786
      }
17787
      if (isSetDays()) {
17788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17789
        if (lastComparison != 0) {
17790
          return lastComparison;
17791
        }
17792
      }
17793
      return 0;
17794
    }
17795
 
17796
    public _Fields fieldForId(int fieldId) {
17797
      return _Fields.findByThriftId(fieldId);
17798
    }
17799
 
17800
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17801
      org.apache.thrift.protocol.TField field;
17802
      iprot.readStructBegin();
17803
      while (true)
17804
      {
17805
        field = iprot.readFieldBegin();
17806
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17807
          break;
17808
        }
17809
        switch (field.id) {
17810
          case 1: // START_DATE
17811
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17812
              this.startDate = iprot.readI64();
17813
              setStartDateIsSet(true);
17814
            } else { 
17815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17816
            }
17817
            break;
17818
          case 2: // DAYS
17819
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17820
              this.days = iprot.readI64();
17821
              setDaysIsSet(true);
17822
            } else { 
17823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17824
            }
17825
            break;
17826
          default:
17827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17828
        }
17829
        iprot.readFieldEnd();
17830
      }
17831
      iprot.readStructEnd();
17832
      validate();
17833
    }
17834
 
17835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17836
      validate();
17837
 
17838
      oprot.writeStructBegin(STRUCT_DESC);
17839
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17840
      oprot.writeI64(this.startDate);
17841
      oprot.writeFieldEnd();
17842
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17843
      oprot.writeI64(this.days);
17844
      oprot.writeFieldEnd();
17845
      oprot.writeFieldStop();
17846
      oprot.writeStructEnd();
17847
    }
17848
 
17849
    @Override
17850
    public String toString() {
17851
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17852
      boolean first = true;
17853
 
17854
      sb.append("startDate:");
17855
      sb.append(this.startDate);
17856
      first = false;
17857
      if (!first) sb.append(", ");
17858
      sb.append("days:");
17859
      sb.append(this.days);
17860
      first = false;
17861
      sb.append(")");
17862
      return sb.toString();
17863
    }
17864
 
17865
    public void validate() throws org.apache.thrift.TException {
17866
      // check for required fields
17867
    }
17868
 
17869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17870
      try {
17871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17872
      } catch (org.apache.thrift.TException te) {
17873
        throw new java.io.IOException(te);
17874
      }
17875
    }
17876
 
17877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17878
      try {
17879
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17880
        __isset_bit_vector = new BitSet(1);
17881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17882
      } catch (org.apache.thrift.TException te) {
17883
        throw new java.io.IOException(te);
17884
      }
17885
    }
17886
 
17887
  }
17888
 
17889
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17891
 
17892
    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);
17893
 
17894
    private long success; // required
17895
 
17896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17898
      SUCCESS((short)0, "success");
17899
 
17900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17901
 
17902
      static {
17903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17904
          byName.put(field.getFieldName(), field);
17905
        }
17906
      }
17907
 
17908
      /**
17909
       * Find the _Fields constant that matches fieldId, or null if its not found.
17910
       */
17911
      public static _Fields findByThriftId(int fieldId) {
17912
        switch(fieldId) {
17913
          case 0: // SUCCESS
17914
            return SUCCESS;
17915
          default:
17916
            return null;
17917
        }
17918
      }
17919
 
17920
      /**
17921
       * Find the _Fields constant that matches fieldId, throwing an exception
17922
       * if it is not found.
17923
       */
17924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17925
        _Fields fields = findByThriftId(fieldId);
17926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17927
        return fields;
17928
      }
17929
 
17930
      /**
17931
       * Find the _Fields constant that matches name, or null if its not found.
17932
       */
17933
      public static _Fields findByName(String name) {
17934
        return byName.get(name);
17935
      }
17936
 
17937
      private final short _thriftId;
17938
      private final String _fieldName;
17939
 
17940
      _Fields(short thriftId, String fieldName) {
17941
        _thriftId = thriftId;
17942
        _fieldName = fieldName;
17943
      }
17944
 
17945
      public short getThriftFieldId() {
17946
        return _thriftId;
17947
      }
17948
 
17949
      public String getFieldName() {
17950
        return _fieldName;
17951
      }
17952
    }
17953
 
17954
    // isset id assignments
17955
    private static final int __SUCCESS_ISSET_ID = 0;
17956
    private BitSet __isset_bit_vector = new BitSet(1);
17957
 
17958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17959
    static {
17960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17965
    }
17966
 
17967
    public adjustDeliveryDays_result() {
17968
    }
17969
 
17970
    public adjustDeliveryDays_result(
17971
      long success)
17972
    {
17973
      this();
17974
      this.success = success;
17975
      setSuccessIsSet(true);
17976
    }
17977
 
17978
    /**
17979
     * Performs a deep copy on <i>other</i>.
17980
     */
17981
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17982
      __isset_bit_vector.clear();
17983
      __isset_bit_vector.or(other.__isset_bit_vector);
17984
      this.success = other.success;
17985
    }
17986
 
17987
    public adjustDeliveryDays_result deepCopy() {
17988
      return new adjustDeliveryDays_result(this);
17989
    }
17990
 
17991
    @Override
17992
    public void clear() {
17993
      setSuccessIsSet(false);
17994
      this.success = 0;
17995
    }
17996
 
17997
    public long getSuccess() {
17998
      return this.success;
17999
    }
18000
 
18001
    public void setSuccess(long success) {
18002
      this.success = success;
18003
      setSuccessIsSet(true);
18004
    }
18005
 
18006
    public void unsetSuccess() {
18007
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18008
    }
18009
 
18010
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18011
    public boolean isSetSuccess() {
18012
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18013
    }
18014
 
18015
    public void setSuccessIsSet(boolean value) {
18016
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18017
    }
18018
 
18019
    public void setFieldValue(_Fields field, Object value) {
18020
      switch (field) {
18021
      case SUCCESS:
18022
        if (value == null) {
18023
          unsetSuccess();
18024
        } else {
18025
          setSuccess((Long)value);
18026
        }
18027
        break;
18028
 
18029
      }
18030
    }
18031
 
18032
    public Object getFieldValue(_Fields field) {
18033
      switch (field) {
18034
      case SUCCESS:
18035
        return Long.valueOf(getSuccess());
18036
 
18037
      }
18038
      throw new IllegalStateException();
18039
    }
18040
 
18041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18042
    public boolean isSet(_Fields field) {
18043
      if (field == null) {
18044
        throw new IllegalArgumentException();
18045
      }
18046
 
18047
      switch (field) {
18048
      case SUCCESS:
18049
        return isSetSuccess();
18050
      }
18051
      throw new IllegalStateException();
18052
    }
18053
 
18054
    @Override
18055
    public boolean equals(Object that) {
18056
      if (that == null)
18057
        return false;
18058
      if (that instanceof adjustDeliveryDays_result)
18059
        return this.equals((adjustDeliveryDays_result)that);
18060
      return false;
18061
    }
18062
 
18063
    public boolean equals(adjustDeliveryDays_result that) {
18064
      if (that == null)
18065
        return false;
18066
 
18067
      boolean this_present_success = true;
18068
      boolean that_present_success = true;
18069
      if (this_present_success || that_present_success) {
18070
        if (!(this_present_success && that_present_success))
18071
          return false;
18072
        if (this.success != that.success)
18073
          return false;
18074
      }
18075
 
18076
      return true;
18077
    }
18078
 
18079
    @Override
18080
    public int hashCode() {
18081
      return 0;
18082
    }
18083
 
18084
    public int compareTo(adjustDeliveryDays_result other) {
18085
      if (!getClass().equals(other.getClass())) {
18086
        return getClass().getName().compareTo(other.getClass().getName());
18087
      }
18088
 
18089
      int lastComparison = 0;
18090
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
18091
 
18092
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18093
      if (lastComparison != 0) {
18094
        return lastComparison;
18095
      }
18096
      if (isSetSuccess()) {
18097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18098
        if (lastComparison != 0) {
18099
          return lastComparison;
18100
        }
18101
      }
18102
      return 0;
18103
    }
18104
 
18105
    public _Fields fieldForId(int fieldId) {
18106
      return _Fields.findByThriftId(fieldId);
18107
    }
18108
 
18109
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18110
      org.apache.thrift.protocol.TField field;
18111
      iprot.readStructBegin();
18112
      while (true)
18113
      {
18114
        field = iprot.readFieldBegin();
18115
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18116
          break;
18117
        }
18118
        switch (field.id) {
18119
          case 0: // SUCCESS
18120
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18121
              this.success = iprot.readI64();
18122
              setSuccessIsSet(true);
18123
            } else { 
18124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18125
            }
18126
            break;
18127
          default:
18128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18129
        }
18130
        iprot.readFieldEnd();
18131
      }
18132
      iprot.readStructEnd();
18133
      validate();
18134
    }
18135
 
18136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18137
      oprot.writeStructBegin(STRUCT_DESC);
18138
 
18139
      if (this.isSetSuccess()) {
18140
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18141
        oprot.writeI64(this.success);
18142
        oprot.writeFieldEnd();
18143
      }
18144
      oprot.writeFieldStop();
18145
      oprot.writeStructEnd();
18146
    }
18147
 
18148
    @Override
18149
    public String toString() {
18150
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
18151
      boolean first = true;
18152
 
18153
      sb.append("success:");
18154
      sb.append(this.success);
18155
      first = false;
18156
      sb.append(")");
18157
      return sb.toString();
18158
    }
18159
 
18160
    public void validate() throws org.apache.thrift.TException {
18161
      // check for required fields
18162
    }
18163
 
18164
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18165
      try {
18166
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18167
      } catch (org.apache.thrift.TException te) {
18168
        throw new java.io.IOException(te);
18169
      }
18170
    }
18171
 
18172
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18173
      try {
18174
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18175
      } catch (org.apache.thrift.TException te) {
18176
        throw new java.io.IOException(te);
18177
      }
18178
    }
18179
 
18180
  }
18181
 
12895 manish.sha 18182
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
18183
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
18184
 
18185
    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);
18186
    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);
18187
 
18188
    private String pincode; // required
18189
    private long whLocation; // required
18190
 
18191
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18192
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18193
      PINCODE((short)1, "pincode"),
18194
      WH_LOCATION((short)2, "whLocation");
18195
 
18196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18197
 
18198
      static {
18199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18200
          byName.put(field.getFieldName(), field);
18201
        }
18202
      }
18203
 
18204
      /**
18205
       * Find the _Fields constant that matches fieldId, or null if its not found.
18206
       */
18207
      public static _Fields findByThriftId(int fieldId) {
18208
        switch(fieldId) {
18209
          case 1: // PINCODE
18210
            return PINCODE;
18211
          case 2: // WH_LOCATION
18212
            return WH_LOCATION;
18213
          default:
18214
            return null;
18215
        }
18216
      }
18217
 
18218
      /**
18219
       * Find the _Fields constant that matches fieldId, throwing an exception
18220
       * if it is not found.
18221
       */
18222
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18223
        _Fields fields = findByThriftId(fieldId);
18224
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18225
        return fields;
18226
      }
18227
 
18228
      /**
18229
       * Find the _Fields constant that matches name, or null if its not found.
18230
       */
18231
      public static _Fields findByName(String name) {
18232
        return byName.get(name);
18233
      }
18234
 
18235
      private final short _thriftId;
18236
      private final String _fieldName;
18237
 
18238
      _Fields(short thriftId, String fieldName) {
18239
        _thriftId = thriftId;
18240
        _fieldName = fieldName;
18241
      }
18242
 
18243
      public short getThriftFieldId() {
18244
        return _thriftId;
18245
      }
18246
 
18247
      public String getFieldName() {
18248
        return _fieldName;
18249
      }
18250
    }
18251
 
18252
    // isset id assignments
18253
    private static final int __WHLOCATION_ISSET_ID = 0;
18254
    private BitSet __isset_bit_vector = new BitSet(1);
18255
 
18256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18257
    static {
18258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18259
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18261
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
18265
    }
18266
 
18267
    public getFirstDeliveryEstimateForWhLocation_args() {
18268
    }
18269
 
18270
    public getFirstDeliveryEstimateForWhLocation_args(
18271
      String pincode,
18272
      long whLocation)
18273
    {
18274
      this();
18275
      this.pincode = pincode;
18276
      this.whLocation = whLocation;
18277
      setWhLocationIsSet(true);
18278
    }
18279
 
18280
    /**
18281
     * Performs a deep copy on <i>other</i>.
18282
     */
18283
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
18284
      __isset_bit_vector.clear();
18285
      __isset_bit_vector.or(other.__isset_bit_vector);
18286
      if (other.isSetPincode()) {
18287
        this.pincode = other.pincode;
18288
      }
18289
      this.whLocation = other.whLocation;
18290
    }
18291
 
18292
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
18293
      return new getFirstDeliveryEstimateForWhLocation_args(this);
18294
    }
18295
 
18296
    @Override
18297
    public void clear() {
18298
      this.pincode = null;
18299
      setWhLocationIsSet(false);
18300
      this.whLocation = 0;
18301
    }
18302
 
18303
    public String getPincode() {
18304
      return this.pincode;
18305
    }
18306
 
18307
    public void setPincode(String pincode) {
18308
      this.pincode = pincode;
18309
    }
18310
 
18311
    public void unsetPincode() {
18312
      this.pincode = null;
18313
    }
18314
 
18315
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
18316
    public boolean isSetPincode() {
18317
      return this.pincode != null;
18318
    }
18319
 
18320
    public void setPincodeIsSet(boolean value) {
18321
      if (!value) {
18322
        this.pincode = null;
18323
      }
18324
    }
18325
 
18326
    public long getWhLocation() {
18327
      return this.whLocation;
18328
    }
18329
 
18330
    public void setWhLocation(long whLocation) {
18331
      this.whLocation = whLocation;
18332
      setWhLocationIsSet(true);
18333
    }
18334
 
18335
    public void unsetWhLocation() {
18336
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18337
    }
18338
 
18339
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18340
    public boolean isSetWhLocation() {
18341
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18342
    }
18343
 
18344
    public void setWhLocationIsSet(boolean value) {
18345
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18346
    }
18347
 
18348
    public void setFieldValue(_Fields field, Object value) {
18349
      switch (field) {
18350
      case PINCODE:
18351
        if (value == null) {
18352
          unsetPincode();
18353
        } else {
18354
          setPincode((String)value);
18355
        }
18356
        break;
18357
 
18358
      case WH_LOCATION:
18359
        if (value == null) {
18360
          unsetWhLocation();
18361
        } else {
18362
          setWhLocation((Long)value);
18363
        }
18364
        break;
18365
 
18366
      }
18367
    }
18368
 
18369
    public Object getFieldValue(_Fields field) {
18370
      switch (field) {
18371
      case PINCODE:
18372
        return getPincode();
18373
 
18374
      case WH_LOCATION:
18375
        return Long.valueOf(getWhLocation());
18376
 
18377
      }
18378
      throw new IllegalStateException();
18379
    }
18380
 
18381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18382
    public boolean isSet(_Fields field) {
18383
      if (field == null) {
18384
        throw new IllegalArgumentException();
18385
      }
18386
 
18387
      switch (field) {
18388
      case PINCODE:
18389
        return isSetPincode();
18390
      case WH_LOCATION:
18391
        return isSetWhLocation();
18392
      }
18393
      throw new IllegalStateException();
18394
    }
18395
 
18396
    @Override
18397
    public boolean equals(Object that) {
18398
      if (that == null)
18399
        return false;
18400
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18401
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18402
      return false;
18403
    }
18404
 
18405
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18406
      if (that == null)
18407
        return false;
18408
 
18409
      boolean this_present_pincode = true && this.isSetPincode();
18410
      boolean that_present_pincode = true && that.isSetPincode();
18411
      if (this_present_pincode || that_present_pincode) {
18412
        if (!(this_present_pincode && that_present_pincode))
18413
          return false;
18414
        if (!this.pincode.equals(that.pincode))
18415
          return false;
18416
      }
18417
 
18418
      boolean this_present_whLocation = true;
18419
      boolean that_present_whLocation = true;
18420
      if (this_present_whLocation || that_present_whLocation) {
18421
        if (!(this_present_whLocation && that_present_whLocation))
18422
          return false;
18423
        if (this.whLocation != that.whLocation)
18424
          return false;
18425
      }
18426
 
18427
      return true;
18428
    }
18429
 
18430
    @Override
18431
    public int hashCode() {
18432
      return 0;
18433
    }
18434
 
18435
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18436
      if (!getClass().equals(other.getClass())) {
18437
        return getClass().getName().compareTo(other.getClass().getName());
18438
      }
18439
 
18440
      int lastComparison = 0;
18441
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18442
 
18443
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18444
      if (lastComparison != 0) {
18445
        return lastComparison;
18446
      }
18447
      if (isSetPincode()) {
18448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18449
        if (lastComparison != 0) {
18450
          return lastComparison;
18451
        }
18452
      }
18453
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18454
      if (lastComparison != 0) {
18455
        return lastComparison;
18456
      }
18457
      if (isSetWhLocation()) {
18458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18459
        if (lastComparison != 0) {
18460
          return lastComparison;
18461
        }
18462
      }
18463
      return 0;
18464
    }
18465
 
18466
    public _Fields fieldForId(int fieldId) {
18467
      return _Fields.findByThriftId(fieldId);
18468
    }
18469
 
18470
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18471
      org.apache.thrift.protocol.TField field;
18472
      iprot.readStructBegin();
18473
      while (true)
18474
      {
18475
        field = iprot.readFieldBegin();
18476
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18477
          break;
18478
        }
18479
        switch (field.id) {
18480
          case 1: // PINCODE
18481
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18482
              this.pincode = iprot.readString();
18483
            } else { 
18484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18485
            }
18486
            break;
18487
          case 2: // WH_LOCATION
18488
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18489
              this.whLocation = iprot.readI64();
18490
              setWhLocationIsSet(true);
18491
            } else { 
18492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18493
            }
18494
            break;
18495
          default:
18496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18497
        }
18498
        iprot.readFieldEnd();
18499
      }
18500
      iprot.readStructEnd();
18501
      validate();
18502
    }
18503
 
18504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18505
      validate();
18506
 
18507
      oprot.writeStructBegin(STRUCT_DESC);
18508
      if (this.pincode != null) {
18509
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18510
        oprot.writeString(this.pincode);
18511
        oprot.writeFieldEnd();
18512
      }
18513
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18514
      oprot.writeI64(this.whLocation);
18515
      oprot.writeFieldEnd();
18516
      oprot.writeFieldStop();
18517
      oprot.writeStructEnd();
18518
    }
18519
 
18520
    @Override
18521
    public String toString() {
18522
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18523
      boolean first = true;
18524
 
18525
      sb.append("pincode:");
18526
      if (this.pincode == null) {
18527
        sb.append("null");
18528
      } else {
18529
        sb.append(this.pincode);
18530
      }
18531
      first = false;
18532
      if (!first) sb.append(", ");
18533
      sb.append("whLocation:");
18534
      sb.append(this.whLocation);
18535
      first = false;
18536
      sb.append(")");
18537
      return sb.toString();
18538
    }
18539
 
18540
    public void validate() throws org.apache.thrift.TException {
18541
      // check for required fields
18542
    }
18543
 
18544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18545
      try {
18546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18547
      } catch (org.apache.thrift.TException te) {
18548
        throw new java.io.IOException(te);
18549
      }
18550
    }
18551
 
18552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18553
      try {
18554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18555
        __isset_bit_vector = new BitSet(1);
18556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18557
      } catch (org.apache.thrift.TException te) {
18558
        throw new java.io.IOException(te);
18559
      }
18560
    }
18561
 
18562
  }
18563
 
18564
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18566
 
18567
    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);
18568
 
18569
    private long success; // required
18570
 
18571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18573
      SUCCESS((short)0, "success");
18574
 
18575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18576
 
18577
      static {
18578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18579
          byName.put(field.getFieldName(), field);
18580
        }
18581
      }
18582
 
18583
      /**
18584
       * Find the _Fields constant that matches fieldId, or null if its not found.
18585
       */
18586
      public static _Fields findByThriftId(int fieldId) {
18587
        switch(fieldId) {
18588
          case 0: // SUCCESS
18589
            return SUCCESS;
18590
          default:
18591
            return null;
18592
        }
18593
      }
18594
 
18595
      /**
18596
       * Find the _Fields constant that matches fieldId, throwing an exception
18597
       * if it is not found.
18598
       */
18599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18600
        _Fields fields = findByThriftId(fieldId);
18601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18602
        return fields;
18603
      }
18604
 
18605
      /**
18606
       * Find the _Fields constant that matches name, or null if its not found.
18607
       */
18608
      public static _Fields findByName(String name) {
18609
        return byName.get(name);
18610
      }
18611
 
18612
      private final short _thriftId;
18613
      private final String _fieldName;
18614
 
18615
      _Fields(short thriftId, String fieldName) {
18616
        _thriftId = thriftId;
18617
        _fieldName = fieldName;
18618
      }
18619
 
18620
      public short getThriftFieldId() {
18621
        return _thriftId;
18622
      }
18623
 
18624
      public String getFieldName() {
18625
        return _fieldName;
18626
      }
18627
    }
18628
 
18629
    // isset id assignments
18630
    private static final int __SUCCESS_ISSET_ID = 0;
18631
    private BitSet __isset_bit_vector = new BitSet(1);
18632
 
18633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18634
    static {
18635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18640
    }
18641
 
18642
    public getFirstDeliveryEstimateForWhLocation_result() {
18643
    }
18644
 
18645
    public getFirstDeliveryEstimateForWhLocation_result(
18646
      long success)
18647
    {
18648
      this();
18649
      this.success = success;
18650
      setSuccessIsSet(true);
18651
    }
18652
 
18653
    /**
18654
     * Performs a deep copy on <i>other</i>.
18655
     */
18656
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18657
      __isset_bit_vector.clear();
18658
      __isset_bit_vector.or(other.__isset_bit_vector);
18659
      this.success = other.success;
18660
    }
18661
 
18662
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18663
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18664
    }
18665
 
18666
    @Override
18667
    public void clear() {
18668
      setSuccessIsSet(false);
18669
      this.success = 0;
18670
    }
18671
 
18672
    public long getSuccess() {
18673
      return this.success;
18674
    }
18675
 
18676
    public void setSuccess(long success) {
18677
      this.success = success;
18678
      setSuccessIsSet(true);
18679
    }
18680
 
18681
    public void unsetSuccess() {
18682
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18683
    }
18684
 
18685
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18686
    public boolean isSetSuccess() {
18687
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18688
    }
18689
 
18690
    public void setSuccessIsSet(boolean value) {
18691
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18692
    }
18693
 
18694
    public void setFieldValue(_Fields field, Object value) {
18695
      switch (field) {
18696
      case SUCCESS:
18697
        if (value == null) {
18698
          unsetSuccess();
18699
        } else {
18700
          setSuccess((Long)value);
18701
        }
18702
        break;
18703
 
18704
      }
18705
    }
18706
 
18707
    public Object getFieldValue(_Fields field) {
18708
      switch (field) {
18709
      case SUCCESS:
18710
        return Long.valueOf(getSuccess());
18711
 
18712
      }
18713
      throw new IllegalStateException();
18714
    }
18715
 
18716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18717
    public boolean isSet(_Fields field) {
18718
      if (field == null) {
18719
        throw new IllegalArgumentException();
18720
      }
18721
 
18722
      switch (field) {
18723
      case SUCCESS:
18724
        return isSetSuccess();
18725
      }
18726
      throw new IllegalStateException();
18727
    }
18728
 
18729
    @Override
18730
    public boolean equals(Object that) {
18731
      if (that == null)
18732
        return false;
18733
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18734
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18735
      return false;
18736
    }
18737
 
18738
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18739
      if (that == null)
18740
        return false;
18741
 
18742
      boolean this_present_success = true;
18743
      boolean that_present_success = true;
18744
      if (this_present_success || that_present_success) {
18745
        if (!(this_present_success && that_present_success))
18746
          return false;
18747
        if (this.success != that.success)
18748
          return false;
18749
      }
18750
 
18751
      return true;
18752
    }
18753
 
18754
    @Override
18755
    public int hashCode() {
18756
      return 0;
18757
    }
18758
 
18759
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18760
      if (!getClass().equals(other.getClass())) {
18761
        return getClass().getName().compareTo(other.getClass().getName());
18762
      }
18763
 
18764
      int lastComparison = 0;
18765
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18766
 
18767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18768
      if (lastComparison != 0) {
18769
        return lastComparison;
18770
      }
18771
      if (isSetSuccess()) {
18772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18773
        if (lastComparison != 0) {
18774
          return lastComparison;
18775
        }
18776
      }
18777
      return 0;
18778
    }
18779
 
18780
    public _Fields fieldForId(int fieldId) {
18781
      return _Fields.findByThriftId(fieldId);
18782
    }
18783
 
18784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18785
      org.apache.thrift.protocol.TField field;
18786
      iprot.readStructBegin();
18787
      while (true)
18788
      {
18789
        field = iprot.readFieldBegin();
18790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18791
          break;
18792
        }
18793
        switch (field.id) {
18794
          case 0: // SUCCESS
18795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18796
              this.success = iprot.readI64();
18797
              setSuccessIsSet(true);
18798
            } else { 
18799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18800
            }
18801
            break;
18802
          default:
18803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18804
        }
18805
        iprot.readFieldEnd();
18806
      }
18807
      iprot.readStructEnd();
18808
      validate();
18809
    }
18810
 
18811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18812
      oprot.writeStructBegin(STRUCT_DESC);
18813
 
18814
      if (this.isSetSuccess()) {
18815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18816
        oprot.writeI64(this.success);
18817
        oprot.writeFieldEnd();
18818
      }
18819
      oprot.writeFieldStop();
18820
      oprot.writeStructEnd();
18821
    }
18822
 
18823
    @Override
18824
    public String toString() {
18825
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18826
      boolean first = true;
18827
 
18828
      sb.append("success:");
18829
      sb.append(this.success);
18830
      first = false;
18831
      sb.append(")");
18832
      return sb.toString();
18833
    }
18834
 
18835
    public void validate() throws org.apache.thrift.TException {
18836
      // check for required fields
18837
    }
18838
 
18839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18840
      try {
18841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18842
      } catch (org.apache.thrift.TException te) {
18843
        throw new java.io.IOException(te);
18844
      }
18845
    }
18846
 
18847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18848
      try {
18849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18850
      } catch (org.apache.thrift.TException te) {
18851
        throw new java.io.IOException(te);
18852
      }
18853
    }
18854
 
18855
  }
18856
 
13146 manish.sha 18857
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18859
 
18860
    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);
18861
    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);
18862
    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);
18863
 
18864
    private long providerId; // required
18865
    private DeliveryType type; // required
18866
    private long orderQuantity; // required
18867
 
18868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18870
      PROVIDER_ID((short)1, "providerId"),
18871
      /**
18872
       * 
18873
       * @see DeliveryType
18874
       */
18875
      TYPE((short)2, "type"),
18876
      ORDER_QUANTITY((short)3, "orderQuantity");
18877
 
18878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18879
 
18880
      static {
18881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18882
          byName.put(field.getFieldName(), field);
18883
        }
18884
      }
18885
 
18886
      /**
18887
       * Find the _Fields constant that matches fieldId, or null if its not found.
18888
       */
18889
      public static _Fields findByThriftId(int fieldId) {
18890
        switch(fieldId) {
18891
          case 1: // PROVIDER_ID
18892
            return PROVIDER_ID;
18893
          case 2: // TYPE
18894
            return TYPE;
18895
          case 3: // ORDER_QUANTITY
18896
            return ORDER_QUANTITY;
18897
          default:
18898
            return null;
18899
        }
18900
      }
18901
 
18902
      /**
18903
       * Find the _Fields constant that matches fieldId, throwing an exception
18904
       * if it is not found.
18905
       */
18906
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18907
        _Fields fields = findByThriftId(fieldId);
18908
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18909
        return fields;
18910
      }
18911
 
18912
      /**
18913
       * Find the _Fields constant that matches name, or null if its not found.
18914
       */
18915
      public static _Fields findByName(String name) {
18916
        return byName.get(name);
18917
      }
18918
 
18919
      private final short _thriftId;
18920
      private final String _fieldName;
18921
 
18922
      _Fields(short thriftId, String fieldName) {
18923
        _thriftId = thriftId;
18924
        _fieldName = fieldName;
18925
      }
18926
 
18927
      public short getThriftFieldId() {
18928
        return _thriftId;
18929
      }
18930
 
18931
      public String getFieldName() {
18932
        return _fieldName;
18933
      }
18934
    }
18935
 
18936
    // isset id assignments
18937
    private static final int __PROVIDERID_ISSET_ID = 0;
18938
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18939
    private BitSet __isset_bit_vector = new BitSet(2);
18940
 
18941
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18942
    static {
18943
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18944
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18946
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18947
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18948
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18949
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18950
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18951
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18952
    }
18953
 
18954
    public getNewEmptyAwb_args() {
18955
    }
18956
 
18957
    public getNewEmptyAwb_args(
18958
      long providerId,
18959
      DeliveryType type,
18960
      long orderQuantity)
18961
    {
18962
      this();
18963
      this.providerId = providerId;
18964
      setProviderIdIsSet(true);
18965
      this.type = type;
18966
      this.orderQuantity = orderQuantity;
18967
      setOrderQuantityIsSet(true);
18968
    }
18969
 
18970
    /**
18971
     * Performs a deep copy on <i>other</i>.
18972
     */
18973
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18974
      __isset_bit_vector.clear();
18975
      __isset_bit_vector.or(other.__isset_bit_vector);
18976
      this.providerId = other.providerId;
18977
      if (other.isSetType()) {
18978
        this.type = other.type;
18979
      }
18980
      this.orderQuantity = other.orderQuantity;
18981
    }
18982
 
18983
    public getNewEmptyAwb_args deepCopy() {
18984
      return new getNewEmptyAwb_args(this);
18985
    }
18986
 
18987
    @Override
18988
    public void clear() {
18989
      setProviderIdIsSet(false);
18990
      this.providerId = 0;
18991
      this.type = null;
18992
      setOrderQuantityIsSet(false);
18993
      this.orderQuantity = 0;
18994
    }
18995
 
18996
    public long getProviderId() {
18997
      return this.providerId;
18998
    }
18999
 
19000
    public void setProviderId(long providerId) {
19001
      this.providerId = providerId;
19002
      setProviderIdIsSet(true);
19003
    }
19004
 
19005
    public void unsetProviderId() {
19006
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19007
    }
19008
 
19009
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19010
    public boolean isSetProviderId() {
19011
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19012
    }
19013
 
19014
    public void setProviderIdIsSet(boolean value) {
19015
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19016
    }
19017
 
19018
    /**
19019
     * 
19020
     * @see DeliveryType
19021
     */
19022
    public DeliveryType getType() {
19023
      return this.type;
19024
    }
19025
 
19026
    /**
19027
     * 
19028
     * @see DeliveryType
19029
     */
19030
    public void setType(DeliveryType type) {
19031
      this.type = type;
19032
    }
19033
 
19034
    public void unsetType() {
19035
      this.type = null;
19036
    }
19037
 
19038
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
19039
    public boolean isSetType() {
19040
      return this.type != null;
19041
    }
19042
 
19043
    public void setTypeIsSet(boolean value) {
19044
      if (!value) {
19045
        this.type = null;
19046
      }
19047
    }
19048
 
19049
    public long getOrderQuantity() {
19050
      return this.orderQuantity;
19051
    }
19052
 
19053
    public void setOrderQuantity(long orderQuantity) {
19054
      this.orderQuantity = orderQuantity;
19055
      setOrderQuantityIsSet(true);
19056
    }
19057
 
19058
    public void unsetOrderQuantity() {
19059
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
19060
    }
19061
 
19062
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
19063
    public boolean isSetOrderQuantity() {
19064
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
19065
    }
19066
 
19067
    public void setOrderQuantityIsSet(boolean value) {
19068
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
19069
    }
19070
 
19071
    public void setFieldValue(_Fields field, Object value) {
19072
      switch (field) {
19073
      case PROVIDER_ID:
19074
        if (value == null) {
19075
          unsetProviderId();
19076
        } else {
19077
          setProviderId((Long)value);
19078
        }
19079
        break;
19080
 
19081
      case TYPE:
19082
        if (value == null) {
19083
          unsetType();
19084
        } else {
19085
          setType((DeliveryType)value);
19086
        }
19087
        break;
19088
 
19089
      case ORDER_QUANTITY:
19090
        if (value == null) {
19091
          unsetOrderQuantity();
19092
        } else {
19093
          setOrderQuantity((Long)value);
19094
        }
19095
        break;
19096
 
19097
      }
19098
    }
19099
 
19100
    public Object getFieldValue(_Fields field) {
19101
      switch (field) {
19102
      case PROVIDER_ID:
19103
        return Long.valueOf(getProviderId());
19104
 
19105
      case TYPE:
19106
        return getType();
19107
 
19108
      case ORDER_QUANTITY:
19109
        return Long.valueOf(getOrderQuantity());
19110
 
19111
      }
19112
      throw new IllegalStateException();
19113
    }
19114
 
19115
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19116
    public boolean isSet(_Fields field) {
19117
      if (field == null) {
19118
        throw new IllegalArgumentException();
19119
      }
19120
 
19121
      switch (field) {
19122
      case PROVIDER_ID:
19123
        return isSetProviderId();
19124
      case TYPE:
19125
        return isSetType();
19126
      case ORDER_QUANTITY:
19127
        return isSetOrderQuantity();
19128
      }
19129
      throw new IllegalStateException();
19130
    }
19131
 
19132
    @Override
19133
    public boolean equals(Object that) {
19134
      if (that == null)
19135
        return false;
19136
      if (that instanceof getNewEmptyAwb_args)
19137
        return this.equals((getNewEmptyAwb_args)that);
19138
      return false;
19139
    }
19140
 
19141
    public boolean equals(getNewEmptyAwb_args that) {
19142
      if (that == null)
19143
        return false;
19144
 
19145
      boolean this_present_providerId = true;
19146
      boolean that_present_providerId = true;
19147
      if (this_present_providerId || that_present_providerId) {
19148
        if (!(this_present_providerId && that_present_providerId))
19149
          return false;
19150
        if (this.providerId != that.providerId)
19151
          return false;
19152
      }
19153
 
19154
      boolean this_present_type = true && this.isSetType();
19155
      boolean that_present_type = true && that.isSetType();
19156
      if (this_present_type || that_present_type) {
19157
        if (!(this_present_type && that_present_type))
19158
          return false;
19159
        if (!this.type.equals(that.type))
19160
          return false;
19161
      }
19162
 
19163
      boolean this_present_orderQuantity = true;
19164
      boolean that_present_orderQuantity = true;
19165
      if (this_present_orderQuantity || that_present_orderQuantity) {
19166
        if (!(this_present_orderQuantity && that_present_orderQuantity))
19167
          return false;
19168
        if (this.orderQuantity != that.orderQuantity)
19169
          return false;
19170
      }
19171
 
19172
      return true;
19173
    }
19174
 
19175
    @Override
19176
    public int hashCode() {
19177
      return 0;
19178
    }
19179
 
19180
    public int compareTo(getNewEmptyAwb_args other) {
19181
      if (!getClass().equals(other.getClass())) {
19182
        return getClass().getName().compareTo(other.getClass().getName());
19183
      }
19184
 
19185
      int lastComparison = 0;
19186
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
19187
 
19188
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19189
      if (lastComparison != 0) {
19190
        return lastComparison;
19191
      }
19192
      if (isSetProviderId()) {
19193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19194
        if (lastComparison != 0) {
19195
          return lastComparison;
19196
        }
19197
      }
19198
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
19199
      if (lastComparison != 0) {
19200
        return lastComparison;
19201
      }
19202
      if (isSetType()) {
19203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
19204
        if (lastComparison != 0) {
19205
          return lastComparison;
19206
        }
19207
      }
19208
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
19209
      if (lastComparison != 0) {
19210
        return lastComparison;
19211
      }
19212
      if (isSetOrderQuantity()) {
19213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
19214
        if (lastComparison != 0) {
19215
          return lastComparison;
19216
        }
19217
      }
19218
      return 0;
19219
    }
19220
 
19221
    public _Fields fieldForId(int fieldId) {
19222
      return _Fields.findByThriftId(fieldId);
19223
    }
19224
 
19225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19226
      org.apache.thrift.protocol.TField field;
19227
      iprot.readStructBegin();
19228
      while (true)
19229
      {
19230
        field = iprot.readFieldBegin();
19231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19232
          break;
19233
        }
19234
        switch (field.id) {
19235
          case 1: // PROVIDER_ID
19236
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19237
              this.providerId = iprot.readI64();
19238
              setProviderIdIsSet(true);
19239
            } else { 
19240
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19241
            }
19242
            break;
19243
          case 2: // TYPE
19244
            if (field.type == org.apache.thrift.protocol.TType.I32) {
19245
              this.type = DeliveryType.findByValue(iprot.readI32());
19246
            } else { 
19247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19248
            }
19249
            break;
19250
          case 3: // ORDER_QUANTITY
19251
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19252
              this.orderQuantity = iprot.readI64();
19253
              setOrderQuantityIsSet(true);
19254
            } else { 
19255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19256
            }
19257
            break;
19258
          default:
19259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19260
        }
19261
        iprot.readFieldEnd();
19262
      }
19263
      iprot.readStructEnd();
19264
      validate();
19265
    }
19266
 
19267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19268
      validate();
19269
 
19270
      oprot.writeStructBegin(STRUCT_DESC);
19271
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19272
      oprot.writeI64(this.providerId);
19273
      oprot.writeFieldEnd();
19274
      if (this.type != null) {
19275
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
19276
        oprot.writeI32(this.type.getValue());
19277
        oprot.writeFieldEnd();
19278
      }
19279
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
19280
      oprot.writeI64(this.orderQuantity);
19281
      oprot.writeFieldEnd();
19282
      oprot.writeFieldStop();
19283
      oprot.writeStructEnd();
19284
    }
19285
 
19286
    @Override
19287
    public String toString() {
19288
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
19289
      boolean first = true;
19290
 
19291
      sb.append("providerId:");
19292
      sb.append(this.providerId);
19293
      first = false;
19294
      if (!first) sb.append(", ");
19295
      sb.append("type:");
19296
      if (this.type == null) {
19297
        sb.append("null");
19298
      } else {
19299
        sb.append(this.type);
19300
      }
19301
      first = false;
19302
      if (!first) sb.append(", ");
19303
      sb.append("orderQuantity:");
19304
      sb.append(this.orderQuantity);
19305
      first = false;
19306
      sb.append(")");
19307
      return sb.toString();
19308
    }
19309
 
19310
    public void validate() throws org.apache.thrift.TException {
19311
      // check for required fields
19312
    }
19313
 
19314
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19315
      try {
19316
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19317
      } catch (org.apache.thrift.TException te) {
19318
        throw new java.io.IOException(te);
19319
      }
19320
    }
19321
 
19322
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19323
      try {
19324
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19325
        __isset_bit_vector = new BitSet(1);
19326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19327
      } catch (org.apache.thrift.TException te) {
19328
        throw new java.io.IOException(te);
19329
      }
19330
    }
19331
 
19332
  }
19333
 
19334
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19336
 
19337
    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);
19338
    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);
19339
 
19340
    private String success; // required
19341
    private LogisticsServiceException se; // required
19342
 
19343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19345
      SUCCESS((short)0, "success"),
19346
      SE((short)1, "se");
19347
 
19348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19349
 
19350
      static {
19351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19352
          byName.put(field.getFieldName(), field);
19353
        }
19354
      }
19355
 
19356
      /**
19357
       * Find the _Fields constant that matches fieldId, or null if its not found.
19358
       */
19359
      public static _Fields findByThriftId(int fieldId) {
19360
        switch(fieldId) {
19361
          case 0: // SUCCESS
19362
            return SUCCESS;
19363
          case 1: // SE
19364
            return SE;
19365
          default:
19366
            return null;
19367
        }
19368
      }
19369
 
19370
      /**
19371
       * Find the _Fields constant that matches fieldId, throwing an exception
19372
       * if it is not found.
19373
       */
19374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19375
        _Fields fields = findByThriftId(fieldId);
19376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19377
        return fields;
19378
      }
19379
 
19380
      /**
19381
       * Find the _Fields constant that matches name, or null if its not found.
19382
       */
19383
      public static _Fields findByName(String name) {
19384
        return byName.get(name);
19385
      }
19386
 
19387
      private final short _thriftId;
19388
      private final String _fieldName;
19389
 
19390
      _Fields(short thriftId, String fieldName) {
19391
        _thriftId = thriftId;
19392
        _fieldName = fieldName;
19393
      }
19394
 
19395
      public short getThriftFieldId() {
19396
        return _thriftId;
19397
      }
19398
 
19399
      public String getFieldName() {
19400
        return _fieldName;
19401
      }
19402
    }
19403
 
19404
    // isset id assignments
19405
 
19406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19407
    static {
19408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19409
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19411
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19415
    }
19416
 
19417
    public getNewEmptyAwb_result() {
19418
    }
19419
 
19420
    public getNewEmptyAwb_result(
19421
      String success,
19422
      LogisticsServiceException se)
19423
    {
19424
      this();
19425
      this.success = success;
19426
      this.se = se;
19427
    }
19428
 
19429
    /**
19430
     * Performs a deep copy on <i>other</i>.
19431
     */
19432
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19433
      if (other.isSetSuccess()) {
19434
        this.success = other.success;
19435
      }
19436
      if (other.isSetSe()) {
19437
        this.se = new LogisticsServiceException(other.se);
19438
      }
19439
    }
19440
 
19441
    public getNewEmptyAwb_result deepCopy() {
19442
      return new getNewEmptyAwb_result(this);
19443
    }
19444
 
19445
    @Override
19446
    public void clear() {
19447
      this.success = null;
19448
      this.se = null;
19449
    }
19450
 
19451
    public String getSuccess() {
19452
      return this.success;
19453
    }
19454
 
19455
    public void setSuccess(String success) {
19456
      this.success = success;
19457
    }
19458
 
19459
    public void unsetSuccess() {
19460
      this.success = null;
19461
    }
19462
 
19463
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19464
    public boolean isSetSuccess() {
19465
      return this.success != null;
19466
    }
19467
 
19468
    public void setSuccessIsSet(boolean value) {
19469
      if (!value) {
19470
        this.success = null;
19471
      }
19472
    }
19473
 
19474
    public LogisticsServiceException getSe() {
19475
      return this.se;
19476
    }
19477
 
19478
    public void setSe(LogisticsServiceException se) {
19479
      this.se = se;
19480
    }
19481
 
19482
    public void unsetSe() {
19483
      this.se = null;
19484
    }
19485
 
19486
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19487
    public boolean isSetSe() {
19488
      return this.se != null;
19489
    }
19490
 
19491
    public void setSeIsSet(boolean value) {
19492
      if (!value) {
19493
        this.se = null;
19494
      }
19495
    }
19496
 
19497
    public void setFieldValue(_Fields field, Object value) {
19498
      switch (field) {
19499
      case SUCCESS:
19500
        if (value == null) {
19501
          unsetSuccess();
19502
        } else {
19503
          setSuccess((String)value);
19504
        }
19505
        break;
19506
 
19507
      case SE:
19508
        if (value == null) {
19509
          unsetSe();
19510
        } else {
19511
          setSe((LogisticsServiceException)value);
19512
        }
19513
        break;
19514
 
19515
      }
19516
    }
19517
 
19518
    public Object getFieldValue(_Fields field) {
19519
      switch (field) {
19520
      case SUCCESS:
19521
        return getSuccess();
19522
 
19523
      case SE:
19524
        return getSe();
19525
 
19526
      }
19527
      throw new IllegalStateException();
19528
    }
19529
 
19530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19531
    public boolean isSet(_Fields field) {
19532
      if (field == null) {
19533
        throw new IllegalArgumentException();
19534
      }
19535
 
19536
      switch (field) {
19537
      case SUCCESS:
19538
        return isSetSuccess();
19539
      case SE:
19540
        return isSetSe();
19541
      }
19542
      throw new IllegalStateException();
19543
    }
19544
 
19545
    @Override
19546
    public boolean equals(Object that) {
19547
      if (that == null)
19548
        return false;
19549
      if (that instanceof getNewEmptyAwb_result)
19550
        return this.equals((getNewEmptyAwb_result)that);
19551
      return false;
19552
    }
19553
 
19554
    public boolean equals(getNewEmptyAwb_result that) {
19555
      if (that == null)
19556
        return false;
19557
 
19558
      boolean this_present_success = true && this.isSetSuccess();
19559
      boolean that_present_success = true && that.isSetSuccess();
19560
      if (this_present_success || that_present_success) {
19561
        if (!(this_present_success && that_present_success))
19562
          return false;
19563
        if (!this.success.equals(that.success))
19564
          return false;
19565
      }
19566
 
19567
      boolean this_present_se = true && this.isSetSe();
19568
      boolean that_present_se = true && that.isSetSe();
19569
      if (this_present_se || that_present_se) {
19570
        if (!(this_present_se && that_present_se))
19571
          return false;
19572
        if (!this.se.equals(that.se))
19573
          return false;
19574
      }
19575
 
19576
      return true;
19577
    }
19578
 
19579
    @Override
19580
    public int hashCode() {
19581
      return 0;
19582
    }
19583
 
19584
    public int compareTo(getNewEmptyAwb_result other) {
19585
      if (!getClass().equals(other.getClass())) {
19586
        return getClass().getName().compareTo(other.getClass().getName());
19587
      }
19588
 
19589
      int lastComparison = 0;
19590
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19591
 
19592
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19593
      if (lastComparison != 0) {
19594
        return lastComparison;
19595
      }
19596
      if (isSetSuccess()) {
19597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19598
        if (lastComparison != 0) {
19599
          return lastComparison;
19600
        }
19601
      }
19602
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19603
      if (lastComparison != 0) {
19604
        return lastComparison;
19605
      }
19606
      if (isSetSe()) {
19607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19608
        if (lastComparison != 0) {
19609
          return lastComparison;
19610
        }
19611
      }
19612
      return 0;
19613
    }
19614
 
19615
    public _Fields fieldForId(int fieldId) {
19616
      return _Fields.findByThriftId(fieldId);
19617
    }
19618
 
19619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19620
      org.apache.thrift.protocol.TField field;
19621
      iprot.readStructBegin();
19622
      while (true)
19623
      {
19624
        field = iprot.readFieldBegin();
19625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19626
          break;
19627
        }
19628
        switch (field.id) {
19629
          case 0: // SUCCESS
19630
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19631
              this.success = iprot.readString();
19632
            } else { 
19633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19634
            }
19635
            break;
19636
          case 1: // SE
19637
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19638
              this.se = new LogisticsServiceException();
19639
              this.se.read(iprot);
19640
            } else { 
19641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19642
            }
19643
            break;
19644
          default:
19645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19646
        }
19647
        iprot.readFieldEnd();
19648
      }
19649
      iprot.readStructEnd();
19650
      validate();
19651
    }
19652
 
19653
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19654
      oprot.writeStructBegin(STRUCT_DESC);
19655
 
19656
      if (this.isSetSuccess()) {
19657
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19658
        oprot.writeString(this.success);
19659
        oprot.writeFieldEnd();
19660
      } else if (this.isSetSe()) {
19661
        oprot.writeFieldBegin(SE_FIELD_DESC);
19662
        this.se.write(oprot);
19663
        oprot.writeFieldEnd();
19664
      }
19665
      oprot.writeFieldStop();
19666
      oprot.writeStructEnd();
19667
    }
19668
 
19669
    @Override
19670
    public String toString() {
19671
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19672
      boolean first = true;
19673
 
19674
      sb.append("success:");
19675
      if (this.success == null) {
19676
        sb.append("null");
19677
      } else {
19678
        sb.append(this.success);
19679
      }
19680
      first = false;
19681
      if (!first) sb.append(", ");
19682
      sb.append("se:");
19683
      if (this.se == null) {
19684
        sb.append("null");
19685
      } else {
19686
        sb.append(this.se);
19687
      }
19688
      first = false;
19689
      sb.append(")");
19690
      return sb.toString();
19691
    }
19692
 
19693
    public void validate() throws org.apache.thrift.TException {
19694
      // check for required fields
19695
    }
19696
 
19697
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19698
      try {
19699
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19700
      } catch (org.apache.thrift.TException te) {
19701
        throw new java.io.IOException(te);
19702
      }
19703
    }
19704
 
19705
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19706
      try {
19707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19708
      } catch (org.apache.thrift.TException te) {
19709
        throw new java.io.IOException(te);
19710
      }
19711
    }
19712
 
19713
  }
19714
 
19715
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19717
 
19718
    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);
19719
    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);
19720
 
19721
    private long providerId; // required
19722
    private String pincode; // required
19723
 
19724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19726
      PROVIDER_ID((short)1, "providerId"),
19727
      PINCODE((short)2, "pincode");
19728
 
19729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19730
 
19731
      static {
19732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19733
          byName.put(field.getFieldName(), field);
19734
        }
19735
      }
19736
 
19737
      /**
19738
       * Find the _Fields constant that matches fieldId, or null if its not found.
19739
       */
19740
      public static _Fields findByThriftId(int fieldId) {
19741
        switch(fieldId) {
19742
          case 1: // PROVIDER_ID
19743
            return PROVIDER_ID;
19744
          case 2: // PINCODE
19745
            return PINCODE;
19746
          default:
19747
            return null;
19748
        }
19749
      }
19750
 
19751
      /**
19752
       * Find the _Fields constant that matches fieldId, throwing an exception
19753
       * if it is not found.
19754
       */
19755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19756
        _Fields fields = findByThriftId(fieldId);
19757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19758
        return fields;
19759
      }
19760
 
19761
      /**
19762
       * Find the _Fields constant that matches name, or null if its not found.
19763
       */
19764
      public static _Fields findByName(String name) {
19765
        return byName.get(name);
19766
      }
19767
 
19768
      private final short _thriftId;
19769
      private final String _fieldName;
19770
 
19771
      _Fields(short thriftId, String fieldName) {
19772
        _thriftId = thriftId;
19773
        _fieldName = fieldName;
19774
      }
19775
 
19776
      public short getThriftFieldId() {
19777
        return _thriftId;
19778
      }
19779
 
19780
      public String getFieldName() {
19781
        return _fieldName;
19782
      }
19783
    }
19784
 
19785
    // isset id assignments
19786
    private static final int __PROVIDERID_ISSET_ID = 0;
19787
    private BitSet __isset_bit_vector = new BitSet(1);
19788
 
19789
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19790
    static {
19791
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19792
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19794
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19796
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19797
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19798
    }
19799
 
19800
    public getProviderLimitDetailsForPincode_args() {
19801
    }
19802
 
19803
    public getProviderLimitDetailsForPincode_args(
19804
      long providerId,
19805
      String pincode)
19806
    {
19807
      this();
19808
      this.providerId = providerId;
19809
      setProviderIdIsSet(true);
19810
      this.pincode = pincode;
19811
    }
19812
 
19813
    /**
19814
     * Performs a deep copy on <i>other</i>.
19815
     */
19816
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19817
      __isset_bit_vector.clear();
19818
      __isset_bit_vector.or(other.__isset_bit_vector);
19819
      this.providerId = other.providerId;
19820
      if (other.isSetPincode()) {
19821
        this.pincode = other.pincode;
19822
      }
19823
    }
19824
 
19825
    public getProviderLimitDetailsForPincode_args deepCopy() {
19826
      return new getProviderLimitDetailsForPincode_args(this);
19827
    }
19828
 
19829
    @Override
19830
    public void clear() {
19831
      setProviderIdIsSet(false);
19832
      this.providerId = 0;
19833
      this.pincode = null;
19834
    }
19835
 
19836
    public long getProviderId() {
19837
      return this.providerId;
19838
    }
19839
 
19840
    public void setProviderId(long providerId) {
19841
      this.providerId = providerId;
19842
      setProviderIdIsSet(true);
19843
    }
19844
 
19845
    public void unsetProviderId() {
19846
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19847
    }
19848
 
19849
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19850
    public boolean isSetProviderId() {
19851
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19852
    }
19853
 
19854
    public void setProviderIdIsSet(boolean value) {
19855
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19856
    }
19857
 
19858
    public String getPincode() {
19859
      return this.pincode;
19860
    }
19861
 
19862
    public void setPincode(String pincode) {
19863
      this.pincode = pincode;
19864
    }
19865
 
19866
    public void unsetPincode() {
19867
      this.pincode = null;
19868
    }
19869
 
19870
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19871
    public boolean isSetPincode() {
19872
      return this.pincode != null;
19873
    }
19874
 
19875
    public void setPincodeIsSet(boolean value) {
19876
      if (!value) {
19877
        this.pincode = null;
19878
      }
19879
    }
19880
 
19881
    public void setFieldValue(_Fields field, Object value) {
19882
      switch (field) {
19883
      case PROVIDER_ID:
19884
        if (value == null) {
19885
          unsetProviderId();
19886
        } else {
19887
          setProviderId((Long)value);
19888
        }
19889
        break;
19890
 
19891
      case PINCODE:
19892
        if (value == null) {
19893
          unsetPincode();
19894
        } else {
19895
          setPincode((String)value);
19896
        }
19897
        break;
19898
 
19899
      }
19900
    }
19901
 
19902
    public Object getFieldValue(_Fields field) {
19903
      switch (field) {
19904
      case PROVIDER_ID:
19905
        return Long.valueOf(getProviderId());
19906
 
19907
      case PINCODE:
19908
        return getPincode();
19909
 
19910
      }
19911
      throw new IllegalStateException();
19912
    }
19913
 
19914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19915
    public boolean isSet(_Fields field) {
19916
      if (field == null) {
19917
        throw new IllegalArgumentException();
19918
      }
19919
 
19920
      switch (field) {
19921
      case PROVIDER_ID:
19922
        return isSetProviderId();
19923
      case PINCODE:
19924
        return isSetPincode();
19925
      }
19926
      throw new IllegalStateException();
19927
    }
19928
 
19929
    @Override
19930
    public boolean equals(Object that) {
19931
      if (that == null)
19932
        return false;
19933
      if (that instanceof getProviderLimitDetailsForPincode_args)
19934
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19935
      return false;
19936
    }
19937
 
19938
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19939
      if (that == null)
19940
        return false;
19941
 
19942
      boolean this_present_providerId = true;
19943
      boolean that_present_providerId = true;
19944
      if (this_present_providerId || that_present_providerId) {
19945
        if (!(this_present_providerId && that_present_providerId))
19946
          return false;
19947
        if (this.providerId != that.providerId)
19948
          return false;
19949
      }
19950
 
19951
      boolean this_present_pincode = true && this.isSetPincode();
19952
      boolean that_present_pincode = true && that.isSetPincode();
19953
      if (this_present_pincode || that_present_pincode) {
19954
        if (!(this_present_pincode && that_present_pincode))
19955
          return false;
19956
        if (!this.pincode.equals(that.pincode))
19957
          return false;
19958
      }
19959
 
19960
      return true;
19961
    }
19962
 
19963
    @Override
19964
    public int hashCode() {
19965
      return 0;
19966
    }
19967
 
19968
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19969
      if (!getClass().equals(other.getClass())) {
19970
        return getClass().getName().compareTo(other.getClass().getName());
19971
      }
19972
 
19973
      int lastComparison = 0;
19974
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19975
 
19976
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19977
      if (lastComparison != 0) {
19978
        return lastComparison;
19979
      }
19980
      if (isSetProviderId()) {
19981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19982
        if (lastComparison != 0) {
19983
          return lastComparison;
19984
        }
19985
      }
19986
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19987
      if (lastComparison != 0) {
19988
        return lastComparison;
19989
      }
19990
      if (isSetPincode()) {
19991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19992
        if (lastComparison != 0) {
19993
          return lastComparison;
19994
        }
19995
      }
19996
      return 0;
19997
    }
19998
 
19999
    public _Fields fieldForId(int fieldId) {
20000
      return _Fields.findByThriftId(fieldId);
20001
    }
20002
 
20003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20004
      org.apache.thrift.protocol.TField field;
20005
      iprot.readStructBegin();
20006
      while (true)
20007
      {
20008
        field = iprot.readFieldBegin();
20009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20010
          break;
20011
        }
20012
        switch (field.id) {
20013
          case 1: // PROVIDER_ID
20014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20015
              this.providerId = iprot.readI64();
20016
              setProviderIdIsSet(true);
20017
            } else { 
20018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20019
            }
20020
            break;
20021
          case 2: // PINCODE
20022
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20023
              this.pincode = iprot.readString();
20024
            } else { 
20025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20026
            }
20027
            break;
20028
          default:
20029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20030
        }
20031
        iprot.readFieldEnd();
20032
      }
20033
      iprot.readStructEnd();
20034
      validate();
20035
    }
20036
 
20037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20038
      validate();
20039
 
20040
      oprot.writeStructBegin(STRUCT_DESC);
20041
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
20042
      oprot.writeI64(this.providerId);
20043
      oprot.writeFieldEnd();
20044
      if (this.pincode != null) {
20045
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
20046
        oprot.writeString(this.pincode);
20047
        oprot.writeFieldEnd();
20048
      }
20049
      oprot.writeFieldStop();
20050
      oprot.writeStructEnd();
20051
    }
20052
 
20053
    @Override
20054
    public String toString() {
20055
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
20056
      boolean first = true;
20057
 
20058
      sb.append("providerId:");
20059
      sb.append(this.providerId);
20060
      first = false;
20061
      if (!first) sb.append(", ");
20062
      sb.append("pincode:");
20063
      if (this.pincode == null) {
20064
        sb.append("null");
20065
      } else {
20066
        sb.append(this.pincode);
20067
      }
20068
      first = false;
20069
      sb.append(")");
20070
      return sb.toString();
20071
    }
20072
 
20073
    public void validate() throws org.apache.thrift.TException {
20074
      // check for required fields
20075
    }
20076
 
20077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20078
      try {
20079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20080
      } catch (org.apache.thrift.TException te) {
20081
        throw new java.io.IOException(te);
20082
      }
20083
    }
20084
 
20085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20086
      try {
20087
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20088
        __isset_bit_vector = new BitSet(1);
20089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20090
      } catch (org.apache.thrift.TException te) {
20091
        throw new java.io.IOException(te);
20092
      }
20093
    }
20094
 
20095
  }
20096
 
20097
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
20098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
20099
 
20100
    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);
20101
    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);
20102
 
20103
    private Map<String,String> success; // required
20104
    private LogisticsServiceException se; // required
20105
 
20106
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20107
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20108
      SUCCESS((short)0, "success"),
20109
      SE((short)1, "se");
20110
 
20111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20112
 
20113
      static {
20114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20115
          byName.put(field.getFieldName(), field);
20116
        }
20117
      }
20118
 
20119
      /**
20120
       * Find the _Fields constant that matches fieldId, or null if its not found.
20121
       */
20122
      public static _Fields findByThriftId(int fieldId) {
20123
        switch(fieldId) {
20124
          case 0: // SUCCESS
20125
            return SUCCESS;
20126
          case 1: // SE
20127
            return SE;
20128
          default:
20129
            return null;
20130
        }
20131
      }
20132
 
20133
      /**
20134
       * Find the _Fields constant that matches fieldId, throwing an exception
20135
       * if it is not found.
20136
       */
20137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20138
        _Fields fields = findByThriftId(fieldId);
20139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20140
        return fields;
20141
      }
20142
 
20143
      /**
20144
       * Find the _Fields constant that matches name, or null if its not found.
20145
       */
20146
      public static _Fields findByName(String name) {
20147
        return byName.get(name);
20148
      }
20149
 
20150
      private final short _thriftId;
20151
      private final String _fieldName;
20152
 
20153
      _Fields(short thriftId, String fieldName) {
20154
        _thriftId = thriftId;
20155
        _fieldName = fieldName;
20156
      }
20157
 
20158
      public short getThriftFieldId() {
20159
        return _thriftId;
20160
      }
20161
 
20162
      public String getFieldName() {
20163
        return _fieldName;
20164
      }
20165
    }
20166
 
20167
    // isset id assignments
20168
 
20169
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20170
    static {
20171
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20172
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20173
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20174
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
20175
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20176
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20177
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
20180
    }
20181
 
20182
    public getProviderLimitDetailsForPincode_result() {
20183
    }
20184
 
20185
    public getProviderLimitDetailsForPincode_result(
20186
      Map<String,String> success,
20187
      LogisticsServiceException se)
20188
    {
20189
      this();
20190
      this.success = success;
20191
      this.se = se;
20192
    }
20193
 
20194
    /**
20195
     * Performs a deep copy on <i>other</i>.
20196
     */
20197
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
20198
      if (other.isSetSuccess()) {
20199
        Map<String,String> __this__success = new HashMap<String,String>();
20200
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
20201
 
20202
          String other_element_key = other_element.getKey();
20203
          String other_element_value = other_element.getValue();
20204
 
20205
          String __this__success_copy_key = other_element_key;
20206
 
20207
          String __this__success_copy_value = other_element_value;
20208
 
20209
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20210
        }
20211
        this.success = __this__success;
20212
      }
20213
      if (other.isSetSe()) {
20214
        this.se = new LogisticsServiceException(other.se);
20215
      }
20216
    }
20217
 
20218
    public getProviderLimitDetailsForPincode_result deepCopy() {
20219
      return new getProviderLimitDetailsForPincode_result(this);
20220
    }
20221
 
20222
    @Override
20223
    public void clear() {
20224
      this.success = null;
20225
      this.se = null;
20226
    }
20227
 
20228
    public int getSuccessSize() {
20229
      return (this.success == null) ? 0 : this.success.size();
20230
    }
20231
 
20232
    public void putToSuccess(String key, String val) {
20233
      if (this.success == null) {
20234
        this.success = new HashMap<String,String>();
20235
      }
20236
      this.success.put(key, val);
20237
    }
20238
 
20239
    public Map<String,String> getSuccess() {
20240
      return this.success;
20241
    }
20242
 
20243
    public void setSuccess(Map<String,String> success) {
20244
      this.success = success;
20245
    }
20246
 
20247
    public void unsetSuccess() {
20248
      this.success = null;
20249
    }
20250
 
20251
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20252
    public boolean isSetSuccess() {
20253
      return this.success != null;
20254
    }
20255
 
20256
    public void setSuccessIsSet(boolean value) {
20257
      if (!value) {
20258
        this.success = null;
20259
      }
20260
    }
20261
 
20262
    public LogisticsServiceException getSe() {
20263
      return this.se;
20264
    }
20265
 
20266
    public void setSe(LogisticsServiceException se) {
20267
      this.se = se;
20268
    }
20269
 
20270
    public void unsetSe() {
20271
      this.se = null;
20272
    }
20273
 
20274
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
20275
    public boolean isSetSe() {
20276
      return this.se != null;
20277
    }
20278
 
20279
    public void setSeIsSet(boolean value) {
20280
      if (!value) {
20281
        this.se = null;
20282
      }
20283
    }
20284
 
20285
    public void setFieldValue(_Fields field, Object value) {
20286
      switch (field) {
20287
      case SUCCESS:
20288
        if (value == null) {
20289
          unsetSuccess();
20290
        } else {
20291
          setSuccess((Map<String,String>)value);
20292
        }
20293
        break;
20294
 
20295
      case SE:
20296
        if (value == null) {
20297
          unsetSe();
20298
        } else {
20299
          setSe((LogisticsServiceException)value);
20300
        }
20301
        break;
20302
 
20303
      }
20304
    }
20305
 
20306
    public Object getFieldValue(_Fields field) {
20307
      switch (field) {
20308
      case SUCCESS:
20309
        return getSuccess();
20310
 
20311
      case SE:
20312
        return getSe();
20313
 
20314
      }
20315
      throw new IllegalStateException();
20316
    }
20317
 
20318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20319
    public boolean isSet(_Fields field) {
20320
      if (field == null) {
20321
        throw new IllegalArgumentException();
20322
      }
20323
 
20324
      switch (field) {
20325
      case SUCCESS:
20326
        return isSetSuccess();
20327
      case SE:
20328
        return isSetSe();
20329
      }
20330
      throw new IllegalStateException();
20331
    }
20332
 
20333
    @Override
20334
    public boolean equals(Object that) {
20335
      if (that == null)
20336
        return false;
20337
      if (that instanceof getProviderLimitDetailsForPincode_result)
20338
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20339
      return false;
20340
    }
20341
 
20342
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20343
      if (that == null)
20344
        return false;
20345
 
20346
      boolean this_present_success = true && this.isSetSuccess();
20347
      boolean that_present_success = true && that.isSetSuccess();
20348
      if (this_present_success || that_present_success) {
20349
        if (!(this_present_success && that_present_success))
20350
          return false;
20351
        if (!this.success.equals(that.success))
20352
          return false;
20353
      }
20354
 
20355
      boolean this_present_se = true && this.isSetSe();
20356
      boolean that_present_se = true && that.isSetSe();
20357
      if (this_present_se || that_present_se) {
20358
        if (!(this_present_se && that_present_se))
20359
          return false;
20360
        if (!this.se.equals(that.se))
20361
          return false;
20362
      }
20363
 
20364
      return true;
20365
    }
20366
 
20367
    @Override
20368
    public int hashCode() {
20369
      return 0;
20370
    }
20371
 
20372
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20373
      if (!getClass().equals(other.getClass())) {
20374
        return getClass().getName().compareTo(other.getClass().getName());
20375
      }
20376
 
20377
      int lastComparison = 0;
20378
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20379
 
20380
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20381
      if (lastComparison != 0) {
20382
        return lastComparison;
20383
      }
20384
      if (isSetSuccess()) {
20385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20386
        if (lastComparison != 0) {
20387
          return lastComparison;
20388
        }
20389
      }
20390
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20391
      if (lastComparison != 0) {
20392
        return lastComparison;
20393
      }
20394
      if (isSetSe()) {
20395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20396
        if (lastComparison != 0) {
20397
          return lastComparison;
20398
        }
20399
      }
20400
      return 0;
20401
    }
20402
 
20403
    public _Fields fieldForId(int fieldId) {
20404
      return _Fields.findByThriftId(fieldId);
20405
    }
20406
 
20407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20408
      org.apache.thrift.protocol.TField field;
20409
      iprot.readStructBegin();
20410
      while (true)
20411
      {
20412
        field = iprot.readFieldBegin();
20413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20414
          break;
20415
        }
20416
        switch (field.id) {
20417
          case 0: // SUCCESS
20418
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20419
              {
20420
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20421
                this.success = new HashMap<String,String>(2*_map32.size);
20422
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20423
                {
20424
                  String _key34; // required
20425
                  String _val35; // required
20426
                  _key34 = iprot.readString();
20427
                  _val35 = iprot.readString();
20428
                  this.success.put(_key34, _val35);
20429
                }
20430
                iprot.readMapEnd();
20431
              }
20432
            } else { 
20433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20434
            }
20435
            break;
20436
          case 1: // SE
20437
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20438
              this.se = new LogisticsServiceException();
20439
              this.se.read(iprot);
20440
            } else { 
20441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20442
            }
20443
            break;
20444
          default:
20445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20446
        }
20447
        iprot.readFieldEnd();
20448
      }
20449
      iprot.readStructEnd();
20450
      validate();
20451
    }
20452
 
20453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20454
      oprot.writeStructBegin(STRUCT_DESC);
20455
 
20456
      if (this.isSetSuccess()) {
20457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20458
        {
20459
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20460
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20461
          {
20462
            oprot.writeString(_iter36.getKey());
20463
            oprot.writeString(_iter36.getValue());
20464
          }
20465
          oprot.writeMapEnd();
20466
        }
20467
        oprot.writeFieldEnd();
20468
      } else if (this.isSetSe()) {
20469
        oprot.writeFieldBegin(SE_FIELD_DESC);
20470
        this.se.write(oprot);
20471
        oprot.writeFieldEnd();
20472
      }
20473
      oprot.writeFieldStop();
20474
      oprot.writeStructEnd();
20475
    }
20476
 
20477
    @Override
20478
    public String toString() {
20479
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20480
      boolean first = true;
20481
 
20482
      sb.append("success:");
20483
      if (this.success == null) {
20484
        sb.append("null");
20485
      } else {
20486
        sb.append(this.success);
20487
      }
20488
      first = false;
20489
      if (!first) sb.append(", ");
20490
      sb.append("se:");
20491
      if (this.se == null) {
20492
        sb.append("null");
20493
      } else {
20494
        sb.append(this.se);
20495
      }
20496
      first = false;
20497
      sb.append(")");
20498
      return sb.toString();
20499
    }
20500
 
20501
    public void validate() throws org.apache.thrift.TException {
20502
      // check for required fields
20503
    }
20504
 
20505
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20506
      try {
20507
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20508
      } catch (org.apache.thrift.TException te) {
20509
        throw new java.io.IOException(te);
20510
      }
20511
    }
20512
 
20513
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20514
      try {
20515
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20516
      } catch (org.apache.thrift.TException te) {
20517
        throw new java.io.IOException(te);
20518
      }
20519
    }
20520
 
20521
  }
20522
 
19413 amit.gupta 20523
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20524
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20525
 
20526
    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);
20527
    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);
20528
 
20529
    private String destPincode; // required
20530
    private List<Long> price; // required
20531
 
20532
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20533
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20534
      DEST_PINCODE((short)1, "destPincode"),
20535
      PRICE((short)2, "price");
20536
 
20537
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20538
 
20539
      static {
20540
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20541
          byName.put(field.getFieldName(), field);
20542
        }
20543
      }
20544
 
20545
      /**
20546
       * Find the _Fields constant that matches fieldId, or null if its not found.
20547
       */
20548
      public static _Fields findByThriftId(int fieldId) {
20549
        switch(fieldId) {
20550
          case 1: // DEST_PINCODE
20551
            return DEST_PINCODE;
20552
          case 2: // PRICE
20553
            return PRICE;
20554
          default:
20555
            return null;
20556
        }
20557
      }
20558
 
20559
      /**
20560
       * Find the _Fields constant that matches fieldId, throwing an exception
20561
       * if it is not found.
20562
       */
20563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20564
        _Fields fields = findByThriftId(fieldId);
20565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20566
        return fields;
20567
      }
20568
 
20569
      /**
20570
       * Find the _Fields constant that matches name, or null if its not found.
20571
       */
20572
      public static _Fields findByName(String name) {
20573
        return byName.get(name);
20574
      }
20575
 
20576
      private final short _thriftId;
20577
      private final String _fieldName;
20578
 
20579
      _Fields(short thriftId, String fieldName) {
20580
        _thriftId = thriftId;
20581
        _fieldName = fieldName;
20582
      }
20583
 
20584
      public short getThriftFieldId() {
20585
        return _thriftId;
20586
      }
20587
 
20588
      public String getFieldName() {
20589
        return _fieldName;
20590
      }
20591
    }
20592
 
20593
    // isset id assignments
20594
 
20595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20596
    static {
20597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20598
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20600
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20601
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20602
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20603
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20604
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20605
    }
20606
 
20607
    public getLocationInfoMap_args() {
20608
    }
20609
 
20610
    public getLocationInfoMap_args(
20611
      String destPincode,
20612
      List<Long> price)
20613
    {
20614
      this();
20615
      this.destPincode = destPincode;
20616
      this.price = price;
20617
    }
20618
 
20619
    /**
20620
     * Performs a deep copy on <i>other</i>.
20621
     */
20622
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20623
      if (other.isSetDestPincode()) {
20624
        this.destPincode = other.destPincode;
20625
      }
20626
      if (other.isSetPrice()) {
20627
        List<Long> __this__price = new ArrayList<Long>();
20628
        for (Long other_element : other.price) {
20629
          __this__price.add(other_element);
20630
        }
20631
        this.price = __this__price;
20632
      }
20633
    }
20634
 
20635
    public getLocationInfoMap_args deepCopy() {
20636
      return new getLocationInfoMap_args(this);
20637
    }
20638
 
20639
    @Override
20640
    public void clear() {
20641
      this.destPincode = null;
20642
      this.price = null;
20643
    }
20644
 
20645
    public String getDestPincode() {
20646
      return this.destPincode;
20647
    }
20648
 
20649
    public void setDestPincode(String destPincode) {
20650
      this.destPincode = destPincode;
20651
    }
20652
 
20653
    public void unsetDestPincode() {
20654
      this.destPincode = null;
20655
    }
20656
 
20657
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20658
    public boolean isSetDestPincode() {
20659
      return this.destPincode != null;
20660
    }
20661
 
20662
    public void setDestPincodeIsSet(boolean value) {
20663
      if (!value) {
20664
        this.destPincode = null;
20665
      }
20666
    }
20667
 
20668
    public int getPriceSize() {
20669
      return (this.price == null) ? 0 : this.price.size();
20670
    }
20671
 
20672
    public java.util.Iterator<Long> getPriceIterator() {
20673
      return (this.price == null) ? null : this.price.iterator();
20674
    }
20675
 
20676
    public void addToPrice(long elem) {
20677
      if (this.price == null) {
20678
        this.price = new ArrayList<Long>();
20679
      }
20680
      this.price.add(elem);
20681
    }
20682
 
20683
    public List<Long> getPrice() {
20684
      return this.price;
20685
    }
20686
 
20687
    public void setPrice(List<Long> price) {
20688
      this.price = price;
20689
    }
20690
 
20691
    public void unsetPrice() {
20692
      this.price = null;
20693
    }
20694
 
20695
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20696
    public boolean isSetPrice() {
20697
      return this.price != null;
20698
    }
20699
 
20700
    public void setPriceIsSet(boolean value) {
20701
      if (!value) {
20702
        this.price = null;
20703
      }
20704
    }
20705
 
20706
    public void setFieldValue(_Fields field, Object value) {
20707
      switch (field) {
20708
      case DEST_PINCODE:
20709
        if (value == null) {
20710
          unsetDestPincode();
20711
        } else {
20712
          setDestPincode((String)value);
20713
        }
20714
        break;
20715
 
20716
      case PRICE:
20717
        if (value == null) {
20718
          unsetPrice();
20719
        } else {
20720
          setPrice((List<Long>)value);
20721
        }
20722
        break;
20723
 
20724
      }
20725
    }
20726
 
20727
    public Object getFieldValue(_Fields field) {
20728
      switch (field) {
20729
      case DEST_PINCODE:
20730
        return getDestPincode();
20731
 
20732
      case PRICE:
20733
        return getPrice();
20734
 
20735
      }
20736
      throw new IllegalStateException();
20737
    }
20738
 
20739
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20740
    public boolean isSet(_Fields field) {
20741
      if (field == null) {
20742
        throw new IllegalArgumentException();
20743
      }
20744
 
20745
      switch (field) {
20746
      case DEST_PINCODE:
20747
        return isSetDestPincode();
20748
      case PRICE:
20749
        return isSetPrice();
20750
      }
20751
      throw new IllegalStateException();
20752
    }
20753
 
20754
    @Override
20755
    public boolean equals(Object that) {
20756
      if (that == null)
20757
        return false;
20758
      if (that instanceof getLocationInfoMap_args)
20759
        return this.equals((getLocationInfoMap_args)that);
20760
      return false;
20761
    }
20762
 
20763
    public boolean equals(getLocationInfoMap_args that) {
20764
      if (that == null)
20765
        return false;
20766
 
20767
      boolean this_present_destPincode = true && this.isSetDestPincode();
20768
      boolean that_present_destPincode = true && that.isSetDestPincode();
20769
      if (this_present_destPincode || that_present_destPincode) {
20770
        if (!(this_present_destPincode && that_present_destPincode))
20771
          return false;
20772
        if (!this.destPincode.equals(that.destPincode))
20773
          return false;
20774
      }
20775
 
20776
      boolean this_present_price = true && this.isSetPrice();
20777
      boolean that_present_price = true && that.isSetPrice();
20778
      if (this_present_price || that_present_price) {
20779
        if (!(this_present_price && that_present_price))
20780
          return false;
20781
        if (!this.price.equals(that.price))
20782
          return false;
20783
      }
20784
 
20785
      return true;
20786
    }
20787
 
20788
    @Override
20789
    public int hashCode() {
20790
      return 0;
20791
    }
20792
 
20793
    public int compareTo(getLocationInfoMap_args other) {
20794
      if (!getClass().equals(other.getClass())) {
20795
        return getClass().getName().compareTo(other.getClass().getName());
20796
      }
20797
 
20798
      int lastComparison = 0;
20799
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20800
 
20801
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20802
      if (lastComparison != 0) {
20803
        return lastComparison;
20804
      }
20805
      if (isSetDestPincode()) {
20806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20807
        if (lastComparison != 0) {
20808
          return lastComparison;
20809
        }
20810
      }
20811
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20812
      if (lastComparison != 0) {
20813
        return lastComparison;
20814
      }
20815
      if (isSetPrice()) {
20816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20817
        if (lastComparison != 0) {
20818
          return lastComparison;
20819
        }
20820
      }
20821
      return 0;
20822
    }
20823
 
20824
    public _Fields fieldForId(int fieldId) {
20825
      return _Fields.findByThriftId(fieldId);
20826
    }
20827
 
20828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20829
      org.apache.thrift.protocol.TField field;
20830
      iprot.readStructBegin();
20831
      while (true)
20832
      {
20833
        field = iprot.readFieldBegin();
20834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20835
          break;
20836
        }
20837
        switch (field.id) {
20838
          case 1: // DEST_PINCODE
20839
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20840
              this.destPincode = iprot.readString();
20841
            } else { 
20842
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20843
            }
20844
            break;
20845
          case 2: // PRICE
20846
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20847
              {
20848
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20849
                this.price = new ArrayList<Long>(_list37.size);
20850
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20851
                {
20852
                  long _elem39; // required
20853
                  _elem39 = iprot.readI64();
20854
                  this.price.add(_elem39);
20855
                }
20856
                iprot.readListEnd();
20857
              }
20858
            } else { 
20859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20860
            }
20861
            break;
20862
          default:
20863
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20864
        }
20865
        iprot.readFieldEnd();
20866
      }
20867
      iprot.readStructEnd();
20868
      validate();
20869
    }
20870
 
20871
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20872
      validate();
20873
 
20874
      oprot.writeStructBegin(STRUCT_DESC);
20875
      if (this.destPincode != null) {
20876
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20877
        oprot.writeString(this.destPincode);
20878
        oprot.writeFieldEnd();
20879
      }
20880
      if (this.price != null) {
20881
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20882
        {
20883
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20884
          for (long _iter40 : this.price)
20885
          {
20886
            oprot.writeI64(_iter40);
20887
          }
20888
          oprot.writeListEnd();
20889
        }
20890
        oprot.writeFieldEnd();
20891
      }
20892
      oprot.writeFieldStop();
20893
      oprot.writeStructEnd();
20894
    }
20895
 
20896
    @Override
20897
    public String toString() {
20898
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20899
      boolean first = true;
20900
 
20901
      sb.append("destPincode:");
20902
      if (this.destPincode == null) {
20903
        sb.append("null");
20904
      } else {
20905
        sb.append(this.destPincode);
20906
      }
20907
      first = false;
20908
      if (!first) sb.append(", ");
20909
      sb.append("price:");
20910
      if (this.price == null) {
20911
        sb.append("null");
20912
      } else {
20913
        sb.append(this.price);
20914
      }
20915
      first = false;
20916
      sb.append(")");
20917
      return sb.toString();
20918
    }
20919
 
20920
    public void validate() throws org.apache.thrift.TException {
20921
      // check for required fields
20922
    }
20923
 
20924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20925
      try {
20926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20927
      } catch (org.apache.thrift.TException te) {
20928
        throw new java.io.IOException(te);
20929
      }
20930
    }
20931
 
20932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20933
      try {
20934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20935
      } catch (org.apache.thrift.TException te) {
20936
        throw new java.io.IOException(te);
20937
      }
20938
    }
20939
 
20940
  }
20941
 
20942
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20944
 
20945
    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);
20946
 
20947
    private Map<Long,Map<Long,LocationInfo>> success; // required
20948
 
20949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20951
      SUCCESS((short)0, "success");
20952
 
20953
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20954
 
20955
      static {
20956
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20957
          byName.put(field.getFieldName(), field);
20958
        }
20959
      }
20960
 
20961
      /**
20962
       * Find the _Fields constant that matches fieldId, or null if its not found.
20963
       */
20964
      public static _Fields findByThriftId(int fieldId) {
20965
        switch(fieldId) {
20966
          case 0: // SUCCESS
20967
            return SUCCESS;
20968
          default:
20969
            return null;
20970
        }
20971
      }
20972
 
20973
      /**
20974
       * Find the _Fields constant that matches fieldId, throwing an exception
20975
       * if it is not found.
20976
       */
20977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20978
        _Fields fields = findByThriftId(fieldId);
20979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20980
        return fields;
20981
      }
20982
 
20983
      /**
20984
       * Find the _Fields constant that matches name, or null if its not found.
20985
       */
20986
      public static _Fields findByName(String name) {
20987
        return byName.get(name);
20988
      }
20989
 
20990
      private final short _thriftId;
20991
      private final String _fieldName;
20992
 
20993
      _Fields(short thriftId, String fieldName) {
20994
        _thriftId = thriftId;
20995
        _fieldName = fieldName;
20996
      }
20997
 
20998
      public short getThriftFieldId() {
20999
        return _thriftId;
21000
      }
21001
 
21002
      public String getFieldName() {
21003
        return _fieldName;
21004
      }
21005
    }
21006
 
21007
    // isset id assignments
21008
 
21009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21010
    static {
21011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21012
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21013
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
21014
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
21015
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
21016
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
21017
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
21018
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21019
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
21020
    }
21021
 
21022
    public getLocationInfoMap_result() {
21023
    }
21024
 
21025
    public getLocationInfoMap_result(
21026
      Map<Long,Map<Long,LocationInfo>> success)
21027
    {
21028
      this();
21029
      this.success = success;
21030
    }
21031
 
21032
    /**
21033
     * Performs a deep copy on <i>other</i>.
21034
     */
21035
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
21036
      if (other.isSetSuccess()) {
21037
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
21038
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
21039
 
21040
          Long other_element_key = other_element.getKey();
21041
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
21042
 
21043
          Long __this__success_copy_key = other_element_key;
21044
 
21045
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
21046
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
21047
 
21048
            Long other_element_value_element_key = other_element_value_element.getKey();
21049
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
21050
 
21051
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
21052
 
21053
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
21054
 
21055
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
21056
          }
21057
 
21058
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
21059
        }
21060
        this.success = __this__success;
21061
      }
21062
    }
21063
 
21064
    public getLocationInfoMap_result deepCopy() {
21065
      return new getLocationInfoMap_result(this);
21066
    }
21067
 
21068
    @Override
21069
    public void clear() {
21070
      this.success = null;
21071
    }
21072
 
21073
    public int getSuccessSize() {
21074
      return (this.success == null) ? 0 : this.success.size();
21075
    }
21076
 
21077
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
21078
      if (this.success == null) {
21079
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
21080
      }
21081
      this.success.put(key, val);
21082
    }
21083
 
21084
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
21085
      return this.success;
21086
    }
21087
 
21088
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
21089
      this.success = success;
21090
    }
21091
 
21092
    public void unsetSuccess() {
21093
      this.success = null;
21094
    }
21095
 
21096
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21097
    public boolean isSetSuccess() {
21098
      return this.success != null;
21099
    }
21100
 
21101
    public void setSuccessIsSet(boolean value) {
21102
      if (!value) {
21103
        this.success = null;
21104
      }
21105
    }
21106
 
21107
    public void setFieldValue(_Fields field, Object value) {
21108
      switch (field) {
21109
      case SUCCESS:
21110
        if (value == null) {
21111
          unsetSuccess();
21112
        } else {
21113
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
21114
        }
21115
        break;
21116
 
21117
      }
21118
    }
21119
 
21120
    public Object getFieldValue(_Fields field) {
21121
      switch (field) {
21122
      case SUCCESS:
21123
        return getSuccess();
21124
 
21125
      }
21126
      throw new IllegalStateException();
21127
    }
21128
 
21129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21130
    public boolean isSet(_Fields field) {
21131
      if (field == null) {
21132
        throw new IllegalArgumentException();
21133
      }
21134
 
21135
      switch (field) {
21136
      case SUCCESS:
21137
        return isSetSuccess();
21138
      }
21139
      throw new IllegalStateException();
21140
    }
21141
 
21142
    @Override
21143
    public boolean equals(Object that) {
21144
      if (that == null)
21145
        return false;
21146
      if (that instanceof getLocationInfoMap_result)
21147
        return this.equals((getLocationInfoMap_result)that);
21148
      return false;
21149
    }
21150
 
21151
    public boolean equals(getLocationInfoMap_result that) {
21152
      if (that == null)
21153
        return false;
21154
 
21155
      boolean this_present_success = true && this.isSetSuccess();
21156
      boolean that_present_success = true && that.isSetSuccess();
21157
      if (this_present_success || that_present_success) {
21158
        if (!(this_present_success && that_present_success))
21159
          return false;
21160
        if (!this.success.equals(that.success))
21161
          return false;
21162
      }
21163
 
21164
      return true;
21165
    }
21166
 
21167
    @Override
21168
    public int hashCode() {
21169
      return 0;
21170
    }
21171
 
21172
    public int compareTo(getLocationInfoMap_result other) {
21173
      if (!getClass().equals(other.getClass())) {
21174
        return getClass().getName().compareTo(other.getClass().getName());
21175
      }
21176
 
21177
      int lastComparison = 0;
21178
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
21179
 
21180
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21181
      if (lastComparison != 0) {
21182
        return lastComparison;
21183
      }
21184
      if (isSetSuccess()) {
21185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21186
        if (lastComparison != 0) {
21187
          return lastComparison;
21188
        }
21189
      }
21190
      return 0;
21191
    }
21192
 
21193
    public _Fields fieldForId(int fieldId) {
21194
      return _Fields.findByThriftId(fieldId);
21195
    }
21196
 
21197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21198
      org.apache.thrift.protocol.TField field;
21199
      iprot.readStructBegin();
21200
      while (true)
21201
      {
21202
        field = iprot.readFieldBegin();
21203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21204
          break;
21205
        }
21206
        switch (field.id) {
21207
          case 0: // SUCCESS
21208
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
21209
              {
21210
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
21211
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
21212
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
21213
                {
21214
                  long _key43; // required
21215
                  Map<Long,LocationInfo> _val44; // required
21216
                  _key43 = iprot.readI64();
21217
                  {
21218
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
21219
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
21220
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
21221
                    {
21222
                      long _key47; // required
21223
                      LocationInfo _val48; // required
21224
                      _key47 = iprot.readI64();
21225
                      _val48 = new LocationInfo();
21226
                      _val48.read(iprot);
21227
                      _val44.put(_key47, _val48);
21228
                    }
21229
                    iprot.readMapEnd();
21230
                  }
21231
                  this.success.put(_key43, _val44);
21232
                }
21233
                iprot.readMapEnd();
21234
              }
21235
            } else { 
21236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21237
            }
21238
            break;
21239
          default:
21240
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21241
        }
21242
        iprot.readFieldEnd();
21243
      }
21244
      iprot.readStructEnd();
21245
      validate();
21246
    }
21247
 
21248
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21249
      oprot.writeStructBegin(STRUCT_DESC);
21250
 
21251
      if (this.isSetSuccess()) {
21252
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21253
        {
21254
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
21255
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
21256
          {
21257
            oprot.writeI64(_iter49.getKey());
21258
            {
21259
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
21260
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
21261
              {
21262
                oprot.writeI64(_iter50.getKey());
21263
                _iter50.getValue().write(oprot);
21264
              }
21265
              oprot.writeMapEnd();
21266
            }
21267
          }
21268
          oprot.writeMapEnd();
21269
        }
21270
        oprot.writeFieldEnd();
21271
      }
21272
      oprot.writeFieldStop();
21273
      oprot.writeStructEnd();
21274
    }
21275
 
21276
    @Override
21277
    public String toString() {
21278
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
21279
      boolean first = true;
21280
 
21281
      sb.append("success:");
21282
      if (this.success == null) {
21283
        sb.append("null");
21284
      } else {
21285
        sb.append(this.success);
21286
      }
21287
      first = false;
21288
      sb.append(")");
21289
      return sb.toString();
21290
    }
21291
 
21292
    public void validate() throws org.apache.thrift.TException {
21293
      // check for required fields
21294
    }
21295
 
21296
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21297
      try {
21298
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21299
      } catch (org.apache.thrift.TException te) {
21300
        throw new java.io.IOException(te);
21301
      }
21302
    }
21303
 
21304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21305
      try {
21306
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21307
      } catch (org.apache.thrift.TException te) {
21308
        throw new java.io.IOException(te);
21309
      }
21310
    }
21311
 
21312
  }
21313
 
19421 manish.sha 21314
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
21315
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
21316
 
21317
    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);
21318
    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);
21319
    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);
21320
    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);
21321
    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 21322
    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 21323
 
21324
    private String pincode; // required
21325
    private double transactionAmount; // required
21326
    private boolean isCod; // required
21327
    private double weight; // required
21328
    private long billingWarehouseId; // required
19474 manish.sha 21329
    private boolean isCompleteTxn; // required
19421 manish.sha 21330
 
21331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21333
      PINCODE((short)1, "pincode"),
21334
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21335
      IS_COD((short)3, "isCod"),
21336
      WEIGHT((short)4, "weight"),
19474 manish.sha 21337
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
21338
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21339
 
21340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21341
 
21342
      static {
21343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21344
          byName.put(field.getFieldName(), field);
21345
        }
21346
      }
21347
 
21348
      /**
21349
       * Find the _Fields constant that matches fieldId, or null if its not found.
21350
       */
21351
      public static _Fields findByThriftId(int fieldId) {
21352
        switch(fieldId) {
21353
          case 1: // PINCODE
21354
            return PINCODE;
21355
          case 2: // TRANSACTION_AMOUNT
21356
            return TRANSACTION_AMOUNT;
21357
          case 3: // IS_COD
21358
            return IS_COD;
21359
          case 4: // WEIGHT
21360
            return WEIGHT;
21361
          case 5: // BILLING_WAREHOUSE_ID
21362
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21363
          case 6: // IS_COMPLETE_TXN
21364
            return IS_COMPLETE_TXN;
19421 manish.sha 21365
          default:
21366
            return null;
21367
        }
21368
      }
21369
 
21370
      /**
21371
       * Find the _Fields constant that matches fieldId, throwing an exception
21372
       * if it is not found.
21373
       */
21374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21375
        _Fields fields = findByThriftId(fieldId);
21376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21377
        return fields;
21378
      }
21379
 
21380
      /**
21381
       * Find the _Fields constant that matches name, or null if its not found.
21382
       */
21383
      public static _Fields findByName(String name) {
21384
        return byName.get(name);
21385
      }
21386
 
21387
      private final short _thriftId;
21388
      private final String _fieldName;
21389
 
21390
      _Fields(short thriftId, String fieldName) {
21391
        _thriftId = thriftId;
21392
        _fieldName = fieldName;
21393
      }
21394
 
21395
      public short getThriftFieldId() {
21396
        return _thriftId;
21397
      }
21398
 
21399
      public String getFieldName() {
21400
        return _fieldName;
21401
      }
21402
    }
21403
 
21404
    // isset id assignments
21405
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21406
    private static final int __ISCOD_ISSET_ID = 1;
21407
    private static final int __WEIGHT_ISSET_ID = 2;
21408
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21409
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21410
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21411
 
21412
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21413
    static {
21414
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21415
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21416
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21417
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21419
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21421
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21423
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21425
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21427
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21428
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21429
    }
21430
 
21431
    public getCostingAndDeliveryEstimateForPincode_args() {
21432
    }
21433
 
21434
    public getCostingAndDeliveryEstimateForPincode_args(
21435
      String pincode,
21436
      double transactionAmount,
21437
      boolean isCod,
21438
      double weight,
19474 manish.sha 21439
      long billingWarehouseId,
21440
      boolean isCompleteTxn)
19421 manish.sha 21441
    {
21442
      this();
21443
      this.pincode = pincode;
21444
      this.transactionAmount = transactionAmount;
21445
      setTransactionAmountIsSet(true);
21446
      this.isCod = isCod;
21447
      setIsCodIsSet(true);
21448
      this.weight = weight;
21449
      setWeightIsSet(true);
21450
      this.billingWarehouseId = billingWarehouseId;
21451
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21452
      this.isCompleteTxn = isCompleteTxn;
21453
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21454
    }
21455
 
21456
    /**
21457
     * Performs a deep copy on <i>other</i>.
21458
     */
21459
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21460
      __isset_bit_vector.clear();
21461
      __isset_bit_vector.or(other.__isset_bit_vector);
21462
      if (other.isSetPincode()) {
21463
        this.pincode = other.pincode;
21464
      }
21465
      this.transactionAmount = other.transactionAmount;
21466
      this.isCod = other.isCod;
21467
      this.weight = other.weight;
21468
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21469
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21470
    }
21471
 
21472
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21473
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21474
    }
21475
 
21476
    @Override
21477
    public void clear() {
21478
      this.pincode = null;
21479
      setTransactionAmountIsSet(false);
21480
      this.transactionAmount = 0.0;
21481
      setIsCodIsSet(false);
21482
      this.isCod = false;
21483
      setWeightIsSet(false);
21484
      this.weight = 0.0;
21485
      setBillingWarehouseIdIsSet(false);
21486
      this.billingWarehouseId = 0;
19474 manish.sha 21487
      setIsCompleteTxnIsSet(false);
21488
      this.isCompleteTxn = false;
19421 manish.sha 21489
    }
21490
 
21491
    public String getPincode() {
21492
      return this.pincode;
21493
    }
21494
 
21495
    public void setPincode(String pincode) {
21496
      this.pincode = pincode;
21497
    }
21498
 
21499
    public void unsetPincode() {
21500
      this.pincode = null;
21501
    }
21502
 
21503
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21504
    public boolean isSetPincode() {
21505
      return this.pincode != null;
21506
    }
21507
 
21508
    public void setPincodeIsSet(boolean value) {
21509
      if (!value) {
21510
        this.pincode = null;
21511
      }
21512
    }
21513
 
21514
    public double getTransactionAmount() {
21515
      return this.transactionAmount;
21516
    }
21517
 
21518
    public void setTransactionAmount(double transactionAmount) {
21519
      this.transactionAmount = transactionAmount;
21520
      setTransactionAmountIsSet(true);
21521
    }
21522
 
21523
    public void unsetTransactionAmount() {
21524
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21525
    }
21526
 
21527
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21528
    public boolean isSetTransactionAmount() {
21529
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21530
    }
21531
 
21532
    public void setTransactionAmountIsSet(boolean value) {
21533
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21534
    }
21535
 
21536
    public boolean isIsCod() {
21537
      return this.isCod;
21538
    }
21539
 
21540
    public void setIsCod(boolean isCod) {
21541
      this.isCod = isCod;
21542
      setIsCodIsSet(true);
21543
    }
21544
 
21545
    public void unsetIsCod() {
21546
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21547
    }
21548
 
21549
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21550
    public boolean isSetIsCod() {
21551
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21552
    }
21553
 
21554
    public void setIsCodIsSet(boolean value) {
21555
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21556
    }
21557
 
21558
    public double getWeight() {
21559
      return this.weight;
21560
    }
21561
 
21562
    public void setWeight(double weight) {
21563
      this.weight = weight;
21564
      setWeightIsSet(true);
21565
    }
21566
 
21567
    public void unsetWeight() {
21568
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21569
    }
21570
 
21571
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21572
    public boolean isSetWeight() {
21573
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21574
    }
21575
 
21576
    public void setWeightIsSet(boolean value) {
21577
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21578
    }
21579
 
21580
    public long getBillingWarehouseId() {
21581
      return this.billingWarehouseId;
21582
    }
21583
 
21584
    public void setBillingWarehouseId(long billingWarehouseId) {
21585
      this.billingWarehouseId = billingWarehouseId;
21586
      setBillingWarehouseIdIsSet(true);
21587
    }
21588
 
21589
    public void unsetBillingWarehouseId() {
21590
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21591
    }
21592
 
21593
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21594
    public boolean isSetBillingWarehouseId() {
21595
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21596
    }
21597
 
21598
    public void setBillingWarehouseIdIsSet(boolean value) {
21599
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21600
    }
21601
 
19474 manish.sha 21602
    public boolean isIsCompleteTxn() {
21603
      return this.isCompleteTxn;
21604
    }
21605
 
21606
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21607
      this.isCompleteTxn = isCompleteTxn;
21608
      setIsCompleteTxnIsSet(true);
21609
    }
21610
 
21611
    public void unsetIsCompleteTxn() {
21612
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21613
    }
21614
 
21615
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21616
    public boolean isSetIsCompleteTxn() {
21617
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21618
    }
21619
 
21620
    public void setIsCompleteTxnIsSet(boolean value) {
21621
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21622
    }
21623
 
19421 manish.sha 21624
    public void setFieldValue(_Fields field, Object value) {
21625
      switch (field) {
21626
      case PINCODE:
21627
        if (value == null) {
21628
          unsetPincode();
21629
        } else {
21630
          setPincode((String)value);
21631
        }
21632
        break;
21633
 
21634
      case TRANSACTION_AMOUNT:
21635
        if (value == null) {
21636
          unsetTransactionAmount();
21637
        } else {
21638
          setTransactionAmount((Double)value);
21639
        }
21640
        break;
21641
 
21642
      case IS_COD:
21643
        if (value == null) {
21644
          unsetIsCod();
21645
        } else {
21646
          setIsCod((Boolean)value);
21647
        }
21648
        break;
21649
 
21650
      case WEIGHT:
21651
        if (value == null) {
21652
          unsetWeight();
21653
        } else {
21654
          setWeight((Double)value);
21655
        }
21656
        break;
21657
 
21658
      case BILLING_WAREHOUSE_ID:
21659
        if (value == null) {
21660
          unsetBillingWarehouseId();
21661
        } else {
21662
          setBillingWarehouseId((Long)value);
21663
        }
21664
        break;
21665
 
19474 manish.sha 21666
      case IS_COMPLETE_TXN:
21667
        if (value == null) {
21668
          unsetIsCompleteTxn();
21669
        } else {
21670
          setIsCompleteTxn((Boolean)value);
21671
        }
21672
        break;
21673
 
19421 manish.sha 21674
      }
21675
    }
21676
 
21677
    public Object getFieldValue(_Fields field) {
21678
      switch (field) {
21679
      case PINCODE:
21680
        return getPincode();
21681
 
21682
      case TRANSACTION_AMOUNT:
21683
        return Double.valueOf(getTransactionAmount());
21684
 
21685
      case IS_COD:
21686
        return Boolean.valueOf(isIsCod());
21687
 
21688
      case WEIGHT:
21689
        return Double.valueOf(getWeight());
21690
 
21691
      case BILLING_WAREHOUSE_ID:
21692
        return Long.valueOf(getBillingWarehouseId());
21693
 
19474 manish.sha 21694
      case IS_COMPLETE_TXN:
21695
        return Boolean.valueOf(isIsCompleteTxn());
21696
 
19421 manish.sha 21697
      }
21698
      throw new IllegalStateException();
21699
    }
21700
 
21701
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21702
    public boolean isSet(_Fields field) {
21703
      if (field == null) {
21704
        throw new IllegalArgumentException();
21705
      }
21706
 
21707
      switch (field) {
21708
      case PINCODE:
21709
        return isSetPincode();
21710
      case TRANSACTION_AMOUNT:
21711
        return isSetTransactionAmount();
21712
      case IS_COD:
21713
        return isSetIsCod();
21714
      case WEIGHT:
21715
        return isSetWeight();
21716
      case BILLING_WAREHOUSE_ID:
21717
        return isSetBillingWarehouseId();
19474 manish.sha 21718
      case IS_COMPLETE_TXN:
21719
        return isSetIsCompleteTxn();
19421 manish.sha 21720
      }
21721
      throw new IllegalStateException();
21722
    }
21723
 
21724
    @Override
21725
    public boolean equals(Object that) {
21726
      if (that == null)
21727
        return false;
21728
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21729
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21730
      return false;
21731
    }
21732
 
21733
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21734
      if (that == null)
21735
        return false;
21736
 
21737
      boolean this_present_pincode = true && this.isSetPincode();
21738
      boolean that_present_pincode = true && that.isSetPincode();
21739
      if (this_present_pincode || that_present_pincode) {
21740
        if (!(this_present_pincode && that_present_pincode))
21741
          return false;
21742
        if (!this.pincode.equals(that.pincode))
21743
          return false;
21744
      }
21745
 
21746
      boolean this_present_transactionAmount = true;
21747
      boolean that_present_transactionAmount = true;
21748
      if (this_present_transactionAmount || that_present_transactionAmount) {
21749
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21750
          return false;
21751
        if (this.transactionAmount != that.transactionAmount)
21752
          return false;
21753
      }
21754
 
21755
      boolean this_present_isCod = true;
21756
      boolean that_present_isCod = true;
21757
      if (this_present_isCod || that_present_isCod) {
21758
        if (!(this_present_isCod && that_present_isCod))
21759
          return false;
21760
        if (this.isCod != that.isCod)
21761
          return false;
21762
      }
21763
 
21764
      boolean this_present_weight = true;
21765
      boolean that_present_weight = true;
21766
      if (this_present_weight || that_present_weight) {
21767
        if (!(this_present_weight && that_present_weight))
21768
          return false;
21769
        if (this.weight != that.weight)
21770
          return false;
21771
      }
21772
 
21773
      boolean this_present_billingWarehouseId = true;
21774
      boolean that_present_billingWarehouseId = true;
21775
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21776
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21777
          return false;
21778
        if (this.billingWarehouseId != that.billingWarehouseId)
21779
          return false;
21780
      }
21781
 
19474 manish.sha 21782
      boolean this_present_isCompleteTxn = true;
21783
      boolean that_present_isCompleteTxn = true;
21784
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21785
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21786
          return false;
21787
        if (this.isCompleteTxn != that.isCompleteTxn)
21788
          return false;
21789
      }
21790
 
19421 manish.sha 21791
      return true;
21792
    }
21793
 
21794
    @Override
21795
    public int hashCode() {
21796
      return 0;
21797
    }
21798
 
21799
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21800
      if (!getClass().equals(other.getClass())) {
21801
        return getClass().getName().compareTo(other.getClass().getName());
21802
      }
21803
 
21804
      int lastComparison = 0;
21805
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21806
 
21807
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21808
      if (lastComparison != 0) {
21809
        return lastComparison;
21810
      }
21811
      if (isSetPincode()) {
21812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21813
        if (lastComparison != 0) {
21814
          return lastComparison;
21815
        }
21816
      }
21817
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21818
      if (lastComparison != 0) {
21819
        return lastComparison;
21820
      }
21821
      if (isSetTransactionAmount()) {
21822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21823
        if (lastComparison != 0) {
21824
          return lastComparison;
21825
        }
21826
      }
21827
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21828
      if (lastComparison != 0) {
21829
        return lastComparison;
21830
      }
21831
      if (isSetIsCod()) {
21832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21833
        if (lastComparison != 0) {
21834
          return lastComparison;
21835
        }
21836
      }
21837
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21838
      if (lastComparison != 0) {
21839
        return lastComparison;
21840
      }
21841
      if (isSetWeight()) {
21842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21843
        if (lastComparison != 0) {
21844
          return lastComparison;
21845
        }
21846
      }
21847
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21848
      if (lastComparison != 0) {
21849
        return lastComparison;
21850
      }
21851
      if (isSetBillingWarehouseId()) {
21852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21853
        if (lastComparison != 0) {
21854
          return lastComparison;
21855
        }
21856
      }
19474 manish.sha 21857
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21858
      if (lastComparison != 0) {
21859
        return lastComparison;
21860
      }
21861
      if (isSetIsCompleteTxn()) {
21862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21863
        if (lastComparison != 0) {
21864
          return lastComparison;
21865
        }
21866
      }
19421 manish.sha 21867
      return 0;
21868
    }
21869
 
21870
    public _Fields fieldForId(int fieldId) {
21871
      return _Fields.findByThriftId(fieldId);
21872
    }
21873
 
21874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21875
      org.apache.thrift.protocol.TField field;
21876
      iprot.readStructBegin();
21877
      while (true)
21878
      {
21879
        field = iprot.readFieldBegin();
21880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21881
          break;
21882
        }
21883
        switch (field.id) {
21884
          case 1: // PINCODE
21885
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21886
              this.pincode = iprot.readString();
21887
            } else { 
21888
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21889
            }
21890
            break;
21891
          case 2: // TRANSACTION_AMOUNT
21892
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21893
              this.transactionAmount = iprot.readDouble();
21894
              setTransactionAmountIsSet(true);
21895
            } else { 
21896
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21897
            }
21898
            break;
21899
          case 3: // IS_COD
21900
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21901
              this.isCod = iprot.readBool();
21902
              setIsCodIsSet(true);
21903
            } else { 
21904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21905
            }
21906
            break;
21907
          case 4: // WEIGHT
21908
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21909
              this.weight = iprot.readDouble();
21910
              setWeightIsSet(true);
21911
            } else { 
21912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21913
            }
21914
            break;
21915
          case 5: // BILLING_WAREHOUSE_ID
21916
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21917
              this.billingWarehouseId = iprot.readI64();
21918
              setBillingWarehouseIdIsSet(true);
21919
            } else { 
21920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21921
            }
21922
            break;
19474 manish.sha 21923
          case 6: // IS_COMPLETE_TXN
21924
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21925
              this.isCompleteTxn = iprot.readBool();
21926
              setIsCompleteTxnIsSet(true);
21927
            } else { 
21928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21929
            }
21930
            break;
19421 manish.sha 21931
          default:
21932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21933
        }
21934
        iprot.readFieldEnd();
21935
      }
21936
      iprot.readStructEnd();
21937
      validate();
21938
    }
21939
 
21940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21941
      validate();
21942
 
21943
      oprot.writeStructBegin(STRUCT_DESC);
21944
      if (this.pincode != null) {
21945
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21946
        oprot.writeString(this.pincode);
21947
        oprot.writeFieldEnd();
21948
      }
21949
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21950
      oprot.writeDouble(this.transactionAmount);
21951
      oprot.writeFieldEnd();
21952
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21953
      oprot.writeBool(this.isCod);
21954
      oprot.writeFieldEnd();
21955
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21956
      oprot.writeDouble(this.weight);
21957
      oprot.writeFieldEnd();
21958
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21959
      oprot.writeI64(this.billingWarehouseId);
21960
      oprot.writeFieldEnd();
19474 manish.sha 21961
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21962
      oprot.writeBool(this.isCompleteTxn);
21963
      oprot.writeFieldEnd();
19421 manish.sha 21964
      oprot.writeFieldStop();
21965
      oprot.writeStructEnd();
21966
    }
21967
 
21968
    @Override
21969
    public String toString() {
21970
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21971
      boolean first = true;
21972
 
21973
      sb.append("pincode:");
21974
      if (this.pincode == null) {
21975
        sb.append("null");
21976
      } else {
21977
        sb.append(this.pincode);
21978
      }
21979
      first = false;
21980
      if (!first) sb.append(", ");
21981
      sb.append("transactionAmount:");
21982
      sb.append(this.transactionAmount);
21983
      first = false;
21984
      if (!first) sb.append(", ");
21985
      sb.append("isCod:");
21986
      sb.append(this.isCod);
21987
      first = false;
21988
      if (!first) sb.append(", ");
21989
      sb.append("weight:");
21990
      sb.append(this.weight);
21991
      first = false;
21992
      if (!first) sb.append(", ");
21993
      sb.append("billingWarehouseId:");
21994
      sb.append(this.billingWarehouseId);
21995
      first = false;
19474 manish.sha 21996
      if (!first) sb.append(", ");
21997
      sb.append("isCompleteTxn:");
21998
      sb.append(this.isCompleteTxn);
21999
      first = false;
19421 manish.sha 22000
      sb.append(")");
22001
      return sb.toString();
22002
    }
22003
 
22004
    public void validate() throws org.apache.thrift.TException {
22005
      // check for required fields
22006
    }
22007
 
22008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22009
      try {
22010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22011
      } catch (org.apache.thrift.TException te) {
22012
        throw new java.io.IOException(te);
22013
      }
22014
    }
22015
 
22016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22017
      try {
22018
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22019
        __isset_bit_vector = new BitSet(1);
22020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22021
      } catch (org.apache.thrift.TException te) {
22022
        throw new java.io.IOException(te);
22023
      }
22024
    }
22025
 
22026
  }
22027
 
22028
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
22029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
22030
 
22031
    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);
22032
    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);
22033
 
22034
    private DeliveryEstimateAndCosting success; // required
22035
    private LogisticsServiceException se; // required
22036
 
22037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22039
      SUCCESS((short)0, "success"),
22040
      SE((short)1, "se");
22041
 
22042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22043
 
22044
      static {
22045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22046
          byName.put(field.getFieldName(), field);
22047
        }
22048
      }
22049
 
22050
      /**
22051
       * Find the _Fields constant that matches fieldId, or null if its not found.
22052
       */
22053
      public static _Fields findByThriftId(int fieldId) {
22054
        switch(fieldId) {
22055
          case 0: // SUCCESS
22056
            return SUCCESS;
22057
          case 1: // SE
22058
            return SE;
22059
          default:
22060
            return null;
22061
        }
22062
      }
22063
 
22064
      /**
22065
       * Find the _Fields constant that matches fieldId, throwing an exception
22066
       * if it is not found.
22067
       */
22068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22069
        _Fields fields = findByThriftId(fieldId);
22070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22071
        return fields;
22072
      }
22073
 
22074
      /**
22075
       * Find the _Fields constant that matches name, or null if its not found.
22076
       */
22077
      public static _Fields findByName(String name) {
22078
        return byName.get(name);
22079
      }
22080
 
22081
      private final short _thriftId;
22082
      private final String _fieldName;
22083
 
22084
      _Fields(short thriftId, String fieldName) {
22085
        _thriftId = thriftId;
22086
        _fieldName = fieldName;
22087
      }
22088
 
22089
      public short getThriftFieldId() {
22090
        return _thriftId;
22091
      }
22092
 
22093
      public String getFieldName() {
22094
        return _fieldName;
22095
      }
22096
    }
22097
 
22098
    // isset id assignments
22099
 
22100
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22101
    static {
22102
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22103
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22104
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
22105
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22107
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22108
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
22109
    }
22110
 
22111
    public getCostingAndDeliveryEstimateForPincode_result() {
22112
    }
22113
 
22114
    public getCostingAndDeliveryEstimateForPincode_result(
22115
      DeliveryEstimateAndCosting success,
22116
      LogisticsServiceException se)
22117
    {
22118
      this();
22119
      this.success = success;
22120
      this.se = se;
22121
    }
22122
 
22123
    /**
22124
     * Performs a deep copy on <i>other</i>.
22125
     */
22126
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
22127
      if (other.isSetSuccess()) {
22128
        this.success = new DeliveryEstimateAndCosting(other.success);
22129
      }
22130
      if (other.isSetSe()) {
22131
        this.se = new LogisticsServiceException(other.se);
22132
      }
22133
    }
22134
 
22135
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
22136
      return new getCostingAndDeliveryEstimateForPincode_result(this);
22137
    }
22138
 
22139
    @Override
22140
    public void clear() {
22141
      this.success = null;
22142
      this.se = null;
22143
    }
22144
 
22145
    public DeliveryEstimateAndCosting getSuccess() {
22146
      return this.success;
22147
    }
22148
 
22149
    public void setSuccess(DeliveryEstimateAndCosting success) {
22150
      this.success = success;
22151
    }
22152
 
22153
    public void unsetSuccess() {
22154
      this.success = null;
22155
    }
22156
 
22157
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22158
    public boolean isSetSuccess() {
22159
      return this.success != null;
22160
    }
22161
 
22162
    public void setSuccessIsSet(boolean value) {
22163
      if (!value) {
22164
        this.success = null;
22165
      }
22166
    }
22167
 
22168
    public LogisticsServiceException getSe() {
22169
      return this.se;
22170
    }
22171
 
22172
    public void setSe(LogisticsServiceException se) {
22173
      this.se = se;
22174
    }
22175
 
22176
    public void unsetSe() {
22177
      this.se = null;
22178
    }
22179
 
22180
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22181
    public boolean isSetSe() {
22182
      return this.se != null;
22183
    }
22184
 
22185
    public void setSeIsSet(boolean value) {
22186
      if (!value) {
22187
        this.se = null;
22188
      }
22189
    }
22190
 
22191
    public void setFieldValue(_Fields field, Object value) {
22192
      switch (field) {
22193
      case SUCCESS:
22194
        if (value == null) {
22195
          unsetSuccess();
22196
        } else {
22197
          setSuccess((DeliveryEstimateAndCosting)value);
22198
        }
22199
        break;
22200
 
22201
      case SE:
22202
        if (value == null) {
22203
          unsetSe();
22204
        } else {
22205
          setSe((LogisticsServiceException)value);
22206
        }
22207
        break;
22208
 
22209
      }
22210
    }
22211
 
22212
    public Object getFieldValue(_Fields field) {
22213
      switch (field) {
22214
      case SUCCESS:
22215
        return getSuccess();
22216
 
22217
      case SE:
22218
        return getSe();
22219
 
22220
      }
22221
      throw new IllegalStateException();
22222
    }
22223
 
22224
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22225
    public boolean isSet(_Fields field) {
22226
      if (field == null) {
22227
        throw new IllegalArgumentException();
22228
      }
22229
 
22230
      switch (field) {
22231
      case SUCCESS:
22232
        return isSetSuccess();
22233
      case SE:
22234
        return isSetSe();
22235
      }
22236
      throw new IllegalStateException();
22237
    }
22238
 
22239
    @Override
22240
    public boolean equals(Object that) {
22241
      if (that == null)
22242
        return false;
22243
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
22244
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
22245
      return false;
22246
    }
22247
 
22248
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
22249
      if (that == null)
22250
        return false;
22251
 
22252
      boolean this_present_success = true && this.isSetSuccess();
22253
      boolean that_present_success = true && that.isSetSuccess();
22254
      if (this_present_success || that_present_success) {
22255
        if (!(this_present_success && that_present_success))
22256
          return false;
22257
        if (!this.success.equals(that.success))
22258
          return false;
22259
      }
22260
 
22261
      boolean this_present_se = true && this.isSetSe();
22262
      boolean that_present_se = true && that.isSetSe();
22263
      if (this_present_se || that_present_se) {
22264
        if (!(this_present_se && that_present_se))
22265
          return false;
22266
        if (!this.se.equals(that.se))
22267
          return false;
22268
      }
22269
 
22270
      return true;
22271
    }
22272
 
22273
    @Override
22274
    public int hashCode() {
22275
      return 0;
22276
    }
22277
 
22278
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
22279
      if (!getClass().equals(other.getClass())) {
22280
        return getClass().getName().compareTo(other.getClass().getName());
22281
      }
22282
 
22283
      int lastComparison = 0;
22284
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
22285
 
22286
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22287
      if (lastComparison != 0) {
22288
        return lastComparison;
22289
      }
22290
      if (isSetSuccess()) {
22291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22292
        if (lastComparison != 0) {
22293
          return lastComparison;
22294
        }
22295
      }
22296
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
22297
      if (lastComparison != 0) {
22298
        return lastComparison;
22299
      }
22300
      if (isSetSe()) {
22301
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
22302
        if (lastComparison != 0) {
22303
          return lastComparison;
22304
        }
22305
      }
22306
      return 0;
22307
    }
22308
 
22309
    public _Fields fieldForId(int fieldId) {
22310
      return _Fields.findByThriftId(fieldId);
22311
    }
22312
 
22313
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22314
      org.apache.thrift.protocol.TField field;
22315
      iprot.readStructBegin();
22316
      while (true)
22317
      {
22318
        field = iprot.readFieldBegin();
22319
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22320
          break;
22321
        }
22322
        switch (field.id) {
22323
          case 0: // SUCCESS
22324
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22325
              this.success = new DeliveryEstimateAndCosting();
22326
              this.success.read(iprot);
22327
            } else { 
22328
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22329
            }
22330
            break;
22331
          case 1: // SE
22332
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22333
              this.se = new LogisticsServiceException();
22334
              this.se.read(iprot);
22335
            } else { 
22336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22337
            }
22338
            break;
22339
          default:
22340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22341
        }
22342
        iprot.readFieldEnd();
22343
      }
22344
      iprot.readStructEnd();
22345
      validate();
22346
    }
22347
 
22348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22349
      oprot.writeStructBegin(STRUCT_DESC);
22350
 
22351
      if (this.isSetSuccess()) {
22352
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22353
        this.success.write(oprot);
22354
        oprot.writeFieldEnd();
22355
      } else if (this.isSetSe()) {
22356
        oprot.writeFieldBegin(SE_FIELD_DESC);
22357
        this.se.write(oprot);
22358
        oprot.writeFieldEnd();
22359
      }
22360
      oprot.writeFieldStop();
22361
      oprot.writeStructEnd();
22362
    }
22363
 
22364
    @Override
22365
    public String toString() {
22366
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22367
      boolean first = true;
22368
 
22369
      sb.append("success:");
22370
      if (this.success == null) {
22371
        sb.append("null");
22372
      } else {
22373
        sb.append(this.success);
22374
      }
22375
      first = false;
22376
      if (!first) sb.append(", ");
22377
      sb.append("se:");
22378
      if (this.se == null) {
22379
        sb.append("null");
22380
      } else {
22381
        sb.append(this.se);
22382
      }
22383
      first = false;
22384
      sb.append(")");
22385
      return sb.toString();
22386
    }
22387
 
22388
    public void validate() throws org.apache.thrift.TException {
22389
      // check for required fields
22390
    }
22391
 
22392
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22393
      try {
22394
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22395
      } catch (org.apache.thrift.TException te) {
22396
        throw new java.io.IOException(te);
22397
      }
22398
    }
22399
 
22400
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22401
      try {
22402
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22403
      } catch (org.apache.thrift.TException te) {
22404
        throw new java.io.IOException(te);
22405
      }
22406
    }
22407
 
22408
  }
22409
 
20744 kshitij.so 22410
  public static class getBluedartAttributesForLogisticsTxnId_args implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_args, getBluedartAttributesForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
22411
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_args");
22412
 
22413
    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);
22414
    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);
22415
 
22416
    private String logisticsTxnId; // required
22417
    private String name; // required
22418
 
22419
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22420
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22421
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId"),
22422
      NAME((short)2, "name");
22423
 
22424
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22425
 
22426
      static {
22427
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22428
          byName.put(field.getFieldName(), field);
22429
        }
22430
      }
22431
 
22432
      /**
22433
       * Find the _Fields constant that matches fieldId, or null if its not found.
22434
       */
22435
      public static _Fields findByThriftId(int fieldId) {
22436
        switch(fieldId) {
22437
          case 1: // LOGISTICS_TXN_ID
22438
            return LOGISTICS_TXN_ID;
22439
          case 2: // NAME
22440
            return NAME;
22441
          default:
22442
            return null;
22443
        }
22444
      }
22445
 
22446
      /**
22447
       * Find the _Fields constant that matches fieldId, throwing an exception
22448
       * if it is not found.
22449
       */
22450
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22451
        _Fields fields = findByThriftId(fieldId);
22452
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22453
        return fields;
22454
      }
22455
 
22456
      /**
22457
       * Find the _Fields constant that matches name, or null if its not found.
22458
       */
22459
      public static _Fields findByName(String name) {
22460
        return byName.get(name);
22461
      }
22462
 
22463
      private final short _thriftId;
22464
      private final String _fieldName;
22465
 
22466
      _Fields(short thriftId, String fieldName) {
22467
        _thriftId = thriftId;
22468
        _fieldName = fieldName;
22469
      }
22470
 
22471
      public short getThriftFieldId() {
22472
        return _thriftId;
22473
      }
22474
 
22475
      public String getFieldName() {
22476
        return _fieldName;
22477
      }
22478
    }
22479
 
22480
    // isset id assignments
22481
 
22482
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22483
    static {
22484
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22485
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22487
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22489
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22490
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_args.class, metaDataMap);
22491
    }
22492
 
22493
    public getBluedartAttributesForLogisticsTxnId_args() {
22494
    }
22495
 
22496
    public getBluedartAttributesForLogisticsTxnId_args(
22497
      String logisticsTxnId,
22498
      String name)
22499
    {
22500
      this();
22501
      this.logisticsTxnId = logisticsTxnId;
22502
      this.name = name;
22503
    }
22504
 
22505
    /**
22506
     * Performs a deep copy on <i>other</i>.
22507
     */
22508
    public getBluedartAttributesForLogisticsTxnId_args(getBluedartAttributesForLogisticsTxnId_args other) {
22509
      if (other.isSetLogisticsTxnId()) {
22510
        this.logisticsTxnId = other.logisticsTxnId;
22511
      }
22512
      if (other.isSetName()) {
22513
        this.name = other.name;
22514
      }
22515
    }
22516
 
22517
    public getBluedartAttributesForLogisticsTxnId_args deepCopy() {
22518
      return new getBluedartAttributesForLogisticsTxnId_args(this);
22519
    }
22520
 
22521
    @Override
22522
    public void clear() {
22523
      this.logisticsTxnId = null;
22524
      this.name = null;
22525
    }
22526
 
22527
    public String getLogisticsTxnId() {
22528
      return this.logisticsTxnId;
22529
    }
22530
 
22531
    public void setLogisticsTxnId(String logisticsTxnId) {
22532
      this.logisticsTxnId = logisticsTxnId;
22533
    }
22534
 
22535
    public void unsetLogisticsTxnId() {
22536
      this.logisticsTxnId = null;
22537
    }
22538
 
22539
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
22540
    public boolean isSetLogisticsTxnId() {
22541
      return this.logisticsTxnId != null;
22542
    }
22543
 
22544
    public void setLogisticsTxnIdIsSet(boolean value) {
22545
      if (!value) {
22546
        this.logisticsTxnId = null;
22547
      }
22548
    }
22549
 
22550
    public String getName() {
22551
      return this.name;
22552
    }
22553
 
22554
    public void setName(String name) {
22555
      this.name = name;
22556
    }
22557
 
22558
    public void unsetName() {
22559
      this.name = null;
22560
    }
22561
 
22562
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
22563
    public boolean isSetName() {
22564
      return this.name != null;
22565
    }
22566
 
22567
    public void setNameIsSet(boolean value) {
22568
      if (!value) {
22569
        this.name = null;
22570
      }
22571
    }
22572
 
22573
    public void setFieldValue(_Fields field, Object value) {
22574
      switch (field) {
22575
      case LOGISTICS_TXN_ID:
22576
        if (value == null) {
22577
          unsetLogisticsTxnId();
22578
        } else {
22579
          setLogisticsTxnId((String)value);
22580
        }
22581
        break;
22582
 
22583
      case NAME:
22584
        if (value == null) {
22585
          unsetName();
22586
        } else {
22587
          setName((String)value);
22588
        }
22589
        break;
22590
 
22591
      }
22592
    }
22593
 
22594
    public Object getFieldValue(_Fields field) {
22595
      switch (field) {
22596
      case LOGISTICS_TXN_ID:
22597
        return getLogisticsTxnId();
22598
 
22599
      case NAME:
22600
        return getName();
22601
 
22602
      }
22603
      throw new IllegalStateException();
22604
    }
22605
 
22606
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22607
    public boolean isSet(_Fields field) {
22608
      if (field == null) {
22609
        throw new IllegalArgumentException();
22610
      }
22611
 
22612
      switch (field) {
22613
      case LOGISTICS_TXN_ID:
22614
        return isSetLogisticsTxnId();
22615
      case NAME:
22616
        return isSetName();
22617
      }
22618
      throw new IllegalStateException();
22619
    }
22620
 
22621
    @Override
22622
    public boolean equals(Object that) {
22623
      if (that == null)
22624
        return false;
22625
      if (that instanceof getBluedartAttributesForLogisticsTxnId_args)
22626
        return this.equals((getBluedartAttributesForLogisticsTxnId_args)that);
22627
      return false;
22628
    }
22629
 
22630
    public boolean equals(getBluedartAttributesForLogisticsTxnId_args that) {
22631
      if (that == null)
22632
        return false;
22633
 
22634
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
22635
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
22636
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
22637
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
22638
          return false;
22639
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
22640
          return false;
22641
      }
22642
 
22643
      boolean this_present_name = true && this.isSetName();
22644
      boolean that_present_name = true && that.isSetName();
22645
      if (this_present_name || that_present_name) {
22646
        if (!(this_present_name && that_present_name))
22647
          return false;
22648
        if (!this.name.equals(that.name))
22649
          return false;
22650
      }
22651
 
22652
      return true;
22653
    }
22654
 
22655
    @Override
22656
    public int hashCode() {
22657
      return 0;
22658
    }
22659
 
22660
    public int compareTo(getBluedartAttributesForLogisticsTxnId_args other) {
22661
      if (!getClass().equals(other.getClass())) {
22662
        return getClass().getName().compareTo(other.getClass().getName());
22663
      }
22664
 
22665
      int lastComparison = 0;
22666
      getBluedartAttributesForLogisticsTxnId_args typedOther = (getBluedartAttributesForLogisticsTxnId_args)other;
22667
 
22668
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
22669
      if (lastComparison != 0) {
22670
        return lastComparison;
22671
      }
22672
      if (isSetLogisticsTxnId()) {
22673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
22674
        if (lastComparison != 0) {
22675
          return lastComparison;
22676
        }
22677
      }
22678
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
22679
      if (lastComparison != 0) {
22680
        return lastComparison;
22681
      }
22682
      if (isSetName()) {
22683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
22684
        if (lastComparison != 0) {
22685
          return lastComparison;
22686
        }
22687
      }
22688
      return 0;
22689
    }
22690
 
22691
    public _Fields fieldForId(int fieldId) {
22692
      return _Fields.findByThriftId(fieldId);
22693
    }
22694
 
22695
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22696
      org.apache.thrift.protocol.TField field;
22697
      iprot.readStructBegin();
22698
      while (true)
22699
      {
22700
        field = iprot.readFieldBegin();
22701
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22702
          break;
22703
        }
22704
        switch (field.id) {
22705
          case 1: // LOGISTICS_TXN_ID
22706
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22707
              this.logisticsTxnId = iprot.readString();
22708
            } else { 
22709
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22710
            }
22711
            break;
22712
          case 2: // NAME
22713
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22714
              this.name = iprot.readString();
22715
            } else { 
22716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22717
            }
22718
            break;
22719
          default:
22720
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22721
        }
22722
        iprot.readFieldEnd();
22723
      }
22724
      iprot.readStructEnd();
22725
      validate();
22726
    }
22727
 
22728
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22729
      validate();
22730
 
22731
      oprot.writeStructBegin(STRUCT_DESC);
22732
      if (this.logisticsTxnId != null) {
22733
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
22734
        oprot.writeString(this.logisticsTxnId);
22735
        oprot.writeFieldEnd();
22736
      }
22737
      if (this.name != null) {
22738
        oprot.writeFieldBegin(NAME_FIELD_DESC);
22739
        oprot.writeString(this.name);
22740
        oprot.writeFieldEnd();
22741
      }
22742
      oprot.writeFieldStop();
22743
      oprot.writeStructEnd();
22744
    }
22745
 
22746
    @Override
22747
    public String toString() {
22748
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_args(");
22749
      boolean first = true;
22750
 
22751
      sb.append("logisticsTxnId:");
22752
      if (this.logisticsTxnId == null) {
22753
        sb.append("null");
22754
      } else {
22755
        sb.append(this.logisticsTxnId);
22756
      }
22757
      first = false;
22758
      if (!first) sb.append(", ");
22759
      sb.append("name:");
22760
      if (this.name == null) {
22761
        sb.append("null");
22762
      } else {
22763
        sb.append(this.name);
22764
      }
22765
      first = false;
22766
      sb.append(")");
22767
      return sb.toString();
22768
    }
22769
 
22770
    public void validate() throws org.apache.thrift.TException {
22771
      // check for required fields
22772
    }
22773
 
22774
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22775
      try {
22776
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22777
      } catch (org.apache.thrift.TException te) {
22778
        throw new java.io.IOException(te);
22779
      }
22780
    }
22781
 
22782
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22783
      try {
22784
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22785
      } catch (org.apache.thrift.TException te) {
22786
        throw new java.io.IOException(te);
22787
      }
22788
    }
22789
 
22790
  }
22791
 
22792
  public static class getBluedartAttributesForLogisticsTxnId_result implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_result, getBluedartAttributesForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
22793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_result");
22794
 
22795
    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);
22796
    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);
22797
 
22798
    private BluedartAttributes success; // required
22799
    private LogisticsServiceException se; // required
22800
 
22801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22803
      SUCCESS((short)0, "success"),
22804
      SE((short)1, "se");
22805
 
22806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22807
 
22808
      static {
22809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22810
          byName.put(field.getFieldName(), field);
22811
        }
22812
      }
22813
 
22814
      /**
22815
       * Find the _Fields constant that matches fieldId, or null if its not found.
22816
       */
22817
      public static _Fields findByThriftId(int fieldId) {
22818
        switch(fieldId) {
22819
          case 0: // SUCCESS
22820
            return SUCCESS;
22821
          case 1: // SE
22822
            return SE;
22823
          default:
22824
            return null;
22825
        }
22826
      }
22827
 
22828
      /**
22829
       * Find the _Fields constant that matches fieldId, throwing an exception
22830
       * if it is not found.
22831
       */
22832
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22833
        _Fields fields = findByThriftId(fieldId);
22834
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22835
        return fields;
22836
      }
22837
 
22838
      /**
22839
       * Find the _Fields constant that matches name, or null if its not found.
22840
       */
22841
      public static _Fields findByName(String name) {
22842
        return byName.get(name);
22843
      }
22844
 
22845
      private final short _thriftId;
22846
      private final String _fieldName;
22847
 
22848
      _Fields(short thriftId, String fieldName) {
22849
        _thriftId = thriftId;
22850
        _fieldName = fieldName;
22851
      }
22852
 
22853
      public short getThriftFieldId() {
22854
        return _thriftId;
22855
      }
22856
 
22857
      public String getFieldName() {
22858
        return _fieldName;
22859
      }
22860
    }
22861
 
22862
    // isset id assignments
22863
 
22864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22865
    static {
22866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22867
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22868
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BluedartAttributes.class)));
22869
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22871
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22872
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_result.class, metaDataMap);
22873
    }
22874
 
22875
    public getBluedartAttributesForLogisticsTxnId_result() {
22876
    }
22877
 
22878
    public getBluedartAttributesForLogisticsTxnId_result(
22879
      BluedartAttributes success,
22880
      LogisticsServiceException se)
22881
    {
22882
      this();
22883
      this.success = success;
22884
      this.se = se;
22885
    }
22886
 
22887
    /**
22888
     * Performs a deep copy on <i>other</i>.
22889
     */
22890
    public getBluedartAttributesForLogisticsTxnId_result(getBluedartAttributesForLogisticsTxnId_result other) {
22891
      if (other.isSetSuccess()) {
22892
        this.success = new BluedartAttributes(other.success);
22893
      }
22894
      if (other.isSetSe()) {
22895
        this.se = new LogisticsServiceException(other.se);
22896
      }
22897
    }
22898
 
22899
    public getBluedartAttributesForLogisticsTxnId_result deepCopy() {
22900
      return new getBluedartAttributesForLogisticsTxnId_result(this);
22901
    }
22902
 
22903
    @Override
22904
    public void clear() {
22905
      this.success = null;
22906
      this.se = null;
22907
    }
22908
 
22909
    public BluedartAttributes getSuccess() {
22910
      return this.success;
22911
    }
22912
 
22913
    public void setSuccess(BluedartAttributes success) {
22914
      this.success = success;
22915
    }
22916
 
22917
    public void unsetSuccess() {
22918
      this.success = null;
22919
    }
22920
 
22921
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22922
    public boolean isSetSuccess() {
22923
      return this.success != null;
22924
    }
22925
 
22926
    public void setSuccessIsSet(boolean value) {
22927
      if (!value) {
22928
        this.success = null;
22929
      }
22930
    }
22931
 
22932
    public LogisticsServiceException getSe() {
22933
      return this.se;
22934
    }
22935
 
22936
    public void setSe(LogisticsServiceException se) {
22937
      this.se = se;
22938
    }
22939
 
22940
    public void unsetSe() {
22941
      this.se = null;
22942
    }
22943
 
22944
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
22945
    public boolean isSetSe() {
22946
      return this.se != null;
22947
    }
22948
 
22949
    public void setSeIsSet(boolean value) {
22950
      if (!value) {
22951
        this.se = null;
22952
      }
22953
    }
22954
 
22955
    public void setFieldValue(_Fields field, Object value) {
22956
      switch (field) {
22957
      case SUCCESS:
22958
        if (value == null) {
22959
          unsetSuccess();
22960
        } else {
22961
          setSuccess((BluedartAttributes)value);
22962
        }
22963
        break;
22964
 
22965
      case SE:
22966
        if (value == null) {
22967
          unsetSe();
22968
        } else {
22969
          setSe((LogisticsServiceException)value);
22970
        }
22971
        break;
22972
 
22973
      }
22974
    }
22975
 
22976
    public Object getFieldValue(_Fields field) {
22977
      switch (field) {
22978
      case SUCCESS:
22979
        return getSuccess();
22980
 
22981
      case SE:
22982
        return getSe();
22983
 
22984
      }
22985
      throw new IllegalStateException();
22986
    }
22987
 
22988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22989
    public boolean isSet(_Fields field) {
22990
      if (field == null) {
22991
        throw new IllegalArgumentException();
22992
      }
22993
 
22994
      switch (field) {
22995
      case SUCCESS:
22996
        return isSetSuccess();
22997
      case SE:
22998
        return isSetSe();
22999
      }
23000
      throw new IllegalStateException();
23001
    }
23002
 
23003
    @Override
23004
    public boolean equals(Object that) {
23005
      if (that == null)
23006
        return false;
23007
      if (that instanceof getBluedartAttributesForLogisticsTxnId_result)
23008
        return this.equals((getBluedartAttributesForLogisticsTxnId_result)that);
23009
      return false;
23010
    }
23011
 
23012
    public boolean equals(getBluedartAttributesForLogisticsTxnId_result that) {
23013
      if (that == null)
23014
        return false;
23015
 
23016
      boolean this_present_success = true && this.isSetSuccess();
23017
      boolean that_present_success = true && that.isSetSuccess();
23018
      if (this_present_success || that_present_success) {
23019
        if (!(this_present_success && that_present_success))
23020
          return false;
23021
        if (!this.success.equals(that.success))
23022
          return false;
23023
      }
23024
 
23025
      boolean this_present_se = true && this.isSetSe();
23026
      boolean that_present_se = true && that.isSetSe();
23027
      if (this_present_se || that_present_se) {
23028
        if (!(this_present_se && that_present_se))
23029
          return false;
23030
        if (!this.se.equals(that.se))
23031
          return false;
23032
      }
23033
 
23034
      return true;
23035
    }
23036
 
23037
    @Override
23038
    public int hashCode() {
23039
      return 0;
23040
    }
23041
 
23042
    public int compareTo(getBluedartAttributesForLogisticsTxnId_result other) {
23043
      if (!getClass().equals(other.getClass())) {
23044
        return getClass().getName().compareTo(other.getClass().getName());
23045
      }
23046
 
23047
      int lastComparison = 0;
23048
      getBluedartAttributesForLogisticsTxnId_result typedOther = (getBluedartAttributesForLogisticsTxnId_result)other;
23049
 
23050
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23051
      if (lastComparison != 0) {
23052
        return lastComparison;
23053
      }
23054
      if (isSetSuccess()) {
23055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23056
        if (lastComparison != 0) {
23057
          return lastComparison;
23058
        }
23059
      }
23060
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
23061
      if (lastComparison != 0) {
23062
        return lastComparison;
23063
      }
23064
      if (isSetSe()) {
23065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
23066
        if (lastComparison != 0) {
23067
          return lastComparison;
23068
        }
23069
      }
23070
      return 0;
23071
    }
23072
 
23073
    public _Fields fieldForId(int fieldId) {
23074
      return _Fields.findByThriftId(fieldId);
23075
    }
23076
 
23077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23078
      org.apache.thrift.protocol.TField field;
23079
      iprot.readStructBegin();
23080
      while (true)
23081
      {
23082
        field = iprot.readFieldBegin();
23083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23084
          break;
23085
        }
23086
        switch (field.id) {
23087
          case 0: // SUCCESS
23088
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23089
              this.success = new BluedartAttributes();
23090
              this.success.read(iprot);
23091
            } else { 
23092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23093
            }
23094
            break;
23095
          case 1: // SE
23096
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23097
              this.se = new LogisticsServiceException();
23098
              this.se.read(iprot);
23099
            } else { 
23100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23101
            }
23102
            break;
23103
          default:
23104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23105
        }
23106
        iprot.readFieldEnd();
23107
      }
23108
      iprot.readStructEnd();
23109
      validate();
23110
    }
23111
 
23112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23113
      oprot.writeStructBegin(STRUCT_DESC);
23114
 
23115
      if (this.isSetSuccess()) {
23116
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23117
        this.success.write(oprot);
23118
        oprot.writeFieldEnd();
23119
      } else if (this.isSetSe()) {
23120
        oprot.writeFieldBegin(SE_FIELD_DESC);
23121
        this.se.write(oprot);
23122
        oprot.writeFieldEnd();
23123
      }
23124
      oprot.writeFieldStop();
23125
      oprot.writeStructEnd();
23126
    }
23127
 
23128
    @Override
23129
    public String toString() {
23130
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_result(");
23131
      boolean first = true;
23132
 
23133
      sb.append("success:");
23134
      if (this.success == null) {
23135
        sb.append("null");
23136
      } else {
23137
        sb.append(this.success);
23138
      }
23139
      first = false;
23140
      if (!first) sb.append(", ");
23141
      sb.append("se:");
23142
      if (this.se == null) {
23143
        sb.append("null");
23144
      } else {
23145
        sb.append(this.se);
23146
      }
23147
      first = false;
23148
      sb.append(")");
23149
      return sb.toString();
23150
    }
23151
 
23152
    public void validate() throws org.apache.thrift.TException {
23153
      // check for required fields
23154
    }
23155
 
23156
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23157
      try {
23158
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23159
      } catch (org.apache.thrift.TException te) {
23160
        throw new java.io.IOException(te);
23161
      }
23162
    }
23163
 
23164
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23165
      try {
23166
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23167
      } catch (org.apache.thrift.TException te) {
23168
        throw new java.io.IOException(te);
23169
      }
23170
    }
23171
 
23172
  }
23173
 
23218 amit.gupta 23174
  public static class pushCourierDetailsForEcomExpress_args implements org.apache.thrift.TBase<pushCourierDetailsForEcomExpress_args, pushCourierDetailsForEcomExpress_args._Fields>, java.io.Serializable, Cloneable   {
23175
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushCourierDetailsForEcomExpress_args");
23176
 
23177
    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);
23178
 
23179
    private List<String> logisticsTransactionIds; // required
23180
 
23181
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23182
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23183
      LOGISTICS_TRANSACTION_IDS((short)1, "logisticsTransactionIds");
23184
 
23185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23186
 
23187
      static {
23188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23189
          byName.put(field.getFieldName(), field);
23190
        }
23191
      }
23192
 
23193
      /**
23194
       * Find the _Fields constant that matches fieldId, or null if its not found.
23195
       */
23196
      public static _Fields findByThriftId(int fieldId) {
23197
        switch(fieldId) {
23198
          case 1: // LOGISTICS_TRANSACTION_IDS
23199
            return LOGISTICS_TRANSACTION_IDS;
23200
          default:
23201
            return null;
23202
        }
23203
      }
23204
 
23205
      /**
23206
       * Find the _Fields constant that matches fieldId, throwing an exception
23207
       * if it is not found.
23208
       */
23209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23210
        _Fields fields = findByThriftId(fieldId);
23211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23212
        return fields;
23213
      }
23214
 
23215
      /**
23216
       * Find the _Fields constant that matches name, or null if its not found.
23217
       */
23218
      public static _Fields findByName(String name) {
23219
        return byName.get(name);
23220
      }
23221
 
23222
      private final short _thriftId;
23223
      private final String _fieldName;
23224
 
23225
      _Fields(short thriftId, String fieldName) {
23226
        _thriftId = thriftId;
23227
        _fieldName = fieldName;
23228
      }
23229
 
23230
      public short getThriftFieldId() {
23231
        return _thriftId;
23232
      }
23233
 
23234
      public String getFieldName() {
23235
        return _fieldName;
23236
      }
23237
    }
23238
 
23239
    // isset id assignments
23240
 
23241
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23242
    static {
23243
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23244
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_IDS, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23245
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23246
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushCourierDetailsForEcomExpress_args.class, metaDataMap);
23249
    }
23250
 
23251
    public pushCourierDetailsForEcomExpress_args() {
23252
    }
23253
 
23254
    public pushCourierDetailsForEcomExpress_args(
23255
      List<String> logisticsTransactionIds)
23256
    {
23257
      this();
23258
      this.logisticsTransactionIds = logisticsTransactionIds;
23259
    }
23260
 
23261
    /**
23262
     * Performs a deep copy on <i>other</i>.
23263
     */
23264
    public pushCourierDetailsForEcomExpress_args(pushCourierDetailsForEcomExpress_args other) {
23265
      if (other.isSetLogisticsTransactionIds()) {
23266
        List<String> __this__logisticsTransactionIds = new ArrayList<String>();
23267
        for (String other_element : other.logisticsTransactionIds) {
23268
          __this__logisticsTransactionIds.add(other_element);
23269
        }
23270
        this.logisticsTransactionIds = __this__logisticsTransactionIds;
23271
      }
23272
    }
23273
 
23274
    public pushCourierDetailsForEcomExpress_args deepCopy() {
23275
      return new pushCourierDetailsForEcomExpress_args(this);
23276
    }
23277
 
23278
    @Override
23279
    public void clear() {
23280
      this.logisticsTransactionIds = null;
23281
    }
23282
 
23283
    public int getLogisticsTransactionIdsSize() {
23284
      return (this.logisticsTransactionIds == null) ? 0 : this.logisticsTransactionIds.size();
23285
    }
23286
 
23287
    public java.util.Iterator<String> getLogisticsTransactionIdsIterator() {
23288
      return (this.logisticsTransactionIds == null) ? null : this.logisticsTransactionIds.iterator();
23289
    }
23290
 
23291
    public void addToLogisticsTransactionIds(String elem) {
23292
      if (this.logisticsTransactionIds == null) {
23293
        this.logisticsTransactionIds = new ArrayList<String>();
23294
      }
23295
      this.logisticsTransactionIds.add(elem);
23296
    }
23297
 
23298
    public List<String> getLogisticsTransactionIds() {
23299
      return this.logisticsTransactionIds;
23300
    }
23301
 
23302
    public void setLogisticsTransactionIds(List<String> logisticsTransactionIds) {
23303
      this.logisticsTransactionIds = logisticsTransactionIds;
23304
    }
23305
 
23306
    public void unsetLogisticsTransactionIds() {
23307
      this.logisticsTransactionIds = null;
23308
    }
23309
 
23310
    /** Returns true if field logisticsTransactionIds is set (has been assigned a value) and false otherwise */
23311
    public boolean isSetLogisticsTransactionIds() {
23312
      return this.logisticsTransactionIds != null;
23313
    }
23314
 
23315
    public void setLogisticsTransactionIdsIsSet(boolean value) {
23316
      if (!value) {
23317
        this.logisticsTransactionIds = null;
23318
      }
23319
    }
23320
 
23321
    public void setFieldValue(_Fields field, Object value) {
23322
      switch (field) {
23323
      case LOGISTICS_TRANSACTION_IDS:
23324
        if (value == null) {
23325
          unsetLogisticsTransactionIds();
23326
        } else {
23327
          setLogisticsTransactionIds((List<String>)value);
23328
        }
23329
        break;
23330
 
23331
      }
23332
    }
23333
 
23334
    public Object getFieldValue(_Fields field) {
23335
      switch (field) {
23336
      case LOGISTICS_TRANSACTION_IDS:
23337
        return getLogisticsTransactionIds();
23338
 
23339
      }
23340
      throw new IllegalStateException();
23341
    }
23342
 
23343
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23344
    public boolean isSet(_Fields field) {
23345
      if (field == null) {
23346
        throw new IllegalArgumentException();
23347
      }
23348
 
23349
      switch (field) {
23350
      case LOGISTICS_TRANSACTION_IDS:
23351
        return isSetLogisticsTransactionIds();
23352
      }
23353
      throw new IllegalStateException();
23354
    }
23355
 
23356
    @Override
23357
    public boolean equals(Object that) {
23358
      if (that == null)
23359
        return false;
23360
      if (that instanceof pushCourierDetailsForEcomExpress_args)
23361
        return this.equals((pushCourierDetailsForEcomExpress_args)that);
23362
      return false;
23363
    }
23364
 
23365
    public boolean equals(pushCourierDetailsForEcomExpress_args that) {
23366
      if (that == null)
23367
        return false;
23368
 
23369
      boolean this_present_logisticsTransactionIds = true && this.isSetLogisticsTransactionIds();
23370
      boolean that_present_logisticsTransactionIds = true && that.isSetLogisticsTransactionIds();
23371
      if (this_present_logisticsTransactionIds || that_present_logisticsTransactionIds) {
23372
        if (!(this_present_logisticsTransactionIds && that_present_logisticsTransactionIds))
23373
          return false;
23374
        if (!this.logisticsTransactionIds.equals(that.logisticsTransactionIds))
23375
          return false;
23376
      }
23377
 
23378
      return true;
23379
    }
23380
 
23381
    @Override
23382
    public int hashCode() {
23383
      return 0;
23384
    }
23385
 
23386
    public int compareTo(pushCourierDetailsForEcomExpress_args other) {
23387
      if (!getClass().equals(other.getClass())) {
23388
        return getClass().getName().compareTo(other.getClass().getName());
23389
      }
23390
 
23391
      int lastComparison = 0;
23392
      pushCourierDetailsForEcomExpress_args typedOther = (pushCourierDetailsForEcomExpress_args)other;
23393
 
23394
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionIds()).compareTo(typedOther.isSetLogisticsTransactionIds());
23395
      if (lastComparison != 0) {
23396
        return lastComparison;
23397
      }
23398
      if (isSetLogisticsTransactionIds()) {
23399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionIds, typedOther.logisticsTransactionIds);
23400
        if (lastComparison != 0) {
23401
          return lastComparison;
23402
        }
23403
      }
23404
      return 0;
23405
    }
23406
 
23407
    public _Fields fieldForId(int fieldId) {
23408
      return _Fields.findByThriftId(fieldId);
23409
    }
23410
 
23411
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23412
      org.apache.thrift.protocol.TField field;
23413
      iprot.readStructBegin();
23414
      while (true)
23415
      {
23416
        field = iprot.readFieldBegin();
23417
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23418
          break;
23419
        }
23420
        switch (field.id) {
23421
          case 1: // LOGISTICS_TRANSACTION_IDS
23422
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23423
              {
23424
                org.apache.thrift.protocol.TList _list51 = iprot.readListBegin();
23425
                this.logisticsTransactionIds = new ArrayList<String>(_list51.size);
23426
                for (int _i52 = 0; _i52 < _list51.size; ++_i52)
23427
                {
23428
                  String _elem53; // required
23429
                  _elem53 = iprot.readString();
23430
                  this.logisticsTransactionIds.add(_elem53);
23431
                }
23432
                iprot.readListEnd();
23433
              }
23434
            } else { 
23435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23436
            }
23437
            break;
23438
          default:
23439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23440
        }
23441
        iprot.readFieldEnd();
23442
      }
23443
      iprot.readStructEnd();
23444
      validate();
23445
    }
23446
 
23447
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23448
      validate();
23449
 
23450
      oprot.writeStructBegin(STRUCT_DESC);
23451
      if (this.logisticsTransactionIds != null) {
23452
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_IDS_FIELD_DESC);
23453
        {
23454
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.logisticsTransactionIds.size()));
23455
          for (String _iter54 : this.logisticsTransactionIds)
23456
          {
23457
            oprot.writeString(_iter54);
23458
          }
23459
          oprot.writeListEnd();
23460
        }
23461
        oprot.writeFieldEnd();
23462
      }
23463
      oprot.writeFieldStop();
23464
      oprot.writeStructEnd();
23465
    }
23466
 
23467
    @Override
23468
    public String toString() {
23469
      StringBuilder sb = new StringBuilder("pushCourierDetailsForEcomExpress_args(");
23470
      boolean first = true;
23471
 
23472
      sb.append("logisticsTransactionIds:");
23473
      if (this.logisticsTransactionIds == null) {
23474
        sb.append("null");
23475
      } else {
23476
        sb.append(this.logisticsTransactionIds);
23477
      }
23478
      first = false;
23479
      sb.append(")");
23480
      return sb.toString();
23481
    }
23482
 
23483
    public void validate() throws org.apache.thrift.TException {
23484
      // check for required fields
23485
    }
23486
 
23487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23488
      try {
23489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23490
      } catch (org.apache.thrift.TException te) {
23491
        throw new java.io.IOException(te);
23492
      }
23493
    }
23494
 
23495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23496
      try {
23497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23498
      } catch (org.apache.thrift.TException te) {
23499
        throw new java.io.IOException(te);
23500
      }
23501
    }
23502
 
23503
  }
23504
 
23505
  public static class pushCourierDetailsForEcomExpress_result implements org.apache.thrift.TBase<pushCourierDetailsForEcomExpress_result, pushCourierDetailsForEcomExpress_result._Fields>, java.io.Serializable, Cloneable   {
23506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushCourierDetailsForEcomExpress_result");
23507
 
23508
    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);
23509
 
23510
    private boolean success; // required
23511
 
23512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23513
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23514
      SUCCESS((short)0, "success");
23515
 
23516
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23517
 
23518
      static {
23519
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23520
          byName.put(field.getFieldName(), field);
23521
        }
23522
      }
23523
 
23524
      /**
23525
       * Find the _Fields constant that matches fieldId, or null if its not found.
23526
       */
23527
      public static _Fields findByThriftId(int fieldId) {
23528
        switch(fieldId) {
23529
          case 0: // SUCCESS
23530
            return SUCCESS;
23531
          default:
23532
            return null;
23533
        }
23534
      }
23535
 
23536
      /**
23537
       * Find the _Fields constant that matches fieldId, throwing an exception
23538
       * if it is not found.
23539
       */
23540
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23541
        _Fields fields = findByThriftId(fieldId);
23542
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23543
        return fields;
23544
      }
23545
 
23546
      /**
23547
       * Find the _Fields constant that matches name, or null if its not found.
23548
       */
23549
      public static _Fields findByName(String name) {
23550
        return byName.get(name);
23551
      }
23552
 
23553
      private final short _thriftId;
23554
      private final String _fieldName;
23555
 
23556
      _Fields(short thriftId, String fieldName) {
23557
        _thriftId = thriftId;
23558
        _fieldName = fieldName;
23559
      }
23560
 
23561
      public short getThriftFieldId() {
23562
        return _thriftId;
23563
      }
23564
 
23565
      public String getFieldName() {
23566
        return _fieldName;
23567
      }
23568
    }
23569
 
23570
    // isset id assignments
23571
    private static final int __SUCCESS_ISSET_ID = 0;
23572
    private BitSet __isset_bit_vector = new BitSet(1);
23573
 
23574
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23575
    static {
23576
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23577
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
23579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushCourierDetailsForEcomExpress_result.class, metaDataMap);
23581
    }
23582
 
23583
    public pushCourierDetailsForEcomExpress_result() {
23584
    }
23585
 
23586
    public pushCourierDetailsForEcomExpress_result(
23587
      boolean success)
23588
    {
23589
      this();
23590
      this.success = success;
23591
      setSuccessIsSet(true);
23592
    }
23593
 
23594
    /**
23595
     * Performs a deep copy on <i>other</i>.
23596
     */
23597
    public pushCourierDetailsForEcomExpress_result(pushCourierDetailsForEcomExpress_result other) {
23598
      __isset_bit_vector.clear();
23599
      __isset_bit_vector.or(other.__isset_bit_vector);
23600
      this.success = other.success;
23601
    }
23602
 
23603
    public pushCourierDetailsForEcomExpress_result deepCopy() {
23604
      return new pushCourierDetailsForEcomExpress_result(this);
23605
    }
23606
 
23607
    @Override
23608
    public void clear() {
23609
      setSuccessIsSet(false);
23610
      this.success = false;
23611
    }
23612
 
23613
    public boolean isSuccess() {
23614
      return this.success;
23615
    }
23616
 
23617
    public void setSuccess(boolean success) {
23618
      this.success = success;
23619
      setSuccessIsSet(true);
23620
    }
23621
 
23622
    public void unsetSuccess() {
23623
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
23624
    }
23625
 
23626
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23627
    public boolean isSetSuccess() {
23628
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
23629
    }
23630
 
23631
    public void setSuccessIsSet(boolean value) {
23632
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
23633
    }
23634
 
23635
    public void setFieldValue(_Fields field, Object value) {
23636
      switch (field) {
23637
      case SUCCESS:
23638
        if (value == null) {
23639
          unsetSuccess();
23640
        } else {
23641
          setSuccess((Boolean)value);
23642
        }
23643
        break;
23644
 
23645
      }
23646
    }
23647
 
23648
    public Object getFieldValue(_Fields field) {
23649
      switch (field) {
23650
      case SUCCESS:
23651
        return Boolean.valueOf(isSuccess());
23652
 
23653
      }
23654
      throw new IllegalStateException();
23655
    }
23656
 
23657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23658
    public boolean isSet(_Fields field) {
23659
      if (field == null) {
23660
        throw new IllegalArgumentException();
23661
      }
23662
 
23663
      switch (field) {
23664
      case SUCCESS:
23665
        return isSetSuccess();
23666
      }
23667
      throw new IllegalStateException();
23668
    }
23669
 
23670
    @Override
23671
    public boolean equals(Object that) {
23672
      if (that == null)
23673
        return false;
23674
      if (that instanceof pushCourierDetailsForEcomExpress_result)
23675
        return this.equals((pushCourierDetailsForEcomExpress_result)that);
23676
      return false;
23677
    }
23678
 
23679
    public boolean equals(pushCourierDetailsForEcomExpress_result that) {
23680
      if (that == null)
23681
        return false;
23682
 
23683
      boolean this_present_success = true;
23684
      boolean that_present_success = true;
23685
      if (this_present_success || that_present_success) {
23686
        if (!(this_present_success && that_present_success))
23687
          return false;
23688
        if (this.success != that.success)
23689
          return false;
23690
      }
23691
 
23692
      return true;
23693
    }
23694
 
23695
    @Override
23696
    public int hashCode() {
23697
      return 0;
23698
    }
23699
 
23700
    public int compareTo(pushCourierDetailsForEcomExpress_result other) {
23701
      if (!getClass().equals(other.getClass())) {
23702
        return getClass().getName().compareTo(other.getClass().getName());
23703
      }
23704
 
23705
      int lastComparison = 0;
23706
      pushCourierDetailsForEcomExpress_result typedOther = (pushCourierDetailsForEcomExpress_result)other;
23707
 
23708
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23709
      if (lastComparison != 0) {
23710
        return lastComparison;
23711
      }
23712
      if (isSetSuccess()) {
23713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23714
        if (lastComparison != 0) {
23715
          return lastComparison;
23716
        }
23717
      }
23718
      return 0;
23719
    }
23720
 
23721
    public _Fields fieldForId(int fieldId) {
23722
      return _Fields.findByThriftId(fieldId);
23723
    }
23724
 
23725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23726
      org.apache.thrift.protocol.TField field;
23727
      iprot.readStructBegin();
23728
      while (true)
23729
      {
23730
        field = iprot.readFieldBegin();
23731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23732
          break;
23733
        }
23734
        switch (field.id) {
23735
          case 0: // SUCCESS
23736
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
23737
              this.success = iprot.readBool();
23738
              setSuccessIsSet(true);
23739
            } else { 
23740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23741
            }
23742
            break;
23743
          default:
23744
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23745
        }
23746
        iprot.readFieldEnd();
23747
      }
23748
      iprot.readStructEnd();
23749
      validate();
23750
    }
23751
 
23752
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23753
      oprot.writeStructBegin(STRUCT_DESC);
23754
 
23755
      if (this.isSetSuccess()) {
23756
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23757
        oprot.writeBool(this.success);
23758
        oprot.writeFieldEnd();
23759
      }
23760
      oprot.writeFieldStop();
23761
      oprot.writeStructEnd();
23762
    }
23763
 
23764
    @Override
23765
    public String toString() {
23766
      StringBuilder sb = new StringBuilder("pushCourierDetailsForEcomExpress_result(");
23767
      boolean first = true;
23768
 
23769
      sb.append("success:");
23770
      sb.append(this.success);
23771
      first = false;
23772
      sb.append(")");
23773
      return sb.toString();
23774
    }
23775
 
23776
    public void validate() throws org.apache.thrift.TException {
23777
      // check for required fields
23778
    }
23779
 
23780
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23781
      try {
23782
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23783
      } catch (org.apache.thrift.TException te) {
23784
        throw new java.io.IOException(te);
23785
      }
23786
    }
23787
 
23788
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23789
      try {
23790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23791
      } catch (org.apache.thrift.TException te) {
23792
        throw new java.io.IOException(te);
23793
      }
23794
    }
23795
 
23796
  }
23797
 
412 ashish 23798
}