Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
412 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
412 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
412 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class LogisticsService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
412 ashish 26
 
648 chandransh 27
    /**
668 chandransh 28
     * Returns a provider for a given provider ID. Throws an exception if none found.
29
     * 
30
     * @param providerId
31
     */
3430 rajveer 32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
668 chandransh 33
 
34
    /**
674 chandransh 35
     * Returns a list containing all the providers.
36
     */
3430 rajveer 37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
674 chandransh 38
 
39
    /**
648 chandransh 40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
43
     * 
44
     * @param itemId
45
     * @param destination_pin
4630 mandeep.dh 46
     * @param type
648 chandransh 47
     */
4630 mandeep.dh 48
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
483 rajveer 49
 
7256 rajveer 50
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
51
 
648 chandransh 52
    /**
53
     * Same as above excpet that an airway bill number is also allocated and returned.
54
     * 
55
     * @param destination_pincode
56
     * @param item_id
3044 chandransh 57
     * @param type
5766 rajveer 58
     * @param pickUp
648 chandransh 59
     */
5766 rajveer 60
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 61
 
648 chandransh 62
    /**
63
     * Returns an unused AWB number for the given provider.
64
     * 
65
     * @param providerId
20724 kshitij.so 66
     * @param logisticsTransactionId
648 chandransh 67
     */
20724 kshitij.so 68
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException;
471 rajveer 69
 
648 chandransh 70
    /**
71
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
72
     * 
6643 rajveer 73
     * @param awbNumber
648 chandransh 74
     * @param providerId
75
     */
6643 rajveer 76
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
477 rajveer 77
 
730 chandransh 78
    /**
6643 rajveer 79
     * Store the update for the given AWB number and provider id.
80
     * 
81
     * @param update
82
     */
83
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
84
 
85
    /**
730 chandransh 86
     * Returns the short three letter code of a pincode for the given provider.
87
     *    Raises an exception if the pin code is not serviced by the given provider.
88
     * 
89
     * @param providerId
90
     * @param pinCode
91
     */
3430 rajveer 92
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
730 chandransh 93
 
1139 chandransh 94
    /**
3103 chandransh 95
     * Returns the number of unused AWB numbers for the given provider of the given type
1139 chandransh 96
     * 
97
     * @param providerId
3103 chandransh 98
     * @param type
1139 chandransh 99
     */
3430 rajveer 100
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
1139 chandransh 101
 
1730 ankur.sing 102
    /**
103
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
104
     * fromDate should be passed as milliseconds corresponding to the start of the day.
105
     * If fromDate is passed as -1, fromDate is not considered for filtering
106
     * If toDate is passed as -1, toDate is not considered for filtering
107
     * 
108
     * @param fromDate
109
     * @param toDate
110
     */
3430 rajveer 111
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
1730 ankur.sing 112
 
4934 amit.gupta 113
    /**
114
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
115
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
116
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
117
     * 
118
     * @param catalogItemId
119
     * @param destination_pin
120
     * @param type
121
     */
9840 amit.gupta 122
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
4934 amit.gupta 123
 
5527 anupam.sin 124
    /**
125
     * Returns the id for a given pickUpType
126
     * 
127
     * @param pickUp
128
     */
129
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
130
 
5553 rajveer 131
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
132
 
133
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
134
 
5719 rajveer 135
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
136
 
6524 rajveer 137
    public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 138
 
6524 rajveer 139
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
6322 amar.kumar 140
 
13146 manish.sha 141
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException;
7567 rajveer 142
 
7788 manish.sha 143
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException;
7737 manish.sha 144
 
7888 rajveer 145
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
146
 
12895 manish.sha 147
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
148
 
13146 manish.sha 149
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException;
150
 
151
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException;
152
 
19413 amit.gupta 153
    /**
154
     * This returns map for locations and providers corresponding their serviceability and delay
155
     * 
156
     * @param destPincode
157
     * @param price
158
     */
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
160
 
19474 manish.sha 161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
19421 manish.sha 162
 
412 ashish 163
  }
164
 
3430 rajveer 165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
166
 
167
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
170
 
4630 mandeep.dh 171
    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 172
 
7256 rajveer 173
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
174
 
5766 rajveer 175
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 176
 
20724 kshitij.so 177
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 178
 
6643 rajveer 179
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 180
 
6643 rajveer 181
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
182
 
3430 rajveer 183
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
188
 
4934 amit.gupta 189
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
190
 
5527 anupam.sin 191
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
192
 
5553 rajveer 193
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
196
 
5719 rajveer 197
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
198
 
6524 rajveer 199
    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 200
 
6524 rajveer 201
    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 202
 
13146 manish.sha 203
    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 204
 
7788 manish.sha 205
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
7737 manish.sha 206
 
7888 rajveer 207
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
208
 
12895 manish.sha 209
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
210
 
13146 manish.sha 211
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
214
 
19413 amit.gupta 215
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
216
 
19474 manish.sha 217
    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 218
 
3430 rajveer 219
  }
220
 
3374 rajveer 221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
223
      public Factory() {}
224
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
225
        return new Client(prot);
226
      }
227
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
228
        return new Client(iprot, oprot);
229
      }
230
    }
231
 
232
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 233
    {
3430 rajveer 234
      super(prot, prot);
412 ashish 235
    }
236
 
3430 rajveer 237
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 238
      super(iprot, oprot);
412 ashish 239
    }
240
 
3430 rajveer 241
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 242
    {
243
      send_getProvider(providerId);
244
      return recv_getProvider();
245
    }
246
 
3430 rajveer 247
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 248
    {
249
      getProvider_args args = new getProvider_args();
3430 rajveer 250
      args.setProviderId(providerId);
251
      sendBase("getProvider", args);
668 chandransh 252
    }
253
 
3430 rajveer 254
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 255
    {
256
      getProvider_result result = new getProvider_result();
3430 rajveer 257
      receiveBase(result, "getProvider");
668 chandransh 258
      if (result.isSetSuccess()) {
259
        return result.success;
260
      }
261
      if (result.lse != null) {
262
        throw result.lse;
263
      }
3430 rajveer 264
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 265
    }
266
 
3430 rajveer 267
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 268
    {
269
      send_getAllProviders();
270
      return recv_getAllProviders();
271
    }
272
 
3430 rajveer 273
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 274
    {
275
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 276
      sendBase("getAllProviders", args);
674 chandransh 277
    }
278
 
3430 rajveer 279
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 280
    {
281
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 282
      receiveBase(result, "getAllProviders");
674 chandransh 283
      if (result.isSetSuccess()) {
284
        return result.success;
285
      }
286
      if (result.lse != null) {
287
        throw result.lse;
288
      }
3430 rajveer 289
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 290
    }
291
 
4630 mandeep.dh 292
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 293
    {
4630 mandeep.dh 294
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 295
      return recv_getLogisticsEstimation();
296
    }
297
 
4630 mandeep.dh 298
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 299
    {
300
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 301
      args.setItemId(itemId);
302
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 303
      args.setType(type);
3430 rajveer 304
      sendBase("getLogisticsEstimation", args);
471 rajveer 305
    }
306
 
3430 rajveer 307
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 308
    {
309
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 310
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 311
      if (result.isSetSuccess()) {
312
        return result.success;
313
      }
314
      if (result.se != null) {
315
        throw result.se;
316
      }
3430 rajveer 317
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 318
    }
319
 
7256 rajveer 320
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
321
    {
322
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
323
      return recv_getLogisticsEstimationForStore();
324
    }
325
 
326
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
327
    {
328
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
329
      args.setItemId(itemId);
330
      args.setDestination_pin(destination_pin);
331
      args.setType(type);
332
      sendBase("getLogisticsEstimationForStore", args);
333
    }
334
 
335
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
336
    {
337
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
338
      receiveBase(result, "getLogisticsEstimationForStore");
339
      if (result.isSetSuccess()) {
340
        return result.success;
341
      }
342
      if (result.se != null) {
343
        throw result.se;
344
      }
345
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
346
    }
347
 
5766 rajveer 348
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 349
    {
5766 rajveer 350
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 351
      return recv_getLogisticsInfo();
471 rajveer 352
    }
353
 
5766 rajveer 354
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 355
    {
648 chandransh 356
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 357
      args.setDestination_pincode(destination_pincode);
358
      args.setItem_id(item_id);
359
      args.setType(type);
5766 rajveer 360
      args.setPickUp(pickUp);
3430 rajveer 361
      sendBase("getLogisticsInfo", args);
471 rajveer 362
    }
363
 
3430 rajveer 364
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 365
    {
648 chandransh 366
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 367
      receiveBase(result, "getLogisticsInfo");
648 chandransh 368
      if (result.isSetSuccess()) {
369
        return result.success;
477 rajveer 370
      }
648 chandransh 371
      if (result.se != null) {
372
        throw result.se;
412 ashish 373
      }
3430 rajveer 374
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 375
    }
376
 
20724 kshitij.so 377
    public String getEmptyAWB(long providerId, String logisticsTransactionId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 378
    {
20724 kshitij.so 379
      send_getEmptyAWB(providerId, logisticsTransactionId);
412 ashish 380
      return recv_getEmptyAWB();
381
    }
382
 
20724 kshitij.so 383
    public void send_getEmptyAWB(long providerId, String logisticsTransactionId) throws org.apache.thrift.TException
412 ashish 384
    {
385
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 386
      args.setProviderId(providerId);
20724 kshitij.so 387
      args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 388
      sendBase("getEmptyAWB", args);
412 ashish 389
    }
390
 
3430 rajveer 391
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 392
    {
393
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 394
      receiveBase(result, "getEmptyAWB");
412 ashish 395
      if (result.isSetSuccess()) {
396
        return result.success;
397
      }
648 chandransh 398
      if (result.se != null) {
399
        throw result.se;
400
      }
3430 rajveer 401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 402
    }
403
 
6643 rajveer 404
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 405
    {
6643 rajveer 406
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 407
      return recv_getShipmentInfo();
408
    }
409
 
6643 rajveer 410
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 411
    {
412
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 413
      args.setAwbNumber(awbNumber);
3430 rajveer 414
      args.setProviderId(providerId);
415
      sendBase("getShipmentInfo", args);
412 ashish 416
    }
417
 
3430 rajveer 418
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 419
    {
420
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 421
      receiveBase(result, "getShipmentInfo");
412 ashish 422
      if (result.isSetSuccess()) {
423
        return result.success;
424
      }
648 chandransh 425
      if (result.se != null) {
426
        throw result.se;
427
      }
3430 rajveer 428
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 429
    }
430
 
6643 rajveer 431
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
432
    {
433
      send_storeShipmentInfo(update);
434
      recv_storeShipmentInfo();
435
    }
436
 
437
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
438
    {
439
      storeShipmentInfo_args args = new storeShipmentInfo_args();
440
      args.setUpdate(update);
441
      sendBase("storeShipmentInfo", args);
442
    }
443
 
444
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
445
    {
446
      storeShipmentInfo_result result = new storeShipmentInfo_result();
447
      receiveBase(result, "storeShipmentInfo");
448
      if (result.se != null) {
449
        throw result.se;
450
      }
451
      return;
452
    }
453
 
3430 rajveer 454
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 455
    {
456
      send_getDestinationCode(providerId, pinCode);
457
      return recv_getDestinationCode();
458
    }
459
 
3430 rajveer 460
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 461
    {
462
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 463
      args.setProviderId(providerId);
464
      args.setPinCode(pinCode);
465
      sendBase("getDestinationCode", args);
730 chandransh 466
    }
467
 
3430 rajveer 468
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 469
    {
470
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 471
      receiveBase(result, "getDestinationCode");
730 chandransh 472
      if (result.isSetSuccess()) {
473
        return result.success;
474
      }
475
      if (result.se != null) {
476
        throw result.se;
477
      }
3430 rajveer 478
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 479
    }
480
 
3430 rajveer 481
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 482
    {
3103 chandransh 483
      send_getFreeAwbCount(providerId, type);
1139 chandransh 484
      return recv_getFreeAwbCount();
485
    }
486
 
3430 rajveer 487
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 488
    {
489
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 490
      args.setProviderId(providerId);
491
      args.setType(type);
492
      sendBase("getFreeAwbCount", args);
1139 chandransh 493
    }
494
 
3430 rajveer 495
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 496
    {
497
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 498
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 499
      if (result.isSetSuccess()) {
500
        return result.success;
501
      }
3430 rajveer 502
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 503
    }
504
 
3430 rajveer 505
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 506
    {
507
      send_getHolidays(fromDate, toDate);
508
      return recv_getHolidays();
509
    }
510
 
3430 rajveer 511
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 512
    {
513
      getHolidays_args args = new getHolidays_args();
3430 rajveer 514
      args.setFromDate(fromDate);
515
      args.setToDate(toDate);
516
      sendBase("getHolidays", args);
1730 ankur.sing 517
    }
518
 
3430 rajveer 519
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 520
    {
521
      getHolidays_result result = new getHolidays_result();
3430 rajveer 522
      receiveBase(result, "getHolidays");
1730 ankur.sing 523
      if (result.isSetSuccess()) {
524
        return result.success;
525
      }
3430 rajveer 526
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 527
    }
528
 
9840 amit.gupta 529
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 530
    {
531
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
532
      return recv_getEntityLogisticsEstimation();
533
    }
534
 
535
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
536
    {
537
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
538
      args.setCatalogItemId(catalogItemId);
539
      args.setDestination_pin(destination_pin);
540
      args.setType(type);
541
      sendBase("getEntityLogisticsEstimation", args);
542
    }
543
 
9840 amit.gupta 544
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 545
    {
546
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
547
      receiveBase(result, "getEntityLogisticsEstimation");
548
      if (result.isSetSuccess()) {
549
        return result.success;
550
      }
551
      if (result.se != null) {
552
        throw result.se;
553
      }
554
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
555
    }
556
 
5527 anupam.sin 557
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
558
    {
559
      send_getProviderForPickupType(pickUp);
560
      return recv_getProviderForPickupType();
561
    }
562
 
563
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
564
    {
565
      getProviderForPickupType_args args = new getProviderForPickupType_args();
566
      args.setPickUp(pickUp);
567
      sendBase("getProviderForPickupType", args);
568
    }
569
 
570
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
571
    {
572
      getProviderForPickupType_result result = new getProviderForPickupType_result();
573
      receiveBase(result, "getProviderForPickupType");
574
      if (result.isSetSuccess()) {
575
        return result.success;
576
      }
577
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
578
    }
579
 
5553 rajveer 580
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
581
    {
582
      send_getAllPickupStores();
583
      return recv_getAllPickupStores();
584
    }
585
 
586
    public void send_getAllPickupStores() throws org.apache.thrift.TException
587
    {
588
      getAllPickupStores_args args = new getAllPickupStores_args();
589
      sendBase("getAllPickupStores", args);
590
    }
591
 
592
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
593
    {
594
      getAllPickupStores_result result = new getAllPickupStores_result();
595
      receiveBase(result, "getAllPickupStores");
596
      if (result.isSetSuccess()) {
597
        return result.success;
598
      }
599
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
600
    }
601
 
602
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
603
    {
604
      send_getPickupStore(storeId);
605
      return recv_getPickupStore();
606
    }
607
 
608
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
609
    {
610
      getPickupStore_args args = new getPickupStore_args();
611
      args.setStoreId(storeId);
612
      sendBase("getPickupStore", args);
613
    }
614
 
615
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
616
    {
617
      getPickupStore_result result = new getPickupStore_result();
618
      receiveBase(result, "getPickupStore");
619
      if (result.isSetSuccess()) {
620
        return result.success;
621
      }
622
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
623
    }
624
 
5719 rajveer 625
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
626
    {
627
      send_getPickupStoreByHotspotId(hotspotId);
628
      return recv_getPickupStoreByHotspotId();
629
    }
630
 
631
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
632
    {
633
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
634
      args.setHotspotId(hotspotId);
635
      sendBase("getPickupStoreByHotspotId", args);
636
    }
637
 
638
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
639
    {
640
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
641
      receiveBase(result, "getPickupStoreByHotspotId");
642
      if (result.isSetSuccess()) {
643
        return result.success;
644
      }
645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
646
    }
647
 
6524 rajveer 648
    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 649
    {
6524 rajveer 650
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 651
      recv_addPincode();
652
    }
653
 
6524 rajveer 654
    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 655
    {
656
      addPincode_args args = new addPincode_args();
657
      args.setProviderId(providerId);
658
      args.setPincode(pincode);
659
      args.setDestCode(destCode);
660
      args.setExp(exp);
661
      args.setCod(cod);
662
      args.setStationType(stationType);
6524 rajveer 663
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 664
      sendBase("addPincode", args);
665
    }
666
 
667
    public void recv_addPincode() throws org.apache.thrift.TException
668
    {
669
      addPincode_result result = new addPincode_result();
670
      receiveBase(result, "addPincode");
671
      return;
672
    }
673
 
6524 rajveer 674
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 675
    {
6524 rajveer 676
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 677
      recv_updatePincode();
678
    }
679
 
6524 rajveer 680
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 681
    {
682
      updatePincode_args args = new updatePincode_args();
683
      args.setProviderId(providerId);
684
      args.setPincode(pincode);
685
      args.setExp(exp);
686
      args.setCod(cod);
6524 rajveer 687
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 688
      sendBase("updatePincode", args);
689
    }
690
 
691
    public void recv_updatePincode() throws org.apache.thrift.TException
692
    {
693
      updatePincode_result result = new updatePincode_result();
694
      receiveBase(result, "updatePincode");
695
      return;
696
    }
697
 
13146 manish.sha 698
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 699
    {
13146 manish.sha 700
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 701
      return recv_addNewAwbs();
702
    }
703
 
13146 manish.sha 704
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 705
    {
706
      addNewAwbs_args args = new addNewAwbs_args();
707
      args.setProviderId(providerId);
708
      args.setCod(cod);
709
      args.setAwbs(awbs);
13146 manish.sha 710
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 711
      sendBase("addNewAwbs", args);
712
    }
713
 
714
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
715
    {
716
      addNewAwbs_result result = new addNewAwbs_result();
717
      receiveBase(result, "addNewAwbs");
718
      if (result.isSetSuccess()) {
719
        return result.success;
720
      }
721
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
722
    }
723
 
7788 manish.sha 724
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 725
    {
7788 manish.sha 726
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
727
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 728
    }
729
 
7788 manish.sha 730
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 731
    {
7788 manish.sha 732
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
733
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
734
      args.setRunCompleteUpdate(runCompleteUpdate);
735
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 736
    }
737
 
7788 manish.sha 738
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 739
    {
7788 manish.sha 740
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
741
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 742
      return;
743
    }
744
 
7888 rajveer 745
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
746
    {
747
      send_adjustDeliveryDays(startDate, days);
748
      return recv_adjustDeliveryDays();
749
    }
750
 
751
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
752
    {
753
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
754
      args.setStartDate(startDate);
755
      args.setDays(days);
756
      sendBase("adjustDeliveryDays", args);
757
    }
758
 
759
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
760
    {
761
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
762
      receiveBase(result, "adjustDeliveryDays");
763
      if (result.isSetSuccess()) {
764
        return result.success;
765
      }
766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
767
    }
768
 
12895 manish.sha 769
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
770
    {
771
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
772
      return recv_getFirstDeliveryEstimateForWhLocation();
773
    }
774
 
775
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
776
    {
777
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
778
      args.setPincode(pincode);
779
      args.setWhLocation(whLocation);
780
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
781
    }
782
 
783
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
784
    {
785
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
786
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
787
      if (result.isSetSuccess()) {
788
        return result.success;
789
      }
790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
791
    }
792
 
13146 manish.sha 793
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
794
    {
795
      send_getNewEmptyAwb(providerId, type, orderQuantity);
796
      return recv_getNewEmptyAwb();
797
    }
798
 
799
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
800
    {
801
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
802
      args.setProviderId(providerId);
803
      args.setType(type);
804
      args.setOrderQuantity(orderQuantity);
805
      sendBase("getNewEmptyAwb", args);
806
    }
807
 
808
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
809
    {
810
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
811
      receiveBase(result, "getNewEmptyAwb");
812
      if (result.isSetSuccess()) {
813
        return result.success;
814
      }
815
      if (result.se != null) {
816
        throw result.se;
817
      }
818
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
819
    }
820
 
821
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
822
    {
823
      send_getProviderLimitDetailsForPincode(providerId, pincode);
824
      return recv_getProviderLimitDetailsForPincode();
825
    }
826
 
827
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
828
    {
829
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
830
      args.setProviderId(providerId);
831
      args.setPincode(pincode);
832
      sendBase("getProviderLimitDetailsForPincode", args);
833
    }
834
 
835
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
836
    {
837
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
838
      receiveBase(result, "getProviderLimitDetailsForPincode");
839
      if (result.isSetSuccess()) {
840
        return result.success;
841
      }
842
      if (result.se != null) {
843
        throw result.se;
844
      }
845
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
846
    }
847
 
19413 amit.gupta 848
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
849
    {
850
      send_getLocationInfoMap(destPincode, price);
851
      return recv_getLocationInfoMap();
852
    }
853
 
854
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
855
    {
856
      getLocationInfoMap_args args = new getLocationInfoMap_args();
857
      args.setDestPincode(destPincode);
858
      args.setPrice(price);
859
      sendBase("getLocationInfoMap", args);
860
    }
861
 
862
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
863
    {
864
      getLocationInfoMap_result result = new getLocationInfoMap_result();
865
      receiveBase(result, "getLocationInfoMap");
866
      if (result.isSetSuccess()) {
867
        return result.success;
868
      }
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
870
    }
871
 
19474 manish.sha 872
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException
19421 manish.sha 873
    {
19474 manish.sha 874
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn);
19421 manish.sha 875
      return recv_getCostingAndDeliveryEstimateForPincode();
876
    }
877
 
19474 manish.sha 878
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws org.apache.thrift.TException
19421 manish.sha 879
    {
880
      getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
881
      args.setPincode(pincode);
882
      args.setTransactionAmount(transactionAmount);
883
      args.setIsCod(isCod);
884
      args.setWeight(weight);
885
      args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 886
      args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 887
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
888
    }
889
 
890
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
891
    {
892
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
893
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
894
      if (result.isSetSuccess()) {
895
        return result.success;
896
      }
897
      if (result.se != null) {
898
        throw result.se;
899
      }
900
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
901
    }
902
 
412 ashish 903
  }
3430 rajveer 904
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
905
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
906
      private org.apache.thrift.async.TAsyncClientManager clientManager;
907
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
908
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
909
        this.clientManager = clientManager;
910
        this.protocolFactory = protocolFactory;
911
      }
912
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
913
        return new AsyncClient(protocolFactory, clientManager, transport);
914
      }
412 ashish 915
    }
916
 
3430 rajveer 917
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
918
      super(protocolFactory, clientManager, transport);
919
    }
412 ashish 920
 
3430 rajveer 921
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
922
      checkReady();
923
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
924
      this.___currentMethod = method_call;
925
      ___manager.call(method_call);
926
    }
927
 
928
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
929
      private long providerId;
930
      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 {
931
        super(client, protocolFactory, transport, resultHandler, false);
932
        this.providerId = providerId;
412 ashish 933
      }
3430 rajveer 934
 
935
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
936
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
937
        getProvider_args args = new getProvider_args();
938
        args.setProviderId(providerId);
939
        args.write(prot);
940
        prot.writeMessageEnd();
941
      }
942
 
943
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
944
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
945
          throw new IllegalStateException("Method call not finished!");
946
        }
947
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
948
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
949
        return (new Client(prot)).recv_getProvider();
950
      }
412 ashish 951
    }
952
 
3430 rajveer 953
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
954
      checkReady();
955
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
956
      this.___currentMethod = method_call;
957
      ___manager.call(method_call);
958
    }
959
 
960
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
961
      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 {
962
        super(client, protocolFactory, transport, resultHandler, false);
963
      }
964
 
965
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
966
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
967
        getAllProviders_args args = new getAllProviders_args();
968
        args.write(prot);
969
        prot.writeMessageEnd();
970
      }
971
 
972
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
973
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
974
          throw new IllegalStateException("Method call not finished!");
975
        }
976
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
977
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
978
        return (new Client(prot)).recv_getAllProviders();
979
      }
980
    }
981
 
4630 mandeep.dh 982
    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 983
      checkReady();
4630 mandeep.dh 984
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 985
      this.___currentMethod = method_call;
986
      ___manager.call(method_call);
987
    }
988
 
989
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
990
      private long itemId;
991
      private String destination_pin;
4630 mandeep.dh 992
      private DeliveryType type;
993
      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 994
        super(client, protocolFactory, transport, resultHandler, false);
995
        this.itemId = itemId;
996
        this.destination_pin = destination_pin;
4630 mandeep.dh 997
        this.type = type;
3430 rajveer 998
      }
999
 
1000
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1001
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1002
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1003
        args.setItemId(itemId);
1004
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1005
        args.setType(type);
3430 rajveer 1006
        args.write(prot);
1007
        prot.writeMessageEnd();
1008
      }
1009
 
1010
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1011
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1012
          throw new IllegalStateException("Method call not finished!");
1013
        }
1014
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1015
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1016
        return (new Client(prot)).recv_getLogisticsEstimation();
1017
      }
1018
    }
1019
 
7256 rajveer 1020
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1021
      checkReady();
1022
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1023
      this.___currentMethod = method_call;
1024
      ___manager.call(method_call);
1025
    }
1026
 
1027
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1028
      private long itemId;
1029
      private String destination_pin;
1030
      private DeliveryType type;
1031
      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 {
1032
        super(client, protocolFactory, transport, resultHandler, false);
1033
        this.itemId = itemId;
1034
        this.destination_pin = destination_pin;
1035
        this.type = type;
1036
      }
1037
 
1038
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1039
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1040
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1041
        args.setItemId(itemId);
1042
        args.setDestination_pin(destination_pin);
1043
        args.setType(type);
1044
        args.write(prot);
1045
        prot.writeMessageEnd();
1046
      }
1047
 
1048
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1049
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1050
          throw new IllegalStateException("Method call not finished!");
1051
        }
1052
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1053
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1054
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1055
      }
1056
    }
1057
 
5766 rajveer 1058
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1059
      checkReady();
5766 rajveer 1060
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1061
      this.___currentMethod = method_call;
1062
      ___manager.call(method_call);
1063
    }
1064
 
1065
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1066
      private String destination_pincode;
1067
      private long item_id;
1068
      private DeliveryType type;
5766 rajveer 1069
      private PickUpType pickUp;
1070
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1071
        super(client, protocolFactory, transport, resultHandler, false);
1072
        this.destination_pincode = destination_pincode;
1073
        this.item_id = item_id;
1074
        this.type = type;
5766 rajveer 1075
        this.pickUp = pickUp;
3430 rajveer 1076
      }
1077
 
1078
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1079
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1080
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1081
        args.setDestination_pincode(destination_pincode);
1082
        args.setItem_id(item_id);
1083
        args.setType(type);
5766 rajveer 1084
        args.setPickUp(pickUp);
3430 rajveer 1085
        args.write(prot);
1086
        prot.writeMessageEnd();
1087
      }
1088
 
1089
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1090
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1091
          throw new IllegalStateException("Method call not finished!");
1092
        }
1093
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1095
        return (new Client(prot)).recv_getLogisticsInfo();
1096
      }
1097
    }
1098
 
20724 kshitij.so 1099
    public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1100
      checkReady();
20724 kshitij.so 1101
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, logisticsTransactionId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1102
      this.___currentMethod = method_call;
1103
      ___manager.call(method_call);
1104
    }
1105
 
1106
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1107
      private long providerId;
20724 kshitij.so 1108
      private String logisticsTransactionId;
1109
      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 1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.providerId = providerId;
20724 kshitij.so 1112
        this.logisticsTransactionId = logisticsTransactionId;
3430 rajveer 1113
      }
1114
 
1115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1117
        getEmptyAWB_args args = new getEmptyAWB_args();
1118
        args.setProviderId(providerId);
20724 kshitij.so 1119
        args.setLogisticsTransactionId(logisticsTransactionId);
3430 rajveer 1120
        args.write(prot);
1121
        prot.writeMessageEnd();
1122
      }
1123
 
1124
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1125
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1126
          throw new IllegalStateException("Method call not finished!");
1127
        }
1128
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1129
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1130
        return (new Client(prot)).recv_getEmptyAWB();
1131
      }
1132
    }
1133
 
6643 rajveer 1134
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1135
      checkReady();
6643 rajveer 1136
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1137
      this.___currentMethod = method_call;
1138
      ___manager.call(method_call);
1139
    }
1140
 
1141
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1142
      private String awbNumber;
3430 rajveer 1143
      private long providerId;
6643 rajveer 1144
      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 1145
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1146
        this.awbNumber = awbNumber;
3430 rajveer 1147
        this.providerId = providerId;
1148
      }
1149
 
1150
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1151
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1152
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1153
        args.setAwbNumber(awbNumber);
3430 rajveer 1154
        args.setProviderId(providerId);
1155
        args.write(prot);
1156
        prot.writeMessageEnd();
1157
      }
1158
 
1159
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1160
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1161
          throw new IllegalStateException("Method call not finished!");
1162
        }
1163
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1164
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1165
        return (new Client(prot)).recv_getShipmentInfo();
1166
      }
1167
    }
1168
 
6643 rajveer 1169
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1170
      checkReady();
1171
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1172
      this.___currentMethod = method_call;
1173
      ___manager.call(method_call);
1174
    }
1175
 
1176
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1177
      private AwbUpdate update;
1178
      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 {
1179
        super(client, protocolFactory, transport, resultHandler, false);
1180
        this.update = update;
1181
      }
1182
 
1183
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1184
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1185
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1186
        args.setUpdate(update);
1187
        args.write(prot);
1188
        prot.writeMessageEnd();
1189
      }
1190
 
1191
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1192
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1193
          throw new IllegalStateException("Method call not finished!");
1194
        }
1195
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1196
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1197
        (new Client(prot)).recv_storeShipmentInfo();
1198
      }
1199
    }
1200
 
3430 rajveer 1201
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1202
      checkReady();
1203
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1204
      this.___currentMethod = method_call;
1205
      ___manager.call(method_call);
1206
    }
1207
 
1208
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1209
      private long providerId;
1210
      private String pinCode;
1211
      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 {
1212
        super(client, protocolFactory, transport, resultHandler, false);
1213
        this.providerId = providerId;
1214
        this.pinCode = pinCode;
1215
      }
1216
 
1217
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1218
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1219
        getDestinationCode_args args = new getDestinationCode_args();
1220
        args.setProviderId(providerId);
1221
        args.setPinCode(pinCode);
1222
        args.write(prot);
1223
        prot.writeMessageEnd();
1224
      }
1225
 
1226
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1228
          throw new IllegalStateException("Method call not finished!");
1229
        }
1230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1232
        return (new Client(prot)).recv_getDestinationCode();
1233
      }
1234
    }
1235
 
1236
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1237
      checkReady();
1238
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1239
      this.___currentMethod = method_call;
1240
      ___manager.call(method_call);
1241
    }
1242
 
1243
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1244
      private long providerId;
1245
      private String type;
1246
      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 {
1247
        super(client, protocolFactory, transport, resultHandler, false);
1248
        this.providerId = providerId;
1249
        this.type = type;
1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1255
        args.setProviderId(providerId);
1256
        args.setType(type);
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public long getResult() throws org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getFreeAwbCount();
1268
      }
1269
    }
1270
 
1271
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private long fromDate;
1280
      private long toDate;
1281
      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 {
1282
        super(client, protocolFactory, transport, resultHandler, false);
1283
        this.fromDate = fromDate;
1284
        this.toDate = toDate;
1285
      }
1286
 
1287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1289
        getHolidays_args args = new getHolidays_args();
1290
        args.setFromDate(fromDate);
1291
        args.setToDate(toDate);
1292
        args.write(prot);
1293
        prot.writeMessageEnd();
1294
      }
1295
 
1296
      public List<Long> getResult() throws org.apache.thrift.TException {
1297
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1298
          throw new IllegalStateException("Method call not finished!");
1299
        }
1300
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1301
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1302
        return (new Client(prot)).recv_getHolidays();
1303
      }
1304
    }
1305
 
4934 amit.gupta 1306
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1307
      checkReady();
1308
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1309
      this.___currentMethod = method_call;
1310
      ___manager.call(method_call);
1311
    }
1312
 
1313
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1314
      private long catalogItemId;
1315
      private String destination_pin;
1316
      private DeliveryType type;
1317
      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 {
1318
        super(client, protocolFactory, transport, resultHandler, false);
1319
        this.catalogItemId = catalogItemId;
1320
        this.destination_pin = destination_pin;
1321
        this.type = type;
1322
      }
1323
 
1324
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1325
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1326
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1327
        args.setCatalogItemId(catalogItemId);
1328
        args.setDestination_pin(destination_pin);
1329
        args.setType(type);
1330
        args.write(prot);
1331
        prot.writeMessageEnd();
1332
      }
1333
 
9840 amit.gupta 1334
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1335
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1336
          throw new IllegalStateException("Method call not finished!");
1337
        }
1338
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1339
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1340
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1341
      }
1342
    }
1343
 
5527 anupam.sin 1344
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1345
      checkReady();
1346
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1347
      this.___currentMethod = method_call;
1348
      ___manager.call(method_call);
1349
    }
1350
 
1351
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1352
      private long pickUp;
1353
      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 {
1354
        super(client, protocolFactory, transport, resultHandler, false);
1355
        this.pickUp = pickUp;
1356
      }
1357
 
1358
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1359
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1360
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1361
        args.setPickUp(pickUp);
1362
        args.write(prot);
1363
        prot.writeMessageEnd();
1364
      }
1365
 
1366
      public long getResult() throws org.apache.thrift.TException {
1367
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1368
          throw new IllegalStateException("Method call not finished!");
1369
        }
1370
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1372
        return (new Client(prot)).recv_getProviderForPickupType();
1373
      }
1374
    }
1375
 
5553 rajveer 1376
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1377
      checkReady();
1378
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1379
      this.___currentMethod = method_call;
1380
      ___manager.call(method_call);
1381
    }
1382
 
1383
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1384
      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 {
1385
        super(client, protocolFactory, transport, resultHandler, false);
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("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1390
        getAllPickupStores_args args = new getAllPickupStores_args();
1391
        args.write(prot);
1392
        prot.writeMessageEnd();
1393
      }
1394
 
1395
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1396
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1397
          throw new IllegalStateException("Method call not finished!");
1398
        }
1399
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1400
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1401
        return (new Client(prot)).recv_getAllPickupStores();
1402
      }
1403
    }
1404
 
1405
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1406
      checkReady();
1407
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1408
      this.___currentMethod = method_call;
1409
      ___manager.call(method_call);
1410
    }
1411
 
1412
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1413
      private long storeId;
1414
      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 {
1415
        super(client, protocolFactory, transport, resultHandler, false);
1416
        this.storeId = storeId;
1417
      }
1418
 
1419
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1420
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1421
        getPickupStore_args args = new getPickupStore_args();
1422
        args.setStoreId(storeId);
1423
        args.write(prot);
1424
        prot.writeMessageEnd();
1425
      }
1426
 
1427
      public PickupStore getResult() throws org.apache.thrift.TException {
1428
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1429
          throw new IllegalStateException("Method call not finished!");
1430
        }
1431
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1432
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1433
        return (new Client(prot)).recv_getPickupStore();
1434
      }
1435
    }
1436
 
5719 rajveer 1437
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1438
      checkReady();
1439
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1440
      this.___currentMethod = method_call;
1441
      ___manager.call(method_call);
1442
    }
1443
 
1444
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1445
      private String hotspotId;
1446
      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 {
1447
        super(client, protocolFactory, transport, resultHandler, false);
1448
        this.hotspotId = hotspotId;
1449
      }
1450
 
1451
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1452
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1453
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1454
        args.setHotspotId(hotspotId);
1455
        args.write(prot);
1456
        prot.writeMessageEnd();
1457
      }
1458
 
1459
      public PickupStore getResult() throws org.apache.thrift.TException {
1460
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1461
          throw new IllegalStateException("Method call not finished!");
1462
        }
1463
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1465
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1466
      }
1467
    }
1468
 
6524 rajveer 1469
    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 1470
      checkReady();
6524 rajveer 1471
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1472
      this.___currentMethod = method_call;
1473
      ___manager.call(method_call);
1474
    }
1475
 
1476
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1477
      private long providerId;
1478
      private String pincode;
1479
      private String destCode;
1480
      private boolean exp;
1481
      private boolean cod;
1482
      private int stationType;
6524 rajveer 1483
      private boolean otgAvailable;
1484
      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 1485
        super(client, protocolFactory, transport, resultHandler, false);
1486
        this.providerId = providerId;
1487
        this.pincode = pincode;
1488
        this.destCode = destCode;
1489
        this.exp = exp;
1490
        this.cod = cod;
1491
        this.stationType = stationType;
6524 rajveer 1492
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1493
      }
1494
 
1495
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1496
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1497
        addPincode_args args = new addPincode_args();
1498
        args.setProviderId(providerId);
1499
        args.setPincode(pincode);
1500
        args.setDestCode(destCode);
1501
        args.setExp(exp);
1502
        args.setCod(cod);
1503
        args.setStationType(stationType);
6524 rajveer 1504
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1505
        args.write(prot);
1506
        prot.writeMessageEnd();
1507
      }
1508
 
1509
      public void getResult() throws org.apache.thrift.TException {
1510
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1511
          throw new IllegalStateException("Method call not finished!");
1512
        }
1513
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1514
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1515
        (new Client(prot)).recv_addPincode();
1516
      }
1517
    }
1518
 
6524 rajveer 1519
    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 1520
      checkReady();
6524 rajveer 1521
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1522
      this.___currentMethod = method_call;
1523
      ___manager.call(method_call);
1524
    }
1525
 
1526
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1527
      private long providerId;
1528
      private String pincode;
1529
      private boolean exp;
1530
      private boolean cod;
6524 rajveer 1531
      private boolean otgAvailable;
1532
      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 1533
        super(client, protocolFactory, transport, resultHandler, false);
1534
        this.providerId = providerId;
1535
        this.pincode = pincode;
1536
        this.exp = exp;
1537
        this.cod = cod;
6524 rajveer 1538
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1539
      }
1540
 
1541
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1542
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1543
        updatePincode_args args = new updatePincode_args();
1544
        args.setProviderId(providerId);
1545
        args.setPincode(pincode);
1546
        args.setExp(exp);
1547
        args.setCod(cod);
6524 rajveer 1548
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1549
        args.write(prot);
1550
        prot.writeMessageEnd();
1551
      }
1552
 
1553
      public void getResult() throws org.apache.thrift.TException {
1554
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1555
          throw new IllegalStateException("Method call not finished!");
1556
        }
1557
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1558
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1559
        (new Client(prot)).recv_updatePincode();
1560
      }
1561
    }
1562
 
13146 manish.sha 1563
    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 1564
      checkReady();
13146 manish.sha 1565
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1566
      this.___currentMethod = method_call;
1567
      ___manager.call(method_call);
1568
    }
1569
 
1570
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1571
      private long providerId;
1572
      private boolean cod;
1573
      private List<String> awbs;
13146 manish.sha 1574
      private long awbUsedFor;
1575
      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 1576
        super(client, protocolFactory, transport, resultHandler, false);
1577
        this.providerId = providerId;
1578
        this.cod = cod;
1579
        this.awbs = awbs;
13146 manish.sha 1580
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1581
      }
1582
 
1583
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1584
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1585
        addNewAwbs_args args = new addNewAwbs_args();
1586
        args.setProviderId(providerId);
1587
        args.setCod(cod);
1588
        args.setAwbs(awbs);
13146 manish.sha 1589
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1590
        args.write(prot);
1591
        prot.writeMessageEnd();
1592
      }
1593
 
1594
      public boolean getResult() throws org.apache.thrift.TException {
1595
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1596
          throw new IllegalStateException("Method call not finished!");
1597
        }
1598
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1599
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1600
        return (new Client(prot)).recv_addNewAwbs();
1601
      }
1602
    }
1603
 
7788 manish.sha 1604
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1605
      checkReady();
7788 manish.sha 1606
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1607
      this.___currentMethod = method_call;
1608
      ___manager.call(method_call);
1609
    }
1610
 
7788 manish.sha 1611
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1612
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1613
      private boolean runCompleteUpdate;
1614
      public runLogisticsLocationInfoUpdate_call(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
7737 manish.sha 1615
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1616
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1617
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1618
      }
1619
 
1620
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1621
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1622
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1623
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1624
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1625
        args.write(prot);
1626
        prot.writeMessageEnd();
1627
      }
1628
 
1629
      public void getResult() throws org.apache.thrift.TException {
1630
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1631
          throw new IllegalStateException("Method call not finished!");
1632
        }
1633
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1634
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1635
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1636
      }
1637
    }
1638
 
7888 rajveer 1639
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1640
      checkReady();
1641
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1642
      this.___currentMethod = method_call;
1643
      ___manager.call(method_call);
1644
    }
1645
 
1646
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1647
      private long startDate;
1648
      private long days;
1649
      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 {
1650
        super(client, protocolFactory, transport, resultHandler, false);
1651
        this.startDate = startDate;
1652
        this.days = days;
1653
      }
1654
 
1655
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1656
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1657
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1658
        args.setStartDate(startDate);
1659
        args.setDays(days);
1660
        args.write(prot);
1661
        prot.writeMessageEnd();
1662
      }
1663
 
1664
      public long getResult() throws org.apache.thrift.TException {
1665
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1666
          throw new IllegalStateException("Method call not finished!");
1667
        }
1668
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1670
        return (new Client(prot)).recv_adjustDeliveryDays();
1671
      }
1672
    }
1673
 
12895 manish.sha 1674
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1675
      checkReady();
1676
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1677
      this.___currentMethod = method_call;
1678
      ___manager.call(method_call);
1679
    }
1680
 
1681
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1682
      private String pincode;
1683
      private long whLocation;
1684
      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 {
1685
        super(client, protocolFactory, transport, resultHandler, false);
1686
        this.pincode = pincode;
1687
        this.whLocation = whLocation;
1688
      }
1689
 
1690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1692
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1693
        args.setPincode(pincode);
1694
        args.setWhLocation(whLocation);
1695
        args.write(prot);
1696
        prot.writeMessageEnd();
1697
      }
1698
 
1699
      public long getResult() throws org.apache.thrift.TException {
1700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1701
          throw new IllegalStateException("Method call not finished!");
1702
        }
1703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1705
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1706
      }
1707
    }
1708
 
13146 manish.sha 1709
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1710
      checkReady();
1711
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1712
      this.___currentMethod = method_call;
1713
      ___manager.call(method_call);
1714
    }
1715
 
1716
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1717
      private long providerId;
1718
      private DeliveryType type;
1719
      private long orderQuantity;
1720
      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 {
1721
        super(client, protocolFactory, transport, resultHandler, false);
1722
        this.providerId = providerId;
1723
        this.type = type;
1724
        this.orderQuantity = orderQuantity;
1725
      }
1726
 
1727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1729
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1730
        args.setProviderId(providerId);
1731
        args.setType(type);
1732
        args.setOrderQuantity(orderQuantity);
1733
        args.write(prot);
1734
        prot.writeMessageEnd();
1735
      }
1736
 
1737
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1739
          throw new IllegalStateException("Method call not finished!");
1740
        }
1741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        return (new Client(prot)).recv_getNewEmptyAwb();
1744
      }
1745
    }
1746
 
1747
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1748
      checkReady();
1749
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1750
      this.___currentMethod = method_call;
1751
      ___manager.call(method_call);
1752
    }
1753
 
1754
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1755
      private long providerId;
1756
      private String pincode;
1757
      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 {
1758
        super(client, protocolFactory, transport, resultHandler, false);
1759
        this.providerId = providerId;
1760
        this.pincode = pincode;
1761
      }
1762
 
1763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1765
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1766
        args.setProviderId(providerId);
1767
        args.setPincode(pincode);
1768
        args.write(prot);
1769
        prot.writeMessageEnd();
1770
      }
1771
 
1772
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1774
          throw new IllegalStateException("Method call not finished!");
1775
        }
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1779
      }
1780
    }
1781
 
19413 amit.gupta 1782
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1783
      checkReady();
1784
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1785
      this.___currentMethod = method_call;
1786
      ___manager.call(method_call);
1787
    }
1788
 
1789
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1790
      private String destPincode;
1791
      private List<Long> price;
1792
      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 {
1793
        super(client, protocolFactory, transport, resultHandler, false);
1794
        this.destPincode = destPincode;
1795
        this.price = price;
1796
      }
1797
 
1798
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1799
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1800
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1801
        args.setDestPincode(destPincode);
1802
        args.setPrice(price);
1803
        args.write(prot);
1804
        prot.writeMessageEnd();
1805
      }
1806
 
1807
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1809
          throw new IllegalStateException("Method call not finished!");
1810
        }
1811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1813
        return (new Client(prot)).recv_getLocationInfoMap();
1814
      }
1815
    }
1816
 
19474 manish.sha 1817
    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 1818
      checkReady();
19474 manish.sha 1819
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, isCompleteTxn, resultHandler, this, ___protocolFactory, ___transport);
19421 manish.sha 1820
      this.___currentMethod = method_call;
1821
      ___manager.call(method_call);
1822
    }
1823
 
1824
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1825
      private String pincode;
1826
      private double transactionAmount;
1827
      private boolean isCod;
1828
      private double weight;
1829
      private long billingWarehouseId;
19474 manish.sha 1830
      private boolean isCompleteTxn;
1831
      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 1832
        super(client, protocolFactory, transport, resultHandler, false);
1833
        this.pincode = pincode;
1834
        this.transactionAmount = transactionAmount;
1835
        this.isCod = isCod;
1836
        this.weight = weight;
1837
        this.billingWarehouseId = billingWarehouseId;
19474 manish.sha 1838
        this.isCompleteTxn = isCompleteTxn;
19421 manish.sha 1839
      }
1840
 
1841
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1842
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1843
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1844
        args.setPincode(pincode);
1845
        args.setTransactionAmount(transactionAmount);
1846
        args.setIsCod(isCod);
1847
        args.setWeight(weight);
1848
        args.setBillingWarehouseId(billingWarehouseId);
19474 manish.sha 1849
        args.setIsCompleteTxn(isCompleteTxn);
19421 manish.sha 1850
        args.write(prot);
1851
        prot.writeMessageEnd();
1852
      }
1853
 
1854
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1855
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1856
          throw new IllegalStateException("Method call not finished!");
1857
        }
1858
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1859
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1860
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1861
      }
1862
    }
1863
 
3430 rajveer 1864
  }
1865
 
1866
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1867
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1868
    public Processor(I iface) {
1869
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1870
    }
1871
 
1872
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1873
      super(iface, getProcessMap(processMap));
1874
    }
1875
 
1876
    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) {
1877
      processMap.put("getProvider", new getProvider());
1878
      processMap.put("getAllProviders", new getAllProviders());
1879
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1880
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1881
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1882
      processMap.put("getEmptyAWB", new getEmptyAWB());
1883
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1884
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1885
      processMap.put("getDestinationCode", new getDestinationCode());
1886
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1887
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1888
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1889
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1890
      processMap.put("getAllPickupStores", new getAllPickupStores());
1891
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1892
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1893
      processMap.put("addPincode", new addPincode());
1894
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1895
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1896
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1897
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1898
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1899
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1900
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 1901
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 1902
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
3430 rajveer 1903
      return processMap;
1904
    }
1905
 
1906
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1907
      public getProvider() {
1908
        super("getProvider");
1909
      }
1910
 
1911
      protected getProvider_args getEmptyArgsInstance() {
1912
        return new getProvider_args();
1913
      }
1914
 
1915
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1916
        getProvider_result result = new getProvider_result();
1917
        try {
3430 rajveer 1918
          result.success = iface.getProvider(args.providerId);
668 chandransh 1919
        } catch (LogisticsServiceException lse) {
1920
          result.lse = lse;
1921
        }
3430 rajveer 1922
        return result;
668 chandransh 1923
      }
1924
    }
1925
 
3430 rajveer 1926
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1927
      public getAllProviders() {
1928
        super("getAllProviders");
1929
      }
1930
 
1931
      protected getAllProviders_args getEmptyArgsInstance() {
1932
        return new getAllProviders_args();
1933
      }
1934
 
1935
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1936
        getAllProviders_result result = new getAllProviders_result();
1937
        try {
3430 rajveer 1938
          result.success = iface.getAllProviders();
674 chandransh 1939
        } catch (LogisticsServiceException lse) {
1940
          result.lse = lse;
1941
        }
3430 rajveer 1942
        return result;
674 chandransh 1943
      }
1944
    }
1945
 
3430 rajveer 1946
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1947
      public getLogisticsEstimation() {
1948
        super("getLogisticsEstimation");
1949
      }
1950
 
1951
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1952
        return new getLogisticsEstimation_args();
1953
      }
1954
 
1955
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1956
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1957
        try {
4630 mandeep.dh 1958
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1959
        } catch (LogisticsServiceException se) {
1960
          result.se = se;
1961
        }
3430 rajveer 1962
        return result;
483 rajveer 1963
      }
1964
    }
1965
 
7256 rajveer 1966
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1967
      public getLogisticsEstimationForStore() {
1968
        super("getLogisticsEstimationForStore");
1969
      }
1970
 
1971
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1972
        return new getLogisticsEstimationForStore_args();
1973
      }
1974
 
1975
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1976
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1977
        try {
1978
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1979
        } catch (LogisticsServiceException se) {
1980
          result.se = se;
1981
        }
1982
        return result;
1983
      }
1984
    }
1985
 
3430 rajveer 1986
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1987
      public getLogisticsInfo() {
1988
        super("getLogisticsInfo");
1989
      }
1990
 
1991
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1992
        return new getLogisticsInfo_args();
1993
      }
1994
 
1995
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1996
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1997
        try {
5766 rajveer 1998
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1999
        } catch (LogisticsServiceException se) {
2000
          result.se = se;
2001
        }
3430 rajveer 2002
        return result;
471 rajveer 2003
      }
2004
    }
2005
 
3430 rajveer 2006
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2007
      public getEmptyAWB() {
2008
        super("getEmptyAWB");
2009
      }
2010
 
2011
      protected getEmptyAWB_args getEmptyArgsInstance() {
2012
        return new getEmptyAWB_args();
2013
      }
2014
 
2015
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2016
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2017
        try {
20724 kshitij.so 2018
          result.success = iface.getEmptyAWB(args.providerId, args.logisticsTransactionId);
648 chandransh 2019
        } catch (LogisticsServiceException se) {
2020
          result.se = se;
2021
        }
3430 rajveer 2022
        return result;
412 ashish 2023
      }
2024
    }
2025
 
3430 rajveer 2026
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2027
      public getShipmentInfo() {
2028
        super("getShipmentInfo");
2029
      }
2030
 
2031
      protected getShipmentInfo_args getEmptyArgsInstance() {
2032
        return new getShipmentInfo_args();
2033
      }
2034
 
2035
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2036
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2037
        try {
6643 rajveer 2038
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2039
        } catch (LogisticsServiceException se) {
2040
          result.se = se;
2041
        }
3430 rajveer 2042
        return result;
412 ashish 2043
      }
2044
    }
2045
 
6643 rajveer 2046
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2047
      public storeShipmentInfo() {
2048
        super("storeShipmentInfo");
2049
      }
2050
 
2051
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2052
        return new storeShipmentInfo_args();
2053
      }
2054
 
2055
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2056
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2057
        try {
2058
          iface.storeShipmentInfo(args.update);
2059
        } catch (LogisticsServiceException se) {
2060
          result.se = se;
2061
        }
2062
        return result;
2063
      }
2064
    }
2065
 
3430 rajveer 2066
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2067
      public getDestinationCode() {
2068
        super("getDestinationCode");
2069
      }
2070
 
2071
      protected getDestinationCode_args getEmptyArgsInstance() {
2072
        return new getDestinationCode_args();
2073
      }
2074
 
2075
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2076
        getDestinationCode_result result = new getDestinationCode_result();
2077
        try {
3430 rajveer 2078
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2079
        } catch (LogisticsServiceException se) {
2080
          result.se = se;
2081
        }
3430 rajveer 2082
        return result;
730 chandransh 2083
      }
2084
    }
2085
 
3430 rajveer 2086
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2087
      public getFreeAwbCount() {
2088
        super("getFreeAwbCount");
2089
      }
2090
 
2091
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2092
        return new getFreeAwbCount_args();
2093
      }
2094
 
2095
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2096
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2097
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2098
        result.setSuccessIsSet(true);
3430 rajveer 2099
        return result;
1139 chandransh 2100
      }
2101
    }
2102
 
3430 rajveer 2103
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2104
      public getHolidays() {
2105
        super("getHolidays");
2106
      }
2107
 
2108
      protected getHolidays_args getEmptyArgsInstance() {
2109
        return new getHolidays_args();
2110
      }
2111
 
2112
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2113
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2114
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2115
        return result;
1730 ankur.sing 2116
      }
2117
    }
2118
 
4934 amit.gupta 2119
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2120
      public getEntityLogisticsEstimation() {
2121
        super("getEntityLogisticsEstimation");
2122
      }
2123
 
2124
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2125
        return new getEntityLogisticsEstimation_args();
2126
      }
2127
 
2128
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2129
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2130
        try {
2131
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2132
        } catch (LogisticsServiceException se) {
2133
          result.se = se;
2134
        }
2135
        return result;
2136
      }
2137
    }
2138
 
5527 anupam.sin 2139
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2140
      public getProviderForPickupType() {
2141
        super("getProviderForPickupType");
2142
      }
2143
 
2144
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2145
        return new getProviderForPickupType_args();
2146
      }
2147
 
2148
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2149
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2150
        result.success = iface.getProviderForPickupType(args.pickUp);
2151
        result.setSuccessIsSet(true);
2152
        return result;
2153
      }
2154
    }
2155
 
5553 rajveer 2156
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2157
      public getAllPickupStores() {
2158
        super("getAllPickupStores");
2159
      }
2160
 
2161
      protected getAllPickupStores_args getEmptyArgsInstance() {
2162
        return new getAllPickupStores_args();
2163
      }
2164
 
2165
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2166
        getAllPickupStores_result result = new getAllPickupStores_result();
2167
        result.success = iface.getAllPickupStores();
2168
        return result;
2169
      }
2170
    }
2171
 
2172
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2173
      public getPickupStore() {
2174
        super("getPickupStore");
2175
      }
2176
 
2177
      protected getPickupStore_args getEmptyArgsInstance() {
2178
        return new getPickupStore_args();
2179
      }
2180
 
2181
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2182
        getPickupStore_result result = new getPickupStore_result();
2183
        result.success = iface.getPickupStore(args.storeId);
2184
        return result;
2185
      }
2186
    }
2187
 
5719 rajveer 2188
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2189
      public getPickupStoreByHotspotId() {
2190
        super("getPickupStoreByHotspotId");
2191
      }
2192
 
2193
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2194
        return new getPickupStoreByHotspotId_args();
2195
      }
2196
 
2197
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2198
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2199
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2200
        return result;
2201
      }
2202
    }
2203
 
6322 amar.kumar 2204
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2205
      public addPincode() {
2206
        super("addPincode");
2207
      }
2208
 
2209
      protected addPincode_args getEmptyArgsInstance() {
2210
        return new addPincode_args();
2211
      }
2212
 
2213
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2214
        addPincode_result result = new addPincode_result();
6524 rajveer 2215
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2216
        return result;
2217
      }
2218
    }
2219
 
2220
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2221
      public updatePincode() {
2222
        super("updatePincode");
2223
      }
2224
 
2225
      protected updatePincode_args getEmptyArgsInstance() {
2226
        return new updatePincode_args();
2227
      }
2228
 
2229
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2230
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2231
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2232
        return result;
2233
      }
2234
    }
2235
 
7567 rajveer 2236
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2237
      public addNewAwbs() {
2238
        super("addNewAwbs");
2239
      }
2240
 
2241
      protected addNewAwbs_args getEmptyArgsInstance() {
2242
        return new addNewAwbs_args();
2243
      }
2244
 
2245
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2246
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2247
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2248
        result.setSuccessIsSet(true);
2249
        return result;
2250
      }
2251
    }
2252
 
7788 manish.sha 2253
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2254
      public runLogisticsLocationInfoUpdate() {
2255
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2256
      }
2257
 
7788 manish.sha 2258
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2259
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2260
      }
2261
 
7788 manish.sha 2262
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2263
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
2264
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 2265
        return result;
2266
      }
2267
    }
2268
 
7888 rajveer 2269
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2270
      public adjustDeliveryDays() {
2271
        super("adjustDeliveryDays");
2272
      }
2273
 
2274
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2275
        return new adjustDeliveryDays_args();
2276
      }
2277
 
2278
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2279
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2280
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2281
        result.setSuccessIsSet(true);
2282
        return result;
2283
      }
2284
    }
2285
 
12895 manish.sha 2286
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2287
      public getFirstDeliveryEstimateForWhLocation() {
2288
        super("getFirstDeliveryEstimateForWhLocation");
2289
      }
2290
 
2291
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2292
        return new getFirstDeliveryEstimateForWhLocation_args();
2293
      }
2294
 
2295
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2296
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2297
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2298
        result.setSuccessIsSet(true);
2299
        return result;
2300
      }
2301
    }
2302
 
13146 manish.sha 2303
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2304
      public getNewEmptyAwb() {
2305
        super("getNewEmptyAwb");
2306
      }
2307
 
2308
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2309
        return new getNewEmptyAwb_args();
2310
      }
2311
 
2312
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2313
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2314
        try {
2315
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2316
        } catch (LogisticsServiceException se) {
2317
          result.se = se;
2318
        }
2319
        return result;
2320
      }
2321
    }
2322
 
2323
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2324
      public getProviderLimitDetailsForPincode() {
2325
        super("getProviderLimitDetailsForPincode");
2326
      }
2327
 
2328
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2329
        return new getProviderLimitDetailsForPincode_args();
2330
      }
2331
 
2332
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2333
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2334
        try {
2335
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2336
        } catch (LogisticsServiceException se) {
2337
          result.se = se;
2338
        }
2339
        return result;
2340
      }
2341
    }
2342
 
19413 amit.gupta 2343
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2344
      public getLocationInfoMap() {
2345
        super("getLocationInfoMap");
2346
      }
2347
 
2348
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2349
        return new getLocationInfoMap_args();
2350
      }
2351
 
2352
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2353
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2354
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2355
        return result;
2356
      }
2357
    }
2358
 
19421 manish.sha 2359
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2360
      public getCostingAndDeliveryEstimateForPincode() {
2361
        super("getCostingAndDeliveryEstimateForPincode");
2362
      }
2363
 
2364
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2365
        return new getCostingAndDeliveryEstimateForPincode_args();
2366
      }
2367
 
2368
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2369
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2370
        try {
19474 manish.sha 2371
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId, args.isCompleteTxn);
19421 manish.sha 2372
        } catch (LogisticsServiceException se) {
2373
          result.se = se;
2374
        }
2375
        return result;
2376
      }
2377
    }
2378
 
412 ashish 2379
  }
2380
 
3430 rajveer 2381
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2383
 
3430 rajveer 2384
    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 2385
 
3430 rajveer 2386
    private long providerId; // required
668 chandransh 2387
 
2388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2390
      PROVIDER_ID((short)1, "providerId");
2391
 
2392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2393
 
2394
      static {
2395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2396
          byName.put(field.getFieldName(), field);
2397
        }
2398
      }
2399
 
2400
      /**
2401
       * Find the _Fields constant that matches fieldId, or null if its not found.
2402
       */
2403
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2404
        switch(fieldId) {
2405
          case 1: // PROVIDER_ID
2406
            return PROVIDER_ID;
2407
          default:
2408
            return null;
2409
        }
668 chandransh 2410
      }
2411
 
2412
      /**
2413
       * Find the _Fields constant that matches fieldId, throwing an exception
2414
       * if it is not found.
2415
       */
2416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2417
        _Fields fields = findByThriftId(fieldId);
2418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2419
        return fields;
2420
      }
2421
 
2422
      /**
2423
       * Find the _Fields constant that matches name, or null if its not found.
2424
       */
2425
      public static _Fields findByName(String name) {
2426
        return byName.get(name);
2427
      }
2428
 
2429
      private final short _thriftId;
2430
      private final String _fieldName;
2431
 
2432
      _Fields(short thriftId, String fieldName) {
2433
        _thriftId = thriftId;
2434
        _fieldName = fieldName;
2435
      }
2436
 
2437
      public short getThriftFieldId() {
2438
        return _thriftId;
2439
      }
2440
 
2441
      public String getFieldName() {
2442
        return _fieldName;
2443
      }
2444
    }
2445
 
2446
    // isset id assignments
2447
    private static final int __PROVIDERID_ISSET_ID = 0;
2448
    private BitSet __isset_bit_vector = new BitSet(1);
2449
 
3430 rajveer 2450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2451
    static {
3430 rajveer 2452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2453
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2457
    }
2458
 
2459
    public getProvider_args() {
2460
    }
2461
 
2462
    public getProvider_args(
2463
      long providerId)
2464
    {
2465
      this();
2466
      this.providerId = providerId;
2467
      setProviderIdIsSet(true);
2468
    }
2469
 
2470
    /**
2471
     * Performs a deep copy on <i>other</i>.
2472
     */
2473
    public getProvider_args(getProvider_args other) {
2474
      __isset_bit_vector.clear();
2475
      __isset_bit_vector.or(other.__isset_bit_vector);
2476
      this.providerId = other.providerId;
2477
    }
2478
 
2479
    public getProvider_args deepCopy() {
2480
      return new getProvider_args(this);
2481
    }
2482
 
3430 rajveer 2483
    @Override
2484
    public void clear() {
2485
      setProviderIdIsSet(false);
2486
      this.providerId = 0;
668 chandransh 2487
    }
2488
 
2489
    public long getProviderId() {
2490
      return this.providerId;
2491
    }
2492
 
3430 rajveer 2493
    public void setProviderId(long providerId) {
668 chandransh 2494
      this.providerId = providerId;
2495
      setProviderIdIsSet(true);
2496
    }
2497
 
2498
    public void unsetProviderId() {
2499
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2500
    }
2501
 
3430 rajveer 2502
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2503
    public boolean isSetProviderId() {
2504
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2505
    }
2506
 
2507
    public void setProviderIdIsSet(boolean value) {
2508
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2509
    }
2510
 
2511
    public void setFieldValue(_Fields field, Object value) {
2512
      switch (field) {
2513
      case PROVIDER_ID:
2514
        if (value == null) {
2515
          unsetProviderId();
2516
        } else {
2517
          setProviderId((Long)value);
2518
        }
2519
        break;
2520
 
2521
      }
2522
    }
2523
 
2524
    public Object getFieldValue(_Fields field) {
2525
      switch (field) {
2526
      case PROVIDER_ID:
3430 rajveer 2527
        return Long.valueOf(getProviderId());
668 chandransh 2528
 
2529
      }
2530
      throw new IllegalStateException();
2531
    }
2532
 
3430 rajveer 2533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2534
    public boolean isSet(_Fields field) {
2535
      if (field == null) {
2536
        throw new IllegalArgumentException();
2537
      }
668 chandransh 2538
 
2539
      switch (field) {
2540
      case PROVIDER_ID:
2541
        return isSetProviderId();
2542
      }
2543
      throw new IllegalStateException();
2544
    }
2545
 
2546
    @Override
2547
    public boolean equals(Object that) {
2548
      if (that == null)
2549
        return false;
2550
      if (that instanceof getProvider_args)
2551
        return this.equals((getProvider_args)that);
2552
      return false;
2553
    }
2554
 
2555
    public boolean equals(getProvider_args that) {
2556
      if (that == null)
2557
        return false;
2558
 
2559
      boolean this_present_providerId = true;
2560
      boolean that_present_providerId = true;
2561
      if (this_present_providerId || that_present_providerId) {
2562
        if (!(this_present_providerId && that_present_providerId))
2563
          return false;
2564
        if (this.providerId != that.providerId)
2565
          return false;
2566
      }
2567
 
2568
      return true;
2569
    }
2570
 
2571
    @Override
2572
    public int hashCode() {
2573
      return 0;
2574
    }
2575
 
2576
    public int compareTo(getProvider_args other) {
2577
      if (!getClass().equals(other.getClass())) {
2578
        return getClass().getName().compareTo(other.getClass().getName());
2579
      }
2580
 
2581
      int lastComparison = 0;
2582
      getProvider_args typedOther = (getProvider_args)other;
2583
 
3430 rajveer 2584
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2585
      if (lastComparison != 0) {
2586
        return lastComparison;
2587
      }
3430 rajveer 2588
      if (isSetProviderId()) {
2589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2590
        if (lastComparison != 0) {
2591
          return lastComparison;
2592
        }
668 chandransh 2593
      }
2594
      return 0;
2595
    }
2596
 
3430 rajveer 2597
    public _Fields fieldForId(int fieldId) {
2598
      return _Fields.findByThriftId(fieldId);
2599
    }
2600
 
2601
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2602
      org.apache.thrift.protocol.TField field;
668 chandransh 2603
      iprot.readStructBegin();
2604
      while (true)
2605
      {
2606
        field = iprot.readFieldBegin();
3430 rajveer 2607
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2608
          break;
2609
        }
3430 rajveer 2610
        switch (field.id) {
2611
          case 1: // PROVIDER_ID
2612
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2613
              this.providerId = iprot.readI64();
2614
              setProviderIdIsSet(true);
2615
            } else { 
2616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2617
            }
2618
            break;
2619
          default:
2620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2621
        }
3430 rajveer 2622
        iprot.readFieldEnd();
668 chandransh 2623
      }
2624
      iprot.readStructEnd();
2625
      validate();
2626
    }
2627
 
3430 rajveer 2628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2629
      validate();
2630
 
2631
      oprot.writeStructBegin(STRUCT_DESC);
2632
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2633
      oprot.writeI64(this.providerId);
2634
      oprot.writeFieldEnd();
2635
      oprot.writeFieldStop();
2636
      oprot.writeStructEnd();
2637
    }
2638
 
2639
    @Override
2640
    public String toString() {
2641
      StringBuilder sb = new StringBuilder("getProvider_args(");
2642
      boolean first = true;
2643
 
2644
      sb.append("providerId:");
2645
      sb.append(this.providerId);
2646
      first = false;
2647
      sb.append(")");
2648
      return sb.toString();
2649
    }
2650
 
3430 rajveer 2651
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2652
      // check for required fields
2653
    }
2654
 
3430 rajveer 2655
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2656
      try {
2657
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2658
      } catch (org.apache.thrift.TException te) {
2659
        throw new java.io.IOException(te);
2660
      }
2661
    }
2662
 
2663
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2664
      try {
2665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2666
      } catch (org.apache.thrift.TException te) {
2667
        throw new java.io.IOException(te);
2668
      }
2669
    }
2670
 
668 chandransh 2671
  }
2672
 
3430 rajveer 2673
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2675
 
3430 rajveer 2676
    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);
2677
    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 2678
 
3430 rajveer 2679
    private Provider success; // required
2680
    private LogisticsServiceException lse; // required
668 chandransh 2681
 
2682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2684
      SUCCESS((short)0, "success"),
2685
      LSE((short)1, "lse");
2686
 
2687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2688
 
2689
      static {
2690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2691
          byName.put(field.getFieldName(), field);
2692
        }
2693
      }
2694
 
2695
      /**
2696
       * Find the _Fields constant that matches fieldId, or null if its not found.
2697
       */
2698
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2699
        switch(fieldId) {
2700
          case 0: // SUCCESS
2701
            return SUCCESS;
2702
          case 1: // LSE
2703
            return LSE;
2704
          default:
2705
            return null;
2706
        }
668 chandransh 2707
      }
2708
 
2709
      /**
2710
       * Find the _Fields constant that matches fieldId, throwing an exception
2711
       * if it is not found.
2712
       */
2713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2714
        _Fields fields = findByThriftId(fieldId);
2715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2716
        return fields;
2717
      }
2718
 
2719
      /**
2720
       * Find the _Fields constant that matches name, or null if its not found.
2721
       */
2722
      public static _Fields findByName(String name) {
2723
        return byName.get(name);
2724
      }
2725
 
2726
      private final short _thriftId;
2727
      private final String _fieldName;
2728
 
2729
      _Fields(short thriftId, String fieldName) {
2730
        _thriftId = thriftId;
2731
        _fieldName = fieldName;
2732
      }
2733
 
2734
      public short getThriftFieldId() {
2735
        return _thriftId;
2736
      }
2737
 
2738
      public String getFieldName() {
2739
        return _fieldName;
2740
      }
2741
    }
2742
 
2743
    // isset id assignments
2744
 
3430 rajveer 2745
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2746
    static {
3430 rajveer 2747
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2748
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2749
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2750
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2754
    }
2755
 
2756
    public getProvider_result() {
2757
    }
2758
 
2759
    public getProvider_result(
2760
      Provider success,
2761
      LogisticsServiceException lse)
2762
    {
2763
      this();
2764
      this.success = success;
2765
      this.lse = lse;
2766
    }
2767
 
2768
    /**
2769
     * Performs a deep copy on <i>other</i>.
2770
     */
2771
    public getProvider_result(getProvider_result other) {
2772
      if (other.isSetSuccess()) {
2773
        this.success = new Provider(other.success);
2774
      }
2775
      if (other.isSetLse()) {
2776
        this.lse = new LogisticsServiceException(other.lse);
2777
      }
2778
    }
2779
 
2780
    public getProvider_result deepCopy() {
2781
      return new getProvider_result(this);
2782
    }
2783
 
3430 rajveer 2784
    @Override
2785
    public void clear() {
2786
      this.success = null;
2787
      this.lse = null;
668 chandransh 2788
    }
2789
 
2790
    public Provider getSuccess() {
2791
      return this.success;
2792
    }
2793
 
3430 rajveer 2794
    public void setSuccess(Provider success) {
668 chandransh 2795
      this.success = success;
2796
    }
2797
 
2798
    public void unsetSuccess() {
2799
      this.success = null;
2800
    }
2801
 
3430 rajveer 2802
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2803
    public boolean isSetSuccess() {
2804
      return this.success != null;
2805
    }
2806
 
2807
    public void setSuccessIsSet(boolean value) {
2808
      if (!value) {
2809
        this.success = null;
2810
      }
2811
    }
2812
 
2813
    public LogisticsServiceException getLse() {
2814
      return this.lse;
2815
    }
2816
 
3430 rajveer 2817
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2818
      this.lse = lse;
2819
    }
2820
 
2821
    public void unsetLse() {
2822
      this.lse = null;
2823
    }
2824
 
3430 rajveer 2825
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2826
    public boolean isSetLse() {
2827
      return this.lse != null;
2828
    }
2829
 
2830
    public void setLseIsSet(boolean value) {
2831
      if (!value) {
2832
        this.lse = null;
2833
      }
2834
    }
2835
 
2836
    public void setFieldValue(_Fields field, Object value) {
2837
      switch (field) {
2838
      case SUCCESS:
2839
        if (value == null) {
2840
          unsetSuccess();
2841
        } else {
2842
          setSuccess((Provider)value);
2843
        }
2844
        break;
2845
 
2846
      case LSE:
2847
        if (value == null) {
2848
          unsetLse();
2849
        } else {
2850
          setLse((LogisticsServiceException)value);
2851
        }
2852
        break;
2853
 
2854
      }
2855
    }
2856
 
2857
    public Object getFieldValue(_Fields field) {
2858
      switch (field) {
2859
      case SUCCESS:
2860
        return getSuccess();
2861
 
2862
      case LSE:
2863
        return getLse();
2864
 
2865
      }
2866
      throw new IllegalStateException();
2867
    }
2868
 
3430 rajveer 2869
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2870
    public boolean isSet(_Fields field) {
2871
      if (field == null) {
2872
        throw new IllegalArgumentException();
2873
      }
668 chandransh 2874
 
2875
      switch (field) {
2876
      case SUCCESS:
2877
        return isSetSuccess();
2878
      case LSE:
2879
        return isSetLse();
2880
      }
2881
      throw new IllegalStateException();
2882
    }
2883
 
2884
    @Override
2885
    public boolean equals(Object that) {
2886
      if (that == null)
2887
        return false;
2888
      if (that instanceof getProvider_result)
2889
        return this.equals((getProvider_result)that);
2890
      return false;
2891
    }
2892
 
2893
    public boolean equals(getProvider_result that) {
2894
      if (that == null)
2895
        return false;
2896
 
2897
      boolean this_present_success = true && this.isSetSuccess();
2898
      boolean that_present_success = true && that.isSetSuccess();
2899
      if (this_present_success || that_present_success) {
2900
        if (!(this_present_success && that_present_success))
2901
          return false;
2902
        if (!this.success.equals(that.success))
2903
          return false;
2904
      }
2905
 
2906
      boolean this_present_lse = true && this.isSetLse();
2907
      boolean that_present_lse = true && that.isSetLse();
2908
      if (this_present_lse || that_present_lse) {
2909
        if (!(this_present_lse && that_present_lse))
2910
          return false;
2911
        if (!this.lse.equals(that.lse))
2912
          return false;
2913
      }
2914
 
2915
      return true;
2916
    }
2917
 
2918
    @Override
2919
    public int hashCode() {
2920
      return 0;
2921
    }
2922
 
3430 rajveer 2923
    public int compareTo(getProvider_result other) {
2924
      if (!getClass().equals(other.getClass())) {
2925
        return getClass().getName().compareTo(other.getClass().getName());
2926
      }
2927
 
2928
      int lastComparison = 0;
2929
      getProvider_result typedOther = (getProvider_result)other;
2930
 
2931
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2932
      if (lastComparison != 0) {
2933
        return lastComparison;
2934
      }
2935
      if (isSetSuccess()) {
2936
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2937
        if (lastComparison != 0) {
2938
          return lastComparison;
2939
        }
2940
      }
2941
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2942
      if (lastComparison != 0) {
2943
        return lastComparison;
2944
      }
2945
      if (isSetLse()) {
2946
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2947
        if (lastComparison != 0) {
2948
          return lastComparison;
2949
        }
2950
      }
2951
      return 0;
2952
    }
2953
 
2954
    public _Fields fieldForId(int fieldId) {
2955
      return _Fields.findByThriftId(fieldId);
2956
    }
2957
 
2958
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2959
      org.apache.thrift.protocol.TField field;
668 chandransh 2960
      iprot.readStructBegin();
2961
      while (true)
2962
      {
2963
        field = iprot.readFieldBegin();
3430 rajveer 2964
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2965
          break;
2966
        }
3430 rajveer 2967
        switch (field.id) {
2968
          case 0: // SUCCESS
2969
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2970
              this.success = new Provider();
2971
              this.success.read(iprot);
2972
            } else { 
2973
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2974
            }
2975
            break;
2976
          case 1: // LSE
2977
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2978
              this.lse = new LogisticsServiceException();
2979
              this.lse.read(iprot);
2980
            } else { 
2981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2982
            }
2983
            break;
2984
          default:
2985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2986
        }
3430 rajveer 2987
        iprot.readFieldEnd();
668 chandransh 2988
      }
2989
      iprot.readStructEnd();
2990
      validate();
2991
    }
2992
 
3430 rajveer 2993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2994
      oprot.writeStructBegin(STRUCT_DESC);
2995
 
2996
      if (this.isSetSuccess()) {
2997
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2998
        this.success.write(oprot);
2999
        oprot.writeFieldEnd();
3000
      } else if (this.isSetLse()) {
3001
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3002
        this.lse.write(oprot);
3003
        oprot.writeFieldEnd();
3004
      }
3005
      oprot.writeFieldStop();
3006
      oprot.writeStructEnd();
3007
    }
3008
 
3009
    @Override
3010
    public String toString() {
3011
      StringBuilder sb = new StringBuilder("getProvider_result(");
3012
      boolean first = true;
3013
 
3014
      sb.append("success:");
3015
      if (this.success == null) {
3016
        sb.append("null");
3017
      } else {
3018
        sb.append(this.success);
3019
      }
3020
      first = false;
3021
      if (!first) sb.append(", ");
3022
      sb.append("lse:");
3023
      if (this.lse == null) {
3024
        sb.append("null");
3025
      } else {
3026
        sb.append(this.lse);
3027
      }
3028
      first = false;
3029
      sb.append(")");
3030
      return sb.toString();
3031
    }
3032
 
3430 rajveer 3033
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3034
      // check for required fields
3035
    }
3036
 
3430 rajveer 3037
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3038
      try {
3039
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3040
      } catch (org.apache.thrift.TException te) {
3041
        throw new java.io.IOException(te);
3042
      }
3043
    }
3044
 
3045
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3046
      try {
3047
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3048
      } catch (org.apache.thrift.TException te) {
3049
        throw new java.io.IOException(te);
3050
      }
3051
    }
3052
 
668 chandransh 3053
  }
3054
 
3430 rajveer 3055
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3056
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3057
 
3058
 
3059
 
3060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3062
;
3063
 
3064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3065
 
3066
      static {
3067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3068
          byName.put(field.getFieldName(), field);
3069
        }
3070
      }
3071
 
3072
      /**
3073
       * Find the _Fields constant that matches fieldId, or null if its not found.
3074
       */
3075
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3076
        switch(fieldId) {
3077
          default:
3078
            return null;
3079
        }
674 chandransh 3080
      }
3081
 
3082
      /**
3083
       * Find the _Fields constant that matches fieldId, throwing an exception
3084
       * if it is not found.
3085
       */
3086
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3087
        _Fields fields = findByThriftId(fieldId);
3088
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3089
        return fields;
3090
      }
3091
 
3092
      /**
3093
       * Find the _Fields constant that matches name, or null if its not found.
3094
       */
3095
      public static _Fields findByName(String name) {
3096
        return byName.get(name);
3097
      }
3098
 
3099
      private final short _thriftId;
3100
      private final String _fieldName;
3101
 
3102
      _Fields(short thriftId, String fieldName) {
3103
        _thriftId = thriftId;
3104
        _fieldName = fieldName;
3105
      }
3106
 
3107
      public short getThriftFieldId() {
3108
        return _thriftId;
3109
      }
3110
 
3111
      public String getFieldName() {
3112
        return _fieldName;
3113
      }
3114
    }
3430 rajveer 3115
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3116
    static {
3430 rajveer 3117
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3120
    }
3121
 
3122
    public getAllProviders_args() {
3123
    }
3124
 
3125
    /**
3126
     * Performs a deep copy on <i>other</i>.
3127
     */
3128
    public getAllProviders_args(getAllProviders_args other) {
3129
    }
3130
 
3131
    public getAllProviders_args deepCopy() {
3132
      return new getAllProviders_args(this);
3133
    }
3134
 
3430 rajveer 3135
    @Override
3136
    public void clear() {
674 chandransh 3137
    }
3138
 
3139
    public void setFieldValue(_Fields field, Object value) {
3140
      switch (field) {
3141
      }
3142
    }
3143
 
3144
    public Object getFieldValue(_Fields field) {
3145
      switch (field) {
3146
      }
3147
      throw new IllegalStateException();
3148
    }
3149
 
3430 rajveer 3150
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3151
    public boolean isSet(_Fields field) {
3152
      if (field == null) {
3153
        throw new IllegalArgumentException();
3154
      }
674 chandransh 3155
 
3156
      switch (field) {
3157
      }
3158
      throw new IllegalStateException();
3159
    }
3160
 
3161
    @Override
3162
    public boolean equals(Object that) {
3163
      if (that == null)
3164
        return false;
3165
      if (that instanceof getAllProviders_args)
3166
        return this.equals((getAllProviders_args)that);
3167
      return false;
3168
    }
3169
 
3170
    public boolean equals(getAllProviders_args that) {
3171
      if (that == null)
3172
        return false;
3173
 
3174
      return true;
3175
    }
3176
 
3177
    @Override
3178
    public int hashCode() {
3179
      return 0;
3180
    }
3181
 
3182
    public int compareTo(getAllProviders_args other) {
3183
      if (!getClass().equals(other.getClass())) {
3184
        return getClass().getName().compareTo(other.getClass().getName());
3185
      }
3186
 
3187
      int lastComparison = 0;
3188
      getAllProviders_args typedOther = (getAllProviders_args)other;
3189
 
3190
      return 0;
3191
    }
3192
 
3430 rajveer 3193
    public _Fields fieldForId(int fieldId) {
3194
      return _Fields.findByThriftId(fieldId);
3195
    }
3196
 
3197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3198
      org.apache.thrift.protocol.TField field;
674 chandransh 3199
      iprot.readStructBegin();
3200
      while (true)
3201
      {
3202
        field = iprot.readFieldBegin();
3430 rajveer 3203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3204
          break;
3205
        }
3430 rajveer 3206
        switch (field.id) {
3207
          default:
3208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3209
        }
3430 rajveer 3210
        iprot.readFieldEnd();
674 chandransh 3211
      }
3212
      iprot.readStructEnd();
3213
      validate();
3214
    }
3215
 
3430 rajveer 3216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3217
      validate();
3218
 
3219
      oprot.writeStructBegin(STRUCT_DESC);
3220
      oprot.writeFieldStop();
3221
      oprot.writeStructEnd();
3222
    }
3223
 
3224
    @Override
3225
    public String toString() {
3226
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3227
      boolean first = true;
3228
 
3229
      sb.append(")");
3230
      return sb.toString();
3231
    }
3232
 
3430 rajveer 3233
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3234
      // check for required fields
3235
    }
3236
 
3430 rajveer 3237
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3238
      try {
3239
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3240
      } catch (org.apache.thrift.TException te) {
3241
        throw new java.io.IOException(te);
3242
      }
3243
    }
3244
 
3245
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3246
      try {
3247
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3248
      } catch (org.apache.thrift.TException te) {
3249
        throw new java.io.IOException(te);
3250
      }
3251
    }
3252
 
674 chandransh 3253
  }
3254
 
3430 rajveer 3255
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3256
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3257
 
3430 rajveer 3258
    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);
3259
    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 3260
 
3430 rajveer 3261
    private List<Provider> success; // required
3262
    private LogisticsServiceException lse; // required
674 chandransh 3263
 
3264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3266
      SUCCESS((short)0, "success"),
3267
      LSE((short)1, "lse");
3268
 
3269
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3270
 
3271
      static {
3272
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3273
          byName.put(field.getFieldName(), field);
3274
        }
3275
      }
3276
 
3277
      /**
3278
       * Find the _Fields constant that matches fieldId, or null if its not found.
3279
       */
3280
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3281
        switch(fieldId) {
3282
          case 0: // SUCCESS
3283
            return SUCCESS;
3284
          case 1: // LSE
3285
            return LSE;
3286
          default:
3287
            return null;
3288
        }
674 chandransh 3289
      }
3290
 
3291
      /**
3292
       * Find the _Fields constant that matches fieldId, throwing an exception
3293
       * if it is not found.
3294
       */
3295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3296
        _Fields fields = findByThriftId(fieldId);
3297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3298
        return fields;
3299
      }
3300
 
3301
      /**
3302
       * Find the _Fields constant that matches name, or null if its not found.
3303
       */
3304
      public static _Fields findByName(String name) {
3305
        return byName.get(name);
3306
      }
3307
 
3308
      private final short _thriftId;
3309
      private final String _fieldName;
3310
 
3311
      _Fields(short thriftId, String fieldName) {
3312
        _thriftId = thriftId;
3313
        _fieldName = fieldName;
3314
      }
3315
 
3316
      public short getThriftFieldId() {
3317
        return _thriftId;
3318
      }
3319
 
3320
      public String getFieldName() {
3321
        return _fieldName;
3322
      }
3323
    }
3324
 
3325
    // isset id assignments
3326
 
3430 rajveer 3327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3328
    static {
3430 rajveer 3329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3331
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3332
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3333
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3337
    }
3338
 
3339
    public getAllProviders_result() {
3340
    }
3341
 
3342
    public getAllProviders_result(
3343
      List<Provider> success,
3344
      LogisticsServiceException lse)
3345
    {
3346
      this();
3347
      this.success = success;
3348
      this.lse = lse;
3349
    }
3350
 
3351
    /**
3352
     * Performs a deep copy on <i>other</i>.
3353
     */
3354
    public getAllProviders_result(getAllProviders_result other) {
3355
      if (other.isSetSuccess()) {
3356
        List<Provider> __this__success = new ArrayList<Provider>();
3357
        for (Provider other_element : other.success) {
3358
          __this__success.add(new Provider(other_element));
3359
        }
3360
        this.success = __this__success;
3361
      }
3362
      if (other.isSetLse()) {
3363
        this.lse = new LogisticsServiceException(other.lse);
3364
      }
3365
    }
3366
 
3367
    public getAllProviders_result deepCopy() {
3368
      return new getAllProviders_result(this);
3369
    }
3370
 
3430 rajveer 3371
    @Override
3372
    public void clear() {
3373
      this.success = null;
3374
      this.lse = null;
674 chandransh 3375
    }
3376
 
3377
    public int getSuccessSize() {
3378
      return (this.success == null) ? 0 : this.success.size();
3379
    }
3380
 
3381
    public java.util.Iterator<Provider> getSuccessIterator() {
3382
      return (this.success == null) ? null : this.success.iterator();
3383
    }
3384
 
3385
    public void addToSuccess(Provider elem) {
3386
      if (this.success == null) {
3387
        this.success = new ArrayList<Provider>();
3388
      }
3389
      this.success.add(elem);
3390
    }
3391
 
3392
    public List<Provider> getSuccess() {
3393
      return this.success;
3394
    }
3395
 
3430 rajveer 3396
    public void setSuccess(List<Provider> success) {
674 chandransh 3397
      this.success = success;
3398
    }
3399
 
3400
    public void unsetSuccess() {
3401
      this.success = null;
3402
    }
3403
 
3430 rajveer 3404
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3405
    public boolean isSetSuccess() {
3406
      return this.success != null;
3407
    }
3408
 
3409
    public void setSuccessIsSet(boolean value) {
3410
      if (!value) {
3411
        this.success = null;
3412
      }
3413
    }
3414
 
3415
    public LogisticsServiceException getLse() {
3416
      return this.lse;
3417
    }
3418
 
3430 rajveer 3419
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3420
      this.lse = lse;
3421
    }
3422
 
3423
    public void unsetLse() {
3424
      this.lse = null;
3425
    }
3426
 
3430 rajveer 3427
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3428
    public boolean isSetLse() {
3429
      return this.lse != null;
3430
    }
3431
 
3432
    public void setLseIsSet(boolean value) {
3433
      if (!value) {
3434
        this.lse = null;
3435
      }
3436
    }
3437
 
3438
    public void setFieldValue(_Fields field, Object value) {
3439
      switch (field) {
3440
      case SUCCESS:
3441
        if (value == null) {
3442
          unsetSuccess();
3443
        } else {
3444
          setSuccess((List<Provider>)value);
3445
        }
3446
        break;
3447
 
3448
      case LSE:
3449
        if (value == null) {
3450
          unsetLse();
3451
        } else {
3452
          setLse((LogisticsServiceException)value);
3453
        }
3454
        break;
3455
 
3456
      }
3457
    }
3458
 
3459
    public Object getFieldValue(_Fields field) {
3460
      switch (field) {
3461
      case SUCCESS:
3462
        return getSuccess();
3463
 
3464
      case LSE:
3465
        return getLse();
3466
 
3467
      }
3468
      throw new IllegalStateException();
3469
    }
3470
 
3430 rajveer 3471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3472
    public boolean isSet(_Fields field) {
3473
      if (field == null) {
3474
        throw new IllegalArgumentException();
3475
      }
674 chandransh 3476
 
3477
      switch (field) {
3478
      case SUCCESS:
3479
        return isSetSuccess();
3480
      case LSE:
3481
        return isSetLse();
3482
      }
3483
      throw new IllegalStateException();
3484
    }
3485
 
3486
    @Override
3487
    public boolean equals(Object that) {
3488
      if (that == null)
3489
        return false;
3490
      if (that instanceof getAllProviders_result)
3491
        return this.equals((getAllProviders_result)that);
3492
      return false;
3493
    }
3494
 
3495
    public boolean equals(getAllProviders_result that) {
3496
      if (that == null)
3497
        return false;
3498
 
3499
      boolean this_present_success = true && this.isSetSuccess();
3500
      boolean that_present_success = true && that.isSetSuccess();
3501
      if (this_present_success || that_present_success) {
3502
        if (!(this_present_success && that_present_success))
3503
          return false;
3504
        if (!this.success.equals(that.success))
3505
          return false;
3506
      }
3507
 
3508
      boolean this_present_lse = true && this.isSetLse();
3509
      boolean that_present_lse = true && that.isSetLse();
3510
      if (this_present_lse || that_present_lse) {
3511
        if (!(this_present_lse && that_present_lse))
3512
          return false;
3513
        if (!this.lse.equals(that.lse))
3514
          return false;
3515
      }
3516
 
3517
      return true;
3518
    }
3519
 
3520
    @Override
3521
    public int hashCode() {
3522
      return 0;
3523
    }
3524
 
3430 rajveer 3525
    public int compareTo(getAllProviders_result other) {
3526
      if (!getClass().equals(other.getClass())) {
3527
        return getClass().getName().compareTo(other.getClass().getName());
3528
      }
3529
 
3530
      int lastComparison = 0;
3531
      getAllProviders_result typedOther = (getAllProviders_result)other;
3532
 
3533
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3534
      if (lastComparison != 0) {
3535
        return lastComparison;
3536
      }
3537
      if (isSetSuccess()) {
3538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3539
        if (lastComparison != 0) {
3540
          return lastComparison;
3541
        }
3542
      }
3543
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3544
      if (lastComparison != 0) {
3545
        return lastComparison;
3546
      }
3547
      if (isSetLse()) {
3548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3549
        if (lastComparison != 0) {
3550
          return lastComparison;
3551
        }
3552
      }
3553
      return 0;
3554
    }
3555
 
3556
    public _Fields fieldForId(int fieldId) {
3557
      return _Fields.findByThriftId(fieldId);
3558
    }
3559
 
3560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3561
      org.apache.thrift.protocol.TField field;
674 chandransh 3562
      iprot.readStructBegin();
3563
      while (true)
3564
      {
3565
        field = iprot.readFieldBegin();
3430 rajveer 3566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3567
          break;
3568
        }
3430 rajveer 3569
        switch (field.id) {
3570
          case 0: // SUCCESS
3571
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3572
              {
7792 anupam.sin 3573
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3574
                this.success = new ArrayList<Provider>(_list4.size);
3575
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3576
                {
7792 anupam.sin 3577
                  Provider _elem6; // required
3578
                  _elem6 = new Provider();
3579
                  _elem6.read(iprot);
3580
                  this.success.add(_elem6);
674 chandransh 3581
                }
3430 rajveer 3582
                iprot.readListEnd();
674 chandransh 3583
              }
3430 rajveer 3584
            } else { 
3585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3586
            }
3587
            break;
3588
          case 1: // LSE
3589
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3590
              this.lse = new LogisticsServiceException();
3591
              this.lse.read(iprot);
3592
            } else { 
3593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3594
            }
3595
            break;
3596
          default:
3597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3598
        }
3430 rajveer 3599
        iprot.readFieldEnd();
674 chandransh 3600
      }
3601
      iprot.readStructEnd();
3602
      validate();
3603
    }
3604
 
3430 rajveer 3605
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3606
      oprot.writeStructBegin(STRUCT_DESC);
3607
 
3608
      if (this.isSetSuccess()) {
3609
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3610
        {
3430 rajveer 3611
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3612
          for (Provider _iter7 : this.success)
674 chandransh 3613
          {
7792 anupam.sin 3614
            _iter7.write(oprot);
674 chandransh 3615
          }
3616
          oprot.writeListEnd();
3617
        }
3618
        oprot.writeFieldEnd();
3619
      } else if (this.isSetLse()) {
3620
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3621
        this.lse.write(oprot);
3622
        oprot.writeFieldEnd();
3623
      }
3624
      oprot.writeFieldStop();
3625
      oprot.writeStructEnd();
3626
    }
3627
 
3628
    @Override
3629
    public String toString() {
3630
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3631
      boolean first = true;
3632
 
3633
      sb.append("success:");
3634
      if (this.success == null) {
3635
        sb.append("null");
3636
      } else {
3637
        sb.append(this.success);
3638
      }
3639
      first = false;
3640
      if (!first) sb.append(", ");
3641
      sb.append("lse:");
3642
      if (this.lse == null) {
3643
        sb.append("null");
3644
      } else {
3645
        sb.append(this.lse);
3646
      }
3647
      first = false;
3648
      sb.append(")");
3649
      return sb.toString();
3650
    }
3651
 
3430 rajveer 3652
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3653
      // check for required fields
3654
    }
3655
 
3430 rajveer 3656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3657
      try {
3658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3659
      } catch (org.apache.thrift.TException te) {
3660
        throw new java.io.IOException(te);
3661
      }
3662
    }
3663
 
3664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3665
      try {
3666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3667
      } catch (org.apache.thrift.TException te) {
3668
        throw new java.io.IOException(te);
3669
      }
3670
    }
3671
 
674 chandransh 3672
  }
3673
 
3430 rajveer 3674
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3676
 
3430 rajveer 3677
    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);
3678
    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 3679
    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 3680
 
3430 rajveer 3681
    private long itemId; // required
3682
    private String destination_pin; // required
4630 mandeep.dh 3683
    private DeliveryType type; // required
471 rajveer 3684
 
3685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3686
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3687
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3688
      DESTINATION_PIN((short)2, "destination_pin"),
3689
      /**
3690
       * 
3691
       * @see DeliveryType
3692
       */
3693
      TYPE((short)3, "type");
471 rajveer 3694
 
3695
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3696
 
3697
      static {
3698
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3699
          byName.put(field.getFieldName(), field);
3700
        }
3701
      }
3702
 
3703
      /**
3704
       * Find the _Fields constant that matches fieldId, or null if its not found.
3705
       */
3706
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3707
        switch(fieldId) {
3708
          case 1: // ITEM_ID
3709
            return ITEM_ID;
3710
          case 2: // DESTINATION_PIN
3711
            return DESTINATION_PIN;
4630 mandeep.dh 3712
          case 3: // TYPE
3713
            return TYPE;
3430 rajveer 3714
          default:
3715
            return null;
3716
        }
471 rajveer 3717
      }
3718
 
3719
      /**
3720
       * Find the _Fields constant that matches fieldId, throwing an exception
3721
       * if it is not found.
3722
       */
3723
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3724
        _Fields fields = findByThriftId(fieldId);
3725
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3726
        return fields;
3727
      }
3728
 
3729
      /**
3730
       * Find the _Fields constant that matches name, or null if its not found.
3731
       */
3732
      public static _Fields findByName(String name) {
3733
        return byName.get(name);
3734
      }
3735
 
3736
      private final short _thriftId;
3737
      private final String _fieldName;
3738
 
3739
      _Fields(short thriftId, String fieldName) {
3740
        _thriftId = thriftId;
3741
        _fieldName = fieldName;
3742
      }
3743
 
3744
      public short getThriftFieldId() {
3745
        return _thriftId;
3746
      }
3747
 
3748
      public String getFieldName() {
3749
        return _fieldName;
3750
      }
3751
    }
3752
 
3753
    // isset id assignments
3754
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3755
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3756
 
3430 rajveer 3757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3758
    static {
3430 rajveer 3759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3760
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3762
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3764
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3765
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3768
    }
3769
 
3770
    public getLogisticsEstimation_args() {
3771
    }
3772
 
3773
    public getLogisticsEstimation_args(
3774
      long itemId,
4630 mandeep.dh 3775
      String destination_pin,
3776
      DeliveryType type)
471 rajveer 3777
    {
3778
      this();
3779
      this.itemId = itemId;
3780
      setItemIdIsSet(true);
3781
      this.destination_pin = destination_pin;
4630 mandeep.dh 3782
      this.type = type;
471 rajveer 3783
    }
3784
 
3785
    /**
3786
     * Performs a deep copy on <i>other</i>.
3787
     */
3788
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3789
      __isset_bit_vector.clear();
3790
      __isset_bit_vector.or(other.__isset_bit_vector);
3791
      this.itemId = other.itemId;
3792
      if (other.isSetDestination_pin()) {
3793
        this.destination_pin = other.destination_pin;
3794
      }
4630 mandeep.dh 3795
      if (other.isSetType()) {
3796
        this.type = other.type;
3797
      }
471 rajveer 3798
    }
3799
 
3800
    public getLogisticsEstimation_args deepCopy() {
3801
      return new getLogisticsEstimation_args(this);
3802
    }
3803
 
3430 rajveer 3804
    @Override
3805
    public void clear() {
3806
      setItemIdIsSet(false);
3807
      this.itemId = 0;
3808
      this.destination_pin = null;
4630 mandeep.dh 3809
      this.type = null;
471 rajveer 3810
    }
3811
 
3812
    public long getItemId() {
3813
      return this.itemId;
3814
    }
3815
 
3430 rajveer 3816
    public void setItemId(long itemId) {
471 rajveer 3817
      this.itemId = itemId;
3818
      setItemIdIsSet(true);
3819
    }
3820
 
3821
    public void unsetItemId() {
3822
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3823
    }
3824
 
3430 rajveer 3825
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3826
    public boolean isSetItemId() {
3827
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3828
    }
3829
 
3830
    public void setItemIdIsSet(boolean value) {
3831
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3832
    }
3833
 
3834
    public String getDestination_pin() {
3835
      return this.destination_pin;
3836
    }
3837
 
3430 rajveer 3838
    public void setDestination_pin(String destination_pin) {
471 rajveer 3839
      this.destination_pin = destination_pin;
3840
    }
3841
 
3842
    public void unsetDestination_pin() {
3843
      this.destination_pin = null;
3844
    }
3845
 
3430 rajveer 3846
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3847
    public boolean isSetDestination_pin() {
3848
      return this.destination_pin != null;
3849
    }
3850
 
3851
    public void setDestination_pinIsSet(boolean value) {
3852
      if (!value) {
3853
        this.destination_pin = null;
3854
      }
3855
    }
3856
 
4630 mandeep.dh 3857
    /**
3858
     * 
3859
     * @see DeliveryType
3860
     */
3861
    public DeliveryType getType() {
3862
      return this.type;
3863
    }
3864
 
3865
    /**
3866
     * 
3867
     * @see DeliveryType
3868
     */
3869
    public void setType(DeliveryType type) {
3870
      this.type = type;
3871
    }
3872
 
3873
    public void unsetType() {
3874
      this.type = null;
3875
    }
3876
 
3877
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3878
    public boolean isSetType() {
3879
      return this.type != null;
3880
    }
3881
 
3882
    public void setTypeIsSet(boolean value) {
3883
      if (!value) {
3884
        this.type = null;
3885
      }
3886
    }
3887
 
471 rajveer 3888
    public void setFieldValue(_Fields field, Object value) {
3889
      switch (field) {
3890
      case ITEM_ID:
3891
        if (value == null) {
3892
          unsetItemId();
3893
        } else {
3894
          setItemId((Long)value);
3895
        }
3896
        break;
3897
 
3898
      case DESTINATION_PIN:
3899
        if (value == null) {
3900
          unsetDestination_pin();
3901
        } else {
3902
          setDestination_pin((String)value);
3903
        }
3904
        break;
3905
 
4630 mandeep.dh 3906
      case TYPE:
3907
        if (value == null) {
3908
          unsetType();
3909
        } else {
3910
          setType((DeliveryType)value);
3911
        }
3912
        break;
3913
 
471 rajveer 3914
      }
3915
    }
3916
 
3917
    public Object getFieldValue(_Fields field) {
3918
      switch (field) {
3919
      case ITEM_ID:
3430 rajveer 3920
        return Long.valueOf(getItemId());
471 rajveer 3921
 
3922
      case DESTINATION_PIN:
3923
        return getDestination_pin();
3924
 
4630 mandeep.dh 3925
      case TYPE:
3926
        return getType();
3927
 
471 rajveer 3928
      }
3929
      throw new IllegalStateException();
3930
    }
3931
 
3430 rajveer 3932
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3933
    public boolean isSet(_Fields field) {
3934
      if (field == null) {
3935
        throw new IllegalArgumentException();
3936
      }
471 rajveer 3937
 
3938
      switch (field) {
3939
      case ITEM_ID:
3940
        return isSetItemId();
3941
      case DESTINATION_PIN:
3942
        return isSetDestination_pin();
4630 mandeep.dh 3943
      case TYPE:
3944
        return isSetType();
471 rajveer 3945
      }
3946
      throw new IllegalStateException();
3947
    }
3948
 
3949
    @Override
3950
    public boolean equals(Object that) {
3951
      if (that == null)
3952
        return false;
3953
      if (that instanceof getLogisticsEstimation_args)
3954
        return this.equals((getLogisticsEstimation_args)that);
3955
      return false;
3956
    }
3957
 
3958
    public boolean equals(getLogisticsEstimation_args that) {
3959
      if (that == null)
3960
        return false;
3961
 
3962
      boolean this_present_itemId = true;
3963
      boolean that_present_itemId = true;
3964
      if (this_present_itemId || that_present_itemId) {
3965
        if (!(this_present_itemId && that_present_itemId))
3966
          return false;
3967
        if (this.itemId != that.itemId)
3968
          return false;
3969
      }
3970
 
3971
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3972
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3973
      if (this_present_destination_pin || that_present_destination_pin) {
3974
        if (!(this_present_destination_pin && that_present_destination_pin))
3975
          return false;
3976
        if (!this.destination_pin.equals(that.destination_pin))
3977
          return false;
3978
      }
3979
 
4630 mandeep.dh 3980
      boolean this_present_type = true && this.isSetType();
3981
      boolean that_present_type = true && that.isSetType();
3982
      if (this_present_type || that_present_type) {
3983
        if (!(this_present_type && that_present_type))
3984
          return false;
3985
        if (!this.type.equals(that.type))
3986
          return false;
3987
      }
3988
 
471 rajveer 3989
      return true;
3990
    }
3991
 
3992
    @Override
3993
    public int hashCode() {
3994
      return 0;
3995
    }
3996
 
3997
    public int compareTo(getLogisticsEstimation_args other) {
3998
      if (!getClass().equals(other.getClass())) {
3999
        return getClass().getName().compareTo(other.getClass().getName());
4000
      }
4001
 
4002
      int lastComparison = 0;
4003
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4004
 
3430 rajveer 4005
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4006
      if (lastComparison != 0) {
4007
        return lastComparison;
4008
      }
3430 rajveer 4009
      if (isSetItemId()) {
4010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4011
        if (lastComparison != 0) {
4012
          return lastComparison;
4013
        }
471 rajveer 4014
      }
3430 rajveer 4015
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4016
      if (lastComparison != 0) {
4017
        return lastComparison;
4018
      }
3430 rajveer 4019
      if (isSetDestination_pin()) {
4020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4021
        if (lastComparison != 0) {
4022
          return lastComparison;
4023
        }
471 rajveer 4024
      }
4630 mandeep.dh 4025
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4026
      if (lastComparison != 0) {
4027
        return lastComparison;
4028
      }
4029
      if (isSetType()) {
4030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4031
        if (lastComparison != 0) {
4032
          return lastComparison;
4033
        }
4034
      }
471 rajveer 4035
      return 0;
4036
    }
4037
 
3430 rajveer 4038
    public _Fields fieldForId(int fieldId) {
4039
      return _Fields.findByThriftId(fieldId);
4040
    }
4041
 
4042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4043
      org.apache.thrift.protocol.TField field;
471 rajveer 4044
      iprot.readStructBegin();
4045
      while (true)
4046
      {
4047
        field = iprot.readFieldBegin();
3430 rajveer 4048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4049
          break;
4050
        }
3430 rajveer 4051
        switch (field.id) {
4052
          case 1: // ITEM_ID
4053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4054
              this.itemId = iprot.readI64();
4055
              setItemIdIsSet(true);
4056
            } else { 
4057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4058
            }
4059
            break;
4060
          case 2: // DESTINATION_PIN
4061
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4062
              this.destination_pin = iprot.readString();
4063
            } else { 
4064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4065
            }
4066
            break;
4630 mandeep.dh 4067
          case 3: // TYPE
4068
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4069
              this.type = DeliveryType.findByValue(iprot.readI32());
4070
            } else { 
4071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4072
            }
4073
            break;
3430 rajveer 4074
          default:
4075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4076
        }
3430 rajveer 4077
        iprot.readFieldEnd();
471 rajveer 4078
      }
4079
      iprot.readStructEnd();
4080
      validate();
4081
    }
4082
 
3430 rajveer 4083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4084
      validate();
4085
 
4086
      oprot.writeStructBegin(STRUCT_DESC);
4087
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4088
      oprot.writeI64(this.itemId);
4089
      oprot.writeFieldEnd();
4090
      if (this.destination_pin != null) {
4091
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4092
        oprot.writeString(this.destination_pin);
4093
        oprot.writeFieldEnd();
4094
      }
4630 mandeep.dh 4095
      if (this.type != null) {
4096
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4097
        oprot.writeI32(this.type.getValue());
4098
        oprot.writeFieldEnd();
4099
      }
471 rajveer 4100
      oprot.writeFieldStop();
4101
      oprot.writeStructEnd();
4102
    }
4103
 
4104
    @Override
4105
    public String toString() {
4106
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4107
      boolean first = true;
4108
 
4109
      sb.append("itemId:");
4110
      sb.append(this.itemId);
4111
      first = false;
4112
      if (!first) sb.append(", ");
4113
      sb.append("destination_pin:");
4114
      if (this.destination_pin == null) {
4115
        sb.append("null");
4116
      } else {
4117
        sb.append(this.destination_pin);
4118
      }
4119
      first = false;
4630 mandeep.dh 4120
      if (!first) sb.append(", ");
4121
      sb.append("type:");
4122
      if (this.type == null) {
4123
        sb.append("null");
4124
      } else {
4125
        sb.append(this.type);
4126
      }
4127
      first = false;
471 rajveer 4128
      sb.append(")");
4129
      return sb.toString();
4130
    }
4131
 
3430 rajveer 4132
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4133
      // check for required fields
4134
    }
4135
 
3430 rajveer 4136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4137
      try {
4138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4139
      } catch (org.apache.thrift.TException te) {
4140
        throw new java.io.IOException(te);
4141
      }
4142
    }
4143
 
4144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4145
      try {
4146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4147
      } catch (org.apache.thrift.TException te) {
4148
        throw new java.io.IOException(te);
4149
      }
4150
    }
4151
 
471 rajveer 4152
  }
4153
 
3430 rajveer 4154
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4156
 
3430 rajveer 4157
    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);
4158
    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 4159
 
3430 rajveer 4160
    private LogisticsInfo success; // required
4161
    private LogisticsServiceException se; // required
471 rajveer 4162
 
4163
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4164
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4165
      SUCCESS((short)0, "success"),
4166
      SE((short)1, "se");
4167
 
4168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4169
 
4170
      static {
4171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4172
          byName.put(field.getFieldName(), field);
4173
        }
4174
      }
4175
 
4176
      /**
4177
       * Find the _Fields constant that matches fieldId, or null if its not found.
4178
       */
4179
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4180
        switch(fieldId) {
4181
          case 0: // SUCCESS
4182
            return SUCCESS;
4183
          case 1: // SE
4184
            return SE;
4185
          default:
4186
            return null;
4187
        }
471 rajveer 4188
      }
4189
 
4190
      /**
4191
       * Find the _Fields constant that matches fieldId, throwing an exception
4192
       * if it is not found.
4193
       */
4194
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4195
        _Fields fields = findByThriftId(fieldId);
4196
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4197
        return fields;
4198
      }
4199
 
4200
      /**
4201
       * Find the _Fields constant that matches name, or null if its not found.
4202
       */
4203
      public static _Fields findByName(String name) {
4204
        return byName.get(name);
4205
      }
4206
 
4207
      private final short _thriftId;
4208
      private final String _fieldName;
4209
 
4210
      _Fields(short thriftId, String fieldName) {
4211
        _thriftId = thriftId;
4212
        _fieldName = fieldName;
4213
      }
4214
 
4215
      public short getThriftFieldId() {
4216
        return _thriftId;
4217
      }
4218
 
4219
      public String getFieldName() {
4220
        return _fieldName;
4221
      }
4222
    }
4223
 
4224
    // isset id assignments
4225
 
3430 rajveer 4226
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4227
    static {
3430 rajveer 4228
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4229
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4230
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4231
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4235
    }
4236
 
4237
    public getLogisticsEstimation_result() {
4238
    }
4239
 
4240
    public getLogisticsEstimation_result(
648 chandransh 4241
      LogisticsInfo success,
471 rajveer 4242
      LogisticsServiceException se)
4243
    {
4244
      this();
4245
      this.success = success;
4246
      this.se = se;
4247
    }
4248
 
4249
    /**
4250
     * Performs a deep copy on <i>other</i>.
4251
     */
4252
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4253
      if (other.isSetSuccess()) {
648 chandransh 4254
        this.success = new LogisticsInfo(other.success);
471 rajveer 4255
      }
4256
      if (other.isSetSe()) {
4257
        this.se = new LogisticsServiceException(other.se);
4258
      }
4259
    }
4260
 
4261
    public getLogisticsEstimation_result deepCopy() {
4262
      return new getLogisticsEstimation_result(this);
4263
    }
4264
 
3430 rajveer 4265
    @Override
4266
    public void clear() {
4267
      this.success = null;
4268
      this.se = null;
471 rajveer 4269
    }
4270
 
648 chandransh 4271
    public LogisticsInfo getSuccess() {
471 rajveer 4272
      return this.success;
4273
    }
4274
 
3430 rajveer 4275
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4276
      this.success = success;
4277
    }
4278
 
4279
    public void unsetSuccess() {
4280
      this.success = null;
4281
    }
4282
 
3430 rajveer 4283
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4284
    public boolean isSetSuccess() {
4285
      return this.success != null;
4286
    }
4287
 
4288
    public void setSuccessIsSet(boolean value) {
4289
      if (!value) {
4290
        this.success = null;
4291
      }
4292
    }
4293
 
4294
    public LogisticsServiceException getSe() {
4295
      return this.se;
4296
    }
4297
 
3430 rajveer 4298
    public void setSe(LogisticsServiceException se) {
471 rajveer 4299
      this.se = se;
4300
    }
4301
 
4302
    public void unsetSe() {
4303
      this.se = null;
4304
    }
4305
 
3430 rajveer 4306
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4307
    public boolean isSetSe() {
4308
      return this.se != null;
4309
    }
4310
 
4311
    public void setSeIsSet(boolean value) {
4312
      if (!value) {
4313
        this.se = null;
4314
      }
4315
    }
4316
 
4317
    public void setFieldValue(_Fields field, Object value) {
4318
      switch (field) {
4319
      case SUCCESS:
4320
        if (value == null) {
4321
          unsetSuccess();
4322
        } else {
648 chandransh 4323
          setSuccess((LogisticsInfo)value);
471 rajveer 4324
        }
4325
        break;
4326
 
4327
      case SE:
4328
        if (value == null) {
4329
          unsetSe();
4330
        } else {
4331
          setSe((LogisticsServiceException)value);
4332
        }
4333
        break;
4334
 
4335
      }
4336
    }
4337
 
4338
    public Object getFieldValue(_Fields field) {
4339
      switch (field) {
4340
      case SUCCESS:
4341
        return getSuccess();
4342
 
4343
      case SE:
4344
        return getSe();
4345
 
4346
      }
4347
      throw new IllegalStateException();
4348
    }
4349
 
3430 rajveer 4350
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4351
    public boolean isSet(_Fields field) {
4352
      if (field == null) {
4353
        throw new IllegalArgumentException();
4354
      }
471 rajveer 4355
 
4356
      switch (field) {
4357
      case SUCCESS:
4358
        return isSetSuccess();
4359
      case SE:
4360
        return isSetSe();
4361
      }
4362
      throw new IllegalStateException();
4363
    }
4364
 
4365
    @Override
4366
    public boolean equals(Object that) {
4367
      if (that == null)
4368
        return false;
4369
      if (that instanceof getLogisticsEstimation_result)
4370
        return this.equals((getLogisticsEstimation_result)that);
4371
      return false;
4372
    }
4373
 
4374
    public boolean equals(getLogisticsEstimation_result that) {
4375
      if (that == null)
4376
        return false;
4377
 
4378
      boolean this_present_success = true && this.isSetSuccess();
4379
      boolean that_present_success = true && that.isSetSuccess();
4380
      if (this_present_success || that_present_success) {
4381
        if (!(this_present_success && that_present_success))
4382
          return false;
4383
        if (!this.success.equals(that.success))
4384
          return false;
4385
      }
4386
 
4387
      boolean this_present_se = true && this.isSetSe();
4388
      boolean that_present_se = true && that.isSetSe();
4389
      if (this_present_se || that_present_se) {
4390
        if (!(this_present_se && that_present_se))
4391
          return false;
4392
        if (!this.se.equals(that.se))
4393
          return false;
4394
      }
4395
 
4396
      return true;
4397
    }
4398
 
4399
    @Override
4400
    public int hashCode() {
4401
      return 0;
4402
    }
4403
 
4404
    public int compareTo(getLogisticsEstimation_result other) {
4405
      if (!getClass().equals(other.getClass())) {
4406
        return getClass().getName().compareTo(other.getClass().getName());
4407
      }
4408
 
4409
      int lastComparison = 0;
4410
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4411
 
3430 rajveer 4412
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4413
      if (lastComparison != 0) {
4414
        return lastComparison;
4415
      }
3430 rajveer 4416
      if (isSetSuccess()) {
4417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4418
        if (lastComparison != 0) {
4419
          return lastComparison;
4420
        }
471 rajveer 4421
      }
3430 rajveer 4422
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4423
      if (lastComparison != 0) {
4424
        return lastComparison;
4425
      }
3430 rajveer 4426
      if (isSetSe()) {
4427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4428
        if (lastComparison != 0) {
4429
          return lastComparison;
4430
        }
471 rajveer 4431
      }
4432
      return 0;
4433
    }
4434
 
3430 rajveer 4435
    public _Fields fieldForId(int fieldId) {
4436
      return _Fields.findByThriftId(fieldId);
4437
    }
4438
 
4439
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4440
      org.apache.thrift.protocol.TField field;
471 rajveer 4441
      iprot.readStructBegin();
4442
      while (true)
4443
      {
4444
        field = iprot.readFieldBegin();
3430 rajveer 4445
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4446
          break;
4447
        }
3430 rajveer 4448
        switch (field.id) {
4449
          case 0: // SUCCESS
4450
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4451
              this.success = new LogisticsInfo();
4452
              this.success.read(iprot);
4453
            } else { 
4454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4455
            }
4456
            break;
4457
          case 1: // SE
4458
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4459
              this.se = new LogisticsServiceException();
4460
              this.se.read(iprot);
4461
            } else { 
4462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4463
            }
4464
            break;
4465
          default:
4466
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4467
        }
3430 rajveer 4468
        iprot.readFieldEnd();
471 rajveer 4469
      }
4470
      iprot.readStructEnd();
4471
      validate();
4472
    }
4473
 
3430 rajveer 4474
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4475
      oprot.writeStructBegin(STRUCT_DESC);
4476
 
4477
      if (this.isSetSuccess()) {
4478
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4479
        this.success.write(oprot);
4480
        oprot.writeFieldEnd();
4481
      } else if (this.isSetSe()) {
4482
        oprot.writeFieldBegin(SE_FIELD_DESC);
4483
        this.se.write(oprot);
4484
        oprot.writeFieldEnd();
4485
      }
4486
      oprot.writeFieldStop();
4487
      oprot.writeStructEnd();
4488
    }
4489
 
4490
    @Override
4491
    public String toString() {
4492
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4493
      boolean first = true;
4494
 
4495
      sb.append("success:");
4496
      if (this.success == null) {
4497
        sb.append("null");
4498
      } else {
4499
        sb.append(this.success);
4500
      }
4501
      first = false;
4502
      if (!first) sb.append(", ");
4503
      sb.append("se:");
4504
      if (this.se == null) {
4505
        sb.append("null");
4506
      } else {
4507
        sb.append(this.se);
4508
      }
4509
      first = false;
4510
      sb.append(")");
4511
      return sb.toString();
4512
    }
4513
 
3430 rajveer 4514
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4515
      // check for required fields
4516
    }
4517
 
3430 rajveer 4518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4519
      try {
4520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4521
      } catch (org.apache.thrift.TException te) {
4522
        throw new java.io.IOException(te);
4523
      }
4524
    }
4525
 
4526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4527
      try {
4528
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4529
      } catch (org.apache.thrift.TException te) {
4530
        throw new java.io.IOException(te);
4531
      }
4532
    }
4533
 
471 rajveer 4534
  }
4535
 
7256 rajveer 4536
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4537
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4538
 
4539
    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);
4540
    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);
4541
    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);
4542
 
4543
    private long itemId; // required
4544
    private String destination_pin; // required
4545
    private DeliveryType type; // required
4546
 
4547
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4548
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4549
      ITEM_ID((short)1, "itemId"),
4550
      DESTINATION_PIN((short)2, "destination_pin"),
4551
      /**
4552
       * 
4553
       * @see DeliveryType
4554
       */
4555
      TYPE((short)3, "type");
4556
 
4557
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4558
 
4559
      static {
4560
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4561
          byName.put(field.getFieldName(), field);
4562
        }
4563
      }
4564
 
4565
      /**
4566
       * Find the _Fields constant that matches fieldId, or null if its not found.
4567
       */
4568
      public static _Fields findByThriftId(int fieldId) {
4569
        switch(fieldId) {
4570
          case 1: // ITEM_ID
4571
            return ITEM_ID;
4572
          case 2: // DESTINATION_PIN
4573
            return DESTINATION_PIN;
4574
          case 3: // TYPE
4575
            return TYPE;
4576
          default:
4577
            return null;
4578
        }
4579
      }
4580
 
4581
      /**
4582
       * Find the _Fields constant that matches fieldId, throwing an exception
4583
       * if it is not found.
4584
       */
4585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4586
        _Fields fields = findByThriftId(fieldId);
4587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4588
        return fields;
4589
      }
4590
 
4591
      /**
4592
       * Find the _Fields constant that matches name, or null if its not found.
4593
       */
4594
      public static _Fields findByName(String name) {
4595
        return byName.get(name);
4596
      }
4597
 
4598
      private final short _thriftId;
4599
      private final String _fieldName;
4600
 
4601
      _Fields(short thriftId, String fieldName) {
4602
        _thriftId = thriftId;
4603
        _fieldName = fieldName;
4604
      }
4605
 
4606
      public short getThriftFieldId() {
4607
        return _thriftId;
4608
      }
4609
 
4610
      public String getFieldName() {
4611
        return _fieldName;
4612
      }
4613
    }
4614
 
4615
    // isset id assignments
4616
    private static final int __ITEMID_ISSET_ID = 0;
4617
    private BitSet __isset_bit_vector = new BitSet(1);
4618
 
4619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4620
    static {
4621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4622
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4623
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4624
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4625
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4626
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4627
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4628
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4629
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4630
    }
4631
 
4632
    public getLogisticsEstimationForStore_args() {
4633
    }
4634
 
4635
    public getLogisticsEstimationForStore_args(
4636
      long itemId,
4637
      String destination_pin,
4638
      DeliveryType type)
4639
    {
4640
      this();
4641
      this.itemId = itemId;
4642
      setItemIdIsSet(true);
4643
      this.destination_pin = destination_pin;
4644
      this.type = type;
4645
    }
4646
 
4647
    /**
4648
     * Performs a deep copy on <i>other</i>.
4649
     */
4650
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4651
      __isset_bit_vector.clear();
4652
      __isset_bit_vector.or(other.__isset_bit_vector);
4653
      this.itemId = other.itemId;
4654
      if (other.isSetDestination_pin()) {
4655
        this.destination_pin = other.destination_pin;
4656
      }
4657
      if (other.isSetType()) {
4658
        this.type = other.type;
4659
      }
4660
    }
4661
 
4662
    public getLogisticsEstimationForStore_args deepCopy() {
4663
      return new getLogisticsEstimationForStore_args(this);
4664
    }
4665
 
4666
    @Override
4667
    public void clear() {
4668
      setItemIdIsSet(false);
4669
      this.itemId = 0;
4670
      this.destination_pin = null;
4671
      this.type = null;
4672
    }
4673
 
4674
    public long getItemId() {
4675
      return this.itemId;
4676
    }
4677
 
4678
    public void setItemId(long itemId) {
4679
      this.itemId = itemId;
4680
      setItemIdIsSet(true);
4681
    }
4682
 
4683
    public void unsetItemId() {
4684
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4685
    }
4686
 
4687
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4688
    public boolean isSetItemId() {
4689
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4690
    }
4691
 
4692
    public void setItemIdIsSet(boolean value) {
4693
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4694
    }
4695
 
4696
    public String getDestination_pin() {
4697
      return this.destination_pin;
4698
    }
4699
 
4700
    public void setDestination_pin(String destination_pin) {
4701
      this.destination_pin = destination_pin;
4702
    }
4703
 
4704
    public void unsetDestination_pin() {
4705
      this.destination_pin = null;
4706
    }
4707
 
4708
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4709
    public boolean isSetDestination_pin() {
4710
      return this.destination_pin != null;
4711
    }
4712
 
4713
    public void setDestination_pinIsSet(boolean value) {
4714
      if (!value) {
4715
        this.destination_pin = null;
4716
      }
4717
    }
4718
 
4719
    /**
4720
     * 
4721
     * @see DeliveryType
4722
     */
4723
    public DeliveryType getType() {
4724
      return this.type;
4725
    }
4726
 
4727
    /**
4728
     * 
4729
     * @see DeliveryType
4730
     */
4731
    public void setType(DeliveryType type) {
4732
      this.type = type;
4733
    }
4734
 
4735
    public void unsetType() {
4736
      this.type = null;
4737
    }
4738
 
4739
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4740
    public boolean isSetType() {
4741
      return this.type != null;
4742
    }
4743
 
4744
    public void setTypeIsSet(boolean value) {
4745
      if (!value) {
4746
        this.type = null;
4747
      }
4748
    }
4749
 
4750
    public void setFieldValue(_Fields field, Object value) {
4751
      switch (field) {
4752
      case ITEM_ID:
4753
        if (value == null) {
4754
          unsetItemId();
4755
        } else {
4756
          setItemId((Long)value);
4757
        }
4758
        break;
4759
 
4760
      case DESTINATION_PIN:
4761
        if (value == null) {
4762
          unsetDestination_pin();
4763
        } else {
4764
          setDestination_pin((String)value);
4765
        }
4766
        break;
4767
 
4768
      case TYPE:
4769
        if (value == null) {
4770
          unsetType();
4771
        } else {
4772
          setType((DeliveryType)value);
4773
        }
4774
        break;
4775
 
4776
      }
4777
    }
4778
 
4779
    public Object getFieldValue(_Fields field) {
4780
      switch (field) {
4781
      case ITEM_ID:
4782
        return Long.valueOf(getItemId());
4783
 
4784
      case DESTINATION_PIN:
4785
        return getDestination_pin();
4786
 
4787
      case TYPE:
4788
        return getType();
4789
 
4790
      }
4791
      throw new IllegalStateException();
4792
    }
4793
 
4794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4795
    public boolean isSet(_Fields field) {
4796
      if (field == null) {
4797
        throw new IllegalArgumentException();
4798
      }
4799
 
4800
      switch (field) {
4801
      case ITEM_ID:
4802
        return isSetItemId();
4803
      case DESTINATION_PIN:
4804
        return isSetDestination_pin();
4805
      case TYPE:
4806
        return isSetType();
4807
      }
4808
      throw new IllegalStateException();
4809
    }
4810
 
4811
    @Override
4812
    public boolean equals(Object that) {
4813
      if (that == null)
4814
        return false;
4815
      if (that instanceof getLogisticsEstimationForStore_args)
4816
        return this.equals((getLogisticsEstimationForStore_args)that);
4817
      return false;
4818
    }
4819
 
4820
    public boolean equals(getLogisticsEstimationForStore_args that) {
4821
      if (that == null)
4822
        return false;
4823
 
4824
      boolean this_present_itemId = true;
4825
      boolean that_present_itemId = true;
4826
      if (this_present_itemId || that_present_itemId) {
4827
        if (!(this_present_itemId && that_present_itemId))
4828
          return false;
4829
        if (this.itemId != that.itemId)
4830
          return false;
4831
      }
4832
 
4833
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4834
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4835
      if (this_present_destination_pin || that_present_destination_pin) {
4836
        if (!(this_present_destination_pin && that_present_destination_pin))
4837
          return false;
4838
        if (!this.destination_pin.equals(that.destination_pin))
4839
          return false;
4840
      }
4841
 
4842
      boolean this_present_type = true && this.isSetType();
4843
      boolean that_present_type = true && that.isSetType();
4844
      if (this_present_type || that_present_type) {
4845
        if (!(this_present_type && that_present_type))
4846
          return false;
4847
        if (!this.type.equals(that.type))
4848
          return false;
4849
      }
4850
 
4851
      return true;
4852
    }
4853
 
4854
    @Override
4855
    public int hashCode() {
4856
      return 0;
4857
    }
4858
 
4859
    public int compareTo(getLogisticsEstimationForStore_args other) {
4860
      if (!getClass().equals(other.getClass())) {
4861
        return getClass().getName().compareTo(other.getClass().getName());
4862
      }
4863
 
4864
      int lastComparison = 0;
4865
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4866
 
4867
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4868
      if (lastComparison != 0) {
4869
        return lastComparison;
4870
      }
4871
      if (isSetItemId()) {
4872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4873
        if (lastComparison != 0) {
4874
          return lastComparison;
4875
        }
4876
      }
4877
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4878
      if (lastComparison != 0) {
4879
        return lastComparison;
4880
      }
4881
      if (isSetDestination_pin()) {
4882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4883
        if (lastComparison != 0) {
4884
          return lastComparison;
4885
        }
4886
      }
4887
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4888
      if (lastComparison != 0) {
4889
        return lastComparison;
4890
      }
4891
      if (isSetType()) {
4892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4893
        if (lastComparison != 0) {
4894
          return lastComparison;
4895
        }
4896
      }
4897
      return 0;
4898
    }
4899
 
4900
    public _Fields fieldForId(int fieldId) {
4901
      return _Fields.findByThriftId(fieldId);
4902
    }
4903
 
4904
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4905
      org.apache.thrift.protocol.TField field;
4906
      iprot.readStructBegin();
4907
      while (true)
4908
      {
4909
        field = iprot.readFieldBegin();
4910
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4911
          break;
4912
        }
4913
        switch (field.id) {
4914
          case 1: // ITEM_ID
4915
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4916
              this.itemId = iprot.readI64();
4917
              setItemIdIsSet(true);
4918
            } else { 
4919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4920
            }
4921
            break;
4922
          case 2: // DESTINATION_PIN
4923
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4924
              this.destination_pin = iprot.readString();
4925
            } else { 
4926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4927
            }
4928
            break;
4929
          case 3: // TYPE
4930
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4931
              this.type = DeliveryType.findByValue(iprot.readI32());
4932
            } else { 
4933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4934
            }
4935
            break;
4936
          default:
4937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4938
        }
4939
        iprot.readFieldEnd();
4940
      }
4941
      iprot.readStructEnd();
4942
      validate();
4943
    }
4944
 
4945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4946
      validate();
4947
 
4948
      oprot.writeStructBegin(STRUCT_DESC);
4949
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4950
      oprot.writeI64(this.itemId);
4951
      oprot.writeFieldEnd();
4952
      if (this.destination_pin != null) {
4953
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4954
        oprot.writeString(this.destination_pin);
4955
        oprot.writeFieldEnd();
4956
      }
4957
      if (this.type != null) {
4958
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4959
        oprot.writeI32(this.type.getValue());
4960
        oprot.writeFieldEnd();
4961
      }
4962
      oprot.writeFieldStop();
4963
      oprot.writeStructEnd();
4964
    }
4965
 
4966
    @Override
4967
    public String toString() {
4968
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4969
      boolean first = true;
4970
 
4971
      sb.append("itemId:");
4972
      sb.append(this.itemId);
4973
      first = false;
4974
      if (!first) sb.append(", ");
4975
      sb.append("destination_pin:");
4976
      if (this.destination_pin == null) {
4977
        sb.append("null");
4978
      } else {
4979
        sb.append(this.destination_pin);
4980
      }
4981
      first = false;
4982
      if (!first) sb.append(", ");
4983
      sb.append("type:");
4984
      if (this.type == null) {
4985
        sb.append("null");
4986
      } else {
4987
        sb.append(this.type);
4988
      }
4989
      first = false;
4990
      sb.append(")");
4991
      return sb.toString();
4992
    }
4993
 
4994
    public void validate() throws org.apache.thrift.TException {
4995
      // check for required fields
4996
    }
4997
 
4998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4999
      try {
5000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5001
      } catch (org.apache.thrift.TException te) {
5002
        throw new java.io.IOException(te);
5003
      }
5004
    }
5005
 
5006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5007
      try {
5008
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5009
        __isset_bit_vector = new BitSet(1);
5010
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5011
      } catch (org.apache.thrift.TException te) {
5012
        throw new java.io.IOException(te);
5013
      }
5014
    }
5015
 
5016
  }
5017
 
5018
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5019
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5020
 
5021
    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);
5022
    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);
5023
 
5024
    private LogisticsInfo success; // required
5025
    private LogisticsServiceException se; // required
5026
 
5027
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5028
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5029
      SUCCESS((short)0, "success"),
5030
      SE((short)1, "se");
5031
 
5032
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5033
 
5034
      static {
5035
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5036
          byName.put(field.getFieldName(), field);
5037
        }
5038
      }
5039
 
5040
      /**
5041
       * Find the _Fields constant that matches fieldId, or null if its not found.
5042
       */
5043
      public static _Fields findByThriftId(int fieldId) {
5044
        switch(fieldId) {
5045
          case 0: // SUCCESS
5046
            return SUCCESS;
5047
          case 1: // SE
5048
            return SE;
5049
          default:
5050
            return null;
5051
        }
5052
      }
5053
 
5054
      /**
5055
       * Find the _Fields constant that matches fieldId, throwing an exception
5056
       * if it is not found.
5057
       */
5058
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5059
        _Fields fields = findByThriftId(fieldId);
5060
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5061
        return fields;
5062
      }
5063
 
5064
      /**
5065
       * Find the _Fields constant that matches name, or null if its not found.
5066
       */
5067
      public static _Fields findByName(String name) {
5068
        return byName.get(name);
5069
      }
5070
 
5071
      private final short _thriftId;
5072
      private final String _fieldName;
5073
 
5074
      _Fields(short thriftId, String fieldName) {
5075
        _thriftId = thriftId;
5076
        _fieldName = fieldName;
5077
      }
5078
 
5079
      public short getThriftFieldId() {
5080
        return _thriftId;
5081
      }
5082
 
5083
      public String getFieldName() {
5084
        return _fieldName;
5085
      }
5086
    }
5087
 
5088
    // isset id assignments
5089
 
5090
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5091
    static {
5092
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5093
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5094
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5095
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5096
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5099
    }
5100
 
5101
    public getLogisticsEstimationForStore_result() {
5102
    }
5103
 
5104
    public getLogisticsEstimationForStore_result(
5105
      LogisticsInfo success,
5106
      LogisticsServiceException se)
5107
    {
5108
      this();
5109
      this.success = success;
5110
      this.se = se;
5111
    }
5112
 
5113
    /**
5114
     * Performs a deep copy on <i>other</i>.
5115
     */
5116
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5117
      if (other.isSetSuccess()) {
5118
        this.success = new LogisticsInfo(other.success);
5119
      }
5120
      if (other.isSetSe()) {
5121
        this.se = new LogisticsServiceException(other.se);
5122
      }
5123
    }
5124
 
5125
    public getLogisticsEstimationForStore_result deepCopy() {
5126
      return new getLogisticsEstimationForStore_result(this);
5127
    }
5128
 
5129
    @Override
5130
    public void clear() {
5131
      this.success = null;
5132
      this.se = null;
5133
    }
5134
 
5135
    public LogisticsInfo getSuccess() {
5136
      return this.success;
5137
    }
5138
 
5139
    public void setSuccess(LogisticsInfo success) {
5140
      this.success = success;
5141
    }
5142
 
5143
    public void unsetSuccess() {
5144
      this.success = null;
5145
    }
5146
 
5147
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5148
    public boolean isSetSuccess() {
5149
      return this.success != null;
5150
    }
5151
 
5152
    public void setSuccessIsSet(boolean value) {
5153
      if (!value) {
5154
        this.success = null;
5155
      }
5156
    }
5157
 
5158
    public LogisticsServiceException getSe() {
5159
      return this.se;
5160
    }
5161
 
5162
    public void setSe(LogisticsServiceException se) {
5163
      this.se = se;
5164
    }
5165
 
5166
    public void unsetSe() {
5167
      this.se = null;
5168
    }
5169
 
5170
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5171
    public boolean isSetSe() {
5172
      return this.se != null;
5173
    }
5174
 
5175
    public void setSeIsSet(boolean value) {
5176
      if (!value) {
5177
        this.se = null;
5178
      }
5179
    }
5180
 
5181
    public void setFieldValue(_Fields field, Object value) {
5182
      switch (field) {
5183
      case SUCCESS:
5184
        if (value == null) {
5185
          unsetSuccess();
5186
        } else {
5187
          setSuccess((LogisticsInfo)value);
5188
        }
5189
        break;
5190
 
5191
      case SE:
5192
        if (value == null) {
5193
          unsetSe();
5194
        } else {
5195
          setSe((LogisticsServiceException)value);
5196
        }
5197
        break;
5198
 
5199
      }
5200
    }
5201
 
5202
    public Object getFieldValue(_Fields field) {
5203
      switch (field) {
5204
      case SUCCESS:
5205
        return getSuccess();
5206
 
5207
      case SE:
5208
        return getSe();
5209
 
5210
      }
5211
      throw new IllegalStateException();
5212
    }
5213
 
5214
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5215
    public boolean isSet(_Fields field) {
5216
      if (field == null) {
5217
        throw new IllegalArgumentException();
5218
      }
5219
 
5220
      switch (field) {
5221
      case SUCCESS:
5222
        return isSetSuccess();
5223
      case SE:
5224
        return isSetSe();
5225
      }
5226
      throw new IllegalStateException();
5227
    }
5228
 
5229
    @Override
5230
    public boolean equals(Object that) {
5231
      if (that == null)
5232
        return false;
5233
      if (that instanceof getLogisticsEstimationForStore_result)
5234
        return this.equals((getLogisticsEstimationForStore_result)that);
5235
      return false;
5236
    }
5237
 
5238
    public boolean equals(getLogisticsEstimationForStore_result that) {
5239
      if (that == null)
5240
        return false;
5241
 
5242
      boolean this_present_success = true && this.isSetSuccess();
5243
      boolean that_present_success = true && that.isSetSuccess();
5244
      if (this_present_success || that_present_success) {
5245
        if (!(this_present_success && that_present_success))
5246
          return false;
5247
        if (!this.success.equals(that.success))
5248
          return false;
5249
      }
5250
 
5251
      boolean this_present_se = true && this.isSetSe();
5252
      boolean that_present_se = true && that.isSetSe();
5253
      if (this_present_se || that_present_se) {
5254
        if (!(this_present_se && that_present_se))
5255
          return false;
5256
        if (!this.se.equals(that.se))
5257
          return false;
5258
      }
5259
 
5260
      return true;
5261
    }
5262
 
5263
    @Override
5264
    public int hashCode() {
5265
      return 0;
5266
    }
5267
 
5268
    public int compareTo(getLogisticsEstimationForStore_result other) {
5269
      if (!getClass().equals(other.getClass())) {
5270
        return getClass().getName().compareTo(other.getClass().getName());
5271
      }
5272
 
5273
      int lastComparison = 0;
5274
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5275
 
5276
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5277
      if (lastComparison != 0) {
5278
        return lastComparison;
5279
      }
5280
      if (isSetSuccess()) {
5281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5282
        if (lastComparison != 0) {
5283
          return lastComparison;
5284
        }
5285
      }
5286
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5287
      if (lastComparison != 0) {
5288
        return lastComparison;
5289
      }
5290
      if (isSetSe()) {
5291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5292
        if (lastComparison != 0) {
5293
          return lastComparison;
5294
        }
5295
      }
5296
      return 0;
5297
    }
5298
 
5299
    public _Fields fieldForId(int fieldId) {
5300
      return _Fields.findByThriftId(fieldId);
5301
    }
5302
 
5303
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5304
      org.apache.thrift.protocol.TField field;
5305
      iprot.readStructBegin();
5306
      while (true)
5307
      {
5308
        field = iprot.readFieldBegin();
5309
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5310
          break;
5311
        }
5312
        switch (field.id) {
5313
          case 0: // SUCCESS
5314
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5315
              this.success = new LogisticsInfo();
5316
              this.success.read(iprot);
5317
            } else { 
5318
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5319
            }
5320
            break;
5321
          case 1: // SE
5322
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5323
              this.se = new LogisticsServiceException();
5324
              this.se.read(iprot);
5325
            } else { 
5326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5327
            }
5328
            break;
5329
          default:
5330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5331
        }
5332
        iprot.readFieldEnd();
5333
      }
5334
      iprot.readStructEnd();
5335
      validate();
5336
    }
5337
 
5338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5339
      oprot.writeStructBegin(STRUCT_DESC);
5340
 
5341
      if (this.isSetSuccess()) {
5342
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5343
        this.success.write(oprot);
5344
        oprot.writeFieldEnd();
5345
      } else if (this.isSetSe()) {
5346
        oprot.writeFieldBegin(SE_FIELD_DESC);
5347
        this.se.write(oprot);
5348
        oprot.writeFieldEnd();
5349
      }
5350
      oprot.writeFieldStop();
5351
      oprot.writeStructEnd();
5352
    }
5353
 
5354
    @Override
5355
    public String toString() {
5356
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5357
      boolean first = true;
5358
 
5359
      sb.append("success:");
5360
      if (this.success == null) {
5361
        sb.append("null");
5362
      } else {
5363
        sb.append(this.success);
5364
      }
5365
      first = false;
5366
      if (!first) sb.append(", ");
5367
      sb.append("se:");
5368
      if (this.se == null) {
5369
        sb.append("null");
5370
      } else {
5371
        sb.append(this.se);
5372
      }
5373
      first = false;
5374
      sb.append(")");
5375
      return sb.toString();
5376
    }
5377
 
5378
    public void validate() throws org.apache.thrift.TException {
5379
      // check for required fields
5380
    }
5381
 
5382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5383
      try {
5384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5385
      } catch (org.apache.thrift.TException te) {
5386
        throw new java.io.IOException(te);
5387
      }
5388
    }
5389
 
5390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5391
      try {
5392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5393
      } catch (org.apache.thrift.TException te) {
5394
        throw new java.io.IOException(te);
5395
      }
5396
    }
5397
 
5398
  }
5399
 
3430 rajveer 5400
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5402
 
3430 rajveer 5403
    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);
5404
    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);
5405
    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 5406
    private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I32, (short)4);
471 rajveer 5407
 
3430 rajveer 5408
    private String destination_pincode; // required
5409
    private long item_id; // required
5410
    private DeliveryType type; // required
5766 rajveer 5411
    private PickUpType pickUp; // required
471 rajveer 5412
 
5413
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5414
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5415
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5416
      ITEM_ID((short)2, "item_id"),
5417
      /**
5418
       * 
5419
       * @see DeliveryType
5420
       */
5766 rajveer 5421
      TYPE((short)3, "type"),
5422
      /**
5423
       * 
5424
       * @see PickUpType
5425
       */
5426
      PICK_UP((short)4, "pickUp");
471 rajveer 5427
 
5428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5429
 
5430
      static {
5431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5432
          byName.put(field.getFieldName(), field);
5433
        }
5434
      }
5435
 
5436
      /**
5437
       * Find the _Fields constant that matches fieldId, or null if its not found.
5438
       */
5439
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5440
        switch(fieldId) {
5441
          case 1: // DESTINATION_PINCODE
5442
            return DESTINATION_PINCODE;
5443
          case 2: // ITEM_ID
5444
            return ITEM_ID;
5445
          case 3: // TYPE
5446
            return TYPE;
5766 rajveer 5447
          case 4: // PICK_UP
5448
            return PICK_UP;
3430 rajveer 5449
          default:
5450
            return null;
5451
        }
471 rajveer 5452
      }
5453
 
5454
      /**
5455
       * Find the _Fields constant that matches fieldId, throwing an exception
5456
       * if it is not found.
5457
       */
5458
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5459
        _Fields fields = findByThriftId(fieldId);
5460
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5461
        return fields;
5462
      }
5463
 
5464
      /**
5465
       * Find the _Fields constant that matches name, or null if its not found.
5466
       */
5467
      public static _Fields findByName(String name) {
5468
        return byName.get(name);
5469
      }
5470
 
5471
      private final short _thriftId;
5472
      private final String _fieldName;
5473
 
5474
      _Fields(short thriftId, String fieldName) {
5475
        _thriftId = thriftId;
5476
        _fieldName = fieldName;
5477
      }
5478
 
5479
      public short getThriftFieldId() {
5480
        return _thriftId;
5481
      }
5482
 
5483
      public String getFieldName() {
5484
        return _fieldName;
5485
      }
5486
    }
5487
 
5488
    // isset id assignments
715 rajveer 5489
    private static final int __ITEM_ID_ISSET_ID = 0;
5490
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5491
 
3430 rajveer 5492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5493
    static {
3430 rajveer 5494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5495
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5497
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5499
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5500
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5501
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5502
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5505
    }
5506
 
648 chandransh 5507
    public getLogisticsInfo_args() {
477 rajveer 5508
    }
5509
 
648 chandransh 5510
    public getLogisticsInfo_args(
5511
      String destination_pincode,
3044 chandransh 5512
      long item_id,
5766 rajveer 5513
      DeliveryType type,
5514
      PickUpType pickUp)
477 rajveer 5515
    {
5516
      this();
648 chandransh 5517
      this.destination_pincode = destination_pincode;
5518
      this.item_id = item_id;
715 rajveer 5519
      setItem_idIsSet(true);
3044 chandransh 5520
      this.type = type;
5766 rajveer 5521
      this.pickUp = pickUp;
477 rajveer 5522
    }
5523
 
5524
    /**
5525
     * Performs a deep copy on <i>other</i>.
5526
     */
648 chandransh 5527
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5528
      __isset_bit_vector.clear();
5529
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5530
      if (other.isSetDestination_pincode()) {
5531
        this.destination_pincode = other.destination_pincode;
477 rajveer 5532
      }
715 rajveer 5533
      this.item_id = other.item_id;
3044 chandransh 5534
      if (other.isSetType()) {
5535
        this.type = other.type;
5536
      }
5766 rajveer 5537
      if (other.isSetPickUp()) {
5538
        this.pickUp = other.pickUp;
5539
      }
477 rajveer 5540
    }
5541
 
648 chandransh 5542
    public getLogisticsInfo_args deepCopy() {
5543
      return new getLogisticsInfo_args(this);
477 rajveer 5544
    }
5545
 
3430 rajveer 5546
    @Override
5547
    public void clear() {
5548
      this.destination_pincode = null;
5549
      setItem_idIsSet(false);
5550
      this.item_id = 0;
5551
      this.type = null;
5766 rajveer 5552
      this.pickUp = null;
477 rajveer 5553
    }
5554
 
648 chandransh 5555
    public String getDestination_pincode() {
5556
      return this.destination_pincode;
477 rajveer 5557
    }
5558
 
3430 rajveer 5559
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5560
      this.destination_pincode = destination_pincode;
477 rajveer 5561
    }
5562
 
648 chandransh 5563
    public void unsetDestination_pincode() {
5564
      this.destination_pincode = null;
477 rajveer 5565
    }
5566
 
3430 rajveer 5567
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5568
    public boolean isSetDestination_pincode() {
5569
      return this.destination_pincode != null;
477 rajveer 5570
    }
5571
 
648 chandransh 5572
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5573
      if (!value) {
648 chandransh 5574
        this.destination_pincode = null;
477 rajveer 5575
      }
5576
    }
5577
 
715 rajveer 5578
    public long getItem_id() {
648 chandransh 5579
      return this.item_id;
477 rajveer 5580
    }
5581
 
3430 rajveer 5582
    public void setItem_id(long item_id) {
648 chandransh 5583
      this.item_id = item_id;
715 rajveer 5584
      setItem_idIsSet(true);
477 rajveer 5585
    }
5586
 
648 chandransh 5587
    public void unsetItem_id() {
715 rajveer 5588
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5589
    }
5590
 
3430 rajveer 5591
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5592
    public boolean isSetItem_id() {
715 rajveer 5593
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5594
    }
5595
 
648 chandransh 5596
    public void setItem_idIsSet(boolean value) {
715 rajveer 5597
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5598
    }
5599
 
3044 chandransh 5600
    /**
5601
     * 
5602
     * @see DeliveryType
5603
     */
5604
    public DeliveryType getType() {
5605
      return this.type;
5606
    }
5607
 
5608
    /**
5609
     * 
5610
     * @see DeliveryType
5611
     */
3430 rajveer 5612
    public void setType(DeliveryType type) {
3044 chandransh 5613
      this.type = type;
5614
    }
5615
 
5616
    public void unsetType() {
5617
      this.type = null;
5618
    }
5619
 
3430 rajveer 5620
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5621
    public boolean isSetType() {
5622
      return this.type != null;
5623
    }
5624
 
5625
    public void setTypeIsSet(boolean value) {
5626
      if (!value) {
5627
        this.type = null;
5628
      }
5629
    }
5630
 
5766 rajveer 5631
    /**
5632
     * 
5633
     * @see PickUpType
5634
     */
5635
    public PickUpType getPickUp() {
5636
      return this.pickUp;
5637
    }
5638
 
5639
    /**
5640
     * 
5641
     * @see PickUpType
5642
     */
5643
    public void setPickUp(PickUpType pickUp) {
5644
      this.pickUp = pickUp;
5645
    }
5646
 
5647
    public void unsetPickUp() {
5648
      this.pickUp = null;
5649
    }
5650
 
5651
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5652
    public boolean isSetPickUp() {
5653
      return this.pickUp != null;
5654
    }
5655
 
5656
    public void setPickUpIsSet(boolean value) {
5657
      if (!value) {
5658
        this.pickUp = null;
5659
      }
5660
    }
5661
 
477 rajveer 5662
    public void setFieldValue(_Fields field, Object value) {
5663
      switch (field) {
648 chandransh 5664
      case DESTINATION_PINCODE:
477 rajveer 5665
        if (value == null) {
648 chandransh 5666
          unsetDestination_pincode();
477 rajveer 5667
        } else {
648 chandransh 5668
          setDestination_pincode((String)value);
477 rajveer 5669
        }
5670
        break;
5671
 
648 chandransh 5672
      case ITEM_ID:
477 rajveer 5673
        if (value == null) {
648 chandransh 5674
          unsetItem_id();
477 rajveer 5675
        } else {
715 rajveer 5676
          setItem_id((Long)value);
477 rajveer 5677
        }
5678
        break;
5679
 
3044 chandransh 5680
      case TYPE:
5681
        if (value == null) {
5682
          unsetType();
5683
        } else {
5684
          setType((DeliveryType)value);
5685
        }
5686
        break;
5687
 
5766 rajveer 5688
      case PICK_UP:
5689
        if (value == null) {
5690
          unsetPickUp();
5691
        } else {
5692
          setPickUp((PickUpType)value);
5693
        }
5694
        break;
5695
 
477 rajveer 5696
      }
5697
    }
5698
 
5699
    public Object getFieldValue(_Fields field) {
5700
      switch (field) {
648 chandransh 5701
      case DESTINATION_PINCODE:
5702
        return getDestination_pincode();
477 rajveer 5703
 
648 chandransh 5704
      case ITEM_ID:
3430 rajveer 5705
        return Long.valueOf(getItem_id());
477 rajveer 5706
 
3044 chandransh 5707
      case TYPE:
5708
        return getType();
5709
 
5766 rajveer 5710
      case PICK_UP:
5711
        return getPickUp();
5712
 
477 rajveer 5713
      }
5714
      throw new IllegalStateException();
5715
    }
5716
 
3430 rajveer 5717
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5718
    public boolean isSet(_Fields field) {
5719
      if (field == null) {
5720
        throw new IllegalArgumentException();
5721
      }
477 rajveer 5722
 
5723
      switch (field) {
648 chandransh 5724
      case DESTINATION_PINCODE:
5725
        return isSetDestination_pincode();
5726
      case ITEM_ID:
5727
        return isSetItem_id();
3044 chandransh 5728
      case TYPE:
5729
        return isSetType();
5766 rajveer 5730
      case PICK_UP:
5731
        return isSetPickUp();
477 rajveer 5732
      }
5733
      throw new IllegalStateException();
5734
    }
5735
 
5736
    @Override
5737
    public boolean equals(Object that) {
5738
      if (that == null)
5739
        return false;
648 chandransh 5740
      if (that instanceof getLogisticsInfo_args)
5741
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5742
      return false;
5743
    }
5744
 
648 chandransh 5745
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5746
      if (that == null)
5747
        return false;
5748
 
648 chandransh 5749
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5750
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5751
      if (this_present_destination_pincode || that_present_destination_pincode) {
5752
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5753
          return false;
648 chandransh 5754
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5755
          return false;
5756
      }
5757
 
715 rajveer 5758
      boolean this_present_item_id = true;
5759
      boolean that_present_item_id = true;
648 chandransh 5760
      if (this_present_item_id || that_present_item_id) {
5761
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5762
          return false;
715 rajveer 5763
        if (this.item_id != that.item_id)
477 rajveer 5764
          return false;
5765
      }
5766
 
3044 chandransh 5767
      boolean this_present_type = true && this.isSetType();
5768
      boolean that_present_type = true && that.isSetType();
5769
      if (this_present_type || that_present_type) {
5770
        if (!(this_present_type && that_present_type))
5771
          return false;
5772
        if (!this.type.equals(that.type))
5773
          return false;
5774
      }
5775
 
5766 rajveer 5776
      boolean this_present_pickUp = true && this.isSetPickUp();
5777
      boolean that_present_pickUp = true && that.isSetPickUp();
5778
      if (this_present_pickUp || that_present_pickUp) {
5779
        if (!(this_present_pickUp && that_present_pickUp))
5780
          return false;
5781
        if (!this.pickUp.equals(that.pickUp))
5782
          return false;
5783
      }
5784
 
477 rajveer 5785
      return true;
5786
    }
5787
 
5788
    @Override
5789
    public int hashCode() {
5790
      return 0;
5791
    }
5792
 
648 chandransh 5793
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5794
      if (!getClass().equals(other.getClass())) {
5795
        return getClass().getName().compareTo(other.getClass().getName());
5796
      }
5797
 
5798
      int lastComparison = 0;
648 chandransh 5799
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5800
 
3430 rajveer 5801
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5802
      if (lastComparison != 0) {
5803
        return lastComparison;
5804
      }
3430 rajveer 5805
      if (isSetDestination_pincode()) {
5806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5807
        if (lastComparison != 0) {
5808
          return lastComparison;
5809
        }
477 rajveer 5810
      }
3430 rajveer 5811
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5812
      if (lastComparison != 0) {
5813
        return lastComparison;
5814
      }
3430 rajveer 5815
      if (isSetItem_id()) {
5816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5817
        if (lastComparison != 0) {
5818
          return lastComparison;
5819
        }
477 rajveer 5820
      }
3430 rajveer 5821
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5822
      if (lastComparison != 0) {
5823
        return lastComparison;
5824
      }
3430 rajveer 5825
      if (isSetType()) {
5826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5827
        if (lastComparison != 0) {
5828
          return lastComparison;
5829
        }
3044 chandransh 5830
      }
5766 rajveer 5831
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5832
      if (lastComparison != 0) {
5833
        return lastComparison;
5834
      }
5835
      if (isSetPickUp()) {
5836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5837
        if (lastComparison != 0) {
5838
          return lastComparison;
5839
        }
5840
      }
477 rajveer 5841
      return 0;
5842
    }
5843
 
3430 rajveer 5844
    public _Fields fieldForId(int fieldId) {
5845
      return _Fields.findByThriftId(fieldId);
5846
    }
5847
 
5848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5849
      org.apache.thrift.protocol.TField field;
477 rajveer 5850
      iprot.readStructBegin();
5851
      while (true)
5852
      {
5853
        field = iprot.readFieldBegin();
3430 rajveer 5854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5855
          break;
5856
        }
3430 rajveer 5857
        switch (field.id) {
5858
          case 1: // DESTINATION_PINCODE
5859
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5860
              this.destination_pincode = iprot.readString();
5861
            } else { 
5862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5863
            }
5864
            break;
5865
          case 2: // ITEM_ID
5866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5867
              this.item_id = iprot.readI64();
5868
              setItem_idIsSet(true);
5869
            } else { 
5870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5871
            }
5872
            break;
5873
          case 3: // TYPE
5874
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5875
              this.type = DeliveryType.findByValue(iprot.readI32());
5876
            } else { 
5877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5878
            }
5879
            break;
5766 rajveer 5880
          case 4: // PICK_UP
5881
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5882
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5883
            } else { 
5884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5885
            }
5886
            break;
3430 rajveer 5887
          default:
5888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5889
        }
3430 rajveer 5890
        iprot.readFieldEnd();
477 rajveer 5891
      }
5892
      iprot.readStructEnd();
5893
      validate();
5894
    }
5895
 
3430 rajveer 5896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5897
      validate();
5898
 
5899
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5900
      if (this.destination_pincode != null) {
5901
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5902
        oprot.writeString(this.destination_pincode);
477 rajveer 5903
        oprot.writeFieldEnd();
5904
      }
715 rajveer 5905
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5906
      oprot.writeI64(this.item_id);
5907
      oprot.writeFieldEnd();
3044 chandransh 5908
      if (this.type != null) {
5909
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5910
        oprot.writeI32(this.type.getValue());
5911
        oprot.writeFieldEnd();
5912
      }
5766 rajveer 5913
      if (this.pickUp != null) {
5914
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5915
        oprot.writeI32(this.pickUp.getValue());
5916
        oprot.writeFieldEnd();
5917
      }
477 rajveer 5918
      oprot.writeFieldStop();
5919
      oprot.writeStructEnd();
5920
    }
5921
 
5922
    @Override
5923
    public String toString() {
648 chandransh 5924
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5925
      boolean first = true;
5926
 
648 chandransh 5927
      sb.append("destination_pincode:");
5928
      if (this.destination_pincode == null) {
477 rajveer 5929
        sb.append("null");
5930
      } else {
648 chandransh 5931
        sb.append(this.destination_pincode);
477 rajveer 5932
      }
5933
      first = false;
5934
      if (!first) sb.append(", ");
648 chandransh 5935
      sb.append("item_id:");
715 rajveer 5936
      sb.append(this.item_id);
477 rajveer 5937
      first = false;
3044 chandransh 5938
      if (!first) sb.append(", ");
5939
      sb.append("type:");
5940
      if (this.type == null) {
5941
        sb.append("null");
5942
      } else {
5943
        sb.append(this.type);
5944
      }
5945
      first = false;
5766 rajveer 5946
      if (!first) sb.append(", ");
5947
      sb.append("pickUp:");
5948
      if (this.pickUp == null) {
5949
        sb.append("null");
5950
      } else {
5951
        sb.append(this.pickUp);
5952
      }
5953
      first = false;
477 rajveer 5954
      sb.append(")");
5955
      return sb.toString();
5956
    }
5957
 
3430 rajveer 5958
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5959
      // check for required fields
5960
    }
5961
 
3430 rajveer 5962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5963
      try {
5964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5965
      } catch (org.apache.thrift.TException te) {
5966
        throw new java.io.IOException(te);
5967
      }
5968
    }
5969
 
5970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5971
      try {
5972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5973
      } catch (org.apache.thrift.TException te) {
5974
        throw new java.io.IOException(te);
5975
      }
5976
    }
5977
 
477 rajveer 5978
  }
5979
 
3430 rajveer 5980
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5982
 
3430 rajveer 5983
    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);
5984
    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 5985
 
3430 rajveer 5986
    private LogisticsInfo success; // required
5987
    private LogisticsServiceException se; // required
477 rajveer 5988
 
5989
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5990
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5991
      SUCCESS((short)0, "success"),
5992
      SE((short)1, "se");
477 rajveer 5993
 
5994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5995
 
5996
      static {
5997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5998
          byName.put(field.getFieldName(), field);
5999
        }
6000
      }
6001
 
6002
      /**
6003
       * Find the _Fields constant that matches fieldId, or null if its not found.
6004
       */
6005
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6006
        switch(fieldId) {
6007
          case 0: // SUCCESS
6008
            return SUCCESS;
6009
          case 1: // SE
6010
            return SE;
6011
          default:
6012
            return null;
6013
        }
477 rajveer 6014
      }
6015
 
6016
      /**
6017
       * Find the _Fields constant that matches fieldId, throwing an exception
6018
       * if it is not found.
6019
       */
6020
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6021
        _Fields fields = findByThriftId(fieldId);
6022
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6023
        return fields;
6024
      }
6025
 
6026
      /**
6027
       * Find the _Fields constant that matches name, or null if its not found.
6028
       */
6029
      public static _Fields findByName(String name) {
6030
        return byName.get(name);
6031
      }
6032
 
6033
      private final short _thriftId;
6034
      private final String _fieldName;
6035
 
6036
      _Fields(short thriftId, String fieldName) {
6037
        _thriftId = thriftId;
6038
        _fieldName = fieldName;
6039
      }
6040
 
6041
      public short getThriftFieldId() {
6042
        return _thriftId;
6043
      }
6044
 
6045
      public String getFieldName() {
6046
        return _fieldName;
6047
      }
6048
    }
6049
 
412 ashish 6050
    // isset id assignments
6051
 
3430 rajveer 6052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6053
    static {
3430 rajveer 6054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6055
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6056
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6057
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6061
    }
6062
 
648 chandransh 6063
    public getLogisticsInfo_result() {
412 ashish 6064
    }
6065
 
648 chandransh 6066
    public getLogisticsInfo_result(
6067
      LogisticsInfo success,
6068
      LogisticsServiceException se)
412 ashish 6069
    {
6070
      this();
648 chandransh 6071
      this.success = success;
6072
      this.se = se;
412 ashish 6073
    }
6074
 
6075
    /**
6076
     * Performs a deep copy on <i>other</i>.
6077
     */
648 chandransh 6078
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6079
      if (other.isSetSuccess()) {
6080
        this.success = new LogisticsInfo(other.success);
412 ashish 6081
      }
648 chandransh 6082
      if (other.isSetSe()) {
6083
        this.se = new LogisticsServiceException(other.se);
6084
      }
412 ashish 6085
    }
6086
 
648 chandransh 6087
    public getLogisticsInfo_result deepCopy() {
6088
      return new getLogisticsInfo_result(this);
412 ashish 6089
    }
6090
 
3430 rajveer 6091
    @Override
6092
    public void clear() {
6093
      this.success = null;
6094
      this.se = null;
412 ashish 6095
    }
6096
 
648 chandransh 6097
    public LogisticsInfo getSuccess() {
6098
      return this.success;
412 ashish 6099
    }
6100
 
3430 rajveer 6101
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6102
      this.success = success;
412 ashish 6103
    }
6104
 
648 chandransh 6105
    public void unsetSuccess() {
6106
      this.success = null;
412 ashish 6107
    }
6108
 
3430 rajveer 6109
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6110
    public boolean isSetSuccess() {
6111
      return this.success != null;
412 ashish 6112
    }
6113
 
648 chandransh 6114
    public void setSuccessIsSet(boolean value) {
412 ashish 6115
      if (!value) {
648 chandransh 6116
        this.success = null;
412 ashish 6117
      }
6118
    }
6119
 
648 chandransh 6120
    public LogisticsServiceException getSe() {
6121
      return this.se;
412 ashish 6122
    }
6123
 
3430 rajveer 6124
    public void setSe(LogisticsServiceException se) {
648 chandransh 6125
      this.se = se;
412 ashish 6126
    }
6127
 
648 chandransh 6128
    public void unsetSe() {
6129
      this.se = null;
412 ashish 6130
    }
6131
 
3430 rajveer 6132
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6133
    public boolean isSetSe() {
6134
      return this.se != null;
412 ashish 6135
    }
6136
 
648 chandransh 6137
    public void setSeIsSet(boolean value) {
6138
      if (!value) {
6139
        this.se = null;
6140
      }
412 ashish 6141
    }
6142
 
6143
    public void setFieldValue(_Fields field, Object value) {
6144
      switch (field) {
648 chandransh 6145
      case SUCCESS:
412 ashish 6146
        if (value == null) {
648 chandransh 6147
          unsetSuccess();
412 ashish 6148
        } else {
648 chandransh 6149
          setSuccess((LogisticsInfo)value);
412 ashish 6150
        }
6151
        break;
6152
 
648 chandransh 6153
      case SE:
412 ashish 6154
        if (value == null) {
648 chandransh 6155
          unsetSe();
412 ashish 6156
        } else {
648 chandransh 6157
          setSe((LogisticsServiceException)value);
412 ashish 6158
        }
6159
        break;
6160
 
6161
      }
6162
    }
6163
 
6164
    public Object getFieldValue(_Fields field) {
6165
      switch (field) {
648 chandransh 6166
      case SUCCESS:
6167
        return getSuccess();
412 ashish 6168
 
648 chandransh 6169
      case SE:
6170
        return getSe();
412 ashish 6171
 
6172
      }
6173
      throw new IllegalStateException();
6174
    }
6175
 
3430 rajveer 6176
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6177
    public boolean isSet(_Fields field) {
6178
      if (field == null) {
6179
        throw new IllegalArgumentException();
6180
      }
412 ashish 6181
 
6182
      switch (field) {
648 chandransh 6183
      case SUCCESS:
6184
        return isSetSuccess();
6185
      case SE:
6186
        return isSetSe();
412 ashish 6187
      }
6188
      throw new IllegalStateException();
6189
    }
6190
 
6191
    @Override
6192
    public boolean equals(Object that) {
6193
      if (that == null)
6194
        return false;
648 chandransh 6195
      if (that instanceof getLogisticsInfo_result)
6196
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6197
      return false;
6198
    }
6199
 
648 chandransh 6200
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6201
      if (that == null)
6202
        return false;
6203
 
648 chandransh 6204
      boolean this_present_success = true && this.isSetSuccess();
6205
      boolean that_present_success = true && that.isSetSuccess();
6206
      if (this_present_success || that_present_success) {
6207
        if (!(this_present_success && that_present_success))
412 ashish 6208
          return false;
648 chandransh 6209
        if (!this.success.equals(that.success))
412 ashish 6210
          return false;
6211
      }
6212
 
648 chandransh 6213
      boolean this_present_se = true && this.isSetSe();
6214
      boolean that_present_se = true && that.isSetSe();
6215
      if (this_present_se || that_present_se) {
6216
        if (!(this_present_se && that_present_se))
412 ashish 6217
          return false;
648 chandransh 6218
        if (!this.se.equals(that.se))
412 ashish 6219
          return false;
6220
      }
6221
 
6222
      return true;
6223
    }
6224
 
6225
    @Override
6226
    public int hashCode() {
6227
      return 0;
6228
    }
6229
 
648 chandransh 6230
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6231
      if (!getClass().equals(other.getClass())) {
6232
        return getClass().getName().compareTo(other.getClass().getName());
6233
      }
6234
 
6235
      int lastComparison = 0;
648 chandransh 6236
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6237
 
3430 rajveer 6238
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6239
      if (lastComparison != 0) {
6240
        return lastComparison;
6241
      }
3430 rajveer 6242
      if (isSetSuccess()) {
6243
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6244
        if (lastComparison != 0) {
6245
          return lastComparison;
6246
        }
412 ashish 6247
      }
3430 rajveer 6248
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6249
      if (lastComparison != 0) {
6250
        return lastComparison;
6251
      }
3430 rajveer 6252
      if (isSetSe()) {
6253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6254
        if (lastComparison != 0) {
6255
          return lastComparison;
6256
        }
412 ashish 6257
      }
6258
      return 0;
6259
    }
6260
 
3430 rajveer 6261
    public _Fields fieldForId(int fieldId) {
6262
      return _Fields.findByThriftId(fieldId);
6263
    }
6264
 
6265
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6266
      org.apache.thrift.protocol.TField field;
412 ashish 6267
      iprot.readStructBegin();
6268
      while (true)
6269
      {
6270
        field = iprot.readFieldBegin();
3430 rajveer 6271
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6272
          break;
6273
        }
3430 rajveer 6274
        switch (field.id) {
6275
          case 0: // SUCCESS
6276
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6277
              this.success = new LogisticsInfo();
6278
              this.success.read(iprot);
6279
            } else { 
6280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6281
            }
6282
            break;
6283
          case 1: // SE
6284
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6285
              this.se = new LogisticsServiceException();
6286
              this.se.read(iprot);
6287
            } else { 
6288
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6289
            }
6290
            break;
6291
          default:
6292
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6293
        }
3430 rajveer 6294
        iprot.readFieldEnd();
412 ashish 6295
      }
6296
      iprot.readStructEnd();
6297
      validate();
6298
    }
6299
 
3430 rajveer 6300
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6301
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6302
 
648 chandransh 6303
      if (this.isSetSuccess()) {
6304
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6305
        this.success.write(oprot);
412 ashish 6306
        oprot.writeFieldEnd();
648 chandransh 6307
      } else if (this.isSetSe()) {
6308
        oprot.writeFieldBegin(SE_FIELD_DESC);
6309
        this.se.write(oprot);
6310
        oprot.writeFieldEnd();
412 ashish 6311
      }
6312
      oprot.writeFieldStop();
6313
      oprot.writeStructEnd();
6314
    }
6315
 
6316
    @Override
6317
    public String toString() {
648 chandransh 6318
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6319
      boolean first = true;
6320
 
648 chandransh 6321
      sb.append("success:");
6322
      if (this.success == null) {
412 ashish 6323
        sb.append("null");
6324
      } else {
648 chandransh 6325
        sb.append(this.success);
412 ashish 6326
      }
6327
      first = false;
6328
      if (!first) sb.append(", ");
648 chandransh 6329
      sb.append("se:");
6330
      if (this.se == null) {
6331
        sb.append("null");
6332
      } else {
6333
        sb.append(this.se);
6334
      }
412 ashish 6335
      first = false;
6336
      sb.append(")");
6337
      return sb.toString();
6338
    }
6339
 
3430 rajveer 6340
    public void validate() throws org.apache.thrift.TException {
412 ashish 6341
      // check for required fields
6342
    }
6343
 
3430 rajveer 6344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6345
      try {
6346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6347
      } catch (org.apache.thrift.TException te) {
6348
        throw new java.io.IOException(te);
6349
      }
6350
    }
6351
 
6352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6353
      try {
6354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6355
      } catch (org.apache.thrift.TException te) {
6356
        throw new java.io.IOException(te);
6357
      }
6358
    }
6359
 
412 ashish 6360
  }
6361
 
3430 rajveer 6362
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6364
 
3430 rajveer 6365
    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 6366
    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 6367
 
3430 rajveer 6368
    private long providerId; // required
20724 kshitij.so 6369
    private String logisticsTransactionId; // required
412 ashish 6370
 
6371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6373
      PROVIDER_ID((short)1, "providerId"),
20724 kshitij.so 6374
      LOGISTICS_TRANSACTION_ID((short)2, "logisticsTransactionId");
412 ashish 6375
 
6376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6377
 
6378
      static {
6379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6380
          byName.put(field.getFieldName(), field);
6381
        }
6382
      }
6383
 
6384
      /**
6385
       * Find the _Fields constant that matches fieldId, or null if its not found.
6386
       */
6387
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6388
        switch(fieldId) {
6389
          case 1: // PROVIDER_ID
6390
            return PROVIDER_ID;
20724 kshitij.so 6391
          case 2: // LOGISTICS_TRANSACTION_ID
6392
            return LOGISTICS_TRANSACTION_ID;
3430 rajveer 6393
          default:
6394
            return null;
6395
        }
412 ashish 6396
      }
6397
 
6398
      /**
6399
       * Find the _Fields constant that matches fieldId, throwing an exception
6400
       * if it is not found.
6401
       */
6402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6403
        _Fields fields = findByThriftId(fieldId);
6404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6405
        return fields;
6406
      }
6407
 
6408
      /**
6409
       * Find the _Fields constant that matches name, or null if its not found.
6410
       */
6411
      public static _Fields findByName(String name) {
6412
        return byName.get(name);
6413
      }
6414
 
6415
      private final short _thriftId;
6416
      private final String _fieldName;
6417
 
6418
      _Fields(short thriftId, String fieldName) {
6419
        _thriftId = thriftId;
6420
        _fieldName = fieldName;
6421
      }
6422
 
6423
      public short getThriftFieldId() {
6424
        return _thriftId;
6425
      }
6426
 
6427
      public String getFieldName() {
6428
        return _fieldName;
6429
      }
6430
    }
6431
 
6432
    // isset id assignments
648 chandransh 6433
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6434
    private BitSet __isset_bit_vector = new BitSet(1);
6435
 
3430 rajveer 6436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6437
    static {
3430 rajveer 6438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6439
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20724 kshitij.so 6441
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6442
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6445
    }
6446
 
6447
    public getEmptyAWB_args() {
6448
    }
6449
 
6450
    public getEmptyAWB_args(
5247 rajveer 6451
      long providerId,
20724 kshitij.so 6452
      String logisticsTransactionId)
412 ashish 6453
    {
6454
      this();
648 chandransh 6455
      this.providerId = providerId;
6456
      setProviderIdIsSet(true);
20724 kshitij.so 6457
      this.logisticsTransactionId = logisticsTransactionId;
412 ashish 6458
    }
6459
 
6460
    /**
6461
     * Performs a deep copy on <i>other</i>.
6462
     */
6463
    public getEmptyAWB_args(getEmptyAWB_args other) {
6464
      __isset_bit_vector.clear();
6465
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6466
      this.providerId = other.providerId;
20724 kshitij.so 6467
      if (other.isSetLogisticsTransactionId()) {
6468
        this.logisticsTransactionId = other.logisticsTransactionId;
5247 rajveer 6469
      }
412 ashish 6470
    }
6471
 
6472
    public getEmptyAWB_args deepCopy() {
6473
      return new getEmptyAWB_args(this);
6474
    }
6475
 
3430 rajveer 6476
    @Override
6477
    public void clear() {
6478
      setProviderIdIsSet(false);
6479
      this.providerId = 0;
20724 kshitij.so 6480
      this.logisticsTransactionId = null;
412 ashish 6481
    }
6482
 
648 chandransh 6483
    public long getProviderId() {
6484
      return this.providerId;
412 ashish 6485
    }
6486
 
3430 rajveer 6487
    public void setProviderId(long providerId) {
648 chandransh 6488
      this.providerId = providerId;
6489
      setProviderIdIsSet(true);
412 ashish 6490
    }
6491
 
648 chandransh 6492
    public void unsetProviderId() {
6493
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6494
    }
6495
 
3430 rajveer 6496
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6497
    public boolean isSetProviderId() {
6498
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6499
    }
6500
 
648 chandransh 6501
    public void setProviderIdIsSet(boolean value) {
6502
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6503
    }
6504
 
20724 kshitij.so 6505
    public String getLogisticsTransactionId() {
6506
      return this.logisticsTransactionId;
5247 rajveer 6507
    }
6508
 
20724 kshitij.so 6509
    public void setLogisticsTransactionId(String logisticsTransactionId) {
6510
      this.logisticsTransactionId = logisticsTransactionId;
5247 rajveer 6511
    }
6512
 
20724 kshitij.so 6513
    public void unsetLogisticsTransactionId() {
6514
      this.logisticsTransactionId = null;
5247 rajveer 6515
    }
6516
 
20724 kshitij.so 6517
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
6518
    public boolean isSetLogisticsTransactionId() {
6519
      return this.logisticsTransactionId != null;
5247 rajveer 6520
    }
6521
 
20724 kshitij.so 6522
    public void setLogisticsTransactionIdIsSet(boolean value) {
5247 rajveer 6523
      if (!value) {
20724 kshitij.so 6524
        this.logisticsTransactionId = null;
5247 rajveer 6525
      }
6526
    }
6527
 
412 ashish 6528
    public void setFieldValue(_Fields field, Object value) {
6529
      switch (field) {
6530
      case PROVIDER_ID:
6531
        if (value == null) {
648 chandransh 6532
          unsetProviderId();
412 ashish 6533
        } else {
648 chandransh 6534
          setProviderId((Long)value);
412 ashish 6535
        }
6536
        break;
6537
 
20724 kshitij.so 6538
      case LOGISTICS_TRANSACTION_ID:
5247 rajveer 6539
        if (value == null) {
20724 kshitij.so 6540
          unsetLogisticsTransactionId();
5247 rajveer 6541
        } else {
20724 kshitij.so 6542
          setLogisticsTransactionId((String)value);
5247 rajveer 6543
        }
6544
        break;
6545
 
412 ashish 6546
      }
6547
    }
6548
 
6549
    public Object getFieldValue(_Fields field) {
6550
      switch (field) {
6551
      case PROVIDER_ID:
3430 rajveer 6552
        return Long.valueOf(getProviderId());
412 ashish 6553
 
20724 kshitij.so 6554
      case LOGISTICS_TRANSACTION_ID:
6555
        return getLogisticsTransactionId();
5247 rajveer 6556
 
412 ashish 6557
      }
6558
      throw new IllegalStateException();
6559
    }
6560
 
3430 rajveer 6561
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6562
    public boolean isSet(_Fields field) {
6563
      if (field == null) {
6564
        throw new IllegalArgumentException();
6565
      }
412 ashish 6566
 
6567
      switch (field) {
6568
      case PROVIDER_ID:
648 chandransh 6569
        return isSetProviderId();
20724 kshitij.so 6570
      case LOGISTICS_TRANSACTION_ID:
6571
        return isSetLogisticsTransactionId();
412 ashish 6572
      }
6573
      throw new IllegalStateException();
6574
    }
6575
 
6576
    @Override
6577
    public boolean equals(Object that) {
6578
      if (that == null)
6579
        return false;
6580
      if (that instanceof getEmptyAWB_args)
6581
        return this.equals((getEmptyAWB_args)that);
6582
      return false;
6583
    }
6584
 
6585
    public boolean equals(getEmptyAWB_args that) {
6586
      if (that == null)
6587
        return false;
6588
 
648 chandransh 6589
      boolean this_present_providerId = true;
6590
      boolean that_present_providerId = true;
6591
      if (this_present_providerId || that_present_providerId) {
6592
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6593
          return false;
648 chandransh 6594
        if (this.providerId != that.providerId)
412 ashish 6595
          return false;
6596
      }
6597
 
20724 kshitij.so 6598
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
6599
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
6600
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
6601
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
5247 rajveer 6602
          return false;
20724 kshitij.so 6603
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
5247 rajveer 6604
          return false;
6605
      }
6606
 
412 ashish 6607
      return true;
6608
    }
6609
 
6610
    @Override
6611
    public int hashCode() {
6612
      return 0;
6613
    }
6614
 
6615
    public int compareTo(getEmptyAWB_args other) {
6616
      if (!getClass().equals(other.getClass())) {
6617
        return getClass().getName().compareTo(other.getClass().getName());
6618
      }
6619
 
6620
      int lastComparison = 0;
6621
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6622
 
3430 rajveer 6623
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6624
      if (lastComparison != 0) {
6625
        return lastComparison;
6626
      }
3430 rajveer 6627
      if (isSetProviderId()) {
6628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6629
        if (lastComparison != 0) {
6630
          return lastComparison;
6631
        }
412 ashish 6632
      }
20724 kshitij.so 6633
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
5247 rajveer 6634
      if (lastComparison != 0) {
6635
        return lastComparison;
6636
      }
20724 kshitij.so 6637
      if (isSetLogisticsTransactionId()) {
6638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
5247 rajveer 6639
        if (lastComparison != 0) {
6640
          return lastComparison;
6641
        }
6642
      }
412 ashish 6643
      return 0;
6644
    }
6645
 
3430 rajveer 6646
    public _Fields fieldForId(int fieldId) {
6647
      return _Fields.findByThriftId(fieldId);
6648
    }
6649
 
6650
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6651
      org.apache.thrift.protocol.TField field;
412 ashish 6652
      iprot.readStructBegin();
6653
      while (true)
6654
      {
6655
        field = iprot.readFieldBegin();
3430 rajveer 6656
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6657
          break;
6658
        }
3430 rajveer 6659
        switch (field.id) {
6660
          case 1: // PROVIDER_ID
6661
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6662
              this.providerId = iprot.readI64();
6663
              setProviderIdIsSet(true);
6664
            } else { 
6665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6666
            }
6667
            break;
20724 kshitij.so 6668
          case 2: // LOGISTICS_TRANSACTION_ID
6669
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6670
              this.logisticsTransactionId = iprot.readString();
5247 rajveer 6671
            } else { 
6672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6673
            }
6674
            break;
3430 rajveer 6675
          default:
6676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6677
        }
3430 rajveer 6678
        iprot.readFieldEnd();
412 ashish 6679
      }
6680
      iprot.readStructEnd();
6681
      validate();
6682
    }
6683
 
3430 rajveer 6684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6685
      validate();
6686
 
6687
      oprot.writeStructBegin(STRUCT_DESC);
6688
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6689
      oprot.writeI64(this.providerId);
412 ashish 6690
      oprot.writeFieldEnd();
20724 kshitij.so 6691
      if (this.logisticsTransactionId != null) {
6692
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
6693
        oprot.writeString(this.logisticsTransactionId);
6694
        oprot.writeFieldEnd();
6695
      }
412 ashish 6696
      oprot.writeFieldStop();
6697
      oprot.writeStructEnd();
6698
    }
6699
 
6700
    @Override
6701
    public String toString() {
6702
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6703
      boolean first = true;
6704
 
648 chandransh 6705
      sb.append("providerId:");
6706
      sb.append(this.providerId);
412 ashish 6707
      first = false;
5247 rajveer 6708
      if (!first) sb.append(", ");
20724 kshitij.so 6709
      sb.append("logisticsTransactionId:");
6710
      if (this.logisticsTransactionId == null) {
5247 rajveer 6711
        sb.append("null");
6712
      } else {
20724 kshitij.so 6713
        sb.append(this.logisticsTransactionId);
5247 rajveer 6714
      }
6715
      first = false;
412 ashish 6716
      sb.append(")");
6717
      return sb.toString();
6718
    }
6719
 
3430 rajveer 6720
    public void validate() throws org.apache.thrift.TException {
412 ashish 6721
      // check for required fields
6722
    }
6723
 
3430 rajveer 6724
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6725
      try {
6726
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6727
      } catch (org.apache.thrift.TException te) {
6728
        throw new java.io.IOException(te);
6729
      }
6730
    }
6731
 
6732
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6733
      try {
6734
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6735
        __isset_bit_vector = new BitSet(1);
6736
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6737
      } catch (org.apache.thrift.TException te) {
6738
        throw new java.io.IOException(te);
6739
      }
6740
    }
6741
 
412 ashish 6742
  }
6743
 
3430 rajveer 6744
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6745
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6746
 
3430 rajveer 6747
    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);
6748
    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 6749
 
3430 rajveer 6750
    private String success; // required
6751
    private LogisticsServiceException se; // required
412 ashish 6752
 
6753
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6754
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6755
      SUCCESS((short)0, "success"),
6756
      SE((short)1, "se");
412 ashish 6757
 
6758
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6759
 
6760
      static {
6761
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6762
          byName.put(field.getFieldName(), field);
6763
        }
6764
      }
6765
 
6766
      /**
6767
       * Find the _Fields constant that matches fieldId, or null if its not found.
6768
       */
6769
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6770
        switch(fieldId) {
6771
          case 0: // SUCCESS
6772
            return SUCCESS;
6773
          case 1: // SE
6774
            return SE;
6775
          default:
6776
            return null;
6777
        }
412 ashish 6778
      }
6779
 
6780
      /**
6781
       * Find the _Fields constant that matches fieldId, throwing an exception
6782
       * if it is not found.
6783
       */
6784
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6785
        _Fields fields = findByThriftId(fieldId);
6786
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6787
        return fields;
6788
      }
6789
 
6790
      /**
6791
       * Find the _Fields constant that matches name, or null if its not found.
6792
       */
6793
      public static _Fields findByName(String name) {
6794
        return byName.get(name);
6795
      }
6796
 
6797
      private final short _thriftId;
6798
      private final String _fieldName;
6799
 
6800
      _Fields(short thriftId, String fieldName) {
6801
        _thriftId = thriftId;
6802
        _fieldName = fieldName;
6803
      }
6804
 
6805
      public short getThriftFieldId() {
6806
        return _thriftId;
6807
      }
6808
 
6809
      public String getFieldName() {
6810
        return _fieldName;
6811
      }
6812
    }
6813
 
6814
    // isset id assignments
6815
 
3430 rajveer 6816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6817
    static {
3430 rajveer 6818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6819
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6820
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6821
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6822
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6823
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6824
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6825
    }
6826
 
6827
    public getEmptyAWB_result() {
6828
    }
6829
 
6830
    public getEmptyAWB_result(
648 chandransh 6831
      String success,
6832
      LogisticsServiceException se)
412 ashish 6833
    {
6834
      this();
6835
      this.success = success;
648 chandransh 6836
      this.se = se;
412 ashish 6837
    }
6838
 
6839
    /**
6840
     * Performs a deep copy on <i>other</i>.
6841
     */
6842
    public getEmptyAWB_result(getEmptyAWB_result other) {
6843
      if (other.isSetSuccess()) {
6844
        this.success = other.success;
6845
      }
648 chandransh 6846
      if (other.isSetSe()) {
6847
        this.se = new LogisticsServiceException(other.se);
6848
      }
412 ashish 6849
    }
6850
 
6851
    public getEmptyAWB_result deepCopy() {
6852
      return new getEmptyAWB_result(this);
6853
    }
6854
 
3430 rajveer 6855
    @Override
6856
    public void clear() {
6857
      this.success = null;
6858
      this.se = null;
412 ashish 6859
    }
6860
 
6861
    public String getSuccess() {
6862
      return this.success;
6863
    }
6864
 
3430 rajveer 6865
    public void setSuccess(String success) {
412 ashish 6866
      this.success = success;
6867
    }
6868
 
6869
    public void unsetSuccess() {
6870
      this.success = null;
6871
    }
6872
 
3430 rajveer 6873
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6874
    public boolean isSetSuccess() {
6875
      return this.success != null;
6876
    }
6877
 
6878
    public void setSuccessIsSet(boolean value) {
6879
      if (!value) {
6880
        this.success = null;
6881
      }
6882
    }
6883
 
648 chandransh 6884
    public LogisticsServiceException getSe() {
6885
      return this.se;
412 ashish 6886
    }
6887
 
3430 rajveer 6888
    public void setSe(LogisticsServiceException se) {
648 chandransh 6889
      this.se = se;
412 ashish 6890
    }
6891
 
648 chandransh 6892
    public void unsetSe() {
6893
      this.se = null;
412 ashish 6894
    }
6895
 
3430 rajveer 6896
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6897
    public boolean isSetSe() {
6898
      return this.se != null;
412 ashish 6899
    }
6900
 
648 chandransh 6901
    public void setSeIsSet(boolean value) {
412 ashish 6902
      if (!value) {
648 chandransh 6903
        this.se = null;
412 ashish 6904
      }
6905
    }
6906
 
6907
    public void setFieldValue(_Fields field, Object value) {
6908
      switch (field) {
6909
      case SUCCESS:
6910
        if (value == null) {
6911
          unsetSuccess();
6912
        } else {
648 chandransh 6913
          setSuccess((String)value);
412 ashish 6914
        }
6915
        break;
6916
 
648 chandransh 6917
      case SE:
6918
        if (value == null) {
6919
          unsetSe();
6920
        } else {
6921
          setSe((LogisticsServiceException)value);
6922
        }
6923
        break;
6924
 
412 ashish 6925
      }
6926
    }
6927
 
6928
    public Object getFieldValue(_Fields field) {
6929
      switch (field) {
6930
      case SUCCESS:
6931
        return getSuccess();
6932
 
648 chandransh 6933
      case SE:
6934
        return getSe();
6935
 
412 ashish 6936
      }
6937
      throw new IllegalStateException();
6938
    }
6939
 
3430 rajveer 6940
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6941
    public boolean isSet(_Fields field) {
6942
      if (field == null) {
6943
        throw new IllegalArgumentException();
6944
      }
412 ashish 6945
 
6946
      switch (field) {
6947
      case SUCCESS:
6948
        return isSetSuccess();
648 chandransh 6949
      case SE:
6950
        return isSetSe();
412 ashish 6951
      }
6952
      throw new IllegalStateException();
6953
    }
6954
 
6955
    @Override
6956
    public boolean equals(Object that) {
6957
      if (that == null)
6958
        return false;
648 chandransh 6959
      if (that instanceof getEmptyAWB_result)
6960
        return this.equals((getEmptyAWB_result)that);
412 ashish 6961
      return false;
6962
    }
6963
 
648 chandransh 6964
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6965
      if (that == null)
6966
        return false;
6967
 
6968
      boolean this_present_success = true && this.isSetSuccess();
6969
      boolean that_present_success = true && that.isSetSuccess();
6970
      if (this_present_success || that_present_success) {
6971
        if (!(this_present_success && that_present_success))
6972
          return false;
6973
        if (!this.success.equals(that.success))
6974
          return false;
6975
      }
6976
 
648 chandransh 6977
      boolean this_present_se = true && this.isSetSe();
6978
      boolean that_present_se = true && that.isSetSe();
6979
      if (this_present_se || that_present_se) {
6980
        if (!(this_present_se && that_present_se))
6981
          return false;
6982
        if (!this.se.equals(that.se))
6983
          return false;
6984
      }
6985
 
412 ashish 6986
      return true;
6987
    }
6988
 
6989
    @Override
6990
    public int hashCode() {
6991
      return 0;
6992
    }
6993
 
648 chandransh 6994
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6995
      if (!getClass().equals(other.getClass())) {
6996
        return getClass().getName().compareTo(other.getClass().getName());
6997
      }
6998
 
6999
      int lastComparison = 0;
648 chandransh 7000
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7001
 
3430 rajveer 7002
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7003
      if (lastComparison != 0) {
7004
        return lastComparison;
7005
      }
3430 rajveer 7006
      if (isSetSuccess()) {
7007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7008
        if (lastComparison != 0) {
7009
          return lastComparison;
7010
        }
412 ashish 7011
      }
3430 rajveer 7012
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7013
      if (lastComparison != 0) {
7014
        return lastComparison;
7015
      }
3430 rajveer 7016
      if (isSetSe()) {
7017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7018
        if (lastComparison != 0) {
7019
          return lastComparison;
7020
        }
412 ashish 7021
      }
7022
      return 0;
7023
    }
7024
 
3430 rajveer 7025
    public _Fields fieldForId(int fieldId) {
7026
      return _Fields.findByThriftId(fieldId);
7027
    }
7028
 
7029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7030
      org.apache.thrift.protocol.TField field;
412 ashish 7031
      iprot.readStructBegin();
7032
      while (true)
7033
      {
7034
        field = iprot.readFieldBegin();
3430 rajveer 7035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7036
          break;
7037
        }
3430 rajveer 7038
        switch (field.id) {
7039
          case 0: // SUCCESS
7040
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7041
              this.success = iprot.readString();
7042
            } else { 
7043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7044
            }
7045
            break;
7046
          case 1: // SE
7047
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7048
              this.se = new LogisticsServiceException();
7049
              this.se.read(iprot);
7050
            } else { 
7051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7052
            }
7053
            break;
7054
          default:
7055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7056
        }
3430 rajveer 7057
        iprot.readFieldEnd();
412 ashish 7058
      }
7059
      iprot.readStructEnd();
7060
      validate();
7061
    }
7062
 
3430 rajveer 7063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7064
      oprot.writeStructBegin(STRUCT_DESC);
7065
 
7066
      if (this.isSetSuccess()) {
7067
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7068
        oprot.writeString(this.success);
412 ashish 7069
        oprot.writeFieldEnd();
648 chandransh 7070
      } else if (this.isSetSe()) {
7071
        oprot.writeFieldBegin(SE_FIELD_DESC);
7072
        this.se.write(oprot);
7073
        oprot.writeFieldEnd();
412 ashish 7074
      }
7075
      oprot.writeFieldStop();
7076
      oprot.writeStructEnd();
7077
    }
7078
 
7079
    @Override
7080
    public String toString() {
648 chandransh 7081
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7082
      boolean first = true;
7083
 
7084
      sb.append("success:");
7085
      if (this.success == null) {
7086
        sb.append("null");
7087
      } else {
7088
        sb.append(this.success);
7089
      }
7090
      first = false;
648 chandransh 7091
      if (!first) sb.append(", ");
7092
      sb.append("se:");
7093
      if (this.se == null) {
442 rajveer 7094
        sb.append("null");
7095
      } else {
648 chandransh 7096
        sb.append(this.se);
442 rajveer 7097
      }
7098
      first = false;
7099
      sb.append(")");
7100
      return sb.toString();
7101
    }
7102
 
3430 rajveer 7103
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7104
      // check for required fields
7105
    }
7106
 
3430 rajveer 7107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7108
      try {
7109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7110
      } catch (org.apache.thrift.TException te) {
7111
        throw new java.io.IOException(te);
7112
      }
7113
    }
7114
 
7115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7116
      try {
7117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7118
      } catch (org.apache.thrift.TException te) {
7119
        throw new java.io.IOException(te);
7120
      }
7121
    }
7122
 
442 rajveer 7123
  }
7124
 
3430 rajveer 7125
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7127
 
6643 rajveer 7128
    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 7129
    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 7130
 
6643 rajveer 7131
    private String awbNumber; // required
3430 rajveer 7132
    private long providerId; // required
442 rajveer 7133
 
7134
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7135
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7136
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7137
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7138
 
7139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7140
 
7141
      static {
7142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7143
          byName.put(field.getFieldName(), field);
7144
        }
7145
      }
7146
 
7147
      /**
7148
       * Find the _Fields constant that matches fieldId, or null if its not found.
7149
       */
7150
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7151
        switch(fieldId) {
6643 rajveer 7152
          case 1: // AWB_NUMBER
7153
            return AWB_NUMBER;
3430 rajveer 7154
          case 2: // PROVIDER_ID
7155
            return PROVIDER_ID;
7156
          default:
7157
            return null;
7158
        }
442 rajveer 7159
      }
7160
 
7161
      /**
7162
       * Find the _Fields constant that matches fieldId, throwing an exception
7163
       * if it is not found.
7164
       */
7165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7166
        _Fields fields = findByThriftId(fieldId);
7167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7168
        return fields;
7169
      }
7170
 
7171
      /**
7172
       * Find the _Fields constant that matches name, or null if its not found.
7173
       */
7174
      public static _Fields findByName(String name) {
7175
        return byName.get(name);
7176
      }
7177
 
7178
      private final short _thriftId;
7179
      private final String _fieldName;
7180
 
7181
      _Fields(short thriftId, String fieldName) {
7182
        _thriftId = thriftId;
7183
        _fieldName = fieldName;
7184
      }
7185
 
7186
      public short getThriftFieldId() {
7187
        return _thriftId;
7188
      }
7189
 
7190
      public String getFieldName() {
7191
        return _fieldName;
7192
      }
7193
    }
7194
 
7195
    // isset id assignments
648 chandransh 7196
    private static final int __PROVIDERID_ISSET_ID = 0;
7197
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7198
 
3430 rajveer 7199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7200
    static {
3430 rajveer 7201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7202
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7203
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7204
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7205
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7206
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7207
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7208
    }
7209
 
648 chandransh 7210
    public getShipmentInfo_args() {
442 rajveer 7211
    }
7212
 
648 chandransh 7213
    public getShipmentInfo_args(
6643 rajveer 7214
      String awbNumber,
648 chandransh 7215
      long providerId)
442 rajveer 7216
    {
7217
      this();
6643 rajveer 7218
      this.awbNumber = awbNumber;
648 chandransh 7219
      this.providerId = providerId;
7220
      setProviderIdIsSet(true);
442 rajveer 7221
    }
7222
 
7223
    /**
7224
     * Performs a deep copy on <i>other</i>.
7225
     */
648 chandransh 7226
    public getShipmentInfo_args(getShipmentInfo_args other) {
7227
      __isset_bit_vector.clear();
7228
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7229
      if (other.isSetAwbNumber()) {
7230
        this.awbNumber = other.awbNumber;
442 rajveer 7231
      }
648 chandransh 7232
      this.providerId = other.providerId;
442 rajveer 7233
    }
7234
 
648 chandransh 7235
    public getShipmentInfo_args deepCopy() {
7236
      return new getShipmentInfo_args(this);
442 rajveer 7237
    }
7238
 
3430 rajveer 7239
    @Override
7240
    public void clear() {
6643 rajveer 7241
      this.awbNumber = null;
3430 rajveer 7242
      setProviderIdIsSet(false);
7243
      this.providerId = 0;
442 rajveer 7244
    }
7245
 
6643 rajveer 7246
    public String getAwbNumber() {
7247
      return this.awbNumber;
442 rajveer 7248
    }
7249
 
6643 rajveer 7250
    public void setAwbNumber(String awbNumber) {
7251
      this.awbNumber = awbNumber;
442 rajveer 7252
    }
7253
 
6643 rajveer 7254
    public void unsetAwbNumber() {
7255
      this.awbNumber = null;
442 rajveer 7256
    }
7257
 
6643 rajveer 7258
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7259
    public boolean isSetAwbNumber() {
7260
      return this.awbNumber != null;
442 rajveer 7261
    }
7262
 
6643 rajveer 7263
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7264
      if (!value) {
6643 rajveer 7265
        this.awbNumber = null;
442 rajveer 7266
      }
7267
    }
7268
 
648 chandransh 7269
    public long getProviderId() {
7270
      return this.providerId;
442 rajveer 7271
    }
7272
 
3430 rajveer 7273
    public void setProviderId(long providerId) {
648 chandransh 7274
      this.providerId = providerId;
7275
      setProviderIdIsSet(true);
442 rajveer 7276
    }
7277
 
648 chandransh 7278
    public void unsetProviderId() {
7279
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7280
    }
7281
 
3430 rajveer 7282
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7283
    public boolean isSetProviderId() {
7284
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7285
    }
7286
 
648 chandransh 7287
    public void setProviderIdIsSet(boolean value) {
7288
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7289
    }
7290
 
7291
    public void setFieldValue(_Fields field, Object value) {
7292
      switch (field) {
6643 rajveer 7293
      case AWB_NUMBER:
442 rajveer 7294
        if (value == null) {
6643 rajveer 7295
          unsetAwbNumber();
442 rajveer 7296
        } else {
6643 rajveer 7297
          setAwbNumber((String)value);
442 rajveer 7298
        }
7299
        break;
7300
 
648 chandransh 7301
      case PROVIDER_ID:
442 rajveer 7302
        if (value == null) {
648 chandransh 7303
          unsetProviderId();
442 rajveer 7304
        } else {
648 chandransh 7305
          setProviderId((Long)value);
442 rajveer 7306
        }
7307
        break;
7308
 
7309
      }
7310
    }
7311
 
7312
    public Object getFieldValue(_Fields field) {
7313
      switch (field) {
6643 rajveer 7314
      case AWB_NUMBER:
7315
        return getAwbNumber();
442 rajveer 7316
 
648 chandransh 7317
      case PROVIDER_ID:
3430 rajveer 7318
        return Long.valueOf(getProviderId());
442 rajveer 7319
 
7320
      }
7321
      throw new IllegalStateException();
7322
    }
7323
 
3430 rajveer 7324
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7325
    public boolean isSet(_Fields field) {
7326
      if (field == null) {
7327
        throw new IllegalArgumentException();
7328
      }
442 rajveer 7329
 
7330
      switch (field) {
6643 rajveer 7331
      case AWB_NUMBER:
7332
        return isSetAwbNumber();
648 chandransh 7333
      case PROVIDER_ID:
7334
        return isSetProviderId();
442 rajveer 7335
      }
7336
      throw new IllegalStateException();
7337
    }
7338
 
7339
    @Override
7340
    public boolean equals(Object that) {
7341
      if (that == null)
7342
        return false;
648 chandransh 7343
      if (that instanceof getShipmentInfo_args)
7344
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7345
      return false;
7346
    }
7347
 
648 chandransh 7348
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7349
      if (that == null)
7350
        return false;
7351
 
6643 rajveer 7352
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7353
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7354
      if (this_present_awbNumber || that_present_awbNumber) {
7355
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7356
          return false;
6643 rajveer 7357
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7358
          return false;
7359
      }
7360
 
648 chandransh 7361
      boolean this_present_providerId = true;
7362
      boolean that_present_providerId = true;
7363
      if (this_present_providerId || that_present_providerId) {
7364
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7365
          return false;
648 chandransh 7366
        if (this.providerId != that.providerId)
442 rajveer 7367
          return false;
7368
      }
7369
 
7370
      return true;
7371
    }
7372
 
7373
    @Override
7374
    public int hashCode() {
7375
      return 0;
7376
    }
7377
 
648 chandransh 7378
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7379
      if (!getClass().equals(other.getClass())) {
7380
        return getClass().getName().compareTo(other.getClass().getName());
7381
      }
7382
 
7383
      int lastComparison = 0;
648 chandransh 7384
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7385
 
6643 rajveer 7386
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7387
      if (lastComparison != 0) {
7388
        return lastComparison;
7389
      }
6643 rajveer 7390
      if (isSetAwbNumber()) {
7391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7392
        if (lastComparison != 0) {
7393
          return lastComparison;
7394
        }
442 rajveer 7395
      }
3430 rajveer 7396
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7397
      if (lastComparison != 0) {
7398
        return lastComparison;
7399
      }
3430 rajveer 7400
      if (isSetProviderId()) {
7401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7402
        if (lastComparison != 0) {
7403
          return lastComparison;
7404
        }
442 rajveer 7405
      }
7406
      return 0;
7407
    }
7408
 
3430 rajveer 7409
    public _Fields fieldForId(int fieldId) {
7410
      return _Fields.findByThriftId(fieldId);
7411
    }
7412
 
7413
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7414
      org.apache.thrift.protocol.TField field;
442 rajveer 7415
      iprot.readStructBegin();
7416
      while (true)
7417
      {
7418
        field = iprot.readFieldBegin();
3430 rajveer 7419
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7420
          break;
7421
        }
3430 rajveer 7422
        switch (field.id) {
6643 rajveer 7423
          case 1: // AWB_NUMBER
3430 rajveer 7424
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7425
              this.awbNumber = iprot.readString();
3430 rajveer 7426
            } else { 
7427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7428
            }
7429
            break;
7430
          case 2: // PROVIDER_ID
7431
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7432
              this.providerId = iprot.readI64();
7433
              setProviderIdIsSet(true);
7434
            } else { 
7435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7436
            }
7437
            break;
7438
          default:
7439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7440
        }
3430 rajveer 7441
        iprot.readFieldEnd();
442 rajveer 7442
      }
7443
      iprot.readStructEnd();
7444
      validate();
7445
    }
7446
 
3430 rajveer 7447
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7448
      validate();
7449
 
7450
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7451
      if (this.awbNumber != null) {
7452
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7453
        oprot.writeString(this.awbNumber);
442 rajveer 7454
        oprot.writeFieldEnd();
7455
      }
648 chandransh 7456
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7457
      oprot.writeI64(this.providerId);
7458
      oprot.writeFieldEnd();
442 rajveer 7459
      oprot.writeFieldStop();
7460
      oprot.writeStructEnd();
7461
    }
7462
 
7463
    @Override
7464
    public String toString() {
648 chandransh 7465
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7466
      boolean first = true;
7467
 
6643 rajveer 7468
      sb.append("awbNumber:");
7469
      if (this.awbNumber == null) {
442 rajveer 7470
        sb.append("null");
7471
      } else {
6643 rajveer 7472
        sb.append(this.awbNumber);
442 rajveer 7473
      }
7474
      first = false;
7475
      if (!first) sb.append(", ");
648 chandransh 7476
      sb.append("providerId:");
7477
      sb.append(this.providerId);
442 rajveer 7478
      first = false;
7479
      sb.append(")");
7480
      return sb.toString();
7481
    }
7482
 
3430 rajveer 7483
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7484
      // check for required fields
7485
    }
7486
 
3430 rajveer 7487
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7488
      try {
7489
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7490
      } catch (org.apache.thrift.TException te) {
7491
        throw new java.io.IOException(te);
7492
      }
7493
    }
7494
 
7495
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7496
      try {
7497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7498
      } catch (org.apache.thrift.TException te) {
7499
        throw new java.io.IOException(te);
7500
      }
7501
    }
7502
 
442 rajveer 7503
  }
7504
 
3430 rajveer 7505
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7507
 
3430 rajveer 7508
    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);
7509
    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 7510
 
3430 rajveer 7511
    private List<AwbUpdate> success; // required
7512
    private LogisticsServiceException se; // required
412 ashish 7513
 
7514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7516
      SUCCESS((short)0, "success"),
7517
      SE((short)1, "se");
412 ashish 7518
 
7519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7520
 
7521
      static {
7522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7523
          byName.put(field.getFieldName(), field);
7524
        }
7525
      }
7526
 
7527
      /**
7528
       * Find the _Fields constant that matches fieldId, or null if its not found.
7529
       */
7530
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7531
        switch(fieldId) {
7532
          case 0: // SUCCESS
7533
            return SUCCESS;
7534
          case 1: // SE
7535
            return SE;
7536
          default:
7537
            return null;
7538
        }
412 ashish 7539
      }
7540
 
7541
      /**
7542
       * Find the _Fields constant that matches fieldId, throwing an exception
7543
       * if it is not found.
7544
       */
7545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7546
        _Fields fields = findByThriftId(fieldId);
7547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7548
        return fields;
7549
      }
7550
 
7551
      /**
7552
       * Find the _Fields constant that matches name, or null if its not found.
7553
       */
7554
      public static _Fields findByName(String name) {
7555
        return byName.get(name);
7556
      }
7557
 
7558
      private final short _thriftId;
7559
      private final String _fieldName;
7560
 
7561
      _Fields(short thriftId, String fieldName) {
7562
        _thriftId = thriftId;
7563
        _fieldName = fieldName;
7564
      }
7565
 
7566
      public short getThriftFieldId() {
7567
        return _thriftId;
7568
      }
7569
 
7570
      public String getFieldName() {
7571
        return _fieldName;
7572
      }
7573
    }
7574
 
7575
    // isset id assignments
7576
 
3430 rajveer 7577
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7578
    static {
3430 rajveer 7579
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7580
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7581
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7582
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7583
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7587
    }
7588
 
7589
    public getShipmentInfo_result() {
7590
    }
7591
 
7592
    public getShipmentInfo_result(
648 chandransh 7593
      List<AwbUpdate> success,
7594
      LogisticsServiceException se)
412 ashish 7595
    {
7596
      this();
7597
      this.success = success;
648 chandransh 7598
      this.se = se;
412 ashish 7599
    }
7600
 
7601
    /**
7602
     * Performs a deep copy on <i>other</i>.
7603
     */
7604
    public getShipmentInfo_result(getShipmentInfo_result other) {
7605
      if (other.isSetSuccess()) {
648 chandransh 7606
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7607
        for (AwbUpdate other_element : other.success) {
7608
          __this__success.add(new AwbUpdate(other_element));
7609
        }
7610
        this.success = __this__success;
412 ashish 7611
      }
648 chandransh 7612
      if (other.isSetSe()) {
7613
        this.se = new LogisticsServiceException(other.se);
7614
      }
412 ashish 7615
    }
7616
 
7617
    public getShipmentInfo_result deepCopy() {
7618
      return new getShipmentInfo_result(this);
7619
    }
7620
 
3430 rajveer 7621
    @Override
7622
    public void clear() {
7623
      this.success = null;
7624
      this.se = null;
412 ashish 7625
    }
7626
 
7627
    public int getSuccessSize() {
7628
      return (this.success == null) ? 0 : this.success.size();
7629
    }
7630
 
648 chandransh 7631
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7632
      return (this.success == null) ? null : this.success.iterator();
7633
    }
7634
 
648 chandransh 7635
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7636
      if (this.success == null) {
648 chandransh 7637
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7638
      }
7639
      this.success.add(elem);
7640
    }
7641
 
648 chandransh 7642
    public List<AwbUpdate> getSuccess() {
412 ashish 7643
      return this.success;
7644
    }
7645
 
3430 rajveer 7646
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7647
      this.success = success;
7648
    }
7649
 
7650
    public void unsetSuccess() {
7651
      this.success = null;
7652
    }
7653
 
3430 rajveer 7654
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7655
    public boolean isSetSuccess() {
7656
      return this.success != null;
7657
    }
7658
 
7659
    public void setSuccessIsSet(boolean value) {
7660
      if (!value) {
7661
        this.success = null;
7662
      }
7663
    }
7664
 
648 chandransh 7665
    public LogisticsServiceException getSe() {
7666
      return this.se;
412 ashish 7667
    }
7668
 
3430 rajveer 7669
    public void setSe(LogisticsServiceException se) {
648 chandransh 7670
      this.se = se;
412 ashish 7671
    }
7672
 
648 chandransh 7673
    public void unsetSe() {
7674
      this.se = null;
412 ashish 7675
    }
7676
 
3430 rajveer 7677
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7678
    public boolean isSetSe() {
7679
      return this.se != null;
412 ashish 7680
    }
7681
 
648 chandransh 7682
    public void setSeIsSet(boolean value) {
7683
      if (!value) {
7684
        this.se = null;
412 ashish 7685
      }
7686
    }
7687
 
7688
    public void setFieldValue(_Fields field, Object value) {
7689
      switch (field) {
648 chandransh 7690
      case SUCCESS:
412 ashish 7691
        if (value == null) {
648 chandransh 7692
          unsetSuccess();
412 ashish 7693
        } else {
648 chandransh 7694
          setSuccess((List<AwbUpdate>)value);
412 ashish 7695
        }
7696
        break;
7697
 
648 chandransh 7698
      case SE:
412 ashish 7699
        if (value == null) {
648 chandransh 7700
          unsetSe();
412 ashish 7701
        } else {
648 chandransh 7702
          setSe((LogisticsServiceException)value);
412 ashish 7703
        }
7704
        break;
7705
 
7706
      }
7707
    }
7708
 
7709
    public Object getFieldValue(_Fields field) {
7710
      switch (field) {
648 chandransh 7711
      case SUCCESS:
7712
        return getSuccess();
412 ashish 7713
 
648 chandransh 7714
      case SE:
7715
        return getSe();
412 ashish 7716
 
7717
      }
7718
      throw new IllegalStateException();
7719
    }
7720
 
3430 rajveer 7721
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7722
    public boolean isSet(_Fields field) {
7723
      if (field == null) {
7724
        throw new IllegalArgumentException();
7725
      }
412 ashish 7726
 
7727
      switch (field) {
648 chandransh 7728
      case SUCCESS:
7729
        return isSetSuccess();
7730
      case SE:
7731
        return isSetSe();
412 ashish 7732
      }
7733
      throw new IllegalStateException();
7734
    }
7735
 
7736
    @Override
7737
    public boolean equals(Object that) {
7738
      if (that == null)
7739
        return false;
648 chandransh 7740
      if (that instanceof getShipmentInfo_result)
7741
        return this.equals((getShipmentInfo_result)that);
412 ashish 7742
      return false;
7743
    }
7744
 
648 chandransh 7745
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7746
      if (that == null)
7747
        return false;
7748
 
648 chandransh 7749
      boolean this_present_success = true && this.isSetSuccess();
7750
      boolean that_present_success = true && that.isSetSuccess();
7751
      if (this_present_success || that_present_success) {
7752
        if (!(this_present_success && that_present_success))
412 ashish 7753
          return false;
648 chandransh 7754
        if (!this.success.equals(that.success))
412 ashish 7755
          return false;
7756
      }
7757
 
648 chandransh 7758
      boolean this_present_se = true && this.isSetSe();
7759
      boolean that_present_se = true && that.isSetSe();
7760
      if (this_present_se || that_present_se) {
7761
        if (!(this_present_se && that_present_se))
412 ashish 7762
          return false;
648 chandransh 7763
        if (!this.se.equals(that.se))
412 ashish 7764
          return false;
7765
      }
7766
 
7767
      return true;
7768
    }
7769
 
7770
    @Override
7771
    public int hashCode() {
7772
      return 0;
7773
    }
7774
 
648 chandransh 7775
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7776
      if (!getClass().equals(other.getClass())) {
7777
        return getClass().getName().compareTo(other.getClass().getName());
7778
      }
7779
 
7780
      int lastComparison = 0;
648 chandransh 7781
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7782
 
3430 rajveer 7783
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7784
      if (lastComparison != 0) {
7785
        return lastComparison;
7786
      }
3430 rajveer 7787
      if (isSetSuccess()) {
7788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7789
        if (lastComparison != 0) {
7790
          return lastComparison;
7791
        }
412 ashish 7792
      }
3430 rajveer 7793
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7794
      if (lastComparison != 0) {
7795
        return lastComparison;
7796
      }
3430 rajveer 7797
      if (isSetSe()) {
7798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7799
        if (lastComparison != 0) {
7800
          return lastComparison;
7801
        }
412 ashish 7802
      }
7803
      return 0;
7804
    }
7805
 
3430 rajveer 7806
    public _Fields fieldForId(int fieldId) {
7807
      return _Fields.findByThriftId(fieldId);
7808
    }
7809
 
7810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7811
      org.apache.thrift.protocol.TField field;
412 ashish 7812
      iprot.readStructBegin();
7813
      while (true)
7814
      {
7815
        field = iprot.readFieldBegin();
3430 rajveer 7816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7817
          break;
7818
        }
3430 rajveer 7819
        switch (field.id) {
7820
          case 0: // SUCCESS
7821
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7822
              {
7792 anupam.sin 7823
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7824
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7825
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7826
                {
7792 anupam.sin 7827
                  AwbUpdate _elem10; // required
7828
                  _elem10 = new AwbUpdate();
7829
                  _elem10.read(iprot);
7830
                  this.success.add(_elem10);
412 ashish 7831
                }
3430 rajveer 7832
                iprot.readListEnd();
412 ashish 7833
              }
3430 rajveer 7834
            } else { 
7835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7836
            }
7837
            break;
7838
          case 1: // SE
7839
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7840
              this.se = new LogisticsServiceException();
7841
              this.se.read(iprot);
7842
            } else { 
7843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7844
            }
7845
            break;
7846
          default:
7847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7848
        }
3430 rajveer 7849
        iprot.readFieldEnd();
412 ashish 7850
      }
7851
      iprot.readStructEnd();
7852
      validate();
7853
    }
7854
 
3430 rajveer 7855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7856
      oprot.writeStructBegin(STRUCT_DESC);
7857
 
7858
      if (this.isSetSuccess()) {
7859
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7860
        {
3430 rajveer 7861
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7862
          for (AwbUpdate _iter11 : this.success)
412 ashish 7863
          {
7792 anupam.sin 7864
            _iter11.write(oprot);
412 ashish 7865
          }
7866
          oprot.writeListEnd();
7867
        }
7868
        oprot.writeFieldEnd();
648 chandransh 7869
      } else if (this.isSetSe()) {
7870
        oprot.writeFieldBegin(SE_FIELD_DESC);
7871
        this.se.write(oprot);
7872
        oprot.writeFieldEnd();
412 ashish 7873
      }
7874
      oprot.writeFieldStop();
7875
      oprot.writeStructEnd();
7876
    }
7877
 
7878
    @Override
7879
    public String toString() {
648 chandransh 7880
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7881
      boolean first = true;
7882
 
7883
      sb.append("success:");
7884
      if (this.success == null) {
7885
        sb.append("null");
7886
      } else {
7887
        sb.append(this.success);
7888
      }
7889
      first = false;
648 chandransh 7890
      if (!first) sb.append(", ");
7891
      sb.append("se:");
7892
      if (this.se == null) {
7893
        sb.append("null");
7894
      } else {
7895
        sb.append(this.se);
7896
      }
7897
      first = false;
412 ashish 7898
      sb.append(")");
7899
      return sb.toString();
7900
    }
7901
 
3430 rajveer 7902
    public void validate() throws org.apache.thrift.TException {
412 ashish 7903
      // check for required fields
7904
    }
7905
 
3430 rajveer 7906
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7907
      try {
7908
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7909
      } catch (org.apache.thrift.TException te) {
7910
        throw new java.io.IOException(te);
7911
      }
7912
    }
7913
 
7914
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7915
      try {
7916
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7917
      } catch (org.apache.thrift.TException te) {
7918
        throw new java.io.IOException(te);
7919
      }
7920
    }
7921
 
412 ashish 7922
  }
7923
 
6643 rajveer 7924
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7925
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7926
 
7927
    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);
7928
 
7929
    private AwbUpdate update; // required
7930
 
7931
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7932
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7933
      UPDATE((short)1, "update");
7934
 
7935
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7936
 
7937
      static {
7938
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7939
          byName.put(field.getFieldName(), field);
7940
        }
7941
      }
7942
 
7943
      /**
7944
       * Find the _Fields constant that matches fieldId, or null if its not found.
7945
       */
7946
      public static _Fields findByThriftId(int fieldId) {
7947
        switch(fieldId) {
7948
          case 1: // UPDATE
7949
            return UPDATE;
7950
          default:
7951
            return null;
7952
        }
7953
      }
7954
 
7955
      /**
7956
       * Find the _Fields constant that matches fieldId, throwing an exception
7957
       * if it is not found.
7958
       */
7959
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7960
        _Fields fields = findByThriftId(fieldId);
7961
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7962
        return fields;
7963
      }
7964
 
7965
      /**
7966
       * Find the _Fields constant that matches name, or null if its not found.
7967
       */
7968
      public static _Fields findByName(String name) {
7969
        return byName.get(name);
7970
      }
7971
 
7972
      private final short _thriftId;
7973
      private final String _fieldName;
7974
 
7975
      _Fields(short thriftId, String fieldName) {
7976
        _thriftId = thriftId;
7977
        _fieldName = fieldName;
7978
      }
7979
 
7980
      public short getThriftFieldId() {
7981
        return _thriftId;
7982
      }
7983
 
7984
      public String getFieldName() {
7985
        return _fieldName;
7986
      }
7987
    }
7988
 
7989
    // isset id assignments
7990
 
7991
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7992
    static {
7993
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7994
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7995
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7996
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7997
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7998
    }
7999
 
8000
    public storeShipmentInfo_args() {
8001
    }
8002
 
8003
    public storeShipmentInfo_args(
8004
      AwbUpdate update)
8005
    {
8006
      this();
8007
      this.update = update;
8008
    }
8009
 
8010
    /**
8011
     * Performs a deep copy on <i>other</i>.
8012
     */
8013
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8014
      if (other.isSetUpdate()) {
8015
        this.update = new AwbUpdate(other.update);
8016
      }
8017
    }
8018
 
8019
    public storeShipmentInfo_args deepCopy() {
8020
      return new storeShipmentInfo_args(this);
8021
    }
8022
 
8023
    @Override
8024
    public void clear() {
8025
      this.update = null;
8026
    }
8027
 
8028
    public AwbUpdate getUpdate() {
8029
      return this.update;
8030
    }
8031
 
8032
    public void setUpdate(AwbUpdate update) {
8033
      this.update = update;
8034
    }
8035
 
8036
    public void unsetUpdate() {
8037
      this.update = null;
8038
    }
8039
 
8040
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8041
    public boolean isSetUpdate() {
8042
      return this.update != null;
8043
    }
8044
 
8045
    public void setUpdateIsSet(boolean value) {
8046
      if (!value) {
8047
        this.update = null;
8048
      }
8049
    }
8050
 
8051
    public void setFieldValue(_Fields field, Object value) {
8052
      switch (field) {
8053
      case UPDATE:
8054
        if (value == null) {
8055
          unsetUpdate();
8056
        } else {
8057
          setUpdate((AwbUpdate)value);
8058
        }
8059
        break;
8060
 
8061
      }
8062
    }
8063
 
8064
    public Object getFieldValue(_Fields field) {
8065
      switch (field) {
8066
      case UPDATE:
8067
        return getUpdate();
8068
 
8069
      }
8070
      throw new IllegalStateException();
8071
    }
8072
 
8073
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8074
    public boolean isSet(_Fields field) {
8075
      if (field == null) {
8076
        throw new IllegalArgumentException();
8077
      }
8078
 
8079
      switch (field) {
8080
      case UPDATE:
8081
        return isSetUpdate();
8082
      }
8083
      throw new IllegalStateException();
8084
    }
8085
 
8086
    @Override
8087
    public boolean equals(Object that) {
8088
      if (that == null)
8089
        return false;
8090
      if (that instanceof storeShipmentInfo_args)
8091
        return this.equals((storeShipmentInfo_args)that);
8092
      return false;
8093
    }
8094
 
8095
    public boolean equals(storeShipmentInfo_args that) {
8096
      if (that == null)
8097
        return false;
8098
 
8099
      boolean this_present_update = true && this.isSetUpdate();
8100
      boolean that_present_update = true && that.isSetUpdate();
8101
      if (this_present_update || that_present_update) {
8102
        if (!(this_present_update && that_present_update))
8103
          return false;
8104
        if (!this.update.equals(that.update))
8105
          return false;
8106
      }
8107
 
8108
      return true;
8109
    }
8110
 
8111
    @Override
8112
    public int hashCode() {
8113
      return 0;
8114
    }
8115
 
8116
    public int compareTo(storeShipmentInfo_args other) {
8117
      if (!getClass().equals(other.getClass())) {
8118
        return getClass().getName().compareTo(other.getClass().getName());
8119
      }
8120
 
8121
      int lastComparison = 0;
8122
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8123
 
8124
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8125
      if (lastComparison != 0) {
8126
        return lastComparison;
8127
      }
8128
      if (isSetUpdate()) {
8129
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8130
        if (lastComparison != 0) {
8131
          return lastComparison;
8132
        }
8133
      }
8134
      return 0;
8135
    }
8136
 
8137
    public _Fields fieldForId(int fieldId) {
8138
      return _Fields.findByThriftId(fieldId);
8139
    }
8140
 
8141
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8142
      org.apache.thrift.protocol.TField field;
8143
      iprot.readStructBegin();
8144
      while (true)
8145
      {
8146
        field = iprot.readFieldBegin();
8147
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8148
          break;
8149
        }
8150
        switch (field.id) {
8151
          case 1: // UPDATE
8152
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8153
              this.update = new AwbUpdate();
8154
              this.update.read(iprot);
8155
            } else { 
8156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8157
            }
8158
            break;
8159
          default:
8160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8161
        }
8162
        iprot.readFieldEnd();
8163
      }
8164
      iprot.readStructEnd();
8165
      validate();
8166
    }
8167
 
8168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8169
      validate();
8170
 
8171
      oprot.writeStructBegin(STRUCT_DESC);
8172
      if (this.update != null) {
8173
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8174
        this.update.write(oprot);
8175
        oprot.writeFieldEnd();
8176
      }
8177
      oprot.writeFieldStop();
8178
      oprot.writeStructEnd();
8179
    }
8180
 
8181
    @Override
8182
    public String toString() {
8183
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8184
      boolean first = true;
8185
 
8186
      sb.append("update:");
8187
      if (this.update == null) {
8188
        sb.append("null");
8189
      } else {
8190
        sb.append(this.update);
8191
      }
8192
      first = false;
8193
      sb.append(")");
8194
      return sb.toString();
8195
    }
8196
 
8197
    public void validate() throws org.apache.thrift.TException {
8198
      // check for required fields
8199
    }
8200
 
8201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8202
      try {
8203
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8204
      } catch (org.apache.thrift.TException te) {
8205
        throw new java.io.IOException(te);
8206
      }
8207
    }
8208
 
8209
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8210
      try {
8211
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8212
      } catch (org.apache.thrift.TException te) {
8213
        throw new java.io.IOException(te);
8214
      }
8215
    }
8216
 
8217
  }
8218
 
8219
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8220
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8221
 
8222
    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);
8223
 
8224
    private LogisticsServiceException se; // required
8225
 
8226
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8227
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8228
      SE((short)1, "se");
8229
 
8230
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8231
 
8232
      static {
8233
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8234
          byName.put(field.getFieldName(), field);
8235
        }
8236
      }
8237
 
8238
      /**
8239
       * Find the _Fields constant that matches fieldId, or null if its not found.
8240
       */
8241
      public static _Fields findByThriftId(int fieldId) {
8242
        switch(fieldId) {
8243
          case 1: // SE
8244
            return SE;
8245
          default:
8246
            return null;
8247
        }
8248
      }
8249
 
8250
      /**
8251
       * Find the _Fields constant that matches fieldId, throwing an exception
8252
       * if it is not found.
8253
       */
8254
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8255
        _Fields fields = findByThriftId(fieldId);
8256
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8257
        return fields;
8258
      }
8259
 
8260
      /**
8261
       * Find the _Fields constant that matches name, or null if its not found.
8262
       */
8263
      public static _Fields findByName(String name) {
8264
        return byName.get(name);
8265
      }
8266
 
8267
      private final short _thriftId;
8268
      private final String _fieldName;
8269
 
8270
      _Fields(short thriftId, String fieldName) {
8271
        _thriftId = thriftId;
8272
        _fieldName = fieldName;
8273
      }
8274
 
8275
      public short getThriftFieldId() {
8276
        return _thriftId;
8277
      }
8278
 
8279
      public String getFieldName() {
8280
        return _fieldName;
8281
      }
8282
    }
8283
 
8284
    // isset id assignments
8285
 
8286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8287
    static {
8288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8289
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8293
    }
8294
 
8295
    public storeShipmentInfo_result() {
8296
    }
8297
 
8298
    public storeShipmentInfo_result(
8299
      LogisticsServiceException se)
8300
    {
8301
      this();
8302
      this.se = se;
8303
    }
8304
 
8305
    /**
8306
     * Performs a deep copy on <i>other</i>.
8307
     */
8308
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8309
      if (other.isSetSe()) {
8310
        this.se = new LogisticsServiceException(other.se);
8311
      }
8312
    }
8313
 
8314
    public storeShipmentInfo_result deepCopy() {
8315
      return new storeShipmentInfo_result(this);
8316
    }
8317
 
8318
    @Override
8319
    public void clear() {
8320
      this.se = null;
8321
    }
8322
 
8323
    public LogisticsServiceException getSe() {
8324
      return this.se;
8325
    }
8326
 
8327
    public void setSe(LogisticsServiceException se) {
8328
      this.se = se;
8329
    }
8330
 
8331
    public void unsetSe() {
8332
      this.se = null;
8333
    }
8334
 
8335
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8336
    public boolean isSetSe() {
8337
      return this.se != null;
8338
    }
8339
 
8340
    public void setSeIsSet(boolean value) {
8341
      if (!value) {
8342
        this.se = null;
8343
      }
8344
    }
8345
 
8346
    public void setFieldValue(_Fields field, Object value) {
8347
      switch (field) {
8348
      case SE:
8349
        if (value == null) {
8350
          unsetSe();
8351
        } else {
8352
          setSe((LogisticsServiceException)value);
8353
        }
8354
        break;
8355
 
8356
      }
8357
    }
8358
 
8359
    public Object getFieldValue(_Fields field) {
8360
      switch (field) {
8361
      case SE:
8362
        return getSe();
8363
 
8364
      }
8365
      throw new IllegalStateException();
8366
    }
8367
 
8368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8369
    public boolean isSet(_Fields field) {
8370
      if (field == null) {
8371
        throw new IllegalArgumentException();
8372
      }
8373
 
8374
      switch (field) {
8375
      case SE:
8376
        return isSetSe();
8377
      }
8378
      throw new IllegalStateException();
8379
    }
8380
 
8381
    @Override
8382
    public boolean equals(Object that) {
8383
      if (that == null)
8384
        return false;
8385
      if (that instanceof storeShipmentInfo_result)
8386
        return this.equals((storeShipmentInfo_result)that);
8387
      return false;
8388
    }
8389
 
8390
    public boolean equals(storeShipmentInfo_result that) {
8391
      if (that == null)
8392
        return false;
8393
 
8394
      boolean this_present_se = true && this.isSetSe();
8395
      boolean that_present_se = true && that.isSetSe();
8396
      if (this_present_se || that_present_se) {
8397
        if (!(this_present_se && that_present_se))
8398
          return false;
8399
        if (!this.se.equals(that.se))
8400
          return false;
8401
      }
8402
 
8403
      return true;
8404
    }
8405
 
8406
    @Override
8407
    public int hashCode() {
8408
      return 0;
8409
    }
8410
 
8411
    public int compareTo(storeShipmentInfo_result other) {
8412
      if (!getClass().equals(other.getClass())) {
8413
        return getClass().getName().compareTo(other.getClass().getName());
8414
      }
8415
 
8416
      int lastComparison = 0;
8417
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8418
 
8419
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8420
      if (lastComparison != 0) {
8421
        return lastComparison;
8422
      }
8423
      if (isSetSe()) {
8424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8425
        if (lastComparison != 0) {
8426
          return lastComparison;
8427
        }
8428
      }
8429
      return 0;
8430
    }
8431
 
8432
    public _Fields fieldForId(int fieldId) {
8433
      return _Fields.findByThriftId(fieldId);
8434
    }
8435
 
8436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8437
      org.apache.thrift.protocol.TField field;
8438
      iprot.readStructBegin();
8439
      while (true)
8440
      {
8441
        field = iprot.readFieldBegin();
8442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8443
          break;
8444
        }
8445
        switch (field.id) {
8446
          case 1: // SE
8447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8448
              this.se = new LogisticsServiceException();
8449
              this.se.read(iprot);
8450
            } else { 
8451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8452
            }
8453
            break;
8454
          default:
8455
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8456
        }
8457
        iprot.readFieldEnd();
8458
      }
8459
      iprot.readStructEnd();
8460
      validate();
8461
    }
8462
 
8463
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8464
      oprot.writeStructBegin(STRUCT_DESC);
8465
 
8466
      if (this.isSetSe()) {
8467
        oprot.writeFieldBegin(SE_FIELD_DESC);
8468
        this.se.write(oprot);
8469
        oprot.writeFieldEnd();
8470
      }
8471
      oprot.writeFieldStop();
8472
      oprot.writeStructEnd();
8473
    }
8474
 
8475
    @Override
8476
    public String toString() {
8477
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8478
      boolean first = true;
8479
 
8480
      sb.append("se:");
8481
      if (this.se == null) {
8482
        sb.append("null");
8483
      } else {
8484
        sb.append(this.se);
8485
      }
8486
      first = false;
8487
      sb.append(")");
8488
      return sb.toString();
8489
    }
8490
 
8491
    public void validate() throws org.apache.thrift.TException {
8492
      // check for required fields
8493
    }
8494
 
8495
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8496
      try {
8497
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8498
      } catch (org.apache.thrift.TException te) {
8499
        throw new java.io.IOException(te);
8500
      }
8501
    }
8502
 
8503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8504
      try {
8505
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8506
      } catch (org.apache.thrift.TException te) {
8507
        throw new java.io.IOException(te);
8508
      }
8509
    }
8510
 
8511
  }
8512
 
3430 rajveer 8513
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8514
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8515
 
3430 rajveer 8516
    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);
8517
    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 8518
 
3430 rajveer 8519
    private long providerId; // required
8520
    private String pinCode; // required
730 chandransh 8521
 
8522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8524
      PROVIDER_ID((short)1, "providerId"),
8525
      PIN_CODE((short)2, "pinCode");
8526
 
8527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8528
 
8529
      static {
8530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8531
          byName.put(field.getFieldName(), field);
8532
        }
8533
      }
8534
 
8535
      /**
8536
       * Find the _Fields constant that matches fieldId, or null if its not found.
8537
       */
8538
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8539
        switch(fieldId) {
8540
          case 1: // PROVIDER_ID
8541
            return PROVIDER_ID;
8542
          case 2: // PIN_CODE
8543
            return PIN_CODE;
8544
          default:
8545
            return null;
8546
        }
730 chandransh 8547
      }
8548
 
8549
      /**
8550
       * Find the _Fields constant that matches fieldId, throwing an exception
8551
       * if it is not found.
8552
       */
8553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8554
        _Fields fields = findByThriftId(fieldId);
8555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8556
        return fields;
8557
      }
8558
 
8559
      /**
8560
       * Find the _Fields constant that matches name, or null if its not found.
8561
       */
8562
      public static _Fields findByName(String name) {
8563
        return byName.get(name);
8564
      }
8565
 
8566
      private final short _thriftId;
8567
      private final String _fieldName;
8568
 
8569
      _Fields(short thriftId, String fieldName) {
8570
        _thriftId = thriftId;
8571
        _fieldName = fieldName;
8572
      }
8573
 
8574
      public short getThriftFieldId() {
8575
        return _thriftId;
8576
      }
8577
 
8578
      public String getFieldName() {
8579
        return _fieldName;
8580
      }
8581
    }
8582
 
8583
    // isset id assignments
8584
    private static final int __PROVIDERID_ISSET_ID = 0;
8585
    private BitSet __isset_bit_vector = new BitSet(1);
8586
 
3430 rajveer 8587
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8588
    static {
3430 rajveer 8589
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8590
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8592
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8594
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8595
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8596
    }
8597
 
8598
    public getDestinationCode_args() {
8599
    }
8600
 
8601
    public getDestinationCode_args(
8602
      long providerId,
8603
      String pinCode)
8604
    {
8605
      this();
8606
      this.providerId = providerId;
8607
      setProviderIdIsSet(true);
8608
      this.pinCode = pinCode;
8609
    }
8610
 
8611
    /**
8612
     * Performs a deep copy on <i>other</i>.
8613
     */
8614
    public getDestinationCode_args(getDestinationCode_args other) {
8615
      __isset_bit_vector.clear();
8616
      __isset_bit_vector.or(other.__isset_bit_vector);
8617
      this.providerId = other.providerId;
8618
      if (other.isSetPinCode()) {
8619
        this.pinCode = other.pinCode;
8620
      }
8621
    }
8622
 
8623
    public getDestinationCode_args deepCopy() {
8624
      return new getDestinationCode_args(this);
8625
    }
8626
 
3430 rajveer 8627
    @Override
8628
    public void clear() {
8629
      setProviderIdIsSet(false);
8630
      this.providerId = 0;
8631
      this.pinCode = null;
730 chandransh 8632
    }
8633
 
8634
    public long getProviderId() {
8635
      return this.providerId;
8636
    }
8637
 
3430 rajveer 8638
    public void setProviderId(long providerId) {
730 chandransh 8639
      this.providerId = providerId;
8640
      setProviderIdIsSet(true);
8641
    }
8642
 
8643
    public void unsetProviderId() {
8644
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8645
    }
8646
 
3430 rajveer 8647
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8648
    public boolean isSetProviderId() {
8649
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8650
    }
8651
 
8652
    public void setProviderIdIsSet(boolean value) {
8653
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8654
    }
8655
 
8656
    public String getPinCode() {
8657
      return this.pinCode;
8658
    }
8659
 
3430 rajveer 8660
    public void setPinCode(String pinCode) {
730 chandransh 8661
      this.pinCode = pinCode;
8662
    }
8663
 
8664
    public void unsetPinCode() {
8665
      this.pinCode = null;
8666
    }
8667
 
3430 rajveer 8668
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8669
    public boolean isSetPinCode() {
8670
      return this.pinCode != null;
8671
    }
8672
 
8673
    public void setPinCodeIsSet(boolean value) {
8674
      if (!value) {
8675
        this.pinCode = null;
8676
      }
8677
    }
8678
 
8679
    public void setFieldValue(_Fields field, Object value) {
8680
      switch (field) {
8681
      case PROVIDER_ID:
8682
        if (value == null) {
8683
          unsetProviderId();
8684
        } else {
8685
          setProviderId((Long)value);
8686
        }
8687
        break;
8688
 
8689
      case PIN_CODE:
8690
        if (value == null) {
8691
          unsetPinCode();
8692
        } else {
8693
          setPinCode((String)value);
8694
        }
8695
        break;
8696
 
8697
      }
8698
    }
8699
 
8700
    public Object getFieldValue(_Fields field) {
8701
      switch (field) {
8702
      case PROVIDER_ID:
3430 rajveer 8703
        return Long.valueOf(getProviderId());
730 chandransh 8704
 
8705
      case PIN_CODE:
8706
        return getPinCode();
8707
 
8708
      }
8709
      throw new IllegalStateException();
8710
    }
8711
 
3430 rajveer 8712
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8713
    public boolean isSet(_Fields field) {
8714
      if (field == null) {
8715
        throw new IllegalArgumentException();
8716
      }
730 chandransh 8717
 
8718
      switch (field) {
8719
      case PROVIDER_ID:
8720
        return isSetProviderId();
8721
      case PIN_CODE:
8722
        return isSetPinCode();
8723
      }
8724
      throw new IllegalStateException();
8725
    }
8726
 
8727
    @Override
8728
    public boolean equals(Object that) {
8729
      if (that == null)
8730
        return false;
8731
      if (that instanceof getDestinationCode_args)
8732
        return this.equals((getDestinationCode_args)that);
8733
      return false;
8734
    }
8735
 
8736
    public boolean equals(getDestinationCode_args that) {
8737
      if (that == null)
8738
        return false;
8739
 
8740
      boolean this_present_providerId = true;
8741
      boolean that_present_providerId = true;
8742
      if (this_present_providerId || that_present_providerId) {
8743
        if (!(this_present_providerId && that_present_providerId))
8744
          return false;
8745
        if (this.providerId != that.providerId)
8746
          return false;
8747
      }
8748
 
8749
      boolean this_present_pinCode = true && this.isSetPinCode();
8750
      boolean that_present_pinCode = true && that.isSetPinCode();
8751
      if (this_present_pinCode || that_present_pinCode) {
8752
        if (!(this_present_pinCode && that_present_pinCode))
8753
          return false;
8754
        if (!this.pinCode.equals(that.pinCode))
8755
          return false;
8756
      }
8757
 
8758
      return true;
8759
    }
8760
 
8761
    @Override
8762
    public int hashCode() {
8763
      return 0;
8764
    }
8765
 
8766
    public int compareTo(getDestinationCode_args other) {
8767
      if (!getClass().equals(other.getClass())) {
8768
        return getClass().getName().compareTo(other.getClass().getName());
8769
      }
8770
 
8771
      int lastComparison = 0;
8772
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8773
 
3430 rajveer 8774
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8775
      if (lastComparison != 0) {
8776
        return lastComparison;
8777
      }
3430 rajveer 8778
      if (isSetProviderId()) {
8779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8780
        if (lastComparison != 0) {
8781
          return lastComparison;
8782
        }
730 chandransh 8783
      }
3430 rajveer 8784
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8785
      if (lastComparison != 0) {
8786
        return lastComparison;
8787
      }
3430 rajveer 8788
      if (isSetPinCode()) {
8789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8790
        if (lastComparison != 0) {
8791
          return lastComparison;
8792
        }
730 chandransh 8793
      }
8794
      return 0;
8795
    }
8796
 
3430 rajveer 8797
    public _Fields fieldForId(int fieldId) {
8798
      return _Fields.findByThriftId(fieldId);
8799
    }
8800
 
8801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8802
      org.apache.thrift.protocol.TField field;
730 chandransh 8803
      iprot.readStructBegin();
8804
      while (true)
8805
      {
8806
        field = iprot.readFieldBegin();
3430 rajveer 8807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8808
          break;
8809
        }
3430 rajveer 8810
        switch (field.id) {
8811
          case 1: // PROVIDER_ID
8812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8813
              this.providerId = iprot.readI64();
8814
              setProviderIdIsSet(true);
8815
            } else { 
8816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8817
            }
8818
            break;
8819
          case 2: // PIN_CODE
8820
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8821
              this.pinCode = iprot.readString();
8822
            } else { 
8823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8824
            }
8825
            break;
8826
          default:
8827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8828
        }
3430 rajveer 8829
        iprot.readFieldEnd();
730 chandransh 8830
      }
8831
      iprot.readStructEnd();
8832
      validate();
8833
    }
8834
 
3430 rajveer 8835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8836
      validate();
8837
 
8838
      oprot.writeStructBegin(STRUCT_DESC);
8839
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8840
      oprot.writeI64(this.providerId);
8841
      oprot.writeFieldEnd();
8842
      if (this.pinCode != null) {
8843
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8844
        oprot.writeString(this.pinCode);
8845
        oprot.writeFieldEnd();
8846
      }
8847
      oprot.writeFieldStop();
8848
      oprot.writeStructEnd();
8849
    }
8850
 
8851
    @Override
8852
    public String toString() {
8853
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8854
      boolean first = true;
8855
 
8856
      sb.append("providerId:");
8857
      sb.append(this.providerId);
8858
      first = false;
8859
      if (!first) sb.append(", ");
8860
      sb.append("pinCode:");
8861
      if (this.pinCode == null) {
8862
        sb.append("null");
8863
      } else {
8864
        sb.append(this.pinCode);
8865
      }
8866
      first = false;
8867
      sb.append(")");
8868
      return sb.toString();
8869
    }
8870
 
3430 rajveer 8871
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8872
      // check for required fields
8873
    }
8874
 
3430 rajveer 8875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8876
      try {
8877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8878
      } catch (org.apache.thrift.TException te) {
8879
        throw new java.io.IOException(te);
8880
      }
8881
    }
8882
 
8883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8884
      try {
8885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8886
      } catch (org.apache.thrift.TException te) {
8887
        throw new java.io.IOException(te);
8888
      }
8889
    }
8890
 
730 chandransh 8891
  }
8892
 
3430 rajveer 8893
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8895
 
3430 rajveer 8896
    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);
8897
    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 8898
 
3430 rajveer 8899
    private String success; // required
8900
    private LogisticsServiceException se; // required
730 chandransh 8901
 
8902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8904
      SUCCESS((short)0, "success"),
8905
      SE((short)1, "se");
8906
 
8907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8908
 
8909
      static {
8910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8911
          byName.put(field.getFieldName(), field);
8912
        }
8913
      }
8914
 
8915
      /**
8916
       * Find the _Fields constant that matches fieldId, or null if its not found.
8917
       */
8918
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8919
        switch(fieldId) {
8920
          case 0: // SUCCESS
8921
            return SUCCESS;
8922
          case 1: // SE
8923
            return SE;
8924
          default:
8925
            return null;
8926
        }
730 chandransh 8927
      }
8928
 
8929
      /**
8930
       * Find the _Fields constant that matches fieldId, throwing an exception
8931
       * if it is not found.
8932
       */
8933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8934
        _Fields fields = findByThriftId(fieldId);
8935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8936
        return fields;
8937
      }
8938
 
8939
      /**
8940
       * Find the _Fields constant that matches name, or null if its not found.
8941
       */
8942
      public static _Fields findByName(String name) {
8943
        return byName.get(name);
8944
      }
8945
 
8946
      private final short _thriftId;
8947
      private final String _fieldName;
8948
 
8949
      _Fields(short thriftId, String fieldName) {
8950
        _thriftId = thriftId;
8951
        _fieldName = fieldName;
8952
      }
8953
 
8954
      public short getThriftFieldId() {
8955
        return _thriftId;
8956
      }
8957
 
8958
      public String getFieldName() {
8959
        return _fieldName;
8960
      }
8961
    }
8962
 
8963
    // isset id assignments
8964
 
3430 rajveer 8965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8966
    static {
3430 rajveer 8967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8968
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8970
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8971
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8972
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8973
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8974
    }
8975
 
8976
    public getDestinationCode_result() {
8977
    }
8978
 
8979
    public getDestinationCode_result(
8980
      String success,
8981
      LogisticsServiceException se)
8982
    {
8983
      this();
8984
      this.success = success;
8985
      this.se = se;
8986
    }
8987
 
8988
    /**
8989
     * Performs a deep copy on <i>other</i>.
8990
     */
8991
    public getDestinationCode_result(getDestinationCode_result other) {
8992
      if (other.isSetSuccess()) {
8993
        this.success = other.success;
8994
      }
8995
      if (other.isSetSe()) {
8996
        this.se = new LogisticsServiceException(other.se);
8997
      }
8998
    }
8999
 
9000
    public getDestinationCode_result deepCopy() {
9001
      return new getDestinationCode_result(this);
9002
    }
9003
 
3430 rajveer 9004
    @Override
9005
    public void clear() {
9006
      this.success = null;
9007
      this.se = null;
730 chandransh 9008
    }
9009
 
9010
    public String getSuccess() {
9011
      return this.success;
9012
    }
9013
 
3430 rajveer 9014
    public void setSuccess(String success) {
730 chandransh 9015
      this.success = success;
9016
    }
9017
 
9018
    public void unsetSuccess() {
9019
      this.success = null;
9020
    }
9021
 
3430 rajveer 9022
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9023
    public boolean isSetSuccess() {
9024
      return this.success != null;
9025
    }
9026
 
9027
    public void setSuccessIsSet(boolean value) {
9028
      if (!value) {
9029
        this.success = null;
9030
      }
9031
    }
9032
 
9033
    public LogisticsServiceException getSe() {
9034
      return this.se;
9035
    }
9036
 
3430 rajveer 9037
    public void setSe(LogisticsServiceException se) {
730 chandransh 9038
      this.se = se;
9039
    }
9040
 
9041
    public void unsetSe() {
9042
      this.se = null;
9043
    }
9044
 
3430 rajveer 9045
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9046
    public boolean isSetSe() {
9047
      return this.se != null;
9048
    }
9049
 
9050
    public void setSeIsSet(boolean value) {
9051
      if (!value) {
9052
        this.se = null;
9053
      }
9054
    }
9055
 
9056
    public void setFieldValue(_Fields field, Object value) {
9057
      switch (field) {
9058
      case SUCCESS:
9059
        if (value == null) {
9060
          unsetSuccess();
9061
        } else {
9062
          setSuccess((String)value);
9063
        }
9064
        break;
9065
 
9066
      case SE:
9067
        if (value == null) {
9068
          unsetSe();
9069
        } else {
9070
          setSe((LogisticsServiceException)value);
9071
        }
9072
        break;
9073
 
9074
      }
9075
    }
9076
 
9077
    public Object getFieldValue(_Fields field) {
9078
      switch (field) {
9079
      case SUCCESS:
9080
        return getSuccess();
9081
 
9082
      case SE:
9083
        return getSe();
9084
 
9085
      }
9086
      throw new IllegalStateException();
9087
    }
9088
 
3430 rajveer 9089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9090
    public boolean isSet(_Fields field) {
9091
      if (field == null) {
9092
        throw new IllegalArgumentException();
9093
      }
730 chandransh 9094
 
9095
      switch (field) {
9096
      case SUCCESS:
9097
        return isSetSuccess();
9098
      case SE:
9099
        return isSetSe();
9100
      }
9101
      throw new IllegalStateException();
9102
    }
9103
 
9104
    @Override
9105
    public boolean equals(Object that) {
9106
      if (that == null)
9107
        return false;
9108
      if (that instanceof getDestinationCode_result)
9109
        return this.equals((getDestinationCode_result)that);
9110
      return false;
9111
    }
9112
 
9113
    public boolean equals(getDestinationCode_result that) {
9114
      if (that == null)
9115
        return false;
9116
 
9117
      boolean this_present_success = true && this.isSetSuccess();
9118
      boolean that_present_success = true && that.isSetSuccess();
9119
      if (this_present_success || that_present_success) {
9120
        if (!(this_present_success && that_present_success))
9121
          return false;
9122
        if (!this.success.equals(that.success))
9123
          return false;
9124
      }
9125
 
9126
      boolean this_present_se = true && this.isSetSe();
9127
      boolean that_present_se = true && that.isSetSe();
9128
      if (this_present_se || that_present_se) {
9129
        if (!(this_present_se && that_present_se))
9130
          return false;
9131
        if (!this.se.equals(that.se))
9132
          return false;
9133
      }
9134
 
9135
      return true;
9136
    }
9137
 
9138
    @Override
9139
    public int hashCode() {
9140
      return 0;
9141
    }
9142
 
9143
    public int compareTo(getDestinationCode_result other) {
9144
      if (!getClass().equals(other.getClass())) {
9145
        return getClass().getName().compareTo(other.getClass().getName());
9146
      }
9147
 
9148
      int lastComparison = 0;
9149
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9150
 
3430 rajveer 9151
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9152
      if (lastComparison != 0) {
9153
        return lastComparison;
9154
      }
3430 rajveer 9155
      if (isSetSuccess()) {
9156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9157
        if (lastComparison != 0) {
9158
          return lastComparison;
9159
        }
730 chandransh 9160
      }
3430 rajveer 9161
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9162
      if (lastComparison != 0) {
9163
        return lastComparison;
9164
      }
3430 rajveer 9165
      if (isSetSe()) {
9166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9167
        if (lastComparison != 0) {
9168
          return lastComparison;
9169
        }
730 chandransh 9170
      }
9171
      return 0;
9172
    }
9173
 
3430 rajveer 9174
    public _Fields fieldForId(int fieldId) {
9175
      return _Fields.findByThriftId(fieldId);
9176
    }
9177
 
9178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9179
      org.apache.thrift.protocol.TField field;
730 chandransh 9180
      iprot.readStructBegin();
9181
      while (true)
9182
      {
9183
        field = iprot.readFieldBegin();
3430 rajveer 9184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9185
          break;
9186
        }
3430 rajveer 9187
        switch (field.id) {
9188
          case 0: // SUCCESS
9189
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9190
              this.success = iprot.readString();
9191
            } else { 
9192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9193
            }
9194
            break;
9195
          case 1: // SE
9196
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9197
              this.se = new LogisticsServiceException();
9198
              this.se.read(iprot);
9199
            } else { 
9200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9201
            }
9202
            break;
9203
          default:
9204
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9205
        }
3430 rajveer 9206
        iprot.readFieldEnd();
730 chandransh 9207
      }
9208
      iprot.readStructEnd();
9209
      validate();
9210
    }
9211
 
3430 rajveer 9212
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9213
      oprot.writeStructBegin(STRUCT_DESC);
9214
 
9215
      if (this.isSetSuccess()) {
9216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9217
        oprot.writeString(this.success);
9218
        oprot.writeFieldEnd();
9219
      } else if (this.isSetSe()) {
9220
        oprot.writeFieldBegin(SE_FIELD_DESC);
9221
        this.se.write(oprot);
9222
        oprot.writeFieldEnd();
9223
      }
9224
      oprot.writeFieldStop();
9225
      oprot.writeStructEnd();
9226
    }
9227
 
9228
    @Override
9229
    public String toString() {
9230
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9231
      boolean first = true;
9232
 
9233
      sb.append("success:");
9234
      if (this.success == null) {
9235
        sb.append("null");
9236
      } else {
9237
        sb.append(this.success);
9238
      }
9239
      first = false;
9240
      if (!first) sb.append(", ");
9241
      sb.append("se:");
9242
      if (this.se == null) {
9243
        sb.append("null");
9244
      } else {
9245
        sb.append(this.se);
9246
      }
9247
      first = false;
9248
      sb.append(")");
9249
      return sb.toString();
9250
    }
9251
 
3430 rajveer 9252
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9253
      // check for required fields
9254
    }
9255
 
3430 rajveer 9256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9257
      try {
9258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9259
      } catch (org.apache.thrift.TException te) {
9260
        throw new java.io.IOException(te);
9261
      }
9262
    }
9263
 
9264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9265
      try {
9266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9267
      } catch (org.apache.thrift.TException te) {
9268
        throw new java.io.IOException(te);
9269
      }
9270
    }
9271
 
730 chandransh 9272
  }
9273
 
3430 rajveer 9274
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9276
 
3430 rajveer 9277
    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);
9278
    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 9279
 
3430 rajveer 9280
    private long providerId; // required
9281
    private String type; // required
1139 chandransh 9282
 
9283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9285
      PROVIDER_ID((short)1, "providerId"),
9286
      TYPE((short)2, "type");
1139 chandransh 9287
 
9288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9289
 
9290
      static {
9291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9292
          byName.put(field.getFieldName(), field);
9293
        }
9294
      }
9295
 
9296
      /**
9297
       * Find the _Fields constant that matches fieldId, or null if its not found.
9298
       */
9299
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9300
        switch(fieldId) {
9301
          case 1: // PROVIDER_ID
9302
            return PROVIDER_ID;
9303
          case 2: // TYPE
9304
            return TYPE;
9305
          default:
9306
            return null;
9307
        }
1139 chandransh 9308
      }
9309
 
9310
      /**
9311
       * Find the _Fields constant that matches fieldId, throwing an exception
9312
       * if it is not found.
9313
       */
9314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9315
        _Fields fields = findByThriftId(fieldId);
9316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9317
        return fields;
9318
      }
9319
 
9320
      /**
9321
       * Find the _Fields constant that matches name, or null if its not found.
9322
       */
9323
      public static _Fields findByName(String name) {
9324
        return byName.get(name);
9325
      }
9326
 
9327
      private final short _thriftId;
9328
      private final String _fieldName;
9329
 
9330
      _Fields(short thriftId, String fieldName) {
9331
        _thriftId = thriftId;
9332
        _fieldName = fieldName;
9333
      }
9334
 
9335
      public short getThriftFieldId() {
9336
        return _thriftId;
9337
      }
9338
 
9339
      public String getFieldName() {
9340
        return _fieldName;
9341
      }
9342
    }
9343
 
9344
    // isset id assignments
9345
    private static final int __PROVIDERID_ISSET_ID = 0;
9346
    private BitSet __isset_bit_vector = new BitSet(1);
9347
 
3430 rajveer 9348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9349
    static {
3430 rajveer 9350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9351
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9353
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9357
    }
9358
 
9359
    public getFreeAwbCount_args() {
9360
    }
9361
 
9362
    public getFreeAwbCount_args(
3103 chandransh 9363
      long providerId,
9364
      String type)
1139 chandransh 9365
    {
9366
      this();
9367
      this.providerId = providerId;
9368
      setProviderIdIsSet(true);
3103 chandransh 9369
      this.type = type;
1139 chandransh 9370
    }
9371
 
9372
    /**
9373
     * Performs a deep copy on <i>other</i>.
9374
     */
9375
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9376
      __isset_bit_vector.clear();
9377
      __isset_bit_vector.or(other.__isset_bit_vector);
9378
      this.providerId = other.providerId;
3103 chandransh 9379
      if (other.isSetType()) {
9380
        this.type = other.type;
9381
      }
1139 chandransh 9382
    }
9383
 
9384
    public getFreeAwbCount_args deepCopy() {
9385
      return new getFreeAwbCount_args(this);
9386
    }
9387
 
3430 rajveer 9388
    @Override
9389
    public void clear() {
9390
      setProviderIdIsSet(false);
9391
      this.providerId = 0;
9392
      this.type = null;
1139 chandransh 9393
    }
9394
 
9395
    public long getProviderId() {
9396
      return this.providerId;
9397
    }
9398
 
3430 rajveer 9399
    public void setProviderId(long providerId) {
1139 chandransh 9400
      this.providerId = providerId;
9401
      setProviderIdIsSet(true);
9402
    }
9403
 
9404
    public void unsetProviderId() {
9405
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9406
    }
9407
 
3430 rajveer 9408
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9409
    public boolean isSetProviderId() {
9410
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9411
    }
9412
 
9413
    public void setProviderIdIsSet(boolean value) {
9414
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9415
    }
9416
 
3103 chandransh 9417
    public String getType() {
9418
      return this.type;
9419
    }
9420
 
3430 rajveer 9421
    public void setType(String type) {
3103 chandransh 9422
      this.type = type;
9423
    }
9424
 
9425
    public void unsetType() {
9426
      this.type = null;
9427
    }
9428
 
3430 rajveer 9429
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9430
    public boolean isSetType() {
9431
      return this.type != null;
9432
    }
9433
 
9434
    public void setTypeIsSet(boolean value) {
9435
      if (!value) {
9436
        this.type = null;
9437
      }
9438
    }
9439
 
1139 chandransh 9440
    public void setFieldValue(_Fields field, Object value) {
9441
      switch (field) {
9442
      case PROVIDER_ID:
9443
        if (value == null) {
9444
          unsetProviderId();
9445
        } else {
9446
          setProviderId((Long)value);
9447
        }
9448
        break;
9449
 
3103 chandransh 9450
      case TYPE:
9451
        if (value == null) {
9452
          unsetType();
9453
        } else {
9454
          setType((String)value);
9455
        }
9456
        break;
9457
 
1139 chandransh 9458
      }
9459
    }
9460
 
9461
    public Object getFieldValue(_Fields field) {
9462
      switch (field) {
9463
      case PROVIDER_ID:
3430 rajveer 9464
        return Long.valueOf(getProviderId());
1139 chandransh 9465
 
3103 chandransh 9466
      case TYPE:
9467
        return getType();
9468
 
1139 chandransh 9469
      }
9470
      throw new IllegalStateException();
9471
    }
9472
 
3430 rajveer 9473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9474
    public boolean isSet(_Fields field) {
9475
      if (field == null) {
9476
        throw new IllegalArgumentException();
9477
      }
1139 chandransh 9478
 
9479
      switch (field) {
9480
      case PROVIDER_ID:
9481
        return isSetProviderId();
3103 chandransh 9482
      case TYPE:
9483
        return isSetType();
1139 chandransh 9484
      }
9485
      throw new IllegalStateException();
9486
    }
9487
 
9488
    @Override
9489
    public boolean equals(Object that) {
9490
      if (that == null)
9491
        return false;
9492
      if (that instanceof getFreeAwbCount_args)
9493
        return this.equals((getFreeAwbCount_args)that);
9494
      return false;
9495
    }
9496
 
9497
    public boolean equals(getFreeAwbCount_args that) {
9498
      if (that == null)
9499
        return false;
9500
 
9501
      boolean this_present_providerId = true;
9502
      boolean that_present_providerId = true;
9503
      if (this_present_providerId || that_present_providerId) {
9504
        if (!(this_present_providerId && that_present_providerId))
9505
          return false;
9506
        if (this.providerId != that.providerId)
9507
          return false;
9508
      }
9509
 
3103 chandransh 9510
      boolean this_present_type = true && this.isSetType();
9511
      boolean that_present_type = true && that.isSetType();
9512
      if (this_present_type || that_present_type) {
9513
        if (!(this_present_type && that_present_type))
9514
          return false;
9515
        if (!this.type.equals(that.type))
9516
          return false;
9517
      }
9518
 
1139 chandransh 9519
      return true;
9520
    }
9521
 
9522
    @Override
9523
    public int hashCode() {
9524
      return 0;
9525
    }
9526
 
9527
    public int compareTo(getFreeAwbCount_args other) {
9528
      if (!getClass().equals(other.getClass())) {
9529
        return getClass().getName().compareTo(other.getClass().getName());
9530
      }
9531
 
9532
      int lastComparison = 0;
9533
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9534
 
3430 rajveer 9535
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9536
      if (lastComparison != 0) {
9537
        return lastComparison;
9538
      }
3430 rajveer 9539
      if (isSetProviderId()) {
9540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9541
        if (lastComparison != 0) {
9542
          return lastComparison;
9543
        }
1139 chandransh 9544
      }
3430 rajveer 9545
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9546
      if (lastComparison != 0) {
9547
        return lastComparison;
9548
      }
3430 rajveer 9549
      if (isSetType()) {
9550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9551
        if (lastComparison != 0) {
9552
          return lastComparison;
9553
        }
3103 chandransh 9554
      }
1139 chandransh 9555
      return 0;
9556
    }
9557
 
3430 rajveer 9558
    public _Fields fieldForId(int fieldId) {
9559
      return _Fields.findByThriftId(fieldId);
9560
    }
9561
 
9562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9563
      org.apache.thrift.protocol.TField field;
1139 chandransh 9564
      iprot.readStructBegin();
9565
      while (true)
9566
      {
9567
        field = iprot.readFieldBegin();
3430 rajveer 9568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9569
          break;
9570
        }
3430 rajveer 9571
        switch (field.id) {
9572
          case 1: // PROVIDER_ID
9573
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9574
              this.providerId = iprot.readI64();
9575
              setProviderIdIsSet(true);
9576
            } else { 
9577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9578
            }
9579
            break;
9580
          case 2: // TYPE
9581
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9582
              this.type = iprot.readString();
9583
            } else { 
9584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9585
            }
9586
            break;
9587
          default:
9588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9589
        }
3430 rajveer 9590
        iprot.readFieldEnd();
1139 chandransh 9591
      }
9592
      iprot.readStructEnd();
9593
      validate();
9594
    }
9595
 
3430 rajveer 9596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9597
      validate();
9598
 
9599
      oprot.writeStructBegin(STRUCT_DESC);
9600
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9601
      oprot.writeI64(this.providerId);
9602
      oprot.writeFieldEnd();
3103 chandransh 9603
      if (this.type != null) {
9604
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9605
        oprot.writeString(this.type);
9606
        oprot.writeFieldEnd();
9607
      }
1139 chandransh 9608
      oprot.writeFieldStop();
9609
      oprot.writeStructEnd();
9610
    }
9611
 
9612
    @Override
9613
    public String toString() {
9614
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9615
      boolean first = true;
9616
 
9617
      sb.append("providerId:");
9618
      sb.append(this.providerId);
9619
      first = false;
3103 chandransh 9620
      if (!first) sb.append(", ");
9621
      sb.append("type:");
9622
      if (this.type == null) {
9623
        sb.append("null");
9624
      } else {
9625
        sb.append(this.type);
9626
      }
9627
      first = false;
1139 chandransh 9628
      sb.append(")");
9629
      return sb.toString();
9630
    }
9631
 
3430 rajveer 9632
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9633
      // check for required fields
9634
    }
9635
 
3430 rajveer 9636
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9637
      try {
9638
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9639
      } catch (org.apache.thrift.TException te) {
9640
        throw new java.io.IOException(te);
9641
      }
9642
    }
9643
 
9644
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9645
      try {
9646
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9647
      } catch (org.apache.thrift.TException te) {
9648
        throw new java.io.IOException(te);
9649
      }
9650
    }
9651
 
1139 chandransh 9652
  }
9653
 
3430 rajveer 9654
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9655
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9656
 
3430 rajveer 9657
    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 9658
 
3430 rajveer 9659
    private long success; // required
1139 chandransh 9660
 
9661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9663
      SUCCESS((short)0, "success");
9664
 
9665
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9666
 
9667
      static {
9668
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9669
          byName.put(field.getFieldName(), field);
9670
        }
9671
      }
9672
 
9673
      /**
9674
       * Find the _Fields constant that matches fieldId, or null if its not found.
9675
       */
9676
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9677
        switch(fieldId) {
9678
          case 0: // SUCCESS
9679
            return SUCCESS;
9680
          default:
9681
            return null;
9682
        }
1139 chandransh 9683
      }
9684
 
9685
      /**
9686
       * Find the _Fields constant that matches fieldId, throwing an exception
9687
       * if it is not found.
9688
       */
9689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9690
        _Fields fields = findByThriftId(fieldId);
9691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9692
        return fields;
9693
      }
9694
 
9695
      /**
9696
       * Find the _Fields constant that matches name, or null if its not found.
9697
       */
9698
      public static _Fields findByName(String name) {
9699
        return byName.get(name);
9700
      }
9701
 
9702
      private final short _thriftId;
9703
      private final String _fieldName;
9704
 
9705
      _Fields(short thriftId, String fieldName) {
9706
        _thriftId = thriftId;
9707
        _fieldName = fieldName;
9708
      }
9709
 
9710
      public short getThriftFieldId() {
9711
        return _thriftId;
9712
      }
9713
 
9714
      public String getFieldName() {
9715
        return _fieldName;
9716
      }
9717
    }
9718
 
9719
    // isset id assignments
9720
    private static final int __SUCCESS_ISSET_ID = 0;
9721
    private BitSet __isset_bit_vector = new BitSet(1);
9722
 
3430 rajveer 9723
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9724
    static {
3430 rajveer 9725
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9726
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9727
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9728
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9729
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9730
    }
9731
 
9732
    public getFreeAwbCount_result() {
9733
    }
9734
 
9735
    public getFreeAwbCount_result(
9736
      long success)
9737
    {
9738
      this();
9739
      this.success = success;
9740
      setSuccessIsSet(true);
9741
    }
9742
 
9743
    /**
9744
     * Performs a deep copy on <i>other</i>.
9745
     */
9746
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9747
      __isset_bit_vector.clear();
9748
      __isset_bit_vector.or(other.__isset_bit_vector);
9749
      this.success = other.success;
9750
    }
9751
 
9752
    public getFreeAwbCount_result deepCopy() {
9753
      return new getFreeAwbCount_result(this);
9754
    }
9755
 
3430 rajveer 9756
    @Override
9757
    public void clear() {
9758
      setSuccessIsSet(false);
9759
      this.success = 0;
1139 chandransh 9760
    }
9761
 
9762
    public long getSuccess() {
9763
      return this.success;
9764
    }
9765
 
3430 rajveer 9766
    public void setSuccess(long success) {
1139 chandransh 9767
      this.success = success;
9768
      setSuccessIsSet(true);
9769
    }
9770
 
9771
    public void unsetSuccess() {
9772
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9773
    }
9774
 
3430 rajveer 9775
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9776
    public boolean isSetSuccess() {
9777
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9778
    }
9779
 
9780
    public void setSuccessIsSet(boolean value) {
9781
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9782
    }
9783
 
9784
    public void setFieldValue(_Fields field, Object value) {
9785
      switch (field) {
9786
      case SUCCESS:
9787
        if (value == null) {
9788
          unsetSuccess();
9789
        } else {
9790
          setSuccess((Long)value);
9791
        }
9792
        break;
9793
 
9794
      }
9795
    }
9796
 
9797
    public Object getFieldValue(_Fields field) {
9798
      switch (field) {
9799
      case SUCCESS:
3430 rajveer 9800
        return Long.valueOf(getSuccess());
1139 chandransh 9801
 
9802
      }
9803
      throw new IllegalStateException();
9804
    }
9805
 
3430 rajveer 9806
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9807
    public boolean isSet(_Fields field) {
9808
      if (field == null) {
9809
        throw new IllegalArgumentException();
9810
      }
1139 chandransh 9811
 
9812
      switch (field) {
9813
      case SUCCESS:
9814
        return isSetSuccess();
9815
      }
9816
      throw new IllegalStateException();
9817
    }
9818
 
9819
    @Override
9820
    public boolean equals(Object that) {
9821
      if (that == null)
9822
        return false;
9823
      if (that instanceof getFreeAwbCount_result)
9824
        return this.equals((getFreeAwbCount_result)that);
9825
      return false;
9826
    }
9827
 
9828
    public boolean equals(getFreeAwbCount_result that) {
9829
      if (that == null)
9830
        return false;
9831
 
9832
      boolean this_present_success = true;
9833
      boolean that_present_success = true;
9834
      if (this_present_success || that_present_success) {
9835
        if (!(this_present_success && that_present_success))
9836
          return false;
9837
        if (this.success != that.success)
9838
          return false;
9839
      }
9840
 
9841
      return true;
9842
    }
9843
 
9844
    @Override
9845
    public int hashCode() {
9846
      return 0;
9847
    }
9848
 
9849
    public int compareTo(getFreeAwbCount_result other) {
9850
      if (!getClass().equals(other.getClass())) {
9851
        return getClass().getName().compareTo(other.getClass().getName());
9852
      }
9853
 
9854
      int lastComparison = 0;
9855
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9856
 
3430 rajveer 9857
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9858
      if (lastComparison != 0) {
9859
        return lastComparison;
9860
      }
3430 rajveer 9861
      if (isSetSuccess()) {
9862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9863
        if (lastComparison != 0) {
9864
          return lastComparison;
9865
        }
1139 chandransh 9866
      }
9867
      return 0;
9868
    }
9869
 
3430 rajveer 9870
    public _Fields fieldForId(int fieldId) {
9871
      return _Fields.findByThriftId(fieldId);
9872
    }
9873
 
9874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9875
      org.apache.thrift.protocol.TField field;
1139 chandransh 9876
      iprot.readStructBegin();
9877
      while (true)
9878
      {
9879
        field = iprot.readFieldBegin();
3430 rajveer 9880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9881
          break;
9882
        }
3430 rajveer 9883
        switch (field.id) {
9884
          case 0: // SUCCESS
9885
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9886
              this.success = iprot.readI64();
9887
              setSuccessIsSet(true);
9888
            } else { 
9889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9890
            }
9891
            break;
9892
          default:
9893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9894
        }
3430 rajveer 9895
        iprot.readFieldEnd();
1139 chandransh 9896
      }
9897
      iprot.readStructEnd();
9898
      validate();
9899
    }
9900
 
3430 rajveer 9901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9902
      oprot.writeStructBegin(STRUCT_DESC);
9903
 
9904
      if (this.isSetSuccess()) {
9905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9906
        oprot.writeI64(this.success);
9907
        oprot.writeFieldEnd();
9908
      }
9909
      oprot.writeFieldStop();
9910
      oprot.writeStructEnd();
9911
    }
9912
 
9913
    @Override
9914
    public String toString() {
9915
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9916
      boolean first = true;
9917
 
9918
      sb.append("success:");
9919
      sb.append(this.success);
9920
      first = false;
9921
      sb.append(")");
9922
      return sb.toString();
9923
    }
9924
 
3430 rajveer 9925
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9926
      // check for required fields
9927
    }
9928
 
3430 rajveer 9929
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9930
      try {
9931
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9932
      } catch (org.apache.thrift.TException te) {
9933
        throw new java.io.IOException(te);
9934
      }
9935
    }
9936
 
9937
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9938
      try {
9939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9940
      } catch (org.apache.thrift.TException te) {
9941
        throw new java.io.IOException(te);
9942
      }
9943
    }
9944
 
1139 chandransh 9945
  }
9946
 
3430 rajveer 9947
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9949
 
3430 rajveer 9950
    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);
9951
    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 9952
 
3430 rajveer 9953
    private long fromDate; // required
9954
    private long toDate; // required
1730 ankur.sing 9955
 
9956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9958
      FROM_DATE((short)1, "fromDate"),
9959
      TO_DATE((short)2, "toDate");
9960
 
9961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9962
 
9963
      static {
9964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9965
          byName.put(field.getFieldName(), field);
9966
        }
9967
      }
9968
 
9969
      /**
9970
       * Find the _Fields constant that matches fieldId, or null if its not found.
9971
       */
9972
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9973
        switch(fieldId) {
9974
          case 1: // FROM_DATE
9975
            return FROM_DATE;
9976
          case 2: // TO_DATE
9977
            return TO_DATE;
9978
          default:
9979
            return null;
9980
        }
1730 ankur.sing 9981
      }
9982
 
9983
      /**
9984
       * Find the _Fields constant that matches fieldId, throwing an exception
9985
       * if it is not found.
9986
       */
9987
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9988
        _Fields fields = findByThriftId(fieldId);
9989
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9990
        return fields;
9991
      }
9992
 
9993
      /**
9994
       * Find the _Fields constant that matches name, or null if its not found.
9995
       */
9996
      public static _Fields findByName(String name) {
9997
        return byName.get(name);
9998
      }
9999
 
10000
      private final short _thriftId;
10001
      private final String _fieldName;
10002
 
10003
      _Fields(short thriftId, String fieldName) {
10004
        _thriftId = thriftId;
10005
        _fieldName = fieldName;
10006
      }
10007
 
10008
      public short getThriftFieldId() {
10009
        return _thriftId;
10010
      }
10011
 
10012
      public String getFieldName() {
10013
        return _fieldName;
10014
      }
10015
    }
10016
 
10017
    // isset id assignments
10018
    private static final int __FROMDATE_ISSET_ID = 0;
10019
    private static final int __TODATE_ISSET_ID = 1;
10020
    private BitSet __isset_bit_vector = new BitSet(2);
10021
 
3430 rajveer 10022
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10023
    static {
3430 rajveer 10024
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10025
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10027
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10029
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10030
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10031
    }
10032
 
10033
    public getHolidays_args() {
10034
    }
10035
 
10036
    public getHolidays_args(
10037
      long fromDate,
10038
      long toDate)
10039
    {
10040
      this();
10041
      this.fromDate = fromDate;
10042
      setFromDateIsSet(true);
10043
      this.toDate = toDate;
10044
      setToDateIsSet(true);
10045
    }
10046
 
10047
    /**
10048
     * Performs a deep copy on <i>other</i>.
10049
     */
10050
    public getHolidays_args(getHolidays_args other) {
10051
      __isset_bit_vector.clear();
10052
      __isset_bit_vector.or(other.__isset_bit_vector);
10053
      this.fromDate = other.fromDate;
10054
      this.toDate = other.toDate;
10055
    }
10056
 
10057
    public getHolidays_args deepCopy() {
10058
      return new getHolidays_args(this);
10059
    }
10060
 
3430 rajveer 10061
    @Override
10062
    public void clear() {
10063
      setFromDateIsSet(false);
10064
      this.fromDate = 0;
10065
      setToDateIsSet(false);
10066
      this.toDate = 0;
1730 ankur.sing 10067
    }
10068
 
10069
    public long getFromDate() {
10070
      return this.fromDate;
10071
    }
10072
 
3430 rajveer 10073
    public void setFromDate(long fromDate) {
1730 ankur.sing 10074
      this.fromDate = fromDate;
10075
      setFromDateIsSet(true);
10076
    }
10077
 
10078
    public void unsetFromDate() {
10079
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10080
    }
10081
 
3430 rajveer 10082
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10083
    public boolean isSetFromDate() {
10084
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10085
    }
10086
 
10087
    public void setFromDateIsSet(boolean value) {
10088
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10089
    }
10090
 
10091
    public long getToDate() {
10092
      return this.toDate;
10093
    }
10094
 
3430 rajveer 10095
    public void setToDate(long toDate) {
1730 ankur.sing 10096
      this.toDate = toDate;
10097
      setToDateIsSet(true);
10098
    }
10099
 
10100
    public void unsetToDate() {
10101
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10102
    }
10103
 
3430 rajveer 10104
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10105
    public boolean isSetToDate() {
10106
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10107
    }
10108
 
10109
    public void setToDateIsSet(boolean value) {
10110
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10111
    }
10112
 
10113
    public void setFieldValue(_Fields field, Object value) {
10114
      switch (field) {
10115
      case FROM_DATE:
10116
        if (value == null) {
10117
          unsetFromDate();
10118
        } else {
10119
          setFromDate((Long)value);
10120
        }
10121
        break;
10122
 
10123
      case TO_DATE:
10124
        if (value == null) {
10125
          unsetToDate();
10126
        } else {
10127
          setToDate((Long)value);
10128
        }
10129
        break;
10130
 
10131
      }
10132
    }
10133
 
10134
    public Object getFieldValue(_Fields field) {
10135
      switch (field) {
10136
      case FROM_DATE:
3430 rajveer 10137
        return Long.valueOf(getFromDate());
1730 ankur.sing 10138
 
10139
      case TO_DATE:
3430 rajveer 10140
        return Long.valueOf(getToDate());
1730 ankur.sing 10141
 
10142
      }
10143
      throw new IllegalStateException();
10144
    }
10145
 
3430 rajveer 10146
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10147
    public boolean isSet(_Fields field) {
10148
      if (field == null) {
10149
        throw new IllegalArgumentException();
10150
      }
1730 ankur.sing 10151
 
10152
      switch (field) {
10153
      case FROM_DATE:
10154
        return isSetFromDate();
10155
      case TO_DATE:
10156
        return isSetToDate();
10157
      }
10158
      throw new IllegalStateException();
10159
    }
10160
 
10161
    @Override
10162
    public boolean equals(Object that) {
10163
      if (that == null)
10164
        return false;
10165
      if (that instanceof getHolidays_args)
10166
        return this.equals((getHolidays_args)that);
10167
      return false;
10168
    }
10169
 
10170
    public boolean equals(getHolidays_args that) {
10171
      if (that == null)
10172
        return false;
10173
 
10174
      boolean this_present_fromDate = true;
10175
      boolean that_present_fromDate = true;
10176
      if (this_present_fromDate || that_present_fromDate) {
10177
        if (!(this_present_fromDate && that_present_fromDate))
10178
          return false;
10179
        if (this.fromDate != that.fromDate)
10180
          return false;
10181
      }
10182
 
10183
      boolean this_present_toDate = true;
10184
      boolean that_present_toDate = true;
10185
      if (this_present_toDate || that_present_toDate) {
10186
        if (!(this_present_toDate && that_present_toDate))
10187
          return false;
10188
        if (this.toDate != that.toDate)
10189
          return false;
10190
      }
10191
 
10192
      return true;
10193
    }
10194
 
10195
    @Override
10196
    public int hashCode() {
10197
      return 0;
10198
    }
10199
 
10200
    public int compareTo(getHolidays_args other) {
10201
      if (!getClass().equals(other.getClass())) {
10202
        return getClass().getName().compareTo(other.getClass().getName());
10203
      }
10204
 
10205
      int lastComparison = 0;
10206
      getHolidays_args typedOther = (getHolidays_args)other;
10207
 
3430 rajveer 10208
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10209
      if (lastComparison != 0) {
10210
        return lastComparison;
10211
      }
3430 rajveer 10212
      if (isSetFromDate()) {
10213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10214
        if (lastComparison != 0) {
10215
          return lastComparison;
10216
        }
1730 ankur.sing 10217
      }
3430 rajveer 10218
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10219
      if (lastComparison != 0) {
10220
        return lastComparison;
10221
      }
3430 rajveer 10222
      if (isSetToDate()) {
10223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10224
        if (lastComparison != 0) {
10225
          return lastComparison;
10226
        }
1730 ankur.sing 10227
      }
10228
      return 0;
10229
    }
10230
 
3430 rajveer 10231
    public _Fields fieldForId(int fieldId) {
10232
      return _Fields.findByThriftId(fieldId);
10233
    }
10234
 
10235
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10236
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10237
      iprot.readStructBegin();
10238
      while (true)
10239
      {
10240
        field = iprot.readFieldBegin();
3430 rajveer 10241
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10242
          break;
10243
        }
3430 rajveer 10244
        switch (field.id) {
10245
          case 1: // FROM_DATE
10246
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10247
              this.fromDate = iprot.readI64();
10248
              setFromDateIsSet(true);
10249
            } else { 
10250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10251
            }
10252
            break;
10253
          case 2: // TO_DATE
10254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10255
              this.toDate = iprot.readI64();
10256
              setToDateIsSet(true);
10257
            } else { 
10258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10259
            }
10260
            break;
10261
          default:
10262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10263
        }
3430 rajveer 10264
        iprot.readFieldEnd();
1730 ankur.sing 10265
      }
10266
      iprot.readStructEnd();
10267
      validate();
10268
    }
10269
 
3430 rajveer 10270
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10271
      validate();
10272
 
10273
      oprot.writeStructBegin(STRUCT_DESC);
10274
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10275
      oprot.writeI64(this.fromDate);
10276
      oprot.writeFieldEnd();
10277
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10278
      oprot.writeI64(this.toDate);
10279
      oprot.writeFieldEnd();
10280
      oprot.writeFieldStop();
10281
      oprot.writeStructEnd();
10282
    }
10283
 
10284
    @Override
10285
    public String toString() {
10286
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10287
      boolean first = true;
10288
 
10289
      sb.append("fromDate:");
10290
      sb.append(this.fromDate);
10291
      first = false;
10292
      if (!first) sb.append(", ");
10293
      sb.append("toDate:");
10294
      sb.append(this.toDate);
10295
      first = false;
10296
      sb.append(")");
10297
      return sb.toString();
10298
    }
10299
 
3430 rajveer 10300
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10301
      // check for required fields
10302
    }
10303
 
3430 rajveer 10304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10305
      try {
10306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10307
      } catch (org.apache.thrift.TException te) {
10308
        throw new java.io.IOException(te);
10309
      }
10310
    }
10311
 
10312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10313
      try {
10314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10315
      } catch (org.apache.thrift.TException te) {
10316
        throw new java.io.IOException(te);
10317
      }
10318
    }
10319
 
1730 ankur.sing 10320
  }
10321
 
3430 rajveer 10322
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10324
 
3430 rajveer 10325
    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 10326
 
3430 rajveer 10327
    private List<Long> success; // required
1730 ankur.sing 10328
 
10329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10331
      SUCCESS((short)0, "success");
10332
 
10333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10334
 
10335
      static {
10336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10337
          byName.put(field.getFieldName(), field);
10338
        }
10339
      }
10340
 
10341
      /**
10342
       * Find the _Fields constant that matches fieldId, or null if its not found.
10343
       */
10344
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10345
        switch(fieldId) {
10346
          case 0: // SUCCESS
10347
            return SUCCESS;
10348
          default:
10349
            return null;
10350
        }
1730 ankur.sing 10351
      }
10352
 
10353
      /**
10354
       * Find the _Fields constant that matches fieldId, throwing an exception
10355
       * if it is not found.
10356
       */
10357
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10358
        _Fields fields = findByThriftId(fieldId);
10359
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10360
        return fields;
10361
      }
10362
 
10363
      /**
10364
       * Find the _Fields constant that matches name, or null if its not found.
10365
       */
10366
      public static _Fields findByName(String name) {
10367
        return byName.get(name);
10368
      }
10369
 
10370
      private final short _thriftId;
10371
      private final String _fieldName;
10372
 
10373
      _Fields(short thriftId, String fieldName) {
10374
        _thriftId = thriftId;
10375
        _fieldName = fieldName;
10376
      }
10377
 
10378
      public short getThriftFieldId() {
10379
        return _thriftId;
10380
      }
10381
 
10382
      public String getFieldName() {
10383
        return _fieldName;
10384
      }
10385
    }
10386
 
10387
    // isset id assignments
10388
 
3430 rajveer 10389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10390
    static {
3430 rajveer 10391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10392
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10393
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10394
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10397
    }
10398
 
10399
    public getHolidays_result() {
10400
    }
10401
 
10402
    public getHolidays_result(
10403
      List<Long> success)
10404
    {
10405
      this();
10406
      this.success = success;
10407
    }
10408
 
10409
    /**
10410
     * Performs a deep copy on <i>other</i>.
10411
     */
10412
    public getHolidays_result(getHolidays_result other) {
10413
      if (other.isSetSuccess()) {
10414
        List<Long> __this__success = new ArrayList<Long>();
10415
        for (Long other_element : other.success) {
10416
          __this__success.add(other_element);
10417
        }
10418
        this.success = __this__success;
10419
      }
10420
    }
10421
 
10422
    public getHolidays_result deepCopy() {
10423
      return new getHolidays_result(this);
10424
    }
10425
 
3430 rajveer 10426
    @Override
10427
    public void clear() {
10428
      this.success = null;
1730 ankur.sing 10429
    }
10430
 
10431
    public int getSuccessSize() {
10432
      return (this.success == null) ? 0 : this.success.size();
10433
    }
10434
 
10435
    public java.util.Iterator<Long> getSuccessIterator() {
10436
      return (this.success == null) ? null : this.success.iterator();
10437
    }
10438
 
10439
    public void addToSuccess(long elem) {
10440
      if (this.success == null) {
10441
        this.success = new ArrayList<Long>();
10442
      }
10443
      this.success.add(elem);
10444
    }
10445
 
10446
    public List<Long> getSuccess() {
10447
      return this.success;
10448
    }
10449
 
3430 rajveer 10450
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10451
      this.success = success;
10452
    }
10453
 
10454
    public void unsetSuccess() {
10455
      this.success = null;
10456
    }
10457
 
3430 rajveer 10458
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10459
    public boolean isSetSuccess() {
10460
      return this.success != null;
10461
    }
10462
 
10463
    public void setSuccessIsSet(boolean value) {
10464
      if (!value) {
10465
        this.success = null;
10466
      }
10467
    }
10468
 
10469
    public void setFieldValue(_Fields field, Object value) {
10470
      switch (field) {
10471
      case SUCCESS:
10472
        if (value == null) {
10473
          unsetSuccess();
10474
        } else {
10475
          setSuccess((List<Long>)value);
10476
        }
10477
        break;
10478
 
10479
      }
10480
    }
10481
 
10482
    public Object getFieldValue(_Fields field) {
10483
      switch (field) {
10484
      case SUCCESS:
10485
        return getSuccess();
10486
 
10487
      }
10488
      throw new IllegalStateException();
10489
    }
10490
 
3430 rajveer 10491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10492
    public boolean isSet(_Fields field) {
10493
      if (field == null) {
10494
        throw new IllegalArgumentException();
10495
      }
1730 ankur.sing 10496
 
10497
      switch (field) {
10498
      case SUCCESS:
10499
        return isSetSuccess();
10500
      }
10501
      throw new IllegalStateException();
10502
    }
10503
 
10504
    @Override
10505
    public boolean equals(Object that) {
10506
      if (that == null)
10507
        return false;
10508
      if (that instanceof getHolidays_result)
10509
        return this.equals((getHolidays_result)that);
10510
      return false;
10511
    }
10512
 
10513
    public boolean equals(getHolidays_result that) {
10514
      if (that == null)
10515
        return false;
10516
 
10517
      boolean this_present_success = true && this.isSetSuccess();
10518
      boolean that_present_success = true && that.isSetSuccess();
10519
      if (this_present_success || that_present_success) {
10520
        if (!(this_present_success && that_present_success))
10521
          return false;
10522
        if (!this.success.equals(that.success))
10523
          return false;
10524
      }
10525
 
10526
      return true;
10527
    }
10528
 
10529
    @Override
10530
    public int hashCode() {
10531
      return 0;
10532
    }
10533
 
10534
    public int compareTo(getHolidays_result other) {
10535
      if (!getClass().equals(other.getClass())) {
10536
        return getClass().getName().compareTo(other.getClass().getName());
10537
      }
10538
 
10539
      int lastComparison = 0;
10540
      getHolidays_result typedOther = (getHolidays_result)other;
10541
 
3430 rajveer 10542
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10543
      if (lastComparison != 0) {
10544
        return lastComparison;
10545
      }
3430 rajveer 10546
      if (isSetSuccess()) {
10547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10548
        if (lastComparison != 0) {
10549
          return lastComparison;
10550
        }
1730 ankur.sing 10551
      }
10552
      return 0;
10553
    }
10554
 
3430 rajveer 10555
    public _Fields fieldForId(int fieldId) {
10556
      return _Fields.findByThriftId(fieldId);
10557
    }
10558
 
10559
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10560
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10561
      iprot.readStructBegin();
10562
      while (true)
10563
      {
10564
        field = iprot.readFieldBegin();
3430 rajveer 10565
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10566
          break;
10567
        }
3430 rajveer 10568
        switch (field.id) {
10569
          case 0: // SUCCESS
10570
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10571
              {
7792 anupam.sin 10572
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10573
                this.success = new ArrayList<Long>(_list12.size);
10574
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10575
                {
7792 anupam.sin 10576
                  long _elem14; // required
10577
                  _elem14 = iprot.readI64();
10578
                  this.success.add(_elem14);
1730 ankur.sing 10579
                }
3430 rajveer 10580
                iprot.readListEnd();
1730 ankur.sing 10581
              }
3430 rajveer 10582
            } else { 
10583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10584
            }
10585
            break;
10586
          default:
10587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10588
        }
3430 rajveer 10589
        iprot.readFieldEnd();
1730 ankur.sing 10590
      }
10591
      iprot.readStructEnd();
10592
      validate();
10593
    }
10594
 
3430 rajveer 10595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10596
      oprot.writeStructBegin(STRUCT_DESC);
10597
 
10598
      if (this.isSetSuccess()) {
10599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10600
        {
3430 rajveer 10601
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10602
          for (long _iter15 : this.success)
1730 ankur.sing 10603
          {
7792 anupam.sin 10604
            oprot.writeI64(_iter15);
1730 ankur.sing 10605
          }
10606
          oprot.writeListEnd();
10607
        }
10608
        oprot.writeFieldEnd();
10609
      }
10610
      oprot.writeFieldStop();
10611
      oprot.writeStructEnd();
10612
    }
10613
 
10614
    @Override
10615
    public String toString() {
10616
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10617
      boolean first = true;
10618
 
10619
      sb.append("success:");
10620
      if (this.success == null) {
10621
        sb.append("null");
10622
      } else {
10623
        sb.append(this.success);
10624
      }
10625
      first = false;
10626
      sb.append(")");
10627
      return sb.toString();
10628
    }
10629
 
3430 rajveer 10630
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10631
      // check for required fields
10632
    }
10633
 
3430 rajveer 10634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10635
      try {
10636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10637
      } catch (org.apache.thrift.TException te) {
10638
        throw new java.io.IOException(te);
10639
      }
10640
    }
10641
 
10642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10643
      try {
10644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10645
      } catch (org.apache.thrift.TException te) {
10646
        throw new java.io.IOException(te);
10647
      }
10648
    }
10649
 
1730 ankur.sing 10650
  }
10651
 
4934 amit.gupta 10652
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10654
 
10655
    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);
10656
    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);
10657
    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);
10658
 
10659
    private long catalogItemId; // required
10660
    private String destination_pin; // required
10661
    private DeliveryType type; // required
10662
 
10663
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10664
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10665
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10666
      DESTINATION_PIN((short)2, "destination_pin"),
10667
      /**
10668
       * 
10669
       * @see DeliveryType
10670
       */
10671
      TYPE((short)3, "type");
10672
 
10673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10674
 
10675
      static {
10676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10677
          byName.put(field.getFieldName(), field);
10678
        }
10679
      }
10680
 
10681
      /**
10682
       * Find the _Fields constant that matches fieldId, or null if its not found.
10683
       */
10684
      public static _Fields findByThriftId(int fieldId) {
10685
        switch(fieldId) {
10686
          case 1: // CATALOG_ITEM_ID
10687
            return CATALOG_ITEM_ID;
10688
          case 2: // DESTINATION_PIN
10689
            return DESTINATION_PIN;
10690
          case 3: // TYPE
10691
            return TYPE;
10692
          default:
10693
            return null;
10694
        }
10695
      }
10696
 
10697
      /**
10698
       * Find the _Fields constant that matches fieldId, throwing an exception
10699
       * if it is not found.
10700
       */
10701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10702
        _Fields fields = findByThriftId(fieldId);
10703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10704
        return fields;
10705
      }
10706
 
10707
      /**
10708
       * Find the _Fields constant that matches name, or null if its not found.
10709
       */
10710
      public static _Fields findByName(String name) {
10711
        return byName.get(name);
10712
      }
10713
 
10714
      private final short _thriftId;
10715
      private final String _fieldName;
10716
 
10717
      _Fields(short thriftId, String fieldName) {
10718
        _thriftId = thriftId;
10719
        _fieldName = fieldName;
10720
      }
10721
 
10722
      public short getThriftFieldId() {
10723
        return _thriftId;
10724
      }
10725
 
10726
      public String getFieldName() {
10727
        return _fieldName;
10728
      }
10729
    }
10730
 
10731
    // isset id assignments
10732
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10733
    private BitSet __isset_bit_vector = new BitSet(1);
10734
 
10735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10736
    static {
10737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10738
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10740
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10742
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10743
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10744
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10745
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10746
    }
10747
 
10748
    public getEntityLogisticsEstimation_args() {
10749
    }
10750
 
10751
    public getEntityLogisticsEstimation_args(
10752
      long catalogItemId,
10753
      String destination_pin,
10754
      DeliveryType type)
10755
    {
10756
      this();
10757
      this.catalogItemId = catalogItemId;
10758
      setCatalogItemIdIsSet(true);
10759
      this.destination_pin = destination_pin;
10760
      this.type = type;
10761
    }
10762
 
10763
    /**
10764
     * Performs a deep copy on <i>other</i>.
10765
     */
10766
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10767
      __isset_bit_vector.clear();
10768
      __isset_bit_vector.or(other.__isset_bit_vector);
10769
      this.catalogItemId = other.catalogItemId;
10770
      if (other.isSetDestination_pin()) {
10771
        this.destination_pin = other.destination_pin;
10772
      }
10773
      if (other.isSetType()) {
10774
        this.type = other.type;
10775
      }
10776
    }
10777
 
10778
    public getEntityLogisticsEstimation_args deepCopy() {
10779
      return new getEntityLogisticsEstimation_args(this);
10780
    }
10781
 
10782
    @Override
10783
    public void clear() {
10784
      setCatalogItemIdIsSet(false);
10785
      this.catalogItemId = 0;
10786
      this.destination_pin = null;
10787
      this.type = null;
10788
    }
10789
 
10790
    public long getCatalogItemId() {
10791
      return this.catalogItemId;
10792
    }
10793
 
10794
    public void setCatalogItemId(long catalogItemId) {
10795
      this.catalogItemId = catalogItemId;
10796
      setCatalogItemIdIsSet(true);
10797
    }
10798
 
10799
    public void unsetCatalogItemId() {
10800
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10801
    }
10802
 
10803
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10804
    public boolean isSetCatalogItemId() {
10805
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10806
    }
10807
 
10808
    public void setCatalogItemIdIsSet(boolean value) {
10809
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10810
    }
10811
 
10812
    public String getDestination_pin() {
10813
      return this.destination_pin;
10814
    }
10815
 
10816
    public void setDestination_pin(String destination_pin) {
10817
      this.destination_pin = destination_pin;
10818
    }
10819
 
10820
    public void unsetDestination_pin() {
10821
      this.destination_pin = null;
10822
    }
10823
 
10824
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10825
    public boolean isSetDestination_pin() {
10826
      return this.destination_pin != null;
10827
    }
10828
 
10829
    public void setDestination_pinIsSet(boolean value) {
10830
      if (!value) {
10831
        this.destination_pin = null;
10832
      }
10833
    }
10834
 
10835
    /**
10836
     * 
10837
     * @see DeliveryType
10838
     */
10839
    public DeliveryType getType() {
10840
      return this.type;
10841
    }
10842
 
10843
    /**
10844
     * 
10845
     * @see DeliveryType
10846
     */
10847
    public void setType(DeliveryType type) {
10848
      this.type = type;
10849
    }
10850
 
10851
    public void unsetType() {
10852
      this.type = null;
10853
    }
10854
 
10855
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10856
    public boolean isSetType() {
10857
      return this.type != null;
10858
    }
10859
 
10860
    public void setTypeIsSet(boolean value) {
10861
      if (!value) {
10862
        this.type = null;
10863
      }
10864
    }
10865
 
10866
    public void setFieldValue(_Fields field, Object value) {
10867
      switch (field) {
10868
      case CATALOG_ITEM_ID:
10869
        if (value == null) {
10870
          unsetCatalogItemId();
10871
        } else {
10872
          setCatalogItemId((Long)value);
10873
        }
10874
        break;
10875
 
10876
      case DESTINATION_PIN:
10877
        if (value == null) {
10878
          unsetDestination_pin();
10879
        } else {
10880
          setDestination_pin((String)value);
10881
        }
10882
        break;
10883
 
10884
      case TYPE:
10885
        if (value == null) {
10886
          unsetType();
10887
        } else {
10888
          setType((DeliveryType)value);
10889
        }
10890
        break;
10891
 
10892
      }
10893
    }
10894
 
10895
    public Object getFieldValue(_Fields field) {
10896
      switch (field) {
10897
      case CATALOG_ITEM_ID:
10898
        return Long.valueOf(getCatalogItemId());
10899
 
10900
      case DESTINATION_PIN:
10901
        return getDestination_pin();
10902
 
10903
      case TYPE:
10904
        return getType();
10905
 
10906
      }
10907
      throw new IllegalStateException();
10908
    }
10909
 
10910
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10911
    public boolean isSet(_Fields field) {
10912
      if (field == null) {
10913
        throw new IllegalArgumentException();
10914
      }
10915
 
10916
      switch (field) {
10917
      case CATALOG_ITEM_ID:
10918
        return isSetCatalogItemId();
10919
      case DESTINATION_PIN:
10920
        return isSetDestination_pin();
10921
      case TYPE:
10922
        return isSetType();
10923
      }
10924
      throw new IllegalStateException();
10925
    }
10926
 
10927
    @Override
10928
    public boolean equals(Object that) {
10929
      if (that == null)
10930
        return false;
10931
      if (that instanceof getEntityLogisticsEstimation_args)
10932
        return this.equals((getEntityLogisticsEstimation_args)that);
10933
      return false;
10934
    }
10935
 
10936
    public boolean equals(getEntityLogisticsEstimation_args that) {
10937
      if (that == null)
10938
        return false;
10939
 
10940
      boolean this_present_catalogItemId = true;
10941
      boolean that_present_catalogItemId = true;
10942
      if (this_present_catalogItemId || that_present_catalogItemId) {
10943
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10944
          return false;
10945
        if (this.catalogItemId != that.catalogItemId)
10946
          return false;
10947
      }
10948
 
10949
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10950
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10951
      if (this_present_destination_pin || that_present_destination_pin) {
10952
        if (!(this_present_destination_pin && that_present_destination_pin))
10953
          return false;
10954
        if (!this.destination_pin.equals(that.destination_pin))
10955
          return false;
10956
      }
10957
 
10958
      boolean this_present_type = true && this.isSetType();
10959
      boolean that_present_type = true && that.isSetType();
10960
      if (this_present_type || that_present_type) {
10961
        if (!(this_present_type && that_present_type))
10962
          return false;
10963
        if (!this.type.equals(that.type))
10964
          return false;
10965
      }
10966
 
10967
      return true;
10968
    }
10969
 
10970
    @Override
10971
    public int hashCode() {
10972
      return 0;
10973
    }
10974
 
10975
    public int compareTo(getEntityLogisticsEstimation_args other) {
10976
      if (!getClass().equals(other.getClass())) {
10977
        return getClass().getName().compareTo(other.getClass().getName());
10978
      }
10979
 
10980
      int lastComparison = 0;
10981
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10982
 
10983
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10984
      if (lastComparison != 0) {
10985
        return lastComparison;
10986
      }
10987
      if (isSetCatalogItemId()) {
10988
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10989
        if (lastComparison != 0) {
10990
          return lastComparison;
10991
        }
10992
      }
10993
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10994
      if (lastComparison != 0) {
10995
        return lastComparison;
10996
      }
10997
      if (isSetDestination_pin()) {
10998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10999
        if (lastComparison != 0) {
11000
          return lastComparison;
11001
        }
11002
      }
11003
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11004
      if (lastComparison != 0) {
11005
        return lastComparison;
11006
      }
11007
      if (isSetType()) {
11008
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11009
        if (lastComparison != 0) {
11010
          return lastComparison;
11011
        }
11012
      }
11013
      return 0;
11014
    }
11015
 
11016
    public _Fields fieldForId(int fieldId) {
11017
      return _Fields.findByThriftId(fieldId);
11018
    }
11019
 
11020
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11021
      org.apache.thrift.protocol.TField field;
11022
      iprot.readStructBegin();
11023
      while (true)
11024
      {
11025
        field = iprot.readFieldBegin();
11026
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11027
          break;
11028
        }
11029
        switch (field.id) {
11030
          case 1: // CATALOG_ITEM_ID
11031
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11032
              this.catalogItemId = iprot.readI64();
11033
              setCatalogItemIdIsSet(true);
11034
            } else { 
11035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11036
            }
11037
            break;
11038
          case 2: // DESTINATION_PIN
11039
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11040
              this.destination_pin = iprot.readString();
11041
            } else { 
11042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11043
            }
11044
            break;
11045
          case 3: // TYPE
11046
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11047
              this.type = DeliveryType.findByValue(iprot.readI32());
11048
            } else { 
11049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11050
            }
11051
            break;
11052
          default:
11053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11054
        }
11055
        iprot.readFieldEnd();
11056
      }
11057
      iprot.readStructEnd();
11058
      validate();
11059
    }
11060
 
11061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11062
      validate();
11063
 
11064
      oprot.writeStructBegin(STRUCT_DESC);
11065
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11066
      oprot.writeI64(this.catalogItemId);
11067
      oprot.writeFieldEnd();
11068
      if (this.destination_pin != null) {
11069
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11070
        oprot.writeString(this.destination_pin);
11071
        oprot.writeFieldEnd();
11072
      }
11073
      if (this.type != null) {
11074
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11075
        oprot.writeI32(this.type.getValue());
11076
        oprot.writeFieldEnd();
11077
      }
11078
      oprot.writeFieldStop();
11079
      oprot.writeStructEnd();
11080
    }
11081
 
11082
    @Override
11083
    public String toString() {
11084
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11085
      boolean first = true;
11086
 
11087
      sb.append("catalogItemId:");
11088
      sb.append(this.catalogItemId);
11089
      first = false;
11090
      if (!first) sb.append(", ");
11091
      sb.append("destination_pin:");
11092
      if (this.destination_pin == null) {
11093
        sb.append("null");
11094
      } else {
11095
        sb.append(this.destination_pin);
11096
      }
11097
      first = false;
11098
      if (!first) sb.append(", ");
11099
      sb.append("type:");
11100
      if (this.type == null) {
11101
        sb.append("null");
11102
      } else {
11103
        sb.append(this.type);
11104
      }
11105
      first = false;
11106
      sb.append(")");
11107
      return sb.toString();
11108
    }
11109
 
11110
    public void validate() throws org.apache.thrift.TException {
11111
      // check for required fields
11112
    }
11113
 
11114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11115
      try {
11116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11117
      } catch (org.apache.thrift.TException te) {
11118
        throw new java.io.IOException(te);
11119
      }
11120
    }
11121
 
11122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11123
      try {
11124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11125
      } catch (org.apache.thrift.TException te) {
11126
        throw new java.io.IOException(te);
11127
      }
11128
    }
11129
 
11130
  }
11131
 
11132
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11134
 
11135
    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);
11136
    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);
11137
 
9840 amit.gupta 11138
    private List<ItemText> success; // required
4934 amit.gupta 11139
    private LogisticsServiceException se; // required
11140
 
11141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11143
      SUCCESS((short)0, "success"),
11144
      SE((short)1, "se");
11145
 
11146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11147
 
11148
      static {
11149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11150
          byName.put(field.getFieldName(), field);
11151
        }
11152
      }
11153
 
11154
      /**
11155
       * Find the _Fields constant that matches fieldId, or null if its not found.
11156
       */
11157
      public static _Fields findByThriftId(int fieldId) {
11158
        switch(fieldId) {
11159
          case 0: // SUCCESS
11160
            return SUCCESS;
11161
          case 1: // SE
11162
            return SE;
11163
          default:
11164
            return null;
11165
        }
11166
      }
11167
 
11168
      /**
11169
       * Find the _Fields constant that matches fieldId, throwing an exception
11170
       * if it is not found.
11171
       */
11172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11173
        _Fields fields = findByThriftId(fieldId);
11174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11175
        return fields;
11176
      }
11177
 
11178
      /**
11179
       * Find the _Fields constant that matches name, or null if its not found.
11180
       */
11181
      public static _Fields findByName(String name) {
11182
        return byName.get(name);
11183
      }
11184
 
11185
      private final short _thriftId;
11186
      private final String _fieldName;
11187
 
11188
      _Fields(short thriftId, String fieldName) {
11189
        _thriftId = thriftId;
11190
        _fieldName = fieldName;
11191
      }
11192
 
11193
      public short getThriftFieldId() {
11194
        return _thriftId;
11195
      }
11196
 
11197
      public String getFieldName() {
11198
        return _fieldName;
11199
      }
11200
    }
11201
 
11202
    // isset id assignments
11203
 
11204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11205
    static {
11206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11207
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11208
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11209
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11210
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11211
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11212
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11213
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11214
    }
11215
 
11216
    public getEntityLogisticsEstimation_result() {
11217
    }
11218
 
11219
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11220
      List<ItemText> success,
4934 amit.gupta 11221
      LogisticsServiceException se)
11222
    {
11223
      this();
11224
      this.success = success;
11225
      this.se = se;
11226
    }
11227
 
11228
    /**
11229
     * Performs a deep copy on <i>other</i>.
11230
     */
11231
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11232
      if (other.isSetSuccess()) {
9840 amit.gupta 11233
        List<ItemText> __this__success = new ArrayList<ItemText>();
11234
        for (ItemText other_element : other.success) {
11235
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11236
        }
11237
        this.success = __this__success;
11238
      }
11239
      if (other.isSetSe()) {
11240
        this.se = new LogisticsServiceException(other.se);
11241
      }
11242
    }
11243
 
11244
    public getEntityLogisticsEstimation_result deepCopy() {
11245
      return new getEntityLogisticsEstimation_result(this);
11246
    }
11247
 
11248
    @Override
11249
    public void clear() {
11250
      this.success = null;
11251
      this.se = null;
11252
    }
11253
 
11254
    public int getSuccessSize() {
11255
      return (this.success == null) ? 0 : this.success.size();
11256
    }
11257
 
9840 amit.gupta 11258
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11259
      return (this.success == null) ? null : this.success.iterator();
11260
    }
11261
 
9840 amit.gupta 11262
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11263
      if (this.success == null) {
9840 amit.gupta 11264
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11265
      }
11266
      this.success.add(elem);
11267
    }
11268
 
9840 amit.gupta 11269
    public List<ItemText> getSuccess() {
4934 amit.gupta 11270
      return this.success;
11271
    }
11272
 
9840 amit.gupta 11273
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11274
      this.success = success;
11275
    }
11276
 
11277
    public void unsetSuccess() {
11278
      this.success = null;
11279
    }
11280
 
11281
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11282
    public boolean isSetSuccess() {
11283
      return this.success != null;
11284
    }
11285
 
11286
    public void setSuccessIsSet(boolean value) {
11287
      if (!value) {
11288
        this.success = null;
11289
      }
11290
    }
11291
 
11292
    public LogisticsServiceException getSe() {
11293
      return this.se;
11294
    }
11295
 
11296
    public void setSe(LogisticsServiceException se) {
11297
      this.se = se;
11298
    }
11299
 
11300
    public void unsetSe() {
11301
      this.se = null;
11302
    }
11303
 
11304
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11305
    public boolean isSetSe() {
11306
      return this.se != null;
11307
    }
11308
 
11309
    public void setSeIsSet(boolean value) {
11310
      if (!value) {
11311
        this.se = null;
11312
      }
11313
    }
11314
 
11315
    public void setFieldValue(_Fields field, Object value) {
11316
      switch (field) {
11317
      case SUCCESS:
11318
        if (value == null) {
11319
          unsetSuccess();
11320
        } else {
9840 amit.gupta 11321
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11322
        }
11323
        break;
11324
 
11325
      case SE:
11326
        if (value == null) {
11327
          unsetSe();
11328
        } else {
11329
          setSe((LogisticsServiceException)value);
11330
        }
11331
        break;
11332
 
11333
      }
11334
    }
11335
 
11336
    public Object getFieldValue(_Fields field) {
11337
      switch (field) {
11338
      case SUCCESS:
11339
        return getSuccess();
11340
 
11341
      case SE:
11342
        return getSe();
11343
 
11344
      }
11345
      throw new IllegalStateException();
11346
    }
11347
 
11348
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11349
    public boolean isSet(_Fields field) {
11350
      if (field == null) {
11351
        throw new IllegalArgumentException();
11352
      }
11353
 
11354
      switch (field) {
11355
      case SUCCESS:
11356
        return isSetSuccess();
11357
      case SE:
11358
        return isSetSe();
11359
      }
11360
      throw new IllegalStateException();
11361
    }
11362
 
11363
    @Override
11364
    public boolean equals(Object that) {
11365
      if (that == null)
11366
        return false;
11367
      if (that instanceof getEntityLogisticsEstimation_result)
11368
        return this.equals((getEntityLogisticsEstimation_result)that);
11369
      return false;
11370
    }
11371
 
11372
    public boolean equals(getEntityLogisticsEstimation_result that) {
11373
      if (that == null)
11374
        return false;
11375
 
11376
      boolean this_present_success = true && this.isSetSuccess();
11377
      boolean that_present_success = true && that.isSetSuccess();
11378
      if (this_present_success || that_present_success) {
11379
        if (!(this_present_success && that_present_success))
11380
          return false;
11381
        if (!this.success.equals(that.success))
11382
          return false;
11383
      }
11384
 
11385
      boolean this_present_se = true && this.isSetSe();
11386
      boolean that_present_se = true && that.isSetSe();
11387
      if (this_present_se || that_present_se) {
11388
        if (!(this_present_se && that_present_se))
11389
          return false;
11390
        if (!this.se.equals(that.se))
11391
          return false;
11392
      }
11393
 
11394
      return true;
11395
    }
11396
 
11397
    @Override
11398
    public int hashCode() {
11399
      return 0;
11400
    }
11401
 
11402
    public int compareTo(getEntityLogisticsEstimation_result other) {
11403
      if (!getClass().equals(other.getClass())) {
11404
        return getClass().getName().compareTo(other.getClass().getName());
11405
      }
11406
 
11407
      int lastComparison = 0;
11408
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11409
 
11410
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11411
      if (lastComparison != 0) {
11412
        return lastComparison;
11413
      }
11414
      if (isSetSuccess()) {
11415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11416
        if (lastComparison != 0) {
11417
          return lastComparison;
11418
        }
11419
      }
11420
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11421
      if (lastComparison != 0) {
11422
        return lastComparison;
11423
      }
11424
      if (isSetSe()) {
11425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11426
        if (lastComparison != 0) {
11427
          return lastComparison;
11428
        }
11429
      }
11430
      return 0;
11431
    }
11432
 
11433
    public _Fields fieldForId(int fieldId) {
11434
      return _Fields.findByThriftId(fieldId);
11435
    }
11436
 
11437
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11438
      org.apache.thrift.protocol.TField field;
11439
      iprot.readStructBegin();
11440
      while (true)
11441
      {
11442
        field = iprot.readFieldBegin();
11443
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11444
          break;
11445
        }
11446
        switch (field.id) {
11447
          case 0: // SUCCESS
11448
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11449
              {
7792 anupam.sin 11450
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11451
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11452
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11453
                {
9840 amit.gupta 11454
                  ItemText _elem18; // required
11455
                  _elem18 = new ItemText();
11456
                  _elem18.read(iprot);
7792 anupam.sin 11457
                  this.success.add(_elem18);
4934 amit.gupta 11458
                }
11459
                iprot.readListEnd();
11460
              }
11461
            } else { 
11462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11463
            }
11464
            break;
11465
          case 1: // SE
11466
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11467
              this.se = new LogisticsServiceException();
11468
              this.se.read(iprot);
11469
            } else { 
11470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11471
            }
11472
            break;
11473
          default:
11474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11475
        }
11476
        iprot.readFieldEnd();
11477
      }
11478
      iprot.readStructEnd();
11479
      validate();
11480
    }
11481
 
11482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11483
      oprot.writeStructBegin(STRUCT_DESC);
11484
 
11485
      if (this.isSetSuccess()) {
11486
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11487
        {
9840 amit.gupta 11488
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11489
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11490
          {
9840 amit.gupta 11491
            _iter19.write(oprot);
4934 amit.gupta 11492
          }
11493
          oprot.writeListEnd();
11494
        }
11495
        oprot.writeFieldEnd();
11496
      } else if (this.isSetSe()) {
11497
        oprot.writeFieldBegin(SE_FIELD_DESC);
11498
        this.se.write(oprot);
11499
        oprot.writeFieldEnd();
11500
      }
11501
      oprot.writeFieldStop();
11502
      oprot.writeStructEnd();
11503
    }
11504
 
11505
    @Override
11506
    public String toString() {
11507
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11508
      boolean first = true;
11509
 
11510
      sb.append("success:");
11511
      if (this.success == null) {
11512
        sb.append("null");
11513
      } else {
11514
        sb.append(this.success);
11515
      }
11516
      first = false;
11517
      if (!first) sb.append(", ");
11518
      sb.append("se:");
11519
      if (this.se == null) {
11520
        sb.append("null");
11521
      } else {
11522
        sb.append(this.se);
11523
      }
11524
      first = false;
11525
      sb.append(")");
11526
      return sb.toString();
11527
    }
11528
 
11529
    public void validate() throws org.apache.thrift.TException {
11530
      // check for required fields
11531
    }
11532
 
11533
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11534
      try {
11535
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11536
      } catch (org.apache.thrift.TException te) {
11537
        throw new java.io.IOException(te);
11538
      }
11539
    }
11540
 
11541
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11542
      try {
11543
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11544
      } catch (org.apache.thrift.TException te) {
11545
        throw new java.io.IOException(te);
11546
      }
11547
    }
11548
 
11549
  }
11550
 
5527 anupam.sin 11551
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11552
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11553
 
11554
    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);
11555
 
11556
    private long pickUp; // required
11557
 
11558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11560
      PICK_UP((short)1, "pickUp");
11561
 
11562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11563
 
11564
      static {
11565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11566
          byName.put(field.getFieldName(), field);
11567
        }
11568
      }
11569
 
11570
      /**
11571
       * Find the _Fields constant that matches fieldId, or null if its not found.
11572
       */
11573
      public static _Fields findByThriftId(int fieldId) {
11574
        switch(fieldId) {
11575
          case 1: // PICK_UP
11576
            return PICK_UP;
11577
          default:
11578
            return null;
11579
        }
11580
      }
11581
 
11582
      /**
11583
       * Find the _Fields constant that matches fieldId, throwing an exception
11584
       * if it is not found.
11585
       */
11586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11587
        _Fields fields = findByThriftId(fieldId);
11588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11589
        return fields;
11590
      }
11591
 
11592
      /**
11593
       * Find the _Fields constant that matches name, or null if its not found.
11594
       */
11595
      public static _Fields findByName(String name) {
11596
        return byName.get(name);
11597
      }
11598
 
11599
      private final short _thriftId;
11600
      private final String _fieldName;
11601
 
11602
      _Fields(short thriftId, String fieldName) {
11603
        _thriftId = thriftId;
11604
        _fieldName = fieldName;
11605
      }
11606
 
11607
      public short getThriftFieldId() {
11608
        return _thriftId;
11609
      }
11610
 
11611
      public String getFieldName() {
11612
        return _fieldName;
11613
      }
11614
    }
11615
 
11616
    // isset id assignments
11617
    private static final int __PICKUP_ISSET_ID = 0;
11618
    private BitSet __isset_bit_vector = new BitSet(1);
11619
 
11620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11621
    static {
11622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11623
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11625
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11626
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11627
    }
11628
 
11629
    public getProviderForPickupType_args() {
11630
    }
11631
 
11632
    public getProviderForPickupType_args(
11633
      long pickUp)
11634
    {
11635
      this();
11636
      this.pickUp = pickUp;
11637
      setPickUpIsSet(true);
11638
    }
11639
 
11640
    /**
11641
     * Performs a deep copy on <i>other</i>.
11642
     */
11643
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11644
      __isset_bit_vector.clear();
11645
      __isset_bit_vector.or(other.__isset_bit_vector);
11646
      this.pickUp = other.pickUp;
11647
    }
11648
 
11649
    public getProviderForPickupType_args deepCopy() {
11650
      return new getProviderForPickupType_args(this);
11651
    }
11652
 
11653
    @Override
11654
    public void clear() {
11655
      setPickUpIsSet(false);
11656
      this.pickUp = 0;
11657
    }
11658
 
11659
    public long getPickUp() {
11660
      return this.pickUp;
11661
    }
11662
 
11663
    public void setPickUp(long pickUp) {
11664
      this.pickUp = pickUp;
11665
      setPickUpIsSet(true);
11666
    }
11667
 
11668
    public void unsetPickUp() {
11669
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11670
    }
11671
 
11672
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11673
    public boolean isSetPickUp() {
11674
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11675
    }
11676
 
11677
    public void setPickUpIsSet(boolean value) {
11678
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11679
    }
11680
 
11681
    public void setFieldValue(_Fields field, Object value) {
11682
      switch (field) {
11683
      case PICK_UP:
11684
        if (value == null) {
11685
          unsetPickUp();
11686
        } else {
11687
          setPickUp((Long)value);
11688
        }
11689
        break;
11690
 
11691
      }
11692
    }
11693
 
11694
    public Object getFieldValue(_Fields field) {
11695
      switch (field) {
11696
      case PICK_UP:
11697
        return Long.valueOf(getPickUp());
11698
 
11699
      }
11700
      throw new IllegalStateException();
11701
    }
11702
 
11703
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11704
    public boolean isSet(_Fields field) {
11705
      if (field == null) {
11706
        throw new IllegalArgumentException();
11707
      }
11708
 
11709
      switch (field) {
11710
      case PICK_UP:
11711
        return isSetPickUp();
11712
      }
11713
      throw new IllegalStateException();
11714
    }
11715
 
11716
    @Override
11717
    public boolean equals(Object that) {
11718
      if (that == null)
11719
        return false;
11720
      if (that instanceof getProviderForPickupType_args)
11721
        return this.equals((getProviderForPickupType_args)that);
11722
      return false;
11723
    }
11724
 
11725
    public boolean equals(getProviderForPickupType_args that) {
11726
      if (that == null)
11727
        return false;
11728
 
11729
      boolean this_present_pickUp = true;
11730
      boolean that_present_pickUp = true;
11731
      if (this_present_pickUp || that_present_pickUp) {
11732
        if (!(this_present_pickUp && that_present_pickUp))
11733
          return false;
11734
        if (this.pickUp != that.pickUp)
11735
          return false;
11736
      }
11737
 
11738
      return true;
11739
    }
11740
 
11741
    @Override
11742
    public int hashCode() {
11743
      return 0;
11744
    }
11745
 
11746
    public int compareTo(getProviderForPickupType_args other) {
11747
      if (!getClass().equals(other.getClass())) {
11748
        return getClass().getName().compareTo(other.getClass().getName());
11749
      }
11750
 
11751
      int lastComparison = 0;
11752
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11753
 
11754
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11755
      if (lastComparison != 0) {
11756
        return lastComparison;
11757
      }
11758
      if (isSetPickUp()) {
11759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11760
        if (lastComparison != 0) {
11761
          return lastComparison;
11762
        }
11763
      }
11764
      return 0;
11765
    }
11766
 
11767
    public _Fields fieldForId(int fieldId) {
11768
      return _Fields.findByThriftId(fieldId);
11769
    }
11770
 
11771
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11772
      org.apache.thrift.protocol.TField field;
11773
      iprot.readStructBegin();
11774
      while (true)
11775
      {
11776
        field = iprot.readFieldBegin();
11777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11778
          break;
11779
        }
11780
        switch (field.id) {
11781
          case 1: // PICK_UP
11782
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11783
              this.pickUp = iprot.readI64();
11784
              setPickUpIsSet(true);
11785
            } else { 
11786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11787
            }
11788
            break;
11789
          default:
11790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11791
        }
11792
        iprot.readFieldEnd();
11793
      }
11794
      iprot.readStructEnd();
11795
      validate();
11796
    }
11797
 
11798
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11799
      validate();
11800
 
11801
      oprot.writeStructBegin(STRUCT_DESC);
11802
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11803
      oprot.writeI64(this.pickUp);
11804
      oprot.writeFieldEnd();
11805
      oprot.writeFieldStop();
11806
      oprot.writeStructEnd();
11807
    }
11808
 
11809
    @Override
11810
    public String toString() {
11811
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11812
      boolean first = true;
11813
 
11814
      sb.append("pickUp:");
11815
      sb.append(this.pickUp);
11816
      first = false;
11817
      sb.append(")");
11818
      return sb.toString();
11819
    }
11820
 
11821
    public void validate() throws org.apache.thrift.TException {
11822
      // check for required fields
11823
    }
11824
 
11825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11826
      try {
11827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11828
      } catch (org.apache.thrift.TException te) {
11829
        throw new java.io.IOException(te);
11830
      }
11831
    }
11832
 
11833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11834
      try {
11835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11836
        __isset_bit_vector = new BitSet(1);
11837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11838
      } catch (org.apache.thrift.TException te) {
11839
        throw new java.io.IOException(te);
11840
      }
11841
    }
11842
 
11843
  }
11844
 
11845
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11847
 
11848
    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);
11849
 
11850
    private long success; // required
11851
 
11852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11854
      SUCCESS((short)0, "success");
11855
 
11856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11857
 
11858
      static {
11859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11860
          byName.put(field.getFieldName(), field);
11861
        }
11862
      }
11863
 
11864
      /**
11865
       * Find the _Fields constant that matches fieldId, or null if its not found.
11866
       */
11867
      public static _Fields findByThriftId(int fieldId) {
11868
        switch(fieldId) {
11869
          case 0: // SUCCESS
11870
            return SUCCESS;
11871
          default:
11872
            return null;
11873
        }
11874
      }
11875
 
11876
      /**
11877
       * Find the _Fields constant that matches fieldId, throwing an exception
11878
       * if it is not found.
11879
       */
11880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11881
        _Fields fields = findByThriftId(fieldId);
11882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11883
        return fields;
11884
      }
11885
 
11886
      /**
11887
       * Find the _Fields constant that matches name, or null if its not found.
11888
       */
11889
      public static _Fields findByName(String name) {
11890
        return byName.get(name);
11891
      }
11892
 
11893
      private final short _thriftId;
11894
      private final String _fieldName;
11895
 
11896
      _Fields(short thriftId, String fieldName) {
11897
        _thriftId = thriftId;
11898
        _fieldName = fieldName;
11899
      }
11900
 
11901
      public short getThriftFieldId() {
11902
        return _thriftId;
11903
      }
11904
 
11905
      public String getFieldName() {
11906
        return _fieldName;
11907
      }
11908
    }
11909
 
11910
    // isset id assignments
11911
    private static final int __SUCCESS_ISSET_ID = 0;
11912
    private BitSet __isset_bit_vector = new BitSet(1);
11913
 
11914
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11915
    static {
11916
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11917
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11919
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11920
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11921
    }
11922
 
11923
    public getProviderForPickupType_result() {
11924
    }
11925
 
11926
    public getProviderForPickupType_result(
11927
      long success)
11928
    {
11929
      this();
11930
      this.success = success;
11931
      setSuccessIsSet(true);
11932
    }
11933
 
11934
    /**
11935
     * Performs a deep copy on <i>other</i>.
11936
     */
11937
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11938
      __isset_bit_vector.clear();
11939
      __isset_bit_vector.or(other.__isset_bit_vector);
11940
      this.success = other.success;
11941
    }
11942
 
11943
    public getProviderForPickupType_result deepCopy() {
11944
      return new getProviderForPickupType_result(this);
11945
    }
11946
 
11947
    @Override
11948
    public void clear() {
11949
      setSuccessIsSet(false);
11950
      this.success = 0;
11951
    }
11952
 
11953
    public long getSuccess() {
11954
      return this.success;
11955
    }
11956
 
11957
    public void setSuccess(long success) {
11958
      this.success = success;
11959
      setSuccessIsSet(true);
11960
    }
11961
 
11962
    public void unsetSuccess() {
11963
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11964
    }
11965
 
11966
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11967
    public boolean isSetSuccess() {
11968
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11969
    }
11970
 
11971
    public void setSuccessIsSet(boolean value) {
11972
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11973
    }
11974
 
11975
    public void setFieldValue(_Fields field, Object value) {
11976
      switch (field) {
11977
      case SUCCESS:
11978
        if (value == null) {
11979
          unsetSuccess();
11980
        } else {
11981
          setSuccess((Long)value);
11982
        }
11983
        break;
11984
 
11985
      }
11986
    }
11987
 
11988
    public Object getFieldValue(_Fields field) {
11989
      switch (field) {
11990
      case SUCCESS:
11991
        return Long.valueOf(getSuccess());
11992
 
11993
      }
11994
      throw new IllegalStateException();
11995
    }
11996
 
11997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11998
    public boolean isSet(_Fields field) {
11999
      if (field == null) {
12000
        throw new IllegalArgumentException();
12001
      }
12002
 
12003
      switch (field) {
12004
      case SUCCESS:
12005
        return isSetSuccess();
12006
      }
12007
      throw new IllegalStateException();
12008
    }
12009
 
12010
    @Override
12011
    public boolean equals(Object that) {
12012
      if (that == null)
12013
        return false;
12014
      if (that instanceof getProviderForPickupType_result)
12015
        return this.equals((getProviderForPickupType_result)that);
12016
      return false;
12017
    }
12018
 
12019
    public boolean equals(getProviderForPickupType_result that) {
12020
      if (that == null)
12021
        return false;
12022
 
12023
      boolean this_present_success = true;
12024
      boolean that_present_success = true;
12025
      if (this_present_success || that_present_success) {
12026
        if (!(this_present_success && that_present_success))
12027
          return false;
12028
        if (this.success != that.success)
12029
          return false;
12030
      }
12031
 
12032
      return true;
12033
    }
12034
 
12035
    @Override
12036
    public int hashCode() {
12037
      return 0;
12038
    }
12039
 
12040
    public int compareTo(getProviderForPickupType_result other) {
12041
      if (!getClass().equals(other.getClass())) {
12042
        return getClass().getName().compareTo(other.getClass().getName());
12043
      }
12044
 
12045
      int lastComparison = 0;
12046
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12047
 
12048
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12049
      if (lastComparison != 0) {
12050
        return lastComparison;
12051
      }
12052
      if (isSetSuccess()) {
12053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12054
        if (lastComparison != 0) {
12055
          return lastComparison;
12056
        }
12057
      }
12058
      return 0;
12059
    }
12060
 
12061
    public _Fields fieldForId(int fieldId) {
12062
      return _Fields.findByThriftId(fieldId);
12063
    }
12064
 
12065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12066
      org.apache.thrift.protocol.TField field;
12067
      iprot.readStructBegin();
12068
      while (true)
12069
      {
12070
        field = iprot.readFieldBegin();
12071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12072
          break;
12073
        }
12074
        switch (field.id) {
12075
          case 0: // SUCCESS
12076
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12077
              this.success = iprot.readI64();
12078
              setSuccessIsSet(true);
12079
            } else { 
12080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12081
            }
12082
            break;
12083
          default:
12084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12085
        }
12086
        iprot.readFieldEnd();
12087
      }
12088
      iprot.readStructEnd();
12089
      validate();
12090
    }
12091
 
12092
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12093
      oprot.writeStructBegin(STRUCT_DESC);
12094
 
12095
      if (this.isSetSuccess()) {
12096
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12097
        oprot.writeI64(this.success);
12098
        oprot.writeFieldEnd();
12099
      }
12100
      oprot.writeFieldStop();
12101
      oprot.writeStructEnd();
12102
    }
12103
 
12104
    @Override
12105
    public String toString() {
12106
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12107
      boolean first = true;
12108
 
12109
      sb.append("success:");
12110
      sb.append(this.success);
12111
      first = false;
12112
      sb.append(")");
12113
      return sb.toString();
12114
    }
12115
 
12116
    public void validate() throws org.apache.thrift.TException {
12117
      // check for required fields
12118
    }
12119
 
12120
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12121
      try {
12122
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12123
      } catch (org.apache.thrift.TException te) {
12124
        throw new java.io.IOException(te);
12125
      }
12126
    }
12127
 
12128
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12129
      try {
12130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12131
      } catch (org.apache.thrift.TException te) {
12132
        throw new java.io.IOException(te);
12133
      }
12134
    }
12135
 
12136
  }
12137
 
5553 rajveer 12138
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12140
 
12141
 
12142
 
12143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12145
;
12146
 
12147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12148
 
12149
      static {
12150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12151
          byName.put(field.getFieldName(), field);
12152
        }
12153
      }
12154
 
12155
      /**
12156
       * Find the _Fields constant that matches fieldId, or null if its not found.
12157
       */
12158
      public static _Fields findByThriftId(int fieldId) {
12159
        switch(fieldId) {
12160
          default:
12161
            return null;
12162
        }
12163
      }
12164
 
12165
      /**
12166
       * Find the _Fields constant that matches fieldId, throwing an exception
12167
       * if it is not found.
12168
       */
12169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12170
        _Fields fields = findByThriftId(fieldId);
12171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12172
        return fields;
12173
      }
12174
 
12175
      /**
12176
       * Find the _Fields constant that matches name, or null if its not found.
12177
       */
12178
      public static _Fields findByName(String name) {
12179
        return byName.get(name);
12180
      }
12181
 
12182
      private final short _thriftId;
12183
      private final String _fieldName;
12184
 
12185
      _Fields(short thriftId, String fieldName) {
12186
        _thriftId = thriftId;
12187
        _fieldName = fieldName;
12188
      }
12189
 
12190
      public short getThriftFieldId() {
12191
        return _thriftId;
12192
      }
12193
 
12194
      public String getFieldName() {
12195
        return _fieldName;
12196
      }
12197
    }
12198
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12199
    static {
12200
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12203
    }
12204
 
12205
    public getAllPickupStores_args() {
12206
    }
12207
 
12208
    /**
12209
     * Performs a deep copy on <i>other</i>.
12210
     */
12211
    public getAllPickupStores_args(getAllPickupStores_args other) {
12212
    }
12213
 
12214
    public getAllPickupStores_args deepCopy() {
12215
      return new getAllPickupStores_args(this);
12216
    }
12217
 
12218
    @Override
12219
    public void clear() {
12220
    }
12221
 
12222
    public void setFieldValue(_Fields field, Object value) {
12223
      switch (field) {
12224
      }
12225
    }
12226
 
12227
    public Object getFieldValue(_Fields field) {
12228
      switch (field) {
12229
      }
12230
      throw new IllegalStateException();
12231
    }
12232
 
12233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12234
    public boolean isSet(_Fields field) {
12235
      if (field == null) {
12236
        throw new IllegalArgumentException();
12237
      }
12238
 
12239
      switch (field) {
12240
      }
12241
      throw new IllegalStateException();
12242
    }
12243
 
12244
    @Override
12245
    public boolean equals(Object that) {
12246
      if (that == null)
12247
        return false;
12248
      if (that instanceof getAllPickupStores_args)
12249
        return this.equals((getAllPickupStores_args)that);
12250
      return false;
12251
    }
12252
 
12253
    public boolean equals(getAllPickupStores_args that) {
12254
      if (that == null)
12255
        return false;
12256
 
12257
      return true;
12258
    }
12259
 
12260
    @Override
12261
    public int hashCode() {
12262
      return 0;
12263
    }
12264
 
12265
    public int compareTo(getAllPickupStores_args other) {
12266
      if (!getClass().equals(other.getClass())) {
12267
        return getClass().getName().compareTo(other.getClass().getName());
12268
      }
12269
 
12270
      int lastComparison = 0;
12271
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12272
 
12273
      return 0;
12274
    }
12275
 
12276
    public _Fields fieldForId(int fieldId) {
12277
      return _Fields.findByThriftId(fieldId);
12278
    }
12279
 
12280
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12281
      org.apache.thrift.protocol.TField field;
12282
      iprot.readStructBegin();
12283
      while (true)
12284
      {
12285
        field = iprot.readFieldBegin();
12286
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12287
          break;
12288
        }
12289
        switch (field.id) {
12290
          default:
12291
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12292
        }
12293
        iprot.readFieldEnd();
12294
      }
12295
      iprot.readStructEnd();
12296
      validate();
12297
    }
12298
 
12299
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12300
      validate();
12301
 
12302
      oprot.writeStructBegin(STRUCT_DESC);
12303
      oprot.writeFieldStop();
12304
      oprot.writeStructEnd();
12305
    }
12306
 
12307
    @Override
12308
    public String toString() {
12309
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12310
      boolean first = true;
12311
 
12312
      sb.append(")");
12313
      return sb.toString();
12314
    }
12315
 
12316
    public void validate() throws org.apache.thrift.TException {
12317
      // check for required fields
12318
    }
12319
 
12320
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12321
      try {
12322
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12323
      } catch (org.apache.thrift.TException te) {
12324
        throw new java.io.IOException(te);
12325
      }
12326
    }
12327
 
12328
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12329
      try {
12330
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12331
      } catch (org.apache.thrift.TException te) {
12332
        throw new java.io.IOException(te);
12333
      }
12334
    }
12335
 
12336
  }
12337
 
12338
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12340
 
12341
    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);
12342
 
12343
    private List<PickupStore> success; // required
12344
 
12345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12347
      SUCCESS((short)0, "success");
12348
 
12349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12350
 
12351
      static {
12352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12353
          byName.put(field.getFieldName(), field);
12354
        }
12355
      }
12356
 
12357
      /**
12358
       * Find the _Fields constant that matches fieldId, or null if its not found.
12359
       */
12360
      public static _Fields findByThriftId(int fieldId) {
12361
        switch(fieldId) {
12362
          case 0: // SUCCESS
12363
            return SUCCESS;
12364
          default:
12365
            return null;
12366
        }
12367
      }
12368
 
12369
      /**
12370
       * Find the _Fields constant that matches fieldId, throwing an exception
12371
       * if it is not found.
12372
       */
12373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12374
        _Fields fields = findByThriftId(fieldId);
12375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12376
        return fields;
12377
      }
12378
 
12379
      /**
12380
       * Find the _Fields constant that matches name, or null if its not found.
12381
       */
12382
      public static _Fields findByName(String name) {
12383
        return byName.get(name);
12384
      }
12385
 
12386
      private final short _thriftId;
12387
      private final String _fieldName;
12388
 
12389
      _Fields(short thriftId, String fieldName) {
12390
        _thriftId = thriftId;
12391
        _fieldName = fieldName;
12392
      }
12393
 
12394
      public short getThriftFieldId() {
12395
        return _thriftId;
12396
      }
12397
 
12398
      public String getFieldName() {
12399
        return _fieldName;
12400
      }
12401
    }
12402
 
12403
    // isset id assignments
12404
 
12405
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12406
    static {
12407
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12408
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12409
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12410
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12413
    }
12414
 
12415
    public getAllPickupStores_result() {
12416
    }
12417
 
12418
    public getAllPickupStores_result(
12419
      List<PickupStore> success)
12420
    {
12421
      this();
12422
      this.success = success;
12423
    }
12424
 
12425
    /**
12426
     * Performs a deep copy on <i>other</i>.
12427
     */
12428
    public getAllPickupStores_result(getAllPickupStores_result other) {
12429
      if (other.isSetSuccess()) {
12430
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12431
        for (PickupStore other_element : other.success) {
12432
          __this__success.add(new PickupStore(other_element));
12433
        }
12434
        this.success = __this__success;
12435
      }
12436
    }
12437
 
12438
    public getAllPickupStores_result deepCopy() {
12439
      return new getAllPickupStores_result(this);
12440
    }
12441
 
12442
    @Override
12443
    public void clear() {
12444
      this.success = null;
12445
    }
12446
 
12447
    public int getSuccessSize() {
12448
      return (this.success == null) ? 0 : this.success.size();
12449
    }
12450
 
12451
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12452
      return (this.success == null) ? null : this.success.iterator();
12453
    }
12454
 
12455
    public void addToSuccess(PickupStore elem) {
12456
      if (this.success == null) {
12457
        this.success = new ArrayList<PickupStore>();
12458
      }
12459
      this.success.add(elem);
12460
    }
12461
 
12462
    public List<PickupStore> getSuccess() {
12463
      return this.success;
12464
    }
12465
 
12466
    public void setSuccess(List<PickupStore> success) {
12467
      this.success = success;
12468
    }
12469
 
12470
    public void unsetSuccess() {
12471
      this.success = null;
12472
    }
12473
 
12474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12475
    public boolean isSetSuccess() {
12476
      return this.success != null;
12477
    }
12478
 
12479
    public void setSuccessIsSet(boolean value) {
12480
      if (!value) {
12481
        this.success = null;
12482
      }
12483
    }
12484
 
12485
    public void setFieldValue(_Fields field, Object value) {
12486
      switch (field) {
12487
      case SUCCESS:
12488
        if (value == null) {
12489
          unsetSuccess();
12490
        } else {
12491
          setSuccess((List<PickupStore>)value);
12492
        }
12493
        break;
12494
 
12495
      }
12496
    }
12497
 
12498
    public Object getFieldValue(_Fields field) {
12499
      switch (field) {
12500
      case SUCCESS:
12501
        return getSuccess();
12502
 
12503
      }
12504
      throw new IllegalStateException();
12505
    }
12506
 
12507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12508
    public boolean isSet(_Fields field) {
12509
      if (field == null) {
12510
        throw new IllegalArgumentException();
12511
      }
12512
 
12513
      switch (field) {
12514
      case SUCCESS:
12515
        return isSetSuccess();
12516
      }
12517
      throw new IllegalStateException();
12518
    }
12519
 
12520
    @Override
12521
    public boolean equals(Object that) {
12522
      if (that == null)
12523
        return false;
12524
      if (that instanceof getAllPickupStores_result)
12525
        return this.equals((getAllPickupStores_result)that);
12526
      return false;
12527
    }
12528
 
12529
    public boolean equals(getAllPickupStores_result that) {
12530
      if (that == null)
12531
        return false;
12532
 
12533
      boolean this_present_success = true && this.isSetSuccess();
12534
      boolean that_present_success = true && that.isSetSuccess();
12535
      if (this_present_success || that_present_success) {
12536
        if (!(this_present_success && that_present_success))
12537
          return false;
12538
        if (!this.success.equals(that.success))
12539
          return false;
12540
      }
12541
 
12542
      return true;
12543
    }
12544
 
12545
    @Override
12546
    public int hashCode() {
12547
      return 0;
12548
    }
12549
 
12550
    public int compareTo(getAllPickupStores_result other) {
12551
      if (!getClass().equals(other.getClass())) {
12552
        return getClass().getName().compareTo(other.getClass().getName());
12553
      }
12554
 
12555
      int lastComparison = 0;
12556
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12557
 
12558
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12559
      if (lastComparison != 0) {
12560
        return lastComparison;
12561
      }
12562
      if (isSetSuccess()) {
12563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12564
        if (lastComparison != 0) {
12565
          return lastComparison;
12566
        }
12567
      }
12568
      return 0;
12569
    }
12570
 
12571
    public _Fields fieldForId(int fieldId) {
12572
      return _Fields.findByThriftId(fieldId);
12573
    }
12574
 
12575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12576
      org.apache.thrift.protocol.TField field;
12577
      iprot.readStructBegin();
12578
      while (true)
12579
      {
12580
        field = iprot.readFieldBegin();
12581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12582
          break;
12583
        }
12584
        switch (field.id) {
12585
          case 0: // SUCCESS
12586
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12587
              {
7792 anupam.sin 12588
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12589
                this.success = new ArrayList<PickupStore>(_list20.size);
12590
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12591
                {
7792 anupam.sin 12592
                  PickupStore _elem22; // required
12593
                  _elem22 = new PickupStore();
12594
                  _elem22.read(iprot);
12595
                  this.success.add(_elem22);
5553 rajveer 12596
                }
12597
                iprot.readListEnd();
12598
              }
12599
            } else { 
12600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12601
            }
12602
            break;
12603
          default:
12604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12605
        }
12606
        iprot.readFieldEnd();
12607
      }
12608
      iprot.readStructEnd();
12609
      validate();
12610
    }
12611
 
12612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12613
      oprot.writeStructBegin(STRUCT_DESC);
12614
 
12615
      if (this.isSetSuccess()) {
12616
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12617
        {
12618
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12619
          for (PickupStore _iter23 : this.success)
5553 rajveer 12620
          {
7792 anupam.sin 12621
            _iter23.write(oprot);
5553 rajveer 12622
          }
12623
          oprot.writeListEnd();
12624
        }
12625
        oprot.writeFieldEnd();
12626
      }
12627
      oprot.writeFieldStop();
12628
      oprot.writeStructEnd();
12629
    }
12630
 
12631
    @Override
12632
    public String toString() {
12633
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12634
      boolean first = true;
12635
 
12636
      sb.append("success:");
12637
      if (this.success == null) {
12638
        sb.append("null");
12639
      } else {
12640
        sb.append(this.success);
12641
      }
12642
      first = false;
12643
      sb.append(")");
12644
      return sb.toString();
12645
    }
12646
 
12647
    public void validate() throws org.apache.thrift.TException {
12648
      // check for required fields
12649
    }
12650
 
12651
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12652
      try {
12653
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12654
      } catch (org.apache.thrift.TException te) {
12655
        throw new java.io.IOException(te);
12656
      }
12657
    }
12658
 
12659
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12660
      try {
12661
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12662
      } catch (org.apache.thrift.TException te) {
12663
        throw new java.io.IOException(te);
12664
      }
12665
    }
12666
 
12667
  }
12668
 
12669
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12670
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12671
 
12672
    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);
12673
 
12674
    private long storeId; // required
12675
 
12676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12677
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12678
      STORE_ID((short)1, "storeId");
12679
 
12680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12681
 
12682
      static {
12683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12684
          byName.put(field.getFieldName(), field);
12685
        }
12686
      }
12687
 
12688
      /**
12689
       * Find the _Fields constant that matches fieldId, or null if its not found.
12690
       */
12691
      public static _Fields findByThriftId(int fieldId) {
12692
        switch(fieldId) {
12693
          case 1: // STORE_ID
12694
            return STORE_ID;
12695
          default:
12696
            return null;
12697
        }
12698
      }
12699
 
12700
      /**
12701
       * Find the _Fields constant that matches fieldId, throwing an exception
12702
       * if it is not found.
12703
       */
12704
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12705
        _Fields fields = findByThriftId(fieldId);
12706
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12707
        return fields;
12708
      }
12709
 
12710
      /**
12711
       * Find the _Fields constant that matches name, or null if its not found.
12712
       */
12713
      public static _Fields findByName(String name) {
12714
        return byName.get(name);
12715
      }
12716
 
12717
      private final short _thriftId;
12718
      private final String _fieldName;
12719
 
12720
      _Fields(short thriftId, String fieldName) {
12721
        _thriftId = thriftId;
12722
        _fieldName = fieldName;
12723
      }
12724
 
12725
      public short getThriftFieldId() {
12726
        return _thriftId;
12727
      }
12728
 
12729
      public String getFieldName() {
12730
        return _fieldName;
12731
      }
12732
    }
12733
 
12734
    // isset id assignments
12735
    private static final int __STOREID_ISSET_ID = 0;
12736
    private BitSet __isset_bit_vector = new BitSet(1);
12737
 
12738
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12739
    static {
12740
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12741
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12742
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12743
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12744
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12745
    }
12746
 
12747
    public getPickupStore_args() {
12748
    }
12749
 
12750
    public getPickupStore_args(
12751
      long storeId)
12752
    {
12753
      this();
12754
      this.storeId = storeId;
12755
      setStoreIdIsSet(true);
12756
    }
12757
 
12758
    /**
12759
     * Performs a deep copy on <i>other</i>.
12760
     */
12761
    public getPickupStore_args(getPickupStore_args other) {
12762
      __isset_bit_vector.clear();
12763
      __isset_bit_vector.or(other.__isset_bit_vector);
12764
      this.storeId = other.storeId;
12765
    }
12766
 
12767
    public getPickupStore_args deepCopy() {
12768
      return new getPickupStore_args(this);
12769
    }
12770
 
12771
    @Override
12772
    public void clear() {
12773
      setStoreIdIsSet(false);
12774
      this.storeId = 0;
12775
    }
12776
 
12777
    public long getStoreId() {
12778
      return this.storeId;
12779
    }
12780
 
12781
    public void setStoreId(long storeId) {
12782
      this.storeId = storeId;
12783
      setStoreIdIsSet(true);
12784
    }
12785
 
12786
    public void unsetStoreId() {
12787
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12788
    }
12789
 
12790
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12791
    public boolean isSetStoreId() {
12792
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12793
    }
12794
 
12795
    public void setStoreIdIsSet(boolean value) {
12796
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12797
    }
12798
 
12799
    public void setFieldValue(_Fields field, Object value) {
12800
      switch (field) {
12801
      case STORE_ID:
12802
        if (value == null) {
12803
          unsetStoreId();
12804
        } else {
12805
          setStoreId((Long)value);
12806
        }
12807
        break;
12808
 
12809
      }
12810
    }
12811
 
12812
    public Object getFieldValue(_Fields field) {
12813
      switch (field) {
12814
      case STORE_ID:
12815
        return Long.valueOf(getStoreId());
12816
 
12817
      }
12818
      throw new IllegalStateException();
12819
    }
12820
 
12821
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12822
    public boolean isSet(_Fields field) {
12823
      if (field == null) {
12824
        throw new IllegalArgumentException();
12825
      }
12826
 
12827
      switch (field) {
12828
      case STORE_ID:
12829
        return isSetStoreId();
12830
      }
12831
      throw new IllegalStateException();
12832
    }
12833
 
12834
    @Override
12835
    public boolean equals(Object that) {
12836
      if (that == null)
12837
        return false;
12838
      if (that instanceof getPickupStore_args)
12839
        return this.equals((getPickupStore_args)that);
12840
      return false;
12841
    }
12842
 
12843
    public boolean equals(getPickupStore_args that) {
12844
      if (that == null)
12845
        return false;
12846
 
12847
      boolean this_present_storeId = true;
12848
      boolean that_present_storeId = true;
12849
      if (this_present_storeId || that_present_storeId) {
12850
        if (!(this_present_storeId && that_present_storeId))
12851
          return false;
12852
        if (this.storeId != that.storeId)
12853
          return false;
12854
      }
12855
 
12856
      return true;
12857
    }
12858
 
12859
    @Override
12860
    public int hashCode() {
12861
      return 0;
12862
    }
12863
 
12864
    public int compareTo(getPickupStore_args other) {
12865
      if (!getClass().equals(other.getClass())) {
12866
        return getClass().getName().compareTo(other.getClass().getName());
12867
      }
12868
 
12869
      int lastComparison = 0;
12870
      getPickupStore_args typedOther = (getPickupStore_args)other;
12871
 
12872
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12873
      if (lastComparison != 0) {
12874
        return lastComparison;
12875
      }
12876
      if (isSetStoreId()) {
12877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12878
        if (lastComparison != 0) {
12879
          return lastComparison;
12880
        }
12881
      }
12882
      return 0;
12883
    }
12884
 
12885
    public _Fields fieldForId(int fieldId) {
12886
      return _Fields.findByThriftId(fieldId);
12887
    }
12888
 
12889
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12890
      org.apache.thrift.protocol.TField field;
12891
      iprot.readStructBegin();
12892
      while (true)
12893
      {
12894
        field = iprot.readFieldBegin();
12895
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12896
          break;
12897
        }
12898
        switch (field.id) {
12899
          case 1: // STORE_ID
12900
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12901
              this.storeId = iprot.readI64();
12902
              setStoreIdIsSet(true);
12903
            } else { 
12904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12905
            }
12906
            break;
12907
          default:
12908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12909
        }
12910
        iprot.readFieldEnd();
12911
      }
12912
      iprot.readStructEnd();
12913
      validate();
12914
    }
12915
 
12916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12917
      validate();
12918
 
12919
      oprot.writeStructBegin(STRUCT_DESC);
12920
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12921
      oprot.writeI64(this.storeId);
12922
      oprot.writeFieldEnd();
12923
      oprot.writeFieldStop();
12924
      oprot.writeStructEnd();
12925
    }
12926
 
12927
    @Override
12928
    public String toString() {
12929
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12930
      boolean first = true;
12931
 
12932
      sb.append("storeId:");
12933
      sb.append(this.storeId);
12934
      first = false;
12935
      sb.append(")");
12936
      return sb.toString();
12937
    }
12938
 
12939
    public void validate() throws org.apache.thrift.TException {
12940
      // check for required fields
12941
    }
12942
 
12943
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12944
      try {
12945
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12946
      } catch (org.apache.thrift.TException te) {
12947
        throw new java.io.IOException(te);
12948
      }
12949
    }
12950
 
12951
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12952
      try {
12953
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12954
        __isset_bit_vector = new BitSet(1);
12955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12956
      } catch (org.apache.thrift.TException te) {
12957
        throw new java.io.IOException(te);
12958
      }
12959
    }
12960
 
12961
  }
12962
 
12963
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12965
 
12966
    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);
12967
 
12968
    private PickupStore success; // required
12969
 
12970
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12971
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12972
      SUCCESS((short)0, "success");
12973
 
12974
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12975
 
12976
      static {
12977
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12978
          byName.put(field.getFieldName(), field);
12979
        }
12980
      }
12981
 
12982
      /**
12983
       * Find the _Fields constant that matches fieldId, or null if its not found.
12984
       */
12985
      public static _Fields findByThriftId(int fieldId) {
12986
        switch(fieldId) {
12987
          case 0: // SUCCESS
12988
            return SUCCESS;
12989
          default:
12990
            return null;
12991
        }
12992
      }
12993
 
12994
      /**
12995
       * Find the _Fields constant that matches fieldId, throwing an exception
12996
       * if it is not found.
12997
       */
12998
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12999
        _Fields fields = findByThriftId(fieldId);
13000
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13001
        return fields;
13002
      }
13003
 
13004
      /**
13005
       * Find the _Fields constant that matches name, or null if its not found.
13006
       */
13007
      public static _Fields findByName(String name) {
13008
        return byName.get(name);
13009
      }
13010
 
13011
      private final short _thriftId;
13012
      private final String _fieldName;
13013
 
13014
      _Fields(short thriftId, String fieldName) {
13015
        _thriftId = thriftId;
13016
        _fieldName = fieldName;
13017
      }
13018
 
13019
      public short getThriftFieldId() {
13020
        return _thriftId;
13021
      }
13022
 
13023
      public String getFieldName() {
13024
        return _fieldName;
13025
      }
13026
    }
13027
 
13028
    // isset id assignments
13029
 
13030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13031
    static {
13032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13033
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13034
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13037
    }
13038
 
13039
    public getPickupStore_result() {
13040
    }
13041
 
13042
    public getPickupStore_result(
13043
      PickupStore success)
13044
    {
13045
      this();
13046
      this.success = success;
13047
    }
13048
 
13049
    /**
13050
     * Performs a deep copy on <i>other</i>.
13051
     */
13052
    public getPickupStore_result(getPickupStore_result other) {
13053
      if (other.isSetSuccess()) {
13054
        this.success = new PickupStore(other.success);
13055
      }
13056
    }
13057
 
13058
    public getPickupStore_result deepCopy() {
13059
      return new getPickupStore_result(this);
13060
    }
13061
 
13062
    @Override
13063
    public void clear() {
13064
      this.success = null;
13065
    }
13066
 
13067
    public PickupStore getSuccess() {
13068
      return this.success;
13069
    }
13070
 
13071
    public void setSuccess(PickupStore success) {
13072
      this.success = success;
13073
    }
13074
 
13075
    public void unsetSuccess() {
13076
      this.success = null;
13077
    }
13078
 
13079
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13080
    public boolean isSetSuccess() {
13081
      return this.success != null;
13082
    }
13083
 
13084
    public void setSuccessIsSet(boolean value) {
13085
      if (!value) {
13086
        this.success = null;
13087
      }
13088
    }
13089
 
13090
    public void setFieldValue(_Fields field, Object value) {
13091
      switch (field) {
13092
      case SUCCESS:
13093
        if (value == null) {
13094
          unsetSuccess();
13095
        } else {
13096
          setSuccess((PickupStore)value);
13097
        }
13098
        break;
13099
 
13100
      }
13101
    }
13102
 
13103
    public Object getFieldValue(_Fields field) {
13104
      switch (field) {
13105
      case SUCCESS:
13106
        return getSuccess();
13107
 
13108
      }
13109
      throw new IllegalStateException();
13110
    }
13111
 
13112
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13113
    public boolean isSet(_Fields field) {
13114
      if (field == null) {
13115
        throw new IllegalArgumentException();
13116
      }
13117
 
13118
      switch (field) {
13119
      case SUCCESS:
13120
        return isSetSuccess();
13121
      }
13122
      throw new IllegalStateException();
13123
    }
13124
 
13125
    @Override
13126
    public boolean equals(Object that) {
13127
      if (that == null)
13128
        return false;
13129
      if (that instanceof getPickupStore_result)
13130
        return this.equals((getPickupStore_result)that);
13131
      return false;
13132
    }
13133
 
13134
    public boolean equals(getPickupStore_result that) {
13135
      if (that == null)
13136
        return false;
13137
 
13138
      boolean this_present_success = true && this.isSetSuccess();
13139
      boolean that_present_success = true && that.isSetSuccess();
13140
      if (this_present_success || that_present_success) {
13141
        if (!(this_present_success && that_present_success))
13142
          return false;
13143
        if (!this.success.equals(that.success))
13144
          return false;
13145
      }
13146
 
13147
      return true;
13148
    }
13149
 
13150
    @Override
13151
    public int hashCode() {
13152
      return 0;
13153
    }
13154
 
13155
    public int compareTo(getPickupStore_result other) {
13156
      if (!getClass().equals(other.getClass())) {
13157
        return getClass().getName().compareTo(other.getClass().getName());
13158
      }
13159
 
13160
      int lastComparison = 0;
13161
      getPickupStore_result typedOther = (getPickupStore_result)other;
13162
 
13163
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13164
      if (lastComparison != 0) {
13165
        return lastComparison;
13166
      }
13167
      if (isSetSuccess()) {
13168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13169
        if (lastComparison != 0) {
13170
          return lastComparison;
13171
        }
13172
      }
13173
      return 0;
13174
    }
13175
 
13176
    public _Fields fieldForId(int fieldId) {
13177
      return _Fields.findByThriftId(fieldId);
13178
    }
13179
 
13180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13181
      org.apache.thrift.protocol.TField field;
13182
      iprot.readStructBegin();
13183
      while (true)
13184
      {
13185
        field = iprot.readFieldBegin();
13186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13187
          break;
13188
        }
13189
        switch (field.id) {
13190
          case 0: // SUCCESS
13191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13192
              this.success = new PickupStore();
13193
              this.success.read(iprot);
13194
            } else { 
13195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13196
            }
13197
            break;
13198
          default:
13199
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13200
        }
13201
        iprot.readFieldEnd();
13202
      }
13203
      iprot.readStructEnd();
13204
      validate();
13205
    }
13206
 
13207
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13208
      oprot.writeStructBegin(STRUCT_DESC);
13209
 
13210
      if (this.isSetSuccess()) {
13211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13212
        this.success.write(oprot);
13213
        oprot.writeFieldEnd();
13214
      }
13215
      oprot.writeFieldStop();
13216
      oprot.writeStructEnd();
13217
    }
13218
 
13219
    @Override
13220
    public String toString() {
13221
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13222
      boolean first = true;
13223
 
13224
      sb.append("success:");
13225
      if (this.success == null) {
13226
        sb.append("null");
13227
      } else {
13228
        sb.append(this.success);
13229
      }
13230
      first = false;
13231
      sb.append(")");
13232
      return sb.toString();
13233
    }
13234
 
13235
    public void validate() throws org.apache.thrift.TException {
13236
      // check for required fields
13237
    }
13238
 
13239
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13240
      try {
13241
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13242
      } catch (org.apache.thrift.TException te) {
13243
        throw new java.io.IOException(te);
13244
      }
13245
    }
13246
 
13247
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13248
      try {
13249
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13250
      } catch (org.apache.thrift.TException te) {
13251
        throw new java.io.IOException(te);
13252
      }
13253
    }
13254
 
13255
  }
13256
 
5719 rajveer 13257
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13258
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13259
 
13260
    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);
13261
 
13262
    private String hotspotId; // required
13263
 
13264
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13265
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13266
      HOTSPOT_ID((short)1, "hotspotId");
13267
 
13268
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13269
 
13270
      static {
13271
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13272
          byName.put(field.getFieldName(), field);
13273
        }
13274
      }
13275
 
13276
      /**
13277
       * Find the _Fields constant that matches fieldId, or null if its not found.
13278
       */
13279
      public static _Fields findByThriftId(int fieldId) {
13280
        switch(fieldId) {
13281
          case 1: // HOTSPOT_ID
13282
            return HOTSPOT_ID;
13283
          default:
13284
            return null;
13285
        }
13286
      }
13287
 
13288
      /**
13289
       * Find the _Fields constant that matches fieldId, throwing an exception
13290
       * if it is not found.
13291
       */
13292
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13293
        _Fields fields = findByThriftId(fieldId);
13294
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13295
        return fields;
13296
      }
13297
 
13298
      /**
13299
       * Find the _Fields constant that matches name, or null if its not found.
13300
       */
13301
      public static _Fields findByName(String name) {
13302
        return byName.get(name);
13303
      }
13304
 
13305
      private final short _thriftId;
13306
      private final String _fieldName;
13307
 
13308
      _Fields(short thriftId, String fieldName) {
13309
        _thriftId = thriftId;
13310
        _fieldName = fieldName;
13311
      }
13312
 
13313
      public short getThriftFieldId() {
13314
        return _thriftId;
13315
      }
13316
 
13317
      public String getFieldName() {
13318
        return _fieldName;
13319
      }
13320
    }
13321
 
13322
    // isset id assignments
13323
 
13324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13325
    static {
13326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13327
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13328
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13329
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13330
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13331
    }
13332
 
13333
    public getPickupStoreByHotspotId_args() {
13334
    }
13335
 
13336
    public getPickupStoreByHotspotId_args(
13337
      String hotspotId)
13338
    {
13339
      this();
13340
      this.hotspotId = hotspotId;
13341
    }
13342
 
13343
    /**
13344
     * Performs a deep copy on <i>other</i>.
13345
     */
13346
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13347
      if (other.isSetHotspotId()) {
13348
        this.hotspotId = other.hotspotId;
13349
      }
13350
    }
13351
 
13352
    public getPickupStoreByHotspotId_args deepCopy() {
13353
      return new getPickupStoreByHotspotId_args(this);
13354
    }
13355
 
13356
    @Override
13357
    public void clear() {
13358
      this.hotspotId = null;
13359
    }
13360
 
13361
    public String getHotspotId() {
13362
      return this.hotspotId;
13363
    }
13364
 
13365
    public void setHotspotId(String hotspotId) {
13366
      this.hotspotId = hotspotId;
13367
    }
13368
 
13369
    public void unsetHotspotId() {
13370
      this.hotspotId = null;
13371
    }
13372
 
13373
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13374
    public boolean isSetHotspotId() {
13375
      return this.hotspotId != null;
13376
    }
13377
 
13378
    public void setHotspotIdIsSet(boolean value) {
13379
      if (!value) {
13380
        this.hotspotId = null;
13381
      }
13382
    }
13383
 
13384
    public void setFieldValue(_Fields field, Object value) {
13385
      switch (field) {
13386
      case HOTSPOT_ID:
13387
        if (value == null) {
13388
          unsetHotspotId();
13389
        } else {
13390
          setHotspotId((String)value);
13391
        }
13392
        break;
13393
 
13394
      }
13395
    }
13396
 
13397
    public Object getFieldValue(_Fields field) {
13398
      switch (field) {
13399
      case HOTSPOT_ID:
13400
        return getHotspotId();
13401
 
13402
      }
13403
      throw new IllegalStateException();
13404
    }
13405
 
13406
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13407
    public boolean isSet(_Fields field) {
13408
      if (field == null) {
13409
        throw new IllegalArgumentException();
13410
      }
13411
 
13412
      switch (field) {
13413
      case HOTSPOT_ID:
13414
        return isSetHotspotId();
13415
      }
13416
      throw new IllegalStateException();
13417
    }
13418
 
13419
    @Override
13420
    public boolean equals(Object that) {
13421
      if (that == null)
13422
        return false;
13423
      if (that instanceof getPickupStoreByHotspotId_args)
13424
        return this.equals((getPickupStoreByHotspotId_args)that);
13425
      return false;
13426
    }
13427
 
13428
    public boolean equals(getPickupStoreByHotspotId_args that) {
13429
      if (that == null)
13430
        return false;
13431
 
13432
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13433
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13434
      if (this_present_hotspotId || that_present_hotspotId) {
13435
        if (!(this_present_hotspotId && that_present_hotspotId))
13436
          return false;
13437
        if (!this.hotspotId.equals(that.hotspotId))
13438
          return false;
13439
      }
13440
 
13441
      return true;
13442
    }
13443
 
13444
    @Override
13445
    public int hashCode() {
13446
      return 0;
13447
    }
13448
 
13449
    public int compareTo(getPickupStoreByHotspotId_args other) {
13450
      if (!getClass().equals(other.getClass())) {
13451
        return getClass().getName().compareTo(other.getClass().getName());
13452
      }
13453
 
13454
      int lastComparison = 0;
13455
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13456
 
13457
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13458
      if (lastComparison != 0) {
13459
        return lastComparison;
13460
      }
13461
      if (isSetHotspotId()) {
13462
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13463
        if (lastComparison != 0) {
13464
          return lastComparison;
13465
        }
13466
      }
13467
      return 0;
13468
    }
13469
 
13470
    public _Fields fieldForId(int fieldId) {
13471
      return _Fields.findByThriftId(fieldId);
13472
    }
13473
 
13474
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13475
      org.apache.thrift.protocol.TField field;
13476
      iprot.readStructBegin();
13477
      while (true)
13478
      {
13479
        field = iprot.readFieldBegin();
13480
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13481
          break;
13482
        }
13483
        switch (field.id) {
13484
          case 1: // HOTSPOT_ID
13485
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13486
              this.hotspotId = iprot.readString();
13487
            } else { 
13488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13489
            }
13490
            break;
13491
          default:
13492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13493
        }
13494
        iprot.readFieldEnd();
13495
      }
13496
      iprot.readStructEnd();
13497
      validate();
13498
    }
13499
 
13500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13501
      validate();
13502
 
13503
      oprot.writeStructBegin(STRUCT_DESC);
13504
      if (this.hotspotId != null) {
13505
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13506
        oprot.writeString(this.hotspotId);
13507
        oprot.writeFieldEnd();
13508
      }
13509
      oprot.writeFieldStop();
13510
      oprot.writeStructEnd();
13511
    }
13512
 
13513
    @Override
13514
    public String toString() {
13515
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13516
      boolean first = true;
13517
 
13518
      sb.append("hotspotId:");
13519
      if (this.hotspotId == null) {
13520
        sb.append("null");
13521
      } else {
13522
        sb.append(this.hotspotId);
13523
      }
13524
      first = false;
13525
      sb.append(")");
13526
      return sb.toString();
13527
    }
13528
 
13529
    public void validate() throws org.apache.thrift.TException {
13530
      // check for required fields
13531
    }
13532
 
13533
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13534
      try {
13535
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13536
      } catch (org.apache.thrift.TException te) {
13537
        throw new java.io.IOException(te);
13538
      }
13539
    }
13540
 
13541
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13542
      try {
13543
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13544
      } catch (org.apache.thrift.TException te) {
13545
        throw new java.io.IOException(te);
13546
      }
13547
    }
13548
 
13549
  }
13550
 
13551
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13552
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13553
 
13554
    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);
13555
 
13556
    private PickupStore success; // required
13557
 
13558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13560
      SUCCESS((short)0, "success");
13561
 
13562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13563
 
13564
      static {
13565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13566
          byName.put(field.getFieldName(), field);
13567
        }
13568
      }
13569
 
13570
      /**
13571
       * Find the _Fields constant that matches fieldId, or null if its not found.
13572
       */
13573
      public static _Fields findByThriftId(int fieldId) {
13574
        switch(fieldId) {
13575
          case 0: // SUCCESS
13576
            return SUCCESS;
13577
          default:
13578
            return null;
13579
        }
13580
      }
13581
 
13582
      /**
13583
       * Find the _Fields constant that matches fieldId, throwing an exception
13584
       * if it is not found.
13585
       */
13586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13587
        _Fields fields = findByThriftId(fieldId);
13588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13589
        return fields;
13590
      }
13591
 
13592
      /**
13593
       * Find the _Fields constant that matches name, or null if its not found.
13594
       */
13595
      public static _Fields findByName(String name) {
13596
        return byName.get(name);
13597
      }
13598
 
13599
      private final short _thriftId;
13600
      private final String _fieldName;
13601
 
13602
      _Fields(short thriftId, String fieldName) {
13603
        _thriftId = thriftId;
13604
        _fieldName = fieldName;
13605
      }
13606
 
13607
      public short getThriftFieldId() {
13608
        return _thriftId;
13609
      }
13610
 
13611
      public String getFieldName() {
13612
        return _fieldName;
13613
      }
13614
    }
13615
 
13616
    // isset id assignments
13617
 
13618
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13619
    static {
13620
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13621
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13622
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13625
    }
13626
 
13627
    public getPickupStoreByHotspotId_result() {
13628
    }
13629
 
13630
    public getPickupStoreByHotspotId_result(
13631
      PickupStore success)
13632
    {
13633
      this();
13634
      this.success = success;
13635
    }
13636
 
13637
    /**
13638
     * Performs a deep copy on <i>other</i>.
13639
     */
13640
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13641
      if (other.isSetSuccess()) {
13642
        this.success = new PickupStore(other.success);
13643
      }
13644
    }
13645
 
13646
    public getPickupStoreByHotspotId_result deepCopy() {
13647
      return new getPickupStoreByHotspotId_result(this);
13648
    }
13649
 
13650
    @Override
13651
    public void clear() {
13652
      this.success = null;
13653
    }
13654
 
13655
    public PickupStore getSuccess() {
13656
      return this.success;
13657
    }
13658
 
13659
    public void setSuccess(PickupStore success) {
13660
      this.success = success;
13661
    }
13662
 
13663
    public void unsetSuccess() {
13664
      this.success = null;
13665
    }
13666
 
13667
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13668
    public boolean isSetSuccess() {
13669
      return this.success != null;
13670
    }
13671
 
13672
    public void setSuccessIsSet(boolean value) {
13673
      if (!value) {
13674
        this.success = null;
13675
      }
13676
    }
13677
 
13678
    public void setFieldValue(_Fields field, Object value) {
13679
      switch (field) {
13680
      case SUCCESS:
13681
        if (value == null) {
13682
          unsetSuccess();
13683
        } else {
13684
          setSuccess((PickupStore)value);
13685
        }
13686
        break;
13687
 
13688
      }
13689
    }
13690
 
13691
    public Object getFieldValue(_Fields field) {
13692
      switch (field) {
13693
      case SUCCESS:
13694
        return getSuccess();
13695
 
13696
      }
13697
      throw new IllegalStateException();
13698
    }
13699
 
13700
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13701
    public boolean isSet(_Fields field) {
13702
      if (field == null) {
13703
        throw new IllegalArgumentException();
13704
      }
13705
 
13706
      switch (field) {
13707
      case SUCCESS:
13708
        return isSetSuccess();
13709
      }
13710
      throw new IllegalStateException();
13711
    }
13712
 
13713
    @Override
13714
    public boolean equals(Object that) {
13715
      if (that == null)
13716
        return false;
13717
      if (that instanceof getPickupStoreByHotspotId_result)
13718
        return this.equals((getPickupStoreByHotspotId_result)that);
13719
      return false;
13720
    }
13721
 
13722
    public boolean equals(getPickupStoreByHotspotId_result that) {
13723
      if (that == null)
13724
        return false;
13725
 
13726
      boolean this_present_success = true && this.isSetSuccess();
13727
      boolean that_present_success = true && that.isSetSuccess();
13728
      if (this_present_success || that_present_success) {
13729
        if (!(this_present_success && that_present_success))
13730
          return false;
13731
        if (!this.success.equals(that.success))
13732
          return false;
13733
      }
13734
 
13735
      return true;
13736
    }
13737
 
13738
    @Override
13739
    public int hashCode() {
13740
      return 0;
13741
    }
13742
 
13743
    public int compareTo(getPickupStoreByHotspotId_result other) {
13744
      if (!getClass().equals(other.getClass())) {
13745
        return getClass().getName().compareTo(other.getClass().getName());
13746
      }
13747
 
13748
      int lastComparison = 0;
13749
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13750
 
13751
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13752
      if (lastComparison != 0) {
13753
        return lastComparison;
13754
      }
13755
      if (isSetSuccess()) {
13756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13757
        if (lastComparison != 0) {
13758
          return lastComparison;
13759
        }
13760
      }
13761
      return 0;
13762
    }
13763
 
13764
    public _Fields fieldForId(int fieldId) {
13765
      return _Fields.findByThriftId(fieldId);
13766
    }
13767
 
13768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13769
      org.apache.thrift.protocol.TField field;
13770
      iprot.readStructBegin();
13771
      while (true)
13772
      {
13773
        field = iprot.readFieldBegin();
13774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13775
          break;
13776
        }
13777
        switch (field.id) {
13778
          case 0: // SUCCESS
13779
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13780
              this.success = new PickupStore();
13781
              this.success.read(iprot);
13782
            } else { 
13783
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13784
            }
13785
            break;
13786
          default:
13787
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13788
        }
13789
        iprot.readFieldEnd();
13790
      }
13791
      iprot.readStructEnd();
13792
      validate();
13793
    }
13794
 
13795
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13796
      oprot.writeStructBegin(STRUCT_DESC);
13797
 
13798
      if (this.isSetSuccess()) {
13799
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13800
        this.success.write(oprot);
13801
        oprot.writeFieldEnd();
13802
      }
13803
      oprot.writeFieldStop();
13804
      oprot.writeStructEnd();
13805
    }
13806
 
13807
    @Override
13808
    public String toString() {
13809
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13810
      boolean first = true;
13811
 
13812
      sb.append("success:");
13813
      if (this.success == null) {
13814
        sb.append("null");
13815
      } else {
13816
        sb.append(this.success);
13817
      }
13818
      first = false;
13819
      sb.append(")");
13820
      return sb.toString();
13821
    }
13822
 
13823
    public void validate() throws org.apache.thrift.TException {
13824
      // check for required fields
13825
    }
13826
 
13827
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13828
      try {
13829
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13830
      } catch (org.apache.thrift.TException te) {
13831
        throw new java.io.IOException(te);
13832
      }
13833
    }
13834
 
13835
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13836
      try {
13837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13838
      } catch (org.apache.thrift.TException te) {
13839
        throw new java.io.IOException(te);
13840
      }
13841
    }
13842
 
13843
  }
13844
 
6322 amar.kumar 13845
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13847
 
13848
    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);
13849
    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);
13850
    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);
13851
    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);
13852
    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);
13853
    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 13854
    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 13855
 
13856
    private long providerId; // required
13857
    private String pincode; // required
13858
    private String destCode; // required
13859
    private boolean exp; // required
13860
    private boolean cod; // required
13861
    private int stationType; // required
6524 rajveer 13862
    private boolean otgAvailable; // required
6322 amar.kumar 13863
 
13864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13866
      PROVIDER_ID((short)1, "providerId"),
13867
      PINCODE((short)2, "pincode"),
13868
      DEST_CODE((short)3, "destCode"),
13869
      EXP((short)4, "exp"),
13870
      COD((short)5, "cod"),
6524 rajveer 13871
      STATION_TYPE((short)6, "stationType"),
13872
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13873
 
13874
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13875
 
13876
      static {
13877
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13878
          byName.put(field.getFieldName(), field);
13879
        }
13880
      }
13881
 
13882
      /**
13883
       * Find the _Fields constant that matches fieldId, or null if its not found.
13884
       */
13885
      public static _Fields findByThriftId(int fieldId) {
13886
        switch(fieldId) {
13887
          case 1: // PROVIDER_ID
13888
            return PROVIDER_ID;
13889
          case 2: // PINCODE
13890
            return PINCODE;
13891
          case 3: // DEST_CODE
13892
            return DEST_CODE;
13893
          case 4: // EXP
13894
            return EXP;
13895
          case 5: // COD
13896
            return COD;
13897
          case 6: // STATION_TYPE
13898
            return STATION_TYPE;
6524 rajveer 13899
          case 7: // OTG_AVAILABLE
13900
            return OTG_AVAILABLE;
6322 amar.kumar 13901
          default:
13902
            return null;
13903
        }
13904
      }
13905
 
13906
      /**
13907
       * Find the _Fields constant that matches fieldId, throwing an exception
13908
       * if it is not found.
13909
       */
13910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13911
        _Fields fields = findByThriftId(fieldId);
13912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13913
        return fields;
13914
      }
13915
 
13916
      /**
13917
       * Find the _Fields constant that matches name, or null if its not found.
13918
       */
13919
      public static _Fields findByName(String name) {
13920
        return byName.get(name);
13921
      }
13922
 
13923
      private final short _thriftId;
13924
      private final String _fieldName;
13925
 
13926
      _Fields(short thriftId, String fieldName) {
13927
        _thriftId = thriftId;
13928
        _fieldName = fieldName;
13929
      }
13930
 
13931
      public short getThriftFieldId() {
13932
        return _thriftId;
13933
      }
13934
 
13935
      public String getFieldName() {
13936
        return _fieldName;
13937
      }
13938
    }
13939
 
13940
    // isset id assignments
13941
    private static final int __PROVIDERID_ISSET_ID = 0;
13942
    private static final int __EXP_ISSET_ID = 1;
13943
    private static final int __COD_ISSET_ID = 2;
13944
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13945
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13946
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13947
 
13948
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13949
    static {
13950
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13951
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13953
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13955
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13957
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13959
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13961
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13963
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13967
    }
13968
 
13969
    public addPincode_args() {
13970
    }
13971
 
13972
    public addPincode_args(
13973
      long providerId,
13974
      String pincode,
13975
      String destCode,
13976
      boolean exp,
13977
      boolean cod,
6524 rajveer 13978
      int stationType,
13979
      boolean otgAvailable)
6322 amar.kumar 13980
    {
13981
      this();
13982
      this.providerId = providerId;
13983
      setProviderIdIsSet(true);
13984
      this.pincode = pincode;
13985
      this.destCode = destCode;
13986
      this.exp = exp;
13987
      setExpIsSet(true);
13988
      this.cod = cod;
13989
      setCodIsSet(true);
13990
      this.stationType = stationType;
13991
      setStationTypeIsSet(true);
6524 rajveer 13992
      this.otgAvailable = otgAvailable;
13993
      setOtgAvailableIsSet(true);
6322 amar.kumar 13994
    }
13995
 
13996
    /**
13997
     * Performs a deep copy on <i>other</i>.
13998
     */
13999
    public addPincode_args(addPincode_args other) {
14000
      __isset_bit_vector.clear();
14001
      __isset_bit_vector.or(other.__isset_bit_vector);
14002
      this.providerId = other.providerId;
14003
      if (other.isSetPincode()) {
14004
        this.pincode = other.pincode;
14005
      }
14006
      if (other.isSetDestCode()) {
14007
        this.destCode = other.destCode;
14008
      }
14009
      this.exp = other.exp;
14010
      this.cod = other.cod;
14011
      this.stationType = other.stationType;
6524 rajveer 14012
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14013
    }
14014
 
14015
    public addPincode_args deepCopy() {
14016
      return new addPincode_args(this);
14017
    }
14018
 
14019
    @Override
14020
    public void clear() {
14021
      setProviderIdIsSet(false);
14022
      this.providerId = 0;
14023
      this.pincode = null;
14024
      this.destCode = null;
14025
      setExpIsSet(false);
14026
      this.exp = false;
14027
      setCodIsSet(false);
14028
      this.cod = false;
14029
      setStationTypeIsSet(false);
14030
      this.stationType = 0;
6524 rajveer 14031
      setOtgAvailableIsSet(false);
14032
      this.otgAvailable = false;
6322 amar.kumar 14033
    }
14034
 
14035
    public long getProviderId() {
14036
      return this.providerId;
14037
    }
14038
 
14039
    public void setProviderId(long providerId) {
14040
      this.providerId = providerId;
14041
      setProviderIdIsSet(true);
14042
    }
14043
 
14044
    public void unsetProviderId() {
14045
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14046
    }
14047
 
14048
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14049
    public boolean isSetProviderId() {
14050
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14051
    }
14052
 
14053
    public void setProviderIdIsSet(boolean value) {
14054
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14055
    }
14056
 
14057
    public String getPincode() {
14058
      return this.pincode;
14059
    }
14060
 
14061
    public void setPincode(String pincode) {
14062
      this.pincode = pincode;
14063
    }
14064
 
14065
    public void unsetPincode() {
14066
      this.pincode = null;
14067
    }
14068
 
14069
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14070
    public boolean isSetPincode() {
14071
      return this.pincode != null;
14072
    }
14073
 
14074
    public void setPincodeIsSet(boolean value) {
14075
      if (!value) {
14076
        this.pincode = null;
14077
      }
14078
    }
14079
 
14080
    public String getDestCode() {
14081
      return this.destCode;
14082
    }
14083
 
14084
    public void setDestCode(String destCode) {
14085
      this.destCode = destCode;
14086
    }
14087
 
14088
    public void unsetDestCode() {
14089
      this.destCode = null;
14090
    }
14091
 
14092
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14093
    public boolean isSetDestCode() {
14094
      return this.destCode != null;
14095
    }
14096
 
14097
    public void setDestCodeIsSet(boolean value) {
14098
      if (!value) {
14099
        this.destCode = null;
14100
      }
14101
    }
14102
 
14103
    public boolean isExp() {
14104
      return this.exp;
14105
    }
14106
 
14107
    public void setExp(boolean exp) {
14108
      this.exp = exp;
14109
      setExpIsSet(true);
14110
    }
14111
 
14112
    public void unsetExp() {
14113
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14114
    }
14115
 
14116
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14117
    public boolean isSetExp() {
14118
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14119
    }
14120
 
14121
    public void setExpIsSet(boolean value) {
14122
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14123
    }
14124
 
14125
    public boolean isCod() {
14126
      return this.cod;
14127
    }
14128
 
14129
    public void setCod(boolean cod) {
14130
      this.cod = cod;
14131
      setCodIsSet(true);
14132
    }
14133
 
14134
    public void unsetCod() {
14135
      __isset_bit_vector.clear(__COD_ISSET_ID);
14136
    }
14137
 
14138
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14139
    public boolean isSetCod() {
14140
      return __isset_bit_vector.get(__COD_ISSET_ID);
14141
    }
14142
 
14143
    public void setCodIsSet(boolean value) {
14144
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14145
    }
14146
 
14147
    public int getStationType() {
14148
      return this.stationType;
14149
    }
14150
 
14151
    public void setStationType(int stationType) {
14152
      this.stationType = stationType;
14153
      setStationTypeIsSet(true);
14154
    }
14155
 
14156
    public void unsetStationType() {
14157
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14158
    }
14159
 
14160
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14161
    public boolean isSetStationType() {
14162
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14163
    }
14164
 
14165
    public void setStationTypeIsSet(boolean value) {
14166
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14167
    }
14168
 
6524 rajveer 14169
    public boolean isOtgAvailable() {
14170
      return this.otgAvailable;
14171
    }
14172
 
14173
    public void setOtgAvailable(boolean otgAvailable) {
14174
      this.otgAvailable = otgAvailable;
14175
      setOtgAvailableIsSet(true);
14176
    }
14177
 
14178
    public void unsetOtgAvailable() {
14179
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14180
    }
14181
 
14182
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14183
    public boolean isSetOtgAvailable() {
14184
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14185
    }
14186
 
14187
    public void setOtgAvailableIsSet(boolean value) {
14188
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14189
    }
14190
 
6322 amar.kumar 14191
    public void setFieldValue(_Fields field, Object value) {
14192
      switch (field) {
14193
      case PROVIDER_ID:
14194
        if (value == null) {
14195
          unsetProviderId();
14196
        } else {
14197
          setProviderId((Long)value);
14198
        }
14199
        break;
14200
 
14201
      case PINCODE:
14202
        if (value == null) {
14203
          unsetPincode();
14204
        } else {
14205
          setPincode((String)value);
14206
        }
14207
        break;
14208
 
14209
      case DEST_CODE:
14210
        if (value == null) {
14211
          unsetDestCode();
14212
        } else {
14213
          setDestCode((String)value);
14214
        }
14215
        break;
14216
 
14217
      case EXP:
14218
        if (value == null) {
14219
          unsetExp();
14220
        } else {
14221
          setExp((Boolean)value);
14222
        }
14223
        break;
14224
 
14225
      case COD:
14226
        if (value == null) {
14227
          unsetCod();
14228
        } else {
14229
          setCod((Boolean)value);
14230
        }
14231
        break;
14232
 
14233
      case STATION_TYPE:
14234
        if (value == null) {
14235
          unsetStationType();
14236
        } else {
14237
          setStationType((Integer)value);
14238
        }
14239
        break;
14240
 
6524 rajveer 14241
      case OTG_AVAILABLE:
14242
        if (value == null) {
14243
          unsetOtgAvailable();
14244
        } else {
14245
          setOtgAvailable((Boolean)value);
14246
        }
14247
        break;
14248
 
6322 amar.kumar 14249
      }
14250
    }
14251
 
14252
    public Object getFieldValue(_Fields field) {
14253
      switch (field) {
14254
      case PROVIDER_ID:
14255
        return Long.valueOf(getProviderId());
14256
 
14257
      case PINCODE:
14258
        return getPincode();
14259
 
14260
      case DEST_CODE:
14261
        return getDestCode();
14262
 
14263
      case EXP:
14264
        return Boolean.valueOf(isExp());
14265
 
14266
      case COD:
14267
        return Boolean.valueOf(isCod());
14268
 
14269
      case STATION_TYPE:
14270
        return Integer.valueOf(getStationType());
14271
 
6524 rajveer 14272
      case OTG_AVAILABLE:
14273
        return Boolean.valueOf(isOtgAvailable());
14274
 
6322 amar.kumar 14275
      }
14276
      throw new IllegalStateException();
14277
    }
14278
 
14279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14280
    public boolean isSet(_Fields field) {
14281
      if (field == null) {
14282
        throw new IllegalArgumentException();
14283
      }
14284
 
14285
      switch (field) {
14286
      case PROVIDER_ID:
14287
        return isSetProviderId();
14288
      case PINCODE:
14289
        return isSetPincode();
14290
      case DEST_CODE:
14291
        return isSetDestCode();
14292
      case EXP:
14293
        return isSetExp();
14294
      case COD:
14295
        return isSetCod();
14296
      case STATION_TYPE:
14297
        return isSetStationType();
6524 rajveer 14298
      case OTG_AVAILABLE:
14299
        return isSetOtgAvailable();
6322 amar.kumar 14300
      }
14301
      throw new IllegalStateException();
14302
    }
14303
 
14304
    @Override
14305
    public boolean equals(Object that) {
14306
      if (that == null)
14307
        return false;
14308
      if (that instanceof addPincode_args)
14309
        return this.equals((addPincode_args)that);
14310
      return false;
14311
    }
14312
 
14313
    public boolean equals(addPincode_args that) {
14314
      if (that == null)
14315
        return false;
14316
 
14317
      boolean this_present_providerId = true;
14318
      boolean that_present_providerId = true;
14319
      if (this_present_providerId || that_present_providerId) {
14320
        if (!(this_present_providerId && that_present_providerId))
14321
          return false;
14322
        if (this.providerId != that.providerId)
14323
          return false;
14324
      }
14325
 
14326
      boolean this_present_pincode = true && this.isSetPincode();
14327
      boolean that_present_pincode = true && that.isSetPincode();
14328
      if (this_present_pincode || that_present_pincode) {
14329
        if (!(this_present_pincode && that_present_pincode))
14330
          return false;
14331
        if (!this.pincode.equals(that.pincode))
14332
          return false;
14333
      }
14334
 
14335
      boolean this_present_destCode = true && this.isSetDestCode();
14336
      boolean that_present_destCode = true && that.isSetDestCode();
14337
      if (this_present_destCode || that_present_destCode) {
14338
        if (!(this_present_destCode && that_present_destCode))
14339
          return false;
14340
        if (!this.destCode.equals(that.destCode))
14341
          return false;
14342
      }
14343
 
14344
      boolean this_present_exp = true;
14345
      boolean that_present_exp = true;
14346
      if (this_present_exp || that_present_exp) {
14347
        if (!(this_present_exp && that_present_exp))
14348
          return false;
14349
        if (this.exp != that.exp)
14350
          return false;
14351
      }
14352
 
14353
      boolean this_present_cod = true;
14354
      boolean that_present_cod = true;
14355
      if (this_present_cod || that_present_cod) {
14356
        if (!(this_present_cod && that_present_cod))
14357
          return false;
14358
        if (this.cod != that.cod)
14359
          return false;
14360
      }
14361
 
14362
      boolean this_present_stationType = true;
14363
      boolean that_present_stationType = true;
14364
      if (this_present_stationType || that_present_stationType) {
14365
        if (!(this_present_stationType && that_present_stationType))
14366
          return false;
14367
        if (this.stationType != that.stationType)
14368
          return false;
14369
      }
14370
 
6524 rajveer 14371
      boolean this_present_otgAvailable = true;
14372
      boolean that_present_otgAvailable = true;
14373
      if (this_present_otgAvailable || that_present_otgAvailable) {
14374
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14375
          return false;
14376
        if (this.otgAvailable != that.otgAvailable)
14377
          return false;
14378
      }
14379
 
6322 amar.kumar 14380
      return true;
14381
    }
14382
 
14383
    @Override
14384
    public int hashCode() {
14385
      return 0;
14386
    }
14387
 
14388
    public int compareTo(addPincode_args other) {
14389
      if (!getClass().equals(other.getClass())) {
14390
        return getClass().getName().compareTo(other.getClass().getName());
14391
      }
14392
 
14393
      int lastComparison = 0;
14394
      addPincode_args typedOther = (addPincode_args)other;
14395
 
14396
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14397
      if (lastComparison != 0) {
14398
        return lastComparison;
14399
      }
14400
      if (isSetProviderId()) {
14401
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14402
        if (lastComparison != 0) {
14403
          return lastComparison;
14404
        }
14405
      }
14406
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14407
      if (lastComparison != 0) {
14408
        return lastComparison;
14409
      }
14410
      if (isSetPincode()) {
14411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14412
        if (lastComparison != 0) {
14413
          return lastComparison;
14414
        }
14415
      }
14416
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14417
      if (lastComparison != 0) {
14418
        return lastComparison;
14419
      }
14420
      if (isSetDestCode()) {
14421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14422
        if (lastComparison != 0) {
14423
          return lastComparison;
14424
        }
14425
      }
14426
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14427
      if (lastComparison != 0) {
14428
        return lastComparison;
14429
      }
14430
      if (isSetExp()) {
14431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14432
        if (lastComparison != 0) {
14433
          return lastComparison;
14434
        }
14435
      }
14436
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14437
      if (lastComparison != 0) {
14438
        return lastComparison;
14439
      }
14440
      if (isSetCod()) {
14441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14442
        if (lastComparison != 0) {
14443
          return lastComparison;
14444
        }
14445
      }
14446
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14447
      if (lastComparison != 0) {
14448
        return lastComparison;
14449
      }
14450
      if (isSetStationType()) {
14451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14452
        if (lastComparison != 0) {
14453
          return lastComparison;
14454
        }
14455
      }
6524 rajveer 14456
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14457
      if (lastComparison != 0) {
14458
        return lastComparison;
14459
      }
14460
      if (isSetOtgAvailable()) {
14461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14462
        if (lastComparison != 0) {
14463
          return lastComparison;
14464
        }
14465
      }
6322 amar.kumar 14466
      return 0;
14467
    }
14468
 
14469
    public _Fields fieldForId(int fieldId) {
14470
      return _Fields.findByThriftId(fieldId);
14471
    }
14472
 
14473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14474
      org.apache.thrift.protocol.TField field;
14475
      iprot.readStructBegin();
14476
      while (true)
14477
      {
14478
        field = iprot.readFieldBegin();
14479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14480
          break;
14481
        }
14482
        switch (field.id) {
14483
          case 1: // PROVIDER_ID
14484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14485
              this.providerId = iprot.readI64();
14486
              setProviderIdIsSet(true);
14487
            } else { 
14488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14489
            }
14490
            break;
14491
          case 2: // PINCODE
14492
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14493
              this.pincode = iprot.readString();
14494
            } else { 
14495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14496
            }
14497
            break;
14498
          case 3: // DEST_CODE
14499
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14500
              this.destCode = iprot.readString();
14501
            } else { 
14502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14503
            }
14504
            break;
14505
          case 4: // EXP
14506
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14507
              this.exp = iprot.readBool();
14508
              setExpIsSet(true);
14509
            } else { 
14510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14511
            }
14512
            break;
14513
          case 5: // COD
14514
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14515
              this.cod = iprot.readBool();
14516
              setCodIsSet(true);
14517
            } else { 
14518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14519
            }
14520
            break;
14521
          case 6: // STATION_TYPE
14522
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14523
              this.stationType = iprot.readI32();
14524
              setStationTypeIsSet(true);
14525
            } else { 
14526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14527
            }
14528
            break;
6524 rajveer 14529
          case 7: // OTG_AVAILABLE
14530
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14531
              this.otgAvailable = iprot.readBool();
14532
              setOtgAvailableIsSet(true);
14533
            } else { 
14534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14535
            }
14536
            break;
6322 amar.kumar 14537
          default:
14538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14539
        }
14540
        iprot.readFieldEnd();
14541
      }
14542
      iprot.readStructEnd();
14543
      validate();
14544
    }
14545
 
14546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14547
      validate();
14548
 
14549
      oprot.writeStructBegin(STRUCT_DESC);
14550
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14551
      oprot.writeI64(this.providerId);
14552
      oprot.writeFieldEnd();
14553
      if (this.pincode != null) {
14554
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14555
        oprot.writeString(this.pincode);
14556
        oprot.writeFieldEnd();
14557
      }
14558
      if (this.destCode != null) {
14559
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14560
        oprot.writeString(this.destCode);
14561
        oprot.writeFieldEnd();
14562
      }
14563
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14564
      oprot.writeBool(this.exp);
14565
      oprot.writeFieldEnd();
14566
      oprot.writeFieldBegin(COD_FIELD_DESC);
14567
      oprot.writeBool(this.cod);
14568
      oprot.writeFieldEnd();
14569
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14570
      oprot.writeI32(this.stationType);
14571
      oprot.writeFieldEnd();
6524 rajveer 14572
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14573
      oprot.writeBool(this.otgAvailable);
14574
      oprot.writeFieldEnd();
6322 amar.kumar 14575
      oprot.writeFieldStop();
14576
      oprot.writeStructEnd();
14577
    }
14578
 
14579
    @Override
14580
    public String toString() {
14581
      StringBuilder sb = new StringBuilder("addPincode_args(");
14582
      boolean first = true;
14583
 
14584
      sb.append("providerId:");
14585
      sb.append(this.providerId);
14586
      first = false;
14587
      if (!first) sb.append(", ");
14588
      sb.append("pincode:");
14589
      if (this.pincode == null) {
14590
        sb.append("null");
14591
      } else {
14592
        sb.append(this.pincode);
14593
      }
14594
      first = false;
14595
      if (!first) sb.append(", ");
14596
      sb.append("destCode:");
14597
      if (this.destCode == null) {
14598
        sb.append("null");
14599
      } else {
14600
        sb.append(this.destCode);
14601
      }
14602
      first = false;
14603
      if (!first) sb.append(", ");
14604
      sb.append("exp:");
14605
      sb.append(this.exp);
14606
      first = false;
14607
      if (!first) sb.append(", ");
14608
      sb.append("cod:");
14609
      sb.append(this.cod);
14610
      first = false;
14611
      if (!first) sb.append(", ");
14612
      sb.append("stationType:");
14613
      sb.append(this.stationType);
14614
      first = false;
6524 rajveer 14615
      if (!first) sb.append(", ");
14616
      sb.append("otgAvailable:");
14617
      sb.append(this.otgAvailable);
14618
      first = false;
6322 amar.kumar 14619
      sb.append(")");
14620
      return sb.toString();
14621
    }
14622
 
14623
    public void validate() throws org.apache.thrift.TException {
14624
      // check for required fields
14625
    }
14626
 
14627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14628
      try {
14629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14630
      } catch (org.apache.thrift.TException te) {
14631
        throw new java.io.IOException(te);
14632
      }
14633
    }
14634
 
14635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14636
      try {
14637
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14638
        __isset_bit_vector = new BitSet(1);
14639
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14640
      } catch (org.apache.thrift.TException te) {
14641
        throw new java.io.IOException(te);
14642
      }
14643
    }
14644
 
14645
  }
14646
 
14647
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14648
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14649
 
14650
 
14651
 
14652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14654
;
14655
 
14656
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14657
 
14658
      static {
14659
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14660
          byName.put(field.getFieldName(), field);
14661
        }
14662
      }
14663
 
14664
      /**
14665
       * Find the _Fields constant that matches fieldId, or null if its not found.
14666
       */
14667
      public static _Fields findByThriftId(int fieldId) {
14668
        switch(fieldId) {
14669
          default:
14670
            return null;
14671
        }
14672
      }
14673
 
14674
      /**
14675
       * Find the _Fields constant that matches fieldId, throwing an exception
14676
       * if it is not found.
14677
       */
14678
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14679
        _Fields fields = findByThriftId(fieldId);
14680
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14681
        return fields;
14682
      }
14683
 
14684
      /**
14685
       * Find the _Fields constant that matches name, or null if its not found.
14686
       */
14687
      public static _Fields findByName(String name) {
14688
        return byName.get(name);
14689
      }
14690
 
14691
      private final short _thriftId;
14692
      private final String _fieldName;
14693
 
14694
      _Fields(short thriftId, String fieldName) {
14695
        _thriftId = thriftId;
14696
        _fieldName = fieldName;
14697
      }
14698
 
14699
      public short getThriftFieldId() {
14700
        return _thriftId;
14701
      }
14702
 
14703
      public String getFieldName() {
14704
        return _fieldName;
14705
      }
14706
    }
14707
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14708
    static {
14709
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14712
    }
14713
 
14714
    public addPincode_result() {
14715
    }
14716
 
14717
    /**
14718
     * Performs a deep copy on <i>other</i>.
14719
     */
14720
    public addPincode_result(addPincode_result other) {
14721
    }
14722
 
14723
    public addPincode_result deepCopy() {
14724
      return new addPincode_result(this);
14725
    }
14726
 
14727
    @Override
14728
    public void clear() {
14729
    }
14730
 
14731
    public void setFieldValue(_Fields field, Object value) {
14732
      switch (field) {
14733
      }
14734
    }
14735
 
14736
    public Object getFieldValue(_Fields field) {
14737
      switch (field) {
14738
      }
14739
      throw new IllegalStateException();
14740
    }
14741
 
14742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14743
    public boolean isSet(_Fields field) {
14744
      if (field == null) {
14745
        throw new IllegalArgumentException();
14746
      }
14747
 
14748
      switch (field) {
14749
      }
14750
      throw new IllegalStateException();
14751
    }
14752
 
14753
    @Override
14754
    public boolean equals(Object that) {
14755
      if (that == null)
14756
        return false;
14757
      if (that instanceof addPincode_result)
14758
        return this.equals((addPincode_result)that);
14759
      return false;
14760
    }
14761
 
14762
    public boolean equals(addPincode_result that) {
14763
      if (that == null)
14764
        return false;
14765
 
14766
      return true;
14767
    }
14768
 
14769
    @Override
14770
    public int hashCode() {
14771
      return 0;
14772
    }
14773
 
14774
    public int compareTo(addPincode_result other) {
14775
      if (!getClass().equals(other.getClass())) {
14776
        return getClass().getName().compareTo(other.getClass().getName());
14777
      }
14778
 
14779
      int lastComparison = 0;
14780
      addPincode_result typedOther = (addPincode_result)other;
14781
 
14782
      return 0;
14783
    }
14784
 
14785
    public _Fields fieldForId(int fieldId) {
14786
      return _Fields.findByThriftId(fieldId);
14787
    }
14788
 
14789
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14790
      org.apache.thrift.protocol.TField field;
14791
      iprot.readStructBegin();
14792
      while (true)
14793
      {
14794
        field = iprot.readFieldBegin();
14795
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14796
          break;
14797
        }
14798
        switch (field.id) {
14799
          default:
14800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14801
        }
14802
        iprot.readFieldEnd();
14803
      }
14804
      iprot.readStructEnd();
14805
      validate();
14806
    }
14807
 
14808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14809
      oprot.writeStructBegin(STRUCT_DESC);
14810
 
14811
      oprot.writeFieldStop();
14812
      oprot.writeStructEnd();
14813
    }
14814
 
14815
    @Override
14816
    public String toString() {
14817
      StringBuilder sb = new StringBuilder("addPincode_result(");
14818
      boolean first = true;
14819
 
14820
      sb.append(")");
14821
      return sb.toString();
14822
    }
14823
 
14824
    public void validate() throws org.apache.thrift.TException {
14825
      // check for required fields
14826
    }
14827
 
14828
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14829
      try {
14830
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14831
      } catch (org.apache.thrift.TException te) {
14832
        throw new java.io.IOException(te);
14833
      }
14834
    }
14835
 
14836
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14837
      try {
14838
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14839
      } catch (org.apache.thrift.TException te) {
14840
        throw new java.io.IOException(te);
14841
      }
14842
    }
14843
 
14844
  }
14845
 
14846
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14847
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14848
 
14849
    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);
14850
    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);
14851
    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);
14852
    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 14853
    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 14854
 
14855
    private long providerId; // required
14856
    private String pincode; // required
14857
    private boolean exp; // required
14858
    private boolean cod; // required
6524 rajveer 14859
    private boolean otgAvailable; // required
6322 amar.kumar 14860
 
14861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14862
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14863
      PROVIDER_ID((short)1, "providerId"),
14864
      PINCODE((short)2, "pincode"),
14865
      EXP((short)3, "exp"),
6524 rajveer 14866
      COD((short)4, "cod"),
14867
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14868
 
14869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14870
 
14871
      static {
14872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14873
          byName.put(field.getFieldName(), field);
14874
        }
14875
      }
14876
 
14877
      /**
14878
       * Find the _Fields constant that matches fieldId, or null if its not found.
14879
       */
14880
      public static _Fields findByThriftId(int fieldId) {
14881
        switch(fieldId) {
14882
          case 1: // PROVIDER_ID
14883
            return PROVIDER_ID;
14884
          case 2: // PINCODE
14885
            return PINCODE;
14886
          case 3: // EXP
14887
            return EXP;
14888
          case 4: // COD
14889
            return COD;
6524 rajveer 14890
          case 5: // OTG_AVAILABLE
14891
            return OTG_AVAILABLE;
6322 amar.kumar 14892
          default:
14893
            return null;
14894
        }
14895
      }
14896
 
14897
      /**
14898
       * Find the _Fields constant that matches fieldId, throwing an exception
14899
       * if it is not found.
14900
       */
14901
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14902
        _Fields fields = findByThriftId(fieldId);
14903
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14904
        return fields;
14905
      }
14906
 
14907
      /**
14908
       * Find the _Fields constant that matches name, or null if its not found.
14909
       */
14910
      public static _Fields findByName(String name) {
14911
        return byName.get(name);
14912
      }
14913
 
14914
      private final short _thriftId;
14915
      private final String _fieldName;
14916
 
14917
      _Fields(short thriftId, String fieldName) {
14918
        _thriftId = thriftId;
14919
        _fieldName = fieldName;
14920
      }
14921
 
14922
      public short getThriftFieldId() {
14923
        return _thriftId;
14924
      }
14925
 
14926
      public String getFieldName() {
14927
        return _fieldName;
14928
      }
14929
    }
14930
 
14931
    // isset id assignments
14932
    private static final int __PROVIDERID_ISSET_ID = 0;
14933
    private static final int __EXP_ISSET_ID = 1;
14934
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14935
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14936
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14937
 
14938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14939
    static {
14940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14941
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14942
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14943
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14944
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14945
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14947
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14949
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14953
    }
14954
 
14955
    public updatePincode_args() {
14956
    }
14957
 
14958
    public updatePincode_args(
14959
      long providerId,
14960
      String pincode,
14961
      boolean exp,
6524 rajveer 14962
      boolean cod,
14963
      boolean otgAvailable)
6322 amar.kumar 14964
    {
14965
      this();
14966
      this.providerId = providerId;
14967
      setProviderIdIsSet(true);
14968
      this.pincode = pincode;
14969
      this.exp = exp;
14970
      setExpIsSet(true);
14971
      this.cod = cod;
14972
      setCodIsSet(true);
6524 rajveer 14973
      this.otgAvailable = otgAvailable;
14974
      setOtgAvailableIsSet(true);
6322 amar.kumar 14975
    }
14976
 
14977
    /**
14978
     * Performs a deep copy on <i>other</i>.
14979
     */
14980
    public updatePincode_args(updatePincode_args other) {
14981
      __isset_bit_vector.clear();
14982
      __isset_bit_vector.or(other.__isset_bit_vector);
14983
      this.providerId = other.providerId;
14984
      if (other.isSetPincode()) {
14985
        this.pincode = other.pincode;
14986
      }
14987
      this.exp = other.exp;
14988
      this.cod = other.cod;
6524 rajveer 14989
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14990
    }
14991
 
14992
    public updatePincode_args deepCopy() {
14993
      return new updatePincode_args(this);
14994
    }
14995
 
14996
    @Override
14997
    public void clear() {
14998
      setProviderIdIsSet(false);
14999
      this.providerId = 0;
15000
      this.pincode = null;
15001
      setExpIsSet(false);
15002
      this.exp = false;
15003
      setCodIsSet(false);
15004
      this.cod = false;
6524 rajveer 15005
      setOtgAvailableIsSet(false);
15006
      this.otgAvailable = false;
6322 amar.kumar 15007
    }
15008
 
15009
    public long getProviderId() {
15010
      return this.providerId;
15011
    }
15012
 
15013
    public void setProviderId(long providerId) {
15014
      this.providerId = providerId;
15015
      setProviderIdIsSet(true);
15016
    }
15017
 
15018
    public void unsetProviderId() {
15019
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15020
    }
15021
 
15022
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15023
    public boolean isSetProviderId() {
15024
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15025
    }
15026
 
15027
    public void setProviderIdIsSet(boolean value) {
15028
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15029
    }
15030
 
15031
    public String getPincode() {
15032
      return this.pincode;
15033
    }
15034
 
15035
    public void setPincode(String pincode) {
15036
      this.pincode = pincode;
15037
    }
15038
 
15039
    public void unsetPincode() {
15040
      this.pincode = null;
15041
    }
15042
 
15043
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15044
    public boolean isSetPincode() {
15045
      return this.pincode != null;
15046
    }
15047
 
15048
    public void setPincodeIsSet(boolean value) {
15049
      if (!value) {
15050
        this.pincode = null;
15051
      }
15052
    }
15053
 
15054
    public boolean isExp() {
15055
      return this.exp;
15056
    }
15057
 
15058
    public void setExp(boolean exp) {
15059
      this.exp = exp;
15060
      setExpIsSet(true);
15061
    }
15062
 
15063
    public void unsetExp() {
15064
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15065
    }
15066
 
15067
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15068
    public boolean isSetExp() {
15069
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15070
    }
15071
 
15072
    public void setExpIsSet(boolean value) {
15073
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15074
    }
15075
 
15076
    public boolean isCod() {
15077
      return this.cod;
15078
    }
15079
 
15080
    public void setCod(boolean cod) {
15081
      this.cod = cod;
15082
      setCodIsSet(true);
15083
    }
15084
 
15085
    public void unsetCod() {
15086
      __isset_bit_vector.clear(__COD_ISSET_ID);
15087
    }
15088
 
15089
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15090
    public boolean isSetCod() {
15091
      return __isset_bit_vector.get(__COD_ISSET_ID);
15092
    }
15093
 
15094
    public void setCodIsSet(boolean value) {
15095
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15096
    }
15097
 
6524 rajveer 15098
    public boolean isOtgAvailable() {
15099
      return this.otgAvailable;
15100
    }
15101
 
15102
    public void setOtgAvailable(boolean otgAvailable) {
15103
      this.otgAvailable = otgAvailable;
15104
      setOtgAvailableIsSet(true);
15105
    }
15106
 
15107
    public void unsetOtgAvailable() {
15108
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15109
    }
15110
 
15111
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15112
    public boolean isSetOtgAvailable() {
15113
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15114
    }
15115
 
15116
    public void setOtgAvailableIsSet(boolean value) {
15117
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15118
    }
15119
 
6322 amar.kumar 15120
    public void setFieldValue(_Fields field, Object value) {
15121
      switch (field) {
15122
      case PROVIDER_ID:
15123
        if (value == null) {
15124
          unsetProviderId();
15125
        } else {
15126
          setProviderId((Long)value);
15127
        }
15128
        break;
15129
 
15130
      case PINCODE:
15131
        if (value == null) {
15132
          unsetPincode();
15133
        } else {
15134
          setPincode((String)value);
15135
        }
15136
        break;
15137
 
15138
      case EXP:
15139
        if (value == null) {
15140
          unsetExp();
15141
        } else {
15142
          setExp((Boolean)value);
15143
        }
15144
        break;
15145
 
15146
      case COD:
15147
        if (value == null) {
15148
          unsetCod();
15149
        } else {
15150
          setCod((Boolean)value);
15151
        }
15152
        break;
15153
 
6524 rajveer 15154
      case OTG_AVAILABLE:
15155
        if (value == null) {
15156
          unsetOtgAvailable();
15157
        } else {
15158
          setOtgAvailable((Boolean)value);
15159
        }
15160
        break;
15161
 
6322 amar.kumar 15162
      }
15163
    }
15164
 
15165
    public Object getFieldValue(_Fields field) {
15166
      switch (field) {
15167
      case PROVIDER_ID:
15168
        return Long.valueOf(getProviderId());
15169
 
15170
      case PINCODE:
15171
        return getPincode();
15172
 
15173
      case EXP:
15174
        return Boolean.valueOf(isExp());
15175
 
15176
      case COD:
15177
        return Boolean.valueOf(isCod());
15178
 
6524 rajveer 15179
      case OTG_AVAILABLE:
15180
        return Boolean.valueOf(isOtgAvailable());
15181
 
6322 amar.kumar 15182
      }
15183
      throw new IllegalStateException();
15184
    }
15185
 
15186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15187
    public boolean isSet(_Fields field) {
15188
      if (field == null) {
15189
        throw new IllegalArgumentException();
15190
      }
15191
 
15192
      switch (field) {
15193
      case PROVIDER_ID:
15194
        return isSetProviderId();
15195
      case PINCODE:
15196
        return isSetPincode();
15197
      case EXP:
15198
        return isSetExp();
15199
      case COD:
15200
        return isSetCod();
6524 rajveer 15201
      case OTG_AVAILABLE:
15202
        return isSetOtgAvailable();
6322 amar.kumar 15203
      }
15204
      throw new IllegalStateException();
15205
    }
15206
 
15207
    @Override
15208
    public boolean equals(Object that) {
15209
      if (that == null)
15210
        return false;
15211
      if (that instanceof updatePincode_args)
15212
        return this.equals((updatePincode_args)that);
15213
      return false;
15214
    }
15215
 
15216
    public boolean equals(updatePincode_args that) {
15217
      if (that == null)
15218
        return false;
15219
 
15220
      boolean this_present_providerId = true;
15221
      boolean that_present_providerId = true;
15222
      if (this_present_providerId || that_present_providerId) {
15223
        if (!(this_present_providerId && that_present_providerId))
15224
          return false;
15225
        if (this.providerId != that.providerId)
15226
          return false;
15227
      }
15228
 
15229
      boolean this_present_pincode = true && this.isSetPincode();
15230
      boolean that_present_pincode = true && that.isSetPincode();
15231
      if (this_present_pincode || that_present_pincode) {
15232
        if (!(this_present_pincode && that_present_pincode))
15233
          return false;
15234
        if (!this.pincode.equals(that.pincode))
15235
          return false;
15236
      }
15237
 
15238
      boolean this_present_exp = true;
15239
      boolean that_present_exp = true;
15240
      if (this_present_exp || that_present_exp) {
15241
        if (!(this_present_exp && that_present_exp))
15242
          return false;
15243
        if (this.exp != that.exp)
15244
          return false;
15245
      }
15246
 
15247
      boolean this_present_cod = true;
15248
      boolean that_present_cod = true;
15249
      if (this_present_cod || that_present_cod) {
15250
        if (!(this_present_cod && that_present_cod))
15251
          return false;
15252
        if (this.cod != that.cod)
15253
          return false;
15254
      }
15255
 
6524 rajveer 15256
      boolean this_present_otgAvailable = true;
15257
      boolean that_present_otgAvailable = true;
15258
      if (this_present_otgAvailable || that_present_otgAvailable) {
15259
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15260
          return false;
15261
        if (this.otgAvailable != that.otgAvailable)
15262
          return false;
15263
      }
15264
 
6322 amar.kumar 15265
      return true;
15266
    }
15267
 
15268
    @Override
15269
    public int hashCode() {
15270
      return 0;
15271
    }
15272
 
15273
    public int compareTo(updatePincode_args other) {
15274
      if (!getClass().equals(other.getClass())) {
15275
        return getClass().getName().compareTo(other.getClass().getName());
15276
      }
15277
 
15278
      int lastComparison = 0;
15279
      updatePincode_args typedOther = (updatePincode_args)other;
15280
 
15281
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15282
      if (lastComparison != 0) {
15283
        return lastComparison;
15284
      }
15285
      if (isSetProviderId()) {
15286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15287
        if (lastComparison != 0) {
15288
          return lastComparison;
15289
        }
15290
      }
15291
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15292
      if (lastComparison != 0) {
15293
        return lastComparison;
15294
      }
15295
      if (isSetPincode()) {
15296
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15297
        if (lastComparison != 0) {
15298
          return lastComparison;
15299
        }
15300
      }
15301
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15302
      if (lastComparison != 0) {
15303
        return lastComparison;
15304
      }
15305
      if (isSetExp()) {
15306
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15307
        if (lastComparison != 0) {
15308
          return lastComparison;
15309
        }
15310
      }
15311
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15312
      if (lastComparison != 0) {
15313
        return lastComparison;
15314
      }
15315
      if (isSetCod()) {
15316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15317
        if (lastComparison != 0) {
15318
          return lastComparison;
15319
        }
15320
      }
6524 rajveer 15321
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15322
      if (lastComparison != 0) {
15323
        return lastComparison;
15324
      }
15325
      if (isSetOtgAvailable()) {
15326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15327
        if (lastComparison != 0) {
15328
          return lastComparison;
15329
        }
15330
      }
6322 amar.kumar 15331
      return 0;
15332
    }
15333
 
15334
    public _Fields fieldForId(int fieldId) {
15335
      return _Fields.findByThriftId(fieldId);
15336
    }
15337
 
15338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15339
      org.apache.thrift.protocol.TField field;
15340
      iprot.readStructBegin();
15341
      while (true)
15342
      {
15343
        field = iprot.readFieldBegin();
15344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15345
          break;
15346
        }
15347
        switch (field.id) {
15348
          case 1: // PROVIDER_ID
15349
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15350
              this.providerId = iprot.readI64();
15351
              setProviderIdIsSet(true);
15352
            } else { 
15353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15354
            }
15355
            break;
15356
          case 2: // PINCODE
15357
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15358
              this.pincode = iprot.readString();
15359
            } else { 
15360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15361
            }
15362
            break;
15363
          case 3: // EXP
15364
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15365
              this.exp = iprot.readBool();
15366
              setExpIsSet(true);
15367
            } else { 
15368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15369
            }
15370
            break;
15371
          case 4: // COD
15372
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15373
              this.cod = iprot.readBool();
15374
              setCodIsSet(true);
15375
            } else { 
15376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15377
            }
15378
            break;
6524 rajveer 15379
          case 5: // OTG_AVAILABLE
15380
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15381
              this.otgAvailable = iprot.readBool();
15382
              setOtgAvailableIsSet(true);
15383
            } else { 
15384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15385
            }
15386
            break;
6322 amar.kumar 15387
          default:
15388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15389
        }
15390
        iprot.readFieldEnd();
15391
      }
15392
      iprot.readStructEnd();
15393
      validate();
15394
    }
15395
 
15396
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15397
      validate();
15398
 
15399
      oprot.writeStructBegin(STRUCT_DESC);
15400
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15401
      oprot.writeI64(this.providerId);
15402
      oprot.writeFieldEnd();
15403
      if (this.pincode != null) {
15404
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15405
        oprot.writeString(this.pincode);
15406
        oprot.writeFieldEnd();
15407
      }
15408
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15409
      oprot.writeBool(this.exp);
15410
      oprot.writeFieldEnd();
15411
      oprot.writeFieldBegin(COD_FIELD_DESC);
15412
      oprot.writeBool(this.cod);
15413
      oprot.writeFieldEnd();
6524 rajveer 15414
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15415
      oprot.writeBool(this.otgAvailable);
15416
      oprot.writeFieldEnd();
6322 amar.kumar 15417
      oprot.writeFieldStop();
15418
      oprot.writeStructEnd();
15419
    }
15420
 
15421
    @Override
15422
    public String toString() {
15423
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15424
      boolean first = true;
15425
 
15426
      sb.append("providerId:");
15427
      sb.append(this.providerId);
15428
      first = false;
15429
      if (!first) sb.append(", ");
15430
      sb.append("pincode:");
15431
      if (this.pincode == null) {
15432
        sb.append("null");
15433
      } else {
15434
        sb.append(this.pincode);
15435
      }
15436
      first = false;
15437
      if (!first) sb.append(", ");
15438
      sb.append("exp:");
15439
      sb.append(this.exp);
15440
      first = false;
15441
      if (!first) sb.append(", ");
15442
      sb.append("cod:");
15443
      sb.append(this.cod);
15444
      first = false;
6524 rajveer 15445
      if (!first) sb.append(", ");
15446
      sb.append("otgAvailable:");
15447
      sb.append(this.otgAvailable);
15448
      first = false;
6322 amar.kumar 15449
      sb.append(")");
15450
      return sb.toString();
15451
    }
15452
 
15453
    public void validate() throws org.apache.thrift.TException {
15454
      // check for required fields
15455
    }
15456
 
15457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15458
      try {
15459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15460
      } catch (org.apache.thrift.TException te) {
15461
        throw new java.io.IOException(te);
15462
      }
15463
    }
15464
 
15465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15466
      try {
15467
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15468
        __isset_bit_vector = new BitSet(1);
15469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15470
      } catch (org.apache.thrift.TException te) {
15471
        throw new java.io.IOException(te);
15472
      }
15473
    }
15474
 
15475
  }
15476
 
15477
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15479
 
15480
 
15481
 
15482
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15483
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15484
;
15485
 
15486
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15487
 
15488
      static {
15489
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15490
          byName.put(field.getFieldName(), field);
15491
        }
15492
      }
15493
 
15494
      /**
15495
       * Find the _Fields constant that matches fieldId, or null if its not found.
15496
       */
15497
      public static _Fields findByThriftId(int fieldId) {
15498
        switch(fieldId) {
15499
          default:
15500
            return null;
15501
        }
15502
      }
15503
 
15504
      /**
15505
       * Find the _Fields constant that matches fieldId, throwing an exception
15506
       * if it is not found.
15507
       */
15508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15509
        _Fields fields = findByThriftId(fieldId);
15510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15511
        return fields;
15512
      }
15513
 
15514
      /**
15515
       * Find the _Fields constant that matches name, or null if its not found.
15516
       */
15517
      public static _Fields findByName(String name) {
15518
        return byName.get(name);
15519
      }
15520
 
15521
      private final short _thriftId;
15522
      private final String _fieldName;
15523
 
15524
      _Fields(short thriftId, String fieldName) {
15525
        _thriftId = thriftId;
15526
        _fieldName = fieldName;
15527
      }
15528
 
15529
      public short getThriftFieldId() {
15530
        return _thriftId;
15531
      }
15532
 
15533
      public String getFieldName() {
15534
        return _fieldName;
15535
      }
15536
    }
15537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15538
    static {
15539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15540
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15541
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15542
    }
15543
 
15544
    public updatePincode_result() {
15545
    }
15546
 
15547
    /**
15548
     * Performs a deep copy on <i>other</i>.
15549
     */
15550
    public updatePincode_result(updatePincode_result other) {
15551
    }
15552
 
15553
    public updatePincode_result deepCopy() {
15554
      return new updatePincode_result(this);
15555
    }
15556
 
15557
    @Override
15558
    public void clear() {
15559
    }
15560
 
15561
    public void setFieldValue(_Fields field, Object value) {
15562
      switch (field) {
15563
      }
15564
    }
15565
 
15566
    public Object getFieldValue(_Fields field) {
15567
      switch (field) {
15568
      }
15569
      throw new IllegalStateException();
15570
    }
15571
 
15572
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15573
    public boolean isSet(_Fields field) {
15574
      if (field == null) {
15575
        throw new IllegalArgumentException();
15576
      }
15577
 
15578
      switch (field) {
15579
      }
15580
      throw new IllegalStateException();
15581
    }
15582
 
15583
    @Override
15584
    public boolean equals(Object that) {
15585
      if (that == null)
15586
        return false;
15587
      if (that instanceof updatePincode_result)
15588
        return this.equals((updatePincode_result)that);
15589
      return false;
15590
    }
15591
 
15592
    public boolean equals(updatePincode_result that) {
15593
      if (that == null)
15594
        return false;
15595
 
15596
      return true;
15597
    }
15598
 
15599
    @Override
15600
    public int hashCode() {
15601
      return 0;
15602
    }
15603
 
15604
    public int compareTo(updatePincode_result other) {
15605
      if (!getClass().equals(other.getClass())) {
15606
        return getClass().getName().compareTo(other.getClass().getName());
15607
      }
15608
 
15609
      int lastComparison = 0;
15610
      updatePincode_result typedOther = (updatePincode_result)other;
15611
 
15612
      return 0;
15613
    }
15614
 
15615
    public _Fields fieldForId(int fieldId) {
15616
      return _Fields.findByThriftId(fieldId);
15617
    }
15618
 
15619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15620
      org.apache.thrift.protocol.TField field;
15621
      iprot.readStructBegin();
15622
      while (true)
15623
      {
15624
        field = iprot.readFieldBegin();
15625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15626
          break;
15627
        }
15628
        switch (field.id) {
15629
          default:
15630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15631
        }
15632
        iprot.readFieldEnd();
15633
      }
15634
      iprot.readStructEnd();
15635
      validate();
15636
    }
15637
 
15638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15639
      oprot.writeStructBegin(STRUCT_DESC);
15640
 
15641
      oprot.writeFieldStop();
15642
      oprot.writeStructEnd();
15643
    }
15644
 
15645
    @Override
15646
    public String toString() {
15647
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15648
      boolean first = true;
15649
 
15650
      sb.append(")");
15651
      return sb.toString();
15652
    }
15653
 
15654
    public void validate() throws org.apache.thrift.TException {
15655
      // check for required fields
15656
    }
15657
 
15658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15659
      try {
15660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15661
      } catch (org.apache.thrift.TException te) {
15662
        throw new java.io.IOException(te);
15663
      }
15664
    }
15665
 
15666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15667
      try {
15668
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15669
      } catch (org.apache.thrift.TException te) {
15670
        throw new java.io.IOException(te);
15671
      }
15672
    }
15673
 
15674
  }
15675
 
7567 rajveer 15676
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15677
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15678
 
15679
    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);
15680
    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);
15681
    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 15682
    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 15683
 
15684
    private long providerId; // required
15685
    private boolean cod; // required
15686
    private List<String> awbs; // required
13146 manish.sha 15687
    private long awbUsedFor; // required
7567 rajveer 15688
 
15689
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15690
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15691
      PROVIDER_ID((short)1, "providerId"),
15692
      COD((short)2, "cod"),
13146 manish.sha 15693
      AWBS((short)3, "awbs"),
15694
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15695
 
15696
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15697
 
15698
      static {
15699
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15700
          byName.put(field.getFieldName(), field);
15701
        }
15702
      }
15703
 
15704
      /**
15705
       * Find the _Fields constant that matches fieldId, or null if its not found.
15706
       */
15707
      public static _Fields findByThriftId(int fieldId) {
15708
        switch(fieldId) {
15709
          case 1: // PROVIDER_ID
15710
            return PROVIDER_ID;
15711
          case 2: // COD
15712
            return COD;
15713
          case 3: // AWBS
15714
            return AWBS;
13146 manish.sha 15715
          case 4: // AWB_USED_FOR
15716
            return AWB_USED_FOR;
7567 rajveer 15717
          default:
15718
            return null;
15719
        }
15720
      }
15721
 
15722
      /**
15723
       * Find the _Fields constant that matches fieldId, throwing an exception
15724
       * if it is not found.
15725
       */
15726
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15727
        _Fields fields = findByThriftId(fieldId);
15728
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15729
        return fields;
15730
      }
15731
 
15732
      /**
15733
       * Find the _Fields constant that matches name, or null if its not found.
15734
       */
15735
      public static _Fields findByName(String name) {
15736
        return byName.get(name);
15737
      }
15738
 
15739
      private final short _thriftId;
15740
      private final String _fieldName;
15741
 
15742
      _Fields(short thriftId, String fieldName) {
15743
        _thriftId = thriftId;
15744
        _fieldName = fieldName;
15745
      }
15746
 
15747
      public short getThriftFieldId() {
15748
        return _thriftId;
15749
      }
15750
 
15751
      public String getFieldName() {
15752
        return _fieldName;
15753
      }
15754
    }
15755
 
15756
    // isset id assignments
15757
    private static final int __PROVIDERID_ISSET_ID = 0;
15758
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15759
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15760
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15761
 
15762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15763
    static {
15764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15765
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15766
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15767
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15769
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15770
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15771
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15772
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15773
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15774
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15775
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15776
    }
15777
 
15778
    public addNewAwbs_args() {
15779
    }
15780
 
15781
    public addNewAwbs_args(
15782
      long providerId,
15783
      boolean cod,
13146 manish.sha 15784
      List<String> awbs,
15785
      long awbUsedFor)
7567 rajveer 15786
    {
15787
      this();
15788
      this.providerId = providerId;
15789
      setProviderIdIsSet(true);
15790
      this.cod = cod;
15791
      setCodIsSet(true);
15792
      this.awbs = awbs;
13146 manish.sha 15793
      this.awbUsedFor = awbUsedFor;
15794
      setAwbUsedForIsSet(true);
7567 rajveer 15795
    }
15796
 
15797
    /**
15798
     * Performs a deep copy on <i>other</i>.
15799
     */
15800
    public addNewAwbs_args(addNewAwbs_args other) {
15801
      __isset_bit_vector.clear();
15802
      __isset_bit_vector.or(other.__isset_bit_vector);
15803
      this.providerId = other.providerId;
15804
      this.cod = other.cod;
15805
      if (other.isSetAwbs()) {
15806
        List<String> __this__awbs = new ArrayList<String>();
15807
        for (String other_element : other.awbs) {
15808
          __this__awbs.add(other_element);
15809
        }
15810
        this.awbs = __this__awbs;
15811
      }
13146 manish.sha 15812
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15813
    }
15814
 
15815
    public addNewAwbs_args deepCopy() {
15816
      return new addNewAwbs_args(this);
15817
    }
15818
 
15819
    @Override
15820
    public void clear() {
15821
      setProviderIdIsSet(false);
15822
      this.providerId = 0;
15823
      setCodIsSet(false);
15824
      this.cod = false;
15825
      this.awbs = null;
13146 manish.sha 15826
      setAwbUsedForIsSet(false);
15827
      this.awbUsedFor = 0;
7567 rajveer 15828
    }
15829
 
15830
    public long getProviderId() {
15831
      return this.providerId;
15832
    }
15833
 
15834
    public void setProviderId(long providerId) {
15835
      this.providerId = providerId;
15836
      setProviderIdIsSet(true);
15837
    }
15838
 
15839
    public void unsetProviderId() {
15840
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15841
    }
15842
 
15843
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15844
    public boolean isSetProviderId() {
15845
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15846
    }
15847
 
15848
    public void setProviderIdIsSet(boolean value) {
15849
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15850
    }
15851
 
15852
    public boolean isCod() {
15853
      return this.cod;
15854
    }
15855
 
15856
    public void setCod(boolean cod) {
15857
      this.cod = cod;
15858
      setCodIsSet(true);
15859
    }
15860
 
15861
    public void unsetCod() {
15862
      __isset_bit_vector.clear(__COD_ISSET_ID);
15863
    }
15864
 
15865
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15866
    public boolean isSetCod() {
15867
      return __isset_bit_vector.get(__COD_ISSET_ID);
15868
    }
15869
 
15870
    public void setCodIsSet(boolean value) {
15871
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15872
    }
15873
 
15874
    public int getAwbsSize() {
15875
      return (this.awbs == null) ? 0 : this.awbs.size();
15876
    }
15877
 
15878
    public java.util.Iterator<String> getAwbsIterator() {
15879
      return (this.awbs == null) ? null : this.awbs.iterator();
15880
    }
15881
 
15882
    public void addToAwbs(String elem) {
15883
      if (this.awbs == null) {
15884
        this.awbs = new ArrayList<String>();
15885
      }
15886
      this.awbs.add(elem);
15887
    }
15888
 
15889
    public List<String> getAwbs() {
15890
      return this.awbs;
15891
    }
15892
 
15893
    public void setAwbs(List<String> awbs) {
15894
      this.awbs = awbs;
15895
    }
15896
 
15897
    public void unsetAwbs() {
15898
      this.awbs = null;
15899
    }
15900
 
15901
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15902
    public boolean isSetAwbs() {
15903
      return this.awbs != null;
15904
    }
15905
 
15906
    public void setAwbsIsSet(boolean value) {
15907
      if (!value) {
15908
        this.awbs = null;
15909
      }
15910
    }
15911
 
13146 manish.sha 15912
    public long getAwbUsedFor() {
15913
      return this.awbUsedFor;
15914
    }
15915
 
15916
    public void setAwbUsedFor(long awbUsedFor) {
15917
      this.awbUsedFor = awbUsedFor;
15918
      setAwbUsedForIsSet(true);
15919
    }
15920
 
15921
    public void unsetAwbUsedFor() {
15922
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
15923
    }
15924
 
15925
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
15926
    public boolean isSetAwbUsedFor() {
15927
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
15928
    }
15929
 
15930
    public void setAwbUsedForIsSet(boolean value) {
15931
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
15932
    }
15933
 
7567 rajveer 15934
    public void setFieldValue(_Fields field, Object value) {
15935
      switch (field) {
15936
      case PROVIDER_ID:
15937
        if (value == null) {
15938
          unsetProviderId();
15939
        } else {
15940
          setProviderId((Long)value);
15941
        }
15942
        break;
15943
 
15944
      case COD:
15945
        if (value == null) {
15946
          unsetCod();
15947
        } else {
15948
          setCod((Boolean)value);
15949
        }
15950
        break;
15951
 
15952
      case AWBS:
15953
        if (value == null) {
15954
          unsetAwbs();
15955
        } else {
15956
          setAwbs((List<String>)value);
15957
        }
15958
        break;
15959
 
13146 manish.sha 15960
      case AWB_USED_FOR:
15961
        if (value == null) {
15962
          unsetAwbUsedFor();
15963
        } else {
15964
          setAwbUsedFor((Long)value);
15965
        }
15966
        break;
15967
 
7567 rajveer 15968
      }
15969
    }
15970
 
15971
    public Object getFieldValue(_Fields field) {
15972
      switch (field) {
15973
      case PROVIDER_ID:
15974
        return Long.valueOf(getProviderId());
15975
 
15976
      case COD:
15977
        return Boolean.valueOf(isCod());
15978
 
15979
      case AWBS:
15980
        return getAwbs();
15981
 
13146 manish.sha 15982
      case AWB_USED_FOR:
15983
        return Long.valueOf(getAwbUsedFor());
15984
 
7567 rajveer 15985
      }
15986
      throw new IllegalStateException();
15987
    }
15988
 
15989
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15990
    public boolean isSet(_Fields field) {
15991
      if (field == null) {
15992
        throw new IllegalArgumentException();
15993
      }
15994
 
15995
      switch (field) {
15996
      case PROVIDER_ID:
15997
        return isSetProviderId();
15998
      case COD:
15999
        return isSetCod();
16000
      case AWBS:
16001
        return isSetAwbs();
13146 manish.sha 16002
      case AWB_USED_FOR:
16003
        return isSetAwbUsedFor();
7567 rajveer 16004
      }
16005
      throw new IllegalStateException();
16006
    }
16007
 
16008
    @Override
16009
    public boolean equals(Object that) {
16010
      if (that == null)
16011
        return false;
16012
      if (that instanceof addNewAwbs_args)
16013
        return this.equals((addNewAwbs_args)that);
16014
      return false;
16015
    }
16016
 
16017
    public boolean equals(addNewAwbs_args that) {
16018
      if (that == null)
16019
        return false;
16020
 
16021
      boolean this_present_providerId = true;
16022
      boolean that_present_providerId = true;
16023
      if (this_present_providerId || that_present_providerId) {
16024
        if (!(this_present_providerId && that_present_providerId))
16025
          return false;
16026
        if (this.providerId != that.providerId)
16027
          return false;
16028
      }
16029
 
16030
      boolean this_present_cod = true;
16031
      boolean that_present_cod = true;
16032
      if (this_present_cod || that_present_cod) {
16033
        if (!(this_present_cod && that_present_cod))
16034
          return false;
16035
        if (this.cod != that.cod)
16036
          return false;
16037
      }
16038
 
16039
      boolean this_present_awbs = true && this.isSetAwbs();
16040
      boolean that_present_awbs = true && that.isSetAwbs();
16041
      if (this_present_awbs || that_present_awbs) {
16042
        if (!(this_present_awbs && that_present_awbs))
16043
          return false;
16044
        if (!this.awbs.equals(that.awbs))
16045
          return false;
16046
      }
16047
 
13146 manish.sha 16048
      boolean this_present_awbUsedFor = true;
16049
      boolean that_present_awbUsedFor = true;
16050
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16051
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16052
          return false;
16053
        if (this.awbUsedFor != that.awbUsedFor)
16054
          return false;
16055
      }
16056
 
7567 rajveer 16057
      return true;
16058
    }
16059
 
16060
    @Override
16061
    public int hashCode() {
16062
      return 0;
16063
    }
16064
 
16065
    public int compareTo(addNewAwbs_args other) {
16066
      if (!getClass().equals(other.getClass())) {
16067
        return getClass().getName().compareTo(other.getClass().getName());
16068
      }
16069
 
16070
      int lastComparison = 0;
16071
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16072
 
16073
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16074
      if (lastComparison != 0) {
16075
        return lastComparison;
16076
      }
16077
      if (isSetProviderId()) {
16078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16079
        if (lastComparison != 0) {
16080
          return lastComparison;
16081
        }
16082
      }
16083
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16084
      if (lastComparison != 0) {
16085
        return lastComparison;
16086
      }
16087
      if (isSetCod()) {
16088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16089
        if (lastComparison != 0) {
16090
          return lastComparison;
16091
        }
16092
      }
16093
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16094
      if (lastComparison != 0) {
16095
        return lastComparison;
16096
      }
16097
      if (isSetAwbs()) {
16098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16099
        if (lastComparison != 0) {
16100
          return lastComparison;
16101
        }
16102
      }
13146 manish.sha 16103
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16104
      if (lastComparison != 0) {
16105
        return lastComparison;
16106
      }
16107
      if (isSetAwbUsedFor()) {
16108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16109
        if (lastComparison != 0) {
16110
          return lastComparison;
16111
        }
16112
      }
7567 rajveer 16113
      return 0;
16114
    }
16115
 
16116
    public _Fields fieldForId(int fieldId) {
16117
      return _Fields.findByThriftId(fieldId);
16118
    }
16119
 
16120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16121
      org.apache.thrift.protocol.TField field;
16122
      iprot.readStructBegin();
16123
      while (true)
16124
      {
16125
        field = iprot.readFieldBegin();
16126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16127
          break;
16128
        }
16129
        switch (field.id) {
16130
          case 1: // PROVIDER_ID
16131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16132
              this.providerId = iprot.readI64();
16133
              setProviderIdIsSet(true);
16134
            } else { 
16135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16136
            }
16137
            break;
16138
          case 2: // COD
16139
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16140
              this.cod = iprot.readBool();
16141
              setCodIsSet(true);
16142
            } else { 
16143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16144
            }
16145
            break;
16146
          case 3: // AWBS
16147
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16148
              {
7792 anupam.sin 16149
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16150
                this.awbs = new ArrayList<String>(_list24.size);
16151
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16152
                {
7792 anupam.sin 16153
                  String _elem26; // required
16154
                  _elem26 = iprot.readString();
16155
                  this.awbs.add(_elem26);
7567 rajveer 16156
                }
16157
                iprot.readListEnd();
16158
              }
16159
            } else { 
16160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16161
            }
16162
            break;
13146 manish.sha 16163
          case 4: // AWB_USED_FOR
16164
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16165
              this.awbUsedFor = iprot.readI64();
16166
              setAwbUsedForIsSet(true);
16167
            } else { 
16168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16169
            }
16170
            break;
7567 rajveer 16171
          default:
16172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16173
        }
16174
        iprot.readFieldEnd();
16175
      }
16176
      iprot.readStructEnd();
16177
      validate();
16178
    }
16179
 
16180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16181
      validate();
16182
 
16183
      oprot.writeStructBegin(STRUCT_DESC);
16184
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16185
      oprot.writeI64(this.providerId);
16186
      oprot.writeFieldEnd();
16187
      oprot.writeFieldBegin(COD_FIELD_DESC);
16188
      oprot.writeBool(this.cod);
16189
      oprot.writeFieldEnd();
16190
      if (this.awbs != null) {
16191
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16192
        {
16193
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16194
          for (String _iter27 : this.awbs)
7567 rajveer 16195
          {
7792 anupam.sin 16196
            oprot.writeString(_iter27);
7567 rajveer 16197
          }
16198
          oprot.writeListEnd();
16199
        }
16200
        oprot.writeFieldEnd();
16201
      }
13146 manish.sha 16202
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16203
      oprot.writeI64(this.awbUsedFor);
16204
      oprot.writeFieldEnd();
7567 rajveer 16205
      oprot.writeFieldStop();
16206
      oprot.writeStructEnd();
16207
    }
16208
 
16209
    @Override
16210
    public String toString() {
16211
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16212
      boolean first = true;
16213
 
16214
      sb.append("providerId:");
16215
      sb.append(this.providerId);
16216
      first = false;
16217
      if (!first) sb.append(", ");
16218
      sb.append("cod:");
16219
      sb.append(this.cod);
16220
      first = false;
16221
      if (!first) sb.append(", ");
16222
      sb.append("awbs:");
16223
      if (this.awbs == null) {
16224
        sb.append("null");
16225
      } else {
16226
        sb.append(this.awbs);
16227
      }
16228
      first = false;
13146 manish.sha 16229
      if (!first) sb.append(", ");
16230
      sb.append("awbUsedFor:");
16231
      sb.append(this.awbUsedFor);
16232
      first = false;
7567 rajveer 16233
      sb.append(")");
16234
      return sb.toString();
16235
    }
16236
 
16237
    public void validate() throws org.apache.thrift.TException {
16238
      // check for required fields
16239
    }
16240
 
16241
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16242
      try {
16243
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16244
      } catch (org.apache.thrift.TException te) {
16245
        throw new java.io.IOException(te);
16246
      }
16247
    }
16248
 
16249
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16250
      try {
16251
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16252
        __isset_bit_vector = new BitSet(1);
16253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16254
      } catch (org.apache.thrift.TException te) {
16255
        throw new java.io.IOException(te);
16256
      }
16257
    }
16258
 
16259
  }
16260
 
16261
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16263
 
16264
    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);
16265
 
16266
    private boolean success; // required
16267
 
16268
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16269
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16270
      SUCCESS((short)0, "success");
16271
 
16272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16273
 
16274
      static {
16275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16276
          byName.put(field.getFieldName(), field);
16277
        }
16278
      }
16279
 
16280
      /**
16281
       * Find the _Fields constant that matches fieldId, or null if its not found.
16282
       */
16283
      public static _Fields findByThriftId(int fieldId) {
16284
        switch(fieldId) {
16285
          case 0: // SUCCESS
16286
            return SUCCESS;
16287
          default:
16288
            return null;
16289
        }
16290
      }
16291
 
16292
      /**
16293
       * Find the _Fields constant that matches fieldId, throwing an exception
16294
       * if it is not found.
16295
       */
16296
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16297
        _Fields fields = findByThriftId(fieldId);
16298
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16299
        return fields;
16300
      }
16301
 
16302
      /**
16303
       * Find the _Fields constant that matches name, or null if its not found.
16304
       */
16305
      public static _Fields findByName(String name) {
16306
        return byName.get(name);
16307
      }
16308
 
16309
      private final short _thriftId;
16310
      private final String _fieldName;
16311
 
16312
      _Fields(short thriftId, String fieldName) {
16313
        _thriftId = thriftId;
16314
        _fieldName = fieldName;
16315
      }
16316
 
16317
      public short getThriftFieldId() {
16318
        return _thriftId;
16319
      }
16320
 
16321
      public String getFieldName() {
16322
        return _fieldName;
16323
      }
16324
    }
16325
 
16326
    // isset id assignments
16327
    private static final int __SUCCESS_ISSET_ID = 0;
16328
    private BitSet __isset_bit_vector = new BitSet(1);
16329
 
16330
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16331
    static {
16332
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16333
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16337
    }
16338
 
16339
    public addNewAwbs_result() {
16340
    }
16341
 
16342
    public addNewAwbs_result(
16343
      boolean success)
16344
    {
16345
      this();
16346
      this.success = success;
16347
      setSuccessIsSet(true);
16348
    }
16349
 
16350
    /**
16351
     * Performs a deep copy on <i>other</i>.
16352
     */
16353
    public addNewAwbs_result(addNewAwbs_result other) {
16354
      __isset_bit_vector.clear();
16355
      __isset_bit_vector.or(other.__isset_bit_vector);
16356
      this.success = other.success;
16357
    }
16358
 
16359
    public addNewAwbs_result deepCopy() {
16360
      return new addNewAwbs_result(this);
16361
    }
16362
 
16363
    @Override
16364
    public void clear() {
16365
      setSuccessIsSet(false);
16366
      this.success = false;
16367
    }
16368
 
16369
    public boolean isSuccess() {
16370
      return this.success;
16371
    }
16372
 
16373
    public void setSuccess(boolean success) {
16374
      this.success = success;
16375
      setSuccessIsSet(true);
16376
    }
16377
 
16378
    public void unsetSuccess() {
16379
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16380
    }
16381
 
16382
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16383
    public boolean isSetSuccess() {
16384
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16385
    }
16386
 
16387
    public void setSuccessIsSet(boolean value) {
16388
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16389
    }
16390
 
16391
    public void setFieldValue(_Fields field, Object value) {
16392
      switch (field) {
16393
      case SUCCESS:
16394
        if (value == null) {
16395
          unsetSuccess();
16396
        } else {
16397
          setSuccess((Boolean)value);
16398
        }
16399
        break;
16400
 
16401
      }
16402
    }
16403
 
16404
    public Object getFieldValue(_Fields field) {
16405
      switch (field) {
16406
      case SUCCESS:
16407
        return Boolean.valueOf(isSuccess());
16408
 
16409
      }
16410
      throw new IllegalStateException();
16411
    }
16412
 
16413
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16414
    public boolean isSet(_Fields field) {
16415
      if (field == null) {
16416
        throw new IllegalArgumentException();
16417
      }
16418
 
16419
      switch (field) {
16420
      case SUCCESS:
16421
        return isSetSuccess();
16422
      }
16423
      throw new IllegalStateException();
16424
    }
16425
 
16426
    @Override
16427
    public boolean equals(Object that) {
16428
      if (that == null)
16429
        return false;
16430
      if (that instanceof addNewAwbs_result)
16431
        return this.equals((addNewAwbs_result)that);
16432
      return false;
16433
    }
16434
 
16435
    public boolean equals(addNewAwbs_result that) {
16436
      if (that == null)
16437
        return false;
16438
 
16439
      boolean this_present_success = true;
16440
      boolean that_present_success = true;
16441
      if (this_present_success || that_present_success) {
16442
        if (!(this_present_success && that_present_success))
16443
          return false;
16444
        if (this.success != that.success)
16445
          return false;
16446
      }
16447
 
16448
      return true;
16449
    }
16450
 
16451
    @Override
16452
    public int hashCode() {
16453
      return 0;
16454
    }
16455
 
16456
    public int compareTo(addNewAwbs_result other) {
16457
      if (!getClass().equals(other.getClass())) {
16458
        return getClass().getName().compareTo(other.getClass().getName());
16459
      }
16460
 
16461
      int lastComparison = 0;
16462
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16463
 
16464
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16465
      if (lastComparison != 0) {
16466
        return lastComparison;
16467
      }
16468
      if (isSetSuccess()) {
16469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16470
        if (lastComparison != 0) {
16471
          return lastComparison;
16472
        }
16473
      }
16474
      return 0;
16475
    }
16476
 
16477
    public _Fields fieldForId(int fieldId) {
16478
      return _Fields.findByThriftId(fieldId);
16479
    }
16480
 
16481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16482
      org.apache.thrift.protocol.TField field;
16483
      iprot.readStructBegin();
16484
      while (true)
16485
      {
16486
        field = iprot.readFieldBegin();
16487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16488
          break;
16489
        }
16490
        switch (field.id) {
16491
          case 0: // SUCCESS
16492
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16493
              this.success = iprot.readBool();
16494
              setSuccessIsSet(true);
16495
            } else { 
16496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16497
            }
16498
            break;
16499
          default:
16500
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16501
        }
16502
        iprot.readFieldEnd();
16503
      }
16504
      iprot.readStructEnd();
16505
      validate();
16506
    }
16507
 
16508
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16509
      oprot.writeStructBegin(STRUCT_DESC);
16510
 
16511
      if (this.isSetSuccess()) {
16512
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16513
        oprot.writeBool(this.success);
16514
        oprot.writeFieldEnd();
16515
      }
16516
      oprot.writeFieldStop();
16517
      oprot.writeStructEnd();
16518
    }
16519
 
16520
    @Override
16521
    public String toString() {
16522
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16523
      boolean first = true;
16524
 
16525
      sb.append("success:");
16526
      sb.append(this.success);
16527
      first = false;
16528
      sb.append(")");
16529
      return sb.toString();
16530
    }
16531
 
16532
    public void validate() throws org.apache.thrift.TException {
16533
      // check for required fields
16534
    }
16535
 
16536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16537
      try {
16538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16539
      } catch (org.apache.thrift.TException te) {
16540
        throw new java.io.IOException(te);
16541
      }
16542
    }
16543
 
16544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16545
      try {
16546
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16547
      } catch (org.apache.thrift.TException te) {
16548
        throw new java.io.IOException(te);
16549
      }
16550
    }
16551
 
16552
  }
16553
 
7788 manish.sha 16554
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16556
 
7788 manish.sha 16557
    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);
16558
    private static final org.apache.thrift.protocol.TField RUN_COMPLETE_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("runCompleteUpdate", org.apache.thrift.protocol.TType.BOOL, (short)2);
7737 manish.sha 16559
 
7788 manish.sha 16560
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16561
    private boolean runCompleteUpdate; // required
7737 manish.sha 16562
 
16563
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16564
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16565
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16566
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16567
 
16568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16569
 
16570
      static {
16571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16572
          byName.put(field.getFieldName(), field);
16573
        }
16574
      }
16575
 
16576
      /**
16577
       * Find the _Fields constant that matches fieldId, or null if its not found.
16578
       */
16579
      public static _Fields findByThriftId(int fieldId) {
16580
        switch(fieldId) {
7788 manish.sha 16581
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16582
            return LOGISTICS_LOCATION_INFO_LIST;
16583
          case 2: // RUN_COMPLETE_UPDATE
16584
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16585
          default:
16586
            return null;
16587
        }
16588
      }
16589
 
16590
      /**
16591
       * Find the _Fields constant that matches fieldId, throwing an exception
16592
       * if it is not found.
16593
       */
16594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16595
        _Fields fields = findByThriftId(fieldId);
16596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16597
        return fields;
16598
      }
16599
 
16600
      /**
16601
       * Find the _Fields constant that matches name, or null if its not found.
16602
       */
16603
      public static _Fields findByName(String name) {
16604
        return byName.get(name);
16605
      }
16606
 
16607
      private final short _thriftId;
16608
      private final String _fieldName;
16609
 
16610
      _Fields(short thriftId, String fieldName) {
16611
        _thriftId = thriftId;
16612
        _fieldName = fieldName;
16613
      }
16614
 
16615
      public short getThriftFieldId() {
16616
        return _thriftId;
16617
      }
16618
 
16619
      public String getFieldName() {
16620
        return _fieldName;
16621
      }
16622
    }
16623
 
16624
    // isset id assignments
7788 manish.sha 16625
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16626
    private BitSet __isset_bit_vector = new BitSet(1);
16627
 
16628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16629
    static {
16630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16631
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16632
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16633
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16634
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16638
    }
16639
 
7788 manish.sha 16640
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16641
    }
16642
 
7788 manish.sha 16643
    public runLogisticsLocationInfoUpdate_args(
16644
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16645
      boolean runCompleteUpdate)
7737 manish.sha 16646
    {
16647
      this();
7788 manish.sha 16648
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16649
      this.runCompleteUpdate = runCompleteUpdate;
16650
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16651
    }
16652
 
16653
    /**
16654
     * Performs a deep copy on <i>other</i>.
16655
     */
7788 manish.sha 16656
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16657
      __isset_bit_vector.clear();
16658
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16659
      if (other.isSetLogisticsLocationInfoList()) {
16660
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16661
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16662
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16663
        }
16664
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16665
      }
7788 manish.sha 16666
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16667
    }
16668
 
7788 manish.sha 16669
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16670
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16671
    }
16672
 
16673
    @Override
16674
    public void clear() {
7788 manish.sha 16675
      this.logisticsLocationInfoList = null;
16676
      setRunCompleteUpdateIsSet(false);
16677
      this.runCompleteUpdate = false;
7737 manish.sha 16678
    }
16679
 
7788 manish.sha 16680
    public int getLogisticsLocationInfoListSize() {
16681
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16682
    }
16683
 
7788 manish.sha 16684
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16685
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16686
    }
16687
 
7788 manish.sha 16688
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16689
      if (this.logisticsLocationInfoList == null) {
16690
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16691
      }
16692
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16693
    }
16694
 
7788 manish.sha 16695
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16696
      return this.logisticsLocationInfoList;
7737 manish.sha 16697
    }
16698
 
7788 manish.sha 16699
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16700
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16701
    }
16702
 
7788 manish.sha 16703
    public void unsetLogisticsLocationInfoList() {
16704
      this.logisticsLocationInfoList = null;
7737 manish.sha 16705
    }
16706
 
7788 manish.sha 16707
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16708
    public boolean isSetLogisticsLocationInfoList() {
16709
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16710
    }
16711
 
7788 manish.sha 16712
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16713
      if (!value) {
16714
        this.logisticsLocationInfoList = null;
16715
      }
7737 manish.sha 16716
    }
16717
 
7788 manish.sha 16718
    public boolean isRunCompleteUpdate() {
16719
      return this.runCompleteUpdate;
7737 manish.sha 16720
    }
16721
 
7788 manish.sha 16722
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16723
      this.runCompleteUpdate = runCompleteUpdate;
16724
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16725
    }
16726
 
7788 manish.sha 16727
    public void unsetRunCompleteUpdate() {
16728
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16729
    }
16730
 
16731
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16732
    public boolean isSetRunCompleteUpdate() {
16733
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16734
    }
16735
 
16736
    public void setRunCompleteUpdateIsSet(boolean value) {
16737
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16738
    }
16739
 
7737 manish.sha 16740
    public void setFieldValue(_Fields field, Object value) {
16741
      switch (field) {
7788 manish.sha 16742
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16743
        if (value == null) {
7788 manish.sha 16744
          unsetLogisticsLocationInfoList();
7737 manish.sha 16745
        } else {
7788 manish.sha 16746
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16747
        }
16748
        break;
16749
 
7788 manish.sha 16750
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16751
        if (value == null) {
7788 manish.sha 16752
          unsetRunCompleteUpdate();
7737 manish.sha 16753
        } else {
7788 manish.sha 16754
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16755
        }
16756
        break;
16757
 
16758
      }
16759
    }
16760
 
16761
    public Object getFieldValue(_Fields field) {
16762
      switch (field) {
7788 manish.sha 16763
      case LOGISTICS_LOCATION_INFO_LIST:
16764
        return getLogisticsLocationInfoList();
7737 manish.sha 16765
 
7788 manish.sha 16766
      case RUN_COMPLETE_UPDATE:
16767
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16768
 
16769
      }
16770
      throw new IllegalStateException();
16771
    }
16772
 
16773
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16774
    public boolean isSet(_Fields field) {
16775
      if (field == null) {
16776
        throw new IllegalArgumentException();
16777
      }
16778
 
16779
      switch (field) {
7788 manish.sha 16780
      case LOGISTICS_LOCATION_INFO_LIST:
16781
        return isSetLogisticsLocationInfoList();
16782
      case RUN_COMPLETE_UPDATE:
16783
        return isSetRunCompleteUpdate();
7737 manish.sha 16784
      }
16785
      throw new IllegalStateException();
16786
    }
16787
 
16788
    @Override
16789
    public boolean equals(Object that) {
16790
      if (that == null)
16791
        return false;
7788 manish.sha 16792
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16793
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16794
      return false;
16795
    }
16796
 
7788 manish.sha 16797
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16798
      if (that == null)
16799
        return false;
16800
 
7788 manish.sha 16801
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16802
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16803
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16804
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16805
          return false;
7788 manish.sha 16806
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16807
          return false;
16808
      }
16809
 
7788 manish.sha 16810
      boolean this_present_runCompleteUpdate = true;
16811
      boolean that_present_runCompleteUpdate = true;
16812
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16813
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16814
          return false;
7788 manish.sha 16815
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16816
          return false;
16817
      }
16818
 
16819
      return true;
16820
    }
16821
 
16822
    @Override
16823
    public int hashCode() {
16824
      return 0;
16825
    }
16826
 
7788 manish.sha 16827
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16828
      if (!getClass().equals(other.getClass())) {
16829
        return getClass().getName().compareTo(other.getClass().getName());
16830
      }
16831
 
16832
      int lastComparison = 0;
7788 manish.sha 16833
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16834
 
7788 manish.sha 16835
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16836
      if (lastComparison != 0) {
16837
        return lastComparison;
16838
      }
7788 manish.sha 16839
      if (isSetLogisticsLocationInfoList()) {
16840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16841
        if (lastComparison != 0) {
16842
          return lastComparison;
16843
        }
16844
      }
7788 manish.sha 16845
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16846
      if (lastComparison != 0) {
16847
        return lastComparison;
16848
      }
7788 manish.sha 16849
      if (isSetRunCompleteUpdate()) {
16850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16851
        if (lastComparison != 0) {
16852
          return lastComparison;
16853
        }
16854
      }
16855
      return 0;
16856
    }
16857
 
16858
    public _Fields fieldForId(int fieldId) {
16859
      return _Fields.findByThriftId(fieldId);
16860
    }
16861
 
16862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16863
      org.apache.thrift.protocol.TField field;
16864
      iprot.readStructBegin();
16865
      while (true)
16866
      {
16867
        field = iprot.readFieldBegin();
16868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16869
          break;
16870
        }
16871
        switch (field.id) {
7788 manish.sha 16872
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16873
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16874
              {
7808 anupam.sin 16875
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16876
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16877
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16878
                {
7808 anupam.sin 16879
                  LogisticsLocationInfo _elem30; // required
16880
                  _elem30 = new LogisticsLocationInfo();
16881
                  _elem30.read(iprot);
16882
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16883
                }
16884
                iprot.readListEnd();
16885
              }
7737 manish.sha 16886
            } else { 
16887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16888
            }
16889
            break;
7788 manish.sha 16890
          case 2: // RUN_COMPLETE_UPDATE
16891
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16892
              this.runCompleteUpdate = iprot.readBool();
16893
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16894
            } else { 
16895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16896
            }
16897
            break;
16898
          default:
16899
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16900
        }
16901
        iprot.readFieldEnd();
16902
      }
16903
      iprot.readStructEnd();
16904
      validate();
16905
    }
16906
 
16907
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16908
      validate();
16909
 
16910
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16911
      if (this.logisticsLocationInfoList != null) {
16912
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16913
        {
16914
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16915
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16916
          {
7808 anupam.sin 16917
            _iter31.write(oprot);
7788 manish.sha 16918
          }
16919
          oprot.writeListEnd();
16920
        }
7737 manish.sha 16921
        oprot.writeFieldEnd();
16922
      }
7788 manish.sha 16923
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16924
      oprot.writeBool(this.runCompleteUpdate);
16925
      oprot.writeFieldEnd();
7737 manish.sha 16926
      oprot.writeFieldStop();
16927
      oprot.writeStructEnd();
16928
    }
16929
 
16930
    @Override
16931
    public String toString() {
7788 manish.sha 16932
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16933
      boolean first = true;
16934
 
7788 manish.sha 16935
      sb.append("logisticsLocationInfoList:");
16936
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16937
        sb.append("null");
16938
      } else {
7788 manish.sha 16939
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16940
      }
16941
      first = false;
7788 manish.sha 16942
      if (!first) sb.append(", ");
16943
      sb.append("runCompleteUpdate:");
16944
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16945
      first = false;
16946
      sb.append(")");
16947
      return sb.toString();
16948
    }
16949
 
16950
    public void validate() throws org.apache.thrift.TException {
16951
      // check for required fields
16952
    }
16953
 
16954
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16955
      try {
16956
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16957
      } catch (org.apache.thrift.TException te) {
16958
        throw new java.io.IOException(te);
16959
      }
16960
    }
16961
 
16962
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16963
      try {
7788 manish.sha 16964
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16965
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16966
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16967
      } catch (org.apache.thrift.TException te) {
16968
        throw new java.io.IOException(te);
16969
      }
16970
    }
16971
 
16972
  }
16973
 
7788 manish.sha 16974
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16975
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16976
 
16977
 
16978
 
16979
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16980
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16981
;
16982
 
16983
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16984
 
16985
      static {
16986
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16987
          byName.put(field.getFieldName(), field);
16988
        }
16989
      }
16990
 
16991
      /**
16992
       * Find the _Fields constant that matches fieldId, or null if its not found.
16993
       */
16994
      public static _Fields findByThriftId(int fieldId) {
16995
        switch(fieldId) {
16996
          default:
16997
            return null;
16998
        }
16999
      }
17000
 
17001
      /**
17002
       * Find the _Fields constant that matches fieldId, throwing an exception
17003
       * if it is not found.
17004
       */
17005
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17006
        _Fields fields = findByThriftId(fieldId);
17007
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17008
        return fields;
17009
      }
17010
 
17011
      /**
17012
       * Find the _Fields constant that matches name, or null if its not found.
17013
       */
17014
      public static _Fields findByName(String name) {
17015
        return byName.get(name);
17016
      }
17017
 
17018
      private final short _thriftId;
17019
      private final String _fieldName;
17020
 
17021
      _Fields(short thriftId, String fieldName) {
17022
        _thriftId = thriftId;
17023
        _fieldName = fieldName;
17024
      }
17025
 
17026
      public short getThriftFieldId() {
17027
        return _thriftId;
17028
      }
17029
 
17030
      public String getFieldName() {
17031
        return _fieldName;
17032
      }
17033
    }
17034
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17035
    static {
17036
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17039
    }
17040
 
7788 manish.sha 17041
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17042
    }
17043
 
17044
    /**
17045
     * Performs a deep copy on <i>other</i>.
17046
     */
7788 manish.sha 17047
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17048
    }
17049
 
7788 manish.sha 17050
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17051
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17052
    }
17053
 
17054
    @Override
17055
    public void clear() {
17056
    }
17057
 
17058
    public void setFieldValue(_Fields field, Object value) {
17059
      switch (field) {
17060
      }
17061
    }
17062
 
17063
    public Object getFieldValue(_Fields field) {
17064
      switch (field) {
17065
      }
17066
      throw new IllegalStateException();
17067
    }
17068
 
17069
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17070
    public boolean isSet(_Fields field) {
17071
      if (field == null) {
17072
        throw new IllegalArgumentException();
17073
      }
17074
 
17075
      switch (field) {
17076
      }
17077
      throw new IllegalStateException();
17078
    }
17079
 
17080
    @Override
17081
    public boolean equals(Object that) {
17082
      if (that == null)
17083
        return false;
7788 manish.sha 17084
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17085
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17086
      return false;
17087
    }
17088
 
7788 manish.sha 17089
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17090
      if (that == null)
17091
        return false;
17092
 
17093
      return true;
17094
    }
17095
 
17096
    @Override
17097
    public int hashCode() {
17098
      return 0;
17099
    }
17100
 
7788 manish.sha 17101
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17102
      if (!getClass().equals(other.getClass())) {
17103
        return getClass().getName().compareTo(other.getClass().getName());
17104
      }
17105
 
17106
      int lastComparison = 0;
7788 manish.sha 17107
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17108
 
17109
      return 0;
17110
    }
17111
 
17112
    public _Fields fieldForId(int fieldId) {
17113
      return _Fields.findByThriftId(fieldId);
17114
    }
17115
 
17116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17117
      org.apache.thrift.protocol.TField field;
17118
      iprot.readStructBegin();
17119
      while (true)
17120
      {
17121
        field = iprot.readFieldBegin();
17122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17123
          break;
17124
        }
17125
        switch (field.id) {
17126
          default:
17127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17128
        }
17129
        iprot.readFieldEnd();
17130
      }
17131
      iprot.readStructEnd();
17132
      validate();
17133
    }
17134
 
17135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17136
      oprot.writeStructBegin(STRUCT_DESC);
17137
 
17138
      oprot.writeFieldStop();
17139
      oprot.writeStructEnd();
17140
    }
17141
 
17142
    @Override
17143
    public String toString() {
7788 manish.sha 17144
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17145
      boolean first = true;
17146
 
17147
      sb.append(")");
17148
      return sb.toString();
17149
    }
17150
 
17151
    public void validate() throws org.apache.thrift.TException {
17152
      // check for required fields
17153
    }
17154
 
17155
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17156
      try {
17157
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17158
      } catch (org.apache.thrift.TException te) {
17159
        throw new java.io.IOException(te);
17160
      }
17161
    }
17162
 
17163
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17164
      try {
17165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17166
      } catch (org.apache.thrift.TException te) {
17167
        throw new java.io.IOException(te);
17168
      }
17169
    }
17170
 
17171
  }
17172
 
7888 rajveer 17173
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17175
 
17176
    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);
17177
    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);
17178
 
17179
    private long startDate; // required
17180
    private long days; // required
17181
 
17182
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17183
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17184
      START_DATE((short)1, "startDate"),
17185
      DAYS((short)2, "days");
17186
 
17187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17188
 
17189
      static {
17190
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17191
          byName.put(field.getFieldName(), field);
17192
        }
17193
      }
17194
 
17195
      /**
17196
       * Find the _Fields constant that matches fieldId, or null if its not found.
17197
       */
17198
      public static _Fields findByThriftId(int fieldId) {
17199
        switch(fieldId) {
17200
          case 1: // START_DATE
17201
            return START_DATE;
17202
          case 2: // DAYS
17203
            return DAYS;
17204
          default:
17205
            return null;
17206
        }
17207
      }
17208
 
17209
      /**
17210
       * Find the _Fields constant that matches fieldId, throwing an exception
17211
       * if it is not found.
17212
       */
17213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17214
        _Fields fields = findByThriftId(fieldId);
17215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17216
        return fields;
17217
      }
17218
 
17219
      /**
17220
       * Find the _Fields constant that matches name, or null if its not found.
17221
       */
17222
      public static _Fields findByName(String name) {
17223
        return byName.get(name);
17224
      }
17225
 
17226
      private final short _thriftId;
17227
      private final String _fieldName;
17228
 
17229
      _Fields(short thriftId, String fieldName) {
17230
        _thriftId = thriftId;
17231
        _fieldName = fieldName;
17232
      }
17233
 
17234
      public short getThriftFieldId() {
17235
        return _thriftId;
17236
      }
17237
 
17238
      public String getFieldName() {
17239
        return _fieldName;
17240
      }
17241
    }
17242
 
17243
    // isset id assignments
17244
    private static final int __STARTDATE_ISSET_ID = 0;
17245
    private static final int __DAYS_ISSET_ID = 1;
17246
    private BitSet __isset_bit_vector = new BitSet(2);
17247
 
17248
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17249
    static {
17250
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17251
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17253
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17257
    }
17258
 
17259
    public adjustDeliveryDays_args() {
17260
    }
17261
 
17262
    public adjustDeliveryDays_args(
17263
      long startDate,
17264
      long days)
17265
    {
17266
      this();
17267
      this.startDate = startDate;
17268
      setStartDateIsSet(true);
17269
      this.days = days;
17270
      setDaysIsSet(true);
17271
    }
17272
 
17273
    /**
17274
     * Performs a deep copy on <i>other</i>.
17275
     */
17276
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17277
      __isset_bit_vector.clear();
17278
      __isset_bit_vector.or(other.__isset_bit_vector);
17279
      this.startDate = other.startDate;
17280
      this.days = other.days;
17281
    }
17282
 
17283
    public adjustDeliveryDays_args deepCopy() {
17284
      return new adjustDeliveryDays_args(this);
17285
    }
17286
 
17287
    @Override
17288
    public void clear() {
17289
      setStartDateIsSet(false);
17290
      this.startDate = 0;
17291
      setDaysIsSet(false);
17292
      this.days = 0;
17293
    }
17294
 
17295
    public long getStartDate() {
17296
      return this.startDate;
17297
    }
17298
 
17299
    public void setStartDate(long startDate) {
17300
      this.startDate = startDate;
17301
      setStartDateIsSet(true);
17302
    }
17303
 
17304
    public void unsetStartDate() {
17305
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17306
    }
17307
 
17308
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17309
    public boolean isSetStartDate() {
17310
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17311
    }
17312
 
17313
    public void setStartDateIsSet(boolean value) {
17314
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17315
    }
17316
 
17317
    public long getDays() {
17318
      return this.days;
17319
    }
17320
 
17321
    public void setDays(long days) {
17322
      this.days = days;
17323
      setDaysIsSet(true);
17324
    }
17325
 
17326
    public void unsetDays() {
17327
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17328
    }
17329
 
17330
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17331
    public boolean isSetDays() {
17332
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17333
    }
17334
 
17335
    public void setDaysIsSet(boolean value) {
17336
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17337
    }
17338
 
17339
    public void setFieldValue(_Fields field, Object value) {
17340
      switch (field) {
17341
      case START_DATE:
17342
        if (value == null) {
17343
          unsetStartDate();
17344
        } else {
17345
          setStartDate((Long)value);
17346
        }
17347
        break;
17348
 
17349
      case DAYS:
17350
        if (value == null) {
17351
          unsetDays();
17352
        } else {
17353
          setDays((Long)value);
17354
        }
17355
        break;
17356
 
17357
      }
17358
    }
17359
 
17360
    public Object getFieldValue(_Fields field) {
17361
      switch (field) {
17362
      case START_DATE:
17363
        return Long.valueOf(getStartDate());
17364
 
17365
      case DAYS:
17366
        return Long.valueOf(getDays());
17367
 
17368
      }
17369
      throw new IllegalStateException();
17370
    }
17371
 
17372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17373
    public boolean isSet(_Fields field) {
17374
      if (field == null) {
17375
        throw new IllegalArgumentException();
17376
      }
17377
 
17378
      switch (field) {
17379
      case START_DATE:
17380
        return isSetStartDate();
17381
      case DAYS:
17382
        return isSetDays();
17383
      }
17384
      throw new IllegalStateException();
17385
    }
17386
 
17387
    @Override
17388
    public boolean equals(Object that) {
17389
      if (that == null)
17390
        return false;
17391
      if (that instanceof adjustDeliveryDays_args)
17392
        return this.equals((adjustDeliveryDays_args)that);
17393
      return false;
17394
    }
17395
 
17396
    public boolean equals(adjustDeliveryDays_args that) {
17397
      if (that == null)
17398
        return false;
17399
 
17400
      boolean this_present_startDate = true;
17401
      boolean that_present_startDate = true;
17402
      if (this_present_startDate || that_present_startDate) {
17403
        if (!(this_present_startDate && that_present_startDate))
17404
          return false;
17405
        if (this.startDate != that.startDate)
17406
          return false;
17407
      }
17408
 
17409
      boolean this_present_days = true;
17410
      boolean that_present_days = true;
17411
      if (this_present_days || that_present_days) {
17412
        if (!(this_present_days && that_present_days))
17413
          return false;
17414
        if (this.days != that.days)
17415
          return false;
17416
      }
17417
 
17418
      return true;
17419
    }
17420
 
17421
    @Override
17422
    public int hashCode() {
17423
      return 0;
17424
    }
17425
 
17426
    public int compareTo(adjustDeliveryDays_args other) {
17427
      if (!getClass().equals(other.getClass())) {
17428
        return getClass().getName().compareTo(other.getClass().getName());
17429
      }
17430
 
17431
      int lastComparison = 0;
17432
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17433
 
17434
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17435
      if (lastComparison != 0) {
17436
        return lastComparison;
17437
      }
17438
      if (isSetStartDate()) {
17439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17440
        if (lastComparison != 0) {
17441
          return lastComparison;
17442
        }
17443
      }
17444
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17445
      if (lastComparison != 0) {
17446
        return lastComparison;
17447
      }
17448
      if (isSetDays()) {
17449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17450
        if (lastComparison != 0) {
17451
          return lastComparison;
17452
        }
17453
      }
17454
      return 0;
17455
    }
17456
 
17457
    public _Fields fieldForId(int fieldId) {
17458
      return _Fields.findByThriftId(fieldId);
17459
    }
17460
 
17461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17462
      org.apache.thrift.protocol.TField field;
17463
      iprot.readStructBegin();
17464
      while (true)
17465
      {
17466
        field = iprot.readFieldBegin();
17467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17468
          break;
17469
        }
17470
        switch (field.id) {
17471
          case 1: // START_DATE
17472
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17473
              this.startDate = iprot.readI64();
17474
              setStartDateIsSet(true);
17475
            } else { 
17476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17477
            }
17478
            break;
17479
          case 2: // DAYS
17480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17481
              this.days = iprot.readI64();
17482
              setDaysIsSet(true);
17483
            } else { 
17484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17485
            }
17486
            break;
17487
          default:
17488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17489
        }
17490
        iprot.readFieldEnd();
17491
      }
17492
      iprot.readStructEnd();
17493
      validate();
17494
    }
17495
 
17496
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17497
      validate();
17498
 
17499
      oprot.writeStructBegin(STRUCT_DESC);
17500
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17501
      oprot.writeI64(this.startDate);
17502
      oprot.writeFieldEnd();
17503
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17504
      oprot.writeI64(this.days);
17505
      oprot.writeFieldEnd();
17506
      oprot.writeFieldStop();
17507
      oprot.writeStructEnd();
17508
    }
17509
 
17510
    @Override
17511
    public String toString() {
17512
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17513
      boolean first = true;
17514
 
17515
      sb.append("startDate:");
17516
      sb.append(this.startDate);
17517
      first = false;
17518
      if (!first) sb.append(", ");
17519
      sb.append("days:");
17520
      sb.append(this.days);
17521
      first = false;
17522
      sb.append(")");
17523
      return sb.toString();
17524
    }
17525
 
17526
    public void validate() throws org.apache.thrift.TException {
17527
      // check for required fields
17528
    }
17529
 
17530
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17531
      try {
17532
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17533
      } catch (org.apache.thrift.TException te) {
17534
        throw new java.io.IOException(te);
17535
      }
17536
    }
17537
 
17538
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17539
      try {
17540
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17541
        __isset_bit_vector = new BitSet(1);
17542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17543
      } catch (org.apache.thrift.TException te) {
17544
        throw new java.io.IOException(te);
17545
      }
17546
    }
17547
 
17548
  }
17549
 
17550
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17552
 
17553
    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);
17554
 
17555
    private long success; // required
17556
 
17557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17559
      SUCCESS((short)0, "success");
17560
 
17561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17562
 
17563
      static {
17564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17565
          byName.put(field.getFieldName(), field);
17566
        }
17567
      }
17568
 
17569
      /**
17570
       * Find the _Fields constant that matches fieldId, or null if its not found.
17571
       */
17572
      public static _Fields findByThriftId(int fieldId) {
17573
        switch(fieldId) {
17574
          case 0: // SUCCESS
17575
            return SUCCESS;
17576
          default:
17577
            return null;
17578
        }
17579
      }
17580
 
17581
      /**
17582
       * Find the _Fields constant that matches fieldId, throwing an exception
17583
       * if it is not found.
17584
       */
17585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17586
        _Fields fields = findByThriftId(fieldId);
17587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17588
        return fields;
17589
      }
17590
 
17591
      /**
17592
       * Find the _Fields constant that matches name, or null if its not found.
17593
       */
17594
      public static _Fields findByName(String name) {
17595
        return byName.get(name);
17596
      }
17597
 
17598
      private final short _thriftId;
17599
      private final String _fieldName;
17600
 
17601
      _Fields(short thriftId, String fieldName) {
17602
        _thriftId = thriftId;
17603
        _fieldName = fieldName;
17604
      }
17605
 
17606
      public short getThriftFieldId() {
17607
        return _thriftId;
17608
      }
17609
 
17610
      public String getFieldName() {
17611
        return _fieldName;
17612
      }
17613
    }
17614
 
17615
    // isset id assignments
17616
    private static final int __SUCCESS_ISSET_ID = 0;
17617
    private BitSet __isset_bit_vector = new BitSet(1);
17618
 
17619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17620
    static {
17621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17622
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17623
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17624
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17625
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17626
    }
17627
 
17628
    public adjustDeliveryDays_result() {
17629
    }
17630
 
17631
    public adjustDeliveryDays_result(
17632
      long success)
17633
    {
17634
      this();
17635
      this.success = success;
17636
      setSuccessIsSet(true);
17637
    }
17638
 
17639
    /**
17640
     * Performs a deep copy on <i>other</i>.
17641
     */
17642
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17643
      __isset_bit_vector.clear();
17644
      __isset_bit_vector.or(other.__isset_bit_vector);
17645
      this.success = other.success;
17646
    }
17647
 
17648
    public adjustDeliveryDays_result deepCopy() {
17649
      return new adjustDeliveryDays_result(this);
17650
    }
17651
 
17652
    @Override
17653
    public void clear() {
17654
      setSuccessIsSet(false);
17655
      this.success = 0;
17656
    }
17657
 
17658
    public long getSuccess() {
17659
      return this.success;
17660
    }
17661
 
17662
    public void setSuccess(long success) {
17663
      this.success = success;
17664
      setSuccessIsSet(true);
17665
    }
17666
 
17667
    public void unsetSuccess() {
17668
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17669
    }
17670
 
17671
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17672
    public boolean isSetSuccess() {
17673
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17674
    }
17675
 
17676
    public void setSuccessIsSet(boolean value) {
17677
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17678
    }
17679
 
17680
    public void setFieldValue(_Fields field, Object value) {
17681
      switch (field) {
17682
      case SUCCESS:
17683
        if (value == null) {
17684
          unsetSuccess();
17685
        } else {
17686
          setSuccess((Long)value);
17687
        }
17688
        break;
17689
 
17690
      }
17691
    }
17692
 
17693
    public Object getFieldValue(_Fields field) {
17694
      switch (field) {
17695
      case SUCCESS:
17696
        return Long.valueOf(getSuccess());
17697
 
17698
      }
17699
      throw new IllegalStateException();
17700
    }
17701
 
17702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17703
    public boolean isSet(_Fields field) {
17704
      if (field == null) {
17705
        throw new IllegalArgumentException();
17706
      }
17707
 
17708
      switch (field) {
17709
      case SUCCESS:
17710
        return isSetSuccess();
17711
      }
17712
      throw new IllegalStateException();
17713
    }
17714
 
17715
    @Override
17716
    public boolean equals(Object that) {
17717
      if (that == null)
17718
        return false;
17719
      if (that instanceof adjustDeliveryDays_result)
17720
        return this.equals((adjustDeliveryDays_result)that);
17721
      return false;
17722
    }
17723
 
17724
    public boolean equals(adjustDeliveryDays_result that) {
17725
      if (that == null)
17726
        return false;
17727
 
17728
      boolean this_present_success = true;
17729
      boolean that_present_success = true;
17730
      if (this_present_success || that_present_success) {
17731
        if (!(this_present_success && that_present_success))
17732
          return false;
17733
        if (this.success != that.success)
17734
          return false;
17735
      }
17736
 
17737
      return true;
17738
    }
17739
 
17740
    @Override
17741
    public int hashCode() {
17742
      return 0;
17743
    }
17744
 
17745
    public int compareTo(adjustDeliveryDays_result other) {
17746
      if (!getClass().equals(other.getClass())) {
17747
        return getClass().getName().compareTo(other.getClass().getName());
17748
      }
17749
 
17750
      int lastComparison = 0;
17751
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17752
 
17753
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17754
      if (lastComparison != 0) {
17755
        return lastComparison;
17756
      }
17757
      if (isSetSuccess()) {
17758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17759
        if (lastComparison != 0) {
17760
          return lastComparison;
17761
        }
17762
      }
17763
      return 0;
17764
    }
17765
 
17766
    public _Fields fieldForId(int fieldId) {
17767
      return _Fields.findByThriftId(fieldId);
17768
    }
17769
 
17770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17771
      org.apache.thrift.protocol.TField field;
17772
      iprot.readStructBegin();
17773
      while (true)
17774
      {
17775
        field = iprot.readFieldBegin();
17776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17777
          break;
17778
        }
17779
        switch (field.id) {
17780
          case 0: // SUCCESS
17781
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17782
              this.success = iprot.readI64();
17783
              setSuccessIsSet(true);
17784
            } else { 
17785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17786
            }
17787
            break;
17788
          default:
17789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17790
        }
17791
        iprot.readFieldEnd();
17792
      }
17793
      iprot.readStructEnd();
17794
      validate();
17795
    }
17796
 
17797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17798
      oprot.writeStructBegin(STRUCT_DESC);
17799
 
17800
      if (this.isSetSuccess()) {
17801
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17802
        oprot.writeI64(this.success);
17803
        oprot.writeFieldEnd();
17804
      }
17805
      oprot.writeFieldStop();
17806
      oprot.writeStructEnd();
17807
    }
17808
 
17809
    @Override
17810
    public String toString() {
17811
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17812
      boolean first = true;
17813
 
17814
      sb.append("success:");
17815
      sb.append(this.success);
17816
      first = false;
17817
      sb.append(")");
17818
      return sb.toString();
17819
    }
17820
 
17821
    public void validate() throws org.apache.thrift.TException {
17822
      // check for required fields
17823
    }
17824
 
17825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17826
      try {
17827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17828
      } catch (org.apache.thrift.TException te) {
17829
        throw new java.io.IOException(te);
17830
      }
17831
    }
17832
 
17833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17834
      try {
17835
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17836
      } catch (org.apache.thrift.TException te) {
17837
        throw new java.io.IOException(te);
17838
      }
17839
    }
17840
 
17841
  }
17842
 
12895 manish.sha 17843
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17844
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17845
 
17846
    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);
17847
    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);
17848
 
17849
    private String pincode; // required
17850
    private long whLocation; // required
17851
 
17852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17854
      PINCODE((short)1, "pincode"),
17855
      WH_LOCATION((short)2, "whLocation");
17856
 
17857
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17858
 
17859
      static {
17860
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17861
          byName.put(field.getFieldName(), field);
17862
        }
17863
      }
17864
 
17865
      /**
17866
       * Find the _Fields constant that matches fieldId, or null if its not found.
17867
       */
17868
      public static _Fields findByThriftId(int fieldId) {
17869
        switch(fieldId) {
17870
          case 1: // PINCODE
17871
            return PINCODE;
17872
          case 2: // WH_LOCATION
17873
            return WH_LOCATION;
17874
          default:
17875
            return null;
17876
        }
17877
      }
17878
 
17879
      /**
17880
       * Find the _Fields constant that matches fieldId, throwing an exception
17881
       * if it is not found.
17882
       */
17883
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17884
        _Fields fields = findByThriftId(fieldId);
17885
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17886
        return fields;
17887
      }
17888
 
17889
      /**
17890
       * Find the _Fields constant that matches name, or null if its not found.
17891
       */
17892
      public static _Fields findByName(String name) {
17893
        return byName.get(name);
17894
      }
17895
 
17896
      private final short _thriftId;
17897
      private final String _fieldName;
17898
 
17899
      _Fields(short thriftId, String fieldName) {
17900
        _thriftId = thriftId;
17901
        _fieldName = fieldName;
17902
      }
17903
 
17904
      public short getThriftFieldId() {
17905
        return _thriftId;
17906
      }
17907
 
17908
      public String getFieldName() {
17909
        return _fieldName;
17910
      }
17911
    }
17912
 
17913
    // isset id assignments
17914
    private static final int __WHLOCATION_ISSET_ID = 0;
17915
    private BitSet __isset_bit_vector = new BitSet(1);
17916
 
17917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17918
    static {
17919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17920
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17921
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17922
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17923
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17924
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17925
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
17926
    }
17927
 
17928
    public getFirstDeliveryEstimateForWhLocation_args() {
17929
    }
17930
 
17931
    public getFirstDeliveryEstimateForWhLocation_args(
17932
      String pincode,
17933
      long whLocation)
17934
    {
17935
      this();
17936
      this.pincode = pincode;
17937
      this.whLocation = whLocation;
17938
      setWhLocationIsSet(true);
17939
    }
17940
 
17941
    /**
17942
     * Performs a deep copy on <i>other</i>.
17943
     */
17944
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
17945
      __isset_bit_vector.clear();
17946
      __isset_bit_vector.or(other.__isset_bit_vector);
17947
      if (other.isSetPincode()) {
17948
        this.pincode = other.pincode;
17949
      }
17950
      this.whLocation = other.whLocation;
17951
    }
17952
 
17953
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
17954
      return new getFirstDeliveryEstimateForWhLocation_args(this);
17955
    }
17956
 
17957
    @Override
17958
    public void clear() {
17959
      this.pincode = null;
17960
      setWhLocationIsSet(false);
17961
      this.whLocation = 0;
17962
    }
17963
 
17964
    public String getPincode() {
17965
      return this.pincode;
17966
    }
17967
 
17968
    public void setPincode(String pincode) {
17969
      this.pincode = pincode;
17970
    }
17971
 
17972
    public void unsetPincode() {
17973
      this.pincode = null;
17974
    }
17975
 
17976
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
17977
    public boolean isSetPincode() {
17978
      return this.pincode != null;
17979
    }
17980
 
17981
    public void setPincodeIsSet(boolean value) {
17982
      if (!value) {
17983
        this.pincode = null;
17984
      }
17985
    }
17986
 
17987
    public long getWhLocation() {
17988
      return this.whLocation;
17989
    }
17990
 
17991
    public void setWhLocation(long whLocation) {
17992
      this.whLocation = whLocation;
17993
      setWhLocationIsSet(true);
17994
    }
17995
 
17996
    public void unsetWhLocation() {
17997
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
17998
    }
17999
 
18000
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18001
    public boolean isSetWhLocation() {
18002
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18003
    }
18004
 
18005
    public void setWhLocationIsSet(boolean value) {
18006
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18007
    }
18008
 
18009
    public void setFieldValue(_Fields field, Object value) {
18010
      switch (field) {
18011
      case PINCODE:
18012
        if (value == null) {
18013
          unsetPincode();
18014
        } else {
18015
          setPincode((String)value);
18016
        }
18017
        break;
18018
 
18019
      case WH_LOCATION:
18020
        if (value == null) {
18021
          unsetWhLocation();
18022
        } else {
18023
          setWhLocation((Long)value);
18024
        }
18025
        break;
18026
 
18027
      }
18028
    }
18029
 
18030
    public Object getFieldValue(_Fields field) {
18031
      switch (field) {
18032
      case PINCODE:
18033
        return getPincode();
18034
 
18035
      case WH_LOCATION:
18036
        return Long.valueOf(getWhLocation());
18037
 
18038
      }
18039
      throw new IllegalStateException();
18040
    }
18041
 
18042
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18043
    public boolean isSet(_Fields field) {
18044
      if (field == null) {
18045
        throw new IllegalArgumentException();
18046
      }
18047
 
18048
      switch (field) {
18049
      case PINCODE:
18050
        return isSetPincode();
18051
      case WH_LOCATION:
18052
        return isSetWhLocation();
18053
      }
18054
      throw new IllegalStateException();
18055
    }
18056
 
18057
    @Override
18058
    public boolean equals(Object that) {
18059
      if (that == null)
18060
        return false;
18061
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18062
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18063
      return false;
18064
    }
18065
 
18066
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18067
      if (that == null)
18068
        return false;
18069
 
18070
      boolean this_present_pincode = true && this.isSetPincode();
18071
      boolean that_present_pincode = true && that.isSetPincode();
18072
      if (this_present_pincode || that_present_pincode) {
18073
        if (!(this_present_pincode && that_present_pincode))
18074
          return false;
18075
        if (!this.pincode.equals(that.pincode))
18076
          return false;
18077
      }
18078
 
18079
      boolean this_present_whLocation = true;
18080
      boolean that_present_whLocation = true;
18081
      if (this_present_whLocation || that_present_whLocation) {
18082
        if (!(this_present_whLocation && that_present_whLocation))
18083
          return false;
18084
        if (this.whLocation != that.whLocation)
18085
          return false;
18086
      }
18087
 
18088
      return true;
18089
    }
18090
 
18091
    @Override
18092
    public int hashCode() {
18093
      return 0;
18094
    }
18095
 
18096
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18097
      if (!getClass().equals(other.getClass())) {
18098
        return getClass().getName().compareTo(other.getClass().getName());
18099
      }
18100
 
18101
      int lastComparison = 0;
18102
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18103
 
18104
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18105
      if (lastComparison != 0) {
18106
        return lastComparison;
18107
      }
18108
      if (isSetPincode()) {
18109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18110
        if (lastComparison != 0) {
18111
          return lastComparison;
18112
        }
18113
      }
18114
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18115
      if (lastComparison != 0) {
18116
        return lastComparison;
18117
      }
18118
      if (isSetWhLocation()) {
18119
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18120
        if (lastComparison != 0) {
18121
          return lastComparison;
18122
        }
18123
      }
18124
      return 0;
18125
    }
18126
 
18127
    public _Fields fieldForId(int fieldId) {
18128
      return _Fields.findByThriftId(fieldId);
18129
    }
18130
 
18131
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18132
      org.apache.thrift.protocol.TField field;
18133
      iprot.readStructBegin();
18134
      while (true)
18135
      {
18136
        field = iprot.readFieldBegin();
18137
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18138
          break;
18139
        }
18140
        switch (field.id) {
18141
          case 1: // PINCODE
18142
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18143
              this.pincode = iprot.readString();
18144
            } else { 
18145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18146
            }
18147
            break;
18148
          case 2: // WH_LOCATION
18149
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18150
              this.whLocation = iprot.readI64();
18151
              setWhLocationIsSet(true);
18152
            } else { 
18153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18154
            }
18155
            break;
18156
          default:
18157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18158
        }
18159
        iprot.readFieldEnd();
18160
      }
18161
      iprot.readStructEnd();
18162
      validate();
18163
    }
18164
 
18165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18166
      validate();
18167
 
18168
      oprot.writeStructBegin(STRUCT_DESC);
18169
      if (this.pincode != null) {
18170
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18171
        oprot.writeString(this.pincode);
18172
        oprot.writeFieldEnd();
18173
      }
18174
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18175
      oprot.writeI64(this.whLocation);
18176
      oprot.writeFieldEnd();
18177
      oprot.writeFieldStop();
18178
      oprot.writeStructEnd();
18179
    }
18180
 
18181
    @Override
18182
    public String toString() {
18183
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18184
      boolean first = true;
18185
 
18186
      sb.append("pincode:");
18187
      if (this.pincode == null) {
18188
        sb.append("null");
18189
      } else {
18190
        sb.append(this.pincode);
18191
      }
18192
      first = false;
18193
      if (!first) sb.append(", ");
18194
      sb.append("whLocation:");
18195
      sb.append(this.whLocation);
18196
      first = false;
18197
      sb.append(")");
18198
      return sb.toString();
18199
    }
18200
 
18201
    public void validate() throws org.apache.thrift.TException {
18202
      // check for required fields
18203
    }
18204
 
18205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18206
      try {
18207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18208
      } catch (org.apache.thrift.TException te) {
18209
        throw new java.io.IOException(te);
18210
      }
18211
    }
18212
 
18213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18214
      try {
18215
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18216
        __isset_bit_vector = new BitSet(1);
18217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18218
      } catch (org.apache.thrift.TException te) {
18219
        throw new java.io.IOException(te);
18220
      }
18221
    }
18222
 
18223
  }
18224
 
18225
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18227
 
18228
    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);
18229
 
18230
    private long success; // required
18231
 
18232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18234
      SUCCESS((short)0, "success");
18235
 
18236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18237
 
18238
      static {
18239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18240
          byName.put(field.getFieldName(), field);
18241
        }
18242
      }
18243
 
18244
      /**
18245
       * Find the _Fields constant that matches fieldId, or null if its not found.
18246
       */
18247
      public static _Fields findByThriftId(int fieldId) {
18248
        switch(fieldId) {
18249
          case 0: // SUCCESS
18250
            return SUCCESS;
18251
          default:
18252
            return null;
18253
        }
18254
      }
18255
 
18256
      /**
18257
       * Find the _Fields constant that matches fieldId, throwing an exception
18258
       * if it is not found.
18259
       */
18260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18261
        _Fields fields = findByThriftId(fieldId);
18262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18263
        return fields;
18264
      }
18265
 
18266
      /**
18267
       * Find the _Fields constant that matches name, or null if its not found.
18268
       */
18269
      public static _Fields findByName(String name) {
18270
        return byName.get(name);
18271
      }
18272
 
18273
      private final short _thriftId;
18274
      private final String _fieldName;
18275
 
18276
      _Fields(short thriftId, String fieldName) {
18277
        _thriftId = thriftId;
18278
        _fieldName = fieldName;
18279
      }
18280
 
18281
      public short getThriftFieldId() {
18282
        return _thriftId;
18283
      }
18284
 
18285
      public String getFieldName() {
18286
        return _fieldName;
18287
      }
18288
    }
18289
 
18290
    // isset id assignments
18291
    private static final int __SUCCESS_ISSET_ID = 0;
18292
    private BitSet __isset_bit_vector = new BitSet(1);
18293
 
18294
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18295
    static {
18296
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18297
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18301
    }
18302
 
18303
    public getFirstDeliveryEstimateForWhLocation_result() {
18304
    }
18305
 
18306
    public getFirstDeliveryEstimateForWhLocation_result(
18307
      long success)
18308
    {
18309
      this();
18310
      this.success = success;
18311
      setSuccessIsSet(true);
18312
    }
18313
 
18314
    /**
18315
     * Performs a deep copy on <i>other</i>.
18316
     */
18317
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18318
      __isset_bit_vector.clear();
18319
      __isset_bit_vector.or(other.__isset_bit_vector);
18320
      this.success = other.success;
18321
    }
18322
 
18323
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18324
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18325
    }
18326
 
18327
    @Override
18328
    public void clear() {
18329
      setSuccessIsSet(false);
18330
      this.success = 0;
18331
    }
18332
 
18333
    public long getSuccess() {
18334
      return this.success;
18335
    }
18336
 
18337
    public void setSuccess(long success) {
18338
      this.success = success;
18339
      setSuccessIsSet(true);
18340
    }
18341
 
18342
    public void unsetSuccess() {
18343
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18344
    }
18345
 
18346
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18347
    public boolean isSetSuccess() {
18348
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18349
    }
18350
 
18351
    public void setSuccessIsSet(boolean value) {
18352
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18353
    }
18354
 
18355
    public void setFieldValue(_Fields field, Object value) {
18356
      switch (field) {
18357
      case SUCCESS:
18358
        if (value == null) {
18359
          unsetSuccess();
18360
        } else {
18361
          setSuccess((Long)value);
18362
        }
18363
        break;
18364
 
18365
      }
18366
    }
18367
 
18368
    public Object getFieldValue(_Fields field) {
18369
      switch (field) {
18370
      case SUCCESS:
18371
        return Long.valueOf(getSuccess());
18372
 
18373
      }
18374
      throw new IllegalStateException();
18375
    }
18376
 
18377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18378
    public boolean isSet(_Fields field) {
18379
      if (field == null) {
18380
        throw new IllegalArgumentException();
18381
      }
18382
 
18383
      switch (field) {
18384
      case SUCCESS:
18385
        return isSetSuccess();
18386
      }
18387
      throw new IllegalStateException();
18388
    }
18389
 
18390
    @Override
18391
    public boolean equals(Object that) {
18392
      if (that == null)
18393
        return false;
18394
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18395
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18396
      return false;
18397
    }
18398
 
18399
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18400
      if (that == null)
18401
        return false;
18402
 
18403
      boolean this_present_success = true;
18404
      boolean that_present_success = true;
18405
      if (this_present_success || that_present_success) {
18406
        if (!(this_present_success && that_present_success))
18407
          return false;
18408
        if (this.success != that.success)
18409
          return false;
18410
      }
18411
 
18412
      return true;
18413
    }
18414
 
18415
    @Override
18416
    public int hashCode() {
18417
      return 0;
18418
    }
18419
 
18420
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18421
      if (!getClass().equals(other.getClass())) {
18422
        return getClass().getName().compareTo(other.getClass().getName());
18423
      }
18424
 
18425
      int lastComparison = 0;
18426
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18427
 
18428
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18429
      if (lastComparison != 0) {
18430
        return lastComparison;
18431
      }
18432
      if (isSetSuccess()) {
18433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18434
        if (lastComparison != 0) {
18435
          return lastComparison;
18436
        }
18437
      }
18438
      return 0;
18439
    }
18440
 
18441
    public _Fields fieldForId(int fieldId) {
18442
      return _Fields.findByThriftId(fieldId);
18443
    }
18444
 
18445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18446
      org.apache.thrift.protocol.TField field;
18447
      iprot.readStructBegin();
18448
      while (true)
18449
      {
18450
        field = iprot.readFieldBegin();
18451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18452
          break;
18453
        }
18454
        switch (field.id) {
18455
          case 0: // SUCCESS
18456
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18457
              this.success = iprot.readI64();
18458
              setSuccessIsSet(true);
18459
            } else { 
18460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18461
            }
18462
            break;
18463
          default:
18464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18465
        }
18466
        iprot.readFieldEnd();
18467
      }
18468
      iprot.readStructEnd();
18469
      validate();
18470
    }
18471
 
18472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18473
      oprot.writeStructBegin(STRUCT_DESC);
18474
 
18475
      if (this.isSetSuccess()) {
18476
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18477
        oprot.writeI64(this.success);
18478
        oprot.writeFieldEnd();
18479
      }
18480
      oprot.writeFieldStop();
18481
      oprot.writeStructEnd();
18482
    }
18483
 
18484
    @Override
18485
    public String toString() {
18486
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18487
      boolean first = true;
18488
 
18489
      sb.append("success:");
18490
      sb.append(this.success);
18491
      first = false;
18492
      sb.append(")");
18493
      return sb.toString();
18494
    }
18495
 
18496
    public void validate() throws org.apache.thrift.TException {
18497
      // check for required fields
18498
    }
18499
 
18500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18501
      try {
18502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18503
      } catch (org.apache.thrift.TException te) {
18504
        throw new java.io.IOException(te);
18505
      }
18506
    }
18507
 
18508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18509
      try {
18510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18511
      } catch (org.apache.thrift.TException te) {
18512
        throw new java.io.IOException(te);
18513
      }
18514
    }
18515
 
18516
  }
18517
 
13146 manish.sha 18518
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18520
 
18521
    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);
18522
    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);
18523
    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);
18524
 
18525
    private long providerId; // required
18526
    private DeliveryType type; // required
18527
    private long orderQuantity; // required
18528
 
18529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18531
      PROVIDER_ID((short)1, "providerId"),
18532
      /**
18533
       * 
18534
       * @see DeliveryType
18535
       */
18536
      TYPE((short)2, "type"),
18537
      ORDER_QUANTITY((short)3, "orderQuantity");
18538
 
18539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18540
 
18541
      static {
18542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18543
          byName.put(field.getFieldName(), field);
18544
        }
18545
      }
18546
 
18547
      /**
18548
       * Find the _Fields constant that matches fieldId, or null if its not found.
18549
       */
18550
      public static _Fields findByThriftId(int fieldId) {
18551
        switch(fieldId) {
18552
          case 1: // PROVIDER_ID
18553
            return PROVIDER_ID;
18554
          case 2: // TYPE
18555
            return TYPE;
18556
          case 3: // ORDER_QUANTITY
18557
            return ORDER_QUANTITY;
18558
          default:
18559
            return null;
18560
        }
18561
      }
18562
 
18563
      /**
18564
       * Find the _Fields constant that matches fieldId, throwing an exception
18565
       * if it is not found.
18566
       */
18567
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18568
        _Fields fields = findByThriftId(fieldId);
18569
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18570
        return fields;
18571
      }
18572
 
18573
      /**
18574
       * Find the _Fields constant that matches name, or null if its not found.
18575
       */
18576
      public static _Fields findByName(String name) {
18577
        return byName.get(name);
18578
      }
18579
 
18580
      private final short _thriftId;
18581
      private final String _fieldName;
18582
 
18583
      _Fields(short thriftId, String fieldName) {
18584
        _thriftId = thriftId;
18585
        _fieldName = fieldName;
18586
      }
18587
 
18588
      public short getThriftFieldId() {
18589
        return _thriftId;
18590
      }
18591
 
18592
      public String getFieldName() {
18593
        return _fieldName;
18594
      }
18595
    }
18596
 
18597
    // isset id assignments
18598
    private static final int __PROVIDERID_ISSET_ID = 0;
18599
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18600
    private BitSet __isset_bit_vector = new BitSet(2);
18601
 
18602
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18603
    static {
18604
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18605
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18606
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18607
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18608
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18609
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18613
    }
18614
 
18615
    public getNewEmptyAwb_args() {
18616
    }
18617
 
18618
    public getNewEmptyAwb_args(
18619
      long providerId,
18620
      DeliveryType type,
18621
      long orderQuantity)
18622
    {
18623
      this();
18624
      this.providerId = providerId;
18625
      setProviderIdIsSet(true);
18626
      this.type = type;
18627
      this.orderQuantity = orderQuantity;
18628
      setOrderQuantityIsSet(true);
18629
    }
18630
 
18631
    /**
18632
     * Performs a deep copy on <i>other</i>.
18633
     */
18634
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18635
      __isset_bit_vector.clear();
18636
      __isset_bit_vector.or(other.__isset_bit_vector);
18637
      this.providerId = other.providerId;
18638
      if (other.isSetType()) {
18639
        this.type = other.type;
18640
      }
18641
      this.orderQuantity = other.orderQuantity;
18642
    }
18643
 
18644
    public getNewEmptyAwb_args deepCopy() {
18645
      return new getNewEmptyAwb_args(this);
18646
    }
18647
 
18648
    @Override
18649
    public void clear() {
18650
      setProviderIdIsSet(false);
18651
      this.providerId = 0;
18652
      this.type = null;
18653
      setOrderQuantityIsSet(false);
18654
      this.orderQuantity = 0;
18655
    }
18656
 
18657
    public long getProviderId() {
18658
      return this.providerId;
18659
    }
18660
 
18661
    public void setProviderId(long providerId) {
18662
      this.providerId = providerId;
18663
      setProviderIdIsSet(true);
18664
    }
18665
 
18666
    public void unsetProviderId() {
18667
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18668
    }
18669
 
18670
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18671
    public boolean isSetProviderId() {
18672
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18673
    }
18674
 
18675
    public void setProviderIdIsSet(boolean value) {
18676
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18677
    }
18678
 
18679
    /**
18680
     * 
18681
     * @see DeliveryType
18682
     */
18683
    public DeliveryType getType() {
18684
      return this.type;
18685
    }
18686
 
18687
    /**
18688
     * 
18689
     * @see DeliveryType
18690
     */
18691
    public void setType(DeliveryType type) {
18692
      this.type = type;
18693
    }
18694
 
18695
    public void unsetType() {
18696
      this.type = null;
18697
    }
18698
 
18699
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18700
    public boolean isSetType() {
18701
      return this.type != null;
18702
    }
18703
 
18704
    public void setTypeIsSet(boolean value) {
18705
      if (!value) {
18706
        this.type = null;
18707
      }
18708
    }
18709
 
18710
    public long getOrderQuantity() {
18711
      return this.orderQuantity;
18712
    }
18713
 
18714
    public void setOrderQuantity(long orderQuantity) {
18715
      this.orderQuantity = orderQuantity;
18716
      setOrderQuantityIsSet(true);
18717
    }
18718
 
18719
    public void unsetOrderQuantity() {
18720
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18721
    }
18722
 
18723
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18724
    public boolean isSetOrderQuantity() {
18725
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18726
    }
18727
 
18728
    public void setOrderQuantityIsSet(boolean value) {
18729
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18730
    }
18731
 
18732
    public void setFieldValue(_Fields field, Object value) {
18733
      switch (field) {
18734
      case PROVIDER_ID:
18735
        if (value == null) {
18736
          unsetProviderId();
18737
        } else {
18738
          setProviderId((Long)value);
18739
        }
18740
        break;
18741
 
18742
      case TYPE:
18743
        if (value == null) {
18744
          unsetType();
18745
        } else {
18746
          setType((DeliveryType)value);
18747
        }
18748
        break;
18749
 
18750
      case ORDER_QUANTITY:
18751
        if (value == null) {
18752
          unsetOrderQuantity();
18753
        } else {
18754
          setOrderQuantity((Long)value);
18755
        }
18756
        break;
18757
 
18758
      }
18759
    }
18760
 
18761
    public Object getFieldValue(_Fields field) {
18762
      switch (field) {
18763
      case PROVIDER_ID:
18764
        return Long.valueOf(getProviderId());
18765
 
18766
      case TYPE:
18767
        return getType();
18768
 
18769
      case ORDER_QUANTITY:
18770
        return Long.valueOf(getOrderQuantity());
18771
 
18772
      }
18773
      throw new IllegalStateException();
18774
    }
18775
 
18776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18777
    public boolean isSet(_Fields field) {
18778
      if (field == null) {
18779
        throw new IllegalArgumentException();
18780
      }
18781
 
18782
      switch (field) {
18783
      case PROVIDER_ID:
18784
        return isSetProviderId();
18785
      case TYPE:
18786
        return isSetType();
18787
      case ORDER_QUANTITY:
18788
        return isSetOrderQuantity();
18789
      }
18790
      throw new IllegalStateException();
18791
    }
18792
 
18793
    @Override
18794
    public boolean equals(Object that) {
18795
      if (that == null)
18796
        return false;
18797
      if (that instanceof getNewEmptyAwb_args)
18798
        return this.equals((getNewEmptyAwb_args)that);
18799
      return false;
18800
    }
18801
 
18802
    public boolean equals(getNewEmptyAwb_args that) {
18803
      if (that == null)
18804
        return false;
18805
 
18806
      boolean this_present_providerId = true;
18807
      boolean that_present_providerId = true;
18808
      if (this_present_providerId || that_present_providerId) {
18809
        if (!(this_present_providerId && that_present_providerId))
18810
          return false;
18811
        if (this.providerId != that.providerId)
18812
          return false;
18813
      }
18814
 
18815
      boolean this_present_type = true && this.isSetType();
18816
      boolean that_present_type = true && that.isSetType();
18817
      if (this_present_type || that_present_type) {
18818
        if (!(this_present_type && that_present_type))
18819
          return false;
18820
        if (!this.type.equals(that.type))
18821
          return false;
18822
      }
18823
 
18824
      boolean this_present_orderQuantity = true;
18825
      boolean that_present_orderQuantity = true;
18826
      if (this_present_orderQuantity || that_present_orderQuantity) {
18827
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18828
          return false;
18829
        if (this.orderQuantity != that.orderQuantity)
18830
          return false;
18831
      }
18832
 
18833
      return true;
18834
    }
18835
 
18836
    @Override
18837
    public int hashCode() {
18838
      return 0;
18839
    }
18840
 
18841
    public int compareTo(getNewEmptyAwb_args other) {
18842
      if (!getClass().equals(other.getClass())) {
18843
        return getClass().getName().compareTo(other.getClass().getName());
18844
      }
18845
 
18846
      int lastComparison = 0;
18847
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18848
 
18849
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18850
      if (lastComparison != 0) {
18851
        return lastComparison;
18852
      }
18853
      if (isSetProviderId()) {
18854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18855
        if (lastComparison != 0) {
18856
          return lastComparison;
18857
        }
18858
      }
18859
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18860
      if (lastComparison != 0) {
18861
        return lastComparison;
18862
      }
18863
      if (isSetType()) {
18864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18865
        if (lastComparison != 0) {
18866
          return lastComparison;
18867
        }
18868
      }
18869
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18870
      if (lastComparison != 0) {
18871
        return lastComparison;
18872
      }
18873
      if (isSetOrderQuantity()) {
18874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18875
        if (lastComparison != 0) {
18876
          return lastComparison;
18877
        }
18878
      }
18879
      return 0;
18880
    }
18881
 
18882
    public _Fields fieldForId(int fieldId) {
18883
      return _Fields.findByThriftId(fieldId);
18884
    }
18885
 
18886
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18887
      org.apache.thrift.protocol.TField field;
18888
      iprot.readStructBegin();
18889
      while (true)
18890
      {
18891
        field = iprot.readFieldBegin();
18892
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18893
          break;
18894
        }
18895
        switch (field.id) {
18896
          case 1: // PROVIDER_ID
18897
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18898
              this.providerId = iprot.readI64();
18899
              setProviderIdIsSet(true);
18900
            } else { 
18901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18902
            }
18903
            break;
18904
          case 2: // TYPE
18905
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18906
              this.type = DeliveryType.findByValue(iprot.readI32());
18907
            } else { 
18908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18909
            }
18910
            break;
18911
          case 3: // ORDER_QUANTITY
18912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18913
              this.orderQuantity = iprot.readI64();
18914
              setOrderQuantityIsSet(true);
18915
            } else { 
18916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18917
            }
18918
            break;
18919
          default:
18920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18921
        }
18922
        iprot.readFieldEnd();
18923
      }
18924
      iprot.readStructEnd();
18925
      validate();
18926
    }
18927
 
18928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18929
      validate();
18930
 
18931
      oprot.writeStructBegin(STRUCT_DESC);
18932
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
18933
      oprot.writeI64(this.providerId);
18934
      oprot.writeFieldEnd();
18935
      if (this.type != null) {
18936
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
18937
        oprot.writeI32(this.type.getValue());
18938
        oprot.writeFieldEnd();
18939
      }
18940
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
18941
      oprot.writeI64(this.orderQuantity);
18942
      oprot.writeFieldEnd();
18943
      oprot.writeFieldStop();
18944
      oprot.writeStructEnd();
18945
    }
18946
 
18947
    @Override
18948
    public String toString() {
18949
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
18950
      boolean first = true;
18951
 
18952
      sb.append("providerId:");
18953
      sb.append(this.providerId);
18954
      first = false;
18955
      if (!first) sb.append(", ");
18956
      sb.append("type:");
18957
      if (this.type == null) {
18958
        sb.append("null");
18959
      } else {
18960
        sb.append(this.type);
18961
      }
18962
      first = false;
18963
      if (!first) sb.append(", ");
18964
      sb.append("orderQuantity:");
18965
      sb.append(this.orderQuantity);
18966
      first = false;
18967
      sb.append(")");
18968
      return sb.toString();
18969
    }
18970
 
18971
    public void validate() throws org.apache.thrift.TException {
18972
      // check for required fields
18973
    }
18974
 
18975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18976
      try {
18977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18978
      } catch (org.apache.thrift.TException te) {
18979
        throw new java.io.IOException(te);
18980
      }
18981
    }
18982
 
18983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18984
      try {
18985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18986
        __isset_bit_vector = new BitSet(1);
18987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18988
      } catch (org.apache.thrift.TException te) {
18989
        throw new java.io.IOException(te);
18990
      }
18991
    }
18992
 
18993
  }
18994
 
18995
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
18996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
18997
 
18998
    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);
18999
    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);
19000
 
19001
    private String success; // required
19002
    private LogisticsServiceException se; // required
19003
 
19004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19006
      SUCCESS((short)0, "success"),
19007
      SE((short)1, "se");
19008
 
19009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19010
 
19011
      static {
19012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19013
          byName.put(field.getFieldName(), field);
19014
        }
19015
      }
19016
 
19017
      /**
19018
       * Find the _Fields constant that matches fieldId, or null if its not found.
19019
       */
19020
      public static _Fields findByThriftId(int fieldId) {
19021
        switch(fieldId) {
19022
          case 0: // SUCCESS
19023
            return SUCCESS;
19024
          case 1: // SE
19025
            return SE;
19026
          default:
19027
            return null;
19028
        }
19029
      }
19030
 
19031
      /**
19032
       * Find the _Fields constant that matches fieldId, throwing an exception
19033
       * if it is not found.
19034
       */
19035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19036
        _Fields fields = findByThriftId(fieldId);
19037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19038
        return fields;
19039
      }
19040
 
19041
      /**
19042
       * Find the _Fields constant that matches name, or null if its not found.
19043
       */
19044
      public static _Fields findByName(String name) {
19045
        return byName.get(name);
19046
      }
19047
 
19048
      private final short _thriftId;
19049
      private final String _fieldName;
19050
 
19051
      _Fields(short thriftId, String fieldName) {
19052
        _thriftId = thriftId;
19053
        _fieldName = fieldName;
19054
      }
19055
 
19056
      public short getThriftFieldId() {
19057
        return _thriftId;
19058
      }
19059
 
19060
      public String getFieldName() {
19061
        return _fieldName;
19062
      }
19063
    }
19064
 
19065
    // isset id assignments
19066
 
19067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19068
    static {
19069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19070
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19072
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19073
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19074
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19075
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19076
    }
19077
 
19078
    public getNewEmptyAwb_result() {
19079
    }
19080
 
19081
    public getNewEmptyAwb_result(
19082
      String success,
19083
      LogisticsServiceException se)
19084
    {
19085
      this();
19086
      this.success = success;
19087
      this.se = se;
19088
    }
19089
 
19090
    /**
19091
     * Performs a deep copy on <i>other</i>.
19092
     */
19093
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19094
      if (other.isSetSuccess()) {
19095
        this.success = other.success;
19096
      }
19097
      if (other.isSetSe()) {
19098
        this.se = new LogisticsServiceException(other.se);
19099
      }
19100
    }
19101
 
19102
    public getNewEmptyAwb_result deepCopy() {
19103
      return new getNewEmptyAwb_result(this);
19104
    }
19105
 
19106
    @Override
19107
    public void clear() {
19108
      this.success = null;
19109
      this.se = null;
19110
    }
19111
 
19112
    public String getSuccess() {
19113
      return this.success;
19114
    }
19115
 
19116
    public void setSuccess(String success) {
19117
      this.success = success;
19118
    }
19119
 
19120
    public void unsetSuccess() {
19121
      this.success = null;
19122
    }
19123
 
19124
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19125
    public boolean isSetSuccess() {
19126
      return this.success != null;
19127
    }
19128
 
19129
    public void setSuccessIsSet(boolean value) {
19130
      if (!value) {
19131
        this.success = null;
19132
      }
19133
    }
19134
 
19135
    public LogisticsServiceException getSe() {
19136
      return this.se;
19137
    }
19138
 
19139
    public void setSe(LogisticsServiceException se) {
19140
      this.se = se;
19141
    }
19142
 
19143
    public void unsetSe() {
19144
      this.se = null;
19145
    }
19146
 
19147
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19148
    public boolean isSetSe() {
19149
      return this.se != null;
19150
    }
19151
 
19152
    public void setSeIsSet(boolean value) {
19153
      if (!value) {
19154
        this.se = null;
19155
      }
19156
    }
19157
 
19158
    public void setFieldValue(_Fields field, Object value) {
19159
      switch (field) {
19160
      case SUCCESS:
19161
        if (value == null) {
19162
          unsetSuccess();
19163
        } else {
19164
          setSuccess((String)value);
19165
        }
19166
        break;
19167
 
19168
      case SE:
19169
        if (value == null) {
19170
          unsetSe();
19171
        } else {
19172
          setSe((LogisticsServiceException)value);
19173
        }
19174
        break;
19175
 
19176
      }
19177
    }
19178
 
19179
    public Object getFieldValue(_Fields field) {
19180
      switch (field) {
19181
      case SUCCESS:
19182
        return getSuccess();
19183
 
19184
      case SE:
19185
        return getSe();
19186
 
19187
      }
19188
      throw new IllegalStateException();
19189
    }
19190
 
19191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19192
    public boolean isSet(_Fields field) {
19193
      if (field == null) {
19194
        throw new IllegalArgumentException();
19195
      }
19196
 
19197
      switch (field) {
19198
      case SUCCESS:
19199
        return isSetSuccess();
19200
      case SE:
19201
        return isSetSe();
19202
      }
19203
      throw new IllegalStateException();
19204
    }
19205
 
19206
    @Override
19207
    public boolean equals(Object that) {
19208
      if (that == null)
19209
        return false;
19210
      if (that instanceof getNewEmptyAwb_result)
19211
        return this.equals((getNewEmptyAwb_result)that);
19212
      return false;
19213
    }
19214
 
19215
    public boolean equals(getNewEmptyAwb_result that) {
19216
      if (that == null)
19217
        return false;
19218
 
19219
      boolean this_present_success = true && this.isSetSuccess();
19220
      boolean that_present_success = true && that.isSetSuccess();
19221
      if (this_present_success || that_present_success) {
19222
        if (!(this_present_success && that_present_success))
19223
          return false;
19224
        if (!this.success.equals(that.success))
19225
          return false;
19226
      }
19227
 
19228
      boolean this_present_se = true && this.isSetSe();
19229
      boolean that_present_se = true && that.isSetSe();
19230
      if (this_present_se || that_present_se) {
19231
        if (!(this_present_se && that_present_se))
19232
          return false;
19233
        if (!this.se.equals(that.se))
19234
          return false;
19235
      }
19236
 
19237
      return true;
19238
    }
19239
 
19240
    @Override
19241
    public int hashCode() {
19242
      return 0;
19243
    }
19244
 
19245
    public int compareTo(getNewEmptyAwb_result other) {
19246
      if (!getClass().equals(other.getClass())) {
19247
        return getClass().getName().compareTo(other.getClass().getName());
19248
      }
19249
 
19250
      int lastComparison = 0;
19251
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19252
 
19253
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19254
      if (lastComparison != 0) {
19255
        return lastComparison;
19256
      }
19257
      if (isSetSuccess()) {
19258
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19259
        if (lastComparison != 0) {
19260
          return lastComparison;
19261
        }
19262
      }
19263
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19264
      if (lastComparison != 0) {
19265
        return lastComparison;
19266
      }
19267
      if (isSetSe()) {
19268
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19269
        if (lastComparison != 0) {
19270
          return lastComparison;
19271
        }
19272
      }
19273
      return 0;
19274
    }
19275
 
19276
    public _Fields fieldForId(int fieldId) {
19277
      return _Fields.findByThriftId(fieldId);
19278
    }
19279
 
19280
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19281
      org.apache.thrift.protocol.TField field;
19282
      iprot.readStructBegin();
19283
      while (true)
19284
      {
19285
        field = iprot.readFieldBegin();
19286
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19287
          break;
19288
        }
19289
        switch (field.id) {
19290
          case 0: // SUCCESS
19291
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19292
              this.success = iprot.readString();
19293
            } else { 
19294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19295
            }
19296
            break;
19297
          case 1: // SE
19298
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19299
              this.se = new LogisticsServiceException();
19300
              this.se.read(iprot);
19301
            } else { 
19302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19303
            }
19304
            break;
19305
          default:
19306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19307
        }
19308
        iprot.readFieldEnd();
19309
      }
19310
      iprot.readStructEnd();
19311
      validate();
19312
    }
19313
 
19314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19315
      oprot.writeStructBegin(STRUCT_DESC);
19316
 
19317
      if (this.isSetSuccess()) {
19318
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19319
        oprot.writeString(this.success);
19320
        oprot.writeFieldEnd();
19321
      } else if (this.isSetSe()) {
19322
        oprot.writeFieldBegin(SE_FIELD_DESC);
19323
        this.se.write(oprot);
19324
        oprot.writeFieldEnd();
19325
      }
19326
      oprot.writeFieldStop();
19327
      oprot.writeStructEnd();
19328
    }
19329
 
19330
    @Override
19331
    public String toString() {
19332
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19333
      boolean first = true;
19334
 
19335
      sb.append("success:");
19336
      if (this.success == null) {
19337
        sb.append("null");
19338
      } else {
19339
        sb.append(this.success);
19340
      }
19341
      first = false;
19342
      if (!first) sb.append(", ");
19343
      sb.append("se:");
19344
      if (this.se == null) {
19345
        sb.append("null");
19346
      } else {
19347
        sb.append(this.se);
19348
      }
19349
      first = false;
19350
      sb.append(")");
19351
      return sb.toString();
19352
    }
19353
 
19354
    public void validate() throws org.apache.thrift.TException {
19355
      // check for required fields
19356
    }
19357
 
19358
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19359
      try {
19360
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19361
      } catch (org.apache.thrift.TException te) {
19362
        throw new java.io.IOException(te);
19363
      }
19364
    }
19365
 
19366
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19367
      try {
19368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19369
      } catch (org.apache.thrift.TException te) {
19370
        throw new java.io.IOException(te);
19371
      }
19372
    }
19373
 
19374
  }
19375
 
19376
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19378
 
19379
    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);
19380
    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);
19381
 
19382
    private long providerId; // required
19383
    private String pincode; // required
19384
 
19385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19387
      PROVIDER_ID((short)1, "providerId"),
19388
      PINCODE((short)2, "pincode");
19389
 
19390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19391
 
19392
      static {
19393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19394
          byName.put(field.getFieldName(), field);
19395
        }
19396
      }
19397
 
19398
      /**
19399
       * Find the _Fields constant that matches fieldId, or null if its not found.
19400
       */
19401
      public static _Fields findByThriftId(int fieldId) {
19402
        switch(fieldId) {
19403
          case 1: // PROVIDER_ID
19404
            return PROVIDER_ID;
19405
          case 2: // PINCODE
19406
            return PINCODE;
19407
          default:
19408
            return null;
19409
        }
19410
      }
19411
 
19412
      /**
19413
       * Find the _Fields constant that matches fieldId, throwing an exception
19414
       * if it is not found.
19415
       */
19416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19417
        _Fields fields = findByThriftId(fieldId);
19418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19419
        return fields;
19420
      }
19421
 
19422
      /**
19423
       * Find the _Fields constant that matches name, or null if its not found.
19424
       */
19425
      public static _Fields findByName(String name) {
19426
        return byName.get(name);
19427
      }
19428
 
19429
      private final short _thriftId;
19430
      private final String _fieldName;
19431
 
19432
      _Fields(short thriftId, String fieldName) {
19433
        _thriftId = thriftId;
19434
        _fieldName = fieldName;
19435
      }
19436
 
19437
      public short getThriftFieldId() {
19438
        return _thriftId;
19439
      }
19440
 
19441
      public String getFieldName() {
19442
        return _fieldName;
19443
      }
19444
    }
19445
 
19446
    // isset id assignments
19447
    private static final int __PROVIDERID_ISSET_ID = 0;
19448
    private BitSet __isset_bit_vector = new BitSet(1);
19449
 
19450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19451
    static {
19452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19453
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19455
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19459
    }
19460
 
19461
    public getProviderLimitDetailsForPincode_args() {
19462
    }
19463
 
19464
    public getProviderLimitDetailsForPincode_args(
19465
      long providerId,
19466
      String pincode)
19467
    {
19468
      this();
19469
      this.providerId = providerId;
19470
      setProviderIdIsSet(true);
19471
      this.pincode = pincode;
19472
    }
19473
 
19474
    /**
19475
     * Performs a deep copy on <i>other</i>.
19476
     */
19477
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19478
      __isset_bit_vector.clear();
19479
      __isset_bit_vector.or(other.__isset_bit_vector);
19480
      this.providerId = other.providerId;
19481
      if (other.isSetPincode()) {
19482
        this.pincode = other.pincode;
19483
      }
19484
    }
19485
 
19486
    public getProviderLimitDetailsForPincode_args deepCopy() {
19487
      return new getProviderLimitDetailsForPincode_args(this);
19488
    }
19489
 
19490
    @Override
19491
    public void clear() {
19492
      setProviderIdIsSet(false);
19493
      this.providerId = 0;
19494
      this.pincode = null;
19495
    }
19496
 
19497
    public long getProviderId() {
19498
      return this.providerId;
19499
    }
19500
 
19501
    public void setProviderId(long providerId) {
19502
      this.providerId = providerId;
19503
      setProviderIdIsSet(true);
19504
    }
19505
 
19506
    public void unsetProviderId() {
19507
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19508
    }
19509
 
19510
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19511
    public boolean isSetProviderId() {
19512
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19513
    }
19514
 
19515
    public void setProviderIdIsSet(boolean value) {
19516
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19517
    }
19518
 
19519
    public String getPincode() {
19520
      return this.pincode;
19521
    }
19522
 
19523
    public void setPincode(String pincode) {
19524
      this.pincode = pincode;
19525
    }
19526
 
19527
    public void unsetPincode() {
19528
      this.pincode = null;
19529
    }
19530
 
19531
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19532
    public boolean isSetPincode() {
19533
      return this.pincode != null;
19534
    }
19535
 
19536
    public void setPincodeIsSet(boolean value) {
19537
      if (!value) {
19538
        this.pincode = null;
19539
      }
19540
    }
19541
 
19542
    public void setFieldValue(_Fields field, Object value) {
19543
      switch (field) {
19544
      case PROVIDER_ID:
19545
        if (value == null) {
19546
          unsetProviderId();
19547
        } else {
19548
          setProviderId((Long)value);
19549
        }
19550
        break;
19551
 
19552
      case PINCODE:
19553
        if (value == null) {
19554
          unsetPincode();
19555
        } else {
19556
          setPincode((String)value);
19557
        }
19558
        break;
19559
 
19560
      }
19561
    }
19562
 
19563
    public Object getFieldValue(_Fields field) {
19564
      switch (field) {
19565
      case PROVIDER_ID:
19566
        return Long.valueOf(getProviderId());
19567
 
19568
      case PINCODE:
19569
        return getPincode();
19570
 
19571
      }
19572
      throw new IllegalStateException();
19573
    }
19574
 
19575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19576
    public boolean isSet(_Fields field) {
19577
      if (field == null) {
19578
        throw new IllegalArgumentException();
19579
      }
19580
 
19581
      switch (field) {
19582
      case PROVIDER_ID:
19583
        return isSetProviderId();
19584
      case PINCODE:
19585
        return isSetPincode();
19586
      }
19587
      throw new IllegalStateException();
19588
    }
19589
 
19590
    @Override
19591
    public boolean equals(Object that) {
19592
      if (that == null)
19593
        return false;
19594
      if (that instanceof getProviderLimitDetailsForPincode_args)
19595
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19596
      return false;
19597
    }
19598
 
19599
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19600
      if (that == null)
19601
        return false;
19602
 
19603
      boolean this_present_providerId = true;
19604
      boolean that_present_providerId = true;
19605
      if (this_present_providerId || that_present_providerId) {
19606
        if (!(this_present_providerId && that_present_providerId))
19607
          return false;
19608
        if (this.providerId != that.providerId)
19609
          return false;
19610
      }
19611
 
19612
      boolean this_present_pincode = true && this.isSetPincode();
19613
      boolean that_present_pincode = true && that.isSetPincode();
19614
      if (this_present_pincode || that_present_pincode) {
19615
        if (!(this_present_pincode && that_present_pincode))
19616
          return false;
19617
        if (!this.pincode.equals(that.pincode))
19618
          return false;
19619
      }
19620
 
19621
      return true;
19622
    }
19623
 
19624
    @Override
19625
    public int hashCode() {
19626
      return 0;
19627
    }
19628
 
19629
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19630
      if (!getClass().equals(other.getClass())) {
19631
        return getClass().getName().compareTo(other.getClass().getName());
19632
      }
19633
 
19634
      int lastComparison = 0;
19635
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19636
 
19637
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19638
      if (lastComparison != 0) {
19639
        return lastComparison;
19640
      }
19641
      if (isSetProviderId()) {
19642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19643
        if (lastComparison != 0) {
19644
          return lastComparison;
19645
        }
19646
      }
19647
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19648
      if (lastComparison != 0) {
19649
        return lastComparison;
19650
      }
19651
      if (isSetPincode()) {
19652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19653
        if (lastComparison != 0) {
19654
          return lastComparison;
19655
        }
19656
      }
19657
      return 0;
19658
    }
19659
 
19660
    public _Fields fieldForId(int fieldId) {
19661
      return _Fields.findByThriftId(fieldId);
19662
    }
19663
 
19664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19665
      org.apache.thrift.protocol.TField field;
19666
      iprot.readStructBegin();
19667
      while (true)
19668
      {
19669
        field = iprot.readFieldBegin();
19670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19671
          break;
19672
        }
19673
        switch (field.id) {
19674
          case 1: // PROVIDER_ID
19675
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19676
              this.providerId = iprot.readI64();
19677
              setProviderIdIsSet(true);
19678
            } else { 
19679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19680
            }
19681
            break;
19682
          case 2: // PINCODE
19683
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19684
              this.pincode = iprot.readString();
19685
            } else { 
19686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19687
            }
19688
            break;
19689
          default:
19690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19691
        }
19692
        iprot.readFieldEnd();
19693
      }
19694
      iprot.readStructEnd();
19695
      validate();
19696
    }
19697
 
19698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19699
      validate();
19700
 
19701
      oprot.writeStructBegin(STRUCT_DESC);
19702
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19703
      oprot.writeI64(this.providerId);
19704
      oprot.writeFieldEnd();
19705
      if (this.pincode != null) {
19706
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19707
        oprot.writeString(this.pincode);
19708
        oprot.writeFieldEnd();
19709
      }
19710
      oprot.writeFieldStop();
19711
      oprot.writeStructEnd();
19712
    }
19713
 
19714
    @Override
19715
    public String toString() {
19716
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19717
      boolean first = true;
19718
 
19719
      sb.append("providerId:");
19720
      sb.append(this.providerId);
19721
      first = false;
19722
      if (!first) sb.append(", ");
19723
      sb.append("pincode:");
19724
      if (this.pincode == null) {
19725
        sb.append("null");
19726
      } else {
19727
        sb.append(this.pincode);
19728
      }
19729
      first = false;
19730
      sb.append(")");
19731
      return sb.toString();
19732
    }
19733
 
19734
    public void validate() throws org.apache.thrift.TException {
19735
      // check for required fields
19736
    }
19737
 
19738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19739
      try {
19740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19741
      } catch (org.apache.thrift.TException te) {
19742
        throw new java.io.IOException(te);
19743
      }
19744
    }
19745
 
19746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19747
      try {
19748
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19749
        __isset_bit_vector = new BitSet(1);
19750
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19751
      } catch (org.apache.thrift.TException te) {
19752
        throw new java.io.IOException(te);
19753
      }
19754
    }
19755
 
19756
  }
19757
 
19758
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19759
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19760
 
19761
    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);
19762
    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);
19763
 
19764
    private Map<String,String> success; // required
19765
    private LogisticsServiceException se; // required
19766
 
19767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19769
      SUCCESS((short)0, "success"),
19770
      SE((short)1, "se");
19771
 
19772
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19773
 
19774
      static {
19775
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19776
          byName.put(field.getFieldName(), field);
19777
        }
19778
      }
19779
 
19780
      /**
19781
       * Find the _Fields constant that matches fieldId, or null if its not found.
19782
       */
19783
      public static _Fields findByThriftId(int fieldId) {
19784
        switch(fieldId) {
19785
          case 0: // SUCCESS
19786
            return SUCCESS;
19787
          case 1: // SE
19788
            return SE;
19789
          default:
19790
            return null;
19791
        }
19792
      }
19793
 
19794
      /**
19795
       * Find the _Fields constant that matches fieldId, throwing an exception
19796
       * if it is not found.
19797
       */
19798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19799
        _Fields fields = findByThriftId(fieldId);
19800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19801
        return fields;
19802
      }
19803
 
19804
      /**
19805
       * Find the _Fields constant that matches name, or null if its not found.
19806
       */
19807
      public static _Fields findByName(String name) {
19808
        return byName.get(name);
19809
      }
19810
 
19811
      private final short _thriftId;
19812
      private final String _fieldName;
19813
 
19814
      _Fields(short thriftId, String fieldName) {
19815
        _thriftId = thriftId;
19816
        _fieldName = fieldName;
19817
      }
19818
 
19819
      public short getThriftFieldId() {
19820
        return _thriftId;
19821
      }
19822
 
19823
      public String getFieldName() {
19824
        return _fieldName;
19825
      }
19826
    }
19827
 
19828
    // isset id assignments
19829
 
19830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19831
    static {
19832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19833
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19834
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19835
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19836
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19837
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19841
    }
19842
 
19843
    public getProviderLimitDetailsForPincode_result() {
19844
    }
19845
 
19846
    public getProviderLimitDetailsForPincode_result(
19847
      Map<String,String> success,
19848
      LogisticsServiceException se)
19849
    {
19850
      this();
19851
      this.success = success;
19852
      this.se = se;
19853
    }
19854
 
19855
    /**
19856
     * Performs a deep copy on <i>other</i>.
19857
     */
19858
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19859
      if (other.isSetSuccess()) {
19860
        Map<String,String> __this__success = new HashMap<String,String>();
19861
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19862
 
19863
          String other_element_key = other_element.getKey();
19864
          String other_element_value = other_element.getValue();
19865
 
19866
          String __this__success_copy_key = other_element_key;
19867
 
19868
          String __this__success_copy_value = other_element_value;
19869
 
19870
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19871
        }
19872
        this.success = __this__success;
19873
      }
19874
      if (other.isSetSe()) {
19875
        this.se = new LogisticsServiceException(other.se);
19876
      }
19877
    }
19878
 
19879
    public getProviderLimitDetailsForPincode_result deepCopy() {
19880
      return new getProviderLimitDetailsForPincode_result(this);
19881
    }
19882
 
19883
    @Override
19884
    public void clear() {
19885
      this.success = null;
19886
      this.se = null;
19887
    }
19888
 
19889
    public int getSuccessSize() {
19890
      return (this.success == null) ? 0 : this.success.size();
19891
    }
19892
 
19893
    public void putToSuccess(String key, String val) {
19894
      if (this.success == null) {
19895
        this.success = new HashMap<String,String>();
19896
      }
19897
      this.success.put(key, val);
19898
    }
19899
 
19900
    public Map<String,String> getSuccess() {
19901
      return this.success;
19902
    }
19903
 
19904
    public void setSuccess(Map<String,String> success) {
19905
      this.success = success;
19906
    }
19907
 
19908
    public void unsetSuccess() {
19909
      this.success = null;
19910
    }
19911
 
19912
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19913
    public boolean isSetSuccess() {
19914
      return this.success != null;
19915
    }
19916
 
19917
    public void setSuccessIsSet(boolean value) {
19918
      if (!value) {
19919
        this.success = null;
19920
      }
19921
    }
19922
 
19923
    public LogisticsServiceException getSe() {
19924
      return this.se;
19925
    }
19926
 
19927
    public void setSe(LogisticsServiceException se) {
19928
      this.se = se;
19929
    }
19930
 
19931
    public void unsetSe() {
19932
      this.se = null;
19933
    }
19934
 
19935
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19936
    public boolean isSetSe() {
19937
      return this.se != null;
19938
    }
19939
 
19940
    public void setSeIsSet(boolean value) {
19941
      if (!value) {
19942
        this.se = null;
19943
      }
19944
    }
19945
 
19946
    public void setFieldValue(_Fields field, Object value) {
19947
      switch (field) {
19948
      case SUCCESS:
19949
        if (value == null) {
19950
          unsetSuccess();
19951
        } else {
19952
          setSuccess((Map<String,String>)value);
19953
        }
19954
        break;
19955
 
19956
      case SE:
19957
        if (value == null) {
19958
          unsetSe();
19959
        } else {
19960
          setSe((LogisticsServiceException)value);
19961
        }
19962
        break;
19963
 
19964
      }
19965
    }
19966
 
19967
    public Object getFieldValue(_Fields field) {
19968
      switch (field) {
19969
      case SUCCESS:
19970
        return getSuccess();
19971
 
19972
      case SE:
19973
        return getSe();
19974
 
19975
      }
19976
      throw new IllegalStateException();
19977
    }
19978
 
19979
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19980
    public boolean isSet(_Fields field) {
19981
      if (field == null) {
19982
        throw new IllegalArgumentException();
19983
      }
19984
 
19985
      switch (field) {
19986
      case SUCCESS:
19987
        return isSetSuccess();
19988
      case SE:
19989
        return isSetSe();
19990
      }
19991
      throw new IllegalStateException();
19992
    }
19993
 
19994
    @Override
19995
    public boolean equals(Object that) {
19996
      if (that == null)
19997
        return false;
19998
      if (that instanceof getProviderLimitDetailsForPincode_result)
19999
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20000
      return false;
20001
    }
20002
 
20003
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20004
      if (that == null)
20005
        return false;
20006
 
20007
      boolean this_present_success = true && this.isSetSuccess();
20008
      boolean that_present_success = true && that.isSetSuccess();
20009
      if (this_present_success || that_present_success) {
20010
        if (!(this_present_success && that_present_success))
20011
          return false;
20012
        if (!this.success.equals(that.success))
20013
          return false;
20014
      }
20015
 
20016
      boolean this_present_se = true && this.isSetSe();
20017
      boolean that_present_se = true && that.isSetSe();
20018
      if (this_present_se || that_present_se) {
20019
        if (!(this_present_se && that_present_se))
20020
          return false;
20021
        if (!this.se.equals(that.se))
20022
          return false;
20023
      }
20024
 
20025
      return true;
20026
    }
20027
 
20028
    @Override
20029
    public int hashCode() {
20030
      return 0;
20031
    }
20032
 
20033
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20034
      if (!getClass().equals(other.getClass())) {
20035
        return getClass().getName().compareTo(other.getClass().getName());
20036
      }
20037
 
20038
      int lastComparison = 0;
20039
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20040
 
20041
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20042
      if (lastComparison != 0) {
20043
        return lastComparison;
20044
      }
20045
      if (isSetSuccess()) {
20046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20047
        if (lastComparison != 0) {
20048
          return lastComparison;
20049
        }
20050
      }
20051
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20052
      if (lastComparison != 0) {
20053
        return lastComparison;
20054
      }
20055
      if (isSetSe()) {
20056
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20057
        if (lastComparison != 0) {
20058
          return lastComparison;
20059
        }
20060
      }
20061
      return 0;
20062
    }
20063
 
20064
    public _Fields fieldForId(int fieldId) {
20065
      return _Fields.findByThriftId(fieldId);
20066
    }
20067
 
20068
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20069
      org.apache.thrift.protocol.TField field;
20070
      iprot.readStructBegin();
20071
      while (true)
20072
      {
20073
        field = iprot.readFieldBegin();
20074
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20075
          break;
20076
        }
20077
        switch (field.id) {
20078
          case 0: // SUCCESS
20079
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20080
              {
20081
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20082
                this.success = new HashMap<String,String>(2*_map32.size);
20083
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20084
                {
20085
                  String _key34; // required
20086
                  String _val35; // required
20087
                  _key34 = iprot.readString();
20088
                  _val35 = iprot.readString();
20089
                  this.success.put(_key34, _val35);
20090
                }
20091
                iprot.readMapEnd();
20092
              }
20093
            } else { 
20094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20095
            }
20096
            break;
20097
          case 1: // SE
20098
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20099
              this.se = new LogisticsServiceException();
20100
              this.se.read(iprot);
20101
            } else { 
20102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20103
            }
20104
            break;
20105
          default:
20106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20107
        }
20108
        iprot.readFieldEnd();
20109
      }
20110
      iprot.readStructEnd();
20111
      validate();
20112
    }
20113
 
20114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20115
      oprot.writeStructBegin(STRUCT_DESC);
20116
 
20117
      if (this.isSetSuccess()) {
20118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20119
        {
20120
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20121
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20122
          {
20123
            oprot.writeString(_iter36.getKey());
20124
            oprot.writeString(_iter36.getValue());
20125
          }
20126
          oprot.writeMapEnd();
20127
        }
20128
        oprot.writeFieldEnd();
20129
      } else if (this.isSetSe()) {
20130
        oprot.writeFieldBegin(SE_FIELD_DESC);
20131
        this.se.write(oprot);
20132
        oprot.writeFieldEnd();
20133
      }
20134
      oprot.writeFieldStop();
20135
      oprot.writeStructEnd();
20136
    }
20137
 
20138
    @Override
20139
    public String toString() {
20140
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20141
      boolean first = true;
20142
 
20143
      sb.append("success:");
20144
      if (this.success == null) {
20145
        sb.append("null");
20146
      } else {
20147
        sb.append(this.success);
20148
      }
20149
      first = false;
20150
      if (!first) sb.append(", ");
20151
      sb.append("se:");
20152
      if (this.se == null) {
20153
        sb.append("null");
20154
      } else {
20155
        sb.append(this.se);
20156
      }
20157
      first = false;
20158
      sb.append(")");
20159
      return sb.toString();
20160
    }
20161
 
20162
    public void validate() throws org.apache.thrift.TException {
20163
      // check for required fields
20164
    }
20165
 
20166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20167
      try {
20168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20169
      } catch (org.apache.thrift.TException te) {
20170
        throw new java.io.IOException(te);
20171
      }
20172
    }
20173
 
20174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20175
      try {
20176
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20177
      } catch (org.apache.thrift.TException te) {
20178
        throw new java.io.IOException(te);
20179
      }
20180
    }
20181
 
20182
  }
20183
 
19413 amit.gupta 20184
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20185
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20186
 
20187
    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);
20188
    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);
20189
 
20190
    private String destPincode; // required
20191
    private List<Long> price; // required
20192
 
20193
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20194
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20195
      DEST_PINCODE((short)1, "destPincode"),
20196
      PRICE((short)2, "price");
20197
 
20198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20199
 
20200
      static {
20201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20202
          byName.put(field.getFieldName(), field);
20203
        }
20204
      }
20205
 
20206
      /**
20207
       * Find the _Fields constant that matches fieldId, or null if its not found.
20208
       */
20209
      public static _Fields findByThriftId(int fieldId) {
20210
        switch(fieldId) {
20211
          case 1: // DEST_PINCODE
20212
            return DEST_PINCODE;
20213
          case 2: // PRICE
20214
            return PRICE;
20215
          default:
20216
            return null;
20217
        }
20218
      }
20219
 
20220
      /**
20221
       * Find the _Fields constant that matches fieldId, throwing an exception
20222
       * if it is not found.
20223
       */
20224
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20225
        _Fields fields = findByThriftId(fieldId);
20226
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20227
        return fields;
20228
      }
20229
 
20230
      /**
20231
       * Find the _Fields constant that matches name, or null if its not found.
20232
       */
20233
      public static _Fields findByName(String name) {
20234
        return byName.get(name);
20235
      }
20236
 
20237
      private final short _thriftId;
20238
      private final String _fieldName;
20239
 
20240
      _Fields(short thriftId, String fieldName) {
20241
        _thriftId = thriftId;
20242
        _fieldName = fieldName;
20243
      }
20244
 
20245
      public short getThriftFieldId() {
20246
        return _thriftId;
20247
      }
20248
 
20249
      public String getFieldName() {
20250
        return _fieldName;
20251
      }
20252
    }
20253
 
20254
    // isset id assignments
20255
 
20256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20257
    static {
20258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20259
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20261
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20262
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20263
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20266
    }
20267
 
20268
    public getLocationInfoMap_args() {
20269
    }
20270
 
20271
    public getLocationInfoMap_args(
20272
      String destPincode,
20273
      List<Long> price)
20274
    {
20275
      this();
20276
      this.destPincode = destPincode;
20277
      this.price = price;
20278
    }
20279
 
20280
    /**
20281
     * Performs a deep copy on <i>other</i>.
20282
     */
20283
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20284
      if (other.isSetDestPincode()) {
20285
        this.destPincode = other.destPincode;
20286
      }
20287
      if (other.isSetPrice()) {
20288
        List<Long> __this__price = new ArrayList<Long>();
20289
        for (Long other_element : other.price) {
20290
          __this__price.add(other_element);
20291
        }
20292
        this.price = __this__price;
20293
      }
20294
    }
20295
 
20296
    public getLocationInfoMap_args deepCopy() {
20297
      return new getLocationInfoMap_args(this);
20298
    }
20299
 
20300
    @Override
20301
    public void clear() {
20302
      this.destPincode = null;
20303
      this.price = null;
20304
    }
20305
 
20306
    public String getDestPincode() {
20307
      return this.destPincode;
20308
    }
20309
 
20310
    public void setDestPincode(String destPincode) {
20311
      this.destPincode = destPincode;
20312
    }
20313
 
20314
    public void unsetDestPincode() {
20315
      this.destPincode = null;
20316
    }
20317
 
20318
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20319
    public boolean isSetDestPincode() {
20320
      return this.destPincode != null;
20321
    }
20322
 
20323
    public void setDestPincodeIsSet(boolean value) {
20324
      if (!value) {
20325
        this.destPincode = null;
20326
      }
20327
    }
20328
 
20329
    public int getPriceSize() {
20330
      return (this.price == null) ? 0 : this.price.size();
20331
    }
20332
 
20333
    public java.util.Iterator<Long> getPriceIterator() {
20334
      return (this.price == null) ? null : this.price.iterator();
20335
    }
20336
 
20337
    public void addToPrice(long elem) {
20338
      if (this.price == null) {
20339
        this.price = new ArrayList<Long>();
20340
      }
20341
      this.price.add(elem);
20342
    }
20343
 
20344
    public List<Long> getPrice() {
20345
      return this.price;
20346
    }
20347
 
20348
    public void setPrice(List<Long> price) {
20349
      this.price = price;
20350
    }
20351
 
20352
    public void unsetPrice() {
20353
      this.price = null;
20354
    }
20355
 
20356
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20357
    public boolean isSetPrice() {
20358
      return this.price != null;
20359
    }
20360
 
20361
    public void setPriceIsSet(boolean value) {
20362
      if (!value) {
20363
        this.price = null;
20364
      }
20365
    }
20366
 
20367
    public void setFieldValue(_Fields field, Object value) {
20368
      switch (field) {
20369
      case DEST_PINCODE:
20370
        if (value == null) {
20371
          unsetDestPincode();
20372
        } else {
20373
          setDestPincode((String)value);
20374
        }
20375
        break;
20376
 
20377
      case PRICE:
20378
        if (value == null) {
20379
          unsetPrice();
20380
        } else {
20381
          setPrice((List<Long>)value);
20382
        }
20383
        break;
20384
 
20385
      }
20386
    }
20387
 
20388
    public Object getFieldValue(_Fields field) {
20389
      switch (field) {
20390
      case DEST_PINCODE:
20391
        return getDestPincode();
20392
 
20393
      case PRICE:
20394
        return getPrice();
20395
 
20396
      }
20397
      throw new IllegalStateException();
20398
    }
20399
 
20400
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20401
    public boolean isSet(_Fields field) {
20402
      if (field == null) {
20403
        throw new IllegalArgumentException();
20404
      }
20405
 
20406
      switch (field) {
20407
      case DEST_PINCODE:
20408
        return isSetDestPincode();
20409
      case PRICE:
20410
        return isSetPrice();
20411
      }
20412
      throw new IllegalStateException();
20413
    }
20414
 
20415
    @Override
20416
    public boolean equals(Object that) {
20417
      if (that == null)
20418
        return false;
20419
      if (that instanceof getLocationInfoMap_args)
20420
        return this.equals((getLocationInfoMap_args)that);
20421
      return false;
20422
    }
20423
 
20424
    public boolean equals(getLocationInfoMap_args that) {
20425
      if (that == null)
20426
        return false;
20427
 
20428
      boolean this_present_destPincode = true && this.isSetDestPincode();
20429
      boolean that_present_destPincode = true && that.isSetDestPincode();
20430
      if (this_present_destPincode || that_present_destPincode) {
20431
        if (!(this_present_destPincode && that_present_destPincode))
20432
          return false;
20433
        if (!this.destPincode.equals(that.destPincode))
20434
          return false;
20435
      }
20436
 
20437
      boolean this_present_price = true && this.isSetPrice();
20438
      boolean that_present_price = true && that.isSetPrice();
20439
      if (this_present_price || that_present_price) {
20440
        if (!(this_present_price && that_present_price))
20441
          return false;
20442
        if (!this.price.equals(that.price))
20443
          return false;
20444
      }
20445
 
20446
      return true;
20447
    }
20448
 
20449
    @Override
20450
    public int hashCode() {
20451
      return 0;
20452
    }
20453
 
20454
    public int compareTo(getLocationInfoMap_args other) {
20455
      if (!getClass().equals(other.getClass())) {
20456
        return getClass().getName().compareTo(other.getClass().getName());
20457
      }
20458
 
20459
      int lastComparison = 0;
20460
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20461
 
20462
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20463
      if (lastComparison != 0) {
20464
        return lastComparison;
20465
      }
20466
      if (isSetDestPincode()) {
20467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20468
        if (lastComparison != 0) {
20469
          return lastComparison;
20470
        }
20471
      }
20472
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20473
      if (lastComparison != 0) {
20474
        return lastComparison;
20475
      }
20476
      if (isSetPrice()) {
20477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20478
        if (lastComparison != 0) {
20479
          return lastComparison;
20480
        }
20481
      }
20482
      return 0;
20483
    }
20484
 
20485
    public _Fields fieldForId(int fieldId) {
20486
      return _Fields.findByThriftId(fieldId);
20487
    }
20488
 
20489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20490
      org.apache.thrift.protocol.TField field;
20491
      iprot.readStructBegin();
20492
      while (true)
20493
      {
20494
        field = iprot.readFieldBegin();
20495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20496
          break;
20497
        }
20498
        switch (field.id) {
20499
          case 1: // DEST_PINCODE
20500
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20501
              this.destPincode = iprot.readString();
20502
            } else { 
20503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20504
            }
20505
            break;
20506
          case 2: // PRICE
20507
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20508
              {
20509
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20510
                this.price = new ArrayList<Long>(_list37.size);
20511
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20512
                {
20513
                  long _elem39; // required
20514
                  _elem39 = iprot.readI64();
20515
                  this.price.add(_elem39);
20516
                }
20517
                iprot.readListEnd();
20518
              }
20519
            } else { 
20520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20521
            }
20522
            break;
20523
          default:
20524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20525
        }
20526
        iprot.readFieldEnd();
20527
      }
20528
      iprot.readStructEnd();
20529
      validate();
20530
    }
20531
 
20532
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20533
      validate();
20534
 
20535
      oprot.writeStructBegin(STRUCT_DESC);
20536
      if (this.destPincode != null) {
20537
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20538
        oprot.writeString(this.destPincode);
20539
        oprot.writeFieldEnd();
20540
      }
20541
      if (this.price != null) {
20542
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20543
        {
20544
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20545
          for (long _iter40 : this.price)
20546
          {
20547
            oprot.writeI64(_iter40);
20548
          }
20549
          oprot.writeListEnd();
20550
        }
20551
        oprot.writeFieldEnd();
20552
      }
20553
      oprot.writeFieldStop();
20554
      oprot.writeStructEnd();
20555
    }
20556
 
20557
    @Override
20558
    public String toString() {
20559
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20560
      boolean first = true;
20561
 
20562
      sb.append("destPincode:");
20563
      if (this.destPincode == null) {
20564
        sb.append("null");
20565
      } else {
20566
        sb.append(this.destPincode);
20567
      }
20568
      first = false;
20569
      if (!first) sb.append(", ");
20570
      sb.append("price:");
20571
      if (this.price == null) {
20572
        sb.append("null");
20573
      } else {
20574
        sb.append(this.price);
20575
      }
20576
      first = false;
20577
      sb.append(")");
20578
      return sb.toString();
20579
    }
20580
 
20581
    public void validate() throws org.apache.thrift.TException {
20582
      // check for required fields
20583
    }
20584
 
20585
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20586
      try {
20587
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20588
      } catch (org.apache.thrift.TException te) {
20589
        throw new java.io.IOException(te);
20590
      }
20591
    }
20592
 
20593
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20594
      try {
20595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20596
      } catch (org.apache.thrift.TException te) {
20597
        throw new java.io.IOException(te);
20598
      }
20599
    }
20600
 
20601
  }
20602
 
20603
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20605
 
20606
    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);
20607
 
20608
    private Map<Long,Map<Long,LocationInfo>> success; // required
20609
 
20610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20612
      SUCCESS((short)0, "success");
20613
 
20614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20615
 
20616
      static {
20617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20618
          byName.put(field.getFieldName(), field);
20619
        }
20620
      }
20621
 
20622
      /**
20623
       * Find the _Fields constant that matches fieldId, or null if its not found.
20624
       */
20625
      public static _Fields findByThriftId(int fieldId) {
20626
        switch(fieldId) {
20627
          case 0: // SUCCESS
20628
            return SUCCESS;
20629
          default:
20630
            return null;
20631
        }
20632
      }
20633
 
20634
      /**
20635
       * Find the _Fields constant that matches fieldId, throwing an exception
20636
       * if it is not found.
20637
       */
20638
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20639
        _Fields fields = findByThriftId(fieldId);
20640
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20641
        return fields;
20642
      }
20643
 
20644
      /**
20645
       * Find the _Fields constant that matches name, or null if its not found.
20646
       */
20647
      public static _Fields findByName(String name) {
20648
        return byName.get(name);
20649
      }
20650
 
20651
      private final short _thriftId;
20652
      private final String _fieldName;
20653
 
20654
      _Fields(short thriftId, String fieldName) {
20655
        _thriftId = thriftId;
20656
        _fieldName = fieldName;
20657
      }
20658
 
20659
      public short getThriftFieldId() {
20660
        return _thriftId;
20661
      }
20662
 
20663
      public String getFieldName() {
20664
        return _fieldName;
20665
      }
20666
    }
20667
 
20668
    // isset id assignments
20669
 
20670
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20671
    static {
20672
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20673
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20674
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20675
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20676
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20677
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20678
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20681
    }
20682
 
20683
    public getLocationInfoMap_result() {
20684
    }
20685
 
20686
    public getLocationInfoMap_result(
20687
      Map<Long,Map<Long,LocationInfo>> success)
20688
    {
20689
      this();
20690
      this.success = success;
20691
    }
20692
 
20693
    /**
20694
     * Performs a deep copy on <i>other</i>.
20695
     */
20696
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20697
      if (other.isSetSuccess()) {
20698
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20699
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20700
 
20701
          Long other_element_key = other_element.getKey();
20702
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20703
 
20704
          Long __this__success_copy_key = other_element_key;
20705
 
20706
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20707
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20708
 
20709
            Long other_element_value_element_key = other_element_value_element.getKey();
20710
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20711
 
20712
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20713
 
20714
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20715
 
20716
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20717
          }
20718
 
20719
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20720
        }
20721
        this.success = __this__success;
20722
      }
20723
    }
20724
 
20725
    public getLocationInfoMap_result deepCopy() {
20726
      return new getLocationInfoMap_result(this);
20727
    }
20728
 
20729
    @Override
20730
    public void clear() {
20731
      this.success = null;
20732
    }
20733
 
20734
    public int getSuccessSize() {
20735
      return (this.success == null) ? 0 : this.success.size();
20736
    }
20737
 
20738
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20739
      if (this.success == null) {
20740
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20741
      }
20742
      this.success.put(key, val);
20743
    }
20744
 
20745
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20746
      return this.success;
20747
    }
20748
 
20749
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20750
      this.success = success;
20751
    }
20752
 
20753
    public void unsetSuccess() {
20754
      this.success = null;
20755
    }
20756
 
20757
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20758
    public boolean isSetSuccess() {
20759
      return this.success != null;
20760
    }
20761
 
20762
    public void setSuccessIsSet(boolean value) {
20763
      if (!value) {
20764
        this.success = null;
20765
      }
20766
    }
20767
 
20768
    public void setFieldValue(_Fields field, Object value) {
20769
      switch (field) {
20770
      case SUCCESS:
20771
        if (value == null) {
20772
          unsetSuccess();
20773
        } else {
20774
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20775
        }
20776
        break;
20777
 
20778
      }
20779
    }
20780
 
20781
    public Object getFieldValue(_Fields field) {
20782
      switch (field) {
20783
      case SUCCESS:
20784
        return getSuccess();
20785
 
20786
      }
20787
      throw new IllegalStateException();
20788
    }
20789
 
20790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20791
    public boolean isSet(_Fields field) {
20792
      if (field == null) {
20793
        throw new IllegalArgumentException();
20794
      }
20795
 
20796
      switch (field) {
20797
      case SUCCESS:
20798
        return isSetSuccess();
20799
      }
20800
      throw new IllegalStateException();
20801
    }
20802
 
20803
    @Override
20804
    public boolean equals(Object that) {
20805
      if (that == null)
20806
        return false;
20807
      if (that instanceof getLocationInfoMap_result)
20808
        return this.equals((getLocationInfoMap_result)that);
20809
      return false;
20810
    }
20811
 
20812
    public boolean equals(getLocationInfoMap_result that) {
20813
      if (that == null)
20814
        return false;
20815
 
20816
      boolean this_present_success = true && this.isSetSuccess();
20817
      boolean that_present_success = true && that.isSetSuccess();
20818
      if (this_present_success || that_present_success) {
20819
        if (!(this_present_success && that_present_success))
20820
          return false;
20821
        if (!this.success.equals(that.success))
20822
          return false;
20823
      }
20824
 
20825
      return true;
20826
    }
20827
 
20828
    @Override
20829
    public int hashCode() {
20830
      return 0;
20831
    }
20832
 
20833
    public int compareTo(getLocationInfoMap_result other) {
20834
      if (!getClass().equals(other.getClass())) {
20835
        return getClass().getName().compareTo(other.getClass().getName());
20836
      }
20837
 
20838
      int lastComparison = 0;
20839
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
20840
 
20841
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20842
      if (lastComparison != 0) {
20843
        return lastComparison;
20844
      }
20845
      if (isSetSuccess()) {
20846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20847
        if (lastComparison != 0) {
20848
          return lastComparison;
20849
        }
20850
      }
20851
      return 0;
20852
    }
20853
 
20854
    public _Fields fieldForId(int fieldId) {
20855
      return _Fields.findByThriftId(fieldId);
20856
    }
20857
 
20858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20859
      org.apache.thrift.protocol.TField field;
20860
      iprot.readStructBegin();
20861
      while (true)
20862
      {
20863
        field = iprot.readFieldBegin();
20864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20865
          break;
20866
        }
20867
        switch (field.id) {
20868
          case 0: // SUCCESS
20869
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20870
              {
20871
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
20872
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
20873
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
20874
                {
20875
                  long _key43; // required
20876
                  Map<Long,LocationInfo> _val44; // required
20877
                  _key43 = iprot.readI64();
20878
                  {
20879
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
20880
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
20881
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
20882
                    {
20883
                      long _key47; // required
20884
                      LocationInfo _val48; // required
20885
                      _key47 = iprot.readI64();
20886
                      _val48 = new LocationInfo();
20887
                      _val48.read(iprot);
20888
                      _val44.put(_key47, _val48);
20889
                    }
20890
                    iprot.readMapEnd();
20891
                  }
20892
                  this.success.put(_key43, _val44);
20893
                }
20894
                iprot.readMapEnd();
20895
              }
20896
            } else { 
20897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20898
            }
20899
            break;
20900
          default:
20901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20902
        }
20903
        iprot.readFieldEnd();
20904
      }
20905
      iprot.readStructEnd();
20906
      validate();
20907
    }
20908
 
20909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20910
      oprot.writeStructBegin(STRUCT_DESC);
20911
 
20912
      if (this.isSetSuccess()) {
20913
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20914
        {
20915
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
20916
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
20917
          {
20918
            oprot.writeI64(_iter49.getKey());
20919
            {
20920
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
20921
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
20922
              {
20923
                oprot.writeI64(_iter50.getKey());
20924
                _iter50.getValue().write(oprot);
20925
              }
20926
              oprot.writeMapEnd();
20927
            }
20928
          }
20929
          oprot.writeMapEnd();
20930
        }
20931
        oprot.writeFieldEnd();
20932
      }
20933
      oprot.writeFieldStop();
20934
      oprot.writeStructEnd();
20935
    }
20936
 
20937
    @Override
20938
    public String toString() {
20939
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
20940
      boolean first = true;
20941
 
20942
      sb.append("success:");
20943
      if (this.success == null) {
20944
        sb.append("null");
20945
      } else {
20946
        sb.append(this.success);
20947
      }
20948
      first = false;
20949
      sb.append(")");
20950
      return sb.toString();
20951
    }
20952
 
20953
    public void validate() throws org.apache.thrift.TException {
20954
      // check for required fields
20955
    }
20956
 
20957
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20958
      try {
20959
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20960
      } catch (org.apache.thrift.TException te) {
20961
        throw new java.io.IOException(te);
20962
      }
20963
    }
20964
 
20965
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20966
      try {
20967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20968
      } catch (org.apache.thrift.TException te) {
20969
        throw new java.io.IOException(te);
20970
      }
20971
    }
20972
 
20973
  }
20974
 
19421 manish.sha 20975
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
20976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
20977
 
20978
    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);
20979
    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);
20980
    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);
20981
    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);
20982
    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 20983
    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 20984
 
20985
    private String pincode; // required
20986
    private double transactionAmount; // required
20987
    private boolean isCod; // required
20988
    private double weight; // required
20989
    private long billingWarehouseId; // required
19474 manish.sha 20990
    private boolean isCompleteTxn; // required
19421 manish.sha 20991
 
20992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20994
      PINCODE((short)1, "pincode"),
20995
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
20996
      IS_COD((short)3, "isCod"),
20997
      WEIGHT((short)4, "weight"),
19474 manish.sha 20998
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
20999
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21000
 
21001
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21002
 
21003
      static {
21004
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21005
          byName.put(field.getFieldName(), field);
21006
        }
21007
      }
21008
 
21009
      /**
21010
       * Find the _Fields constant that matches fieldId, or null if its not found.
21011
       */
21012
      public static _Fields findByThriftId(int fieldId) {
21013
        switch(fieldId) {
21014
          case 1: // PINCODE
21015
            return PINCODE;
21016
          case 2: // TRANSACTION_AMOUNT
21017
            return TRANSACTION_AMOUNT;
21018
          case 3: // IS_COD
21019
            return IS_COD;
21020
          case 4: // WEIGHT
21021
            return WEIGHT;
21022
          case 5: // BILLING_WAREHOUSE_ID
21023
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21024
          case 6: // IS_COMPLETE_TXN
21025
            return IS_COMPLETE_TXN;
19421 manish.sha 21026
          default:
21027
            return null;
21028
        }
21029
      }
21030
 
21031
      /**
21032
       * Find the _Fields constant that matches fieldId, throwing an exception
21033
       * if it is not found.
21034
       */
21035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21036
        _Fields fields = findByThriftId(fieldId);
21037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21038
        return fields;
21039
      }
21040
 
21041
      /**
21042
       * Find the _Fields constant that matches name, or null if its not found.
21043
       */
21044
      public static _Fields findByName(String name) {
21045
        return byName.get(name);
21046
      }
21047
 
21048
      private final short _thriftId;
21049
      private final String _fieldName;
21050
 
21051
      _Fields(short thriftId, String fieldName) {
21052
        _thriftId = thriftId;
21053
        _fieldName = fieldName;
21054
      }
21055
 
21056
      public short getThriftFieldId() {
21057
        return _thriftId;
21058
      }
21059
 
21060
      public String getFieldName() {
21061
        return _fieldName;
21062
      }
21063
    }
21064
 
21065
    // isset id assignments
21066
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21067
    private static final int __ISCOD_ISSET_ID = 1;
21068
    private static final int __WEIGHT_ISSET_ID = 2;
21069
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21070
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21071
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21072
 
21073
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21074
    static {
21075
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21076
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21078
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21080
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21082
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21084
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21086
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21090
    }
21091
 
21092
    public getCostingAndDeliveryEstimateForPincode_args() {
21093
    }
21094
 
21095
    public getCostingAndDeliveryEstimateForPincode_args(
21096
      String pincode,
21097
      double transactionAmount,
21098
      boolean isCod,
21099
      double weight,
19474 manish.sha 21100
      long billingWarehouseId,
21101
      boolean isCompleteTxn)
19421 manish.sha 21102
    {
21103
      this();
21104
      this.pincode = pincode;
21105
      this.transactionAmount = transactionAmount;
21106
      setTransactionAmountIsSet(true);
21107
      this.isCod = isCod;
21108
      setIsCodIsSet(true);
21109
      this.weight = weight;
21110
      setWeightIsSet(true);
21111
      this.billingWarehouseId = billingWarehouseId;
21112
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21113
      this.isCompleteTxn = isCompleteTxn;
21114
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21115
    }
21116
 
21117
    /**
21118
     * Performs a deep copy on <i>other</i>.
21119
     */
21120
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21121
      __isset_bit_vector.clear();
21122
      __isset_bit_vector.or(other.__isset_bit_vector);
21123
      if (other.isSetPincode()) {
21124
        this.pincode = other.pincode;
21125
      }
21126
      this.transactionAmount = other.transactionAmount;
21127
      this.isCod = other.isCod;
21128
      this.weight = other.weight;
21129
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21130
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21131
    }
21132
 
21133
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21134
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21135
    }
21136
 
21137
    @Override
21138
    public void clear() {
21139
      this.pincode = null;
21140
      setTransactionAmountIsSet(false);
21141
      this.transactionAmount = 0.0;
21142
      setIsCodIsSet(false);
21143
      this.isCod = false;
21144
      setWeightIsSet(false);
21145
      this.weight = 0.0;
21146
      setBillingWarehouseIdIsSet(false);
21147
      this.billingWarehouseId = 0;
19474 manish.sha 21148
      setIsCompleteTxnIsSet(false);
21149
      this.isCompleteTxn = false;
19421 manish.sha 21150
    }
21151
 
21152
    public String getPincode() {
21153
      return this.pincode;
21154
    }
21155
 
21156
    public void setPincode(String pincode) {
21157
      this.pincode = pincode;
21158
    }
21159
 
21160
    public void unsetPincode() {
21161
      this.pincode = null;
21162
    }
21163
 
21164
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21165
    public boolean isSetPincode() {
21166
      return this.pincode != null;
21167
    }
21168
 
21169
    public void setPincodeIsSet(boolean value) {
21170
      if (!value) {
21171
        this.pincode = null;
21172
      }
21173
    }
21174
 
21175
    public double getTransactionAmount() {
21176
      return this.transactionAmount;
21177
    }
21178
 
21179
    public void setTransactionAmount(double transactionAmount) {
21180
      this.transactionAmount = transactionAmount;
21181
      setTransactionAmountIsSet(true);
21182
    }
21183
 
21184
    public void unsetTransactionAmount() {
21185
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21186
    }
21187
 
21188
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21189
    public boolean isSetTransactionAmount() {
21190
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21191
    }
21192
 
21193
    public void setTransactionAmountIsSet(boolean value) {
21194
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21195
    }
21196
 
21197
    public boolean isIsCod() {
21198
      return this.isCod;
21199
    }
21200
 
21201
    public void setIsCod(boolean isCod) {
21202
      this.isCod = isCod;
21203
      setIsCodIsSet(true);
21204
    }
21205
 
21206
    public void unsetIsCod() {
21207
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21208
    }
21209
 
21210
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21211
    public boolean isSetIsCod() {
21212
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21213
    }
21214
 
21215
    public void setIsCodIsSet(boolean value) {
21216
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21217
    }
21218
 
21219
    public double getWeight() {
21220
      return this.weight;
21221
    }
21222
 
21223
    public void setWeight(double weight) {
21224
      this.weight = weight;
21225
      setWeightIsSet(true);
21226
    }
21227
 
21228
    public void unsetWeight() {
21229
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21230
    }
21231
 
21232
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21233
    public boolean isSetWeight() {
21234
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21235
    }
21236
 
21237
    public void setWeightIsSet(boolean value) {
21238
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21239
    }
21240
 
21241
    public long getBillingWarehouseId() {
21242
      return this.billingWarehouseId;
21243
    }
21244
 
21245
    public void setBillingWarehouseId(long billingWarehouseId) {
21246
      this.billingWarehouseId = billingWarehouseId;
21247
      setBillingWarehouseIdIsSet(true);
21248
    }
21249
 
21250
    public void unsetBillingWarehouseId() {
21251
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21252
    }
21253
 
21254
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21255
    public boolean isSetBillingWarehouseId() {
21256
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21257
    }
21258
 
21259
    public void setBillingWarehouseIdIsSet(boolean value) {
21260
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21261
    }
21262
 
19474 manish.sha 21263
    public boolean isIsCompleteTxn() {
21264
      return this.isCompleteTxn;
21265
    }
21266
 
21267
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21268
      this.isCompleteTxn = isCompleteTxn;
21269
      setIsCompleteTxnIsSet(true);
21270
    }
21271
 
21272
    public void unsetIsCompleteTxn() {
21273
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21274
    }
21275
 
21276
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21277
    public boolean isSetIsCompleteTxn() {
21278
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21279
    }
21280
 
21281
    public void setIsCompleteTxnIsSet(boolean value) {
21282
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21283
    }
21284
 
19421 manish.sha 21285
    public void setFieldValue(_Fields field, Object value) {
21286
      switch (field) {
21287
      case PINCODE:
21288
        if (value == null) {
21289
          unsetPincode();
21290
        } else {
21291
          setPincode((String)value);
21292
        }
21293
        break;
21294
 
21295
      case TRANSACTION_AMOUNT:
21296
        if (value == null) {
21297
          unsetTransactionAmount();
21298
        } else {
21299
          setTransactionAmount((Double)value);
21300
        }
21301
        break;
21302
 
21303
      case IS_COD:
21304
        if (value == null) {
21305
          unsetIsCod();
21306
        } else {
21307
          setIsCod((Boolean)value);
21308
        }
21309
        break;
21310
 
21311
      case WEIGHT:
21312
        if (value == null) {
21313
          unsetWeight();
21314
        } else {
21315
          setWeight((Double)value);
21316
        }
21317
        break;
21318
 
21319
      case BILLING_WAREHOUSE_ID:
21320
        if (value == null) {
21321
          unsetBillingWarehouseId();
21322
        } else {
21323
          setBillingWarehouseId((Long)value);
21324
        }
21325
        break;
21326
 
19474 manish.sha 21327
      case IS_COMPLETE_TXN:
21328
        if (value == null) {
21329
          unsetIsCompleteTxn();
21330
        } else {
21331
          setIsCompleteTxn((Boolean)value);
21332
        }
21333
        break;
21334
 
19421 manish.sha 21335
      }
21336
    }
21337
 
21338
    public Object getFieldValue(_Fields field) {
21339
      switch (field) {
21340
      case PINCODE:
21341
        return getPincode();
21342
 
21343
      case TRANSACTION_AMOUNT:
21344
        return Double.valueOf(getTransactionAmount());
21345
 
21346
      case IS_COD:
21347
        return Boolean.valueOf(isIsCod());
21348
 
21349
      case WEIGHT:
21350
        return Double.valueOf(getWeight());
21351
 
21352
      case BILLING_WAREHOUSE_ID:
21353
        return Long.valueOf(getBillingWarehouseId());
21354
 
19474 manish.sha 21355
      case IS_COMPLETE_TXN:
21356
        return Boolean.valueOf(isIsCompleteTxn());
21357
 
19421 manish.sha 21358
      }
21359
      throw new IllegalStateException();
21360
    }
21361
 
21362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21363
    public boolean isSet(_Fields field) {
21364
      if (field == null) {
21365
        throw new IllegalArgumentException();
21366
      }
21367
 
21368
      switch (field) {
21369
      case PINCODE:
21370
        return isSetPincode();
21371
      case TRANSACTION_AMOUNT:
21372
        return isSetTransactionAmount();
21373
      case IS_COD:
21374
        return isSetIsCod();
21375
      case WEIGHT:
21376
        return isSetWeight();
21377
      case BILLING_WAREHOUSE_ID:
21378
        return isSetBillingWarehouseId();
19474 manish.sha 21379
      case IS_COMPLETE_TXN:
21380
        return isSetIsCompleteTxn();
19421 manish.sha 21381
      }
21382
      throw new IllegalStateException();
21383
    }
21384
 
21385
    @Override
21386
    public boolean equals(Object that) {
21387
      if (that == null)
21388
        return false;
21389
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21390
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21391
      return false;
21392
    }
21393
 
21394
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21395
      if (that == null)
21396
        return false;
21397
 
21398
      boolean this_present_pincode = true && this.isSetPincode();
21399
      boolean that_present_pincode = true && that.isSetPincode();
21400
      if (this_present_pincode || that_present_pincode) {
21401
        if (!(this_present_pincode && that_present_pincode))
21402
          return false;
21403
        if (!this.pincode.equals(that.pincode))
21404
          return false;
21405
      }
21406
 
21407
      boolean this_present_transactionAmount = true;
21408
      boolean that_present_transactionAmount = true;
21409
      if (this_present_transactionAmount || that_present_transactionAmount) {
21410
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21411
          return false;
21412
        if (this.transactionAmount != that.transactionAmount)
21413
          return false;
21414
      }
21415
 
21416
      boolean this_present_isCod = true;
21417
      boolean that_present_isCod = true;
21418
      if (this_present_isCod || that_present_isCod) {
21419
        if (!(this_present_isCod && that_present_isCod))
21420
          return false;
21421
        if (this.isCod != that.isCod)
21422
          return false;
21423
      }
21424
 
21425
      boolean this_present_weight = true;
21426
      boolean that_present_weight = true;
21427
      if (this_present_weight || that_present_weight) {
21428
        if (!(this_present_weight && that_present_weight))
21429
          return false;
21430
        if (this.weight != that.weight)
21431
          return false;
21432
      }
21433
 
21434
      boolean this_present_billingWarehouseId = true;
21435
      boolean that_present_billingWarehouseId = true;
21436
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21437
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21438
          return false;
21439
        if (this.billingWarehouseId != that.billingWarehouseId)
21440
          return false;
21441
      }
21442
 
19474 manish.sha 21443
      boolean this_present_isCompleteTxn = true;
21444
      boolean that_present_isCompleteTxn = true;
21445
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21446
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21447
          return false;
21448
        if (this.isCompleteTxn != that.isCompleteTxn)
21449
          return false;
21450
      }
21451
 
19421 manish.sha 21452
      return true;
21453
    }
21454
 
21455
    @Override
21456
    public int hashCode() {
21457
      return 0;
21458
    }
21459
 
21460
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21461
      if (!getClass().equals(other.getClass())) {
21462
        return getClass().getName().compareTo(other.getClass().getName());
21463
      }
21464
 
21465
      int lastComparison = 0;
21466
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21467
 
21468
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21469
      if (lastComparison != 0) {
21470
        return lastComparison;
21471
      }
21472
      if (isSetPincode()) {
21473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21474
        if (lastComparison != 0) {
21475
          return lastComparison;
21476
        }
21477
      }
21478
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21479
      if (lastComparison != 0) {
21480
        return lastComparison;
21481
      }
21482
      if (isSetTransactionAmount()) {
21483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21484
        if (lastComparison != 0) {
21485
          return lastComparison;
21486
        }
21487
      }
21488
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21489
      if (lastComparison != 0) {
21490
        return lastComparison;
21491
      }
21492
      if (isSetIsCod()) {
21493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21494
        if (lastComparison != 0) {
21495
          return lastComparison;
21496
        }
21497
      }
21498
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21499
      if (lastComparison != 0) {
21500
        return lastComparison;
21501
      }
21502
      if (isSetWeight()) {
21503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21504
        if (lastComparison != 0) {
21505
          return lastComparison;
21506
        }
21507
      }
21508
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21509
      if (lastComparison != 0) {
21510
        return lastComparison;
21511
      }
21512
      if (isSetBillingWarehouseId()) {
21513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21514
        if (lastComparison != 0) {
21515
          return lastComparison;
21516
        }
21517
      }
19474 manish.sha 21518
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21519
      if (lastComparison != 0) {
21520
        return lastComparison;
21521
      }
21522
      if (isSetIsCompleteTxn()) {
21523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21524
        if (lastComparison != 0) {
21525
          return lastComparison;
21526
        }
21527
      }
19421 manish.sha 21528
      return 0;
21529
    }
21530
 
21531
    public _Fields fieldForId(int fieldId) {
21532
      return _Fields.findByThriftId(fieldId);
21533
    }
21534
 
21535
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21536
      org.apache.thrift.protocol.TField field;
21537
      iprot.readStructBegin();
21538
      while (true)
21539
      {
21540
        field = iprot.readFieldBegin();
21541
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21542
          break;
21543
        }
21544
        switch (field.id) {
21545
          case 1: // PINCODE
21546
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21547
              this.pincode = iprot.readString();
21548
            } else { 
21549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21550
            }
21551
            break;
21552
          case 2: // TRANSACTION_AMOUNT
21553
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21554
              this.transactionAmount = iprot.readDouble();
21555
              setTransactionAmountIsSet(true);
21556
            } else { 
21557
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21558
            }
21559
            break;
21560
          case 3: // IS_COD
21561
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21562
              this.isCod = iprot.readBool();
21563
              setIsCodIsSet(true);
21564
            } else { 
21565
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21566
            }
21567
            break;
21568
          case 4: // WEIGHT
21569
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21570
              this.weight = iprot.readDouble();
21571
              setWeightIsSet(true);
21572
            } else { 
21573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21574
            }
21575
            break;
21576
          case 5: // BILLING_WAREHOUSE_ID
21577
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21578
              this.billingWarehouseId = iprot.readI64();
21579
              setBillingWarehouseIdIsSet(true);
21580
            } else { 
21581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21582
            }
21583
            break;
19474 manish.sha 21584
          case 6: // IS_COMPLETE_TXN
21585
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21586
              this.isCompleteTxn = iprot.readBool();
21587
              setIsCompleteTxnIsSet(true);
21588
            } else { 
21589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21590
            }
21591
            break;
19421 manish.sha 21592
          default:
21593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21594
        }
21595
        iprot.readFieldEnd();
21596
      }
21597
      iprot.readStructEnd();
21598
      validate();
21599
    }
21600
 
21601
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21602
      validate();
21603
 
21604
      oprot.writeStructBegin(STRUCT_DESC);
21605
      if (this.pincode != null) {
21606
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21607
        oprot.writeString(this.pincode);
21608
        oprot.writeFieldEnd();
21609
      }
21610
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21611
      oprot.writeDouble(this.transactionAmount);
21612
      oprot.writeFieldEnd();
21613
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21614
      oprot.writeBool(this.isCod);
21615
      oprot.writeFieldEnd();
21616
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21617
      oprot.writeDouble(this.weight);
21618
      oprot.writeFieldEnd();
21619
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21620
      oprot.writeI64(this.billingWarehouseId);
21621
      oprot.writeFieldEnd();
19474 manish.sha 21622
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21623
      oprot.writeBool(this.isCompleteTxn);
21624
      oprot.writeFieldEnd();
19421 manish.sha 21625
      oprot.writeFieldStop();
21626
      oprot.writeStructEnd();
21627
    }
21628
 
21629
    @Override
21630
    public String toString() {
21631
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21632
      boolean first = true;
21633
 
21634
      sb.append("pincode:");
21635
      if (this.pincode == null) {
21636
        sb.append("null");
21637
      } else {
21638
        sb.append(this.pincode);
21639
      }
21640
      first = false;
21641
      if (!first) sb.append(", ");
21642
      sb.append("transactionAmount:");
21643
      sb.append(this.transactionAmount);
21644
      first = false;
21645
      if (!first) sb.append(", ");
21646
      sb.append("isCod:");
21647
      sb.append(this.isCod);
21648
      first = false;
21649
      if (!first) sb.append(", ");
21650
      sb.append("weight:");
21651
      sb.append(this.weight);
21652
      first = false;
21653
      if (!first) sb.append(", ");
21654
      sb.append("billingWarehouseId:");
21655
      sb.append(this.billingWarehouseId);
21656
      first = false;
19474 manish.sha 21657
      if (!first) sb.append(", ");
21658
      sb.append("isCompleteTxn:");
21659
      sb.append(this.isCompleteTxn);
21660
      first = false;
19421 manish.sha 21661
      sb.append(")");
21662
      return sb.toString();
21663
    }
21664
 
21665
    public void validate() throws org.apache.thrift.TException {
21666
      // check for required fields
21667
    }
21668
 
21669
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21670
      try {
21671
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21672
      } catch (org.apache.thrift.TException te) {
21673
        throw new java.io.IOException(te);
21674
      }
21675
    }
21676
 
21677
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21678
      try {
21679
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21680
        __isset_bit_vector = new BitSet(1);
21681
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21682
      } catch (org.apache.thrift.TException te) {
21683
        throw new java.io.IOException(te);
21684
      }
21685
    }
21686
 
21687
  }
21688
 
21689
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21691
 
21692
    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);
21693
    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);
21694
 
21695
    private DeliveryEstimateAndCosting success; // required
21696
    private LogisticsServiceException se; // required
21697
 
21698
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21699
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21700
      SUCCESS((short)0, "success"),
21701
      SE((short)1, "se");
21702
 
21703
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21704
 
21705
      static {
21706
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21707
          byName.put(field.getFieldName(), field);
21708
        }
21709
      }
21710
 
21711
      /**
21712
       * Find the _Fields constant that matches fieldId, or null if its not found.
21713
       */
21714
      public static _Fields findByThriftId(int fieldId) {
21715
        switch(fieldId) {
21716
          case 0: // SUCCESS
21717
            return SUCCESS;
21718
          case 1: // SE
21719
            return SE;
21720
          default:
21721
            return null;
21722
        }
21723
      }
21724
 
21725
      /**
21726
       * Find the _Fields constant that matches fieldId, throwing an exception
21727
       * if it is not found.
21728
       */
21729
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21730
        _Fields fields = findByThriftId(fieldId);
21731
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21732
        return fields;
21733
      }
21734
 
21735
      /**
21736
       * Find the _Fields constant that matches name, or null if its not found.
21737
       */
21738
      public static _Fields findByName(String name) {
21739
        return byName.get(name);
21740
      }
21741
 
21742
      private final short _thriftId;
21743
      private final String _fieldName;
21744
 
21745
      _Fields(short thriftId, String fieldName) {
21746
        _thriftId = thriftId;
21747
        _fieldName = fieldName;
21748
      }
21749
 
21750
      public short getThriftFieldId() {
21751
        return _thriftId;
21752
      }
21753
 
21754
      public String getFieldName() {
21755
        return _fieldName;
21756
      }
21757
    }
21758
 
21759
    // isset id assignments
21760
 
21761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21762
    static {
21763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21764
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21765
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
21766
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
21770
    }
21771
 
21772
    public getCostingAndDeliveryEstimateForPincode_result() {
21773
    }
21774
 
21775
    public getCostingAndDeliveryEstimateForPincode_result(
21776
      DeliveryEstimateAndCosting success,
21777
      LogisticsServiceException se)
21778
    {
21779
      this();
21780
      this.success = success;
21781
      this.se = se;
21782
    }
21783
 
21784
    /**
21785
     * Performs a deep copy on <i>other</i>.
21786
     */
21787
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
21788
      if (other.isSetSuccess()) {
21789
        this.success = new DeliveryEstimateAndCosting(other.success);
21790
      }
21791
      if (other.isSetSe()) {
21792
        this.se = new LogisticsServiceException(other.se);
21793
      }
21794
    }
21795
 
21796
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
21797
      return new getCostingAndDeliveryEstimateForPincode_result(this);
21798
    }
21799
 
21800
    @Override
21801
    public void clear() {
21802
      this.success = null;
21803
      this.se = null;
21804
    }
21805
 
21806
    public DeliveryEstimateAndCosting getSuccess() {
21807
      return this.success;
21808
    }
21809
 
21810
    public void setSuccess(DeliveryEstimateAndCosting success) {
21811
      this.success = success;
21812
    }
21813
 
21814
    public void unsetSuccess() {
21815
      this.success = null;
21816
    }
21817
 
21818
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21819
    public boolean isSetSuccess() {
21820
      return this.success != null;
21821
    }
21822
 
21823
    public void setSuccessIsSet(boolean value) {
21824
      if (!value) {
21825
        this.success = null;
21826
      }
21827
    }
21828
 
21829
    public LogisticsServiceException getSe() {
21830
      return this.se;
21831
    }
21832
 
21833
    public void setSe(LogisticsServiceException se) {
21834
      this.se = se;
21835
    }
21836
 
21837
    public void unsetSe() {
21838
      this.se = null;
21839
    }
21840
 
21841
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
21842
    public boolean isSetSe() {
21843
      return this.se != null;
21844
    }
21845
 
21846
    public void setSeIsSet(boolean value) {
21847
      if (!value) {
21848
        this.se = null;
21849
      }
21850
    }
21851
 
21852
    public void setFieldValue(_Fields field, Object value) {
21853
      switch (field) {
21854
      case SUCCESS:
21855
        if (value == null) {
21856
          unsetSuccess();
21857
        } else {
21858
          setSuccess((DeliveryEstimateAndCosting)value);
21859
        }
21860
        break;
21861
 
21862
      case SE:
21863
        if (value == null) {
21864
          unsetSe();
21865
        } else {
21866
          setSe((LogisticsServiceException)value);
21867
        }
21868
        break;
21869
 
21870
      }
21871
    }
21872
 
21873
    public Object getFieldValue(_Fields field) {
21874
      switch (field) {
21875
      case SUCCESS:
21876
        return getSuccess();
21877
 
21878
      case SE:
21879
        return getSe();
21880
 
21881
      }
21882
      throw new IllegalStateException();
21883
    }
21884
 
21885
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21886
    public boolean isSet(_Fields field) {
21887
      if (field == null) {
21888
        throw new IllegalArgumentException();
21889
      }
21890
 
21891
      switch (field) {
21892
      case SUCCESS:
21893
        return isSetSuccess();
21894
      case SE:
21895
        return isSetSe();
21896
      }
21897
      throw new IllegalStateException();
21898
    }
21899
 
21900
    @Override
21901
    public boolean equals(Object that) {
21902
      if (that == null)
21903
        return false;
21904
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
21905
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
21906
      return false;
21907
    }
21908
 
21909
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
21910
      if (that == null)
21911
        return false;
21912
 
21913
      boolean this_present_success = true && this.isSetSuccess();
21914
      boolean that_present_success = true && that.isSetSuccess();
21915
      if (this_present_success || that_present_success) {
21916
        if (!(this_present_success && that_present_success))
21917
          return false;
21918
        if (!this.success.equals(that.success))
21919
          return false;
21920
      }
21921
 
21922
      boolean this_present_se = true && this.isSetSe();
21923
      boolean that_present_se = true && that.isSetSe();
21924
      if (this_present_se || that_present_se) {
21925
        if (!(this_present_se && that_present_se))
21926
          return false;
21927
        if (!this.se.equals(that.se))
21928
          return false;
21929
      }
21930
 
21931
      return true;
21932
    }
21933
 
21934
    @Override
21935
    public int hashCode() {
21936
      return 0;
21937
    }
21938
 
21939
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
21940
      if (!getClass().equals(other.getClass())) {
21941
        return getClass().getName().compareTo(other.getClass().getName());
21942
      }
21943
 
21944
      int lastComparison = 0;
21945
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
21946
 
21947
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21948
      if (lastComparison != 0) {
21949
        return lastComparison;
21950
      }
21951
      if (isSetSuccess()) {
21952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21953
        if (lastComparison != 0) {
21954
          return lastComparison;
21955
        }
21956
      }
21957
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
21958
      if (lastComparison != 0) {
21959
        return lastComparison;
21960
      }
21961
      if (isSetSe()) {
21962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
21963
        if (lastComparison != 0) {
21964
          return lastComparison;
21965
        }
21966
      }
21967
      return 0;
21968
    }
21969
 
21970
    public _Fields fieldForId(int fieldId) {
21971
      return _Fields.findByThriftId(fieldId);
21972
    }
21973
 
21974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21975
      org.apache.thrift.protocol.TField field;
21976
      iprot.readStructBegin();
21977
      while (true)
21978
      {
21979
        field = iprot.readFieldBegin();
21980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21981
          break;
21982
        }
21983
        switch (field.id) {
21984
          case 0: // SUCCESS
21985
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21986
              this.success = new DeliveryEstimateAndCosting();
21987
              this.success.read(iprot);
21988
            } else { 
21989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21990
            }
21991
            break;
21992
          case 1: // SE
21993
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21994
              this.se = new LogisticsServiceException();
21995
              this.se.read(iprot);
21996
            } else { 
21997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21998
            }
21999
            break;
22000
          default:
22001
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22002
        }
22003
        iprot.readFieldEnd();
22004
      }
22005
      iprot.readStructEnd();
22006
      validate();
22007
    }
22008
 
22009
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22010
      oprot.writeStructBegin(STRUCT_DESC);
22011
 
22012
      if (this.isSetSuccess()) {
22013
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22014
        this.success.write(oprot);
22015
        oprot.writeFieldEnd();
22016
      } else if (this.isSetSe()) {
22017
        oprot.writeFieldBegin(SE_FIELD_DESC);
22018
        this.se.write(oprot);
22019
        oprot.writeFieldEnd();
22020
      }
22021
      oprot.writeFieldStop();
22022
      oprot.writeStructEnd();
22023
    }
22024
 
22025
    @Override
22026
    public String toString() {
22027
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22028
      boolean first = true;
22029
 
22030
      sb.append("success:");
22031
      if (this.success == null) {
22032
        sb.append("null");
22033
      } else {
22034
        sb.append(this.success);
22035
      }
22036
      first = false;
22037
      if (!first) sb.append(", ");
22038
      sb.append("se:");
22039
      if (this.se == null) {
22040
        sb.append("null");
22041
      } else {
22042
        sb.append(this.se);
22043
      }
22044
      first = false;
22045
      sb.append(")");
22046
      return sb.toString();
22047
    }
22048
 
22049
    public void validate() throws org.apache.thrift.TException {
22050
      // check for required fields
22051
    }
22052
 
22053
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22054
      try {
22055
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22056
      } catch (org.apache.thrift.TException te) {
22057
        throw new java.io.IOException(te);
22058
      }
22059
    }
22060
 
22061
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22062
      try {
22063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22064
      } catch (org.apache.thrift.TException te) {
22065
        throw new java.io.IOException(te);
22066
      }
22067
    }
22068
 
22069
  }
22070
 
412 ashish 22071
}