Subversion Repositories SmartDukaan

Rev

Rev 19421 | Rev 20724 | 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
5247 rajveer 66
     * @param type
648 chandransh 67
     */
5247 rajveer 68
    public String getEmptyAWB(long providerId, DeliveryType type) 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
 
5247 rajveer 177
    public void getEmptyAWB(long providerId, DeliveryType type, 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
 
5247 rajveer 377
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 378
    {
5247 rajveer 379
      send_getEmptyAWB(providerId, type);
412 ashish 380
      return recv_getEmptyAWB();
381
    }
382
 
5247 rajveer 383
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 384
    {
385
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 386
      args.setProviderId(providerId);
5247 rajveer 387
      args.setType(type);
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
 
5247 rajveer 1099
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1100
      checkReady();
5247 rajveer 1101
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, 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;
5247 rajveer 1108
      private DeliveryType type;
1109
      public getEmptyAWB_call(long providerId, DeliveryType type, 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;
5247 rajveer 1112
        this.type = type;
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);
5247 rajveer 1119
        args.setType(type);
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 {
5247 rajveer 2018
          result.success = iface.getEmptyAWB(args.providerId, args.type);
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);
5247 rajveer 6366
    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)-1);
412 ashish 6367
 
3430 rajveer 6368
    private long providerId; // required
5247 rajveer 6369
    private DeliveryType type; // 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"),
6374
      /**
6375
       * 
6376
       * @see DeliveryType
6377
       */
6378
      TYPE((short)-1, "type");
412 ashish 6379
 
6380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6381
 
6382
      static {
6383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6384
          byName.put(field.getFieldName(), field);
6385
        }
6386
      }
6387
 
6388
      /**
6389
       * Find the _Fields constant that matches fieldId, or null if its not found.
6390
       */
6391
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6392
        switch(fieldId) {
6393
          case 1: // PROVIDER_ID
6394
            return PROVIDER_ID;
5247 rajveer 6395
          case -1: // TYPE
6396
            return TYPE;
3430 rajveer 6397
          default:
6398
            return null;
6399
        }
412 ashish 6400
      }
6401
 
6402
      /**
6403
       * Find the _Fields constant that matches fieldId, throwing an exception
6404
       * if it is not found.
6405
       */
6406
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6407
        _Fields fields = findByThriftId(fieldId);
6408
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6409
        return fields;
6410
      }
6411
 
6412
      /**
6413
       * Find the _Fields constant that matches name, or null if its not found.
6414
       */
6415
      public static _Fields findByName(String name) {
6416
        return byName.get(name);
6417
      }
6418
 
6419
      private final short _thriftId;
6420
      private final String _fieldName;
6421
 
6422
      _Fields(short thriftId, String fieldName) {
6423
        _thriftId = thriftId;
6424
        _fieldName = fieldName;
6425
      }
6426
 
6427
      public short getThriftFieldId() {
6428
        return _thriftId;
6429
      }
6430
 
6431
      public String getFieldName() {
6432
        return _fieldName;
6433
      }
6434
    }
6435
 
6436
    // isset id assignments
648 chandransh 6437
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6438
    private BitSet __isset_bit_vector = new BitSet(1);
6439
 
3430 rajveer 6440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6441
    static {
3430 rajveer 6442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6443
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 6445
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6446
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 6447
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6448
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6449
    }
6450
 
6451
    public getEmptyAWB_args() {
6452
    }
6453
 
6454
    public getEmptyAWB_args(
5247 rajveer 6455
      long providerId,
6456
      DeliveryType type)
412 ashish 6457
    {
6458
      this();
648 chandransh 6459
      this.providerId = providerId;
6460
      setProviderIdIsSet(true);
5247 rajveer 6461
      this.type = type;
412 ashish 6462
    }
6463
 
6464
    /**
6465
     * Performs a deep copy on <i>other</i>.
6466
     */
6467
    public getEmptyAWB_args(getEmptyAWB_args other) {
6468
      __isset_bit_vector.clear();
6469
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6470
      this.providerId = other.providerId;
5247 rajveer 6471
      if (other.isSetType()) {
6472
        this.type = other.type;
6473
      }
412 ashish 6474
    }
6475
 
6476
    public getEmptyAWB_args deepCopy() {
6477
      return new getEmptyAWB_args(this);
6478
    }
6479
 
3430 rajveer 6480
    @Override
6481
    public void clear() {
6482
      setProviderIdIsSet(false);
6483
      this.providerId = 0;
5247 rajveer 6484
      this.type = null;
412 ashish 6485
    }
6486
 
648 chandransh 6487
    public long getProviderId() {
6488
      return this.providerId;
412 ashish 6489
    }
6490
 
3430 rajveer 6491
    public void setProviderId(long providerId) {
648 chandransh 6492
      this.providerId = providerId;
6493
      setProviderIdIsSet(true);
412 ashish 6494
    }
6495
 
648 chandransh 6496
    public void unsetProviderId() {
6497
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6498
    }
6499
 
3430 rajveer 6500
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6501
    public boolean isSetProviderId() {
6502
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6503
    }
6504
 
648 chandransh 6505
    public void setProviderIdIsSet(boolean value) {
6506
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6507
    }
6508
 
5247 rajveer 6509
    /**
6510
     * 
6511
     * @see DeliveryType
6512
     */
6513
    public DeliveryType getType() {
6514
      return this.type;
6515
    }
6516
 
6517
    /**
6518
     * 
6519
     * @see DeliveryType
6520
     */
6521
    public void setType(DeliveryType type) {
6522
      this.type = type;
6523
    }
6524
 
6525
    public void unsetType() {
6526
      this.type = null;
6527
    }
6528
 
6529
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6530
    public boolean isSetType() {
6531
      return this.type != null;
6532
    }
6533
 
6534
    public void setTypeIsSet(boolean value) {
6535
      if (!value) {
6536
        this.type = null;
6537
      }
6538
    }
6539
 
412 ashish 6540
    public void setFieldValue(_Fields field, Object value) {
6541
      switch (field) {
6542
      case PROVIDER_ID:
6543
        if (value == null) {
648 chandransh 6544
          unsetProviderId();
412 ashish 6545
        } else {
648 chandransh 6546
          setProviderId((Long)value);
412 ashish 6547
        }
6548
        break;
6549
 
5247 rajveer 6550
      case TYPE:
6551
        if (value == null) {
6552
          unsetType();
6553
        } else {
6554
          setType((DeliveryType)value);
6555
        }
6556
        break;
6557
 
412 ashish 6558
      }
6559
    }
6560
 
6561
    public Object getFieldValue(_Fields field) {
6562
      switch (field) {
6563
      case PROVIDER_ID:
3430 rajveer 6564
        return Long.valueOf(getProviderId());
412 ashish 6565
 
5247 rajveer 6566
      case TYPE:
6567
        return getType();
6568
 
412 ashish 6569
      }
6570
      throw new IllegalStateException();
6571
    }
6572
 
3430 rajveer 6573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6574
    public boolean isSet(_Fields field) {
6575
      if (field == null) {
6576
        throw new IllegalArgumentException();
6577
      }
412 ashish 6578
 
6579
      switch (field) {
6580
      case PROVIDER_ID:
648 chandransh 6581
        return isSetProviderId();
5247 rajveer 6582
      case TYPE:
6583
        return isSetType();
412 ashish 6584
      }
6585
      throw new IllegalStateException();
6586
    }
6587
 
6588
    @Override
6589
    public boolean equals(Object that) {
6590
      if (that == null)
6591
        return false;
6592
      if (that instanceof getEmptyAWB_args)
6593
        return this.equals((getEmptyAWB_args)that);
6594
      return false;
6595
    }
6596
 
6597
    public boolean equals(getEmptyAWB_args that) {
6598
      if (that == null)
6599
        return false;
6600
 
648 chandransh 6601
      boolean this_present_providerId = true;
6602
      boolean that_present_providerId = true;
6603
      if (this_present_providerId || that_present_providerId) {
6604
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6605
          return false;
648 chandransh 6606
        if (this.providerId != that.providerId)
412 ashish 6607
          return false;
6608
      }
6609
 
5247 rajveer 6610
      boolean this_present_type = true && this.isSetType();
6611
      boolean that_present_type = true && that.isSetType();
6612
      if (this_present_type || that_present_type) {
6613
        if (!(this_present_type && that_present_type))
6614
          return false;
6615
        if (!this.type.equals(that.type))
6616
          return false;
6617
      }
6618
 
412 ashish 6619
      return true;
6620
    }
6621
 
6622
    @Override
6623
    public int hashCode() {
6624
      return 0;
6625
    }
6626
 
6627
    public int compareTo(getEmptyAWB_args other) {
6628
      if (!getClass().equals(other.getClass())) {
6629
        return getClass().getName().compareTo(other.getClass().getName());
6630
      }
6631
 
6632
      int lastComparison = 0;
6633
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6634
 
3430 rajveer 6635
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6636
      if (lastComparison != 0) {
6637
        return lastComparison;
6638
      }
3430 rajveer 6639
      if (isSetProviderId()) {
6640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6641
        if (lastComparison != 0) {
6642
          return lastComparison;
6643
        }
412 ashish 6644
      }
5247 rajveer 6645
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6646
      if (lastComparison != 0) {
6647
        return lastComparison;
6648
      }
6649
      if (isSetType()) {
6650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6651
        if (lastComparison != 0) {
6652
          return lastComparison;
6653
        }
6654
      }
412 ashish 6655
      return 0;
6656
    }
6657
 
3430 rajveer 6658
    public _Fields fieldForId(int fieldId) {
6659
      return _Fields.findByThriftId(fieldId);
6660
    }
6661
 
6662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6663
      org.apache.thrift.protocol.TField field;
412 ashish 6664
      iprot.readStructBegin();
6665
      while (true)
6666
      {
6667
        field = iprot.readFieldBegin();
3430 rajveer 6668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6669
          break;
6670
        }
3430 rajveer 6671
        switch (field.id) {
6672
          case 1: // PROVIDER_ID
6673
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6674
              this.providerId = iprot.readI64();
6675
              setProviderIdIsSet(true);
6676
            } else { 
6677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6678
            }
6679
            break;
5247 rajveer 6680
          case -1: // TYPE
6681
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6682
              this.type = DeliveryType.findByValue(iprot.readI32());
6683
            } else { 
6684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6685
            }
6686
            break;
3430 rajveer 6687
          default:
6688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6689
        }
3430 rajveer 6690
        iprot.readFieldEnd();
412 ashish 6691
      }
6692
      iprot.readStructEnd();
6693
      validate();
6694
    }
6695
 
3430 rajveer 6696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6697
      validate();
6698
 
6699
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6700
      if (this.type != null) {
6701
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6702
        oprot.writeI32(this.type.getValue());
6703
        oprot.writeFieldEnd();
6704
      }
412 ashish 6705
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6706
      oprot.writeI64(this.providerId);
412 ashish 6707
      oprot.writeFieldEnd();
6708
      oprot.writeFieldStop();
6709
      oprot.writeStructEnd();
6710
    }
6711
 
6712
    @Override
6713
    public String toString() {
6714
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6715
      boolean first = true;
6716
 
648 chandransh 6717
      sb.append("providerId:");
6718
      sb.append(this.providerId);
412 ashish 6719
      first = false;
5247 rajveer 6720
      if (!first) sb.append(", ");
6721
      sb.append("type:");
6722
      if (this.type == null) {
6723
        sb.append("null");
6724
      } else {
6725
        sb.append(this.type);
6726
      }
6727
      first = false;
412 ashish 6728
      sb.append(")");
6729
      return sb.toString();
6730
    }
6731
 
3430 rajveer 6732
    public void validate() throws org.apache.thrift.TException {
412 ashish 6733
      // check for required fields
6734
    }
6735
 
3430 rajveer 6736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6737
      try {
6738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6739
      } catch (org.apache.thrift.TException te) {
6740
        throw new java.io.IOException(te);
6741
      }
6742
    }
6743
 
6744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6745
      try {
6746
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6747
        __isset_bit_vector = new BitSet(1);
6748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6749
      } catch (org.apache.thrift.TException te) {
6750
        throw new java.io.IOException(te);
6751
      }
6752
    }
6753
 
412 ashish 6754
  }
6755
 
3430 rajveer 6756
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6758
 
3430 rajveer 6759
    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);
6760
    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 6761
 
3430 rajveer 6762
    private String success; // required
6763
    private LogisticsServiceException se; // required
412 ashish 6764
 
6765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6767
      SUCCESS((short)0, "success"),
6768
      SE((short)1, "se");
412 ashish 6769
 
6770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6771
 
6772
      static {
6773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6774
          byName.put(field.getFieldName(), field);
6775
        }
6776
      }
6777
 
6778
      /**
6779
       * Find the _Fields constant that matches fieldId, or null if its not found.
6780
       */
6781
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6782
        switch(fieldId) {
6783
          case 0: // SUCCESS
6784
            return SUCCESS;
6785
          case 1: // SE
6786
            return SE;
6787
          default:
6788
            return null;
6789
        }
412 ashish 6790
      }
6791
 
6792
      /**
6793
       * Find the _Fields constant that matches fieldId, throwing an exception
6794
       * if it is not found.
6795
       */
6796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6797
        _Fields fields = findByThriftId(fieldId);
6798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6799
        return fields;
6800
      }
6801
 
6802
      /**
6803
       * Find the _Fields constant that matches name, or null if its not found.
6804
       */
6805
      public static _Fields findByName(String name) {
6806
        return byName.get(name);
6807
      }
6808
 
6809
      private final short _thriftId;
6810
      private final String _fieldName;
6811
 
6812
      _Fields(short thriftId, String fieldName) {
6813
        _thriftId = thriftId;
6814
        _fieldName = fieldName;
6815
      }
6816
 
6817
      public short getThriftFieldId() {
6818
        return _thriftId;
6819
      }
6820
 
6821
      public String getFieldName() {
6822
        return _fieldName;
6823
      }
6824
    }
6825
 
6826
    // isset id assignments
6827
 
3430 rajveer 6828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6829
    static {
3430 rajveer 6830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6833
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6837
    }
6838
 
6839
    public getEmptyAWB_result() {
6840
    }
6841
 
6842
    public getEmptyAWB_result(
648 chandransh 6843
      String success,
6844
      LogisticsServiceException se)
412 ashish 6845
    {
6846
      this();
6847
      this.success = success;
648 chandransh 6848
      this.se = se;
412 ashish 6849
    }
6850
 
6851
    /**
6852
     * Performs a deep copy on <i>other</i>.
6853
     */
6854
    public getEmptyAWB_result(getEmptyAWB_result other) {
6855
      if (other.isSetSuccess()) {
6856
        this.success = other.success;
6857
      }
648 chandransh 6858
      if (other.isSetSe()) {
6859
        this.se = new LogisticsServiceException(other.se);
6860
      }
412 ashish 6861
    }
6862
 
6863
    public getEmptyAWB_result deepCopy() {
6864
      return new getEmptyAWB_result(this);
6865
    }
6866
 
3430 rajveer 6867
    @Override
6868
    public void clear() {
6869
      this.success = null;
6870
      this.se = null;
412 ashish 6871
    }
6872
 
6873
    public String getSuccess() {
6874
      return this.success;
6875
    }
6876
 
3430 rajveer 6877
    public void setSuccess(String success) {
412 ashish 6878
      this.success = success;
6879
    }
6880
 
6881
    public void unsetSuccess() {
6882
      this.success = null;
6883
    }
6884
 
3430 rajveer 6885
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6886
    public boolean isSetSuccess() {
6887
      return this.success != null;
6888
    }
6889
 
6890
    public void setSuccessIsSet(boolean value) {
6891
      if (!value) {
6892
        this.success = null;
6893
      }
6894
    }
6895
 
648 chandransh 6896
    public LogisticsServiceException getSe() {
6897
      return this.se;
412 ashish 6898
    }
6899
 
3430 rajveer 6900
    public void setSe(LogisticsServiceException se) {
648 chandransh 6901
      this.se = se;
412 ashish 6902
    }
6903
 
648 chandransh 6904
    public void unsetSe() {
6905
      this.se = null;
412 ashish 6906
    }
6907
 
3430 rajveer 6908
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6909
    public boolean isSetSe() {
6910
      return this.se != null;
412 ashish 6911
    }
6912
 
648 chandransh 6913
    public void setSeIsSet(boolean value) {
412 ashish 6914
      if (!value) {
648 chandransh 6915
        this.se = null;
412 ashish 6916
      }
6917
    }
6918
 
6919
    public void setFieldValue(_Fields field, Object value) {
6920
      switch (field) {
6921
      case SUCCESS:
6922
        if (value == null) {
6923
          unsetSuccess();
6924
        } else {
648 chandransh 6925
          setSuccess((String)value);
412 ashish 6926
        }
6927
        break;
6928
 
648 chandransh 6929
      case SE:
6930
        if (value == null) {
6931
          unsetSe();
6932
        } else {
6933
          setSe((LogisticsServiceException)value);
6934
        }
6935
        break;
6936
 
412 ashish 6937
      }
6938
    }
6939
 
6940
    public Object getFieldValue(_Fields field) {
6941
      switch (field) {
6942
      case SUCCESS:
6943
        return getSuccess();
6944
 
648 chandransh 6945
      case SE:
6946
        return getSe();
6947
 
412 ashish 6948
      }
6949
      throw new IllegalStateException();
6950
    }
6951
 
3430 rajveer 6952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6953
    public boolean isSet(_Fields field) {
6954
      if (field == null) {
6955
        throw new IllegalArgumentException();
6956
      }
412 ashish 6957
 
6958
      switch (field) {
6959
      case SUCCESS:
6960
        return isSetSuccess();
648 chandransh 6961
      case SE:
6962
        return isSetSe();
412 ashish 6963
      }
6964
      throw new IllegalStateException();
6965
    }
6966
 
6967
    @Override
6968
    public boolean equals(Object that) {
6969
      if (that == null)
6970
        return false;
648 chandransh 6971
      if (that instanceof getEmptyAWB_result)
6972
        return this.equals((getEmptyAWB_result)that);
412 ashish 6973
      return false;
6974
    }
6975
 
648 chandransh 6976
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6977
      if (that == null)
6978
        return false;
6979
 
6980
      boolean this_present_success = true && this.isSetSuccess();
6981
      boolean that_present_success = true && that.isSetSuccess();
6982
      if (this_present_success || that_present_success) {
6983
        if (!(this_present_success && that_present_success))
6984
          return false;
6985
        if (!this.success.equals(that.success))
6986
          return false;
6987
      }
6988
 
648 chandransh 6989
      boolean this_present_se = true && this.isSetSe();
6990
      boolean that_present_se = true && that.isSetSe();
6991
      if (this_present_se || that_present_se) {
6992
        if (!(this_present_se && that_present_se))
6993
          return false;
6994
        if (!this.se.equals(that.se))
6995
          return false;
6996
      }
6997
 
412 ashish 6998
      return true;
6999
    }
7000
 
7001
    @Override
7002
    public int hashCode() {
7003
      return 0;
7004
    }
7005
 
648 chandransh 7006
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7007
      if (!getClass().equals(other.getClass())) {
7008
        return getClass().getName().compareTo(other.getClass().getName());
7009
      }
7010
 
7011
      int lastComparison = 0;
648 chandransh 7012
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7013
 
3430 rajveer 7014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7015
      if (lastComparison != 0) {
7016
        return lastComparison;
7017
      }
3430 rajveer 7018
      if (isSetSuccess()) {
7019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7020
        if (lastComparison != 0) {
7021
          return lastComparison;
7022
        }
412 ashish 7023
      }
3430 rajveer 7024
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7025
      if (lastComparison != 0) {
7026
        return lastComparison;
7027
      }
3430 rajveer 7028
      if (isSetSe()) {
7029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7030
        if (lastComparison != 0) {
7031
          return lastComparison;
7032
        }
412 ashish 7033
      }
7034
      return 0;
7035
    }
7036
 
3430 rajveer 7037
    public _Fields fieldForId(int fieldId) {
7038
      return _Fields.findByThriftId(fieldId);
7039
    }
7040
 
7041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7042
      org.apache.thrift.protocol.TField field;
412 ashish 7043
      iprot.readStructBegin();
7044
      while (true)
7045
      {
7046
        field = iprot.readFieldBegin();
3430 rajveer 7047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7048
          break;
7049
        }
3430 rajveer 7050
        switch (field.id) {
7051
          case 0: // SUCCESS
7052
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7053
              this.success = iprot.readString();
7054
            } else { 
7055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7056
            }
7057
            break;
7058
          case 1: // SE
7059
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7060
              this.se = new LogisticsServiceException();
7061
              this.se.read(iprot);
7062
            } else { 
7063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7064
            }
7065
            break;
7066
          default:
7067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7068
        }
3430 rajveer 7069
        iprot.readFieldEnd();
412 ashish 7070
      }
7071
      iprot.readStructEnd();
7072
      validate();
7073
    }
7074
 
3430 rajveer 7075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7076
      oprot.writeStructBegin(STRUCT_DESC);
7077
 
7078
      if (this.isSetSuccess()) {
7079
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7080
        oprot.writeString(this.success);
412 ashish 7081
        oprot.writeFieldEnd();
648 chandransh 7082
      } else if (this.isSetSe()) {
7083
        oprot.writeFieldBegin(SE_FIELD_DESC);
7084
        this.se.write(oprot);
7085
        oprot.writeFieldEnd();
412 ashish 7086
      }
7087
      oprot.writeFieldStop();
7088
      oprot.writeStructEnd();
7089
    }
7090
 
7091
    @Override
7092
    public String toString() {
648 chandransh 7093
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7094
      boolean first = true;
7095
 
7096
      sb.append("success:");
7097
      if (this.success == null) {
7098
        sb.append("null");
7099
      } else {
7100
        sb.append(this.success);
7101
      }
7102
      first = false;
648 chandransh 7103
      if (!first) sb.append(", ");
7104
      sb.append("se:");
7105
      if (this.se == null) {
442 rajveer 7106
        sb.append("null");
7107
      } else {
648 chandransh 7108
        sb.append(this.se);
442 rajveer 7109
      }
7110
      first = false;
7111
      sb.append(")");
7112
      return sb.toString();
7113
    }
7114
 
3430 rajveer 7115
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7116
      // check for required fields
7117
    }
7118
 
3430 rajveer 7119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7120
      try {
7121
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7122
      } catch (org.apache.thrift.TException te) {
7123
        throw new java.io.IOException(te);
7124
      }
7125
    }
7126
 
7127
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7128
      try {
7129
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7130
      } catch (org.apache.thrift.TException te) {
7131
        throw new java.io.IOException(te);
7132
      }
7133
    }
7134
 
442 rajveer 7135
  }
7136
 
3430 rajveer 7137
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7139
 
6643 rajveer 7140
    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 7141
    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 7142
 
6643 rajveer 7143
    private String awbNumber; // required
3430 rajveer 7144
    private long providerId; // required
442 rajveer 7145
 
7146
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7147
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7148
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7149
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7150
 
7151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7152
 
7153
      static {
7154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7155
          byName.put(field.getFieldName(), field);
7156
        }
7157
      }
7158
 
7159
      /**
7160
       * Find the _Fields constant that matches fieldId, or null if its not found.
7161
       */
7162
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7163
        switch(fieldId) {
6643 rajveer 7164
          case 1: // AWB_NUMBER
7165
            return AWB_NUMBER;
3430 rajveer 7166
          case 2: // PROVIDER_ID
7167
            return PROVIDER_ID;
7168
          default:
7169
            return null;
7170
        }
442 rajveer 7171
      }
7172
 
7173
      /**
7174
       * Find the _Fields constant that matches fieldId, throwing an exception
7175
       * if it is not found.
7176
       */
7177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7178
        _Fields fields = findByThriftId(fieldId);
7179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7180
        return fields;
7181
      }
7182
 
7183
      /**
7184
       * Find the _Fields constant that matches name, or null if its not found.
7185
       */
7186
      public static _Fields findByName(String name) {
7187
        return byName.get(name);
7188
      }
7189
 
7190
      private final short _thriftId;
7191
      private final String _fieldName;
7192
 
7193
      _Fields(short thriftId, String fieldName) {
7194
        _thriftId = thriftId;
7195
        _fieldName = fieldName;
7196
      }
7197
 
7198
      public short getThriftFieldId() {
7199
        return _thriftId;
7200
      }
7201
 
7202
      public String getFieldName() {
7203
        return _fieldName;
7204
      }
7205
    }
7206
 
7207
    // isset id assignments
648 chandransh 7208
    private static final int __PROVIDERID_ISSET_ID = 0;
7209
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7210
 
3430 rajveer 7211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7212
    static {
3430 rajveer 7213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7214
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7216
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7220
    }
7221
 
648 chandransh 7222
    public getShipmentInfo_args() {
442 rajveer 7223
    }
7224
 
648 chandransh 7225
    public getShipmentInfo_args(
6643 rajveer 7226
      String awbNumber,
648 chandransh 7227
      long providerId)
442 rajveer 7228
    {
7229
      this();
6643 rajveer 7230
      this.awbNumber = awbNumber;
648 chandransh 7231
      this.providerId = providerId;
7232
      setProviderIdIsSet(true);
442 rajveer 7233
    }
7234
 
7235
    /**
7236
     * Performs a deep copy on <i>other</i>.
7237
     */
648 chandransh 7238
    public getShipmentInfo_args(getShipmentInfo_args other) {
7239
      __isset_bit_vector.clear();
7240
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7241
      if (other.isSetAwbNumber()) {
7242
        this.awbNumber = other.awbNumber;
442 rajveer 7243
      }
648 chandransh 7244
      this.providerId = other.providerId;
442 rajveer 7245
    }
7246
 
648 chandransh 7247
    public getShipmentInfo_args deepCopy() {
7248
      return new getShipmentInfo_args(this);
442 rajveer 7249
    }
7250
 
3430 rajveer 7251
    @Override
7252
    public void clear() {
6643 rajveer 7253
      this.awbNumber = null;
3430 rajveer 7254
      setProviderIdIsSet(false);
7255
      this.providerId = 0;
442 rajveer 7256
    }
7257
 
6643 rajveer 7258
    public String getAwbNumber() {
7259
      return this.awbNumber;
442 rajveer 7260
    }
7261
 
6643 rajveer 7262
    public void setAwbNumber(String awbNumber) {
7263
      this.awbNumber = awbNumber;
442 rajveer 7264
    }
7265
 
6643 rajveer 7266
    public void unsetAwbNumber() {
7267
      this.awbNumber = null;
442 rajveer 7268
    }
7269
 
6643 rajveer 7270
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7271
    public boolean isSetAwbNumber() {
7272
      return this.awbNumber != null;
442 rajveer 7273
    }
7274
 
6643 rajveer 7275
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7276
      if (!value) {
6643 rajveer 7277
        this.awbNumber = null;
442 rajveer 7278
      }
7279
    }
7280
 
648 chandransh 7281
    public long getProviderId() {
7282
      return this.providerId;
442 rajveer 7283
    }
7284
 
3430 rajveer 7285
    public void setProviderId(long providerId) {
648 chandransh 7286
      this.providerId = providerId;
7287
      setProviderIdIsSet(true);
442 rajveer 7288
    }
7289
 
648 chandransh 7290
    public void unsetProviderId() {
7291
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7292
    }
7293
 
3430 rajveer 7294
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7295
    public boolean isSetProviderId() {
7296
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7297
    }
7298
 
648 chandransh 7299
    public void setProviderIdIsSet(boolean value) {
7300
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7301
    }
7302
 
7303
    public void setFieldValue(_Fields field, Object value) {
7304
      switch (field) {
6643 rajveer 7305
      case AWB_NUMBER:
442 rajveer 7306
        if (value == null) {
6643 rajveer 7307
          unsetAwbNumber();
442 rajveer 7308
        } else {
6643 rajveer 7309
          setAwbNumber((String)value);
442 rajveer 7310
        }
7311
        break;
7312
 
648 chandransh 7313
      case PROVIDER_ID:
442 rajveer 7314
        if (value == null) {
648 chandransh 7315
          unsetProviderId();
442 rajveer 7316
        } else {
648 chandransh 7317
          setProviderId((Long)value);
442 rajveer 7318
        }
7319
        break;
7320
 
7321
      }
7322
    }
7323
 
7324
    public Object getFieldValue(_Fields field) {
7325
      switch (field) {
6643 rajveer 7326
      case AWB_NUMBER:
7327
        return getAwbNumber();
442 rajveer 7328
 
648 chandransh 7329
      case PROVIDER_ID:
3430 rajveer 7330
        return Long.valueOf(getProviderId());
442 rajveer 7331
 
7332
      }
7333
      throw new IllegalStateException();
7334
    }
7335
 
3430 rajveer 7336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7337
    public boolean isSet(_Fields field) {
7338
      if (field == null) {
7339
        throw new IllegalArgumentException();
7340
      }
442 rajveer 7341
 
7342
      switch (field) {
6643 rajveer 7343
      case AWB_NUMBER:
7344
        return isSetAwbNumber();
648 chandransh 7345
      case PROVIDER_ID:
7346
        return isSetProviderId();
442 rajveer 7347
      }
7348
      throw new IllegalStateException();
7349
    }
7350
 
7351
    @Override
7352
    public boolean equals(Object that) {
7353
      if (that == null)
7354
        return false;
648 chandransh 7355
      if (that instanceof getShipmentInfo_args)
7356
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7357
      return false;
7358
    }
7359
 
648 chandransh 7360
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7361
      if (that == null)
7362
        return false;
7363
 
6643 rajveer 7364
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7365
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7366
      if (this_present_awbNumber || that_present_awbNumber) {
7367
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7368
          return false;
6643 rajveer 7369
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7370
          return false;
7371
      }
7372
 
648 chandransh 7373
      boolean this_present_providerId = true;
7374
      boolean that_present_providerId = true;
7375
      if (this_present_providerId || that_present_providerId) {
7376
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7377
          return false;
648 chandransh 7378
        if (this.providerId != that.providerId)
442 rajveer 7379
          return false;
7380
      }
7381
 
7382
      return true;
7383
    }
7384
 
7385
    @Override
7386
    public int hashCode() {
7387
      return 0;
7388
    }
7389
 
648 chandransh 7390
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7391
      if (!getClass().equals(other.getClass())) {
7392
        return getClass().getName().compareTo(other.getClass().getName());
7393
      }
7394
 
7395
      int lastComparison = 0;
648 chandransh 7396
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7397
 
6643 rajveer 7398
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7399
      if (lastComparison != 0) {
7400
        return lastComparison;
7401
      }
6643 rajveer 7402
      if (isSetAwbNumber()) {
7403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7404
        if (lastComparison != 0) {
7405
          return lastComparison;
7406
        }
442 rajveer 7407
      }
3430 rajveer 7408
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7409
      if (lastComparison != 0) {
7410
        return lastComparison;
7411
      }
3430 rajveer 7412
      if (isSetProviderId()) {
7413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7414
        if (lastComparison != 0) {
7415
          return lastComparison;
7416
        }
442 rajveer 7417
      }
7418
      return 0;
7419
    }
7420
 
3430 rajveer 7421
    public _Fields fieldForId(int fieldId) {
7422
      return _Fields.findByThriftId(fieldId);
7423
    }
7424
 
7425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7426
      org.apache.thrift.protocol.TField field;
442 rajveer 7427
      iprot.readStructBegin();
7428
      while (true)
7429
      {
7430
        field = iprot.readFieldBegin();
3430 rajveer 7431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7432
          break;
7433
        }
3430 rajveer 7434
        switch (field.id) {
6643 rajveer 7435
          case 1: // AWB_NUMBER
3430 rajveer 7436
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7437
              this.awbNumber = iprot.readString();
3430 rajveer 7438
            } else { 
7439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7440
            }
7441
            break;
7442
          case 2: // PROVIDER_ID
7443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7444
              this.providerId = iprot.readI64();
7445
              setProviderIdIsSet(true);
7446
            } else { 
7447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7448
            }
7449
            break;
7450
          default:
7451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7452
        }
3430 rajveer 7453
        iprot.readFieldEnd();
442 rajveer 7454
      }
7455
      iprot.readStructEnd();
7456
      validate();
7457
    }
7458
 
3430 rajveer 7459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7460
      validate();
7461
 
7462
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7463
      if (this.awbNumber != null) {
7464
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7465
        oprot.writeString(this.awbNumber);
442 rajveer 7466
        oprot.writeFieldEnd();
7467
      }
648 chandransh 7468
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7469
      oprot.writeI64(this.providerId);
7470
      oprot.writeFieldEnd();
442 rajveer 7471
      oprot.writeFieldStop();
7472
      oprot.writeStructEnd();
7473
    }
7474
 
7475
    @Override
7476
    public String toString() {
648 chandransh 7477
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7478
      boolean first = true;
7479
 
6643 rajveer 7480
      sb.append("awbNumber:");
7481
      if (this.awbNumber == null) {
442 rajveer 7482
        sb.append("null");
7483
      } else {
6643 rajveer 7484
        sb.append(this.awbNumber);
442 rajveer 7485
      }
7486
      first = false;
7487
      if (!first) sb.append(", ");
648 chandransh 7488
      sb.append("providerId:");
7489
      sb.append(this.providerId);
442 rajveer 7490
      first = false;
7491
      sb.append(")");
7492
      return sb.toString();
7493
    }
7494
 
3430 rajveer 7495
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7496
      // check for required fields
7497
    }
7498
 
3430 rajveer 7499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7500
      try {
7501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7502
      } catch (org.apache.thrift.TException te) {
7503
        throw new java.io.IOException(te);
7504
      }
7505
    }
7506
 
7507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7508
      try {
7509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7510
      } catch (org.apache.thrift.TException te) {
7511
        throw new java.io.IOException(te);
7512
      }
7513
    }
7514
 
442 rajveer 7515
  }
7516
 
3430 rajveer 7517
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7519
 
3430 rajveer 7520
    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);
7521
    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 7522
 
3430 rajveer 7523
    private List<AwbUpdate> success; // required
7524
    private LogisticsServiceException se; // required
412 ashish 7525
 
7526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7528
      SUCCESS((short)0, "success"),
7529
      SE((short)1, "se");
412 ashish 7530
 
7531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7532
 
7533
      static {
7534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7535
          byName.put(field.getFieldName(), field);
7536
        }
7537
      }
7538
 
7539
      /**
7540
       * Find the _Fields constant that matches fieldId, or null if its not found.
7541
       */
7542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7543
        switch(fieldId) {
7544
          case 0: // SUCCESS
7545
            return SUCCESS;
7546
          case 1: // SE
7547
            return SE;
7548
          default:
7549
            return null;
7550
        }
412 ashish 7551
      }
7552
 
7553
      /**
7554
       * Find the _Fields constant that matches fieldId, throwing an exception
7555
       * if it is not found.
7556
       */
7557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7558
        _Fields fields = findByThriftId(fieldId);
7559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7560
        return fields;
7561
      }
7562
 
7563
      /**
7564
       * Find the _Fields constant that matches name, or null if its not found.
7565
       */
7566
      public static _Fields findByName(String name) {
7567
        return byName.get(name);
7568
      }
7569
 
7570
      private final short _thriftId;
7571
      private final String _fieldName;
7572
 
7573
      _Fields(short thriftId, String fieldName) {
7574
        _thriftId = thriftId;
7575
        _fieldName = fieldName;
7576
      }
7577
 
7578
      public short getThriftFieldId() {
7579
        return _thriftId;
7580
      }
7581
 
7582
      public String getFieldName() {
7583
        return _fieldName;
7584
      }
7585
    }
7586
 
7587
    // isset id assignments
7588
 
3430 rajveer 7589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7590
    static {
3430 rajveer 7591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7593
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7594
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7595
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7599
    }
7600
 
7601
    public getShipmentInfo_result() {
7602
    }
7603
 
7604
    public getShipmentInfo_result(
648 chandransh 7605
      List<AwbUpdate> success,
7606
      LogisticsServiceException se)
412 ashish 7607
    {
7608
      this();
7609
      this.success = success;
648 chandransh 7610
      this.se = se;
412 ashish 7611
    }
7612
 
7613
    /**
7614
     * Performs a deep copy on <i>other</i>.
7615
     */
7616
    public getShipmentInfo_result(getShipmentInfo_result other) {
7617
      if (other.isSetSuccess()) {
648 chandransh 7618
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7619
        for (AwbUpdate other_element : other.success) {
7620
          __this__success.add(new AwbUpdate(other_element));
7621
        }
7622
        this.success = __this__success;
412 ashish 7623
      }
648 chandransh 7624
      if (other.isSetSe()) {
7625
        this.se = new LogisticsServiceException(other.se);
7626
      }
412 ashish 7627
    }
7628
 
7629
    public getShipmentInfo_result deepCopy() {
7630
      return new getShipmentInfo_result(this);
7631
    }
7632
 
3430 rajveer 7633
    @Override
7634
    public void clear() {
7635
      this.success = null;
7636
      this.se = null;
412 ashish 7637
    }
7638
 
7639
    public int getSuccessSize() {
7640
      return (this.success == null) ? 0 : this.success.size();
7641
    }
7642
 
648 chandransh 7643
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7644
      return (this.success == null) ? null : this.success.iterator();
7645
    }
7646
 
648 chandransh 7647
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7648
      if (this.success == null) {
648 chandransh 7649
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7650
      }
7651
      this.success.add(elem);
7652
    }
7653
 
648 chandransh 7654
    public List<AwbUpdate> getSuccess() {
412 ashish 7655
      return this.success;
7656
    }
7657
 
3430 rajveer 7658
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7659
      this.success = success;
7660
    }
7661
 
7662
    public void unsetSuccess() {
7663
      this.success = null;
7664
    }
7665
 
3430 rajveer 7666
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7667
    public boolean isSetSuccess() {
7668
      return this.success != null;
7669
    }
7670
 
7671
    public void setSuccessIsSet(boolean value) {
7672
      if (!value) {
7673
        this.success = null;
7674
      }
7675
    }
7676
 
648 chandransh 7677
    public LogisticsServiceException getSe() {
7678
      return this.se;
412 ashish 7679
    }
7680
 
3430 rajveer 7681
    public void setSe(LogisticsServiceException se) {
648 chandransh 7682
      this.se = se;
412 ashish 7683
    }
7684
 
648 chandransh 7685
    public void unsetSe() {
7686
      this.se = null;
412 ashish 7687
    }
7688
 
3430 rajveer 7689
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7690
    public boolean isSetSe() {
7691
      return this.se != null;
412 ashish 7692
    }
7693
 
648 chandransh 7694
    public void setSeIsSet(boolean value) {
7695
      if (!value) {
7696
        this.se = null;
412 ashish 7697
      }
7698
    }
7699
 
7700
    public void setFieldValue(_Fields field, Object value) {
7701
      switch (field) {
648 chandransh 7702
      case SUCCESS:
412 ashish 7703
        if (value == null) {
648 chandransh 7704
          unsetSuccess();
412 ashish 7705
        } else {
648 chandransh 7706
          setSuccess((List<AwbUpdate>)value);
412 ashish 7707
        }
7708
        break;
7709
 
648 chandransh 7710
      case SE:
412 ashish 7711
        if (value == null) {
648 chandransh 7712
          unsetSe();
412 ashish 7713
        } else {
648 chandransh 7714
          setSe((LogisticsServiceException)value);
412 ashish 7715
        }
7716
        break;
7717
 
7718
      }
7719
    }
7720
 
7721
    public Object getFieldValue(_Fields field) {
7722
      switch (field) {
648 chandransh 7723
      case SUCCESS:
7724
        return getSuccess();
412 ashish 7725
 
648 chandransh 7726
      case SE:
7727
        return getSe();
412 ashish 7728
 
7729
      }
7730
      throw new IllegalStateException();
7731
    }
7732
 
3430 rajveer 7733
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7734
    public boolean isSet(_Fields field) {
7735
      if (field == null) {
7736
        throw new IllegalArgumentException();
7737
      }
412 ashish 7738
 
7739
      switch (field) {
648 chandransh 7740
      case SUCCESS:
7741
        return isSetSuccess();
7742
      case SE:
7743
        return isSetSe();
412 ashish 7744
      }
7745
      throw new IllegalStateException();
7746
    }
7747
 
7748
    @Override
7749
    public boolean equals(Object that) {
7750
      if (that == null)
7751
        return false;
648 chandransh 7752
      if (that instanceof getShipmentInfo_result)
7753
        return this.equals((getShipmentInfo_result)that);
412 ashish 7754
      return false;
7755
    }
7756
 
648 chandransh 7757
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7758
      if (that == null)
7759
        return false;
7760
 
648 chandransh 7761
      boolean this_present_success = true && this.isSetSuccess();
7762
      boolean that_present_success = true && that.isSetSuccess();
7763
      if (this_present_success || that_present_success) {
7764
        if (!(this_present_success && that_present_success))
412 ashish 7765
          return false;
648 chandransh 7766
        if (!this.success.equals(that.success))
412 ashish 7767
          return false;
7768
      }
7769
 
648 chandransh 7770
      boolean this_present_se = true && this.isSetSe();
7771
      boolean that_present_se = true && that.isSetSe();
7772
      if (this_present_se || that_present_se) {
7773
        if (!(this_present_se && that_present_se))
412 ashish 7774
          return false;
648 chandransh 7775
        if (!this.se.equals(that.se))
412 ashish 7776
          return false;
7777
      }
7778
 
7779
      return true;
7780
    }
7781
 
7782
    @Override
7783
    public int hashCode() {
7784
      return 0;
7785
    }
7786
 
648 chandransh 7787
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7788
      if (!getClass().equals(other.getClass())) {
7789
        return getClass().getName().compareTo(other.getClass().getName());
7790
      }
7791
 
7792
      int lastComparison = 0;
648 chandransh 7793
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7794
 
3430 rajveer 7795
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7796
      if (lastComparison != 0) {
7797
        return lastComparison;
7798
      }
3430 rajveer 7799
      if (isSetSuccess()) {
7800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7801
        if (lastComparison != 0) {
7802
          return lastComparison;
7803
        }
412 ashish 7804
      }
3430 rajveer 7805
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7806
      if (lastComparison != 0) {
7807
        return lastComparison;
7808
      }
3430 rajveer 7809
      if (isSetSe()) {
7810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7811
        if (lastComparison != 0) {
7812
          return lastComparison;
7813
        }
412 ashish 7814
      }
7815
      return 0;
7816
    }
7817
 
3430 rajveer 7818
    public _Fields fieldForId(int fieldId) {
7819
      return _Fields.findByThriftId(fieldId);
7820
    }
7821
 
7822
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7823
      org.apache.thrift.protocol.TField field;
412 ashish 7824
      iprot.readStructBegin();
7825
      while (true)
7826
      {
7827
        field = iprot.readFieldBegin();
3430 rajveer 7828
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7829
          break;
7830
        }
3430 rajveer 7831
        switch (field.id) {
7832
          case 0: // SUCCESS
7833
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7834
              {
7792 anupam.sin 7835
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7836
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7837
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7838
                {
7792 anupam.sin 7839
                  AwbUpdate _elem10; // required
7840
                  _elem10 = new AwbUpdate();
7841
                  _elem10.read(iprot);
7842
                  this.success.add(_elem10);
412 ashish 7843
                }
3430 rajveer 7844
                iprot.readListEnd();
412 ashish 7845
              }
3430 rajveer 7846
            } else { 
7847
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7848
            }
7849
            break;
7850
          case 1: // SE
7851
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7852
              this.se = new LogisticsServiceException();
7853
              this.se.read(iprot);
7854
            } else { 
7855
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7856
            }
7857
            break;
7858
          default:
7859
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7860
        }
3430 rajveer 7861
        iprot.readFieldEnd();
412 ashish 7862
      }
7863
      iprot.readStructEnd();
7864
      validate();
7865
    }
7866
 
3430 rajveer 7867
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7868
      oprot.writeStructBegin(STRUCT_DESC);
7869
 
7870
      if (this.isSetSuccess()) {
7871
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7872
        {
3430 rajveer 7873
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7874
          for (AwbUpdate _iter11 : this.success)
412 ashish 7875
          {
7792 anupam.sin 7876
            _iter11.write(oprot);
412 ashish 7877
          }
7878
          oprot.writeListEnd();
7879
        }
7880
        oprot.writeFieldEnd();
648 chandransh 7881
      } else if (this.isSetSe()) {
7882
        oprot.writeFieldBegin(SE_FIELD_DESC);
7883
        this.se.write(oprot);
7884
        oprot.writeFieldEnd();
412 ashish 7885
      }
7886
      oprot.writeFieldStop();
7887
      oprot.writeStructEnd();
7888
    }
7889
 
7890
    @Override
7891
    public String toString() {
648 chandransh 7892
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7893
      boolean first = true;
7894
 
7895
      sb.append("success:");
7896
      if (this.success == null) {
7897
        sb.append("null");
7898
      } else {
7899
        sb.append(this.success);
7900
      }
7901
      first = false;
648 chandransh 7902
      if (!first) sb.append(", ");
7903
      sb.append("se:");
7904
      if (this.se == null) {
7905
        sb.append("null");
7906
      } else {
7907
        sb.append(this.se);
7908
      }
7909
      first = false;
412 ashish 7910
      sb.append(")");
7911
      return sb.toString();
7912
    }
7913
 
3430 rajveer 7914
    public void validate() throws org.apache.thrift.TException {
412 ashish 7915
      // check for required fields
7916
    }
7917
 
3430 rajveer 7918
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7919
      try {
7920
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7921
      } catch (org.apache.thrift.TException te) {
7922
        throw new java.io.IOException(te);
7923
      }
7924
    }
7925
 
7926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7927
      try {
7928
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7929
      } catch (org.apache.thrift.TException te) {
7930
        throw new java.io.IOException(te);
7931
      }
7932
    }
7933
 
412 ashish 7934
  }
7935
 
6643 rajveer 7936
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7937
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7938
 
7939
    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);
7940
 
7941
    private AwbUpdate update; // required
7942
 
7943
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7944
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7945
      UPDATE((short)1, "update");
7946
 
7947
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7948
 
7949
      static {
7950
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7951
          byName.put(field.getFieldName(), field);
7952
        }
7953
      }
7954
 
7955
      /**
7956
       * Find the _Fields constant that matches fieldId, or null if its not found.
7957
       */
7958
      public static _Fields findByThriftId(int fieldId) {
7959
        switch(fieldId) {
7960
          case 1: // UPDATE
7961
            return UPDATE;
7962
          default:
7963
            return null;
7964
        }
7965
      }
7966
 
7967
      /**
7968
       * Find the _Fields constant that matches fieldId, throwing an exception
7969
       * if it is not found.
7970
       */
7971
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7972
        _Fields fields = findByThriftId(fieldId);
7973
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7974
        return fields;
7975
      }
7976
 
7977
      /**
7978
       * Find the _Fields constant that matches name, or null if its not found.
7979
       */
7980
      public static _Fields findByName(String name) {
7981
        return byName.get(name);
7982
      }
7983
 
7984
      private final short _thriftId;
7985
      private final String _fieldName;
7986
 
7987
      _Fields(short thriftId, String fieldName) {
7988
        _thriftId = thriftId;
7989
        _fieldName = fieldName;
7990
      }
7991
 
7992
      public short getThriftFieldId() {
7993
        return _thriftId;
7994
      }
7995
 
7996
      public String getFieldName() {
7997
        return _fieldName;
7998
      }
7999
    }
8000
 
8001
    // isset id assignments
8002
 
8003
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8004
    static {
8005
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8006
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8007
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8008
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8009
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8010
    }
8011
 
8012
    public storeShipmentInfo_args() {
8013
    }
8014
 
8015
    public storeShipmentInfo_args(
8016
      AwbUpdate update)
8017
    {
8018
      this();
8019
      this.update = update;
8020
    }
8021
 
8022
    /**
8023
     * Performs a deep copy on <i>other</i>.
8024
     */
8025
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8026
      if (other.isSetUpdate()) {
8027
        this.update = new AwbUpdate(other.update);
8028
      }
8029
    }
8030
 
8031
    public storeShipmentInfo_args deepCopy() {
8032
      return new storeShipmentInfo_args(this);
8033
    }
8034
 
8035
    @Override
8036
    public void clear() {
8037
      this.update = null;
8038
    }
8039
 
8040
    public AwbUpdate getUpdate() {
8041
      return this.update;
8042
    }
8043
 
8044
    public void setUpdate(AwbUpdate update) {
8045
      this.update = update;
8046
    }
8047
 
8048
    public void unsetUpdate() {
8049
      this.update = null;
8050
    }
8051
 
8052
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8053
    public boolean isSetUpdate() {
8054
      return this.update != null;
8055
    }
8056
 
8057
    public void setUpdateIsSet(boolean value) {
8058
      if (!value) {
8059
        this.update = null;
8060
      }
8061
    }
8062
 
8063
    public void setFieldValue(_Fields field, Object value) {
8064
      switch (field) {
8065
      case UPDATE:
8066
        if (value == null) {
8067
          unsetUpdate();
8068
        } else {
8069
          setUpdate((AwbUpdate)value);
8070
        }
8071
        break;
8072
 
8073
      }
8074
    }
8075
 
8076
    public Object getFieldValue(_Fields field) {
8077
      switch (field) {
8078
      case UPDATE:
8079
        return getUpdate();
8080
 
8081
      }
8082
      throw new IllegalStateException();
8083
    }
8084
 
8085
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8086
    public boolean isSet(_Fields field) {
8087
      if (field == null) {
8088
        throw new IllegalArgumentException();
8089
      }
8090
 
8091
      switch (field) {
8092
      case UPDATE:
8093
        return isSetUpdate();
8094
      }
8095
      throw new IllegalStateException();
8096
    }
8097
 
8098
    @Override
8099
    public boolean equals(Object that) {
8100
      if (that == null)
8101
        return false;
8102
      if (that instanceof storeShipmentInfo_args)
8103
        return this.equals((storeShipmentInfo_args)that);
8104
      return false;
8105
    }
8106
 
8107
    public boolean equals(storeShipmentInfo_args that) {
8108
      if (that == null)
8109
        return false;
8110
 
8111
      boolean this_present_update = true && this.isSetUpdate();
8112
      boolean that_present_update = true && that.isSetUpdate();
8113
      if (this_present_update || that_present_update) {
8114
        if (!(this_present_update && that_present_update))
8115
          return false;
8116
        if (!this.update.equals(that.update))
8117
          return false;
8118
      }
8119
 
8120
      return true;
8121
    }
8122
 
8123
    @Override
8124
    public int hashCode() {
8125
      return 0;
8126
    }
8127
 
8128
    public int compareTo(storeShipmentInfo_args other) {
8129
      if (!getClass().equals(other.getClass())) {
8130
        return getClass().getName().compareTo(other.getClass().getName());
8131
      }
8132
 
8133
      int lastComparison = 0;
8134
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8135
 
8136
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8137
      if (lastComparison != 0) {
8138
        return lastComparison;
8139
      }
8140
      if (isSetUpdate()) {
8141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8142
        if (lastComparison != 0) {
8143
          return lastComparison;
8144
        }
8145
      }
8146
      return 0;
8147
    }
8148
 
8149
    public _Fields fieldForId(int fieldId) {
8150
      return _Fields.findByThriftId(fieldId);
8151
    }
8152
 
8153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8154
      org.apache.thrift.protocol.TField field;
8155
      iprot.readStructBegin();
8156
      while (true)
8157
      {
8158
        field = iprot.readFieldBegin();
8159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8160
          break;
8161
        }
8162
        switch (field.id) {
8163
          case 1: // UPDATE
8164
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8165
              this.update = new AwbUpdate();
8166
              this.update.read(iprot);
8167
            } else { 
8168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8169
            }
8170
            break;
8171
          default:
8172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8173
        }
8174
        iprot.readFieldEnd();
8175
      }
8176
      iprot.readStructEnd();
8177
      validate();
8178
    }
8179
 
8180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8181
      validate();
8182
 
8183
      oprot.writeStructBegin(STRUCT_DESC);
8184
      if (this.update != null) {
8185
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8186
        this.update.write(oprot);
8187
        oprot.writeFieldEnd();
8188
      }
8189
      oprot.writeFieldStop();
8190
      oprot.writeStructEnd();
8191
    }
8192
 
8193
    @Override
8194
    public String toString() {
8195
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8196
      boolean first = true;
8197
 
8198
      sb.append("update:");
8199
      if (this.update == null) {
8200
        sb.append("null");
8201
      } else {
8202
        sb.append(this.update);
8203
      }
8204
      first = false;
8205
      sb.append(")");
8206
      return sb.toString();
8207
    }
8208
 
8209
    public void validate() throws org.apache.thrift.TException {
8210
      // check for required fields
8211
    }
8212
 
8213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8214
      try {
8215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8216
      } catch (org.apache.thrift.TException te) {
8217
        throw new java.io.IOException(te);
8218
      }
8219
    }
8220
 
8221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8222
      try {
8223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8224
      } catch (org.apache.thrift.TException te) {
8225
        throw new java.io.IOException(te);
8226
      }
8227
    }
8228
 
8229
  }
8230
 
8231
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8233
 
8234
    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);
8235
 
8236
    private LogisticsServiceException se; // required
8237
 
8238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8240
      SE((short)1, "se");
8241
 
8242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8243
 
8244
      static {
8245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8246
          byName.put(field.getFieldName(), field);
8247
        }
8248
      }
8249
 
8250
      /**
8251
       * Find the _Fields constant that matches fieldId, or null if its not found.
8252
       */
8253
      public static _Fields findByThriftId(int fieldId) {
8254
        switch(fieldId) {
8255
          case 1: // SE
8256
            return SE;
8257
          default:
8258
            return null;
8259
        }
8260
      }
8261
 
8262
      /**
8263
       * Find the _Fields constant that matches fieldId, throwing an exception
8264
       * if it is not found.
8265
       */
8266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8267
        _Fields fields = findByThriftId(fieldId);
8268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8269
        return fields;
8270
      }
8271
 
8272
      /**
8273
       * Find the _Fields constant that matches name, or null if its not found.
8274
       */
8275
      public static _Fields findByName(String name) {
8276
        return byName.get(name);
8277
      }
8278
 
8279
      private final short _thriftId;
8280
      private final String _fieldName;
8281
 
8282
      _Fields(short thriftId, String fieldName) {
8283
        _thriftId = thriftId;
8284
        _fieldName = fieldName;
8285
      }
8286
 
8287
      public short getThriftFieldId() {
8288
        return _thriftId;
8289
      }
8290
 
8291
      public String getFieldName() {
8292
        return _fieldName;
8293
      }
8294
    }
8295
 
8296
    // isset id assignments
8297
 
8298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8299
    static {
8300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8301
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8305
    }
8306
 
8307
    public storeShipmentInfo_result() {
8308
    }
8309
 
8310
    public storeShipmentInfo_result(
8311
      LogisticsServiceException se)
8312
    {
8313
      this();
8314
      this.se = se;
8315
    }
8316
 
8317
    /**
8318
     * Performs a deep copy on <i>other</i>.
8319
     */
8320
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8321
      if (other.isSetSe()) {
8322
        this.se = new LogisticsServiceException(other.se);
8323
      }
8324
    }
8325
 
8326
    public storeShipmentInfo_result deepCopy() {
8327
      return new storeShipmentInfo_result(this);
8328
    }
8329
 
8330
    @Override
8331
    public void clear() {
8332
      this.se = null;
8333
    }
8334
 
8335
    public LogisticsServiceException getSe() {
8336
      return this.se;
8337
    }
8338
 
8339
    public void setSe(LogisticsServiceException se) {
8340
      this.se = se;
8341
    }
8342
 
8343
    public void unsetSe() {
8344
      this.se = null;
8345
    }
8346
 
8347
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8348
    public boolean isSetSe() {
8349
      return this.se != null;
8350
    }
8351
 
8352
    public void setSeIsSet(boolean value) {
8353
      if (!value) {
8354
        this.se = null;
8355
      }
8356
    }
8357
 
8358
    public void setFieldValue(_Fields field, Object value) {
8359
      switch (field) {
8360
      case SE:
8361
        if (value == null) {
8362
          unsetSe();
8363
        } else {
8364
          setSe((LogisticsServiceException)value);
8365
        }
8366
        break;
8367
 
8368
      }
8369
    }
8370
 
8371
    public Object getFieldValue(_Fields field) {
8372
      switch (field) {
8373
      case SE:
8374
        return getSe();
8375
 
8376
      }
8377
      throw new IllegalStateException();
8378
    }
8379
 
8380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8381
    public boolean isSet(_Fields field) {
8382
      if (field == null) {
8383
        throw new IllegalArgumentException();
8384
      }
8385
 
8386
      switch (field) {
8387
      case SE:
8388
        return isSetSe();
8389
      }
8390
      throw new IllegalStateException();
8391
    }
8392
 
8393
    @Override
8394
    public boolean equals(Object that) {
8395
      if (that == null)
8396
        return false;
8397
      if (that instanceof storeShipmentInfo_result)
8398
        return this.equals((storeShipmentInfo_result)that);
8399
      return false;
8400
    }
8401
 
8402
    public boolean equals(storeShipmentInfo_result that) {
8403
      if (that == null)
8404
        return false;
8405
 
8406
      boolean this_present_se = true && this.isSetSe();
8407
      boolean that_present_se = true && that.isSetSe();
8408
      if (this_present_se || that_present_se) {
8409
        if (!(this_present_se && that_present_se))
8410
          return false;
8411
        if (!this.se.equals(that.se))
8412
          return false;
8413
      }
8414
 
8415
      return true;
8416
    }
8417
 
8418
    @Override
8419
    public int hashCode() {
8420
      return 0;
8421
    }
8422
 
8423
    public int compareTo(storeShipmentInfo_result other) {
8424
      if (!getClass().equals(other.getClass())) {
8425
        return getClass().getName().compareTo(other.getClass().getName());
8426
      }
8427
 
8428
      int lastComparison = 0;
8429
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8430
 
8431
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8432
      if (lastComparison != 0) {
8433
        return lastComparison;
8434
      }
8435
      if (isSetSe()) {
8436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8437
        if (lastComparison != 0) {
8438
          return lastComparison;
8439
        }
8440
      }
8441
      return 0;
8442
    }
8443
 
8444
    public _Fields fieldForId(int fieldId) {
8445
      return _Fields.findByThriftId(fieldId);
8446
    }
8447
 
8448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8449
      org.apache.thrift.protocol.TField field;
8450
      iprot.readStructBegin();
8451
      while (true)
8452
      {
8453
        field = iprot.readFieldBegin();
8454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8455
          break;
8456
        }
8457
        switch (field.id) {
8458
          case 1: // SE
8459
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8460
              this.se = new LogisticsServiceException();
8461
              this.se.read(iprot);
8462
            } else { 
8463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8464
            }
8465
            break;
8466
          default:
8467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8468
        }
8469
        iprot.readFieldEnd();
8470
      }
8471
      iprot.readStructEnd();
8472
      validate();
8473
    }
8474
 
8475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8476
      oprot.writeStructBegin(STRUCT_DESC);
8477
 
8478
      if (this.isSetSe()) {
8479
        oprot.writeFieldBegin(SE_FIELD_DESC);
8480
        this.se.write(oprot);
8481
        oprot.writeFieldEnd();
8482
      }
8483
      oprot.writeFieldStop();
8484
      oprot.writeStructEnd();
8485
    }
8486
 
8487
    @Override
8488
    public String toString() {
8489
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8490
      boolean first = true;
8491
 
8492
      sb.append("se:");
8493
      if (this.se == null) {
8494
        sb.append("null");
8495
      } else {
8496
        sb.append(this.se);
8497
      }
8498
      first = false;
8499
      sb.append(")");
8500
      return sb.toString();
8501
    }
8502
 
8503
    public void validate() throws org.apache.thrift.TException {
8504
      // check for required fields
8505
    }
8506
 
8507
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8508
      try {
8509
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8510
      } catch (org.apache.thrift.TException te) {
8511
        throw new java.io.IOException(te);
8512
      }
8513
    }
8514
 
8515
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8516
      try {
8517
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8518
      } catch (org.apache.thrift.TException te) {
8519
        throw new java.io.IOException(te);
8520
      }
8521
    }
8522
 
8523
  }
8524
 
3430 rajveer 8525
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8527
 
3430 rajveer 8528
    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);
8529
    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 8530
 
3430 rajveer 8531
    private long providerId; // required
8532
    private String pinCode; // required
730 chandransh 8533
 
8534
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8535
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8536
      PROVIDER_ID((short)1, "providerId"),
8537
      PIN_CODE((short)2, "pinCode");
8538
 
8539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8540
 
8541
      static {
8542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8543
          byName.put(field.getFieldName(), field);
8544
        }
8545
      }
8546
 
8547
      /**
8548
       * Find the _Fields constant that matches fieldId, or null if its not found.
8549
       */
8550
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8551
        switch(fieldId) {
8552
          case 1: // PROVIDER_ID
8553
            return PROVIDER_ID;
8554
          case 2: // PIN_CODE
8555
            return PIN_CODE;
8556
          default:
8557
            return null;
8558
        }
730 chandransh 8559
      }
8560
 
8561
      /**
8562
       * Find the _Fields constant that matches fieldId, throwing an exception
8563
       * if it is not found.
8564
       */
8565
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8566
        _Fields fields = findByThriftId(fieldId);
8567
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8568
        return fields;
8569
      }
8570
 
8571
      /**
8572
       * Find the _Fields constant that matches name, or null if its not found.
8573
       */
8574
      public static _Fields findByName(String name) {
8575
        return byName.get(name);
8576
      }
8577
 
8578
      private final short _thriftId;
8579
      private final String _fieldName;
8580
 
8581
      _Fields(short thriftId, String fieldName) {
8582
        _thriftId = thriftId;
8583
        _fieldName = fieldName;
8584
      }
8585
 
8586
      public short getThriftFieldId() {
8587
        return _thriftId;
8588
      }
8589
 
8590
      public String getFieldName() {
8591
        return _fieldName;
8592
      }
8593
    }
8594
 
8595
    // isset id assignments
8596
    private static final int __PROVIDERID_ISSET_ID = 0;
8597
    private BitSet __isset_bit_vector = new BitSet(1);
8598
 
3430 rajveer 8599
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8600
    static {
3430 rajveer 8601
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8602
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8603
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8604
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8605
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8606
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8607
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8608
    }
8609
 
8610
    public getDestinationCode_args() {
8611
    }
8612
 
8613
    public getDestinationCode_args(
8614
      long providerId,
8615
      String pinCode)
8616
    {
8617
      this();
8618
      this.providerId = providerId;
8619
      setProviderIdIsSet(true);
8620
      this.pinCode = pinCode;
8621
    }
8622
 
8623
    /**
8624
     * Performs a deep copy on <i>other</i>.
8625
     */
8626
    public getDestinationCode_args(getDestinationCode_args other) {
8627
      __isset_bit_vector.clear();
8628
      __isset_bit_vector.or(other.__isset_bit_vector);
8629
      this.providerId = other.providerId;
8630
      if (other.isSetPinCode()) {
8631
        this.pinCode = other.pinCode;
8632
      }
8633
    }
8634
 
8635
    public getDestinationCode_args deepCopy() {
8636
      return new getDestinationCode_args(this);
8637
    }
8638
 
3430 rajveer 8639
    @Override
8640
    public void clear() {
8641
      setProviderIdIsSet(false);
8642
      this.providerId = 0;
8643
      this.pinCode = null;
730 chandransh 8644
    }
8645
 
8646
    public long getProviderId() {
8647
      return this.providerId;
8648
    }
8649
 
3430 rajveer 8650
    public void setProviderId(long providerId) {
730 chandransh 8651
      this.providerId = providerId;
8652
      setProviderIdIsSet(true);
8653
    }
8654
 
8655
    public void unsetProviderId() {
8656
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8657
    }
8658
 
3430 rajveer 8659
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8660
    public boolean isSetProviderId() {
8661
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8662
    }
8663
 
8664
    public void setProviderIdIsSet(boolean value) {
8665
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8666
    }
8667
 
8668
    public String getPinCode() {
8669
      return this.pinCode;
8670
    }
8671
 
3430 rajveer 8672
    public void setPinCode(String pinCode) {
730 chandransh 8673
      this.pinCode = pinCode;
8674
    }
8675
 
8676
    public void unsetPinCode() {
8677
      this.pinCode = null;
8678
    }
8679
 
3430 rajveer 8680
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8681
    public boolean isSetPinCode() {
8682
      return this.pinCode != null;
8683
    }
8684
 
8685
    public void setPinCodeIsSet(boolean value) {
8686
      if (!value) {
8687
        this.pinCode = null;
8688
      }
8689
    }
8690
 
8691
    public void setFieldValue(_Fields field, Object value) {
8692
      switch (field) {
8693
      case PROVIDER_ID:
8694
        if (value == null) {
8695
          unsetProviderId();
8696
        } else {
8697
          setProviderId((Long)value);
8698
        }
8699
        break;
8700
 
8701
      case PIN_CODE:
8702
        if (value == null) {
8703
          unsetPinCode();
8704
        } else {
8705
          setPinCode((String)value);
8706
        }
8707
        break;
8708
 
8709
      }
8710
    }
8711
 
8712
    public Object getFieldValue(_Fields field) {
8713
      switch (field) {
8714
      case PROVIDER_ID:
3430 rajveer 8715
        return Long.valueOf(getProviderId());
730 chandransh 8716
 
8717
      case PIN_CODE:
8718
        return getPinCode();
8719
 
8720
      }
8721
      throw new IllegalStateException();
8722
    }
8723
 
3430 rajveer 8724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8725
    public boolean isSet(_Fields field) {
8726
      if (field == null) {
8727
        throw new IllegalArgumentException();
8728
      }
730 chandransh 8729
 
8730
      switch (field) {
8731
      case PROVIDER_ID:
8732
        return isSetProviderId();
8733
      case PIN_CODE:
8734
        return isSetPinCode();
8735
      }
8736
      throw new IllegalStateException();
8737
    }
8738
 
8739
    @Override
8740
    public boolean equals(Object that) {
8741
      if (that == null)
8742
        return false;
8743
      if (that instanceof getDestinationCode_args)
8744
        return this.equals((getDestinationCode_args)that);
8745
      return false;
8746
    }
8747
 
8748
    public boolean equals(getDestinationCode_args that) {
8749
      if (that == null)
8750
        return false;
8751
 
8752
      boolean this_present_providerId = true;
8753
      boolean that_present_providerId = true;
8754
      if (this_present_providerId || that_present_providerId) {
8755
        if (!(this_present_providerId && that_present_providerId))
8756
          return false;
8757
        if (this.providerId != that.providerId)
8758
          return false;
8759
      }
8760
 
8761
      boolean this_present_pinCode = true && this.isSetPinCode();
8762
      boolean that_present_pinCode = true && that.isSetPinCode();
8763
      if (this_present_pinCode || that_present_pinCode) {
8764
        if (!(this_present_pinCode && that_present_pinCode))
8765
          return false;
8766
        if (!this.pinCode.equals(that.pinCode))
8767
          return false;
8768
      }
8769
 
8770
      return true;
8771
    }
8772
 
8773
    @Override
8774
    public int hashCode() {
8775
      return 0;
8776
    }
8777
 
8778
    public int compareTo(getDestinationCode_args other) {
8779
      if (!getClass().equals(other.getClass())) {
8780
        return getClass().getName().compareTo(other.getClass().getName());
8781
      }
8782
 
8783
      int lastComparison = 0;
8784
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8785
 
3430 rajveer 8786
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8787
      if (lastComparison != 0) {
8788
        return lastComparison;
8789
      }
3430 rajveer 8790
      if (isSetProviderId()) {
8791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8792
        if (lastComparison != 0) {
8793
          return lastComparison;
8794
        }
730 chandransh 8795
      }
3430 rajveer 8796
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8797
      if (lastComparison != 0) {
8798
        return lastComparison;
8799
      }
3430 rajveer 8800
      if (isSetPinCode()) {
8801
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8802
        if (lastComparison != 0) {
8803
          return lastComparison;
8804
        }
730 chandransh 8805
      }
8806
      return 0;
8807
    }
8808
 
3430 rajveer 8809
    public _Fields fieldForId(int fieldId) {
8810
      return _Fields.findByThriftId(fieldId);
8811
    }
8812
 
8813
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8814
      org.apache.thrift.protocol.TField field;
730 chandransh 8815
      iprot.readStructBegin();
8816
      while (true)
8817
      {
8818
        field = iprot.readFieldBegin();
3430 rajveer 8819
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8820
          break;
8821
        }
3430 rajveer 8822
        switch (field.id) {
8823
          case 1: // PROVIDER_ID
8824
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8825
              this.providerId = iprot.readI64();
8826
              setProviderIdIsSet(true);
8827
            } else { 
8828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8829
            }
8830
            break;
8831
          case 2: // PIN_CODE
8832
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8833
              this.pinCode = iprot.readString();
8834
            } else { 
8835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8836
            }
8837
            break;
8838
          default:
8839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8840
        }
3430 rajveer 8841
        iprot.readFieldEnd();
730 chandransh 8842
      }
8843
      iprot.readStructEnd();
8844
      validate();
8845
    }
8846
 
3430 rajveer 8847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8848
      validate();
8849
 
8850
      oprot.writeStructBegin(STRUCT_DESC);
8851
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8852
      oprot.writeI64(this.providerId);
8853
      oprot.writeFieldEnd();
8854
      if (this.pinCode != null) {
8855
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8856
        oprot.writeString(this.pinCode);
8857
        oprot.writeFieldEnd();
8858
      }
8859
      oprot.writeFieldStop();
8860
      oprot.writeStructEnd();
8861
    }
8862
 
8863
    @Override
8864
    public String toString() {
8865
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8866
      boolean first = true;
8867
 
8868
      sb.append("providerId:");
8869
      sb.append(this.providerId);
8870
      first = false;
8871
      if (!first) sb.append(", ");
8872
      sb.append("pinCode:");
8873
      if (this.pinCode == null) {
8874
        sb.append("null");
8875
      } else {
8876
        sb.append(this.pinCode);
8877
      }
8878
      first = false;
8879
      sb.append(")");
8880
      return sb.toString();
8881
    }
8882
 
3430 rajveer 8883
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8884
      // check for required fields
8885
    }
8886
 
3430 rajveer 8887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8888
      try {
8889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8890
      } catch (org.apache.thrift.TException te) {
8891
        throw new java.io.IOException(te);
8892
      }
8893
    }
8894
 
8895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8896
      try {
8897
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8898
      } catch (org.apache.thrift.TException te) {
8899
        throw new java.io.IOException(te);
8900
      }
8901
    }
8902
 
730 chandransh 8903
  }
8904
 
3430 rajveer 8905
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8907
 
3430 rajveer 8908
    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);
8909
    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 8910
 
3430 rajveer 8911
    private String success; // required
8912
    private LogisticsServiceException se; // required
730 chandransh 8913
 
8914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8916
      SUCCESS((short)0, "success"),
8917
      SE((short)1, "se");
8918
 
8919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8920
 
8921
      static {
8922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8923
          byName.put(field.getFieldName(), field);
8924
        }
8925
      }
8926
 
8927
      /**
8928
       * Find the _Fields constant that matches fieldId, or null if its not found.
8929
       */
8930
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8931
        switch(fieldId) {
8932
          case 0: // SUCCESS
8933
            return SUCCESS;
8934
          case 1: // SE
8935
            return SE;
8936
          default:
8937
            return null;
8938
        }
730 chandransh 8939
      }
8940
 
8941
      /**
8942
       * Find the _Fields constant that matches fieldId, throwing an exception
8943
       * if it is not found.
8944
       */
8945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8946
        _Fields fields = findByThriftId(fieldId);
8947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8948
        return fields;
8949
      }
8950
 
8951
      /**
8952
       * Find the _Fields constant that matches name, or null if its not found.
8953
       */
8954
      public static _Fields findByName(String name) {
8955
        return byName.get(name);
8956
      }
8957
 
8958
      private final short _thriftId;
8959
      private final String _fieldName;
8960
 
8961
      _Fields(short thriftId, String fieldName) {
8962
        _thriftId = thriftId;
8963
        _fieldName = fieldName;
8964
      }
8965
 
8966
      public short getThriftFieldId() {
8967
        return _thriftId;
8968
      }
8969
 
8970
      public String getFieldName() {
8971
        return _fieldName;
8972
      }
8973
    }
8974
 
8975
    // isset id assignments
8976
 
3430 rajveer 8977
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8978
    static {
3430 rajveer 8979
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8980
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8981
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8982
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8983
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8984
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8985
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8986
    }
8987
 
8988
    public getDestinationCode_result() {
8989
    }
8990
 
8991
    public getDestinationCode_result(
8992
      String success,
8993
      LogisticsServiceException se)
8994
    {
8995
      this();
8996
      this.success = success;
8997
      this.se = se;
8998
    }
8999
 
9000
    /**
9001
     * Performs a deep copy on <i>other</i>.
9002
     */
9003
    public getDestinationCode_result(getDestinationCode_result other) {
9004
      if (other.isSetSuccess()) {
9005
        this.success = other.success;
9006
      }
9007
      if (other.isSetSe()) {
9008
        this.se = new LogisticsServiceException(other.se);
9009
      }
9010
    }
9011
 
9012
    public getDestinationCode_result deepCopy() {
9013
      return new getDestinationCode_result(this);
9014
    }
9015
 
3430 rajveer 9016
    @Override
9017
    public void clear() {
9018
      this.success = null;
9019
      this.se = null;
730 chandransh 9020
    }
9021
 
9022
    public String getSuccess() {
9023
      return this.success;
9024
    }
9025
 
3430 rajveer 9026
    public void setSuccess(String success) {
730 chandransh 9027
      this.success = success;
9028
    }
9029
 
9030
    public void unsetSuccess() {
9031
      this.success = null;
9032
    }
9033
 
3430 rajveer 9034
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9035
    public boolean isSetSuccess() {
9036
      return this.success != null;
9037
    }
9038
 
9039
    public void setSuccessIsSet(boolean value) {
9040
      if (!value) {
9041
        this.success = null;
9042
      }
9043
    }
9044
 
9045
    public LogisticsServiceException getSe() {
9046
      return this.se;
9047
    }
9048
 
3430 rajveer 9049
    public void setSe(LogisticsServiceException se) {
730 chandransh 9050
      this.se = se;
9051
    }
9052
 
9053
    public void unsetSe() {
9054
      this.se = null;
9055
    }
9056
 
3430 rajveer 9057
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9058
    public boolean isSetSe() {
9059
      return this.se != null;
9060
    }
9061
 
9062
    public void setSeIsSet(boolean value) {
9063
      if (!value) {
9064
        this.se = null;
9065
      }
9066
    }
9067
 
9068
    public void setFieldValue(_Fields field, Object value) {
9069
      switch (field) {
9070
      case SUCCESS:
9071
        if (value == null) {
9072
          unsetSuccess();
9073
        } else {
9074
          setSuccess((String)value);
9075
        }
9076
        break;
9077
 
9078
      case SE:
9079
        if (value == null) {
9080
          unsetSe();
9081
        } else {
9082
          setSe((LogisticsServiceException)value);
9083
        }
9084
        break;
9085
 
9086
      }
9087
    }
9088
 
9089
    public Object getFieldValue(_Fields field) {
9090
      switch (field) {
9091
      case SUCCESS:
9092
        return getSuccess();
9093
 
9094
      case SE:
9095
        return getSe();
9096
 
9097
      }
9098
      throw new IllegalStateException();
9099
    }
9100
 
3430 rajveer 9101
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9102
    public boolean isSet(_Fields field) {
9103
      if (field == null) {
9104
        throw new IllegalArgumentException();
9105
      }
730 chandransh 9106
 
9107
      switch (field) {
9108
      case SUCCESS:
9109
        return isSetSuccess();
9110
      case SE:
9111
        return isSetSe();
9112
      }
9113
      throw new IllegalStateException();
9114
    }
9115
 
9116
    @Override
9117
    public boolean equals(Object that) {
9118
      if (that == null)
9119
        return false;
9120
      if (that instanceof getDestinationCode_result)
9121
        return this.equals((getDestinationCode_result)that);
9122
      return false;
9123
    }
9124
 
9125
    public boolean equals(getDestinationCode_result that) {
9126
      if (that == null)
9127
        return false;
9128
 
9129
      boolean this_present_success = true && this.isSetSuccess();
9130
      boolean that_present_success = true && that.isSetSuccess();
9131
      if (this_present_success || that_present_success) {
9132
        if (!(this_present_success && that_present_success))
9133
          return false;
9134
        if (!this.success.equals(that.success))
9135
          return false;
9136
      }
9137
 
9138
      boolean this_present_se = true && this.isSetSe();
9139
      boolean that_present_se = true && that.isSetSe();
9140
      if (this_present_se || that_present_se) {
9141
        if (!(this_present_se && that_present_se))
9142
          return false;
9143
        if (!this.se.equals(that.se))
9144
          return false;
9145
      }
9146
 
9147
      return true;
9148
    }
9149
 
9150
    @Override
9151
    public int hashCode() {
9152
      return 0;
9153
    }
9154
 
9155
    public int compareTo(getDestinationCode_result other) {
9156
      if (!getClass().equals(other.getClass())) {
9157
        return getClass().getName().compareTo(other.getClass().getName());
9158
      }
9159
 
9160
      int lastComparison = 0;
9161
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9162
 
3430 rajveer 9163
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9164
      if (lastComparison != 0) {
9165
        return lastComparison;
9166
      }
3430 rajveer 9167
      if (isSetSuccess()) {
9168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9169
        if (lastComparison != 0) {
9170
          return lastComparison;
9171
        }
730 chandransh 9172
      }
3430 rajveer 9173
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9174
      if (lastComparison != 0) {
9175
        return lastComparison;
9176
      }
3430 rajveer 9177
      if (isSetSe()) {
9178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9179
        if (lastComparison != 0) {
9180
          return lastComparison;
9181
        }
730 chandransh 9182
      }
9183
      return 0;
9184
    }
9185
 
3430 rajveer 9186
    public _Fields fieldForId(int fieldId) {
9187
      return _Fields.findByThriftId(fieldId);
9188
    }
9189
 
9190
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9191
      org.apache.thrift.protocol.TField field;
730 chandransh 9192
      iprot.readStructBegin();
9193
      while (true)
9194
      {
9195
        field = iprot.readFieldBegin();
3430 rajveer 9196
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9197
          break;
9198
        }
3430 rajveer 9199
        switch (field.id) {
9200
          case 0: // SUCCESS
9201
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9202
              this.success = iprot.readString();
9203
            } else { 
9204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9205
            }
9206
            break;
9207
          case 1: // SE
9208
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9209
              this.se = new LogisticsServiceException();
9210
              this.se.read(iprot);
9211
            } else { 
9212
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9213
            }
9214
            break;
9215
          default:
9216
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9217
        }
3430 rajveer 9218
        iprot.readFieldEnd();
730 chandransh 9219
      }
9220
      iprot.readStructEnd();
9221
      validate();
9222
    }
9223
 
3430 rajveer 9224
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9225
      oprot.writeStructBegin(STRUCT_DESC);
9226
 
9227
      if (this.isSetSuccess()) {
9228
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9229
        oprot.writeString(this.success);
9230
        oprot.writeFieldEnd();
9231
      } else if (this.isSetSe()) {
9232
        oprot.writeFieldBegin(SE_FIELD_DESC);
9233
        this.se.write(oprot);
9234
        oprot.writeFieldEnd();
9235
      }
9236
      oprot.writeFieldStop();
9237
      oprot.writeStructEnd();
9238
    }
9239
 
9240
    @Override
9241
    public String toString() {
9242
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9243
      boolean first = true;
9244
 
9245
      sb.append("success:");
9246
      if (this.success == null) {
9247
        sb.append("null");
9248
      } else {
9249
        sb.append(this.success);
9250
      }
9251
      first = false;
9252
      if (!first) sb.append(", ");
9253
      sb.append("se:");
9254
      if (this.se == null) {
9255
        sb.append("null");
9256
      } else {
9257
        sb.append(this.se);
9258
      }
9259
      first = false;
9260
      sb.append(")");
9261
      return sb.toString();
9262
    }
9263
 
3430 rajveer 9264
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9265
      // check for required fields
9266
    }
9267
 
3430 rajveer 9268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9269
      try {
9270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9271
      } catch (org.apache.thrift.TException te) {
9272
        throw new java.io.IOException(te);
9273
      }
9274
    }
9275
 
9276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9277
      try {
9278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9279
      } catch (org.apache.thrift.TException te) {
9280
        throw new java.io.IOException(te);
9281
      }
9282
    }
9283
 
730 chandransh 9284
  }
9285
 
3430 rajveer 9286
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9288
 
3430 rajveer 9289
    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);
9290
    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 9291
 
3430 rajveer 9292
    private long providerId; // required
9293
    private String type; // required
1139 chandransh 9294
 
9295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9297
      PROVIDER_ID((short)1, "providerId"),
9298
      TYPE((short)2, "type");
1139 chandransh 9299
 
9300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9301
 
9302
      static {
9303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9304
          byName.put(field.getFieldName(), field);
9305
        }
9306
      }
9307
 
9308
      /**
9309
       * Find the _Fields constant that matches fieldId, or null if its not found.
9310
       */
9311
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9312
        switch(fieldId) {
9313
          case 1: // PROVIDER_ID
9314
            return PROVIDER_ID;
9315
          case 2: // TYPE
9316
            return TYPE;
9317
          default:
9318
            return null;
9319
        }
1139 chandransh 9320
      }
9321
 
9322
      /**
9323
       * Find the _Fields constant that matches fieldId, throwing an exception
9324
       * if it is not found.
9325
       */
9326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9327
        _Fields fields = findByThriftId(fieldId);
9328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9329
        return fields;
9330
      }
9331
 
9332
      /**
9333
       * Find the _Fields constant that matches name, or null if its not found.
9334
       */
9335
      public static _Fields findByName(String name) {
9336
        return byName.get(name);
9337
      }
9338
 
9339
      private final short _thriftId;
9340
      private final String _fieldName;
9341
 
9342
      _Fields(short thriftId, String fieldName) {
9343
        _thriftId = thriftId;
9344
        _fieldName = fieldName;
9345
      }
9346
 
9347
      public short getThriftFieldId() {
9348
        return _thriftId;
9349
      }
9350
 
9351
      public String getFieldName() {
9352
        return _fieldName;
9353
      }
9354
    }
9355
 
9356
    // isset id assignments
9357
    private static final int __PROVIDERID_ISSET_ID = 0;
9358
    private BitSet __isset_bit_vector = new BitSet(1);
9359
 
3430 rajveer 9360
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9361
    static {
3430 rajveer 9362
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9363
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9365
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9366
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9367
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9368
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9369
    }
9370
 
9371
    public getFreeAwbCount_args() {
9372
    }
9373
 
9374
    public getFreeAwbCount_args(
3103 chandransh 9375
      long providerId,
9376
      String type)
1139 chandransh 9377
    {
9378
      this();
9379
      this.providerId = providerId;
9380
      setProviderIdIsSet(true);
3103 chandransh 9381
      this.type = type;
1139 chandransh 9382
    }
9383
 
9384
    /**
9385
     * Performs a deep copy on <i>other</i>.
9386
     */
9387
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9388
      __isset_bit_vector.clear();
9389
      __isset_bit_vector.or(other.__isset_bit_vector);
9390
      this.providerId = other.providerId;
3103 chandransh 9391
      if (other.isSetType()) {
9392
        this.type = other.type;
9393
      }
1139 chandransh 9394
    }
9395
 
9396
    public getFreeAwbCount_args deepCopy() {
9397
      return new getFreeAwbCount_args(this);
9398
    }
9399
 
3430 rajveer 9400
    @Override
9401
    public void clear() {
9402
      setProviderIdIsSet(false);
9403
      this.providerId = 0;
9404
      this.type = null;
1139 chandransh 9405
    }
9406
 
9407
    public long getProviderId() {
9408
      return this.providerId;
9409
    }
9410
 
3430 rajveer 9411
    public void setProviderId(long providerId) {
1139 chandransh 9412
      this.providerId = providerId;
9413
      setProviderIdIsSet(true);
9414
    }
9415
 
9416
    public void unsetProviderId() {
9417
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9418
    }
9419
 
3430 rajveer 9420
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9421
    public boolean isSetProviderId() {
9422
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9423
    }
9424
 
9425
    public void setProviderIdIsSet(boolean value) {
9426
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9427
    }
9428
 
3103 chandransh 9429
    public String getType() {
9430
      return this.type;
9431
    }
9432
 
3430 rajveer 9433
    public void setType(String type) {
3103 chandransh 9434
      this.type = type;
9435
    }
9436
 
9437
    public void unsetType() {
9438
      this.type = null;
9439
    }
9440
 
3430 rajveer 9441
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9442
    public boolean isSetType() {
9443
      return this.type != null;
9444
    }
9445
 
9446
    public void setTypeIsSet(boolean value) {
9447
      if (!value) {
9448
        this.type = null;
9449
      }
9450
    }
9451
 
1139 chandransh 9452
    public void setFieldValue(_Fields field, Object value) {
9453
      switch (field) {
9454
      case PROVIDER_ID:
9455
        if (value == null) {
9456
          unsetProviderId();
9457
        } else {
9458
          setProviderId((Long)value);
9459
        }
9460
        break;
9461
 
3103 chandransh 9462
      case TYPE:
9463
        if (value == null) {
9464
          unsetType();
9465
        } else {
9466
          setType((String)value);
9467
        }
9468
        break;
9469
 
1139 chandransh 9470
      }
9471
    }
9472
 
9473
    public Object getFieldValue(_Fields field) {
9474
      switch (field) {
9475
      case PROVIDER_ID:
3430 rajveer 9476
        return Long.valueOf(getProviderId());
1139 chandransh 9477
 
3103 chandransh 9478
      case TYPE:
9479
        return getType();
9480
 
1139 chandransh 9481
      }
9482
      throw new IllegalStateException();
9483
    }
9484
 
3430 rajveer 9485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9486
    public boolean isSet(_Fields field) {
9487
      if (field == null) {
9488
        throw new IllegalArgumentException();
9489
      }
1139 chandransh 9490
 
9491
      switch (field) {
9492
      case PROVIDER_ID:
9493
        return isSetProviderId();
3103 chandransh 9494
      case TYPE:
9495
        return isSetType();
1139 chandransh 9496
      }
9497
      throw new IllegalStateException();
9498
    }
9499
 
9500
    @Override
9501
    public boolean equals(Object that) {
9502
      if (that == null)
9503
        return false;
9504
      if (that instanceof getFreeAwbCount_args)
9505
        return this.equals((getFreeAwbCount_args)that);
9506
      return false;
9507
    }
9508
 
9509
    public boolean equals(getFreeAwbCount_args that) {
9510
      if (that == null)
9511
        return false;
9512
 
9513
      boolean this_present_providerId = true;
9514
      boolean that_present_providerId = true;
9515
      if (this_present_providerId || that_present_providerId) {
9516
        if (!(this_present_providerId && that_present_providerId))
9517
          return false;
9518
        if (this.providerId != that.providerId)
9519
          return false;
9520
      }
9521
 
3103 chandransh 9522
      boolean this_present_type = true && this.isSetType();
9523
      boolean that_present_type = true && that.isSetType();
9524
      if (this_present_type || that_present_type) {
9525
        if (!(this_present_type && that_present_type))
9526
          return false;
9527
        if (!this.type.equals(that.type))
9528
          return false;
9529
      }
9530
 
1139 chandransh 9531
      return true;
9532
    }
9533
 
9534
    @Override
9535
    public int hashCode() {
9536
      return 0;
9537
    }
9538
 
9539
    public int compareTo(getFreeAwbCount_args other) {
9540
      if (!getClass().equals(other.getClass())) {
9541
        return getClass().getName().compareTo(other.getClass().getName());
9542
      }
9543
 
9544
      int lastComparison = 0;
9545
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9546
 
3430 rajveer 9547
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9548
      if (lastComparison != 0) {
9549
        return lastComparison;
9550
      }
3430 rajveer 9551
      if (isSetProviderId()) {
9552
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9553
        if (lastComparison != 0) {
9554
          return lastComparison;
9555
        }
1139 chandransh 9556
      }
3430 rajveer 9557
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9558
      if (lastComparison != 0) {
9559
        return lastComparison;
9560
      }
3430 rajveer 9561
      if (isSetType()) {
9562
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9563
        if (lastComparison != 0) {
9564
          return lastComparison;
9565
        }
3103 chandransh 9566
      }
1139 chandransh 9567
      return 0;
9568
    }
9569
 
3430 rajveer 9570
    public _Fields fieldForId(int fieldId) {
9571
      return _Fields.findByThriftId(fieldId);
9572
    }
9573
 
9574
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9575
      org.apache.thrift.protocol.TField field;
1139 chandransh 9576
      iprot.readStructBegin();
9577
      while (true)
9578
      {
9579
        field = iprot.readFieldBegin();
3430 rajveer 9580
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9581
          break;
9582
        }
3430 rajveer 9583
        switch (field.id) {
9584
          case 1: // PROVIDER_ID
9585
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9586
              this.providerId = iprot.readI64();
9587
              setProviderIdIsSet(true);
9588
            } else { 
9589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9590
            }
9591
            break;
9592
          case 2: // TYPE
9593
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9594
              this.type = iprot.readString();
9595
            } else { 
9596
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9597
            }
9598
            break;
9599
          default:
9600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9601
        }
3430 rajveer 9602
        iprot.readFieldEnd();
1139 chandransh 9603
      }
9604
      iprot.readStructEnd();
9605
      validate();
9606
    }
9607
 
3430 rajveer 9608
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9609
      validate();
9610
 
9611
      oprot.writeStructBegin(STRUCT_DESC);
9612
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9613
      oprot.writeI64(this.providerId);
9614
      oprot.writeFieldEnd();
3103 chandransh 9615
      if (this.type != null) {
9616
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9617
        oprot.writeString(this.type);
9618
        oprot.writeFieldEnd();
9619
      }
1139 chandransh 9620
      oprot.writeFieldStop();
9621
      oprot.writeStructEnd();
9622
    }
9623
 
9624
    @Override
9625
    public String toString() {
9626
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9627
      boolean first = true;
9628
 
9629
      sb.append("providerId:");
9630
      sb.append(this.providerId);
9631
      first = false;
3103 chandransh 9632
      if (!first) sb.append(", ");
9633
      sb.append("type:");
9634
      if (this.type == null) {
9635
        sb.append("null");
9636
      } else {
9637
        sb.append(this.type);
9638
      }
9639
      first = false;
1139 chandransh 9640
      sb.append(")");
9641
      return sb.toString();
9642
    }
9643
 
3430 rajveer 9644
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9645
      // check for required fields
9646
    }
9647
 
3430 rajveer 9648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9649
      try {
9650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9651
      } catch (org.apache.thrift.TException te) {
9652
        throw new java.io.IOException(te);
9653
      }
9654
    }
9655
 
9656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9657
      try {
9658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9659
      } catch (org.apache.thrift.TException te) {
9660
        throw new java.io.IOException(te);
9661
      }
9662
    }
9663
 
1139 chandransh 9664
  }
9665
 
3430 rajveer 9666
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9668
 
3430 rajveer 9669
    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 9670
 
3430 rajveer 9671
    private long success; // required
1139 chandransh 9672
 
9673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9675
      SUCCESS((short)0, "success");
9676
 
9677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9678
 
9679
      static {
9680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9681
          byName.put(field.getFieldName(), field);
9682
        }
9683
      }
9684
 
9685
      /**
9686
       * Find the _Fields constant that matches fieldId, or null if its not found.
9687
       */
9688
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9689
        switch(fieldId) {
9690
          case 0: // SUCCESS
9691
            return SUCCESS;
9692
          default:
9693
            return null;
9694
        }
1139 chandransh 9695
      }
9696
 
9697
      /**
9698
       * Find the _Fields constant that matches fieldId, throwing an exception
9699
       * if it is not found.
9700
       */
9701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9702
        _Fields fields = findByThriftId(fieldId);
9703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9704
        return fields;
9705
      }
9706
 
9707
      /**
9708
       * Find the _Fields constant that matches name, or null if its not found.
9709
       */
9710
      public static _Fields findByName(String name) {
9711
        return byName.get(name);
9712
      }
9713
 
9714
      private final short _thriftId;
9715
      private final String _fieldName;
9716
 
9717
      _Fields(short thriftId, String fieldName) {
9718
        _thriftId = thriftId;
9719
        _fieldName = fieldName;
9720
      }
9721
 
9722
      public short getThriftFieldId() {
9723
        return _thriftId;
9724
      }
9725
 
9726
      public String getFieldName() {
9727
        return _fieldName;
9728
      }
9729
    }
9730
 
9731
    // isset id assignments
9732
    private static final int __SUCCESS_ISSET_ID = 0;
9733
    private BitSet __isset_bit_vector = new BitSet(1);
9734
 
3430 rajveer 9735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9736
    static {
3430 rajveer 9737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9738
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9740
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9741
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9742
    }
9743
 
9744
    public getFreeAwbCount_result() {
9745
    }
9746
 
9747
    public getFreeAwbCount_result(
9748
      long success)
9749
    {
9750
      this();
9751
      this.success = success;
9752
      setSuccessIsSet(true);
9753
    }
9754
 
9755
    /**
9756
     * Performs a deep copy on <i>other</i>.
9757
     */
9758
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9759
      __isset_bit_vector.clear();
9760
      __isset_bit_vector.or(other.__isset_bit_vector);
9761
      this.success = other.success;
9762
    }
9763
 
9764
    public getFreeAwbCount_result deepCopy() {
9765
      return new getFreeAwbCount_result(this);
9766
    }
9767
 
3430 rajveer 9768
    @Override
9769
    public void clear() {
9770
      setSuccessIsSet(false);
9771
      this.success = 0;
1139 chandransh 9772
    }
9773
 
9774
    public long getSuccess() {
9775
      return this.success;
9776
    }
9777
 
3430 rajveer 9778
    public void setSuccess(long success) {
1139 chandransh 9779
      this.success = success;
9780
      setSuccessIsSet(true);
9781
    }
9782
 
9783
    public void unsetSuccess() {
9784
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9785
    }
9786
 
3430 rajveer 9787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9788
    public boolean isSetSuccess() {
9789
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9790
    }
9791
 
9792
    public void setSuccessIsSet(boolean value) {
9793
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9794
    }
9795
 
9796
    public void setFieldValue(_Fields field, Object value) {
9797
      switch (field) {
9798
      case SUCCESS:
9799
        if (value == null) {
9800
          unsetSuccess();
9801
        } else {
9802
          setSuccess((Long)value);
9803
        }
9804
        break;
9805
 
9806
      }
9807
    }
9808
 
9809
    public Object getFieldValue(_Fields field) {
9810
      switch (field) {
9811
      case SUCCESS:
3430 rajveer 9812
        return Long.valueOf(getSuccess());
1139 chandransh 9813
 
9814
      }
9815
      throw new IllegalStateException();
9816
    }
9817
 
3430 rajveer 9818
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9819
    public boolean isSet(_Fields field) {
9820
      if (field == null) {
9821
        throw new IllegalArgumentException();
9822
      }
1139 chandransh 9823
 
9824
      switch (field) {
9825
      case SUCCESS:
9826
        return isSetSuccess();
9827
      }
9828
      throw new IllegalStateException();
9829
    }
9830
 
9831
    @Override
9832
    public boolean equals(Object that) {
9833
      if (that == null)
9834
        return false;
9835
      if (that instanceof getFreeAwbCount_result)
9836
        return this.equals((getFreeAwbCount_result)that);
9837
      return false;
9838
    }
9839
 
9840
    public boolean equals(getFreeAwbCount_result that) {
9841
      if (that == null)
9842
        return false;
9843
 
9844
      boolean this_present_success = true;
9845
      boolean that_present_success = true;
9846
      if (this_present_success || that_present_success) {
9847
        if (!(this_present_success && that_present_success))
9848
          return false;
9849
        if (this.success != that.success)
9850
          return false;
9851
      }
9852
 
9853
      return true;
9854
    }
9855
 
9856
    @Override
9857
    public int hashCode() {
9858
      return 0;
9859
    }
9860
 
9861
    public int compareTo(getFreeAwbCount_result other) {
9862
      if (!getClass().equals(other.getClass())) {
9863
        return getClass().getName().compareTo(other.getClass().getName());
9864
      }
9865
 
9866
      int lastComparison = 0;
9867
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9868
 
3430 rajveer 9869
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9870
      if (lastComparison != 0) {
9871
        return lastComparison;
9872
      }
3430 rajveer 9873
      if (isSetSuccess()) {
9874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9875
        if (lastComparison != 0) {
9876
          return lastComparison;
9877
        }
1139 chandransh 9878
      }
9879
      return 0;
9880
    }
9881
 
3430 rajveer 9882
    public _Fields fieldForId(int fieldId) {
9883
      return _Fields.findByThriftId(fieldId);
9884
    }
9885
 
9886
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9887
      org.apache.thrift.protocol.TField field;
1139 chandransh 9888
      iprot.readStructBegin();
9889
      while (true)
9890
      {
9891
        field = iprot.readFieldBegin();
3430 rajveer 9892
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9893
          break;
9894
        }
3430 rajveer 9895
        switch (field.id) {
9896
          case 0: // SUCCESS
9897
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9898
              this.success = iprot.readI64();
9899
              setSuccessIsSet(true);
9900
            } else { 
9901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9902
            }
9903
            break;
9904
          default:
9905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9906
        }
3430 rajveer 9907
        iprot.readFieldEnd();
1139 chandransh 9908
      }
9909
      iprot.readStructEnd();
9910
      validate();
9911
    }
9912
 
3430 rajveer 9913
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9914
      oprot.writeStructBegin(STRUCT_DESC);
9915
 
9916
      if (this.isSetSuccess()) {
9917
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9918
        oprot.writeI64(this.success);
9919
        oprot.writeFieldEnd();
9920
      }
9921
      oprot.writeFieldStop();
9922
      oprot.writeStructEnd();
9923
    }
9924
 
9925
    @Override
9926
    public String toString() {
9927
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9928
      boolean first = true;
9929
 
9930
      sb.append("success:");
9931
      sb.append(this.success);
9932
      first = false;
9933
      sb.append(")");
9934
      return sb.toString();
9935
    }
9936
 
3430 rajveer 9937
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9938
      // check for required fields
9939
    }
9940
 
3430 rajveer 9941
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9942
      try {
9943
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9944
      } catch (org.apache.thrift.TException te) {
9945
        throw new java.io.IOException(te);
9946
      }
9947
    }
9948
 
9949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9950
      try {
9951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9952
      } catch (org.apache.thrift.TException te) {
9953
        throw new java.io.IOException(te);
9954
      }
9955
    }
9956
 
1139 chandransh 9957
  }
9958
 
3430 rajveer 9959
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9960
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9961
 
3430 rajveer 9962
    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);
9963
    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 9964
 
3430 rajveer 9965
    private long fromDate; // required
9966
    private long toDate; // required
1730 ankur.sing 9967
 
9968
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9969
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9970
      FROM_DATE((short)1, "fromDate"),
9971
      TO_DATE((short)2, "toDate");
9972
 
9973
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9974
 
9975
      static {
9976
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9977
          byName.put(field.getFieldName(), field);
9978
        }
9979
      }
9980
 
9981
      /**
9982
       * Find the _Fields constant that matches fieldId, or null if its not found.
9983
       */
9984
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9985
        switch(fieldId) {
9986
          case 1: // FROM_DATE
9987
            return FROM_DATE;
9988
          case 2: // TO_DATE
9989
            return TO_DATE;
9990
          default:
9991
            return null;
9992
        }
1730 ankur.sing 9993
      }
9994
 
9995
      /**
9996
       * Find the _Fields constant that matches fieldId, throwing an exception
9997
       * if it is not found.
9998
       */
9999
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10000
        _Fields fields = findByThriftId(fieldId);
10001
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10002
        return fields;
10003
      }
10004
 
10005
      /**
10006
       * Find the _Fields constant that matches name, or null if its not found.
10007
       */
10008
      public static _Fields findByName(String name) {
10009
        return byName.get(name);
10010
      }
10011
 
10012
      private final short _thriftId;
10013
      private final String _fieldName;
10014
 
10015
      _Fields(short thriftId, String fieldName) {
10016
        _thriftId = thriftId;
10017
        _fieldName = fieldName;
10018
      }
10019
 
10020
      public short getThriftFieldId() {
10021
        return _thriftId;
10022
      }
10023
 
10024
      public String getFieldName() {
10025
        return _fieldName;
10026
      }
10027
    }
10028
 
10029
    // isset id assignments
10030
    private static final int __FROMDATE_ISSET_ID = 0;
10031
    private static final int __TODATE_ISSET_ID = 1;
10032
    private BitSet __isset_bit_vector = new BitSet(2);
10033
 
3430 rajveer 10034
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10035
    static {
3430 rajveer 10036
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10037
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10038
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10039
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10040
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10041
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10042
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10043
    }
10044
 
10045
    public getHolidays_args() {
10046
    }
10047
 
10048
    public getHolidays_args(
10049
      long fromDate,
10050
      long toDate)
10051
    {
10052
      this();
10053
      this.fromDate = fromDate;
10054
      setFromDateIsSet(true);
10055
      this.toDate = toDate;
10056
      setToDateIsSet(true);
10057
    }
10058
 
10059
    /**
10060
     * Performs a deep copy on <i>other</i>.
10061
     */
10062
    public getHolidays_args(getHolidays_args other) {
10063
      __isset_bit_vector.clear();
10064
      __isset_bit_vector.or(other.__isset_bit_vector);
10065
      this.fromDate = other.fromDate;
10066
      this.toDate = other.toDate;
10067
    }
10068
 
10069
    public getHolidays_args deepCopy() {
10070
      return new getHolidays_args(this);
10071
    }
10072
 
3430 rajveer 10073
    @Override
10074
    public void clear() {
10075
      setFromDateIsSet(false);
10076
      this.fromDate = 0;
10077
      setToDateIsSet(false);
10078
      this.toDate = 0;
1730 ankur.sing 10079
    }
10080
 
10081
    public long getFromDate() {
10082
      return this.fromDate;
10083
    }
10084
 
3430 rajveer 10085
    public void setFromDate(long fromDate) {
1730 ankur.sing 10086
      this.fromDate = fromDate;
10087
      setFromDateIsSet(true);
10088
    }
10089
 
10090
    public void unsetFromDate() {
10091
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10092
    }
10093
 
3430 rajveer 10094
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10095
    public boolean isSetFromDate() {
10096
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10097
    }
10098
 
10099
    public void setFromDateIsSet(boolean value) {
10100
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10101
    }
10102
 
10103
    public long getToDate() {
10104
      return this.toDate;
10105
    }
10106
 
3430 rajveer 10107
    public void setToDate(long toDate) {
1730 ankur.sing 10108
      this.toDate = toDate;
10109
      setToDateIsSet(true);
10110
    }
10111
 
10112
    public void unsetToDate() {
10113
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10114
    }
10115
 
3430 rajveer 10116
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10117
    public boolean isSetToDate() {
10118
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10119
    }
10120
 
10121
    public void setToDateIsSet(boolean value) {
10122
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10123
    }
10124
 
10125
    public void setFieldValue(_Fields field, Object value) {
10126
      switch (field) {
10127
      case FROM_DATE:
10128
        if (value == null) {
10129
          unsetFromDate();
10130
        } else {
10131
          setFromDate((Long)value);
10132
        }
10133
        break;
10134
 
10135
      case TO_DATE:
10136
        if (value == null) {
10137
          unsetToDate();
10138
        } else {
10139
          setToDate((Long)value);
10140
        }
10141
        break;
10142
 
10143
      }
10144
    }
10145
 
10146
    public Object getFieldValue(_Fields field) {
10147
      switch (field) {
10148
      case FROM_DATE:
3430 rajveer 10149
        return Long.valueOf(getFromDate());
1730 ankur.sing 10150
 
10151
      case TO_DATE:
3430 rajveer 10152
        return Long.valueOf(getToDate());
1730 ankur.sing 10153
 
10154
      }
10155
      throw new IllegalStateException();
10156
    }
10157
 
3430 rajveer 10158
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10159
    public boolean isSet(_Fields field) {
10160
      if (field == null) {
10161
        throw new IllegalArgumentException();
10162
      }
1730 ankur.sing 10163
 
10164
      switch (field) {
10165
      case FROM_DATE:
10166
        return isSetFromDate();
10167
      case TO_DATE:
10168
        return isSetToDate();
10169
      }
10170
      throw new IllegalStateException();
10171
    }
10172
 
10173
    @Override
10174
    public boolean equals(Object that) {
10175
      if (that == null)
10176
        return false;
10177
      if (that instanceof getHolidays_args)
10178
        return this.equals((getHolidays_args)that);
10179
      return false;
10180
    }
10181
 
10182
    public boolean equals(getHolidays_args that) {
10183
      if (that == null)
10184
        return false;
10185
 
10186
      boolean this_present_fromDate = true;
10187
      boolean that_present_fromDate = true;
10188
      if (this_present_fromDate || that_present_fromDate) {
10189
        if (!(this_present_fromDate && that_present_fromDate))
10190
          return false;
10191
        if (this.fromDate != that.fromDate)
10192
          return false;
10193
      }
10194
 
10195
      boolean this_present_toDate = true;
10196
      boolean that_present_toDate = true;
10197
      if (this_present_toDate || that_present_toDate) {
10198
        if (!(this_present_toDate && that_present_toDate))
10199
          return false;
10200
        if (this.toDate != that.toDate)
10201
          return false;
10202
      }
10203
 
10204
      return true;
10205
    }
10206
 
10207
    @Override
10208
    public int hashCode() {
10209
      return 0;
10210
    }
10211
 
10212
    public int compareTo(getHolidays_args other) {
10213
      if (!getClass().equals(other.getClass())) {
10214
        return getClass().getName().compareTo(other.getClass().getName());
10215
      }
10216
 
10217
      int lastComparison = 0;
10218
      getHolidays_args typedOther = (getHolidays_args)other;
10219
 
3430 rajveer 10220
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10221
      if (lastComparison != 0) {
10222
        return lastComparison;
10223
      }
3430 rajveer 10224
      if (isSetFromDate()) {
10225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10226
        if (lastComparison != 0) {
10227
          return lastComparison;
10228
        }
1730 ankur.sing 10229
      }
3430 rajveer 10230
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10231
      if (lastComparison != 0) {
10232
        return lastComparison;
10233
      }
3430 rajveer 10234
      if (isSetToDate()) {
10235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10236
        if (lastComparison != 0) {
10237
          return lastComparison;
10238
        }
1730 ankur.sing 10239
      }
10240
      return 0;
10241
    }
10242
 
3430 rajveer 10243
    public _Fields fieldForId(int fieldId) {
10244
      return _Fields.findByThriftId(fieldId);
10245
    }
10246
 
10247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10248
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10249
      iprot.readStructBegin();
10250
      while (true)
10251
      {
10252
        field = iprot.readFieldBegin();
3430 rajveer 10253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10254
          break;
10255
        }
3430 rajveer 10256
        switch (field.id) {
10257
          case 1: // FROM_DATE
10258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10259
              this.fromDate = iprot.readI64();
10260
              setFromDateIsSet(true);
10261
            } else { 
10262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10263
            }
10264
            break;
10265
          case 2: // TO_DATE
10266
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10267
              this.toDate = iprot.readI64();
10268
              setToDateIsSet(true);
10269
            } else { 
10270
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10271
            }
10272
            break;
10273
          default:
10274
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10275
        }
3430 rajveer 10276
        iprot.readFieldEnd();
1730 ankur.sing 10277
      }
10278
      iprot.readStructEnd();
10279
      validate();
10280
    }
10281
 
3430 rajveer 10282
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10283
      validate();
10284
 
10285
      oprot.writeStructBegin(STRUCT_DESC);
10286
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10287
      oprot.writeI64(this.fromDate);
10288
      oprot.writeFieldEnd();
10289
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10290
      oprot.writeI64(this.toDate);
10291
      oprot.writeFieldEnd();
10292
      oprot.writeFieldStop();
10293
      oprot.writeStructEnd();
10294
    }
10295
 
10296
    @Override
10297
    public String toString() {
10298
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10299
      boolean first = true;
10300
 
10301
      sb.append("fromDate:");
10302
      sb.append(this.fromDate);
10303
      first = false;
10304
      if (!first) sb.append(", ");
10305
      sb.append("toDate:");
10306
      sb.append(this.toDate);
10307
      first = false;
10308
      sb.append(")");
10309
      return sb.toString();
10310
    }
10311
 
3430 rajveer 10312
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10313
      // check for required fields
10314
    }
10315
 
3430 rajveer 10316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10317
      try {
10318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10319
      } catch (org.apache.thrift.TException te) {
10320
        throw new java.io.IOException(te);
10321
      }
10322
    }
10323
 
10324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10325
      try {
10326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10327
      } catch (org.apache.thrift.TException te) {
10328
        throw new java.io.IOException(te);
10329
      }
10330
    }
10331
 
1730 ankur.sing 10332
  }
10333
 
3430 rajveer 10334
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10336
 
3430 rajveer 10337
    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 10338
 
3430 rajveer 10339
    private List<Long> success; // required
1730 ankur.sing 10340
 
10341
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10342
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10343
      SUCCESS((short)0, "success");
10344
 
10345
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10346
 
10347
      static {
10348
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10349
          byName.put(field.getFieldName(), field);
10350
        }
10351
      }
10352
 
10353
      /**
10354
       * Find the _Fields constant that matches fieldId, or null if its not found.
10355
       */
10356
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10357
        switch(fieldId) {
10358
          case 0: // SUCCESS
10359
            return SUCCESS;
10360
          default:
10361
            return null;
10362
        }
1730 ankur.sing 10363
      }
10364
 
10365
      /**
10366
       * Find the _Fields constant that matches fieldId, throwing an exception
10367
       * if it is not found.
10368
       */
10369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10370
        _Fields fields = findByThriftId(fieldId);
10371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10372
        return fields;
10373
      }
10374
 
10375
      /**
10376
       * Find the _Fields constant that matches name, or null if its not found.
10377
       */
10378
      public static _Fields findByName(String name) {
10379
        return byName.get(name);
10380
      }
10381
 
10382
      private final short _thriftId;
10383
      private final String _fieldName;
10384
 
10385
      _Fields(short thriftId, String fieldName) {
10386
        _thriftId = thriftId;
10387
        _fieldName = fieldName;
10388
      }
10389
 
10390
      public short getThriftFieldId() {
10391
        return _thriftId;
10392
      }
10393
 
10394
      public String getFieldName() {
10395
        return _fieldName;
10396
      }
10397
    }
10398
 
10399
    // isset id assignments
10400
 
3430 rajveer 10401
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10402
    static {
3430 rajveer 10403
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10404
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10405
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10406
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10407
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10408
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10409
    }
10410
 
10411
    public getHolidays_result() {
10412
    }
10413
 
10414
    public getHolidays_result(
10415
      List<Long> success)
10416
    {
10417
      this();
10418
      this.success = success;
10419
    }
10420
 
10421
    /**
10422
     * Performs a deep copy on <i>other</i>.
10423
     */
10424
    public getHolidays_result(getHolidays_result other) {
10425
      if (other.isSetSuccess()) {
10426
        List<Long> __this__success = new ArrayList<Long>();
10427
        for (Long other_element : other.success) {
10428
          __this__success.add(other_element);
10429
        }
10430
        this.success = __this__success;
10431
      }
10432
    }
10433
 
10434
    public getHolidays_result deepCopy() {
10435
      return new getHolidays_result(this);
10436
    }
10437
 
3430 rajveer 10438
    @Override
10439
    public void clear() {
10440
      this.success = null;
1730 ankur.sing 10441
    }
10442
 
10443
    public int getSuccessSize() {
10444
      return (this.success == null) ? 0 : this.success.size();
10445
    }
10446
 
10447
    public java.util.Iterator<Long> getSuccessIterator() {
10448
      return (this.success == null) ? null : this.success.iterator();
10449
    }
10450
 
10451
    public void addToSuccess(long elem) {
10452
      if (this.success == null) {
10453
        this.success = new ArrayList<Long>();
10454
      }
10455
      this.success.add(elem);
10456
    }
10457
 
10458
    public List<Long> getSuccess() {
10459
      return this.success;
10460
    }
10461
 
3430 rajveer 10462
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10463
      this.success = success;
10464
    }
10465
 
10466
    public void unsetSuccess() {
10467
      this.success = null;
10468
    }
10469
 
3430 rajveer 10470
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10471
    public boolean isSetSuccess() {
10472
      return this.success != null;
10473
    }
10474
 
10475
    public void setSuccessIsSet(boolean value) {
10476
      if (!value) {
10477
        this.success = null;
10478
      }
10479
    }
10480
 
10481
    public void setFieldValue(_Fields field, Object value) {
10482
      switch (field) {
10483
      case SUCCESS:
10484
        if (value == null) {
10485
          unsetSuccess();
10486
        } else {
10487
          setSuccess((List<Long>)value);
10488
        }
10489
        break;
10490
 
10491
      }
10492
    }
10493
 
10494
    public Object getFieldValue(_Fields field) {
10495
      switch (field) {
10496
      case SUCCESS:
10497
        return getSuccess();
10498
 
10499
      }
10500
      throw new IllegalStateException();
10501
    }
10502
 
3430 rajveer 10503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10504
    public boolean isSet(_Fields field) {
10505
      if (field == null) {
10506
        throw new IllegalArgumentException();
10507
      }
1730 ankur.sing 10508
 
10509
      switch (field) {
10510
      case SUCCESS:
10511
        return isSetSuccess();
10512
      }
10513
      throw new IllegalStateException();
10514
    }
10515
 
10516
    @Override
10517
    public boolean equals(Object that) {
10518
      if (that == null)
10519
        return false;
10520
      if (that instanceof getHolidays_result)
10521
        return this.equals((getHolidays_result)that);
10522
      return false;
10523
    }
10524
 
10525
    public boolean equals(getHolidays_result that) {
10526
      if (that == null)
10527
        return false;
10528
 
10529
      boolean this_present_success = true && this.isSetSuccess();
10530
      boolean that_present_success = true && that.isSetSuccess();
10531
      if (this_present_success || that_present_success) {
10532
        if (!(this_present_success && that_present_success))
10533
          return false;
10534
        if (!this.success.equals(that.success))
10535
          return false;
10536
      }
10537
 
10538
      return true;
10539
    }
10540
 
10541
    @Override
10542
    public int hashCode() {
10543
      return 0;
10544
    }
10545
 
10546
    public int compareTo(getHolidays_result other) {
10547
      if (!getClass().equals(other.getClass())) {
10548
        return getClass().getName().compareTo(other.getClass().getName());
10549
      }
10550
 
10551
      int lastComparison = 0;
10552
      getHolidays_result typedOther = (getHolidays_result)other;
10553
 
3430 rajveer 10554
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10555
      if (lastComparison != 0) {
10556
        return lastComparison;
10557
      }
3430 rajveer 10558
      if (isSetSuccess()) {
10559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10560
        if (lastComparison != 0) {
10561
          return lastComparison;
10562
        }
1730 ankur.sing 10563
      }
10564
      return 0;
10565
    }
10566
 
3430 rajveer 10567
    public _Fields fieldForId(int fieldId) {
10568
      return _Fields.findByThriftId(fieldId);
10569
    }
10570
 
10571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10572
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10573
      iprot.readStructBegin();
10574
      while (true)
10575
      {
10576
        field = iprot.readFieldBegin();
3430 rajveer 10577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10578
          break;
10579
        }
3430 rajveer 10580
        switch (field.id) {
10581
          case 0: // SUCCESS
10582
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10583
              {
7792 anupam.sin 10584
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10585
                this.success = new ArrayList<Long>(_list12.size);
10586
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10587
                {
7792 anupam.sin 10588
                  long _elem14; // required
10589
                  _elem14 = iprot.readI64();
10590
                  this.success.add(_elem14);
1730 ankur.sing 10591
                }
3430 rajveer 10592
                iprot.readListEnd();
1730 ankur.sing 10593
              }
3430 rajveer 10594
            } else { 
10595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10596
            }
10597
            break;
10598
          default:
10599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10600
        }
3430 rajveer 10601
        iprot.readFieldEnd();
1730 ankur.sing 10602
      }
10603
      iprot.readStructEnd();
10604
      validate();
10605
    }
10606
 
3430 rajveer 10607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10608
      oprot.writeStructBegin(STRUCT_DESC);
10609
 
10610
      if (this.isSetSuccess()) {
10611
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10612
        {
3430 rajveer 10613
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10614
          for (long _iter15 : this.success)
1730 ankur.sing 10615
          {
7792 anupam.sin 10616
            oprot.writeI64(_iter15);
1730 ankur.sing 10617
          }
10618
          oprot.writeListEnd();
10619
        }
10620
        oprot.writeFieldEnd();
10621
      }
10622
      oprot.writeFieldStop();
10623
      oprot.writeStructEnd();
10624
    }
10625
 
10626
    @Override
10627
    public String toString() {
10628
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10629
      boolean first = true;
10630
 
10631
      sb.append("success:");
10632
      if (this.success == null) {
10633
        sb.append("null");
10634
      } else {
10635
        sb.append(this.success);
10636
      }
10637
      first = false;
10638
      sb.append(")");
10639
      return sb.toString();
10640
    }
10641
 
3430 rajveer 10642
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10643
      // check for required fields
10644
    }
10645
 
3430 rajveer 10646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10647
      try {
10648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10649
      } catch (org.apache.thrift.TException te) {
10650
        throw new java.io.IOException(te);
10651
      }
10652
    }
10653
 
10654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10655
      try {
10656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10657
      } catch (org.apache.thrift.TException te) {
10658
        throw new java.io.IOException(te);
10659
      }
10660
    }
10661
 
1730 ankur.sing 10662
  }
10663
 
4934 amit.gupta 10664
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10666
 
10667
    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);
10668
    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);
10669
    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);
10670
 
10671
    private long catalogItemId; // required
10672
    private String destination_pin; // required
10673
    private DeliveryType type; // required
10674
 
10675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10677
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10678
      DESTINATION_PIN((short)2, "destination_pin"),
10679
      /**
10680
       * 
10681
       * @see DeliveryType
10682
       */
10683
      TYPE((short)3, "type");
10684
 
10685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10686
 
10687
      static {
10688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10689
          byName.put(field.getFieldName(), field);
10690
        }
10691
      }
10692
 
10693
      /**
10694
       * Find the _Fields constant that matches fieldId, or null if its not found.
10695
       */
10696
      public static _Fields findByThriftId(int fieldId) {
10697
        switch(fieldId) {
10698
          case 1: // CATALOG_ITEM_ID
10699
            return CATALOG_ITEM_ID;
10700
          case 2: // DESTINATION_PIN
10701
            return DESTINATION_PIN;
10702
          case 3: // TYPE
10703
            return TYPE;
10704
          default:
10705
            return null;
10706
        }
10707
      }
10708
 
10709
      /**
10710
       * Find the _Fields constant that matches fieldId, throwing an exception
10711
       * if it is not found.
10712
       */
10713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10714
        _Fields fields = findByThriftId(fieldId);
10715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10716
        return fields;
10717
      }
10718
 
10719
      /**
10720
       * Find the _Fields constant that matches name, or null if its not found.
10721
       */
10722
      public static _Fields findByName(String name) {
10723
        return byName.get(name);
10724
      }
10725
 
10726
      private final short _thriftId;
10727
      private final String _fieldName;
10728
 
10729
      _Fields(short thriftId, String fieldName) {
10730
        _thriftId = thriftId;
10731
        _fieldName = fieldName;
10732
      }
10733
 
10734
      public short getThriftFieldId() {
10735
        return _thriftId;
10736
      }
10737
 
10738
      public String getFieldName() {
10739
        return _fieldName;
10740
      }
10741
    }
10742
 
10743
    // isset id assignments
10744
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10745
    private BitSet __isset_bit_vector = new BitSet(1);
10746
 
10747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10748
    static {
10749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10750
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10752
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10753
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10754
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10755
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10756
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10757
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10758
    }
10759
 
10760
    public getEntityLogisticsEstimation_args() {
10761
    }
10762
 
10763
    public getEntityLogisticsEstimation_args(
10764
      long catalogItemId,
10765
      String destination_pin,
10766
      DeliveryType type)
10767
    {
10768
      this();
10769
      this.catalogItemId = catalogItemId;
10770
      setCatalogItemIdIsSet(true);
10771
      this.destination_pin = destination_pin;
10772
      this.type = type;
10773
    }
10774
 
10775
    /**
10776
     * Performs a deep copy on <i>other</i>.
10777
     */
10778
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10779
      __isset_bit_vector.clear();
10780
      __isset_bit_vector.or(other.__isset_bit_vector);
10781
      this.catalogItemId = other.catalogItemId;
10782
      if (other.isSetDestination_pin()) {
10783
        this.destination_pin = other.destination_pin;
10784
      }
10785
      if (other.isSetType()) {
10786
        this.type = other.type;
10787
      }
10788
    }
10789
 
10790
    public getEntityLogisticsEstimation_args deepCopy() {
10791
      return new getEntityLogisticsEstimation_args(this);
10792
    }
10793
 
10794
    @Override
10795
    public void clear() {
10796
      setCatalogItemIdIsSet(false);
10797
      this.catalogItemId = 0;
10798
      this.destination_pin = null;
10799
      this.type = null;
10800
    }
10801
 
10802
    public long getCatalogItemId() {
10803
      return this.catalogItemId;
10804
    }
10805
 
10806
    public void setCatalogItemId(long catalogItemId) {
10807
      this.catalogItemId = catalogItemId;
10808
      setCatalogItemIdIsSet(true);
10809
    }
10810
 
10811
    public void unsetCatalogItemId() {
10812
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10813
    }
10814
 
10815
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10816
    public boolean isSetCatalogItemId() {
10817
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10818
    }
10819
 
10820
    public void setCatalogItemIdIsSet(boolean value) {
10821
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10822
    }
10823
 
10824
    public String getDestination_pin() {
10825
      return this.destination_pin;
10826
    }
10827
 
10828
    public void setDestination_pin(String destination_pin) {
10829
      this.destination_pin = destination_pin;
10830
    }
10831
 
10832
    public void unsetDestination_pin() {
10833
      this.destination_pin = null;
10834
    }
10835
 
10836
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10837
    public boolean isSetDestination_pin() {
10838
      return this.destination_pin != null;
10839
    }
10840
 
10841
    public void setDestination_pinIsSet(boolean value) {
10842
      if (!value) {
10843
        this.destination_pin = null;
10844
      }
10845
    }
10846
 
10847
    /**
10848
     * 
10849
     * @see DeliveryType
10850
     */
10851
    public DeliveryType getType() {
10852
      return this.type;
10853
    }
10854
 
10855
    /**
10856
     * 
10857
     * @see DeliveryType
10858
     */
10859
    public void setType(DeliveryType type) {
10860
      this.type = type;
10861
    }
10862
 
10863
    public void unsetType() {
10864
      this.type = null;
10865
    }
10866
 
10867
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10868
    public boolean isSetType() {
10869
      return this.type != null;
10870
    }
10871
 
10872
    public void setTypeIsSet(boolean value) {
10873
      if (!value) {
10874
        this.type = null;
10875
      }
10876
    }
10877
 
10878
    public void setFieldValue(_Fields field, Object value) {
10879
      switch (field) {
10880
      case CATALOG_ITEM_ID:
10881
        if (value == null) {
10882
          unsetCatalogItemId();
10883
        } else {
10884
          setCatalogItemId((Long)value);
10885
        }
10886
        break;
10887
 
10888
      case DESTINATION_PIN:
10889
        if (value == null) {
10890
          unsetDestination_pin();
10891
        } else {
10892
          setDestination_pin((String)value);
10893
        }
10894
        break;
10895
 
10896
      case TYPE:
10897
        if (value == null) {
10898
          unsetType();
10899
        } else {
10900
          setType((DeliveryType)value);
10901
        }
10902
        break;
10903
 
10904
      }
10905
    }
10906
 
10907
    public Object getFieldValue(_Fields field) {
10908
      switch (field) {
10909
      case CATALOG_ITEM_ID:
10910
        return Long.valueOf(getCatalogItemId());
10911
 
10912
      case DESTINATION_PIN:
10913
        return getDestination_pin();
10914
 
10915
      case TYPE:
10916
        return getType();
10917
 
10918
      }
10919
      throw new IllegalStateException();
10920
    }
10921
 
10922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10923
    public boolean isSet(_Fields field) {
10924
      if (field == null) {
10925
        throw new IllegalArgumentException();
10926
      }
10927
 
10928
      switch (field) {
10929
      case CATALOG_ITEM_ID:
10930
        return isSetCatalogItemId();
10931
      case DESTINATION_PIN:
10932
        return isSetDestination_pin();
10933
      case TYPE:
10934
        return isSetType();
10935
      }
10936
      throw new IllegalStateException();
10937
    }
10938
 
10939
    @Override
10940
    public boolean equals(Object that) {
10941
      if (that == null)
10942
        return false;
10943
      if (that instanceof getEntityLogisticsEstimation_args)
10944
        return this.equals((getEntityLogisticsEstimation_args)that);
10945
      return false;
10946
    }
10947
 
10948
    public boolean equals(getEntityLogisticsEstimation_args that) {
10949
      if (that == null)
10950
        return false;
10951
 
10952
      boolean this_present_catalogItemId = true;
10953
      boolean that_present_catalogItemId = true;
10954
      if (this_present_catalogItemId || that_present_catalogItemId) {
10955
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10956
          return false;
10957
        if (this.catalogItemId != that.catalogItemId)
10958
          return false;
10959
      }
10960
 
10961
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10962
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10963
      if (this_present_destination_pin || that_present_destination_pin) {
10964
        if (!(this_present_destination_pin && that_present_destination_pin))
10965
          return false;
10966
        if (!this.destination_pin.equals(that.destination_pin))
10967
          return false;
10968
      }
10969
 
10970
      boolean this_present_type = true && this.isSetType();
10971
      boolean that_present_type = true && that.isSetType();
10972
      if (this_present_type || that_present_type) {
10973
        if (!(this_present_type && that_present_type))
10974
          return false;
10975
        if (!this.type.equals(that.type))
10976
          return false;
10977
      }
10978
 
10979
      return true;
10980
    }
10981
 
10982
    @Override
10983
    public int hashCode() {
10984
      return 0;
10985
    }
10986
 
10987
    public int compareTo(getEntityLogisticsEstimation_args other) {
10988
      if (!getClass().equals(other.getClass())) {
10989
        return getClass().getName().compareTo(other.getClass().getName());
10990
      }
10991
 
10992
      int lastComparison = 0;
10993
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10994
 
10995
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10996
      if (lastComparison != 0) {
10997
        return lastComparison;
10998
      }
10999
      if (isSetCatalogItemId()) {
11000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
11001
        if (lastComparison != 0) {
11002
          return lastComparison;
11003
        }
11004
      }
11005
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11006
      if (lastComparison != 0) {
11007
        return lastComparison;
11008
      }
11009
      if (isSetDestination_pin()) {
11010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11011
        if (lastComparison != 0) {
11012
          return lastComparison;
11013
        }
11014
      }
11015
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11016
      if (lastComparison != 0) {
11017
        return lastComparison;
11018
      }
11019
      if (isSetType()) {
11020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11021
        if (lastComparison != 0) {
11022
          return lastComparison;
11023
        }
11024
      }
11025
      return 0;
11026
    }
11027
 
11028
    public _Fields fieldForId(int fieldId) {
11029
      return _Fields.findByThriftId(fieldId);
11030
    }
11031
 
11032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11033
      org.apache.thrift.protocol.TField field;
11034
      iprot.readStructBegin();
11035
      while (true)
11036
      {
11037
        field = iprot.readFieldBegin();
11038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11039
          break;
11040
        }
11041
        switch (field.id) {
11042
          case 1: // CATALOG_ITEM_ID
11043
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11044
              this.catalogItemId = iprot.readI64();
11045
              setCatalogItemIdIsSet(true);
11046
            } else { 
11047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11048
            }
11049
            break;
11050
          case 2: // DESTINATION_PIN
11051
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11052
              this.destination_pin = iprot.readString();
11053
            } else { 
11054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11055
            }
11056
            break;
11057
          case 3: // TYPE
11058
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11059
              this.type = DeliveryType.findByValue(iprot.readI32());
11060
            } else { 
11061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11062
            }
11063
            break;
11064
          default:
11065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11066
        }
11067
        iprot.readFieldEnd();
11068
      }
11069
      iprot.readStructEnd();
11070
      validate();
11071
    }
11072
 
11073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11074
      validate();
11075
 
11076
      oprot.writeStructBegin(STRUCT_DESC);
11077
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11078
      oprot.writeI64(this.catalogItemId);
11079
      oprot.writeFieldEnd();
11080
      if (this.destination_pin != null) {
11081
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11082
        oprot.writeString(this.destination_pin);
11083
        oprot.writeFieldEnd();
11084
      }
11085
      if (this.type != null) {
11086
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11087
        oprot.writeI32(this.type.getValue());
11088
        oprot.writeFieldEnd();
11089
      }
11090
      oprot.writeFieldStop();
11091
      oprot.writeStructEnd();
11092
    }
11093
 
11094
    @Override
11095
    public String toString() {
11096
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11097
      boolean first = true;
11098
 
11099
      sb.append("catalogItemId:");
11100
      sb.append(this.catalogItemId);
11101
      first = false;
11102
      if (!first) sb.append(", ");
11103
      sb.append("destination_pin:");
11104
      if (this.destination_pin == null) {
11105
        sb.append("null");
11106
      } else {
11107
        sb.append(this.destination_pin);
11108
      }
11109
      first = false;
11110
      if (!first) sb.append(", ");
11111
      sb.append("type:");
11112
      if (this.type == null) {
11113
        sb.append("null");
11114
      } else {
11115
        sb.append(this.type);
11116
      }
11117
      first = false;
11118
      sb.append(")");
11119
      return sb.toString();
11120
    }
11121
 
11122
    public void validate() throws org.apache.thrift.TException {
11123
      // check for required fields
11124
    }
11125
 
11126
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11127
      try {
11128
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11129
      } catch (org.apache.thrift.TException te) {
11130
        throw new java.io.IOException(te);
11131
      }
11132
    }
11133
 
11134
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11135
      try {
11136
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11137
      } catch (org.apache.thrift.TException te) {
11138
        throw new java.io.IOException(te);
11139
      }
11140
    }
11141
 
11142
  }
11143
 
11144
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11145
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11146
 
11147
    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);
11148
    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);
11149
 
9840 amit.gupta 11150
    private List<ItemText> success; // required
4934 amit.gupta 11151
    private LogisticsServiceException se; // required
11152
 
11153
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11154
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11155
      SUCCESS((short)0, "success"),
11156
      SE((short)1, "se");
11157
 
11158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11159
 
11160
      static {
11161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11162
          byName.put(field.getFieldName(), field);
11163
        }
11164
      }
11165
 
11166
      /**
11167
       * Find the _Fields constant that matches fieldId, or null if its not found.
11168
       */
11169
      public static _Fields findByThriftId(int fieldId) {
11170
        switch(fieldId) {
11171
          case 0: // SUCCESS
11172
            return SUCCESS;
11173
          case 1: // SE
11174
            return SE;
11175
          default:
11176
            return null;
11177
        }
11178
      }
11179
 
11180
      /**
11181
       * Find the _Fields constant that matches fieldId, throwing an exception
11182
       * if it is not found.
11183
       */
11184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11185
        _Fields fields = findByThriftId(fieldId);
11186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11187
        return fields;
11188
      }
11189
 
11190
      /**
11191
       * Find the _Fields constant that matches name, or null if its not found.
11192
       */
11193
      public static _Fields findByName(String name) {
11194
        return byName.get(name);
11195
      }
11196
 
11197
      private final short _thriftId;
11198
      private final String _fieldName;
11199
 
11200
      _Fields(short thriftId, String fieldName) {
11201
        _thriftId = thriftId;
11202
        _fieldName = fieldName;
11203
      }
11204
 
11205
      public short getThriftFieldId() {
11206
        return _thriftId;
11207
      }
11208
 
11209
      public String getFieldName() {
11210
        return _fieldName;
11211
      }
11212
    }
11213
 
11214
    // isset id assignments
11215
 
11216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11217
    static {
11218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11219
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11220
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11221
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11222
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11223
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11224
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11225
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11226
    }
11227
 
11228
    public getEntityLogisticsEstimation_result() {
11229
    }
11230
 
11231
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11232
      List<ItemText> success,
4934 amit.gupta 11233
      LogisticsServiceException se)
11234
    {
11235
      this();
11236
      this.success = success;
11237
      this.se = se;
11238
    }
11239
 
11240
    /**
11241
     * Performs a deep copy on <i>other</i>.
11242
     */
11243
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11244
      if (other.isSetSuccess()) {
9840 amit.gupta 11245
        List<ItemText> __this__success = new ArrayList<ItemText>();
11246
        for (ItemText other_element : other.success) {
11247
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11248
        }
11249
        this.success = __this__success;
11250
      }
11251
      if (other.isSetSe()) {
11252
        this.se = new LogisticsServiceException(other.se);
11253
      }
11254
    }
11255
 
11256
    public getEntityLogisticsEstimation_result deepCopy() {
11257
      return new getEntityLogisticsEstimation_result(this);
11258
    }
11259
 
11260
    @Override
11261
    public void clear() {
11262
      this.success = null;
11263
      this.se = null;
11264
    }
11265
 
11266
    public int getSuccessSize() {
11267
      return (this.success == null) ? 0 : this.success.size();
11268
    }
11269
 
9840 amit.gupta 11270
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11271
      return (this.success == null) ? null : this.success.iterator();
11272
    }
11273
 
9840 amit.gupta 11274
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11275
      if (this.success == null) {
9840 amit.gupta 11276
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11277
      }
11278
      this.success.add(elem);
11279
    }
11280
 
9840 amit.gupta 11281
    public List<ItemText> getSuccess() {
4934 amit.gupta 11282
      return this.success;
11283
    }
11284
 
9840 amit.gupta 11285
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11286
      this.success = success;
11287
    }
11288
 
11289
    public void unsetSuccess() {
11290
      this.success = null;
11291
    }
11292
 
11293
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11294
    public boolean isSetSuccess() {
11295
      return this.success != null;
11296
    }
11297
 
11298
    public void setSuccessIsSet(boolean value) {
11299
      if (!value) {
11300
        this.success = null;
11301
      }
11302
    }
11303
 
11304
    public LogisticsServiceException getSe() {
11305
      return this.se;
11306
    }
11307
 
11308
    public void setSe(LogisticsServiceException se) {
11309
      this.se = se;
11310
    }
11311
 
11312
    public void unsetSe() {
11313
      this.se = null;
11314
    }
11315
 
11316
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11317
    public boolean isSetSe() {
11318
      return this.se != null;
11319
    }
11320
 
11321
    public void setSeIsSet(boolean value) {
11322
      if (!value) {
11323
        this.se = null;
11324
      }
11325
    }
11326
 
11327
    public void setFieldValue(_Fields field, Object value) {
11328
      switch (field) {
11329
      case SUCCESS:
11330
        if (value == null) {
11331
          unsetSuccess();
11332
        } else {
9840 amit.gupta 11333
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11334
        }
11335
        break;
11336
 
11337
      case SE:
11338
        if (value == null) {
11339
          unsetSe();
11340
        } else {
11341
          setSe((LogisticsServiceException)value);
11342
        }
11343
        break;
11344
 
11345
      }
11346
    }
11347
 
11348
    public Object getFieldValue(_Fields field) {
11349
      switch (field) {
11350
      case SUCCESS:
11351
        return getSuccess();
11352
 
11353
      case SE:
11354
        return getSe();
11355
 
11356
      }
11357
      throw new IllegalStateException();
11358
    }
11359
 
11360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11361
    public boolean isSet(_Fields field) {
11362
      if (field == null) {
11363
        throw new IllegalArgumentException();
11364
      }
11365
 
11366
      switch (field) {
11367
      case SUCCESS:
11368
        return isSetSuccess();
11369
      case SE:
11370
        return isSetSe();
11371
      }
11372
      throw new IllegalStateException();
11373
    }
11374
 
11375
    @Override
11376
    public boolean equals(Object that) {
11377
      if (that == null)
11378
        return false;
11379
      if (that instanceof getEntityLogisticsEstimation_result)
11380
        return this.equals((getEntityLogisticsEstimation_result)that);
11381
      return false;
11382
    }
11383
 
11384
    public boolean equals(getEntityLogisticsEstimation_result that) {
11385
      if (that == null)
11386
        return false;
11387
 
11388
      boolean this_present_success = true && this.isSetSuccess();
11389
      boolean that_present_success = true && that.isSetSuccess();
11390
      if (this_present_success || that_present_success) {
11391
        if (!(this_present_success && that_present_success))
11392
          return false;
11393
        if (!this.success.equals(that.success))
11394
          return false;
11395
      }
11396
 
11397
      boolean this_present_se = true && this.isSetSe();
11398
      boolean that_present_se = true && that.isSetSe();
11399
      if (this_present_se || that_present_se) {
11400
        if (!(this_present_se && that_present_se))
11401
          return false;
11402
        if (!this.se.equals(that.se))
11403
          return false;
11404
      }
11405
 
11406
      return true;
11407
    }
11408
 
11409
    @Override
11410
    public int hashCode() {
11411
      return 0;
11412
    }
11413
 
11414
    public int compareTo(getEntityLogisticsEstimation_result other) {
11415
      if (!getClass().equals(other.getClass())) {
11416
        return getClass().getName().compareTo(other.getClass().getName());
11417
      }
11418
 
11419
      int lastComparison = 0;
11420
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11421
 
11422
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11423
      if (lastComparison != 0) {
11424
        return lastComparison;
11425
      }
11426
      if (isSetSuccess()) {
11427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11428
        if (lastComparison != 0) {
11429
          return lastComparison;
11430
        }
11431
      }
11432
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11433
      if (lastComparison != 0) {
11434
        return lastComparison;
11435
      }
11436
      if (isSetSe()) {
11437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11438
        if (lastComparison != 0) {
11439
          return lastComparison;
11440
        }
11441
      }
11442
      return 0;
11443
    }
11444
 
11445
    public _Fields fieldForId(int fieldId) {
11446
      return _Fields.findByThriftId(fieldId);
11447
    }
11448
 
11449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11450
      org.apache.thrift.protocol.TField field;
11451
      iprot.readStructBegin();
11452
      while (true)
11453
      {
11454
        field = iprot.readFieldBegin();
11455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11456
          break;
11457
        }
11458
        switch (field.id) {
11459
          case 0: // SUCCESS
11460
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11461
              {
7792 anupam.sin 11462
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11463
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11464
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11465
                {
9840 amit.gupta 11466
                  ItemText _elem18; // required
11467
                  _elem18 = new ItemText();
11468
                  _elem18.read(iprot);
7792 anupam.sin 11469
                  this.success.add(_elem18);
4934 amit.gupta 11470
                }
11471
                iprot.readListEnd();
11472
              }
11473
            } else { 
11474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11475
            }
11476
            break;
11477
          case 1: // SE
11478
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11479
              this.se = new LogisticsServiceException();
11480
              this.se.read(iprot);
11481
            } else { 
11482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11483
            }
11484
            break;
11485
          default:
11486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11487
        }
11488
        iprot.readFieldEnd();
11489
      }
11490
      iprot.readStructEnd();
11491
      validate();
11492
    }
11493
 
11494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11495
      oprot.writeStructBegin(STRUCT_DESC);
11496
 
11497
      if (this.isSetSuccess()) {
11498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11499
        {
9840 amit.gupta 11500
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11501
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11502
          {
9840 amit.gupta 11503
            _iter19.write(oprot);
4934 amit.gupta 11504
          }
11505
          oprot.writeListEnd();
11506
        }
11507
        oprot.writeFieldEnd();
11508
      } else if (this.isSetSe()) {
11509
        oprot.writeFieldBegin(SE_FIELD_DESC);
11510
        this.se.write(oprot);
11511
        oprot.writeFieldEnd();
11512
      }
11513
      oprot.writeFieldStop();
11514
      oprot.writeStructEnd();
11515
    }
11516
 
11517
    @Override
11518
    public String toString() {
11519
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11520
      boolean first = true;
11521
 
11522
      sb.append("success:");
11523
      if (this.success == null) {
11524
        sb.append("null");
11525
      } else {
11526
        sb.append(this.success);
11527
      }
11528
      first = false;
11529
      if (!first) sb.append(", ");
11530
      sb.append("se:");
11531
      if (this.se == null) {
11532
        sb.append("null");
11533
      } else {
11534
        sb.append(this.se);
11535
      }
11536
      first = false;
11537
      sb.append(")");
11538
      return sb.toString();
11539
    }
11540
 
11541
    public void validate() throws org.apache.thrift.TException {
11542
      // check for required fields
11543
    }
11544
 
11545
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11546
      try {
11547
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11548
      } catch (org.apache.thrift.TException te) {
11549
        throw new java.io.IOException(te);
11550
      }
11551
    }
11552
 
11553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11554
      try {
11555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11556
      } catch (org.apache.thrift.TException te) {
11557
        throw new java.io.IOException(te);
11558
      }
11559
    }
11560
 
11561
  }
11562
 
5527 anupam.sin 11563
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11565
 
11566
    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);
11567
 
11568
    private long pickUp; // required
11569
 
11570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11572
      PICK_UP((short)1, "pickUp");
11573
 
11574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11575
 
11576
      static {
11577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11578
          byName.put(field.getFieldName(), field);
11579
        }
11580
      }
11581
 
11582
      /**
11583
       * Find the _Fields constant that matches fieldId, or null if its not found.
11584
       */
11585
      public static _Fields findByThriftId(int fieldId) {
11586
        switch(fieldId) {
11587
          case 1: // PICK_UP
11588
            return PICK_UP;
11589
          default:
11590
            return null;
11591
        }
11592
      }
11593
 
11594
      /**
11595
       * Find the _Fields constant that matches fieldId, throwing an exception
11596
       * if it is not found.
11597
       */
11598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11599
        _Fields fields = findByThriftId(fieldId);
11600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11601
        return fields;
11602
      }
11603
 
11604
      /**
11605
       * Find the _Fields constant that matches name, or null if its not found.
11606
       */
11607
      public static _Fields findByName(String name) {
11608
        return byName.get(name);
11609
      }
11610
 
11611
      private final short _thriftId;
11612
      private final String _fieldName;
11613
 
11614
      _Fields(short thriftId, String fieldName) {
11615
        _thriftId = thriftId;
11616
        _fieldName = fieldName;
11617
      }
11618
 
11619
      public short getThriftFieldId() {
11620
        return _thriftId;
11621
      }
11622
 
11623
      public String getFieldName() {
11624
        return _fieldName;
11625
      }
11626
    }
11627
 
11628
    // isset id assignments
11629
    private static final int __PICKUP_ISSET_ID = 0;
11630
    private BitSet __isset_bit_vector = new BitSet(1);
11631
 
11632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11633
    static {
11634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11635
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11639
    }
11640
 
11641
    public getProviderForPickupType_args() {
11642
    }
11643
 
11644
    public getProviderForPickupType_args(
11645
      long pickUp)
11646
    {
11647
      this();
11648
      this.pickUp = pickUp;
11649
      setPickUpIsSet(true);
11650
    }
11651
 
11652
    /**
11653
     * Performs a deep copy on <i>other</i>.
11654
     */
11655
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11656
      __isset_bit_vector.clear();
11657
      __isset_bit_vector.or(other.__isset_bit_vector);
11658
      this.pickUp = other.pickUp;
11659
    }
11660
 
11661
    public getProviderForPickupType_args deepCopy() {
11662
      return new getProviderForPickupType_args(this);
11663
    }
11664
 
11665
    @Override
11666
    public void clear() {
11667
      setPickUpIsSet(false);
11668
      this.pickUp = 0;
11669
    }
11670
 
11671
    public long getPickUp() {
11672
      return this.pickUp;
11673
    }
11674
 
11675
    public void setPickUp(long pickUp) {
11676
      this.pickUp = pickUp;
11677
      setPickUpIsSet(true);
11678
    }
11679
 
11680
    public void unsetPickUp() {
11681
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11682
    }
11683
 
11684
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11685
    public boolean isSetPickUp() {
11686
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11687
    }
11688
 
11689
    public void setPickUpIsSet(boolean value) {
11690
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11691
    }
11692
 
11693
    public void setFieldValue(_Fields field, Object value) {
11694
      switch (field) {
11695
      case PICK_UP:
11696
        if (value == null) {
11697
          unsetPickUp();
11698
        } else {
11699
          setPickUp((Long)value);
11700
        }
11701
        break;
11702
 
11703
      }
11704
    }
11705
 
11706
    public Object getFieldValue(_Fields field) {
11707
      switch (field) {
11708
      case PICK_UP:
11709
        return Long.valueOf(getPickUp());
11710
 
11711
      }
11712
      throw new IllegalStateException();
11713
    }
11714
 
11715
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11716
    public boolean isSet(_Fields field) {
11717
      if (field == null) {
11718
        throw new IllegalArgumentException();
11719
      }
11720
 
11721
      switch (field) {
11722
      case PICK_UP:
11723
        return isSetPickUp();
11724
      }
11725
      throw new IllegalStateException();
11726
    }
11727
 
11728
    @Override
11729
    public boolean equals(Object that) {
11730
      if (that == null)
11731
        return false;
11732
      if (that instanceof getProviderForPickupType_args)
11733
        return this.equals((getProviderForPickupType_args)that);
11734
      return false;
11735
    }
11736
 
11737
    public boolean equals(getProviderForPickupType_args that) {
11738
      if (that == null)
11739
        return false;
11740
 
11741
      boolean this_present_pickUp = true;
11742
      boolean that_present_pickUp = true;
11743
      if (this_present_pickUp || that_present_pickUp) {
11744
        if (!(this_present_pickUp && that_present_pickUp))
11745
          return false;
11746
        if (this.pickUp != that.pickUp)
11747
          return false;
11748
      }
11749
 
11750
      return true;
11751
    }
11752
 
11753
    @Override
11754
    public int hashCode() {
11755
      return 0;
11756
    }
11757
 
11758
    public int compareTo(getProviderForPickupType_args other) {
11759
      if (!getClass().equals(other.getClass())) {
11760
        return getClass().getName().compareTo(other.getClass().getName());
11761
      }
11762
 
11763
      int lastComparison = 0;
11764
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11765
 
11766
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11767
      if (lastComparison != 0) {
11768
        return lastComparison;
11769
      }
11770
      if (isSetPickUp()) {
11771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11772
        if (lastComparison != 0) {
11773
          return lastComparison;
11774
        }
11775
      }
11776
      return 0;
11777
    }
11778
 
11779
    public _Fields fieldForId(int fieldId) {
11780
      return _Fields.findByThriftId(fieldId);
11781
    }
11782
 
11783
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11784
      org.apache.thrift.protocol.TField field;
11785
      iprot.readStructBegin();
11786
      while (true)
11787
      {
11788
        field = iprot.readFieldBegin();
11789
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11790
          break;
11791
        }
11792
        switch (field.id) {
11793
          case 1: // PICK_UP
11794
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11795
              this.pickUp = iprot.readI64();
11796
              setPickUpIsSet(true);
11797
            } else { 
11798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11799
            }
11800
            break;
11801
          default:
11802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11803
        }
11804
        iprot.readFieldEnd();
11805
      }
11806
      iprot.readStructEnd();
11807
      validate();
11808
    }
11809
 
11810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11811
      validate();
11812
 
11813
      oprot.writeStructBegin(STRUCT_DESC);
11814
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11815
      oprot.writeI64(this.pickUp);
11816
      oprot.writeFieldEnd();
11817
      oprot.writeFieldStop();
11818
      oprot.writeStructEnd();
11819
    }
11820
 
11821
    @Override
11822
    public String toString() {
11823
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11824
      boolean first = true;
11825
 
11826
      sb.append("pickUp:");
11827
      sb.append(this.pickUp);
11828
      first = false;
11829
      sb.append(")");
11830
      return sb.toString();
11831
    }
11832
 
11833
    public void validate() throws org.apache.thrift.TException {
11834
      // check for required fields
11835
    }
11836
 
11837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11838
      try {
11839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11840
      } catch (org.apache.thrift.TException te) {
11841
        throw new java.io.IOException(te);
11842
      }
11843
    }
11844
 
11845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11846
      try {
11847
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11848
        __isset_bit_vector = new BitSet(1);
11849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11850
      } catch (org.apache.thrift.TException te) {
11851
        throw new java.io.IOException(te);
11852
      }
11853
    }
11854
 
11855
  }
11856
 
11857
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11859
 
11860
    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);
11861
 
11862
    private long success; // required
11863
 
11864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11866
      SUCCESS((short)0, "success");
11867
 
11868
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11869
 
11870
      static {
11871
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11872
          byName.put(field.getFieldName(), field);
11873
        }
11874
      }
11875
 
11876
      /**
11877
       * Find the _Fields constant that matches fieldId, or null if its not found.
11878
       */
11879
      public static _Fields findByThriftId(int fieldId) {
11880
        switch(fieldId) {
11881
          case 0: // SUCCESS
11882
            return SUCCESS;
11883
          default:
11884
            return null;
11885
        }
11886
      }
11887
 
11888
      /**
11889
       * Find the _Fields constant that matches fieldId, throwing an exception
11890
       * if it is not found.
11891
       */
11892
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11893
        _Fields fields = findByThriftId(fieldId);
11894
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11895
        return fields;
11896
      }
11897
 
11898
      /**
11899
       * Find the _Fields constant that matches name, or null if its not found.
11900
       */
11901
      public static _Fields findByName(String name) {
11902
        return byName.get(name);
11903
      }
11904
 
11905
      private final short _thriftId;
11906
      private final String _fieldName;
11907
 
11908
      _Fields(short thriftId, String fieldName) {
11909
        _thriftId = thriftId;
11910
        _fieldName = fieldName;
11911
      }
11912
 
11913
      public short getThriftFieldId() {
11914
        return _thriftId;
11915
      }
11916
 
11917
      public String getFieldName() {
11918
        return _fieldName;
11919
      }
11920
    }
11921
 
11922
    // isset id assignments
11923
    private static final int __SUCCESS_ISSET_ID = 0;
11924
    private BitSet __isset_bit_vector = new BitSet(1);
11925
 
11926
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11927
    static {
11928
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11929
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11933
    }
11934
 
11935
    public getProviderForPickupType_result() {
11936
    }
11937
 
11938
    public getProviderForPickupType_result(
11939
      long success)
11940
    {
11941
      this();
11942
      this.success = success;
11943
      setSuccessIsSet(true);
11944
    }
11945
 
11946
    /**
11947
     * Performs a deep copy on <i>other</i>.
11948
     */
11949
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11950
      __isset_bit_vector.clear();
11951
      __isset_bit_vector.or(other.__isset_bit_vector);
11952
      this.success = other.success;
11953
    }
11954
 
11955
    public getProviderForPickupType_result deepCopy() {
11956
      return new getProviderForPickupType_result(this);
11957
    }
11958
 
11959
    @Override
11960
    public void clear() {
11961
      setSuccessIsSet(false);
11962
      this.success = 0;
11963
    }
11964
 
11965
    public long getSuccess() {
11966
      return this.success;
11967
    }
11968
 
11969
    public void setSuccess(long success) {
11970
      this.success = success;
11971
      setSuccessIsSet(true);
11972
    }
11973
 
11974
    public void unsetSuccess() {
11975
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11976
    }
11977
 
11978
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11979
    public boolean isSetSuccess() {
11980
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11981
    }
11982
 
11983
    public void setSuccessIsSet(boolean value) {
11984
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11985
    }
11986
 
11987
    public void setFieldValue(_Fields field, Object value) {
11988
      switch (field) {
11989
      case SUCCESS:
11990
        if (value == null) {
11991
          unsetSuccess();
11992
        } else {
11993
          setSuccess((Long)value);
11994
        }
11995
        break;
11996
 
11997
      }
11998
    }
11999
 
12000
    public Object getFieldValue(_Fields field) {
12001
      switch (field) {
12002
      case SUCCESS:
12003
        return Long.valueOf(getSuccess());
12004
 
12005
      }
12006
      throw new IllegalStateException();
12007
    }
12008
 
12009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12010
    public boolean isSet(_Fields field) {
12011
      if (field == null) {
12012
        throw new IllegalArgumentException();
12013
      }
12014
 
12015
      switch (field) {
12016
      case SUCCESS:
12017
        return isSetSuccess();
12018
      }
12019
      throw new IllegalStateException();
12020
    }
12021
 
12022
    @Override
12023
    public boolean equals(Object that) {
12024
      if (that == null)
12025
        return false;
12026
      if (that instanceof getProviderForPickupType_result)
12027
        return this.equals((getProviderForPickupType_result)that);
12028
      return false;
12029
    }
12030
 
12031
    public boolean equals(getProviderForPickupType_result that) {
12032
      if (that == null)
12033
        return false;
12034
 
12035
      boolean this_present_success = true;
12036
      boolean that_present_success = true;
12037
      if (this_present_success || that_present_success) {
12038
        if (!(this_present_success && that_present_success))
12039
          return false;
12040
        if (this.success != that.success)
12041
          return false;
12042
      }
12043
 
12044
      return true;
12045
    }
12046
 
12047
    @Override
12048
    public int hashCode() {
12049
      return 0;
12050
    }
12051
 
12052
    public int compareTo(getProviderForPickupType_result other) {
12053
      if (!getClass().equals(other.getClass())) {
12054
        return getClass().getName().compareTo(other.getClass().getName());
12055
      }
12056
 
12057
      int lastComparison = 0;
12058
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12059
 
12060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12061
      if (lastComparison != 0) {
12062
        return lastComparison;
12063
      }
12064
      if (isSetSuccess()) {
12065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12066
        if (lastComparison != 0) {
12067
          return lastComparison;
12068
        }
12069
      }
12070
      return 0;
12071
    }
12072
 
12073
    public _Fields fieldForId(int fieldId) {
12074
      return _Fields.findByThriftId(fieldId);
12075
    }
12076
 
12077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12078
      org.apache.thrift.protocol.TField field;
12079
      iprot.readStructBegin();
12080
      while (true)
12081
      {
12082
        field = iprot.readFieldBegin();
12083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12084
          break;
12085
        }
12086
        switch (field.id) {
12087
          case 0: // SUCCESS
12088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12089
              this.success = iprot.readI64();
12090
              setSuccessIsSet(true);
12091
            } else { 
12092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12093
            }
12094
            break;
12095
          default:
12096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12097
        }
12098
        iprot.readFieldEnd();
12099
      }
12100
      iprot.readStructEnd();
12101
      validate();
12102
    }
12103
 
12104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12105
      oprot.writeStructBegin(STRUCT_DESC);
12106
 
12107
      if (this.isSetSuccess()) {
12108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12109
        oprot.writeI64(this.success);
12110
        oprot.writeFieldEnd();
12111
      }
12112
      oprot.writeFieldStop();
12113
      oprot.writeStructEnd();
12114
    }
12115
 
12116
    @Override
12117
    public String toString() {
12118
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12119
      boolean first = true;
12120
 
12121
      sb.append("success:");
12122
      sb.append(this.success);
12123
      first = false;
12124
      sb.append(")");
12125
      return sb.toString();
12126
    }
12127
 
12128
    public void validate() throws org.apache.thrift.TException {
12129
      // check for required fields
12130
    }
12131
 
12132
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12133
      try {
12134
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12135
      } catch (org.apache.thrift.TException te) {
12136
        throw new java.io.IOException(te);
12137
      }
12138
    }
12139
 
12140
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12141
      try {
12142
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12143
      } catch (org.apache.thrift.TException te) {
12144
        throw new java.io.IOException(te);
12145
      }
12146
    }
12147
 
12148
  }
12149
 
5553 rajveer 12150
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12151
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12152
 
12153
 
12154
 
12155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12157
;
12158
 
12159
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12160
 
12161
      static {
12162
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12163
          byName.put(field.getFieldName(), field);
12164
        }
12165
      }
12166
 
12167
      /**
12168
       * Find the _Fields constant that matches fieldId, or null if its not found.
12169
       */
12170
      public static _Fields findByThriftId(int fieldId) {
12171
        switch(fieldId) {
12172
          default:
12173
            return null;
12174
        }
12175
      }
12176
 
12177
      /**
12178
       * Find the _Fields constant that matches fieldId, throwing an exception
12179
       * if it is not found.
12180
       */
12181
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12182
        _Fields fields = findByThriftId(fieldId);
12183
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12184
        return fields;
12185
      }
12186
 
12187
      /**
12188
       * Find the _Fields constant that matches name, or null if its not found.
12189
       */
12190
      public static _Fields findByName(String name) {
12191
        return byName.get(name);
12192
      }
12193
 
12194
      private final short _thriftId;
12195
      private final String _fieldName;
12196
 
12197
      _Fields(short thriftId, String fieldName) {
12198
        _thriftId = thriftId;
12199
        _fieldName = fieldName;
12200
      }
12201
 
12202
      public short getThriftFieldId() {
12203
        return _thriftId;
12204
      }
12205
 
12206
      public String getFieldName() {
12207
        return _fieldName;
12208
      }
12209
    }
12210
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12211
    static {
12212
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12215
    }
12216
 
12217
    public getAllPickupStores_args() {
12218
    }
12219
 
12220
    /**
12221
     * Performs a deep copy on <i>other</i>.
12222
     */
12223
    public getAllPickupStores_args(getAllPickupStores_args other) {
12224
    }
12225
 
12226
    public getAllPickupStores_args deepCopy() {
12227
      return new getAllPickupStores_args(this);
12228
    }
12229
 
12230
    @Override
12231
    public void clear() {
12232
    }
12233
 
12234
    public void setFieldValue(_Fields field, Object value) {
12235
      switch (field) {
12236
      }
12237
    }
12238
 
12239
    public Object getFieldValue(_Fields field) {
12240
      switch (field) {
12241
      }
12242
      throw new IllegalStateException();
12243
    }
12244
 
12245
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12246
    public boolean isSet(_Fields field) {
12247
      if (field == null) {
12248
        throw new IllegalArgumentException();
12249
      }
12250
 
12251
      switch (field) {
12252
      }
12253
      throw new IllegalStateException();
12254
    }
12255
 
12256
    @Override
12257
    public boolean equals(Object that) {
12258
      if (that == null)
12259
        return false;
12260
      if (that instanceof getAllPickupStores_args)
12261
        return this.equals((getAllPickupStores_args)that);
12262
      return false;
12263
    }
12264
 
12265
    public boolean equals(getAllPickupStores_args that) {
12266
      if (that == null)
12267
        return false;
12268
 
12269
      return true;
12270
    }
12271
 
12272
    @Override
12273
    public int hashCode() {
12274
      return 0;
12275
    }
12276
 
12277
    public int compareTo(getAllPickupStores_args other) {
12278
      if (!getClass().equals(other.getClass())) {
12279
        return getClass().getName().compareTo(other.getClass().getName());
12280
      }
12281
 
12282
      int lastComparison = 0;
12283
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12284
 
12285
      return 0;
12286
    }
12287
 
12288
    public _Fields fieldForId(int fieldId) {
12289
      return _Fields.findByThriftId(fieldId);
12290
    }
12291
 
12292
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12293
      org.apache.thrift.protocol.TField field;
12294
      iprot.readStructBegin();
12295
      while (true)
12296
      {
12297
        field = iprot.readFieldBegin();
12298
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12299
          break;
12300
        }
12301
        switch (field.id) {
12302
          default:
12303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12304
        }
12305
        iprot.readFieldEnd();
12306
      }
12307
      iprot.readStructEnd();
12308
      validate();
12309
    }
12310
 
12311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12312
      validate();
12313
 
12314
      oprot.writeStructBegin(STRUCT_DESC);
12315
      oprot.writeFieldStop();
12316
      oprot.writeStructEnd();
12317
    }
12318
 
12319
    @Override
12320
    public String toString() {
12321
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12322
      boolean first = true;
12323
 
12324
      sb.append(")");
12325
      return sb.toString();
12326
    }
12327
 
12328
    public void validate() throws org.apache.thrift.TException {
12329
      // check for required fields
12330
    }
12331
 
12332
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12333
      try {
12334
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12335
      } catch (org.apache.thrift.TException te) {
12336
        throw new java.io.IOException(te);
12337
      }
12338
    }
12339
 
12340
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12341
      try {
12342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12343
      } catch (org.apache.thrift.TException te) {
12344
        throw new java.io.IOException(te);
12345
      }
12346
    }
12347
 
12348
  }
12349
 
12350
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12352
 
12353
    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);
12354
 
12355
    private List<PickupStore> success; // required
12356
 
12357
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12358
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12359
      SUCCESS((short)0, "success");
12360
 
12361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12362
 
12363
      static {
12364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12365
          byName.put(field.getFieldName(), field);
12366
        }
12367
      }
12368
 
12369
      /**
12370
       * Find the _Fields constant that matches fieldId, or null if its not found.
12371
       */
12372
      public static _Fields findByThriftId(int fieldId) {
12373
        switch(fieldId) {
12374
          case 0: // SUCCESS
12375
            return SUCCESS;
12376
          default:
12377
            return null;
12378
        }
12379
      }
12380
 
12381
      /**
12382
       * Find the _Fields constant that matches fieldId, throwing an exception
12383
       * if it is not found.
12384
       */
12385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12386
        _Fields fields = findByThriftId(fieldId);
12387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12388
        return fields;
12389
      }
12390
 
12391
      /**
12392
       * Find the _Fields constant that matches name, or null if its not found.
12393
       */
12394
      public static _Fields findByName(String name) {
12395
        return byName.get(name);
12396
      }
12397
 
12398
      private final short _thriftId;
12399
      private final String _fieldName;
12400
 
12401
      _Fields(short thriftId, String fieldName) {
12402
        _thriftId = thriftId;
12403
        _fieldName = fieldName;
12404
      }
12405
 
12406
      public short getThriftFieldId() {
12407
        return _thriftId;
12408
      }
12409
 
12410
      public String getFieldName() {
12411
        return _fieldName;
12412
      }
12413
    }
12414
 
12415
    // isset id assignments
12416
 
12417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12418
    static {
12419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12420
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12421
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12422
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12425
    }
12426
 
12427
    public getAllPickupStores_result() {
12428
    }
12429
 
12430
    public getAllPickupStores_result(
12431
      List<PickupStore> success)
12432
    {
12433
      this();
12434
      this.success = success;
12435
    }
12436
 
12437
    /**
12438
     * Performs a deep copy on <i>other</i>.
12439
     */
12440
    public getAllPickupStores_result(getAllPickupStores_result other) {
12441
      if (other.isSetSuccess()) {
12442
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12443
        for (PickupStore other_element : other.success) {
12444
          __this__success.add(new PickupStore(other_element));
12445
        }
12446
        this.success = __this__success;
12447
      }
12448
    }
12449
 
12450
    public getAllPickupStores_result deepCopy() {
12451
      return new getAllPickupStores_result(this);
12452
    }
12453
 
12454
    @Override
12455
    public void clear() {
12456
      this.success = null;
12457
    }
12458
 
12459
    public int getSuccessSize() {
12460
      return (this.success == null) ? 0 : this.success.size();
12461
    }
12462
 
12463
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12464
      return (this.success == null) ? null : this.success.iterator();
12465
    }
12466
 
12467
    public void addToSuccess(PickupStore elem) {
12468
      if (this.success == null) {
12469
        this.success = new ArrayList<PickupStore>();
12470
      }
12471
      this.success.add(elem);
12472
    }
12473
 
12474
    public List<PickupStore> getSuccess() {
12475
      return this.success;
12476
    }
12477
 
12478
    public void setSuccess(List<PickupStore> success) {
12479
      this.success = success;
12480
    }
12481
 
12482
    public void unsetSuccess() {
12483
      this.success = null;
12484
    }
12485
 
12486
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12487
    public boolean isSetSuccess() {
12488
      return this.success != null;
12489
    }
12490
 
12491
    public void setSuccessIsSet(boolean value) {
12492
      if (!value) {
12493
        this.success = null;
12494
      }
12495
    }
12496
 
12497
    public void setFieldValue(_Fields field, Object value) {
12498
      switch (field) {
12499
      case SUCCESS:
12500
        if (value == null) {
12501
          unsetSuccess();
12502
        } else {
12503
          setSuccess((List<PickupStore>)value);
12504
        }
12505
        break;
12506
 
12507
      }
12508
    }
12509
 
12510
    public Object getFieldValue(_Fields field) {
12511
      switch (field) {
12512
      case SUCCESS:
12513
        return getSuccess();
12514
 
12515
      }
12516
      throw new IllegalStateException();
12517
    }
12518
 
12519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12520
    public boolean isSet(_Fields field) {
12521
      if (field == null) {
12522
        throw new IllegalArgumentException();
12523
      }
12524
 
12525
      switch (field) {
12526
      case SUCCESS:
12527
        return isSetSuccess();
12528
      }
12529
      throw new IllegalStateException();
12530
    }
12531
 
12532
    @Override
12533
    public boolean equals(Object that) {
12534
      if (that == null)
12535
        return false;
12536
      if (that instanceof getAllPickupStores_result)
12537
        return this.equals((getAllPickupStores_result)that);
12538
      return false;
12539
    }
12540
 
12541
    public boolean equals(getAllPickupStores_result that) {
12542
      if (that == null)
12543
        return false;
12544
 
12545
      boolean this_present_success = true && this.isSetSuccess();
12546
      boolean that_present_success = true && that.isSetSuccess();
12547
      if (this_present_success || that_present_success) {
12548
        if (!(this_present_success && that_present_success))
12549
          return false;
12550
        if (!this.success.equals(that.success))
12551
          return false;
12552
      }
12553
 
12554
      return true;
12555
    }
12556
 
12557
    @Override
12558
    public int hashCode() {
12559
      return 0;
12560
    }
12561
 
12562
    public int compareTo(getAllPickupStores_result other) {
12563
      if (!getClass().equals(other.getClass())) {
12564
        return getClass().getName().compareTo(other.getClass().getName());
12565
      }
12566
 
12567
      int lastComparison = 0;
12568
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12569
 
12570
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12571
      if (lastComparison != 0) {
12572
        return lastComparison;
12573
      }
12574
      if (isSetSuccess()) {
12575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12576
        if (lastComparison != 0) {
12577
          return lastComparison;
12578
        }
12579
      }
12580
      return 0;
12581
    }
12582
 
12583
    public _Fields fieldForId(int fieldId) {
12584
      return _Fields.findByThriftId(fieldId);
12585
    }
12586
 
12587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12588
      org.apache.thrift.protocol.TField field;
12589
      iprot.readStructBegin();
12590
      while (true)
12591
      {
12592
        field = iprot.readFieldBegin();
12593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12594
          break;
12595
        }
12596
        switch (field.id) {
12597
          case 0: // SUCCESS
12598
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12599
              {
7792 anupam.sin 12600
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12601
                this.success = new ArrayList<PickupStore>(_list20.size);
12602
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12603
                {
7792 anupam.sin 12604
                  PickupStore _elem22; // required
12605
                  _elem22 = new PickupStore();
12606
                  _elem22.read(iprot);
12607
                  this.success.add(_elem22);
5553 rajveer 12608
                }
12609
                iprot.readListEnd();
12610
              }
12611
            } else { 
12612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12613
            }
12614
            break;
12615
          default:
12616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12617
        }
12618
        iprot.readFieldEnd();
12619
      }
12620
      iprot.readStructEnd();
12621
      validate();
12622
    }
12623
 
12624
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12625
      oprot.writeStructBegin(STRUCT_DESC);
12626
 
12627
      if (this.isSetSuccess()) {
12628
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12629
        {
12630
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12631
          for (PickupStore _iter23 : this.success)
5553 rajveer 12632
          {
7792 anupam.sin 12633
            _iter23.write(oprot);
5553 rajveer 12634
          }
12635
          oprot.writeListEnd();
12636
        }
12637
        oprot.writeFieldEnd();
12638
      }
12639
      oprot.writeFieldStop();
12640
      oprot.writeStructEnd();
12641
    }
12642
 
12643
    @Override
12644
    public String toString() {
12645
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12646
      boolean first = true;
12647
 
12648
      sb.append("success:");
12649
      if (this.success == null) {
12650
        sb.append("null");
12651
      } else {
12652
        sb.append(this.success);
12653
      }
12654
      first = false;
12655
      sb.append(")");
12656
      return sb.toString();
12657
    }
12658
 
12659
    public void validate() throws org.apache.thrift.TException {
12660
      // check for required fields
12661
    }
12662
 
12663
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12664
      try {
12665
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12666
      } catch (org.apache.thrift.TException te) {
12667
        throw new java.io.IOException(te);
12668
      }
12669
    }
12670
 
12671
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12672
      try {
12673
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12674
      } catch (org.apache.thrift.TException te) {
12675
        throw new java.io.IOException(te);
12676
      }
12677
    }
12678
 
12679
  }
12680
 
12681
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12682
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12683
 
12684
    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);
12685
 
12686
    private long storeId; // required
12687
 
12688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12689
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12690
      STORE_ID((short)1, "storeId");
12691
 
12692
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12693
 
12694
      static {
12695
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12696
          byName.put(field.getFieldName(), field);
12697
        }
12698
      }
12699
 
12700
      /**
12701
       * Find the _Fields constant that matches fieldId, or null if its not found.
12702
       */
12703
      public static _Fields findByThriftId(int fieldId) {
12704
        switch(fieldId) {
12705
          case 1: // STORE_ID
12706
            return STORE_ID;
12707
          default:
12708
            return null;
12709
        }
12710
      }
12711
 
12712
      /**
12713
       * Find the _Fields constant that matches fieldId, throwing an exception
12714
       * if it is not found.
12715
       */
12716
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12717
        _Fields fields = findByThriftId(fieldId);
12718
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12719
        return fields;
12720
      }
12721
 
12722
      /**
12723
       * Find the _Fields constant that matches name, or null if its not found.
12724
       */
12725
      public static _Fields findByName(String name) {
12726
        return byName.get(name);
12727
      }
12728
 
12729
      private final short _thriftId;
12730
      private final String _fieldName;
12731
 
12732
      _Fields(short thriftId, String fieldName) {
12733
        _thriftId = thriftId;
12734
        _fieldName = fieldName;
12735
      }
12736
 
12737
      public short getThriftFieldId() {
12738
        return _thriftId;
12739
      }
12740
 
12741
      public String getFieldName() {
12742
        return _fieldName;
12743
      }
12744
    }
12745
 
12746
    // isset id assignments
12747
    private static final int __STOREID_ISSET_ID = 0;
12748
    private BitSet __isset_bit_vector = new BitSet(1);
12749
 
12750
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12751
    static {
12752
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12753
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12755
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12756
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12757
    }
12758
 
12759
    public getPickupStore_args() {
12760
    }
12761
 
12762
    public getPickupStore_args(
12763
      long storeId)
12764
    {
12765
      this();
12766
      this.storeId = storeId;
12767
      setStoreIdIsSet(true);
12768
    }
12769
 
12770
    /**
12771
     * Performs a deep copy on <i>other</i>.
12772
     */
12773
    public getPickupStore_args(getPickupStore_args other) {
12774
      __isset_bit_vector.clear();
12775
      __isset_bit_vector.or(other.__isset_bit_vector);
12776
      this.storeId = other.storeId;
12777
    }
12778
 
12779
    public getPickupStore_args deepCopy() {
12780
      return new getPickupStore_args(this);
12781
    }
12782
 
12783
    @Override
12784
    public void clear() {
12785
      setStoreIdIsSet(false);
12786
      this.storeId = 0;
12787
    }
12788
 
12789
    public long getStoreId() {
12790
      return this.storeId;
12791
    }
12792
 
12793
    public void setStoreId(long storeId) {
12794
      this.storeId = storeId;
12795
      setStoreIdIsSet(true);
12796
    }
12797
 
12798
    public void unsetStoreId() {
12799
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12800
    }
12801
 
12802
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12803
    public boolean isSetStoreId() {
12804
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12805
    }
12806
 
12807
    public void setStoreIdIsSet(boolean value) {
12808
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12809
    }
12810
 
12811
    public void setFieldValue(_Fields field, Object value) {
12812
      switch (field) {
12813
      case STORE_ID:
12814
        if (value == null) {
12815
          unsetStoreId();
12816
        } else {
12817
          setStoreId((Long)value);
12818
        }
12819
        break;
12820
 
12821
      }
12822
    }
12823
 
12824
    public Object getFieldValue(_Fields field) {
12825
      switch (field) {
12826
      case STORE_ID:
12827
        return Long.valueOf(getStoreId());
12828
 
12829
      }
12830
      throw new IllegalStateException();
12831
    }
12832
 
12833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12834
    public boolean isSet(_Fields field) {
12835
      if (field == null) {
12836
        throw new IllegalArgumentException();
12837
      }
12838
 
12839
      switch (field) {
12840
      case STORE_ID:
12841
        return isSetStoreId();
12842
      }
12843
      throw new IllegalStateException();
12844
    }
12845
 
12846
    @Override
12847
    public boolean equals(Object that) {
12848
      if (that == null)
12849
        return false;
12850
      if (that instanceof getPickupStore_args)
12851
        return this.equals((getPickupStore_args)that);
12852
      return false;
12853
    }
12854
 
12855
    public boolean equals(getPickupStore_args that) {
12856
      if (that == null)
12857
        return false;
12858
 
12859
      boolean this_present_storeId = true;
12860
      boolean that_present_storeId = true;
12861
      if (this_present_storeId || that_present_storeId) {
12862
        if (!(this_present_storeId && that_present_storeId))
12863
          return false;
12864
        if (this.storeId != that.storeId)
12865
          return false;
12866
      }
12867
 
12868
      return true;
12869
    }
12870
 
12871
    @Override
12872
    public int hashCode() {
12873
      return 0;
12874
    }
12875
 
12876
    public int compareTo(getPickupStore_args other) {
12877
      if (!getClass().equals(other.getClass())) {
12878
        return getClass().getName().compareTo(other.getClass().getName());
12879
      }
12880
 
12881
      int lastComparison = 0;
12882
      getPickupStore_args typedOther = (getPickupStore_args)other;
12883
 
12884
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12885
      if (lastComparison != 0) {
12886
        return lastComparison;
12887
      }
12888
      if (isSetStoreId()) {
12889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12890
        if (lastComparison != 0) {
12891
          return lastComparison;
12892
        }
12893
      }
12894
      return 0;
12895
    }
12896
 
12897
    public _Fields fieldForId(int fieldId) {
12898
      return _Fields.findByThriftId(fieldId);
12899
    }
12900
 
12901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12902
      org.apache.thrift.protocol.TField field;
12903
      iprot.readStructBegin();
12904
      while (true)
12905
      {
12906
        field = iprot.readFieldBegin();
12907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12908
          break;
12909
        }
12910
        switch (field.id) {
12911
          case 1: // STORE_ID
12912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12913
              this.storeId = iprot.readI64();
12914
              setStoreIdIsSet(true);
12915
            } else { 
12916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12917
            }
12918
            break;
12919
          default:
12920
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12921
        }
12922
        iprot.readFieldEnd();
12923
      }
12924
      iprot.readStructEnd();
12925
      validate();
12926
    }
12927
 
12928
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12929
      validate();
12930
 
12931
      oprot.writeStructBegin(STRUCT_DESC);
12932
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12933
      oprot.writeI64(this.storeId);
12934
      oprot.writeFieldEnd();
12935
      oprot.writeFieldStop();
12936
      oprot.writeStructEnd();
12937
    }
12938
 
12939
    @Override
12940
    public String toString() {
12941
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12942
      boolean first = true;
12943
 
12944
      sb.append("storeId:");
12945
      sb.append(this.storeId);
12946
      first = false;
12947
      sb.append(")");
12948
      return sb.toString();
12949
    }
12950
 
12951
    public void validate() throws org.apache.thrift.TException {
12952
      // check for required fields
12953
    }
12954
 
12955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12956
      try {
12957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12958
      } catch (org.apache.thrift.TException te) {
12959
        throw new java.io.IOException(te);
12960
      }
12961
    }
12962
 
12963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12964
      try {
12965
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12966
        __isset_bit_vector = new BitSet(1);
12967
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12968
      } catch (org.apache.thrift.TException te) {
12969
        throw new java.io.IOException(te);
12970
      }
12971
    }
12972
 
12973
  }
12974
 
12975
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12976
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12977
 
12978
    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);
12979
 
12980
    private PickupStore success; // required
12981
 
12982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12984
      SUCCESS((short)0, "success");
12985
 
12986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12987
 
12988
      static {
12989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12990
          byName.put(field.getFieldName(), field);
12991
        }
12992
      }
12993
 
12994
      /**
12995
       * Find the _Fields constant that matches fieldId, or null if its not found.
12996
       */
12997
      public static _Fields findByThriftId(int fieldId) {
12998
        switch(fieldId) {
12999
          case 0: // SUCCESS
13000
            return SUCCESS;
13001
          default:
13002
            return null;
13003
        }
13004
      }
13005
 
13006
      /**
13007
       * Find the _Fields constant that matches fieldId, throwing an exception
13008
       * if it is not found.
13009
       */
13010
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13011
        _Fields fields = findByThriftId(fieldId);
13012
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13013
        return fields;
13014
      }
13015
 
13016
      /**
13017
       * Find the _Fields constant that matches name, or null if its not found.
13018
       */
13019
      public static _Fields findByName(String name) {
13020
        return byName.get(name);
13021
      }
13022
 
13023
      private final short _thriftId;
13024
      private final String _fieldName;
13025
 
13026
      _Fields(short thriftId, String fieldName) {
13027
        _thriftId = thriftId;
13028
        _fieldName = fieldName;
13029
      }
13030
 
13031
      public short getThriftFieldId() {
13032
        return _thriftId;
13033
      }
13034
 
13035
      public String getFieldName() {
13036
        return _fieldName;
13037
      }
13038
    }
13039
 
13040
    // isset id assignments
13041
 
13042
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13043
    static {
13044
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13045
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13046
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13047
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13048
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13049
    }
13050
 
13051
    public getPickupStore_result() {
13052
    }
13053
 
13054
    public getPickupStore_result(
13055
      PickupStore success)
13056
    {
13057
      this();
13058
      this.success = success;
13059
    }
13060
 
13061
    /**
13062
     * Performs a deep copy on <i>other</i>.
13063
     */
13064
    public getPickupStore_result(getPickupStore_result other) {
13065
      if (other.isSetSuccess()) {
13066
        this.success = new PickupStore(other.success);
13067
      }
13068
    }
13069
 
13070
    public getPickupStore_result deepCopy() {
13071
      return new getPickupStore_result(this);
13072
    }
13073
 
13074
    @Override
13075
    public void clear() {
13076
      this.success = null;
13077
    }
13078
 
13079
    public PickupStore getSuccess() {
13080
      return this.success;
13081
    }
13082
 
13083
    public void setSuccess(PickupStore success) {
13084
      this.success = success;
13085
    }
13086
 
13087
    public void unsetSuccess() {
13088
      this.success = null;
13089
    }
13090
 
13091
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13092
    public boolean isSetSuccess() {
13093
      return this.success != null;
13094
    }
13095
 
13096
    public void setSuccessIsSet(boolean value) {
13097
      if (!value) {
13098
        this.success = null;
13099
      }
13100
    }
13101
 
13102
    public void setFieldValue(_Fields field, Object value) {
13103
      switch (field) {
13104
      case SUCCESS:
13105
        if (value == null) {
13106
          unsetSuccess();
13107
        } else {
13108
          setSuccess((PickupStore)value);
13109
        }
13110
        break;
13111
 
13112
      }
13113
    }
13114
 
13115
    public Object getFieldValue(_Fields field) {
13116
      switch (field) {
13117
      case SUCCESS:
13118
        return getSuccess();
13119
 
13120
      }
13121
      throw new IllegalStateException();
13122
    }
13123
 
13124
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13125
    public boolean isSet(_Fields field) {
13126
      if (field == null) {
13127
        throw new IllegalArgumentException();
13128
      }
13129
 
13130
      switch (field) {
13131
      case SUCCESS:
13132
        return isSetSuccess();
13133
      }
13134
      throw new IllegalStateException();
13135
    }
13136
 
13137
    @Override
13138
    public boolean equals(Object that) {
13139
      if (that == null)
13140
        return false;
13141
      if (that instanceof getPickupStore_result)
13142
        return this.equals((getPickupStore_result)that);
13143
      return false;
13144
    }
13145
 
13146
    public boolean equals(getPickupStore_result that) {
13147
      if (that == null)
13148
        return false;
13149
 
13150
      boolean this_present_success = true && this.isSetSuccess();
13151
      boolean that_present_success = true && that.isSetSuccess();
13152
      if (this_present_success || that_present_success) {
13153
        if (!(this_present_success && that_present_success))
13154
          return false;
13155
        if (!this.success.equals(that.success))
13156
          return false;
13157
      }
13158
 
13159
      return true;
13160
    }
13161
 
13162
    @Override
13163
    public int hashCode() {
13164
      return 0;
13165
    }
13166
 
13167
    public int compareTo(getPickupStore_result other) {
13168
      if (!getClass().equals(other.getClass())) {
13169
        return getClass().getName().compareTo(other.getClass().getName());
13170
      }
13171
 
13172
      int lastComparison = 0;
13173
      getPickupStore_result typedOther = (getPickupStore_result)other;
13174
 
13175
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13176
      if (lastComparison != 0) {
13177
        return lastComparison;
13178
      }
13179
      if (isSetSuccess()) {
13180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13181
        if (lastComparison != 0) {
13182
          return lastComparison;
13183
        }
13184
      }
13185
      return 0;
13186
    }
13187
 
13188
    public _Fields fieldForId(int fieldId) {
13189
      return _Fields.findByThriftId(fieldId);
13190
    }
13191
 
13192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13193
      org.apache.thrift.protocol.TField field;
13194
      iprot.readStructBegin();
13195
      while (true)
13196
      {
13197
        field = iprot.readFieldBegin();
13198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13199
          break;
13200
        }
13201
        switch (field.id) {
13202
          case 0: // SUCCESS
13203
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13204
              this.success = new PickupStore();
13205
              this.success.read(iprot);
13206
            } else { 
13207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13208
            }
13209
            break;
13210
          default:
13211
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13212
        }
13213
        iprot.readFieldEnd();
13214
      }
13215
      iprot.readStructEnd();
13216
      validate();
13217
    }
13218
 
13219
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13220
      oprot.writeStructBegin(STRUCT_DESC);
13221
 
13222
      if (this.isSetSuccess()) {
13223
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13224
        this.success.write(oprot);
13225
        oprot.writeFieldEnd();
13226
      }
13227
      oprot.writeFieldStop();
13228
      oprot.writeStructEnd();
13229
    }
13230
 
13231
    @Override
13232
    public String toString() {
13233
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13234
      boolean first = true;
13235
 
13236
      sb.append("success:");
13237
      if (this.success == null) {
13238
        sb.append("null");
13239
      } else {
13240
        sb.append(this.success);
13241
      }
13242
      first = false;
13243
      sb.append(")");
13244
      return sb.toString();
13245
    }
13246
 
13247
    public void validate() throws org.apache.thrift.TException {
13248
      // check for required fields
13249
    }
13250
 
13251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13252
      try {
13253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13254
      } catch (org.apache.thrift.TException te) {
13255
        throw new java.io.IOException(te);
13256
      }
13257
    }
13258
 
13259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13260
      try {
13261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13262
      } catch (org.apache.thrift.TException te) {
13263
        throw new java.io.IOException(te);
13264
      }
13265
    }
13266
 
13267
  }
13268
 
5719 rajveer 13269
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13271
 
13272
    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);
13273
 
13274
    private String hotspotId; // required
13275
 
13276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13277
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13278
      HOTSPOT_ID((short)1, "hotspotId");
13279
 
13280
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13281
 
13282
      static {
13283
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13284
          byName.put(field.getFieldName(), field);
13285
        }
13286
      }
13287
 
13288
      /**
13289
       * Find the _Fields constant that matches fieldId, or null if its not found.
13290
       */
13291
      public static _Fields findByThriftId(int fieldId) {
13292
        switch(fieldId) {
13293
          case 1: // HOTSPOT_ID
13294
            return HOTSPOT_ID;
13295
          default:
13296
            return null;
13297
        }
13298
      }
13299
 
13300
      /**
13301
       * Find the _Fields constant that matches fieldId, throwing an exception
13302
       * if it is not found.
13303
       */
13304
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13305
        _Fields fields = findByThriftId(fieldId);
13306
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13307
        return fields;
13308
      }
13309
 
13310
      /**
13311
       * Find the _Fields constant that matches name, or null if its not found.
13312
       */
13313
      public static _Fields findByName(String name) {
13314
        return byName.get(name);
13315
      }
13316
 
13317
      private final short _thriftId;
13318
      private final String _fieldName;
13319
 
13320
      _Fields(short thriftId, String fieldName) {
13321
        _thriftId = thriftId;
13322
        _fieldName = fieldName;
13323
      }
13324
 
13325
      public short getThriftFieldId() {
13326
        return _thriftId;
13327
      }
13328
 
13329
      public String getFieldName() {
13330
        return _fieldName;
13331
      }
13332
    }
13333
 
13334
    // isset id assignments
13335
 
13336
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13337
    static {
13338
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13339
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13340
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13341
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13342
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13343
    }
13344
 
13345
    public getPickupStoreByHotspotId_args() {
13346
    }
13347
 
13348
    public getPickupStoreByHotspotId_args(
13349
      String hotspotId)
13350
    {
13351
      this();
13352
      this.hotspotId = hotspotId;
13353
    }
13354
 
13355
    /**
13356
     * Performs a deep copy on <i>other</i>.
13357
     */
13358
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13359
      if (other.isSetHotspotId()) {
13360
        this.hotspotId = other.hotspotId;
13361
      }
13362
    }
13363
 
13364
    public getPickupStoreByHotspotId_args deepCopy() {
13365
      return new getPickupStoreByHotspotId_args(this);
13366
    }
13367
 
13368
    @Override
13369
    public void clear() {
13370
      this.hotspotId = null;
13371
    }
13372
 
13373
    public String getHotspotId() {
13374
      return this.hotspotId;
13375
    }
13376
 
13377
    public void setHotspotId(String hotspotId) {
13378
      this.hotspotId = hotspotId;
13379
    }
13380
 
13381
    public void unsetHotspotId() {
13382
      this.hotspotId = null;
13383
    }
13384
 
13385
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13386
    public boolean isSetHotspotId() {
13387
      return this.hotspotId != null;
13388
    }
13389
 
13390
    public void setHotspotIdIsSet(boolean value) {
13391
      if (!value) {
13392
        this.hotspotId = null;
13393
      }
13394
    }
13395
 
13396
    public void setFieldValue(_Fields field, Object value) {
13397
      switch (field) {
13398
      case HOTSPOT_ID:
13399
        if (value == null) {
13400
          unsetHotspotId();
13401
        } else {
13402
          setHotspotId((String)value);
13403
        }
13404
        break;
13405
 
13406
      }
13407
    }
13408
 
13409
    public Object getFieldValue(_Fields field) {
13410
      switch (field) {
13411
      case HOTSPOT_ID:
13412
        return getHotspotId();
13413
 
13414
      }
13415
      throw new IllegalStateException();
13416
    }
13417
 
13418
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13419
    public boolean isSet(_Fields field) {
13420
      if (field == null) {
13421
        throw new IllegalArgumentException();
13422
      }
13423
 
13424
      switch (field) {
13425
      case HOTSPOT_ID:
13426
        return isSetHotspotId();
13427
      }
13428
      throw new IllegalStateException();
13429
    }
13430
 
13431
    @Override
13432
    public boolean equals(Object that) {
13433
      if (that == null)
13434
        return false;
13435
      if (that instanceof getPickupStoreByHotspotId_args)
13436
        return this.equals((getPickupStoreByHotspotId_args)that);
13437
      return false;
13438
    }
13439
 
13440
    public boolean equals(getPickupStoreByHotspotId_args that) {
13441
      if (that == null)
13442
        return false;
13443
 
13444
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13445
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13446
      if (this_present_hotspotId || that_present_hotspotId) {
13447
        if (!(this_present_hotspotId && that_present_hotspotId))
13448
          return false;
13449
        if (!this.hotspotId.equals(that.hotspotId))
13450
          return false;
13451
      }
13452
 
13453
      return true;
13454
    }
13455
 
13456
    @Override
13457
    public int hashCode() {
13458
      return 0;
13459
    }
13460
 
13461
    public int compareTo(getPickupStoreByHotspotId_args other) {
13462
      if (!getClass().equals(other.getClass())) {
13463
        return getClass().getName().compareTo(other.getClass().getName());
13464
      }
13465
 
13466
      int lastComparison = 0;
13467
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13468
 
13469
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13470
      if (lastComparison != 0) {
13471
        return lastComparison;
13472
      }
13473
      if (isSetHotspotId()) {
13474
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13475
        if (lastComparison != 0) {
13476
          return lastComparison;
13477
        }
13478
      }
13479
      return 0;
13480
    }
13481
 
13482
    public _Fields fieldForId(int fieldId) {
13483
      return _Fields.findByThriftId(fieldId);
13484
    }
13485
 
13486
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13487
      org.apache.thrift.protocol.TField field;
13488
      iprot.readStructBegin();
13489
      while (true)
13490
      {
13491
        field = iprot.readFieldBegin();
13492
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13493
          break;
13494
        }
13495
        switch (field.id) {
13496
          case 1: // HOTSPOT_ID
13497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13498
              this.hotspotId = iprot.readString();
13499
            } else { 
13500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13501
            }
13502
            break;
13503
          default:
13504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13505
        }
13506
        iprot.readFieldEnd();
13507
      }
13508
      iprot.readStructEnd();
13509
      validate();
13510
    }
13511
 
13512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13513
      validate();
13514
 
13515
      oprot.writeStructBegin(STRUCT_DESC);
13516
      if (this.hotspotId != null) {
13517
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13518
        oprot.writeString(this.hotspotId);
13519
        oprot.writeFieldEnd();
13520
      }
13521
      oprot.writeFieldStop();
13522
      oprot.writeStructEnd();
13523
    }
13524
 
13525
    @Override
13526
    public String toString() {
13527
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13528
      boolean first = true;
13529
 
13530
      sb.append("hotspotId:");
13531
      if (this.hotspotId == null) {
13532
        sb.append("null");
13533
      } else {
13534
        sb.append(this.hotspotId);
13535
      }
13536
      first = false;
13537
      sb.append(")");
13538
      return sb.toString();
13539
    }
13540
 
13541
    public void validate() throws org.apache.thrift.TException {
13542
      // check for required fields
13543
    }
13544
 
13545
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13546
      try {
13547
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13548
      } catch (org.apache.thrift.TException te) {
13549
        throw new java.io.IOException(te);
13550
      }
13551
    }
13552
 
13553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13554
      try {
13555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13556
      } catch (org.apache.thrift.TException te) {
13557
        throw new java.io.IOException(te);
13558
      }
13559
    }
13560
 
13561
  }
13562
 
13563
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13565
 
13566
    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);
13567
 
13568
    private PickupStore success; // required
13569
 
13570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13572
      SUCCESS((short)0, "success");
13573
 
13574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13575
 
13576
      static {
13577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13578
          byName.put(field.getFieldName(), field);
13579
        }
13580
      }
13581
 
13582
      /**
13583
       * Find the _Fields constant that matches fieldId, or null if its not found.
13584
       */
13585
      public static _Fields findByThriftId(int fieldId) {
13586
        switch(fieldId) {
13587
          case 0: // SUCCESS
13588
            return SUCCESS;
13589
          default:
13590
            return null;
13591
        }
13592
      }
13593
 
13594
      /**
13595
       * Find the _Fields constant that matches fieldId, throwing an exception
13596
       * if it is not found.
13597
       */
13598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13599
        _Fields fields = findByThriftId(fieldId);
13600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13601
        return fields;
13602
      }
13603
 
13604
      /**
13605
       * Find the _Fields constant that matches name, or null if its not found.
13606
       */
13607
      public static _Fields findByName(String name) {
13608
        return byName.get(name);
13609
      }
13610
 
13611
      private final short _thriftId;
13612
      private final String _fieldName;
13613
 
13614
      _Fields(short thriftId, String fieldName) {
13615
        _thriftId = thriftId;
13616
        _fieldName = fieldName;
13617
      }
13618
 
13619
      public short getThriftFieldId() {
13620
        return _thriftId;
13621
      }
13622
 
13623
      public String getFieldName() {
13624
        return _fieldName;
13625
      }
13626
    }
13627
 
13628
    // isset id assignments
13629
 
13630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13631
    static {
13632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13634
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13635
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13636
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13637
    }
13638
 
13639
    public getPickupStoreByHotspotId_result() {
13640
    }
13641
 
13642
    public getPickupStoreByHotspotId_result(
13643
      PickupStore success)
13644
    {
13645
      this();
13646
      this.success = success;
13647
    }
13648
 
13649
    /**
13650
     * Performs a deep copy on <i>other</i>.
13651
     */
13652
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13653
      if (other.isSetSuccess()) {
13654
        this.success = new PickupStore(other.success);
13655
      }
13656
    }
13657
 
13658
    public getPickupStoreByHotspotId_result deepCopy() {
13659
      return new getPickupStoreByHotspotId_result(this);
13660
    }
13661
 
13662
    @Override
13663
    public void clear() {
13664
      this.success = null;
13665
    }
13666
 
13667
    public PickupStore getSuccess() {
13668
      return this.success;
13669
    }
13670
 
13671
    public void setSuccess(PickupStore success) {
13672
      this.success = success;
13673
    }
13674
 
13675
    public void unsetSuccess() {
13676
      this.success = null;
13677
    }
13678
 
13679
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13680
    public boolean isSetSuccess() {
13681
      return this.success != null;
13682
    }
13683
 
13684
    public void setSuccessIsSet(boolean value) {
13685
      if (!value) {
13686
        this.success = null;
13687
      }
13688
    }
13689
 
13690
    public void setFieldValue(_Fields field, Object value) {
13691
      switch (field) {
13692
      case SUCCESS:
13693
        if (value == null) {
13694
          unsetSuccess();
13695
        } else {
13696
          setSuccess((PickupStore)value);
13697
        }
13698
        break;
13699
 
13700
      }
13701
    }
13702
 
13703
    public Object getFieldValue(_Fields field) {
13704
      switch (field) {
13705
      case SUCCESS:
13706
        return getSuccess();
13707
 
13708
      }
13709
      throw new IllegalStateException();
13710
    }
13711
 
13712
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13713
    public boolean isSet(_Fields field) {
13714
      if (field == null) {
13715
        throw new IllegalArgumentException();
13716
      }
13717
 
13718
      switch (field) {
13719
      case SUCCESS:
13720
        return isSetSuccess();
13721
      }
13722
      throw new IllegalStateException();
13723
    }
13724
 
13725
    @Override
13726
    public boolean equals(Object that) {
13727
      if (that == null)
13728
        return false;
13729
      if (that instanceof getPickupStoreByHotspotId_result)
13730
        return this.equals((getPickupStoreByHotspotId_result)that);
13731
      return false;
13732
    }
13733
 
13734
    public boolean equals(getPickupStoreByHotspotId_result that) {
13735
      if (that == null)
13736
        return false;
13737
 
13738
      boolean this_present_success = true && this.isSetSuccess();
13739
      boolean that_present_success = true && that.isSetSuccess();
13740
      if (this_present_success || that_present_success) {
13741
        if (!(this_present_success && that_present_success))
13742
          return false;
13743
        if (!this.success.equals(that.success))
13744
          return false;
13745
      }
13746
 
13747
      return true;
13748
    }
13749
 
13750
    @Override
13751
    public int hashCode() {
13752
      return 0;
13753
    }
13754
 
13755
    public int compareTo(getPickupStoreByHotspotId_result other) {
13756
      if (!getClass().equals(other.getClass())) {
13757
        return getClass().getName().compareTo(other.getClass().getName());
13758
      }
13759
 
13760
      int lastComparison = 0;
13761
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13762
 
13763
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13764
      if (lastComparison != 0) {
13765
        return lastComparison;
13766
      }
13767
      if (isSetSuccess()) {
13768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13769
        if (lastComparison != 0) {
13770
          return lastComparison;
13771
        }
13772
      }
13773
      return 0;
13774
    }
13775
 
13776
    public _Fields fieldForId(int fieldId) {
13777
      return _Fields.findByThriftId(fieldId);
13778
    }
13779
 
13780
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13781
      org.apache.thrift.protocol.TField field;
13782
      iprot.readStructBegin();
13783
      while (true)
13784
      {
13785
        field = iprot.readFieldBegin();
13786
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13787
          break;
13788
        }
13789
        switch (field.id) {
13790
          case 0: // SUCCESS
13791
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13792
              this.success = new PickupStore();
13793
              this.success.read(iprot);
13794
            } else { 
13795
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13796
            }
13797
            break;
13798
          default:
13799
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13800
        }
13801
        iprot.readFieldEnd();
13802
      }
13803
      iprot.readStructEnd();
13804
      validate();
13805
    }
13806
 
13807
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13808
      oprot.writeStructBegin(STRUCT_DESC);
13809
 
13810
      if (this.isSetSuccess()) {
13811
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13812
        this.success.write(oprot);
13813
        oprot.writeFieldEnd();
13814
      }
13815
      oprot.writeFieldStop();
13816
      oprot.writeStructEnd();
13817
    }
13818
 
13819
    @Override
13820
    public String toString() {
13821
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13822
      boolean first = true;
13823
 
13824
      sb.append("success:");
13825
      if (this.success == null) {
13826
        sb.append("null");
13827
      } else {
13828
        sb.append(this.success);
13829
      }
13830
      first = false;
13831
      sb.append(")");
13832
      return sb.toString();
13833
    }
13834
 
13835
    public void validate() throws org.apache.thrift.TException {
13836
      // check for required fields
13837
    }
13838
 
13839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13840
      try {
13841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13842
      } catch (org.apache.thrift.TException te) {
13843
        throw new java.io.IOException(te);
13844
      }
13845
    }
13846
 
13847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13848
      try {
13849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13850
      } catch (org.apache.thrift.TException te) {
13851
        throw new java.io.IOException(te);
13852
      }
13853
    }
13854
 
13855
  }
13856
 
6322 amar.kumar 13857
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13859
 
13860
    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);
13861
    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);
13862
    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);
13863
    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);
13864
    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);
13865
    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 13866
    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 13867
 
13868
    private long providerId; // required
13869
    private String pincode; // required
13870
    private String destCode; // required
13871
    private boolean exp; // required
13872
    private boolean cod; // required
13873
    private int stationType; // required
6524 rajveer 13874
    private boolean otgAvailable; // required
6322 amar.kumar 13875
 
13876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13878
      PROVIDER_ID((short)1, "providerId"),
13879
      PINCODE((short)2, "pincode"),
13880
      DEST_CODE((short)3, "destCode"),
13881
      EXP((short)4, "exp"),
13882
      COD((short)5, "cod"),
6524 rajveer 13883
      STATION_TYPE((short)6, "stationType"),
13884
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13885
 
13886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13887
 
13888
      static {
13889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13890
          byName.put(field.getFieldName(), field);
13891
        }
13892
      }
13893
 
13894
      /**
13895
       * Find the _Fields constant that matches fieldId, or null if its not found.
13896
       */
13897
      public static _Fields findByThriftId(int fieldId) {
13898
        switch(fieldId) {
13899
          case 1: // PROVIDER_ID
13900
            return PROVIDER_ID;
13901
          case 2: // PINCODE
13902
            return PINCODE;
13903
          case 3: // DEST_CODE
13904
            return DEST_CODE;
13905
          case 4: // EXP
13906
            return EXP;
13907
          case 5: // COD
13908
            return COD;
13909
          case 6: // STATION_TYPE
13910
            return STATION_TYPE;
6524 rajveer 13911
          case 7: // OTG_AVAILABLE
13912
            return OTG_AVAILABLE;
6322 amar.kumar 13913
          default:
13914
            return null;
13915
        }
13916
      }
13917
 
13918
      /**
13919
       * Find the _Fields constant that matches fieldId, throwing an exception
13920
       * if it is not found.
13921
       */
13922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13923
        _Fields fields = findByThriftId(fieldId);
13924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13925
        return fields;
13926
      }
13927
 
13928
      /**
13929
       * Find the _Fields constant that matches name, or null if its not found.
13930
       */
13931
      public static _Fields findByName(String name) {
13932
        return byName.get(name);
13933
      }
13934
 
13935
      private final short _thriftId;
13936
      private final String _fieldName;
13937
 
13938
      _Fields(short thriftId, String fieldName) {
13939
        _thriftId = thriftId;
13940
        _fieldName = fieldName;
13941
      }
13942
 
13943
      public short getThriftFieldId() {
13944
        return _thriftId;
13945
      }
13946
 
13947
      public String getFieldName() {
13948
        return _fieldName;
13949
      }
13950
    }
13951
 
13952
    // isset id assignments
13953
    private static final int __PROVIDERID_ISSET_ID = 0;
13954
    private static final int __EXP_ISSET_ID = 1;
13955
    private static final int __COD_ISSET_ID = 2;
13956
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13957
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13958
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13959
 
13960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13961
    static {
13962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13963
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13965
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13966
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13967
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13968
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13969
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13971
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13973
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13975
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13979
    }
13980
 
13981
    public addPincode_args() {
13982
    }
13983
 
13984
    public addPincode_args(
13985
      long providerId,
13986
      String pincode,
13987
      String destCode,
13988
      boolean exp,
13989
      boolean cod,
6524 rajveer 13990
      int stationType,
13991
      boolean otgAvailable)
6322 amar.kumar 13992
    {
13993
      this();
13994
      this.providerId = providerId;
13995
      setProviderIdIsSet(true);
13996
      this.pincode = pincode;
13997
      this.destCode = destCode;
13998
      this.exp = exp;
13999
      setExpIsSet(true);
14000
      this.cod = cod;
14001
      setCodIsSet(true);
14002
      this.stationType = stationType;
14003
      setStationTypeIsSet(true);
6524 rajveer 14004
      this.otgAvailable = otgAvailable;
14005
      setOtgAvailableIsSet(true);
6322 amar.kumar 14006
    }
14007
 
14008
    /**
14009
     * Performs a deep copy on <i>other</i>.
14010
     */
14011
    public addPincode_args(addPincode_args other) {
14012
      __isset_bit_vector.clear();
14013
      __isset_bit_vector.or(other.__isset_bit_vector);
14014
      this.providerId = other.providerId;
14015
      if (other.isSetPincode()) {
14016
        this.pincode = other.pincode;
14017
      }
14018
      if (other.isSetDestCode()) {
14019
        this.destCode = other.destCode;
14020
      }
14021
      this.exp = other.exp;
14022
      this.cod = other.cod;
14023
      this.stationType = other.stationType;
6524 rajveer 14024
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14025
    }
14026
 
14027
    public addPincode_args deepCopy() {
14028
      return new addPincode_args(this);
14029
    }
14030
 
14031
    @Override
14032
    public void clear() {
14033
      setProviderIdIsSet(false);
14034
      this.providerId = 0;
14035
      this.pincode = null;
14036
      this.destCode = null;
14037
      setExpIsSet(false);
14038
      this.exp = false;
14039
      setCodIsSet(false);
14040
      this.cod = false;
14041
      setStationTypeIsSet(false);
14042
      this.stationType = 0;
6524 rajveer 14043
      setOtgAvailableIsSet(false);
14044
      this.otgAvailable = false;
6322 amar.kumar 14045
    }
14046
 
14047
    public long getProviderId() {
14048
      return this.providerId;
14049
    }
14050
 
14051
    public void setProviderId(long providerId) {
14052
      this.providerId = providerId;
14053
      setProviderIdIsSet(true);
14054
    }
14055
 
14056
    public void unsetProviderId() {
14057
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14058
    }
14059
 
14060
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14061
    public boolean isSetProviderId() {
14062
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14063
    }
14064
 
14065
    public void setProviderIdIsSet(boolean value) {
14066
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14067
    }
14068
 
14069
    public String getPincode() {
14070
      return this.pincode;
14071
    }
14072
 
14073
    public void setPincode(String pincode) {
14074
      this.pincode = pincode;
14075
    }
14076
 
14077
    public void unsetPincode() {
14078
      this.pincode = null;
14079
    }
14080
 
14081
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14082
    public boolean isSetPincode() {
14083
      return this.pincode != null;
14084
    }
14085
 
14086
    public void setPincodeIsSet(boolean value) {
14087
      if (!value) {
14088
        this.pincode = null;
14089
      }
14090
    }
14091
 
14092
    public String getDestCode() {
14093
      return this.destCode;
14094
    }
14095
 
14096
    public void setDestCode(String destCode) {
14097
      this.destCode = destCode;
14098
    }
14099
 
14100
    public void unsetDestCode() {
14101
      this.destCode = null;
14102
    }
14103
 
14104
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14105
    public boolean isSetDestCode() {
14106
      return this.destCode != null;
14107
    }
14108
 
14109
    public void setDestCodeIsSet(boolean value) {
14110
      if (!value) {
14111
        this.destCode = null;
14112
      }
14113
    }
14114
 
14115
    public boolean isExp() {
14116
      return this.exp;
14117
    }
14118
 
14119
    public void setExp(boolean exp) {
14120
      this.exp = exp;
14121
      setExpIsSet(true);
14122
    }
14123
 
14124
    public void unsetExp() {
14125
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14126
    }
14127
 
14128
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14129
    public boolean isSetExp() {
14130
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14131
    }
14132
 
14133
    public void setExpIsSet(boolean value) {
14134
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14135
    }
14136
 
14137
    public boolean isCod() {
14138
      return this.cod;
14139
    }
14140
 
14141
    public void setCod(boolean cod) {
14142
      this.cod = cod;
14143
      setCodIsSet(true);
14144
    }
14145
 
14146
    public void unsetCod() {
14147
      __isset_bit_vector.clear(__COD_ISSET_ID);
14148
    }
14149
 
14150
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14151
    public boolean isSetCod() {
14152
      return __isset_bit_vector.get(__COD_ISSET_ID);
14153
    }
14154
 
14155
    public void setCodIsSet(boolean value) {
14156
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14157
    }
14158
 
14159
    public int getStationType() {
14160
      return this.stationType;
14161
    }
14162
 
14163
    public void setStationType(int stationType) {
14164
      this.stationType = stationType;
14165
      setStationTypeIsSet(true);
14166
    }
14167
 
14168
    public void unsetStationType() {
14169
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14170
    }
14171
 
14172
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14173
    public boolean isSetStationType() {
14174
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14175
    }
14176
 
14177
    public void setStationTypeIsSet(boolean value) {
14178
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14179
    }
14180
 
6524 rajveer 14181
    public boolean isOtgAvailable() {
14182
      return this.otgAvailable;
14183
    }
14184
 
14185
    public void setOtgAvailable(boolean otgAvailable) {
14186
      this.otgAvailable = otgAvailable;
14187
      setOtgAvailableIsSet(true);
14188
    }
14189
 
14190
    public void unsetOtgAvailable() {
14191
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14192
    }
14193
 
14194
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14195
    public boolean isSetOtgAvailable() {
14196
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14197
    }
14198
 
14199
    public void setOtgAvailableIsSet(boolean value) {
14200
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14201
    }
14202
 
6322 amar.kumar 14203
    public void setFieldValue(_Fields field, Object value) {
14204
      switch (field) {
14205
      case PROVIDER_ID:
14206
        if (value == null) {
14207
          unsetProviderId();
14208
        } else {
14209
          setProviderId((Long)value);
14210
        }
14211
        break;
14212
 
14213
      case PINCODE:
14214
        if (value == null) {
14215
          unsetPincode();
14216
        } else {
14217
          setPincode((String)value);
14218
        }
14219
        break;
14220
 
14221
      case DEST_CODE:
14222
        if (value == null) {
14223
          unsetDestCode();
14224
        } else {
14225
          setDestCode((String)value);
14226
        }
14227
        break;
14228
 
14229
      case EXP:
14230
        if (value == null) {
14231
          unsetExp();
14232
        } else {
14233
          setExp((Boolean)value);
14234
        }
14235
        break;
14236
 
14237
      case COD:
14238
        if (value == null) {
14239
          unsetCod();
14240
        } else {
14241
          setCod((Boolean)value);
14242
        }
14243
        break;
14244
 
14245
      case STATION_TYPE:
14246
        if (value == null) {
14247
          unsetStationType();
14248
        } else {
14249
          setStationType((Integer)value);
14250
        }
14251
        break;
14252
 
6524 rajveer 14253
      case OTG_AVAILABLE:
14254
        if (value == null) {
14255
          unsetOtgAvailable();
14256
        } else {
14257
          setOtgAvailable((Boolean)value);
14258
        }
14259
        break;
14260
 
6322 amar.kumar 14261
      }
14262
    }
14263
 
14264
    public Object getFieldValue(_Fields field) {
14265
      switch (field) {
14266
      case PROVIDER_ID:
14267
        return Long.valueOf(getProviderId());
14268
 
14269
      case PINCODE:
14270
        return getPincode();
14271
 
14272
      case DEST_CODE:
14273
        return getDestCode();
14274
 
14275
      case EXP:
14276
        return Boolean.valueOf(isExp());
14277
 
14278
      case COD:
14279
        return Boolean.valueOf(isCod());
14280
 
14281
      case STATION_TYPE:
14282
        return Integer.valueOf(getStationType());
14283
 
6524 rajveer 14284
      case OTG_AVAILABLE:
14285
        return Boolean.valueOf(isOtgAvailable());
14286
 
6322 amar.kumar 14287
      }
14288
      throw new IllegalStateException();
14289
    }
14290
 
14291
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14292
    public boolean isSet(_Fields field) {
14293
      if (field == null) {
14294
        throw new IllegalArgumentException();
14295
      }
14296
 
14297
      switch (field) {
14298
      case PROVIDER_ID:
14299
        return isSetProviderId();
14300
      case PINCODE:
14301
        return isSetPincode();
14302
      case DEST_CODE:
14303
        return isSetDestCode();
14304
      case EXP:
14305
        return isSetExp();
14306
      case COD:
14307
        return isSetCod();
14308
      case STATION_TYPE:
14309
        return isSetStationType();
6524 rajveer 14310
      case OTG_AVAILABLE:
14311
        return isSetOtgAvailable();
6322 amar.kumar 14312
      }
14313
      throw new IllegalStateException();
14314
    }
14315
 
14316
    @Override
14317
    public boolean equals(Object that) {
14318
      if (that == null)
14319
        return false;
14320
      if (that instanceof addPincode_args)
14321
        return this.equals((addPincode_args)that);
14322
      return false;
14323
    }
14324
 
14325
    public boolean equals(addPincode_args that) {
14326
      if (that == null)
14327
        return false;
14328
 
14329
      boolean this_present_providerId = true;
14330
      boolean that_present_providerId = true;
14331
      if (this_present_providerId || that_present_providerId) {
14332
        if (!(this_present_providerId && that_present_providerId))
14333
          return false;
14334
        if (this.providerId != that.providerId)
14335
          return false;
14336
      }
14337
 
14338
      boolean this_present_pincode = true && this.isSetPincode();
14339
      boolean that_present_pincode = true && that.isSetPincode();
14340
      if (this_present_pincode || that_present_pincode) {
14341
        if (!(this_present_pincode && that_present_pincode))
14342
          return false;
14343
        if (!this.pincode.equals(that.pincode))
14344
          return false;
14345
      }
14346
 
14347
      boolean this_present_destCode = true && this.isSetDestCode();
14348
      boolean that_present_destCode = true && that.isSetDestCode();
14349
      if (this_present_destCode || that_present_destCode) {
14350
        if (!(this_present_destCode && that_present_destCode))
14351
          return false;
14352
        if (!this.destCode.equals(that.destCode))
14353
          return false;
14354
      }
14355
 
14356
      boolean this_present_exp = true;
14357
      boolean that_present_exp = true;
14358
      if (this_present_exp || that_present_exp) {
14359
        if (!(this_present_exp && that_present_exp))
14360
          return false;
14361
        if (this.exp != that.exp)
14362
          return false;
14363
      }
14364
 
14365
      boolean this_present_cod = true;
14366
      boolean that_present_cod = true;
14367
      if (this_present_cod || that_present_cod) {
14368
        if (!(this_present_cod && that_present_cod))
14369
          return false;
14370
        if (this.cod != that.cod)
14371
          return false;
14372
      }
14373
 
14374
      boolean this_present_stationType = true;
14375
      boolean that_present_stationType = true;
14376
      if (this_present_stationType || that_present_stationType) {
14377
        if (!(this_present_stationType && that_present_stationType))
14378
          return false;
14379
        if (this.stationType != that.stationType)
14380
          return false;
14381
      }
14382
 
6524 rajveer 14383
      boolean this_present_otgAvailable = true;
14384
      boolean that_present_otgAvailable = true;
14385
      if (this_present_otgAvailable || that_present_otgAvailable) {
14386
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14387
          return false;
14388
        if (this.otgAvailable != that.otgAvailable)
14389
          return false;
14390
      }
14391
 
6322 amar.kumar 14392
      return true;
14393
    }
14394
 
14395
    @Override
14396
    public int hashCode() {
14397
      return 0;
14398
    }
14399
 
14400
    public int compareTo(addPincode_args other) {
14401
      if (!getClass().equals(other.getClass())) {
14402
        return getClass().getName().compareTo(other.getClass().getName());
14403
      }
14404
 
14405
      int lastComparison = 0;
14406
      addPincode_args typedOther = (addPincode_args)other;
14407
 
14408
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14409
      if (lastComparison != 0) {
14410
        return lastComparison;
14411
      }
14412
      if (isSetProviderId()) {
14413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14414
        if (lastComparison != 0) {
14415
          return lastComparison;
14416
        }
14417
      }
14418
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14419
      if (lastComparison != 0) {
14420
        return lastComparison;
14421
      }
14422
      if (isSetPincode()) {
14423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14424
        if (lastComparison != 0) {
14425
          return lastComparison;
14426
        }
14427
      }
14428
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14429
      if (lastComparison != 0) {
14430
        return lastComparison;
14431
      }
14432
      if (isSetDestCode()) {
14433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14434
        if (lastComparison != 0) {
14435
          return lastComparison;
14436
        }
14437
      }
14438
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14439
      if (lastComparison != 0) {
14440
        return lastComparison;
14441
      }
14442
      if (isSetExp()) {
14443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14444
        if (lastComparison != 0) {
14445
          return lastComparison;
14446
        }
14447
      }
14448
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14449
      if (lastComparison != 0) {
14450
        return lastComparison;
14451
      }
14452
      if (isSetCod()) {
14453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14454
        if (lastComparison != 0) {
14455
          return lastComparison;
14456
        }
14457
      }
14458
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14459
      if (lastComparison != 0) {
14460
        return lastComparison;
14461
      }
14462
      if (isSetStationType()) {
14463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14464
        if (lastComparison != 0) {
14465
          return lastComparison;
14466
        }
14467
      }
6524 rajveer 14468
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14469
      if (lastComparison != 0) {
14470
        return lastComparison;
14471
      }
14472
      if (isSetOtgAvailable()) {
14473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14474
        if (lastComparison != 0) {
14475
          return lastComparison;
14476
        }
14477
      }
6322 amar.kumar 14478
      return 0;
14479
    }
14480
 
14481
    public _Fields fieldForId(int fieldId) {
14482
      return _Fields.findByThriftId(fieldId);
14483
    }
14484
 
14485
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14486
      org.apache.thrift.protocol.TField field;
14487
      iprot.readStructBegin();
14488
      while (true)
14489
      {
14490
        field = iprot.readFieldBegin();
14491
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14492
          break;
14493
        }
14494
        switch (field.id) {
14495
          case 1: // PROVIDER_ID
14496
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14497
              this.providerId = iprot.readI64();
14498
              setProviderIdIsSet(true);
14499
            } else { 
14500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14501
            }
14502
            break;
14503
          case 2: // PINCODE
14504
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14505
              this.pincode = iprot.readString();
14506
            } else { 
14507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14508
            }
14509
            break;
14510
          case 3: // DEST_CODE
14511
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14512
              this.destCode = iprot.readString();
14513
            } else { 
14514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14515
            }
14516
            break;
14517
          case 4: // EXP
14518
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14519
              this.exp = iprot.readBool();
14520
              setExpIsSet(true);
14521
            } else { 
14522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14523
            }
14524
            break;
14525
          case 5: // COD
14526
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14527
              this.cod = iprot.readBool();
14528
              setCodIsSet(true);
14529
            } else { 
14530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14531
            }
14532
            break;
14533
          case 6: // STATION_TYPE
14534
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14535
              this.stationType = iprot.readI32();
14536
              setStationTypeIsSet(true);
14537
            } else { 
14538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14539
            }
14540
            break;
6524 rajveer 14541
          case 7: // OTG_AVAILABLE
14542
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14543
              this.otgAvailable = iprot.readBool();
14544
              setOtgAvailableIsSet(true);
14545
            } else { 
14546
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14547
            }
14548
            break;
6322 amar.kumar 14549
          default:
14550
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14551
        }
14552
        iprot.readFieldEnd();
14553
      }
14554
      iprot.readStructEnd();
14555
      validate();
14556
    }
14557
 
14558
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14559
      validate();
14560
 
14561
      oprot.writeStructBegin(STRUCT_DESC);
14562
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14563
      oprot.writeI64(this.providerId);
14564
      oprot.writeFieldEnd();
14565
      if (this.pincode != null) {
14566
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14567
        oprot.writeString(this.pincode);
14568
        oprot.writeFieldEnd();
14569
      }
14570
      if (this.destCode != null) {
14571
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14572
        oprot.writeString(this.destCode);
14573
        oprot.writeFieldEnd();
14574
      }
14575
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14576
      oprot.writeBool(this.exp);
14577
      oprot.writeFieldEnd();
14578
      oprot.writeFieldBegin(COD_FIELD_DESC);
14579
      oprot.writeBool(this.cod);
14580
      oprot.writeFieldEnd();
14581
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14582
      oprot.writeI32(this.stationType);
14583
      oprot.writeFieldEnd();
6524 rajveer 14584
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14585
      oprot.writeBool(this.otgAvailable);
14586
      oprot.writeFieldEnd();
6322 amar.kumar 14587
      oprot.writeFieldStop();
14588
      oprot.writeStructEnd();
14589
    }
14590
 
14591
    @Override
14592
    public String toString() {
14593
      StringBuilder sb = new StringBuilder("addPincode_args(");
14594
      boolean first = true;
14595
 
14596
      sb.append("providerId:");
14597
      sb.append(this.providerId);
14598
      first = false;
14599
      if (!first) sb.append(", ");
14600
      sb.append("pincode:");
14601
      if (this.pincode == null) {
14602
        sb.append("null");
14603
      } else {
14604
        sb.append(this.pincode);
14605
      }
14606
      first = false;
14607
      if (!first) sb.append(", ");
14608
      sb.append("destCode:");
14609
      if (this.destCode == null) {
14610
        sb.append("null");
14611
      } else {
14612
        sb.append(this.destCode);
14613
      }
14614
      first = false;
14615
      if (!first) sb.append(", ");
14616
      sb.append("exp:");
14617
      sb.append(this.exp);
14618
      first = false;
14619
      if (!first) sb.append(", ");
14620
      sb.append("cod:");
14621
      sb.append(this.cod);
14622
      first = false;
14623
      if (!first) sb.append(", ");
14624
      sb.append("stationType:");
14625
      sb.append(this.stationType);
14626
      first = false;
6524 rajveer 14627
      if (!first) sb.append(", ");
14628
      sb.append("otgAvailable:");
14629
      sb.append(this.otgAvailable);
14630
      first = false;
6322 amar.kumar 14631
      sb.append(")");
14632
      return sb.toString();
14633
    }
14634
 
14635
    public void validate() throws org.apache.thrift.TException {
14636
      // check for required fields
14637
    }
14638
 
14639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14640
      try {
14641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14642
      } catch (org.apache.thrift.TException te) {
14643
        throw new java.io.IOException(te);
14644
      }
14645
    }
14646
 
14647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14648
      try {
14649
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14650
        __isset_bit_vector = new BitSet(1);
14651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14652
      } catch (org.apache.thrift.TException te) {
14653
        throw new java.io.IOException(te);
14654
      }
14655
    }
14656
 
14657
  }
14658
 
14659
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14661
 
14662
 
14663
 
14664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14666
;
14667
 
14668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14669
 
14670
      static {
14671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14672
          byName.put(field.getFieldName(), field);
14673
        }
14674
      }
14675
 
14676
      /**
14677
       * Find the _Fields constant that matches fieldId, or null if its not found.
14678
       */
14679
      public static _Fields findByThriftId(int fieldId) {
14680
        switch(fieldId) {
14681
          default:
14682
            return null;
14683
        }
14684
      }
14685
 
14686
      /**
14687
       * Find the _Fields constant that matches fieldId, throwing an exception
14688
       * if it is not found.
14689
       */
14690
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14691
        _Fields fields = findByThriftId(fieldId);
14692
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14693
        return fields;
14694
      }
14695
 
14696
      /**
14697
       * Find the _Fields constant that matches name, or null if its not found.
14698
       */
14699
      public static _Fields findByName(String name) {
14700
        return byName.get(name);
14701
      }
14702
 
14703
      private final short _thriftId;
14704
      private final String _fieldName;
14705
 
14706
      _Fields(short thriftId, String fieldName) {
14707
        _thriftId = thriftId;
14708
        _fieldName = fieldName;
14709
      }
14710
 
14711
      public short getThriftFieldId() {
14712
        return _thriftId;
14713
      }
14714
 
14715
      public String getFieldName() {
14716
        return _fieldName;
14717
      }
14718
    }
14719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14720
    static {
14721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14724
    }
14725
 
14726
    public addPincode_result() {
14727
    }
14728
 
14729
    /**
14730
     * Performs a deep copy on <i>other</i>.
14731
     */
14732
    public addPincode_result(addPincode_result other) {
14733
    }
14734
 
14735
    public addPincode_result deepCopy() {
14736
      return new addPincode_result(this);
14737
    }
14738
 
14739
    @Override
14740
    public void clear() {
14741
    }
14742
 
14743
    public void setFieldValue(_Fields field, Object value) {
14744
      switch (field) {
14745
      }
14746
    }
14747
 
14748
    public Object getFieldValue(_Fields field) {
14749
      switch (field) {
14750
      }
14751
      throw new IllegalStateException();
14752
    }
14753
 
14754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14755
    public boolean isSet(_Fields field) {
14756
      if (field == null) {
14757
        throw new IllegalArgumentException();
14758
      }
14759
 
14760
      switch (field) {
14761
      }
14762
      throw new IllegalStateException();
14763
    }
14764
 
14765
    @Override
14766
    public boolean equals(Object that) {
14767
      if (that == null)
14768
        return false;
14769
      if (that instanceof addPincode_result)
14770
        return this.equals((addPincode_result)that);
14771
      return false;
14772
    }
14773
 
14774
    public boolean equals(addPincode_result that) {
14775
      if (that == null)
14776
        return false;
14777
 
14778
      return true;
14779
    }
14780
 
14781
    @Override
14782
    public int hashCode() {
14783
      return 0;
14784
    }
14785
 
14786
    public int compareTo(addPincode_result other) {
14787
      if (!getClass().equals(other.getClass())) {
14788
        return getClass().getName().compareTo(other.getClass().getName());
14789
      }
14790
 
14791
      int lastComparison = 0;
14792
      addPincode_result typedOther = (addPincode_result)other;
14793
 
14794
      return 0;
14795
    }
14796
 
14797
    public _Fields fieldForId(int fieldId) {
14798
      return _Fields.findByThriftId(fieldId);
14799
    }
14800
 
14801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14802
      org.apache.thrift.protocol.TField field;
14803
      iprot.readStructBegin();
14804
      while (true)
14805
      {
14806
        field = iprot.readFieldBegin();
14807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14808
          break;
14809
        }
14810
        switch (field.id) {
14811
          default:
14812
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14813
        }
14814
        iprot.readFieldEnd();
14815
      }
14816
      iprot.readStructEnd();
14817
      validate();
14818
    }
14819
 
14820
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14821
      oprot.writeStructBegin(STRUCT_DESC);
14822
 
14823
      oprot.writeFieldStop();
14824
      oprot.writeStructEnd();
14825
    }
14826
 
14827
    @Override
14828
    public String toString() {
14829
      StringBuilder sb = new StringBuilder("addPincode_result(");
14830
      boolean first = true;
14831
 
14832
      sb.append(")");
14833
      return sb.toString();
14834
    }
14835
 
14836
    public void validate() throws org.apache.thrift.TException {
14837
      // check for required fields
14838
    }
14839
 
14840
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14841
      try {
14842
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14843
      } catch (org.apache.thrift.TException te) {
14844
        throw new java.io.IOException(te);
14845
      }
14846
    }
14847
 
14848
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14849
      try {
14850
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14851
      } catch (org.apache.thrift.TException te) {
14852
        throw new java.io.IOException(te);
14853
      }
14854
    }
14855
 
14856
  }
14857
 
14858
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14859
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14860
 
14861
    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);
14862
    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);
14863
    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);
14864
    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 14865
    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 14866
 
14867
    private long providerId; // required
14868
    private String pincode; // required
14869
    private boolean exp; // required
14870
    private boolean cod; // required
6524 rajveer 14871
    private boolean otgAvailable; // required
6322 amar.kumar 14872
 
14873
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14874
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14875
      PROVIDER_ID((short)1, "providerId"),
14876
      PINCODE((short)2, "pincode"),
14877
      EXP((short)3, "exp"),
6524 rajveer 14878
      COD((short)4, "cod"),
14879
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14880
 
14881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14882
 
14883
      static {
14884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14885
          byName.put(field.getFieldName(), field);
14886
        }
14887
      }
14888
 
14889
      /**
14890
       * Find the _Fields constant that matches fieldId, or null if its not found.
14891
       */
14892
      public static _Fields findByThriftId(int fieldId) {
14893
        switch(fieldId) {
14894
          case 1: // PROVIDER_ID
14895
            return PROVIDER_ID;
14896
          case 2: // PINCODE
14897
            return PINCODE;
14898
          case 3: // EXP
14899
            return EXP;
14900
          case 4: // COD
14901
            return COD;
6524 rajveer 14902
          case 5: // OTG_AVAILABLE
14903
            return OTG_AVAILABLE;
6322 amar.kumar 14904
          default:
14905
            return null;
14906
        }
14907
      }
14908
 
14909
      /**
14910
       * Find the _Fields constant that matches fieldId, throwing an exception
14911
       * if it is not found.
14912
       */
14913
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14914
        _Fields fields = findByThriftId(fieldId);
14915
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14916
        return fields;
14917
      }
14918
 
14919
      /**
14920
       * Find the _Fields constant that matches name, or null if its not found.
14921
       */
14922
      public static _Fields findByName(String name) {
14923
        return byName.get(name);
14924
      }
14925
 
14926
      private final short _thriftId;
14927
      private final String _fieldName;
14928
 
14929
      _Fields(short thriftId, String fieldName) {
14930
        _thriftId = thriftId;
14931
        _fieldName = fieldName;
14932
      }
14933
 
14934
      public short getThriftFieldId() {
14935
        return _thriftId;
14936
      }
14937
 
14938
      public String getFieldName() {
14939
        return _fieldName;
14940
      }
14941
    }
14942
 
14943
    // isset id assignments
14944
    private static final int __PROVIDERID_ISSET_ID = 0;
14945
    private static final int __EXP_ISSET_ID = 1;
14946
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14947
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14948
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14949
 
14950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14951
    static {
14952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14953
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14955
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14957
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14959
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14961
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14965
    }
14966
 
14967
    public updatePincode_args() {
14968
    }
14969
 
14970
    public updatePincode_args(
14971
      long providerId,
14972
      String pincode,
14973
      boolean exp,
6524 rajveer 14974
      boolean cod,
14975
      boolean otgAvailable)
6322 amar.kumar 14976
    {
14977
      this();
14978
      this.providerId = providerId;
14979
      setProviderIdIsSet(true);
14980
      this.pincode = pincode;
14981
      this.exp = exp;
14982
      setExpIsSet(true);
14983
      this.cod = cod;
14984
      setCodIsSet(true);
6524 rajveer 14985
      this.otgAvailable = otgAvailable;
14986
      setOtgAvailableIsSet(true);
6322 amar.kumar 14987
    }
14988
 
14989
    /**
14990
     * Performs a deep copy on <i>other</i>.
14991
     */
14992
    public updatePincode_args(updatePincode_args other) {
14993
      __isset_bit_vector.clear();
14994
      __isset_bit_vector.or(other.__isset_bit_vector);
14995
      this.providerId = other.providerId;
14996
      if (other.isSetPincode()) {
14997
        this.pincode = other.pincode;
14998
      }
14999
      this.exp = other.exp;
15000
      this.cod = other.cod;
6524 rajveer 15001
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 15002
    }
15003
 
15004
    public updatePincode_args deepCopy() {
15005
      return new updatePincode_args(this);
15006
    }
15007
 
15008
    @Override
15009
    public void clear() {
15010
      setProviderIdIsSet(false);
15011
      this.providerId = 0;
15012
      this.pincode = null;
15013
      setExpIsSet(false);
15014
      this.exp = false;
15015
      setCodIsSet(false);
15016
      this.cod = false;
6524 rajveer 15017
      setOtgAvailableIsSet(false);
15018
      this.otgAvailable = false;
6322 amar.kumar 15019
    }
15020
 
15021
    public long getProviderId() {
15022
      return this.providerId;
15023
    }
15024
 
15025
    public void setProviderId(long providerId) {
15026
      this.providerId = providerId;
15027
      setProviderIdIsSet(true);
15028
    }
15029
 
15030
    public void unsetProviderId() {
15031
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15032
    }
15033
 
15034
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15035
    public boolean isSetProviderId() {
15036
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15037
    }
15038
 
15039
    public void setProviderIdIsSet(boolean value) {
15040
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15041
    }
15042
 
15043
    public String getPincode() {
15044
      return this.pincode;
15045
    }
15046
 
15047
    public void setPincode(String pincode) {
15048
      this.pincode = pincode;
15049
    }
15050
 
15051
    public void unsetPincode() {
15052
      this.pincode = null;
15053
    }
15054
 
15055
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15056
    public boolean isSetPincode() {
15057
      return this.pincode != null;
15058
    }
15059
 
15060
    public void setPincodeIsSet(boolean value) {
15061
      if (!value) {
15062
        this.pincode = null;
15063
      }
15064
    }
15065
 
15066
    public boolean isExp() {
15067
      return this.exp;
15068
    }
15069
 
15070
    public void setExp(boolean exp) {
15071
      this.exp = exp;
15072
      setExpIsSet(true);
15073
    }
15074
 
15075
    public void unsetExp() {
15076
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15077
    }
15078
 
15079
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15080
    public boolean isSetExp() {
15081
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15082
    }
15083
 
15084
    public void setExpIsSet(boolean value) {
15085
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15086
    }
15087
 
15088
    public boolean isCod() {
15089
      return this.cod;
15090
    }
15091
 
15092
    public void setCod(boolean cod) {
15093
      this.cod = cod;
15094
      setCodIsSet(true);
15095
    }
15096
 
15097
    public void unsetCod() {
15098
      __isset_bit_vector.clear(__COD_ISSET_ID);
15099
    }
15100
 
15101
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15102
    public boolean isSetCod() {
15103
      return __isset_bit_vector.get(__COD_ISSET_ID);
15104
    }
15105
 
15106
    public void setCodIsSet(boolean value) {
15107
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15108
    }
15109
 
6524 rajveer 15110
    public boolean isOtgAvailable() {
15111
      return this.otgAvailable;
15112
    }
15113
 
15114
    public void setOtgAvailable(boolean otgAvailable) {
15115
      this.otgAvailable = otgAvailable;
15116
      setOtgAvailableIsSet(true);
15117
    }
15118
 
15119
    public void unsetOtgAvailable() {
15120
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15121
    }
15122
 
15123
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15124
    public boolean isSetOtgAvailable() {
15125
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15126
    }
15127
 
15128
    public void setOtgAvailableIsSet(boolean value) {
15129
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15130
    }
15131
 
6322 amar.kumar 15132
    public void setFieldValue(_Fields field, Object value) {
15133
      switch (field) {
15134
      case PROVIDER_ID:
15135
        if (value == null) {
15136
          unsetProviderId();
15137
        } else {
15138
          setProviderId((Long)value);
15139
        }
15140
        break;
15141
 
15142
      case PINCODE:
15143
        if (value == null) {
15144
          unsetPincode();
15145
        } else {
15146
          setPincode((String)value);
15147
        }
15148
        break;
15149
 
15150
      case EXP:
15151
        if (value == null) {
15152
          unsetExp();
15153
        } else {
15154
          setExp((Boolean)value);
15155
        }
15156
        break;
15157
 
15158
      case COD:
15159
        if (value == null) {
15160
          unsetCod();
15161
        } else {
15162
          setCod((Boolean)value);
15163
        }
15164
        break;
15165
 
6524 rajveer 15166
      case OTG_AVAILABLE:
15167
        if (value == null) {
15168
          unsetOtgAvailable();
15169
        } else {
15170
          setOtgAvailable((Boolean)value);
15171
        }
15172
        break;
15173
 
6322 amar.kumar 15174
      }
15175
    }
15176
 
15177
    public Object getFieldValue(_Fields field) {
15178
      switch (field) {
15179
      case PROVIDER_ID:
15180
        return Long.valueOf(getProviderId());
15181
 
15182
      case PINCODE:
15183
        return getPincode();
15184
 
15185
      case EXP:
15186
        return Boolean.valueOf(isExp());
15187
 
15188
      case COD:
15189
        return Boolean.valueOf(isCod());
15190
 
6524 rajveer 15191
      case OTG_AVAILABLE:
15192
        return Boolean.valueOf(isOtgAvailable());
15193
 
6322 amar.kumar 15194
      }
15195
      throw new IllegalStateException();
15196
    }
15197
 
15198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15199
    public boolean isSet(_Fields field) {
15200
      if (field == null) {
15201
        throw new IllegalArgumentException();
15202
      }
15203
 
15204
      switch (field) {
15205
      case PROVIDER_ID:
15206
        return isSetProviderId();
15207
      case PINCODE:
15208
        return isSetPincode();
15209
      case EXP:
15210
        return isSetExp();
15211
      case COD:
15212
        return isSetCod();
6524 rajveer 15213
      case OTG_AVAILABLE:
15214
        return isSetOtgAvailable();
6322 amar.kumar 15215
      }
15216
      throw new IllegalStateException();
15217
    }
15218
 
15219
    @Override
15220
    public boolean equals(Object that) {
15221
      if (that == null)
15222
        return false;
15223
      if (that instanceof updatePincode_args)
15224
        return this.equals((updatePincode_args)that);
15225
      return false;
15226
    }
15227
 
15228
    public boolean equals(updatePincode_args that) {
15229
      if (that == null)
15230
        return false;
15231
 
15232
      boolean this_present_providerId = true;
15233
      boolean that_present_providerId = true;
15234
      if (this_present_providerId || that_present_providerId) {
15235
        if (!(this_present_providerId && that_present_providerId))
15236
          return false;
15237
        if (this.providerId != that.providerId)
15238
          return false;
15239
      }
15240
 
15241
      boolean this_present_pincode = true && this.isSetPincode();
15242
      boolean that_present_pincode = true && that.isSetPincode();
15243
      if (this_present_pincode || that_present_pincode) {
15244
        if (!(this_present_pincode && that_present_pincode))
15245
          return false;
15246
        if (!this.pincode.equals(that.pincode))
15247
          return false;
15248
      }
15249
 
15250
      boolean this_present_exp = true;
15251
      boolean that_present_exp = true;
15252
      if (this_present_exp || that_present_exp) {
15253
        if (!(this_present_exp && that_present_exp))
15254
          return false;
15255
        if (this.exp != that.exp)
15256
          return false;
15257
      }
15258
 
15259
      boolean this_present_cod = true;
15260
      boolean that_present_cod = true;
15261
      if (this_present_cod || that_present_cod) {
15262
        if (!(this_present_cod && that_present_cod))
15263
          return false;
15264
        if (this.cod != that.cod)
15265
          return false;
15266
      }
15267
 
6524 rajveer 15268
      boolean this_present_otgAvailable = true;
15269
      boolean that_present_otgAvailable = true;
15270
      if (this_present_otgAvailable || that_present_otgAvailable) {
15271
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15272
          return false;
15273
        if (this.otgAvailable != that.otgAvailable)
15274
          return false;
15275
      }
15276
 
6322 amar.kumar 15277
      return true;
15278
    }
15279
 
15280
    @Override
15281
    public int hashCode() {
15282
      return 0;
15283
    }
15284
 
15285
    public int compareTo(updatePincode_args other) {
15286
      if (!getClass().equals(other.getClass())) {
15287
        return getClass().getName().compareTo(other.getClass().getName());
15288
      }
15289
 
15290
      int lastComparison = 0;
15291
      updatePincode_args typedOther = (updatePincode_args)other;
15292
 
15293
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15294
      if (lastComparison != 0) {
15295
        return lastComparison;
15296
      }
15297
      if (isSetProviderId()) {
15298
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15299
        if (lastComparison != 0) {
15300
          return lastComparison;
15301
        }
15302
      }
15303
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15304
      if (lastComparison != 0) {
15305
        return lastComparison;
15306
      }
15307
      if (isSetPincode()) {
15308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15309
        if (lastComparison != 0) {
15310
          return lastComparison;
15311
        }
15312
      }
15313
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15314
      if (lastComparison != 0) {
15315
        return lastComparison;
15316
      }
15317
      if (isSetExp()) {
15318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15319
        if (lastComparison != 0) {
15320
          return lastComparison;
15321
        }
15322
      }
15323
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15324
      if (lastComparison != 0) {
15325
        return lastComparison;
15326
      }
15327
      if (isSetCod()) {
15328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15329
        if (lastComparison != 0) {
15330
          return lastComparison;
15331
        }
15332
      }
6524 rajveer 15333
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15334
      if (lastComparison != 0) {
15335
        return lastComparison;
15336
      }
15337
      if (isSetOtgAvailable()) {
15338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15339
        if (lastComparison != 0) {
15340
          return lastComparison;
15341
        }
15342
      }
6322 amar.kumar 15343
      return 0;
15344
    }
15345
 
15346
    public _Fields fieldForId(int fieldId) {
15347
      return _Fields.findByThriftId(fieldId);
15348
    }
15349
 
15350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15351
      org.apache.thrift.protocol.TField field;
15352
      iprot.readStructBegin();
15353
      while (true)
15354
      {
15355
        field = iprot.readFieldBegin();
15356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15357
          break;
15358
        }
15359
        switch (field.id) {
15360
          case 1: // PROVIDER_ID
15361
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15362
              this.providerId = iprot.readI64();
15363
              setProviderIdIsSet(true);
15364
            } else { 
15365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15366
            }
15367
            break;
15368
          case 2: // PINCODE
15369
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15370
              this.pincode = iprot.readString();
15371
            } else { 
15372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15373
            }
15374
            break;
15375
          case 3: // EXP
15376
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15377
              this.exp = iprot.readBool();
15378
              setExpIsSet(true);
15379
            } else { 
15380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15381
            }
15382
            break;
15383
          case 4: // COD
15384
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15385
              this.cod = iprot.readBool();
15386
              setCodIsSet(true);
15387
            } else { 
15388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15389
            }
15390
            break;
6524 rajveer 15391
          case 5: // OTG_AVAILABLE
15392
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15393
              this.otgAvailable = iprot.readBool();
15394
              setOtgAvailableIsSet(true);
15395
            } else { 
15396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15397
            }
15398
            break;
6322 amar.kumar 15399
          default:
15400
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15401
        }
15402
        iprot.readFieldEnd();
15403
      }
15404
      iprot.readStructEnd();
15405
      validate();
15406
    }
15407
 
15408
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15409
      validate();
15410
 
15411
      oprot.writeStructBegin(STRUCT_DESC);
15412
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15413
      oprot.writeI64(this.providerId);
15414
      oprot.writeFieldEnd();
15415
      if (this.pincode != null) {
15416
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15417
        oprot.writeString(this.pincode);
15418
        oprot.writeFieldEnd();
15419
      }
15420
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15421
      oprot.writeBool(this.exp);
15422
      oprot.writeFieldEnd();
15423
      oprot.writeFieldBegin(COD_FIELD_DESC);
15424
      oprot.writeBool(this.cod);
15425
      oprot.writeFieldEnd();
6524 rajveer 15426
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15427
      oprot.writeBool(this.otgAvailable);
15428
      oprot.writeFieldEnd();
6322 amar.kumar 15429
      oprot.writeFieldStop();
15430
      oprot.writeStructEnd();
15431
    }
15432
 
15433
    @Override
15434
    public String toString() {
15435
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15436
      boolean first = true;
15437
 
15438
      sb.append("providerId:");
15439
      sb.append(this.providerId);
15440
      first = false;
15441
      if (!first) sb.append(", ");
15442
      sb.append("pincode:");
15443
      if (this.pincode == null) {
15444
        sb.append("null");
15445
      } else {
15446
        sb.append(this.pincode);
15447
      }
15448
      first = false;
15449
      if (!first) sb.append(", ");
15450
      sb.append("exp:");
15451
      sb.append(this.exp);
15452
      first = false;
15453
      if (!first) sb.append(", ");
15454
      sb.append("cod:");
15455
      sb.append(this.cod);
15456
      first = false;
6524 rajveer 15457
      if (!first) sb.append(", ");
15458
      sb.append("otgAvailable:");
15459
      sb.append(this.otgAvailable);
15460
      first = false;
6322 amar.kumar 15461
      sb.append(")");
15462
      return sb.toString();
15463
    }
15464
 
15465
    public void validate() throws org.apache.thrift.TException {
15466
      // check for required fields
15467
    }
15468
 
15469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15470
      try {
15471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15472
      } catch (org.apache.thrift.TException te) {
15473
        throw new java.io.IOException(te);
15474
      }
15475
    }
15476
 
15477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15478
      try {
15479
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15480
        __isset_bit_vector = new BitSet(1);
15481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15482
      } catch (org.apache.thrift.TException te) {
15483
        throw new java.io.IOException(te);
15484
      }
15485
    }
15486
 
15487
  }
15488
 
15489
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15491
 
15492
 
15493
 
15494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15496
;
15497
 
15498
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15499
 
15500
      static {
15501
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15502
          byName.put(field.getFieldName(), field);
15503
        }
15504
      }
15505
 
15506
      /**
15507
       * Find the _Fields constant that matches fieldId, or null if its not found.
15508
       */
15509
      public static _Fields findByThriftId(int fieldId) {
15510
        switch(fieldId) {
15511
          default:
15512
            return null;
15513
        }
15514
      }
15515
 
15516
      /**
15517
       * Find the _Fields constant that matches fieldId, throwing an exception
15518
       * if it is not found.
15519
       */
15520
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15521
        _Fields fields = findByThriftId(fieldId);
15522
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15523
        return fields;
15524
      }
15525
 
15526
      /**
15527
       * Find the _Fields constant that matches name, or null if its not found.
15528
       */
15529
      public static _Fields findByName(String name) {
15530
        return byName.get(name);
15531
      }
15532
 
15533
      private final short _thriftId;
15534
      private final String _fieldName;
15535
 
15536
      _Fields(short thriftId, String fieldName) {
15537
        _thriftId = thriftId;
15538
        _fieldName = fieldName;
15539
      }
15540
 
15541
      public short getThriftFieldId() {
15542
        return _thriftId;
15543
      }
15544
 
15545
      public String getFieldName() {
15546
        return _fieldName;
15547
      }
15548
    }
15549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15550
    static {
15551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15552
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15553
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15554
    }
15555
 
15556
    public updatePincode_result() {
15557
    }
15558
 
15559
    /**
15560
     * Performs a deep copy on <i>other</i>.
15561
     */
15562
    public updatePincode_result(updatePincode_result other) {
15563
    }
15564
 
15565
    public updatePincode_result deepCopy() {
15566
      return new updatePincode_result(this);
15567
    }
15568
 
15569
    @Override
15570
    public void clear() {
15571
    }
15572
 
15573
    public void setFieldValue(_Fields field, Object value) {
15574
      switch (field) {
15575
      }
15576
    }
15577
 
15578
    public Object getFieldValue(_Fields field) {
15579
      switch (field) {
15580
      }
15581
      throw new IllegalStateException();
15582
    }
15583
 
15584
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15585
    public boolean isSet(_Fields field) {
15586
      if (field == null) {
15587
        throw new IllegalArgumentException();
15588
      }
15589
 
15590
      switch (field) {
15591
      }
15592
      throw new IllegalStateException();
15593
    }
15594
 
15595
    @Override
15596
    public boolean equals(Object that) {
15597
      if (that == null)
15598
        return false;
15599
      if (that instanceof updatePincode_result)
15600
        return this.equals((updatePincode_result)that);
15601
      return false;
15602
    }
15603
 
15604
    public boolean equals(updatePincode_result that) {
15605
      if (that == null)
15606
        return false;
15607
 
15608
      return true;
15609
    }
15610
 
15611
    @Override
15612
    public int hashCode() {
15613
      return 0;
15614
    }
15615
 
15616
    public int compareTo(updatePincode_result other) {
15617
      if (!getClass().equals(other.getClass())) {
15618
        return getClass().getName().compareTo(other.getClass().getName());
15619
      }
15620
 
15621
      int lastComparison = 0;
15622
      updatePincode_result typedOther = (updatePincode_result)other;
15623
 
15624
      return 0;
15625
    }
15626
 
15627
    public _Fields fieldForId(int fieldId) {
15628
      return _Fields.findByThriftId(fieldId);
15629
    }
15630
 
15631
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15632
      org.apache.thrift.protocol.TField field;
15633
      iprot.readStructBegin();
15634
      while (true)
15635
      {
15636
        field = iprot.readFieldBegin();
15637
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15638
          break;
15639
        }
15640
        switch (field.id) {
15641
          default:
15642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15643
        }
15644
        iprot.readFieldEnd();
15645
      }
15646
      iprot.readStructEnd();
15647
      validate();
15648
    }
15649
 
15650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15651
      oprot.writeStructBegin(STRUCT_DESC);
15652
 
15653
      oprot.writeFieldStop();
15654
      oprot.writeStructEnd();
15655
    }
15656
 
15657
    @Override
15658
    public String toString() {
15659
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15660
      boolean first = true;
15661
 
15662
      sb.append(")");
15663
      return sb.toString();
15664
    }
15665
 
15666
    public void validate() throws org.apache.thrift.TException {
15667
      // check for required fields
15668
    }
15669
 
15670
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15671
      try {
15672
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15673
      } catch (org.apache.thrift.TException te) {
15674
        throw new java.io.IOException(te);
15675
      }
15676
    }
15677
 
15678
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15679
      try {
15680
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15681
      } catch (org.apache.thrift.TException te) {
15682
        throw new java.io.IOException(te);
15683
      }
15684
    }
15685
 
15686
  }
15687
 
7567 rajveer 15688
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15689
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15690
 
15691
    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);
15692
    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);
15693
    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 15694
    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 15695
 
15696
    private long providerId; // required
15697
    private boolean cod; // required
15698
    private List<String> awbs; // required
13146 manish.sha 15699
    private long awbUsedFor; // required
7567 rajveer 15700
 
15701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15703
      PROVIDER_ID((short)1, "providerId"),
15704
      COD((short)2, "cod"),
13146 manish.sha 15705
      AWBS((short)3, "awbs"),
15706
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15707
 
15708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15709
 
15710
      static {
15711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15712
          byName.put(field.getFieldName(), field);
15713
        }
15714
      }
15715
 
15716
      /**
15717
       * Find the _Fields constant that matches fieldId, or null if its not found.
15718
       */
15719
      public static _Fields findByThriftId(int fieldId) {
15720
        switch(fieldId) {
15721
          case 1: // PROVIDER_ID
15722
            return PROVIDER_ID;
15723
          case 2: // COD
15724
            return COD;
15725
          case 3: // AWBS
15726
            return AWBS;
13146 manish.sha 15727
          case 4: // AWB_USED_FOR
15728
            return AWB_USED_FOR;
7567 rajveer 15729
          default:
15730
            return null;
15731
        }
15732
      }
15733
 
15734
      /**
15735
       * Find the _Fields constant that matches fieldId, throwing an exception
15736
       * if it is not found.
15737
       */
15738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15739
        _Fields fields = findByThriftId(fieldId);
15740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15741
        return fields;
15742
      }
15743
 
15744
      /**
15745
       * Find the _Fields constant that matches name, or null if its not found.
15746
       */
15747
      public static _Fields findByName(String name) {
15748
        return byName.get(name);
15749
      }
15750
 
15751
      private final short _thriftId;
15752
      private final String _fieldName;
15753
 
15754
      _Fields(short thriftId, String fieldName) {
15755
        _thriftId = thriftId;
15756
        _fieldName = fieldName;
15757
      }
15758
 
15759
      public short getThriftFieldId() {
15760
        return _thriftId;
15761
      }
15762
 
15763
      public String getFieldName() {
15764
        return _fieldName;
15765
      }
15766
    }
15767
 
15768
    // isset id assignments
15769
    private static final int __PROVIDERID_ISSET_ID = 0;
15770
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15771
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15772
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15773
 
15774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15775
    static {
15776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15777
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15779
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15781
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15782
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15783
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15784
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15788
    }
15789
 
15790
    public addNewAwbs_args() {
15791
    }
15792
 
15793
    public addNewAwbs_args(
15794
      long providerId,
15795
      boolean cod,
13146 manish.sha 15796
      List<String> awbs,
15797
      long awbUsedFor)
7567 rajveer 15798
    {
15799
      this();
15800
      this.providerId = providerId;
15801
      setProviderIdIsSet(true);
15802
      this.cod = cod;
15803
      setCodIsSet(true);
15804
      this.awbs = awbs;
13146 manish.sha 15805
      this.awbUsedFor = awbUsedFor;
15806
      setAwbUsedForIsSet(true);
7567 rajveer 15807
    }
15808
 
15809
    /**
15810
     * Performs a deep copy on <i>other</i>.
15811
     */
15812
    public addNewAwbs_args(addNewAwbs_args other) {
15813
      __isset_bit_vector.clear();
15814
      __isset_bit_vector.or(other.__isset_bit_vector);
15815
      this.providerId = other.providerId;
15816
      this.cod = other.cod;
15817
      if (other.isSetAwbs()) {
15818
        List<String> __this__awbs = new ArrayList<String>();
15819
        for (String other_element : other.awbs) {
15820
          __this__awbs.add(other_element);
15821
        }
15822
        this.awbs = __this__awbs;
15823
      }
13146 manish.sha 15824
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15825
    }
15826
 
15827
    public addNewAwbs_args deepCopy() {
15828
      return new addNewAwbs_args(this);
15829
    }
15830
 
15831
    @Override
15832
    public void clear() {
15833
      setProviderIdIsSet(false);
15834
      this.providerId = 0;
15835
      setCodIsSet(false);
15836
      this.cod = false;
15837
      this.awbs = null;
13146 manish.sha 15838
      setAwbUsedForIsSet(false);
15839
      this.awbUsedFor = 0;
7567 rajveer 15840
    }
15841
 
15842
    public long getProviderId() {
15843
      return this.providerId;
15844
    }
15845
 
15846
    public void setProviderId(long providerId) {
15847
      this.providerId = providerId;
15848
      setProviderIdIsSet(true);
15849
    }
15850
 
15851
    public void unsetProviderId() {
15852
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15853
    }
15854
 
15855
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15856
    public boolean isSetProviderId() {
15857
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15858
    }
15859
 
15860
    public void setProviderIdIsSet(boolean value) {
15861
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15862
    }
15863
 
15864
    public boolean isCod() {
15865
      return this.cod;
15866
    }
15867
 
15868
    public void setCod(boolean cod) {
15869
      this.cod = cod;
15870
      setCodIsSet(true);
15871
    }
15872
 
15873
    public void unsetCod() {
15874
      __isset_bit_vector.clear(__COD_ISSET_ID);
15875
    }
15876
 
15877
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15878
    public boolean isSetCod() {
15879
      return __isset_bit_vector.get(__COD_ISSET_ID);
15880
    }
15881
 
15882
    public void setCodIsSet(boolean value) {
15883
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15884
    }
15885
 
15886
    public int getAwbsSize() {
15887
      return (this.awbs == null) ? 0 : this.awbs.size();
15888
    }
15889
 
15890
    public java.util.Iterator<String> getAwbsIterator() {
15891
      return (this.awbs == null) ? null : this.awbs.iterator();
15892
    }
15893
 
15894
    public void addToAwbs(String elem) {
15895
      if (this.awbs == null) {
15896
        this.awbs = new ArrayList<String>();
15897
      }
15898
      this.awbs.add(elem);
15899
    }
15900
 
15901
    public List<String> getAwbs() {
15902
      return this.awbs;
15903
    }
15904
 
15905
    public void setAwbs(List<String> awbs) {
15906
      this.awbs = awbs;
15907
    }
15908
 
15909
    public void unsetAwbs() {
15910
      this.awbs = null;
15911
    }
15912
 
15913
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15914
    public boolean isSetAwbs() {
15915
      return this.awbs != null;
15916
    }
15917
 
15918
    public void setAwbsIsSet(boolean value) {
15919
      if (!value) {
15920
        this.awbs = null;
15921
      }
15922
    }
15923
 
13146 manish.sha 15924
    public long getAwbUsedFor() {
15925
      return this.awbUsedFor;
15926
    }
15927
 
15928
    public void setAwbUsedFor(long awbUsedFor) {
15929
      this.awbUsedFor = awbUsedFor;
15930
      setAwbUsedForIsSet(true);
15931
    }
15932
 
15933
    public void unsetAwbUsedFor() {
15934
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
15935
    }
15936
 
15937
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
15938
    public boolean isSetAwbUsedFor() {
15939
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
15940
    }
15941
 
15942
    public void setAwbUsedForIsSet(boolean value) {
15943
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
15944
    }
15945
 
7567 rajveer 15946
    public void setFieldValue(_Fields field, Object value) {
15947
      switch (field) {
15948
      case PROVIDER_ID:
15949
        if (value == null) {
15950
          unsetProviderId();
15951
        } else {
15952
          setProviderId((Long)value);
15953
        }
15954
        break;
15955
 
15956
      case COD:
15957
        if (value == null) {
15958
          unsetCod();
15959
        } else {
15960
          setCod((Boolean)value);
15961
        }
15962
        break;
15963
 
15964
      case AWBS:
15965
        if (value == null) {
15966
          unsetAwbs();
15967
        } else {
15968
          setAwbs((List<String>)value);
15969
        }
15970
        break;
15971
 
13146 manish.sha 15972
      case AWB_USED_FOR:
15973
        if (value == null) {
15974
          unsetAwbUsedFor();
15975
        } else {
15976
          setAwbUsedFor((Long)value);
15977
        }
15978
        break;
15979
 
7567 rajveer 15980
      }
15981
    }
15982
 
15983
    public Object getFieldValue(_Fields field) {
15984
      switch (field) {
15985
      case PROVIDER_ID:
15986
        return Long.valueOf(getProviderId());
15987
 
15988
      case COD:
15989
        return Boolean.valueOf(isCod());
15990
 
15991
      case AWBS:
15992
        return getAwbs();
15993
 
13146 manish.sha 15994
      case AWB_USED_FOR:
15995
        return Long.valueOf(getAwbUsedFor());
15996
 
7567 rajveer 15997
      }
15998
      throw new IllegalStateException();
15999
    }
16000
 
16001
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16002
    public boolean isSet(_Fields field) {
16003
      if (field == null) {
16004
        throw new IllegalArgumentException();
16005
      }
16006
 
16007
      switch (field) {
16008
      case PROVIDER_ID:
16009
        return isSetProviderId();
16010
      case COD:
16011
        return isSetCod();
16012
      case AWBS:
16013
        return isSetAwbs();
13146 manish.sha 16014
      case AWB_USED_FOR:
16015
        return isSetAwbUsedFor();
7567 rajveer 16016
      }
16017
      throw new IllegalStateException();
16018
    }
16019
 
16020
    @Override
16021
    public boolean equals(Object that) {
16022
      if (that == null)
16023
        return false;
16024
      if (that instanceof addNewAwbs_args)
16025
        return this.equals((addNewAwbs_args)that);
16026
      return false;
16027
    }
16028
 
16029
    public boolean equals(addNewAwbs_args that) {
16030
      if (that == null)
16031
        return false;
16032
 
16033
      boolean this_present_providerId = true;
16034
      boolean that_present_providerId = true;
16035
      if (this_present_providerId || that_present_providerId) {
16036
        if (!(this_present_providerId && that_present_providerId))
16037
          return false;
16038
        if (this.providerId != that.providerId)
16039
          return false;
16040
      }
16041
 
16042
      boolean this_present_cod = true;
16043
      boolean that_present_cod = true;
16044
      if (this_present_cod || that_present_cod) {
16045
        if (!(this_present_cod && that_present_cod))
16046
          return false;
16047
        if (this.cod != that.cod)
16048
          return false;
16049
      }
16050
 
16051
      boolean this_present_awbs = true && this.isSetAwbs();
16052
      boolean that_present_awbs = true && that.isSetAwbs();
16053
      if (this_present_awbs || that_present_awbs) {
16054
        if (!(this_present_awbs && that_present_awbs))
16055
          return false;
16056
        if (!this.awbs.equals(that.awbs))
16057
          return false;
16058
      }
16059
 
13146 manish.sha 16060
      boolean this_present_awbUsedFor = true;
16061
      boolean that_present_awbUsedFor = true;
16062
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16063
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16064
          return false;
16065
        if (this.awbUsedFor != that.awbUsedFor)
16066
          return false;
16067
      }
16068
 
7567 rajveer 16069
      return true;
16070
    }
16071
 
16072
    @Override
16073
    public int hashCode() {
16074
      return 0;
16075
    }
16076
 
16077
    public int compareTo(addNewAwbs_args other) {
16078
      if (!getClass().equals(other.getClass())) {
16079
        return getClass().getName().compareTo(other.getClass().getName());
16080
      }
16081
 
16082
      int lastComparison = 0;
16083
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16084
 
16085
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16086
      if (lastComparison != 0) {
16087
        return lastComparison;
16088
      }
16089
      if (isSetProviderId()) {
16090
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16091
        if (lastComparison != 0) {
16092
          return lastComparison;
16093
        }
16094
      }
16095
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16096
      if (lastComparison != 0) {
16097
        return lastComparison;
16098
      }
16099
      if (isSetCod()) {
16100
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16101
        if (lastComparison != 0) {
16102
          return lastComparison;
16103
        }
16104
      }
16105
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16106
      if (lastComparison != 0) {
16107
        return lastComparison;
16108
      }
16109
      if (isSetAwbs()) {
16110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16111
        if (lastComparison != 0) {
16112
          return lastComparison;
16113
        }
16114
      }
13146 manish.sha 16115
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16116
      if (lastComparison != 0) {
16117
        return lastComparison;
16118
      }
16119
      if (isSetAwbUsedFor()) {
16120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16121
        if (lastComparison != 0) {
16122
          return lastComparison;
16123
        }
16124
      }
7567 rajveer 16125
      return 0;
16126
    }
16127
 
16128
    public _Fields fieldForId(int fieldId) {
16129
      return _Fields.findByThriftId(fieldId);
16130
    }
16131
 
16132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16133
      org.apache.thrift.protocol.TField field;
16134
      iprot.readStructBegin();
16135
      while (true)
16136
      {
16137
        field = iprot.readFieldBegin();
16138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16139
          break;
16140
        }
16141
        switch (field.id) {
16142
          case 1: // PROVIDER_ID
16143
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16144
              this.providerId = iprot.readI64();
16145
              setProviderIdIsSet(true);
16146
            } else { 
16147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16148
            }
16149
            break;
16150
          case 2: // COD
16151
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16152
              this.cod = iprot.readBool();
16153
              setCodIsSet(true);
16154
            } else { 
16155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16156
            }
16157
            break;
16158
          case 3: // AWBS
16159
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16160
              {
7792 anupam.sin 16161
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16162
                this.awbs = new ArrayList<String>(_list24.size);
16163
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16164
                {
7792 anupam.sin 16165
                  String _elem26; // required
16166
                  _elem26 = iprot.readString();
16167
                  this.awbs.add(_elem26);
7567 rajveer 16168
                }
16169
                iprot.readListEnd();
16170
              }
16171
            } else { 
16172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16173
            }
16174
            break;
13146 manish.sha 16175
          case 4: // AWB_USED_FOR
16176
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16177
              this.awbUsedFor = iprot.readI64();
16178
              setAwbUsedForIsSet(true);
16179
            } else { 
16180
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16181
            }
16182
            break;
7567 rajveer 16183
          default:
16184
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16185
        }
16186
        iprot.readFieldEnd();
16187
      }
16188
      iprot.readStructEnd();
16189
      validate();
16190
    }
16191
 
16192
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16193
      validate();
16194
 
16195
      oprot.writeStructBegin(STRUCT_DESC);
16196
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16197
      oprot.writeI64(this.providerId);
16198
      oprot.writeFieldEnd();
16199
      oprot.writeFieldBegin(COD_FIELD_DESC);
16200
      oprot.writeBool(this.cod);
16201
      oprot.writeFieldEnd();
16202
      if (this.awbs != null) {
16203
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16204
        {
16205
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16206
          for (String _iter27 : this.awbs)
7567 rajveer 16207
          {
7792 anupam.sin 16208
            oprot.writeString(_iter27);
7567 rajveer 16209
          }
16210
          oprot.writeListEnd();
16211
        }
16212
        oprot.writeFieldEnd();
16213
      }
13146 manish.sha 16214
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16215
      oprot.writeI64(this.awbUsedFor);
16216
      oprot.writeFieldEnd();
7567 rajveer 16217
      oprot.writeFieldStop();
16218
      oprot.writeStructEnd();
16219
    }
16220
 
16221
    @Override
16222
    public String toString() {
16223
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16224
      boolean first = true;
16225
 
16226
      sb.append("providerId:");
16227
      sb.append(this.providerId);
16228
      first = false;
16229
      if (!first) sb.append(", ");
16230
      sb.append("cod:");
16231
      sb.append(this.cod);
16232
      first = false;
16233
      if (!first) sb.append(", ");
16234
      sb.append("awbs:");
16235
      if (this.awbs == null) {
16236
        sb.append("null");
16237
      } else {
16238
        sb.append(this.awbs);
16239
      }
16240
      first = false;
13146 manish.sha 16241
      if (!first) sb.append(", ");
16242
      sb.append("awbUsedFor:");
16243
      sb.append(this.awbUsedFor);
16244
      first = false;
7567 rajveer 16245
      sb.append(")");
16246
      return sb.toString();
16247
    }
16248
 
16249
    public void validate() throws org.apache.thrift.TException {
16250
      // check for required fields
16251
    }
16252
 
16253
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16254
      try {
16255
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16256
      } catch (org.apache.thrift.TException te) {
16257
        throw new java.io.IOException(te);
16258
      }
16259
    }
16260
 
16261
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16262
      try {
16263
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16264
        __isset_bit_vector = new BitSet(1);
16265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16266
      } catch (org.apache.thrift.TException te) {
16267
        throw new java.io.IOException(te);
16268
      }
16269
    }
16270
 
16271
  }
16272
 
16273
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16275
 
16276
    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);
16277
 
16278
    private boolean success; // required
16279
 
16280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16282
      SUCCESS((short)0, "success");
16283
 
16284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16285
 
16286
      static {
16287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16288
          byName.put(field.getFieldName(), field);
16289
        }
16290
      }
16291
 
16292
      /**
16293
       * Find the _Fields constant that matches fieldId, or null if its not found.
16294
       */
16295
      public static _Fields findByThriftId(int fieldId) {
16296
        switch(fieldId) {
16297
          case 0: // SUCCESS
16298
            return SUCCESS;
16299
          default:
16300
            return null;
16301
        }
16302
      }
16303
 
16304
      /**
16305
       * Find the _Fields constant that matches fieldId, throwing an exception
16306
       * if it is not found.
16307
       */
16308
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16309
        _Fields fields = findByThriftId(fieldId);
16310
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16311
        return fields;
16312
      }
16313
 
16314
      /**
16315
       * Find the _Fields constant that matches name, or null if its not found.
16316
       */
16317
      public static _Fields findByName(String name) {
16318
        return byName.get(name);
16319
      }
16320
 
16321
      private final short _thriftId;
16322
      private final String _fieldName;
16323
 
16324
      _Fields(short thriftId, String fieldName) {
16325
        _thriftId = thriftId;
16326
        _fieldName = fieldName;
16327
      }
16328
 
16329
      public short getThriftFieldId() {
16330
        return _thriftId;
16331
      }
16332
 
16333
      public String getFieldName() {
16334
        return _fieldName;
16335
      }
16336
    }
16337
 
16338
    // isset id assignments
16339
    private static final int __SUCCESS_ISSET_ID = 0;
16340
    private BitSet __isset_bit_vector = new BitSet(1);
16341
 
16342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16343
    static {
16344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16345
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16346
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16347
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16348
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16349
    }
16350
 
16351
    public addNewAwbs_result() {
16352
    }
16353
 
16354
    public addNewAwbs_result(
16355
      boolean success)
16356
    {
16357
      this();
16358
      this.success = success;
16359
      setSuccessIsSet(true);
16360
    }
16361
 
16362
    /**
16363
     * Performs a deep copy on <i>other</i>.
16364
     */
16365
    public addNewAwbs_result(addNewAwbs_result other) {
16366
      __isset_bit_vector.clear();
16367
      __isset_bit_vector.or(other.__isset_bit_vector);
16368
      this.success = other.success;
16369
    }
16370
 
16371
    public addNewAwbs_result deepCopy() {
16372
      return new addNewAwbs_result(this);
16373
    }
16374
 
16375
    @Override
16376
    public void clear() {
16377
      setSuccessIsSet(false);
16378
      this.success = false;
16379
    }
16380
 
16381
    public boolean isSuccess() {
16382
      return this.success;
16383
    }
16384
 
16385
    public void setSuccess(boolean success) {
16386
      this.success = success;
16387
      setSuccessIsSet(true);
16388
    }
16389
 
16390
    public void unsetSuccess() {
16391
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16392
    }
16393
 
16394
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16395
    public boolean isSetSuccess() {
16396
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16397
    }
16398
 
16399
    public void setSuccessIsSet(boolean value) {
16400
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16401
    }
16402
 
16403
    public void setFieldValue(_Fields field, Object value) {
16404
      switch (field) {
16405
      case SUCCESS:
16406
        if (value == null) {
16407
          unsetSuccess();
16408
        } else {
16409
          setSuccess((Boolean)value);
16410
        }
16411
        break;
16412
 
16413
      }
16414
    }
16415
 
16416
    public Object getFieldValue(_Fields field) {
16417
      switch (field) {
16418
      case SUCCESS:
16419
        return Boolean.valueOf(isSuccess());
16420
 
16421
      }
16422
      throw new IllegalStateException();
16423
    }
16424
 
16425
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16426
    public boolean isSet(_Fields field) {
16427
      if (field == null) {
16428
        throw new IllegalArgumentException();
16429
      }
16430
 
16431
      switch (field) {
16432
      case SUCCESS:
16433
        return isSetSuccess();
16434
      }
16435
      throw new IllegalStateException();
16436
    }
16437
 
16438
    @Override
16439
    public boolean equals(Object that) {
16440
      if (that == null)
16441
        return false;
16442
      if (that instanceof addNewAwbs_result)
16443
        return this.equals((addNewAwbs_result)that);
16444
      return false;
16445
    }
16446
 
16447
    public boolean equals(addNewAwbs_result that) {
16448
      if (that == null)
16449
        return false;
16450
 
16451
      boolean this_present_success = true;
16452
      boolean that_present_success = true;
16453
      if (this_present_success || that_present_success) {
16454
        if (!(this_present_success && that_present_success))
16455
          return false;
16456
        if (this.success != that.success)
16457
          return false;
16458
      }
16459
 
16460
      return true;
16461
    }
16462
 
16463
    @Override
16464
    public int hashCode() {
16465
      return 0;
16466
    }
16467
 
16468
    public int compareTo(addNewAwbs_result other) {
16469
      if (!getClass().equals(other.getClass())) {
16470
        return getClass().getName().compareTo(other.getClass().getName());
16471
      }
16472
 
16473
      int lastComparison = 0;
16474
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16475
 
16476
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16477
      if (lastComparison != 0) {
16478
        return lastComparison;
16479
      }
16480
      if (isSetSuccess()) {
16481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16482
        if (lastComparison != 0) {
16483
          return lastComparison;
16484
        }
16485
      }
16486
      return 0;
16487
    }
16488
 
16489
    public _Fields fieldForId(int fieldId) {
16490
      return _Fields.findByThriftId(fieldId);
16491
    }
16492
 
16493
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16494
      org.apache.thrift.protocol.TField field;
16495
      iprot.readStructBegin();
16496
      while (true)
16497
      {
16498
        field = iprot.readFieldBegin();
16499
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16500
          break;
16501
        }
16502
        switch (field.id) {
16503
          case 0: // SUCCESS
16504
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16505
              this.success = iprot.readBool();
16506
              setSuccessIsSet(true);
16507
            } else { 
16508
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16509
            }
16510
            break;
16511
          default:
16512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16513
        }
16514
        iprot.readFieldEnd();
16515
      }
16516
      iprot.readStructEnd();
16517
      validate();
16518
    }
16519
 
16520
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16521
      oprot.writeStructBegin(STRUCT_DESC);
16522
 
16523
      if (this.isSetSuccess()) {
16524
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16525
        oprot.writeBool(this.success);
16526
        oprot.writeFieldEnd();
16527
      }
16528
      oprot.writeFieldStop();
16529
      oprot.writeStructEnd();
16530
    }
16531
 
16532
    @Override
16533
    public String toString() {
16534
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16535
      boolean first = true;
16536
 
16537
      sb.append("success:");
16538
      sb.append(this.success);
16539
      first = false;
16540
      sb.append(")");
16541
      return sb.toString();
16542
    }
16543
 
16544
    public void validate() throws org.apache.thrift.TException {
16545
      // check for required fields
16546
    }
16547
 
16548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16549
      try {
16550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16551
      } catch (org.apache.thrift.TException te) {
16552
        throw new java.io.IOException(te);
16553
      }
16554
    }
16555
 
16556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16557
      try {
16558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16559
      } catch (org.apache.thrift.TException te) {
16560
        throw new java.io.IOException(te);
16561
      }
16562
    }
16563
 
16564
  }
16565
 
7788 manish.sha 16566
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16568
 
7788 manish.sha 16569
    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);
16570
    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 16571
 
7788 manish.sha 16572
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16573
    private boolean runCompleteUpdate; // required
7737 manish.sha 16574
 
16575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16577
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16578
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16579
 
16580
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16581
 
16582
      static {
16583
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16584
          byName.put(field.getFieldName(), field);
16585
        }
16586
      }
16587
 
16588
      /**
16589
       * Find the _Fields constant that matches fieldId, or null if its not found.
16590
       */
16591
      public static _Fields findByThriftId(int fieldId) {
16592
        switch(fieldId) {
7788 manish.sha 16593
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16594
            return LOGISTICS_LOCATION_INFO_LIST;
16595
          case 2: // RUN_COMPLETE_UPDATE
16596
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16597
          default:
16598
            return null;
16599
        }
16600
      }
16601
 
16602
      /**
16603
       * Find the _Fields constant that matches fieldId, throwing an exception
16604
       * if it is not found.
16605
       */
16606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16607
        _Fields fields = findByThriftId(fieldId);
16608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16609
        return fields;
16610
      }
16611
 
16612
      /**
16613
       * Find the _Fields constant that matches name, or null if its not found.
16614
       */
16615
      public static _Fields findByName(String name) {
16616
        return byName.get(name);
16617
      }
16618
 
16619
      private final short _thriftId;
16620
      private final String _fieldName;
16621
 
16622
      _Fields(short thriftId, String fieldName) {
16623
        _thriftId = thriftId;
16624
        _fieldName = fieldName;
16625
      }
16626
 
16627
      public short getThriftFieldId() {
16628
        return _thriftId;
16629
      }
16630
 
16631
      public String getFieldName() {
16632
        return _fieldName;
16633
      }
16634
    }
16635
 
16636
    // isset id assignments
7788 manish.sha 16637
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16638
    private BitSet __isset_bit_vector = new BitSet(1);
16639
 
16640
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16641
    static {
16642
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16643
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16644
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16645
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16646
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16650
    }
16651
 
7788 manish.sha 16652
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16653
    }
16654
 
7788 manish.sha 16655
    public runLogisticsLocationInfoUpdate_args(
16656
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16657
      boolean runCompleteUpdate)
7737 manish.sha 16658
    {
16659
      this();
7788 manish.sha 16660
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16661
      this.runCompleteUpdate = runCompleteUpdate;
16662
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16663
    }
16664
 
16665
    /**
16666
     * Performs a deep copy on <i>other</i>.
16667
     */
7788 manish.sha 16668
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16669
      __isset_bit_vector.clear();
16670
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16671
      if (other.isSetLogisticsLocationInfoList()) {
16672
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16673
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16674
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16675
        }
16676
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16677
      }
7788 manish.sha 16678
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16679
    }
16680
 
7788 manish.sha 16681
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16682
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16683
    }
16684
 
16685
    @Override
16686
    public void clear() {
7788 manish.sha 16687
      this.logisticsLocationInfoList = null;
16688
      setRunCompleteUpdateIsSet(false);
16689
      this.runCompleteUpdate = false;
7737 manish.sha 16690
    }
16691
 
7788 manish.sha 16692
    public int getLogisticsLocationInfoListSize() {
16693
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16694
    }
16695
 
7788 manish.sha 16696
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16697
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16698
    }
16699
 
7788 manish.sha 16700
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16701
      if (this.logisticsLocationInfoList == null) {
16702
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16703
      }
16704
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16705
    }
16706
 
7788 manish.sha 16707
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16708
      return this.logisticsLocationInfoList;
7737 manish.sha 16709
    }
16710
 
7788 manish.sha 16711
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16712
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16713
    }
16714
 
7788 manish.sha 16715
    public void unsetLogisticsLocationInfoList() {
16716
      this.logisticsLocationInfoList = null;
7737 manish.sha 16717
    }
16718
 
7788 manish.sha 16719
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16720
    public boolean isSetLogisticsLocationInfoList() {
16721
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16722
    }
16723
 
7788 manish.sha 16724
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16725
      if (!value) {
16726
        this.logisticsLocationInfoList = null;
16727
      }
7737 manish.sha 16728
    }
16729
 
7788 manish.sha 16730
    public boolean isRunCompleteUpdate() {
16731
      return this.runCompleteUpdate;
7737 manish.sha 16732
    }
16733
 
7788 manish.sha 16734
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16735
      this.runCompleteUpdate = runCompleteUpdate;
16736
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16737
    }
16738
 
7788 manish.sha 16739
    public void unsetRunCompleteUpdate() {
16740
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16741
    }
16742
 
16743
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16744
    public boolean isSetRunCompleteUpdate() {
16745
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16746
    }
16747
 
16748
    public void setRunCompleteUpdateIsSet(boolean value) {
16749
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16750
    }
16751
 
7737 manish.sha 16752
    public void setFieldValue(_Fields field, Object value) {
16753
      switch (field) {
7788 manish.sha 16754
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16755
        if (value == null) {
7788 manish.sha 16756
          unsetLogisticsLocationInfoList();
7737 manish.sha 16757
        } else {
7788 manish.sha 16758
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16759
        }
16760
        break;
16761
 
7788 manish.sha 16762
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16763
        if (value == null) {
7788 manish.sha 16764
          unsetRunCompleteUpdate();
7737 manish.sha 16765
        } else {
7788 manish.sha 16766
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16767
        }
16768
        break;
16769
 
16770
      }
16771
    }
16772
 
16773
    public Object getFieldValue(_Fields field) {
16774
      switch (field) {
7788 manish.sha 16775
      case LOGISTICS_LOCATION_INFO_LIST:
16776
        return getLogisticsLocationInfoList();
7737 manish.sha 16777
 
7788 manish.sha 16778
      case RUN_COMPLETE_UPDATE:
16779
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16780
 
16781
      }
16782
      throw new IllegalStateException();
16783
    }
16784
 
16785
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16786
    public boolean isSet(_Fields field) {
16787
      if (field == null) {
16788
        throw new IllegalArgumentException();
16789
      }
16790
 
16791
      switch (field) {
7788 manish.sha 16792
      case LOGISTICS_LOCATION_INFO_LIST:
16793
        return isSetLogisticsLocationInfoList();
16794
      case RUN_COMPLETE_UPDATE:
16795
        return isSetRunCompleteUpdate();
7737 manish.sha 16796
      }
16797
      throw new IllegalStateException();
16798
    }
16799
 
16800
    @Override
16801
    public boolean equals(Object that) {
16802
      if (that == null)
16803
        return false;
7788 manish.sha 16804
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16805
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16806
      return false;
16807
    }
16808
 
7788 manish.sha 16809
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16810
      if (that == null)
16811
        return false;
16812
 
7788 manish.sha 16813
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16814
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16815
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16816
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16817
          return false;
7788 manish.sha 16818
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16819
          return false;
16820
      }
16821
 
7788 manish.sha 16822
      boolean this_present_runCompleteUpdate = true;
16823
      boolean that_present_runCompleteUpdate = true;
16824
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16825
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16826
          return false;
7788 manish.sha 16827
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16828
          return false;
16829
      }
16830
 
16831
      return true;
16832
    }
16833
 
16834
    @Override
16835
    public int hashCode() {
16836
      return 0;
16837
    }
16838
 
7788 manish.sha 16839
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16840
      if (!getClass().equals(other.getClass())) {
16841
        return getClass().getName().compareTo(other.getClass().getName());
16842
      }
16843
 
16844
      int lastComparison = 0;
7788 manish.sha 16845
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16846
 
7788 manish.sha 16847
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16848
      if (lastComparison != 0) {
16849
        return lastComparison;
16850
      }
7788 manish.sha 16851
      if (isSetLogisticsLocationInfoList()) {
16852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16853
        if (lastComparison != 0) {
16854
          return lastComparison;
16855
        }
16856
      }
7788 manish.sha 16857
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16858
      if (lastComparison != 0) {
16859
        return lastComparison;
16860
      }
7788 manish.sha 16861
      if (isSetRunCompleteUpdate()) {
16862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16863
        if (lastComparison != 0) {
16864
          return lastComparison;
16865
        }
16866
      }
16867
      return 0;
16868
    }
16869
 
16870
    public _Fields fieldForId(int fieldId) {
16871
      return _Fields.findByThriftId(fieldId);
16872
    }
16873
 
16874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16875
      org.apache.thrift.protocol.TField field;
16876
      iprot.readStructBegin();
16877
      while (true)
16878
      {
16879
        field = iprot.readFieldBegin();
16880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16881
          break;
16882
        }
16883
        switch (field.id) {
7788 manish.sha 16884
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16885
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16886
              {
7808 anupam.sin 16887
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16888
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16889
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16890
                {
7808 anupam.sin 16891
                  LogisticsLocationInfo _elem30; // required
16892
                  _elem30 = new LogisticsLocationInfo();
16893
                  _elem30.read(iprot);
16894
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16895
                }
16896
                iprot.readListEnd();
16897
              }
7737 manish.sha 16898
            } else { 
16899
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16900
            }
16901
            break;
7788 manish.sha 16902
          case 2: // RUN_COMPLETE_UPDATE
16903
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16904
              this.runCompleteUpdate = iprot.readBool();
16905
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16906
            } else { 
16907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16908
            }
16909
            break;
16910
          default:
16911
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16912
        }
16913
        iprot.readFieldEnd();
16914
      }
16915
      iprot.readStructEnd();
16916
      validate();
16917
    }
16918
 
16919
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16920
      validate();
16921
 
16922
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16923
      if (this.logisticsLocationInfoList != null) {
16924
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16925
        {
16926
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16927
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16928
          {
7808 anupam.sin 16929
            _iter31.write(oprot);
7788 manish.sha 16930
          }
16931
          oprot.writeListEnd();
16932
        }
7737 manish.sha 16933
        oprot.writeFieldEnd();
16934
      }
7788 manish.sha 16935
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16936
      oprot.writeBool(this.runCompleteUpdate);
16937
      oprot.writeFieldEnd();
7737 manish.sha 16938
      oprot.writeFieldStop();
16939
      oprot.writeStructEnd();
16940
    }
16941
 
16942
    @Override
16943
    public String toString() {
7788 manish.sha 16944
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16945
      boolean first = true;
16946
 
7788 manish.sha 16947
      sb.append("logisticsLocationInfoList:");
16948
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16949
        sb.append("null");
16950
      } else {
7788 manish.sha 16951
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16952
      }
16953
      first = false;
7788 manish.sha 16954
      if (!first) sb.append(", ");
16955
      sb.append("runCompleteUpdate:");
16956
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16957
      first = false;
16958
      sb.append(")");
16959
      return sb.toString();
16960
    }
16961
 
16962
    public void validate() throws org.apache.thrift.TException {
16963
      // check for required fields
16964
    }
16965
 
16966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16967
      try {
16968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16969
      } catch (org.apache.thrift.TException te) {
16970
        throw new java.io.IOException(te);
16971
      }
16972
    }
16973
 
16974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16975
      try {
7788 manish.sha 16976
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16977
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16978
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16979
      } catch (org.apache.thrift.TException te) {
16980
        throw new java.io.IOException(te);
16981
      }
16982
    }
16983
 
16984
  }
16985
 
7788 manish.sha 16986
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16987
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16988
 
16989
 
16990
 
16991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16993
;
16994
 
16995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16996
 
16997
      static {
16998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16999
          byName.put(field.getFieldName(), field);
17000
        }
17001
      }
17002
 
17003
      /**
17004
       * Find the _Fields constant that matches fieldId, or null if its not found.
17005
       */
17006
      public static _Fields findByThriftId(int fieldId) {
17007
        switch(fieldId) {
17008
          default:
17009
            return null;
17010
        }
17011
      }
17012
 
17013
      /**
17014
       * Find the _Fields constant that matches fieldId, throwing an exception
17015
       * if it is not found.
17016
       */
17017
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17018
        _Fields fields = findByThriftId(fieldId);
17019
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17020
        return fields;
17021
      }
17022
 
17023
      /**
17024
       * Find the _Fields constant that matches name, or null if its not found.
17025
       */
17026
      public static _Fields findByName(String name) {
17027
        return byName.get(name);
17028
      }
17029
 
17030
      private final short _thriftId;
17031
      private final String _fieldName;
17032
 
17033
      _Fields(short thriftId, String fieldName) {
17034
        _thriftId = thriftId;
17035
        _fieldName = fieldName;
17036
      }
17037
 
17038
      public short getThriftFieldId() {
17039
        return _thriftId;
17040
      }
17041
 
17042
      public String getFieldName() {
17043
        return _fieldName;
17044
      }
17045
    }
17046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17047
    static {
17048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17049
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17050
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17051
    }
17052
 
7788 manish.sha 17053
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17054
    }
17055
 
17056
    /**
17057
     * Performs a deep copy on <i>other</i>.
17058
     */
7788 manish.sha 17059
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17060
    }
17061
 
7788 manish.sha 17062
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17063
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17064
    }
17065
 
17066
    @Override
17067
    public void clear() {
17068
    }
17069
 
17070
    public void setFieldValue(_Fields field, Object value) {
17071
      switch (field) {
17072
      }
17073
    }
17074
 
17075
    public Object getFieldValue(_Fields field) {
17076
      switch (field) {
17077
      }
17078
      throw new IllegalStateException();
17079
    }
17080
 
17081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17082
    public boolean isSet(_Fields field) {
17083
      if (field == null) {
17084
        throw new IllegalArgumentException();
17085
      }
17086
 
17087
      switch (field) {
17088
      }
17089
      throw new IllegalStateException();
17090
    }
17091
 
17092
    @Override
17093
    public boolean equals(Object that) {
17094
      if (that == null)
17095
        return false;
7788 manish.sha 17096
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17097
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17098
      return false;
17099
    }
17100
 
7788 manish.sha 17101
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17102
      if (that == null)
17103
        return false;
17104
 
17105
      return true;
17106
    }
17107
 
17108
    @Override
17109
    public int hashCode() {
17110
      return 0;
17111
    }
17112
 
7788 manish.sha 17113
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17114
      if (!getClass().equals(other.getClass())) {
17115
        return getClass().getName().compareTo(other.getClass().getName());
17116
      }
17117
 
17118
      int lastComparison = 0;
7788 manish.sha 17119
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17120
 
17121
      return 0;
17122
    }
17123
 
17124
    public _Fields fieldForId(int fieldId) {
17125
      return _Fields.findByThriftId(fieldId);
17126
    }
17127
 
17128
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17129
      org.apache.thrift.protocol.TField field;
17130
      iprot.readStructBegin();
17131
      while (true)
17132
      {
17133
        field = iprot.readFieldBegin();
17134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17135
          break;
17136
        }
17137
        switch (field.id) {
17138
          default:
17139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17140
        }
17141
        iprot.readFieldEnd();
17142
      }
17143
      iprot.readStructEnd();
17144
      validate();
17145
    }
17146
 
17147
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17148
      oprot.writeStructBegin(STRUCT_DESC);
17149
 
17150
      oprot.writeFieldStop();
17151
      oprot.writeStructEnd();
17152
    }
17153
 
17154
    @Override
17155
    public String toString() {
7788 manish.sha 17156
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17157
      boolean first = true;
17158
 
17159
      sb.append(")");
17160
      return sb.toString();
17161
    }
17162
 
17163
    public void validate() throws org.apache.thrift.TException {
17164
      // check for required fields
17165
    }
17166
 
17167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17168
      try {
17169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17170
      } catch (org.apache.thrift.TException te) {
17171
        throw new java.io.IOException(te);
17172
      }
17173
    }
17174
 
17175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17176
      try {
17177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17178
      } catch (org.apache.thrift.TException te) {
17179
        throw new java.io.IOException(te);
17180
      }
17181
    }
17182
 
17183
  }
17184
 
7888 rajveer 17185
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17187
 
17188
    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);
17189
    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);
17190
 
17191
    private long startDate; // required
17192
    private long days; // required
17193
 
17194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17196
      START_DATE((short)1, "startDate"),
17197
      DAYS((short)2, "days");
17198
 
17199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17200
 
17201
      static {
17202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17203
          byName.put(field.getFieldName(), field);
17204
        }
17205
      }
17206
 
17207
      /**
17208
       * Find the _Fields constant that matches fieldId, or null if its not found.
17209
       */
17210
      public static _Fields findByThriftId(int fieldId) {
17211
        switch(fieldId) {
17212
          case 1: // START_DATE
17213
            return START_DATE;
17214
          case 2: // DAYS
17215
            return DAYS;
17216
          default:
17217
            return null;
17218
        }
17219
      }
17220
 
17221
      /**
17222
       * Find the _Fields constant that matches fieldId, throwing an exception
17223
       * if it is not found.
17224
       */
17225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17226
        _Fields fields = findByThriftId(fieldId);
17227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17228
        return fields;
17229
      }
17230
 
17231
      /**
17232
       * Find the _Fields constant that matches name, or null if its not found.
17233
       */
17234
      public static _Fields findByName(String name) {
17235
        return byName.get(name);
17236
      }
17237
 
17238
      private final short _thriftId;
17239
      private final String _fieldName;
17240
 
17241
      _Fields(short thriftId, String fieldName) {
17242
        _thriftId = thriftId;
17243
        _fieldName = fieldName;
17244
      }
17245
 
17246
      public short getThriftFieldId() {
17247
        return _thriftId;
17248
      }
17249
 
17250
      public String getFieldName() {
17251
        return _fieldName;
17252
      }
17253
    }
17254
 
17255
    // isset id assignments
17256
    private static final int __STARTDATE_ISSET_ID = 0;
17257
    private static final int __DAYS_ISSET_ID = 1;
17258
    private BitSet __isset_bit_vector = new BitSet(2);
17259
 
17260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17261
    static {
17262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17263
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17265
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17266
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17269
    }
17270
 
17271
    public adjustDeliveryDays_args() {
17272
    }
17273
 
17274
    public adjustDeliveryDays_args(
17275
      long startDate,
17276
      long days)
17277
    {
17278
      this();
17279
      this.startDate = startDate;
17280
      setStartDateIsSet(true);
17281
      this.days = days;
17282
      setDaysIsSet(true);
17283
    }
17284
 
17285
    /**
17286
     * Performs a deep copy on <i>other</i>.
17287
     */
17288
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17289
      __isset_bit_vector.clear();
17290
      __isset_bit_vector.or(other.__isset_bit_vector);
17291
      this.startDate = other.startDate;
17292
      this.days = other.days;
17293
    }
17294
 
17295
    public adjustDeliveryDays_args deepCopy() {
17296
      return new adjustDeliveryDays_args(this);
17297
    }
17298
 
17299
    @Override
17300
    public void clear() {
17301
      setStartDateIsSet(false);
17302
      this.startDate = 0;
17303
      setDaysIsSet(false);
17304
      this.days = 0;
17305
    }
17306
 
17307
    public long getStartDate() {
17308
      return this.startDate;
17309
    }
17310
 
17311
    public void setStartDate(long startDate) {
17312
      this.startDate = startDate;
17313
      setStartDateIsSet(true);
17314
    }
17315
 
17316
    public void unsetStartDate() {
17317
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17318
    }
17319
 
17320
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17321
    public boolean isSetStartDate() {
17322
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17323
    }
17324
 
17325
    public void setStartDateIsSet(boolean value) {
17326
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17327
    }
17328
 
17329
    public long getDays() {
17330
      return this.days;
17331
    }
17332
 
17333
    public void setDays(long days) {
17334
      this.days = days;
17335
      setDaysIsSet(true);
17336
    }
17337
 
17338
    public void unsetDays() {
17339
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17340
    }
17341
 
17342
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17343
    public boolean isSetDays() {
17344
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17345
    }
17346
 
17347
    public void setDaysIsSet(boolean value) {
17348
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17349
    }
17350
 
17351
    public void setFieldValue(_Fields field, Object value) {
17352
      switch (field) {
17353
      case START_DATE:
17354
        if (value == null) {
17355
          unsetStartDate();
17356
        } else {
17357
          setStartDate((Long)value);
17358
        }
17359
        break;
17360
 
17361
      case DAYS:
17362
        if (value == null) {
17363
          unsetDays();
17364
        } else {
17365
          setDays((Long)value);
17366
        }
17367
        break;
17368
 
17369
      }
17370
    }
17371
 
17372
    public Object getFieldValue(_Fields field) {
17373
      switch (field) {
17374
      case START_DATE:
17375
        return Long.valueOf(getStartDate());
17376
 
17377
      case DAYS:
17378
        return Long.valueOf(getDays());
17379
 
17380
      }
17381
      throw new IllegalStateException();
17382
    }
17383
 
17384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17385
    public boolean isSet(_Fields field) {
17386
      if (field == null) {
17387
        throw new IllegalArgumentException();
17388
      }
17389
 
17390
      switch (field) {
17391
      case START_DATE:
17392
        return isSetStartDate();
17393
      case DAYS:
17394
        return isSetDays();
17395
      }
17396
      throw new IllegalStateException();
17397
    }
17398
 
17399
    @Override
17400
    public boolean equals(Object that) {
17401
      if (that == null)
17402
        return false;
17403
      if (that instanceof adjustDeliveryDays_args)
17404
        return this.equals((adjustDeliveryDays_args)that);
17405
      return false;
17406
    }
17407
 
17408
    public boolean equals(adjustDeliveryDays_args that) {
17409
      if (that == null)
17410
        return false;
17411
 
17412
      boolean this_present_startDate = true;
17413
      boolean that_present_startDate = true;
17414
      if (this_present_startDate || that_present_startDate) {
17415
        if (!(this_present_startDate && that_present_startDate))
17416
          return false;
17417
        if (this.startDate != that.startDate)
17418
          return false;
17419
      }
17420
 
17421
      boolean this_present_days = true;
17422
      boolean that_present_days = true;
17423
      if (this_present_days || that_present_days) {
17424
        if (!(this_present_days && that_present_days))
17425
          return false;
17426
        if (this.days != that.days)
17427
          return false;
17428
      }
17429
 
17430
      return true;
17431
    }
17432
 
17433
    @Override
17434
    public int hashCode() {
17435
      return 0;
17436
    }
17437
 
17438
    public int compareTo(adjustDeliveryDays_args other) {
17439
      if (!getClass().equals(other.getClass())) {
17440
        return getClass().getName().compareTo(other.getClass().getName());
17441
      }
17442
 
17443
      int lastComparison = 0;
17444
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17445
 
17446
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17447
      if (lastComparison != 0) {
17448
        return lastComparison;
17449
      }
17450
      if (isSetStartDate()) {
17451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17452
        if (lastComparison != 0) {
17453
          return lastComparison;
17454
        }
17455
      }
17456
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17457
      if (lastComparison != 0) {
17458
        return lastComparison;
17459
      }
17460
      if (isSetDays()) {
17461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17462
        if (lastComparison != 0) {
17463
          return lastComparison;
17464
        }
17465
      }
17466
      return 0;
17467
    }
17468
 
17469
    public _Fields fieldForId(int fieldId) {
17470
      return _Fields.findByThriftId(fieldId);
17471
    }
17472
 
17473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17474
      org.apache.thrift.protocol.TField field;
17475
      iprot.readStructBegin();
17476
      while (true)
17477
      {
17478
        field = iprot.readFieldBegin();
17479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17480
          break;
17481
        }
17482
        switch (field.id) {
17483
          case 1: // START_DATE
17484
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17485
              this.startDate = iprot.readI64();
17486
              setStartDateIsSet(true);
17487
            } else { 
17488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17489
            }
17490
            break;
17491
          case 2: // DAYS
17492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17493
              this.days = iprot.readI64();
17494
              setDaysIsSet(true);
17495
            } else { 
17496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17497
            }
17498
            break;
17499
          default:
17500
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17501
        }
17502
        iprot.readFieldEnd();
17503
      }
17504
      iprot.readStructEnd();
17505
      validate();
17506
    }
17507
 
17508
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17509
      validate();
17510
 
17511
      oprot.writeStructBegin(STRUCT_DESC);
17512
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17513
      oprot.writeI64(this.startDate);
17514
      oprot.writeFieldEnd();
17515
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17516
      oprot.writeI64(this.days);
17517
      oprot.writeFieldEnd();
17518
      oprot.writeFieldStop();
17519
      oprot.writeStructEnd();
17520
    }
17521
 
17522
    @Override
17523
    public String toString() {
17524
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17525
      boolean first = true;
17526
 
17527
      sb.append("startDate:");
17528
      sb.append(this.startDate);
17529
      first = false;
17530
      if (!first) sb.append(", ");
17531
      sb.append("days:");
17532
      sb.append(this.days);
17533
      first = false;
17534
      sb.append(")");
17535
      return sb.toString();
17536
    }
17537
 
17538
    public void validate() throws org.apache.thrift.TException {
17539
      // check for required fields
17540
    }
17541
 
17542
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17543
      try {
17544
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17545
      } catch (org.apache.thrift.TException te) {
17546
        throw new java.io.IOException(te);
17547
      }
17548
    }
17549
 
17550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17551
      try {
17552
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17553
        __isset_bit_vector = new BitSet(1);
17554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17555
      } catch (org.apache.thrift.TException te) {
17556
        throw new java.io.IOException(te);
17557
      }
17558
    }
17559
 
17560
  }
17561
 
17562
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17564
 
17565
    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);
17566
 
17567
    private long success; // required
17568
 
17569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17571
      SUCCESS((short)0, "success");
17572
 
17573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17574
 
17575
      static {
17576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17577
          byName.put(field.getFieldName(), field);
17578
        }
17579
      }
17580
 
17581
      /**
17582
       * Find the _Fields constant that matches fieldId, or null if its not found.
17583
       */
17584
      public static _Fields findByThriftId(int fieldId) {
17585
        switch(fieldId) {
17586
          case 0: // SUCCESS
17587
            return SUCCESS;
17588
          default:
17589
            return null;
17590
        }
17591
      }
17592
 
17593
      /**
17594
       * Find the _Fields constant that matches fieldId, throwing an exception
17595
       * if it is not found.
17596
       */
17597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17598
        _Fields fields = findByThriftId(fieldId);
17599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17600
        return fields;
17601
      }
17602
 
17603
      /**
17604
       * Find the _Fields constant that matches name, or null if its not found.
17605
       */
17606
      public static _Fields findByName(String name) {
17607
        return byName.get(name);
17608
      }
17609
 
17610
      private final short _thriftId;
17611
      private final String _fieldName;
17612
 
17613
      _Fields(short thriftId, String fieldName) {
17614
        _thriftId = thriftId;
17615
        _fieldName = fieldName;
17616
      }
17617
 
17618
      public short getThriftFieldId() {
17619
        return _thriftId;
17620
      }
17621
 
17622
      public String getFieldName() {
17623
        return _fieldName;
17624
      }
17625
    }
17626
 
17627
    // isset id assignments
17628
    private static final int __SUCCESS_ISSET_ID = 0;
17629
    private BitSet __isset_bit_vector = new BitSet(1);
17630
 
17631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17632
    static {
17633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17634
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17638
    }
17639
 
17640
    public adjustDeliveryDays_result() {
17641
    }
17642
 
17643
    public adjustDeliveryDays_result(
17644
      long success)
17645
    {
17646
      this();
17647
      this.success = success;
17648
      setSuccessIsSet(true);
17649
    }
17650
 
17651
    /**
17652
     * Performs a deep copy on <i>other</i>.
17653
     */
17654
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17655
      __isset_bit_vector.clear();
17656
      __isset_bit_vector.or(other.__isset_bit_vector);
17657
      this.success = other.success;
17658
    }
17659
 
17660
    public adjustDeliveryDays_result deepCopy() {
17661
      return new adjustDeliveryDays_result(this);
17662
    }
17663
 
17664
    @Override
17665
    public void clear() {
17666
      setSuccessIsSet(false);
17667
      this.success = 0;
17668
    }
17669
 
17670
    public long getSuccess() {
17671
      return this.success;
17672
    }
17673
 
17674
    public void setSuccess(long success) {
17675
      this.success = success;
17676
      setSuccessIsSet(true);
17677
    }
17678
 
17679
    public void unsetSuccess() {
17680
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17681
    }
17682
 
17683
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17684
    public boolean isSetSuccess() {
17685
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17686
    }
17687
 
17688
    public void setSuccessIsSet(boolean value) {
17689
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17690
    }
17691
 
17692
    public void setFieldValue(_Fields field, Object value) {
17693
      switch (field) {
17694
      case SUCCESS:
17695
        if (value == null) {
17696
          unsetSuccess();
17697
        } else {
17698
          setSuccess((Long)value);
17699
        }
17700
        break;
17701
 
17702
      }
17703
    }
17704
 
17705
    public Object getFieldValue(_Fields field) {
17706
      switch (field) {
17707
      case SUCCESS:
17708
        return Long.valueOf(getSuccess());
17709
 
17710
      }
17711
      throw new IllegalStateException();
17712
    }
17713
 
17714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17715
    public boolean isSet(_Fields field) {
17716
      if (field == null) {
17717
        throw new IllegalArgumentException();
17718
      }
17719
 
17720
      switch (field) {
17721
      case SUCCESS:
17722
        return isSetSuccess();
17723
      }
17724
      throw new IllegalStateException();
17725
    }
17726
 
17727
    @Override
17728
    public boolean equals(Object that) {
17729
      if (that == null)
17730
        return false;
17731
      if (that instanceof adjustDeliveryDays_result)
17732
        return this.equals((adjustDeliveryDays_result)that);
17733
      return false;
17734
    }
17735
 
17736
    public boolean equals(adjustDeliveryDays_result that) {
17737
      if (that == null)
17738
        return false;
17739
 
17740
      boolean this_present_success = true;
17741
      boolean that_present_success = true;
17742
      if (this_present_success || that_present_success) {
17743
        if (!(this_present_success && that_present_success))
17744
          return false;
17745
        if (this.success != that.success)
17746
          return false;
17747
      }
17748
 
17749
      return true;
17750
    }
17751
 
17752
    @Override
17753
    public int hashCode() {
17754
      return 0;
17755
    }
17756
 
17757
    public int compareTo(adjustDeliveryDays_result other) {
17758
      if (!getClass().equals(other.getClass())) {
17759
        return getClass().getName().compareTo(other.getClass().getName());
17760
      }
17761
 
17762
      int lastComparison = 0;
17763
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17764
 
17765
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17766
      if (lastComparison != 0) {
17767
        return lastComparison;
17768
      }
17769
      if (isSetSuccess()) {
17770
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17771
        if (lastComparison != 0) {
17772
          return lastComparison;
17773
        }
17774
      }
17775
      return 0;
17776
    }
17777
 
17778
    public _Fields fieldForId(int fieldId) {
17779
      return _Fields.findByThriftId(fieldId);
17780
    }
17781
 
17782
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17783
      org.apache.thrift.protocol.TField field;
17784
      iprot.readStructBegin();
17785
      while (true)
17786
      {
17787
        field = iprot.readFieldBegin();
17788
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17789
          break;
17790
        }
17791
        switch (field.id) {
17792
          case 0: // SUCCESS
17793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17794
              this.success = iprot.readI64();
17795
              setSuccessIsSet(true);
17796
            } else { 
17797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17798
            }
17799
            break;
17800
          default:
17801
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17802
        }
17803
        iprot.readFieldEnd();
17804
      }
17805
      iprot.readStructEnd();
17806
      validate();
17807
    }
17808
 
17809
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17810
      oprot.writeStructBegin(STRUCT_DESC);
17811
 
17812
      if (this.isSetSuccess()) {
17813
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17814
        oprot.writeI64(this.success);
17815
        oprot.writeFieldEnd();
17816
      }
17817
      oprot.writeFieldStop();
17818
      oprot.writeStructEnd();
17819
    }
17820
 
17821
    @Override
17822
    public String toString() {
17823
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17824
      boolean first = true;
17825
 
17826
      sb.append("success:");
17827
      sb.append(this.success);
17828
      first = false;
17829
      sb.append(")");
17830
      return sb.toString();
17831
    }
17832
 
17833
    public void validate() throws org.apache.thrift.TException {
17834
      // check for required fields
17835
    }
17836
 
17837
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17838
      try {
17839
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17840
      } catch (org.apache.thrift.TException te) {
17841
        throw new java.io.IOException(te);
17842
      }
17843
    }
17844
 
17845
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17846
      try {
17847
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17848
      } catch (org.apache.thrift.TException te) {
17849
        throw new java.io.IOException(te);
17850
      }
17851
    }
17852
 
17853
  }
17854
 
12895 manish.sha 17855
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17856
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17857
 
17858
    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);
17859
    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);
17860
 
17861
    private String pincode; // required
17862
    private long whLocation; // required
17863
 
17864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17866
      PINCODE((short)1, "pincode"),
17867
      WH_LOCATION((short)2, "whLocation");
17868
 
17869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17870
 
17871
      static {
17872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17873
          byName.put(field.getFieldName(), field);
17874
        }
17875
      }
17876
 
17877
      /**
17878
       * Find the _Fields constant that matches fieldId, or null if its not found.
17879
       */
17880
      public static _Fields findByThriftId(int fieldId) {
17881
        switch(fieldId) {
17882
          case 1: // PINCODE
17883
            return PINCODE;
17884
          case 2: // WH_LOCATION
17885
            return WH_LOCATION;
17886
          default:
17887
            return null;
17888
        }
17889
      }
17890
 
17891
      /**
17892
       * Find the _Fields constant that matches fieldId, throwing an exception
17893
       * if it is not found.
17894
       */
17895
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17896
        _Fields fields = findByThriftId(fieldId);
17897
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17898
        return fields;
17899
      }
17900
 
17901
      /**
17902
       * Find the _Fields constant that matches name, or null if its not found.
17903
       */
17904
      public static _Fields findByName(String name) {
17905
        return byName.get(name);
17906
      }
17907
 
17908
      private final short _thriftId;
17909
      private final String _fieldName;
17910
 
17911
      _Fields(short thriftId, String fieldName) {
17912
        _thriftId = thriftId;
17913
        _fieldName = fieldName;
17914
      }
17915
 
17916
      public short getThriftFieldId() {
17917
        return _thriftId;
17918
      }
17919
 
17920
      public String getFieldName() {
17921
        return _fieldName;
17922
      }
17923
    }
17924
 
17925
    // isset id assignments
17926
    private static final int __WHLOCATION_ISSET_ID = 0;
17927
    private BitSet __isset_bit_vector = new BitSet(1);
17928
 
17929
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17930
    static {
17931
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17932
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17933
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17934
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
17938
    }
17939
 
17940
    public getFirstDeliveryEstimateForWhLocation_args() {
17941
    }
17942
 
17943
    public getFirstDeliveryEstimateForWhLocation_args(
17944
      String pincode,
17945
      long whLocation)
17946
    {
17947
      this();
17948
      this.pincode = pincode;
17949
      this.whLocation = whLocation;
17950
      setWhLocationIsSet(true);
17951
    }
17952
 
17953
    /**
17954
     * Performs a deep copy on <i>other</i>.
17955
     */
17956
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
17957
      __isset_bit_vector.clear();
17958
      __isset_bit_vector.or(other.__isset_bit_vector);
17959
      if (other.isSetPincode()) {
17960
        this.pincode = other.pincode;
17961
      }
17962
      this.whLocation = other.whLocation;
17963
    }
17964
 
17965
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
17966
      return new getFirstDeliveryEstimateForWhLocation_args(this);
17967
    }
17968
 
17969
    @Override
17970
    public void clear() {
17971
      this.pincode = null;
17972
      setWhLocationIsSet(false);
17973
      this.whLocation = 0;
17974
    }
17975
 
17976
    public String getPincode() {
17977
      return this.pincode;
17978
    }
17979
 
17980
    public void setPincode(String pincode) {
17981
      this.pincode = pincode;
17982
    }
17983
 
17984
    public void unsetPincode() {
17985
      this.pincode = null;
17986
    }
17987
 
17988
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
17989
    public boolean isSetPincode() {
17990
      return this.pincode != null;
17991
    }
17992
 
17993
    public void setPincodeIsSet(boolean value) {
17994
      if (!value) {
17995
        this.pincode = null;
17996
      }
17997
    }
17998
 
17999
    public long getWhLocation() {
18000
      return this.whLocation;
18001
    }
18002
 
18003
    public void setWhLocation(long whLocation) {
18004
      this.whLocation = whLocation;
18005
      setWhLocationIsSet(true);
18006
    }
18007
 
18008
    public void unsetWhLocation() {
18009
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18010
    }
18011
 
18012
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18013
    public boolean isSetWhLocation() {
18014
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18015
    }
18016
 
18017
    public void setWhLocationIsSet(boolean value) {
18018
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18019
    }
18020
 
18021
    public void setFieldValue(_Fields field, Object value) {
18022
      switch (field) {
18023
      case PINCODE:
18024
        if (value == null) {
18025
          unsetPincode();
18026
        } else {
18027
          setPincode((String)value);
18028
        }
18029
        break;
18030
 
18031
      case WH_LOCATION:
18032
        if (value == null) {
18033
          unsetWhLocation();
18034
        } else {
18035
          setWhLocation((Long)value);
18036
        }
18037
        break;
18038
 
18039
      }
18040
    }
18041
 
18042
    public Object getFieldValue(_Fields field) {
18043
      switch (field) {
18044
      case PINCODE:
18045
        return getPincode();
18046
 
18047
      case WH_LOCATION:
18048
        return Long.valueOf(getWhLocation());
18049
 
18050
      }
18051
      throw new IllegalStateException();
18052
    }
18053
 
18054
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18055
    public boolean isSet(_Fields field) {
18056
      if (field == null) {
18057
        throw new IllegalArgumentException();
18058
      }
18059
 
18060
      switch (field) {
18061
      case PINCODE:
18062
        return isSetPincode();
18063
      case WH_LOCATION:
18064
        return isSetWhLocation();
18065
      }
18066
      throw new IllegalStateException();
18067
    }
18068
 
18069
    @Override
18070
    public boolean equals(Object that) {
18071
      if (that == null)
18072
        return false;
18073
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18074
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18075
      return false;
18076
    }
18077
 
18078
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18079
      if (that == null)
18080
        return false;
18081
 
18082
      boolean this_present_pincode = true && this.isSetPincode();
18083
      boolean that_present_pincode = true && that.isSetPincode();
18084
      if (this_present_pincode || that_present_pincode) {
18085
        if (!(this_present_pincode && that_present_pincode))
18086
          return false;
18087
        if (!this.pincode.equals(that.pincode))
18088
          return false;
18089
      }
18090
 
18091
      boolean this_present_whLocation = true;
18092
      boolean that_present_whLocation = true;
18093
      if (this_present_whLocation || that_present_whLocation) {
18094
        if (!(this_present_whLocation && that_present_whLocation))
18095
          return false;
18096
        if (this.whLocation != that.whLocation)
18097
          return false;
18098
      }
18099
 
18100
      return true;
18101
    }
18102
 
18103
    @Override
18104
    public int hashCode() {
18105
      return 0;
18106
    }
18107
 
18108
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18109
      if (!getClass().equals(other.getClass())) {
18110
        return getClass().getName().compareTo(other.getClass().getName());
18111
      }
18112
 
18113
      int lastComparison = 0;
18114
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18115
 
18116
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18117
      if (lastComparison != 0) {
18118
        return lastComparison;
18119
      }
18120
      if (isSetPincode()) {
18121
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18122
        if (lastComparison != 0) {
18123
          return lastComparison;
18124
        }
18125
      }
18126
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18127
      if (lastComparison != 0) {
18128
        return lastComparison;
18129
      }
18130
      if (isSetWhLocation()) {
18131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18132
        if (lastComparison != 0) {
18133
          return lastComparison;
18134
        }
18135
      }
18136
      return 0;
18137
    }
18138
 
18139
    public _Fields fieldForId(int fieldId) {
18140
      return _Fields.findByThriftId(fieldId);
18141
    }
18142
 
18143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18144
      org.apache.thrift.protocol.TField field;
18145
      iprot.readStructBegin();
18146
      while (true)
18147
      {
18148
        field = iprot.readFieldBegin();
18149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18150
          break;
18151
        }
18152
        switch (field.id) {
18153
          case 1: // PINCODE
18154
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18155
              this.pincode = iprot.readString();
18156
            } else { 
18157
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18158
            }
18159
            break;
18160
          case 2: // WH_LOCATION
18161
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18162
              this.whLocation = iprot.readI64();
18163
              setWhLocationIsSet(true);
18164
            } else { 
18165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18166
            }
18167
            break;
18168
          default:
18169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18170
        }
18171
        iprot.readFieldEnd();
18172
      }
18173
      iprot.readStructEnd();
18174
      validate();
18175
    }
18176
 
18177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18178
      validate();
18179
 
18180
      oprot.writeStructBegin(STRUCT_DESC);
18181
      if (this.pincode != null) {
18182
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18183
        oprot.writeString(this.pincode);
18184
        oprot.writeFieldEnd();
18185
      }
18186
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18187
      oprot.writeI64(this.whLocation);
18188
      oprot.writeFieldEnd();
18189
      oprot.writeFieldStop();
18190
      oprot.writeStructEnd();
18191
    }
18192
 
18193
    @Override
18194
    public String toString() {
18195
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18196
      boolean first = true;
18197
 
18198
      sb.append("pincode:");
18199
      if (this.pincode == null) {
18200
        sb.append("null");
18201
      } else {
18202
        sb.append(this.pincode);
18203
      }
18204
      first = false;
18205
      if (!first) sb.append(", ");
18206
      sb.append("whLocation:");
18207
      sb.append(this.whLocation);
18208
      first = false;
18209
      sb.append(")");
18210
      return sb.toString();
18211
    }
18212
 
18213
    public void validate() throws org.apache.thrift.TException {
18214
      // check for required fields
18215
    }
18216
 
18217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18218
      try {
18219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18220
      } catch (org.apache.thrift.TException te) {
18221
        throw new java.io.IOException(te);
18222
      }
18223
    }
18224
 
18225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18226
      try {
18227
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18228
        __isset_bit_vector = new BitSet(1);
18229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18230
      } catch (org.apache.thrift.TException te) {
18231
        throw new java.io.IOException(te);
18232
      }
18233
    }
18234
 
18235
  }
18236
 
18237
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18239
 
18240
    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);
18241
 
18242
    private long success; // required
18243
 
18244
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18245
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18246
      SUCCESS((short)0, "success");
18247
 
18248
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18249
 
18250
      static {
18251
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18252
          byName.put(field.getFieldName(), field);
18253
        }
18254
      }
18255
 
18256
      /**
18257
       * Find the _Fields constant that matches fieldId, or null if its not found.
18258
       */
18259
      public static _Fields findByThriftId(int fieldId) {
18260
        switch(fieldId) {
18261
          case 0: // SUCCESS
18262
            return SUCCESS;
18263
          default:
18264
            return null;
18265
        }
18266
      }
18267
 
18268
      /**
18269
       * Find the _Fields constant that matches fieldId, throwing an exception
18270
       * if it is not found.
18271
       */
18272
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18273
        _Fields fields = findByThriftId(fieldId);
18274
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18275
        return fields;
18276
      }
18277
 
18278
      /**
18279
       * Find the _Fields constant that matches name, or null if its not found.
18280
       */
18281
      public static _Fields findByName(String name) {
18282
        return byName.get(name);
18283
      }
18284
 
18285
      private final short _thriftId;
18286
      private final String _fieldName;
18287
 
18288
      _Fields(short thriftId, String fieldName) {
18289
        _thriftId = thriftId;
18290
        _fieldName = fieldName;
18291
      }
18292
 
18293
      public short getThriftFieldId() {
18294
        return _thriftId;
18295
      }
18296
 
18297
      public String getFieldName() {
18298
        return _fieldName;
18299
      }
18300
    }
18301
 
18302
    // isset id assignments
18303
    private static final int __SUCCESS_ISSET_ID = 0;
18304
    private BitSet __isset_bit_vector = new BitSet(1);
18305
 
18306
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18307
    static {
18308
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18309
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18313
    }
18314
 
18315
    public getFirstDeliveryEstimateForWhLocation_result() {
18316
    }
18317
 
18318
    public getFirstDeliveryEstimateForWhLocation_result(
18319
      long success)
18320
    {
18321
      this();
18322
      this.success = success;
18323
      setSuccessIsSet(true);
18324
    }
18325
 
18326
    /**
18327
     * Performs a deep copy on <i>other</i>.
18328
     */
18329
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18330
      __isset_bit_vector.clear();
18331
      __isset_bit_vector.or(other.__isset_bit_vector);
18332
      this.success = other.success;
18333
    }
18334
 
18335
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18336
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18337
    }
18338
 
18339
    @Override
18340
    public void clear() {
18341
      setSuccessIsSet(false);
18342
      this.success = 0;
18343
    }
18344
 
18345
    public long getSuccess() {
18346
      return this.success;
18347
    }
18348
 
18349
    public void setSuccess(long success) {
18350
      this.success = success;
18351
      setSuccessIsSet(true);
18352
    }
18353
 
18354
    public void unsetSuccess() {
18355
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18356
    }
18357
 
18358
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18359
    public boolean isSetSuccess() {
18360
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18361
    }
18362
 
18363
    public void setSuccessIsSet(boolean value) {
18364
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18365
    }
18366
 
18367
    public void setFieldValue(_Fields field, Object value) {
18368
      switch (field) {
18369
      case SUCCESS:
18370
        if (value == null) {
18371
          unsetSuccess();
18372
        } else {
18373
          setSuccess((Long)value);
18374
        }
18375
        break;
18376
 
18377
      }
18378
    }
18379
 
18380
    public Object getFieldValue(_Fields field) {
18381
      switch (field) {
18382
      case SUCCESS:
18383
        return Long.valueOf(getSuccess());
18384
 
18385
      }
18386
      throw new IllegalStateException();
18387
    }
18388
 
18389
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18390
    public boolean isSet(_Fields field) {
18391
      if (field == null) {
18392
        throw new IllegalArgumentException();
18393
      }
18394
 
18395
      switch (field) {
18396
      case SUCCESS:
18397
        return isSetSuccess();
18398
      }
18399
      throw new IllegalStateException();
18400
    }
18401
 
18402
    @Override
18403
    public boolean equals(Object that) {
18404
      if (that == null)
18405
        return false;
18406
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18407
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18408
      return false;
18409
    }
18410
 
18411
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18412
      if (that == null)
18413
        return false;
18414
 
18415
      boolean this_present_success = true;
18416
      boolean that_present_success = true;
18417
      if (this_present_success || that_present_success) {
18418
        if (!(this_present_success && that_present_success))
18419
          return false;
18420
        if (this.success != that.success)
18421
          return false;
18422
      }
18423
 
18424
      return true;
18425
    }
18426
 
18427
    @Override
18428
    public int hashCode() {
18429
      return 0;
18430
    }
18431
 
18432
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18433
      if (!getClass().equals(other.getClass())) {
18434
        return getClass().getName().compareTo(other.getClass().getName());
18435
      }
18436
 
18437
      int lastComparison = 0;
18438
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18439
 
18440
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18441
      if (lastComparison != 0) {
18442
        return lastComparison;
18443
      }
18444
      if (isSetSuccess()) {
18445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18446
        if (lastComparison != 0) {
18447
          return lastComparison;
18448
        }
18449
      }
18450
      return 0;
18451
    }
18452
 
18453
    public _Fields fieldForId(int fieldId) {
18454
      return _Fields.findByThriftId(fieldId);
18455
    }
18456
 
18457
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18458
      org.apache.thrift.protocol.TField field;
18459
      iprot.readStructBegin();
18460
      while (true)
18461
      {
18462
        field = iprot.readFieldBegin();
18463
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18464
          break;
18465
        }
18466
        switch (field.id) {
18467
          case 0: // SUCCESS
18468
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18469
              this.success = iprot.readI64();
18470
              setSuccessIsSet(true);
18471
            } else { 
18472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18473
            }
18474
            break;
18475
          default:
18476
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18477
        }
18478
        iprot.readFieldEnd();
18479
      }
18480
      iprot.readStructEnd();
18481
      validate();
18482
    }
18483
 
18484
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18485
      oprot.writeStructBegin(STRUCT_DESC);
18486
 
18487
      if (this.isSetSuccess()) {
18488
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18489
        oprot.writeI64(this.success);
18490
        oprot.writeFieldEnd();
18491
      }
18492
      oprot.writeFieldStop();
18493
      oprot.writeStructEnd();
18494
    }
18495
 
18496
    @Override
18497
    public String toString() {
18498
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18499
      boolean first = true;
18500
 
18501
      sb.append("success:");
18502
      sb.append(this.success);
18503
      first = false;
18504
      sb.append(")");
18505
      return sb.toString();
18506
    }
18507
 
18508
    public void validate() throws org.apache.thrift.TException {
18509
      // check for required fields
18510
    }
18511
 
18512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18513
      try {
18514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18515
      } catch (org.apache.thrift.TException te) {
18516
        throw new java.io.IOException(te);
18517
      }
18518
    }
18519
 
18520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18521
      try {
18522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18523
      } catch (org.apache.thrift.TException te) {
18524
        throw new java.io.IOException(te);
18525
      }
18526
    }
18527
 
18528
  }
18529
 
13146 manish.sha 18530
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18532
 
18533
    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);
18534
    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);
18535
    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);
18536
 
18537
    private long providerId; // required
18538
    private DeliveryType type; // required
18539
    private long orderQuantity; // required
18540
 
18541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18542
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18543
      PROVIDER_ID((short)1, "providerId"),
18544
      /**
18545
       * 
18546
       * @see DeliveryType
18547
       */
18548
      TYPE((short)2, "type"),
18549
      ORDER_QUANTITY((short)3, "orderQuantity");
18550
 
18551
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18552
 
18553
      static {
18554
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18555
          byName.put(field.getFieldName(), field);
18556
        }
18557
      }
18558
 
18559
      /**
18560
       * Find the _Fields constant that matches fieldId, or null if its not found.
18561
       */
18562
      public static _Fields findByThriftId(int fieldId) {
18563
        switch(fieldId) {
18564
          case 1: // PROVIDER_ID
18565
            return PROVIDER_ID;
18566
          case 2: // TYPE
18567
            return TYPE;
18568
          case 3: // ORDER_QUANTITY
18569
            return ORDER_QUANTITY;
18570
          default:
18571
            return null;
18572
        }
18573
      }
18574
 
18575
      /**
18576
       * Find the _Fields constant that matches fieldId, throwing an exception
18577
       * if it is not found.
18578
       */
18579
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18580
        _Fields fields = findByThriftId(fieldId);
18581
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18582
        return fields;
18583
      }
18584
 
18585
      /**
18586
       * Find the _Fields constant that matches name, or null if its not found.
18587
       */
18588
      public static _Fields findByName(String name) {
18589
        return byName.get(name);
18590
      }
18591
 
18592
      private final short _thriftId;
18593
      private final String _fieldName;
18594
 
18595
      _Fields(short thriftId, String fieldName) {
18596
        _thriftId = thriftId;
18597
        _fieldName = fieldName;
18598
      }
18599
 
18600
      public short getThriftFieldId() {
18601
        return _thriftId;
18602
      }
18603
 
18604
      public String getFieldName() {
18605
        return _fieldName;
18606
      }
18607
    }
18608
 
18609
    // isset id assignments
18610
    private static final int __PROVIDERID_ISSET_ID = 0;
18611
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18612
    private BitSet __isset_bit_vector = new BitSet(2);
18613
 
18614
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18615
    static {
18616
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18617
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18619
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18620
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18621
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18625
    }
18626
 
18627
    public getNewEmptyAwb_args() {
18628
    }
18629
 
18630
    public getNewEmptyAwb_args(
18631
      long providerId,
18632
      DeliveryType type,
18633
      long orderQuantity)
18634
    {
18635
      this();
18636
      this.providerId = providerId;
18637
      setProviderIdIsSet(true);
18638
      this.type = type;
18639
      this.orderQuantity = orderQuantity;
18640
      setOrderQuantityIsSet(true);
18641
    }
18642
 
18643
    /**
18644
     * Performs a deep copy on <i>other</i>.
18645
     */
18646
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18647
      __isset_bit_vector.clear();
18648
      __isset_bit_vector.or(other.__isset_bit_vector);
18649
      this.providerId = other.providerId;
18650
      if (other.isSetType()) {
18651
        this.type = other.type;
18652
      }
18653
      this.orderQuantity = other.orderQuantity;
18654
    }
18655
 
18656
    public getNewEmptyAwb_args deepCopy() {
18657
      return new getNewEmptyAwb_args(this);
18658
    }
18659
 
18660
    @Override
18661
    public void clear() {
18662
      setProviderIdIsSet(false);
18663
      this.providerId = 0;
18664
      this.type = null;
18665
      setOrderQuantityIsSet(false);
18666
      this.orderQuantity = 0;
18667
    }
18668
 
18669
    public long getProviderId() {
18670
      return this.providerId;
18671
    }
18672
 
18673
    public void setProviderId(long providerId) {
18674
      this.providerId = providerId;
18675
      setProviderIdIsSet(true);
18676
    }
18677
 
18678
    public void unsetProviderId() {
18679
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18680
    }
18681
 
18682
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18683
    public boolean isSetProviderId() {
18684
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18685
    }
18686
 
18687
    public void setProviderIdIsSet(boolean value) {
18688
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18689
    }
18690
 
18691
    /**
18692
     * 
18693
     * @see DeliveryType
18694
     */
18695
    public DeliveryType getType() {
18696
      return this.type;
18697
    }
18698
 
18699
    /**
18700
     * 
18701
     * @see DeliveryType
18702
     */
18703
    public void setType(DeliveryType type) {
18704
      this.type = type;
18705
    }
18706
 
18707
    public void unsetType() {
18708
      this.type = null;
18709
    }
18710
 
18711
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18712
    public boolean isSetType() {
18713
      return this.type != null;
18714
    }
18715
 
18716
    public void setTypeIsSet(boolean value) {
18717
      if (!value) {
18718
        this.type = null;
18719
      }
18720
    }
18721
 
18722
    public long getOrderQuantity() {
18723
      return this.orderQuantity;
18724
    }
18725
 
18726
    public void setOrderQuantity(long orderQuantity) {
18727
      this.orderQuantity = orderQuantity;
18728
      setOrderQuantityIsSet(true);
18729
    }
18730
 
18731
    public void unsetOrderQuantity() {
18732
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18733
    }
18734
 
18735
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18736
    public boolean isSetOrderQuantity() {
18737
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18738
    }
18739
 
18740
    public void setOrderQuantityIsSet(boolean value) {
18741
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18742
    }
18743
 
18744
    public void setFieldValue(_Fields field, Object value) {
18745
      switch (field) {
18746
      case PROVIDER_ID:
18747
        if (value == null) {
18748
          unsetProviderId();
18749
        } else {
18750
          setProviderId((Long)value);
18751
        }
18752
        break;
18753
 
18754
      case TYPE:
18755
        if (value == null) {
18756
          unsetType();
18757
        } else {
18758
          setType((DeliveryType)value);
18759
        }
18760
        break;
18761
 
18762
      case ORDER_QUANTITY:
18763
        if (value == null) {
18764
          unsetOrderQuantity();
18765
        } else {
18766
          setOrderQuantity((Long)value);
18767
        }
18768
        break;
18769
 
18770
      }
18771
    }
18772
 
18773
    public Object getFieldValue(_Fields field) {
18774
      switch (field) {
18775
      case PROVIDER_ID:
18776
        return Long.valueOf(getProviderId());
18777
 
18778
      case TYPE:
18779
        return getType();
18780
 
18781
      case ORDER_QUANTITY:
18782
        return Long.valueOf(getOrderQuantity());
18783
 
18784
      }
18785
      throw new IllegalStateException();
18786
    }
18787
 
18788
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18789
    public boolean isSet(_Fields field) {
18790
      if (field == null) {
18791
        throw new IllegalArgumentException();
18792
      }
18793
 
18794
      switch (field) {
18795
      case PROVIDER_ID:
18796
        return isSetProviderId();
18797
      case TYPE:
18798
        return isSetType();
18799
      case ORDER_QUANTITY:
18800
        return isSetOrderQuantity();
18801
      }
18802
      throw new IllegalStateException();
18803
    }
18804
 
18805
    @Override
18806
    public boolean equals(Object that) {
18807
      if (that == null)
18808
        return false;
18809
      if (that instanceof getNewEmptyAwb_args)
18810
        return this.equals((getNewEmptyAwb_args)that);
18811
      return false;
18812
    }
18813
 
18814
    public boolean equals(getNewEmptyAwb_args that) {
18815
      if (that == null)
18816
        return false;
18817
 
18818
      boolean this_present_providerId = true;
18819
      boolean that_present_providerId = true;
18820
      if (this_present_providerId || that_present_providerId) {
18821
        if (!(this_present_providerId && that_present_providerId))
18822
          return false;
18823
        if (this.providerId != that.providerId)
18824
          return false;
18825
      }
18826
 
18827
      boolean this_present_type = true && this.isSetType();
18828
      boolean that_present_type = true && that.isSetType();
18829
      if (this_present_type || that_present_type) {
18830
        if (!(this_present_type && that_present_type))
18831
          return false;
18832
        if (!this.type.equals(that.type))
18833
          return false;
18834
      }
18835
 
18836
      boolean this_present_orderQuantity = true;
18837
      boolean that_present_orderQuantity = true;
18838
      if (this_present_orderQuantity || that_present_orderQuantity) {
18839
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18840
          return false;
18841
        if (this.orderQuantity != that.orderQuantity)
18842
          return false;
18843
      }
18844
 
18845
      return true;
18846
    }
18847
 
18848
    @Override
18849
    public int hashCode() {
18850
      return 0;
18851
    }
18852
 
18853
    public int compareTo(getNewEmptyAwb_args other) {
18854
      if (!getClass().equals(other.getClass())) {
18855
        return getClass().getName().compareTo(other.getClass().getName());
18856
      }
18857
 
18858
      int lastComparison = 0;
18859
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18860
 
18861
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18862
      if (lastComparison != 0) {
18863
        return lastComparison;
18864
      }
18865
      if (isSetProviderId()) {
18866
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18867
        if (lastComparison != 0) {
18868
          return lastComparison;
18869
        }
18870
      }
18871
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18872
      if (lastComparison != 0) {
18873
        return lastComparison;
18874
      }
18875
      if (isSetType()) {
18876
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18877
        if (lastComparison != 0) {
18878
          return lastComparison;
18879
        }
18880
      }
18881
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18882
      if (lastComparison != 0) {
18883
        return lastComparison;
18884
      }
18885
      if (isSetOrderQuantity()) {
18886
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18887
        if (lastComparison != 0) {
18888
          return lastComparison;
18889
        }
18890
      }
18891
      return 0;
18892
    }
18893
 
18894
    public _Fields fieldForId(int fieldId) {
18895
      return _Fields.findByThriftId(fieldId);
18896
    }
18897
 
18898
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18899
      org.apache.thrift.protocol.TField field;
18900
      iprot.readStructBegin();
18901
      while (true)
18902
      {
18903
        field = iprot.readFieldBegin();
18904
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18905
          break;
18906
        }
18907
        switch (field.id) {
18908
          case 1: // PROVIDER_ID
18909
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18910
              this.providerId = iprot.readI64();
18911
              setProviderIdIsSet(true);
18912
            } else { 
18913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18914
            }
18915
            break;
18916
          case 2: // TYPE
18917
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18918
              this.type = DeliveryType.findByValue(iprot.readI32());
18919
            } else { 
18920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18921
            }
18922
            break;
18923
          case 3: // ORDER_QUANTITY
18924
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18925
              this.orderQuantity = iprot.readI64();
18926
              setOrderQuantityIsSet(true);
18927
            } else { 
18928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18929
            }
18930
            break;
18931
          default:
18932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18933
        }
18934
        iprot.readFieldEnd();
18935
      }
18936
      iprot.readStructEnd();
18937
      validate();
18938
    }
18939
 
18940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18941
      validate();
18942
 
18943
      oprot.writeStructBegin(STRUCT_DESC);
18944
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
18945
      oprot.writeI64(this.providerId);
18946
      oprot.writeFieldEnd();
18947
      if (this.type != null) {
18948
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
18949
        oprot.writeI32(this.type.getValue());
18950
        oprot.writeFieldEnd();
18951
      }
18952
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
18953
      oprot.writeI64(this.orderQuantity);
18954
      oprot.writeFieldEnd();
18955
      oprot.writeFieldStop();
18956
      oprot.writeStructEnd();
18957
    }
18958
 
18959
    @Override
18960
    public String toString() {
18961
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
18962
      boolean first = true;
18963
 
18964
      sb.append("providerId:");
18965
      sb.append(this.providerId);
18966
      first = false;
18967
      if (!first) sb.append(", ");
18968
      sb.append("type:");
18969
      if (this.type == null) {
18970
        sb.append("null");
18971
      } else {
18972
        sb.append(this.type);
18973
      }
18974
      first = false;
18975
      if (!first) sb.append(", ");
18976
      sb.append("orderQuantity:");
18977
      sb.append(this.orderQuantity);
18978
      first = false;
18979
      sb.append(")");
18980
      return sb.toString();
18981
    }
18982
 
18983
    public void validate() throws org.apache.thrift.TException {
18984
      // check for required fields
18985
    }
18986
 
18987
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18988
      try {
18989
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18990
      } catch (org.apache.thrift.TException te) {
18991
        throw new java.io.IOException(te);
18992
      }
18993
    }
18994
 
18995
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18996
      try {
18997
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18998
        __isset_bit_vector = new BitSet(1);
18999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19000
      } catch (org.apache.thrift.TException te) {
19001
        throw new java.io.IOException(te);
19002
      }
19003
    }
19004
 
19005
  }
19006
 
19007
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19008
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19009
 
19010
    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);
19011
    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);
19012
 
19013
    private String success; // required
19014
    private LogisticsServiceException se; // required
19015
 
19016
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19017
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19018
      SUCCESS((short)0, "success"),
19019
      SE((short)1, "se");
19020
 
19021
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19022
 
19023
      static {
19024
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19025
          byName.put(field.getFieldName(), field);
19026
        }
19027
      }
19028
 
19029
      /**
19030
       * Find the _Fields constant that matches fieldId, or null if its not found.
19031
       */
19032
      public static _Fields findByThriftId(int fieldId) {
19033
        switch(fieldId) {
19034
          case 0: // SUCCESS
19035
            return SUCCESS;
19036
          case 1: // SE
19037
            return SE;
19038
          default:
19039
            return null;
19040
        }
19041
      }
19042
 
19043
      /**
19044
       * Find the _Fields constant that matches fieldId, throwing an exception
19045
       * if it is not found.
19046
       */
19047
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19048
        _Fields fields = findByThriftId(fieldId);
19049
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19050
        return fields;
19051
      }
19052
 
19053
      /**
19054
       * Find the _Fields constant that matches name, or null if its not found.
19055
       */
19056
      public static _Fields findByName(String name) {
19057
        return byName.get(name);
19058
      }
19059
 
19060
      private final short _thriftId;
19061
      private final String _fieldName;
19062
 
19063
      _Fields(short thriftId, String fieldName) {
19064
        _thriftId = thriftId;
19065
        _fieldName = fieldName;
19066
      }
19067
 
19068
      public short getThriftFieldId() {
19069
        return _thriftId;
19070
      }
19071
 
19072
      public String getFieldName() {
19073
        return _fieldName;
19074
      }
19075
    }
19076
 
19077
    // isset id assignments
19078
 
19079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19080
    static {
19081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19082
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19084
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19086
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19087
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19088
    }
19089
 
19090
    public getNewEmptyAwb_result() {
19091
    }
19092
 
19093
    public getNewEmptyAwb_result(
19094
      String success,
19095
      LogisticsServiceException se)
19096
    {
19097
      this();
19098
      this.success = success;
19099
      this.se = se;
19100
    }
19101
 
19102
    /**
19103
     * Performs a deep copy on <i>other</i>.
19104
     */
19105
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19106
      if (other.isSetSuccess()) {
19107
        this.success = other.success;
19108
      }
19109
      if (other.isSetSe()) {
19110
        this.se = new LogisticsServiceException(other.se);
19111
      }
19112
    }
19113
 
19114
    public getNewEmptyAwb_result deepCopy() {
19115
      return new getNewEmptyAwb_result(this);
19116
    }
19117
 
19118
    @Override
19119
    public void clear() {
19120
      this.success = null;
19121
      this.se = null;
19122
    }
19123
 
19124
    public String getSuccess() {
19125
      return this.success;
19126
    }
19127
 
19128
    public void setSuccess(String success) {
19129
      this.success = success;
19130
    }
19131
 
19132
    public void unsetSuccess() {
19133
      this.success = null;
19134
    }
19135
 
19136
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19137
    public boolean isSetSuccess() {
19138
      return this.success != null;
19139
    }
19140
 
19141
    public void setSuccessIsSet(boolean value) {
19142
      if (!value) {
19143
        this.success = null;
19144
      }
19145
    }
19146
 
19147
    public LogisticsServiceException getSe() {
19148
      return this.se;
19149
    }
19150
 
19151
    public void setSe(LogisticsServiceException se) {
19152
      this.se = se;
19153
    }
19154
 
19155
    public void unsetSe() {
19156
      this.se = null;
19157
    }
19158
 
19159
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19160
    public boolean isSetSe() {
19161
      return this.se != null;
19162
    }
19163
 
19164
    public void setSeIsSet(boolean value) {
19165
      if (!value) {
19166
        this.se = null;
19167
      }
19168
    }
19169
 
19170
    public void setFieldValue(_Fields field, Object value) {
19171
      switch (field) {
19172
      case SUCCESS:
19173
        if (value == null) {
19174
          unsetSuccess();
19175
        } else {
19176
          setSuccess((String)value);
19177
        }
19178
        break;
19179
 
19180
      case SE:
19181
        if (value == null) {
19182
          unsetSe();
19183
        } else {
19184
          setSe((LogisticsServiceException)value);
19185
        }
19186
        break;
19187
 
19188
      }
19189
    }
19190
 
19191
    public Object getFieldValue(_Fields field) {
19192
      switch (field) {
19193
      case SUCCESS:
19194
        return getSuccess();
19195
 
19196
      case SE:
19197
        return getSe();
19198
 
19199
      }
19200
      throw new IllegalStateException();
19201
    }
19202
 
19203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19204
    public boolean isSet(_Fields field) {
19205
      if (field == null) {
19206
        throw new IllegalArgumentException();
19207
      }
19208
 
19209
      switch (field) {
19210
      case SUCCESS:
19211
        return isSetSuccess();
19212
      case SE:
19213
        return isSetSe();
19214
      }
19215
      throw new IllegalStateException();
19216
    }
19217
 
19218
    @Override
19219
    public boolean equals(Object that) {
19220
      if (that == null)
19221
        return false;
19222
      if (that instanceof getNewEmptyAwb_result)
19223
        return this.equals((getNewEmptyAwb_result)that);
19224
      return false;
19225
    }
19226
 
19227
    public boolean equals(getNewEmptyAwb_result that) {
19228
      if (that == null)
19229
        return false;
19230
 
19231
      boolean this_present_success = true && this.isSetSuccess();
19232
      boolean that_present_success = true && that.isSetSuccess();
19233
      if (this_present_success || that_present_success) {
19234
        if (!(this_present_success && that_present_success))
19235
          return false;
19236
        if (!this.success.equals(that.success))
19237
          return false;
19238
      }
19239
 
19240
      boolean this_present_se = true && this.isSetSe();
19241
      boolean that_present_se = true && that.isSetSe();
19242
      if (this_present_se || that_present_se) {
19243
        if (!(this_present_se && that_present_se))
19244
          return false;
19245
        if (!this.se.equals(that.se))
19246
          return false;
19247
      }
19248
 
19249
      return true;
19250
    }
19251
 
19252
    @Override
19253
    public int hashCode() {
19254
      return 0;
19255
    }
19256
 
19257
    public int compareTo(getNewEmptyAwb_result other) {
19258
      if (!getClass().equals(other.getClass())) {
19259
        return getClass().getName().compareTo(other.getClass().getName());
19260
      }
19261
 
19262
      int lastComparison = 0;
19263
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19264
 
19265
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19266
      if (lastComparison != 0) {
19267
        return lastComparison;
19268
      }
19269
      if (isSetSuccess()) {
19270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19271
        if (lastComparison != 0) {
19272
          return lastComparison;
19273
        }
19274
      }
19275
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19276
      if (lastComparison != 0) {
19277
        return lastComparison;
19278
      }
19279
      if (isSetSe()) {
19280
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19281
        if (lastComparison != 0) {
19282
          return lastComparison;
19283
        }
19284
      }
19285
      return 0;
19286
    }
19287
 
19288
    public _Fields fieldForId(int fieldId) {
19289
      return _Fields.findByThriftId(fieldId);
19290
    }
19291
 
19292
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19293
      org.apache.thrift.protocol.TField field;
19294
      iprot.readStructBegin();
19295
      while (true)
19296
      {
19297
        field = iprot.readFieldBegin();
19298
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19299
          break;
19300
        }
19301
        switch (field.id) {
19302
          case 0: // SUCCESS
19303
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19304
              this.success = iprot.readString();
19305
            } else { 
19306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19307
            }
19308
            break;
19309
          case 1: // SE
19310
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19311
              this.se = new LogisticsServiceException();
19312
              this.se.read(iprot);
19313
            } else { 
19314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19315
            }
19316
            break;
19317
          default:
19318
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19319
        }
19320
        iprot.readFieldEnd();
19321
      }
19322
      iprot.readStructEnd();
19323
      validate();
19324
    }
19325
 
19326
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19327
      oprot.writeStructBegin(STRUCT_DESC);
19328
 
19329
      if (this.isSetSuccess()) {
19330
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19331
        oprot.writeString(this.success);
19332
        oprot.writeFieldEnd();
19333
      } else if (this.isSetSe()) {
19334
        oprot.writeFieldBegin(SE_FIELD_DESC);
19335
        this.se.write(oprot);
19336
        oprot.writeFieldEnd();
19337
      }
19338
      oprot.writeFieldStop();
19339
      oprot.writeStructEnd();
19340
    }
19341
 
19342
    @Override
19343
    public String toString() {
19344
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19345
      boolean first = true;
19346
 
19347
      sb.append("success:");
19348
      if (this.success == null) {
19349
        sb.append("null");
19350
      } else {
19351
        sb.append(this.success);
19352
      }
19353
      first = false;
19354
      if (!first) sb.append(", ");
19355
      sb.append("se:");
19356
      if (this.se == null) {
19357
        sb.append("null");
19358
      } else {
19359
        sb.append(this.se);
19360
      }
19361
      first = false;
19362
      sb.append(")");
19363
      return sb.toString();
19364
    }
19365
 
19366
    public void validate() throws org.apache.thrift.TException {
19367
      // check for required fields
19368
    }
19369
 
19370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19371
      try {
19372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19373
      } catch (org.apache.thrift.TException te) {
19374
        throw new java.io.IOException(te);
19375
      }
19376
    }
19377
 
19378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19379
      try {
19380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19381
      } catch (org.apache.thrift.TException te) {
19382
        throw new java.io.IOException(te);
19383
      }
19384
    }
19385
 
19386
  }
19387
 
19388
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19390
 
19391
    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);
19392
    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);
19393
 
19394
    private long providerId; // required
19395
    private String pincode; // required
19396
 
19397
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19398
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19399
      PROVIDER_ID((short)1, "providerId"),
19400
      PINCODE((short)2, "pincode");
19401
 
19402
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19403
 
19404
      static {
19405
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19406
          byName.put(field.getFieldName(), field);
19407
        }
19408
      }
19409
 
19410
      /**
19411
       * Find the _Fields constant that matches fieldId, or null if its not found.
19412
       */
19413
      public static _Fields findByThriftId(int fieldId) {
19414
        switch(fieldId) {
19415
          case 1: // PROVIDER_ID
19416
            return PROVIDER_ID;
19417
          case 2: // PINCODE
19418
            return PINCODE;
19419
          default:
19420
            return null;
19421
        }
19422
      }
19423
 
19424
      /**
19425
       * Find the _Fields constant that matches fieldId, throwing an exception
19426
       * if it is not found.
19427
       */
19428
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19429
        _Fields fields = findByThriftId(fieldId);
19430
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19431
        return fields;
19432
      }
19433
 
19434
      /**
19435
       * Find the _Fields constant that matches name, or null if its not found.
19436
       */
19437
      public static _Fields findByName(String name) {
19438
        return byName.get(name);
19439
      }
19440
 
19441
      private final short _thriftId;
19442
      private final String _fieldName;
19443
 
19444
      _Fields(short thriftId, String fieldName) {
19445
        _thriftId = thriftId;
19446
        _fieldName = fieldName;
19447
      }
19448
 
19449
      public short getThriftFieldId() {
19450
        return _thriftId;
19451
      }
19452
 
19453
      public String getFieldName() {
19454
        return _fieldName;
19455
      }
19456
    }
19457
 
19458
    // isset id assignments
19459
    private static final int __PROVIDERID_ISSET_ID = 0;
19460
    private BitSet __isset_bit_vector = new BitSet(1);
19461
 
19462
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19463
    static {
19464
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19465
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19466
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19467
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19468
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19469
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19470
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19471
    }
19472
 
19473
    public getProviderLimitDetailsForPincode_args() {
19474
    }
19475
 
19476
    public getProviderLimitDetailsForPincode_args(
19477
      long providerId,
19478
      String pincode)
19479
    {
19480
      this();
19481
      this.providerId = providerId;
19482
      setProviderIdIsSet(true);
19483
      this.pincode = pincode;
19484
    }
19485
 
19486
    /**
19487
     * Performs a deep copy on <i>other</i>.
19488
     */
19489
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19490
      __isset_bit_vector.clear();
19491
      __isset_bit_vector.or(other.__isset_bit_vector);
19492
      this.providerId = other.providerId;
19493
      if (other.isSetPincode()) {
19494
        this.pincode = other.pincode;
19495
      }
19496
    }
19497
 
19498
    public getProviderLimitDetailsForPincode_args deepCopy() {
19499
      return new getProviderLimitDetailsForPincode_args(this);
19500
    }
19501
 
19502
    @Override
19503
    public void clear() {
19504
      setProviderIdIsSet(false);
19505
      this.providerId = 0;
19506
      this.pincode = null;
19507
    }
19508
 
19509
    public long getProviderId() {
19510
      return this.providerId;
19511
    }
19512
 
19513
    public void setProviderId(long providerId) {
19514
      this.providerId = providerId;
19515
      setProviderIdIsSet(true);
19516
    }
19517
 
19518
    public void unsetProviderId() {
19519
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19520
    }
19521
 
19522
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19523
    public boolean isSetProviderId() {
19524
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19525
    }
19526
 
19527
    public void setProviderIdIsSet(boolean value) {
19528
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19529
    }
19530
 
19531
    public String getPincode() {
19532
      return this.pincode;
19533
    }
19534
 
19535
    public void setPincode(String pincode) {
19536
      this.pincode = pincode;
19537
    }
19538
 
19539
    public void unsetPincode() {
19540
      this.pincode = null;
19541
    }
19542
 
19543
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19544
    public boolean isSetPincode() {
19545
      return this.pincode != null;
19546
    }
19547
 
19548
    public void setPincodeIsSet(boolean value) {
19549
      if (!value) {
19550
        this.pincode = null;
19551
      }
19552
    }
19553
 
19554
    public void setFieldValue(_Fields field, Object value) {
19555
      switch (field) {
19556
      case PROVIDER_ID:
19557
        if (value == null) {
19558
          unsetProviderId();
19559
        } else {
19560
          setProviderId((Long)value);
19561
        }
19562
        break;
19563
 
19564
      case PINCODE:
19565
        if (value == null) {
19566
          unsetPincode();
19567
        } else {
19568
          setPincode((String)value);
19569
        }
19570
        break;
19571
 
19572
      }
19573
    }
19574
 
19575
    public Object getFieldValue(_Fields field) {
19576
      switch (field) {
19577
      case PROVIDER_ID:
19578
        return Long.valueOf(getProviderId());
19579
 
19580
      case PINCODE:
19581
        return getPincode();
19582
 
19583
      }
19584
      throw new IllegalStateException();
19585
    }
19586
 
19587
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19588
    public boolean isSet(_Fields field) {
19589
      if (field == null) {
19590
        throw new IllegalArgumentException();
19591
      }
19592
 
19593
      switch (field) {
19594
      case PROVIDER_ID:
19595
        return isSetProviderId();
19596
      case PINCODE:
19597
        return isSetPincode();
19598
      }
19599
      throw new IllegalStateException();
19600
    }
19601
 
19602
    @Override
19603
    public boolean equals(Object that) {
19604
      if (that == null)
19605
        return false;
19606
      if (that instanceof getProviderLimitDetailsForPincode_args)
19607
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19608
      return false;
19609
    }
19610
 
19611
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19612
      if (that == null)
19613
        return false;
19614
 
19615
      boolean this_present_providerId = true;
19616
      boolean that_present_providerId = true;
19617
      if (this_present_providerId || that_present_providerId) {
19618
        if (!(this_present_providerId && that_present_providerId))
19619
          return false;
19620
        if (this.providerId != that.providerId)
19621
          return false;
19622
      }
19623
 
19624
      boolean this_present_pincode = true && this.isSetPincode();
19625
      boolean that_present_pincode = true && that.isSetPincode();
19626
      if (this_present_pincode || that_present_pincode) {
19627
        if (!(this_present_pincode && that_present_pincode))
19628
          return false;
19629
        if (!this.pincode.equals(that.pincode))
19630
          return false;
19631
      }
19632
 
19633
      return true;
19634
    }
19635
 
19636
    @Override
19637
    public int hashCode() {
19638
      return 0;
19639
    }
19640
 
19641
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19642
      if (!getClass().equals(other.getClass())) {
19643
        return getClass().getName().compareTo(other.getClass().getName());
19644
      }
19645
 
19646
      int lastComparison = 0;
19647
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19648
 
19649
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19650
      if (lastComparison != 0) {
19651
        return lastComparison;
19652
      }
19653
      if (isSetProviderId()) {
19654
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19655
        if (lastComparison != 0) {
19656
          return lastComparison;
19657
        }
19658
      }
19659
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19660
      if (lastComparison != 0) {
19661
        return lastComparison;
19662
      }
19663
      if (isSetPincode()) {
19664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19665
        if (lastComparison != 0) {
19666
          return lastComparison;
19667
        }
19668
      }
19669
      return 0;
19670
    }
19671
 
19672
    public _Fields fieldForId(int fieldId) {
19673
      return _Fields.findByThriftId(fieldId);
19674
    }
19675
 
19676
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19677
      org.apache.thrift.protocol.TField field;
19678
      iprot.readStructBegin();
19679
      while (true)
19680
      {
19681
        field = iprot.readFieldBegin();
19682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19683
          break;
19684
        }
19685
        switch (field.id) {
19686
          case 1: // PROVIDER_ID
19687
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19688
              this.providerId = iprot.readI64();
19689
              setProviderIdIsSet(true);
19690
            } else { 
19691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19692
            }
19693
            break;
19694
          case 2: // PINCODE
19695
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19696
              this.pincode = iprot.readString();
19697
            } else { 
19698
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19699
            }
19700
            break;
19701
          default:
19702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19703
        }
19704
        iprot.readFieldEnd();
19705
      }
19706
      iprot.readStructEnd();
19707
      validate();
19708
    }
19709
 
19710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19711
      validate();
19712
 
19713
      oprot.writeStructBegin(STRUCT_DESC);
19714
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19715
      oprot.writeI64(this.providerId);
19716
      oprot.writeFieldEnd();
19717
      if (this.pincode != null) {
19718
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19719
        oprot.writeString(this.pincode);
19720
        oprot.writeFieldEnd();
19721
      }
19722
      oprot.writeFieldStop();
19723
      oprot.writeStructEnd();
19724
    }
19725
 
19726
    @Override
19727
    public String toString() {
19728
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19729
      boolean first = true;
19730
 
19731
      sb.append("providerId:");
19732
      sb.append(this.providerId);
19733
      first = false;
19734
      if (!first) sb.append(", ");
19735
      sb.append("pincode:");
19736
      if (this.pincode == null) {
19737
        sb.append("null");
19738
      } else {
19739
        sb.append(this.pincode);
19740
      }
19741
      first = false;
19742
      sb.append(")");
19743
      return sb.toString();
19744
    }
19745
 
19746
    public void validate() throws org.apache.thrift.TException {
19747
      // check for required fields
19748
    }
19749
 
19750
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19751
      try {
19752
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19753
      } catch (org.apache.thrift.TException te) {
19754
        throw new java.io.IOException(te);
19755
      }
19756
    }
19757
 
19758
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19759
      try {
19760
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19761
        __isset_bit_vector = new BitSet(1);
19762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19763
      } catch (org.apache.thrift.TException te) {
19764
        throw new java.io.IOException(te);
19765
      }
19766
    }
19767
 
19768
  }
19769
 
19770
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19772
 
19773
    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);
19774
    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);
19775
 
19776
    private Map<String,String> success; // required
19777
    private LogisticsServiceException se; // required
19778
 
19779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19781
      SUCCESS((short)0, "success"),
19782
      SE((short)1, "se");
19783
 
19784
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19785
 
19786
      static {
19787
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19788
          byName.put(field.getFieldName(), field);
19789
        }
19790
      }
19791
 
19792
      /**
19793
       * Find the _Fields constant that matches fieldId, or null if its not found.
19794
       */
19795
      public static _Fields findByThriftId(int fieldId) {
19796
        switch(fieldId) {
19797
          case 0: // SUCCESS
19798
            return SUCCESS;
19799
          case 1: // SE
19800
            return SE;
19801
          default:
19802
            return null;
19803
        }
19804
      }
19805
 
19806
      /**
19807
       * Find the _Fields constant that matches fieldId, throwing an exception
19808
       * if it is not found.
19809
       */
19810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19811
        _Fields fields = findByThriftId(fieldId);
19812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19813
        return fields;
19814
      }
19815
 
19816
      /**
19817
       * Find the _Fields constant that matches name, or null if its not found.
19818
       */
19819
      public static _Fields findByName(String name) {
19820
        return byName.get(name);
19821
      }
19822
 
19823
      private final short _thriftId;
19824
      private final String _fieldName;
19825
 
19826
      _Fields(short thriftId, String fieldName) {
19827
        _thriftId = thriftId;
19828
        _fieldName = fieldName;
19829
      }
19830
 
19831
      public short getThriftFieldId() {
19832
        return _thriftId;
19833
      }
19834
 
19835
      public String getFieldName() {
19836
        return _fieldName;
19837
      }
19838
    }
19839
 
19840
    // isset id assignments
19841
 
19842
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19843
    static {
19844
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19845
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19846
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19847
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19848
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19849
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19850
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19851
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19852
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19853
    }
19854
 
19855
    public getProviderLimitDetailsForPincode_result() {
19856
    }
19857
 
19858
    public getProviderLimitDetailsForPincode_result(
19859
      Map<String,String> success,
19860
      LogisticsServiceException se)
19861
    {
19862
      this();
19863
      this.success = success;
19864
      this.se = se;
19865
    }
19866
 
19867
    /**
19868
     * Performs a deep copy on <i>other</i>.
19869
     */
19870
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19871
      if (other.isSetSuccess()) {
19872
        Map<String,String> __this__success = new HashMap<String,String>();
19873
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19874
 
19875
          String other_element_key = other_element.getKey();
19876
          String other_element_value = other_element.getValue();
19877
 
19878
          String __this__success_copy_key = other_element_key;
19879
 
19880
          String __this__success_copy_value = other_element_value;
19881
 
19882
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19883
        }
19884
        this.success = __this__success;
19885
      }
19886
      if (other.isSetSe()) {
19887
        this.se = new LogisticsServiceException(other.se);
19888
      }
19889
    }
19890
 
19891
    public getProviderLimitDetailsForPincode_result deepCopy() {
19892
      return new getProviderLimitDetailsForPincode_result(this);
19893
    }
19894
 
19895
    @Override
19896
    public void clear() {
19897
      this.success = null;
19898
      this.se = null;
19899
    }
19900
 
19901
    public int getSuccessSize() {
19902
      return (this.success == null) ? 0 : this.success.size();
19903
    }
19904
 
19905
    public void putToSuccess(String key, String val) {
19906
      if (this.success == null) {
19907
        this.success = new HashMap<String,String>();
19908
      }
19909
      this.success.put(key, val);
19910
    }
19911
 
19912
    public Map<String,String> getSuccess() {
19913
      return this.success;
19914
    }
19915
 
19916
    public void setSuccess(Map<String,String> success) {
19917
      this.success = success;
19918
    }
19919
 
19920
    public void unsetSuccess() {
19921
      this.success = null;
19922
    }
19923
 
19924
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19925
    public boolean isSetSuccess() {
19926
      return this.success != null;
19927
    }
19928
 
19929
    public void setSuccessIsSet(boolean value) {
19930
      if (!value) {
19931
        this.success = null;
19932
      }
19933
    }
19934
 
19935
    public LogisticsServiceException getSe() {
19936
      return this.se;
19937
    }
19938
 
19939
    public void setSe(LogisticsServiceException se) {
19940
      this.se = se;
19941
    }
19942
 
19943
    public void unsetSe() {
19944
      this.se = null;
19945
    }
19946
 
19947
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19948
    public boolean isSetSe() {
19949
      return this.se != null;
19950
    }
19951
 
19952
    public void setSeIsSet(boolean value) {
19953
      if (!value) {
19954
        this.se = null;
19955
      }
19956
    }
19957
 
19958
    public void setFieldValue(_Fields field, Object value) {
19959
      switch (field) {
19960
      case SUCCESS:
19961
        if (value == null) {
19962
          unsetSuccess();
19963
        } else {
19964
          setSuccess((Map<String,String>)value);
19965
        }
19966
        break;
19967
 
19968
      case SE:
19969
        if (value == null) {
19970
          unsetSe();
19971
        } else {
19972
          setSe((LogisticsServiceException)value);
19973
        }
19974
        break;
19975
 
19976
      }
19977
    }
19978
 
19979
    public Object getFieldValue(_Fields field) {
19980
      switch (field) {
19981
      case SUCCESS:
19982
        return getSuccess();
19983
 
19984
      case SE:
19985
        return getSe();
19986
 
19987
      }
19988
      throw new IllegalStateException();
19989
    }
19990
 
19991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19992
    public boolean isSet(_Fields field) {
19993
      if (field == null) {
19994
        throw new IllegalArgumentException();
19995
      }
19996
 
19997
      switch (field) {
19998
      case SUCCESS:
19999
        return isSetSuccess();
20000
      case SE:
20001
        return isSetSe();
20002
      }
20003
      throw new IllegalStateException();
20004
    }
20005
 
20006
    @Override
20007
    public boolean equals(Object that) {
20008
      if (that == null)
20009
        return false;
20010
      if (that instanceof getProviderLimitDetailsForPincode_result)
20011
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20012
      return false;
20013
    }
20014
 
20015
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20016
      if (that == null)
20017
        return false;
20018
 
20019
      boolean this_present_success = true && this.isSetSuccess();
20020
      boolean that_present_success = true && that.isSetSuccess();
20021
      if (this_present_success || that_present_success) {
20022
        if (!(this_present_success && that_present_success))
20023
          return false;
20024
        if (!this.success.equals(that.success))
20025
          return false;
20026
      }
20027
 
20028
      boolean this_present_se = true && this.isSetSe();
20029
      boolean that_present_se = true && that.isSetSe();
20030
      if (this_present_se || that_present_se) {
20031
        if (!(this_present_se && that_present_se))
20032
          return false;
20033
        if (!this.se.equals(that.se))
20034
          return false;
20035
      }
20036
 
20037
      return true;
20038
    }
20039
 
20040
    @Override
20041
    public int hashCode() {
20042
      return 0;
20043
    }
20044
 
20045
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20046
      if (!getClass().equals(other.getClass())) {
20047
        return getClass().getName().compareTo(other.getClass().getName());
20048
      }
20049
 
20050
      int lastComparison = 0;
20051
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20052
 
20053
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20054
      if (lastComparison != 0) {
20055
        return lastComparison;
20056
      }
20057
      if (isSetSuccess()) {
20058
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20059
        if (lastComparison != 0) {
20060
          return lastComparison;
20061
        }
20062
      }
20063
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20064
      if (lastComparison != 0) {
20065
        return lastComparison;
20066
      }
20067
      if (isSetSe()) {
20068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20069
        if (lastComparison != 0) {
20070
          return lastComparison;
20071
        }
20072
      }
20073
      return 0;
20074
    }
20075
 
20076
    public _Fields fieldForId(int fieldId) {
20077
      return _Fields.findByThriftId(fieldId);
20078
    }
20079
 
20080
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20081
      org.apache.thrift.protocol.TField field;
20082
      iprot.readStructBegin();
20083
      while (true)
20084
      {
20085
        field = iprot.readFieldBegin();
20086
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20087
          break;
20088
        }
20089
        switch (field.id) {
20090
          case 0: // SUCCESS
20091
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20092
              {
20093
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20094
                this.success = new HashMap<String,String>(2*_map32.size);
20095
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20096
                {
20097
                  String _key34; // required
20098
                  String _val35; // required
20099
                  _key34 = iprot.readString();
20100
                  _val35 = iprot.readString();
20101
                  this.success.put(_key34, _val35);
20102
                }
20103
                iprot.readMapEnd();
20104
              }
20105
            } else { 
20106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20107
            }
20108
            break;
20109
          case 1: // SE
20110
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20111
              this.se = new LogisticsServiceException();
20112
              this.se.read(iprot);
20113
            } else { 
20114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20115
            }
20116
            break;
20117
          default:
20118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20119
        }
20120
        iprot.readFieldEnd();
20121
      }
20122
      iprot.readStructEnd();
20123
      validate();
20124
    }
20125
 
20126
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20127
      oprot.writeStructBegin(STRUCT_DESC);
20128
 
20129
      if (this.isSetSuccess()) {
20130
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20131
        {
20132
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20133
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20134
          {
20135
            oprot.writeString(_iter36.getKey());
20136
            oprot.writeString(_iter36.getValue());
20137
          }
20138
          oprot.writeMapEnd();
20139
        }
20140
        oprot.writeFieldEnd();
20141
      } else if (this.isSetSe()) {
20142
        oprot.writeFieldBegin(SE_FIELD_DESC);
20143
        this.se.write(oprot);
20144
        oprot.writeFieldEnd();
20145
      }
20146
      oprot.writeFieldStop();
20147
      oprot.writeStructEnd();
20148
    }
20149
 
20150
    @Override
20151
    public String toString() {
20152
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20153
      boolean first = true;
20154
 
20155
      sb.append("success:");
20156
      if (this.success == null) {
20157
        sb.append("null");
20158
      } else {
20159
        sb.append(this.success);
20160
      }
20161
      first = false;
20162
      if (!first) sb.append(", ");
20163
      sb.append("se:");
20164
      if (this.se == null) {
20165
        sb.append("null");
20166
      } else {
20167
        sb.append(this.se);
20168
      }
20169
      first = false;
20170
      sb.append(")");
20171
      return sb.toString();
20172
    }
20173
 
20174
    public void validate() throws org.apache.thrift.TException {
20175
      // check for required fields
20176
    }
20177
 
20178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20179
      try {
20180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20181
      } catch (org.apache.thrift.TException te) {
20182
        throw new java.io.IOException(te);
20183
      }
20184
    }
20185
 
20186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20187
      try {
20188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20189
      } catch (org.apache.thrift.TException te) {
20190
        throw new java.io.IOException(te);
20191
      }
20192
    }
20193
 
20194
  }
20195
 
19413 amit.gupta 20196
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20198
 
20199
    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);
20200
    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);
20201
 
20202
    private String destPincode; // required
20203
    private List<Long> price; // required
20204
 
20205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20207
      DEST_PINCODE((short)1, "destPincode"),
20208
      PRICE((short)2, "price");
20209
 
20210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20211
 
20212
      static {
20213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20214
          byName.put(field.getFieldName(), field);
20215
        }
20216
      }
20217
 
20218
      /**
20219
       * Find the _Fields constant that matches fieldId, or null if its not found.
20220
       */
20221
      public static _Fields findByThriftId(int fieldId) {
20222
        switch(fieldId) {
20223
          case 1: // DEST_PINCODE
20224
            return DEST_PINCODE;
20225
          case 2: // PRICE
20226
            return PRICE;
20227
          default:
20228
            return null;
20229
        }
20230
      }
20231
 
20232
      /**
20233
       * Find the _Fields constant that matches fieldId, throwing an exception
20234
       * if it is not found.
20235
       */
20236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20237
        _Fields fields = findByThriftId(fieldId);
20238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20239
        return fields;
20240
      }
20241
 
20242
      /**
20243
       * Find the _Fields constant that matches name, or null if its not found.
20244
       */
20245
      public static _Fields findByName(String name) {
20246
        return byName.get(name);
20247
      }
20248
 
20249
      private final short _thriftId;
20250
      private final String _fieldName;
20251
 
20252
      _Fields(short thriftId, String fieldName) {
20253
        _thriftId = thriftId;
20254
        _fieldName = fieldName;
20255
      }
20256
 
20257
      public short getThriftFieldId() {
20258
        return _thriftId;
20259
      }
20260
 
20261
      public String getFieldName() {
20262
        return _fieldName;
20263
      }
20264
    }
20265
 
20266
    // isset id assignments
20267
 
20268
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20269
    static {
20270
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20271
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20273
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20274
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20275
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20278
    }
20279
 
20280
    public getLocationInfoMap_args() {
20281
    }
20282
 
20283
    public getLocationInfoMap_args(
20284
      String destPincode,
20285
      List<Long> price)
20286
    {
20287
      this();
20288
      this.destPincode = destPincode;
20289
      this.price = price;
20290
    }
20291
 
20292
    /**
20293
     * Performs a deep copy on <i>other</i>.
20294
     */
20295
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20296
      if (other.isSetDestPincode()) {
20297
        this.destPincode = other.destPincode;
20298
      }
20299
      if (other.isSetPrice()) {
20300
        List<Long> __this__price = new ArrayList<Long>();
20301
        for (Long other_element : other.price) {
20302
          __this__price.add(other_element);
20303
        }
20304
        this.price = __this__price;
20305
      }
20306
    }
20307
 
20308
    public getLocationInfoMap_args deepCopy() {
20309
      return new getLocationInfoMap_args(this);
20310
    }
20311
 
20312
    @Override
20313
    public void clear() {
20314
      this.destPincode = null;
20315
      this.price = null;
20316
    }
20317
 
20318
    public String getDestPincode() {
20319
      return this.destPincode;
20320
    }
20321
 
20322
    public void setDestPincode(String destPincode) {
20323
      this.destPincode = destPincode;
20324
    }
20325
 
20326
    public void unsetDestPincode() {
20327
      this.destPincode = null;
20328
    }
20329
 
20330
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20331
    public boolean isSetDestPincode() {
20332
      return this.destPincode != null;
20333
    }
20334
 
20335
    public void setDestPincodeIsSet(boolean value) {
20336
      if (!value) {
20337
        this.destPincode = null;
20338
      }
20339
    }
20340
 
20341
    public int getPriceSize() {
20342
      return (this.price == null) ? 0 : this.price.size();
20343
    }
20344
 
20345
    public java.util.Iterator<Long> getPriceIterator() {
20346
      return (this.price == null) ? null : this.price.iterator();
20347
    }
20348
 
20349
    public void addToPrice(long elem) {
20350
      if (this.price == null) {
20351
        this.price = new ArrayList<Long>();
20352
      }
20353
      this.price.add(elem);
20354
    }
20355
 
20356
    public List<Long> getPrice() {
20357
      return this.price;
20358
    }
20359
 
20360
    public void setPrice(List<Long> price) {
20361
      this.price = price;
20362
    }
20363
 
20364
    public void unsetPrice() {
20365
      this.price = null;
20366
    }
20367
 
20368
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20369
    public boolean isSetPrice() {
20370
      return this.price != null;
20371
    }
20372
 
20373
    public void setPriceIsSet(boolean value) {
20374
      if (!value) {
20375
        this.price = null;
20376
      }
20377
    }
20378
 
20379
    public void setFieldValue(_Fields field, Object value) {
20380
      switch (field) {
20381
      case DEST_PINCODE:
20382
        if (value == null) {
20383
          unsetDestPincode();
20384
        } else {
20385
          setDestPincode((String)value);
20386
        }
20387
        break;
20388
 
20389
      case PRICE:
20390
        if (value == null) {
20391
          unsetPrice();
20392
        } else {
20393
          setPrice((List<Long>)value);
20394
        }
20395
        break;
20396
 
20397
      }
20398
    }
20399
 
20400
    public Object getFieldValue(_Fields field) {
20401
      switch (field) {
20402
      case DEST_PINCODE:
20403
        return getDestPincode();
20404
 
20405
      case PRICE:
20406
        return getPrice();
20407
 
20408
      }
20409
      throw new IllegalStateException();
20410
    }
20411
 
20412
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20413
    public boolean isSet(_Fields field) {
20414
      if (field == null) {
20415
        throw new IllegalArgumentException();
20416
      }
20417
 
20418
      switch (field) {
20419
      case DEST_PINCODE:
20420
        return isSetDestPincode();
20421
      case PRICE:
20422
        return isSetPrice();
20423
      }
20424
      throw new IllegalStateException();
20425
    }
20426
 
20427
    @Override
20428
    public boolean equals(Object that) {
20429
      if (that == null)
20430
        return false;
20431
      if (that instanceof getLocationInfoMap_args)
20432
        return this.equals((getLocationInfoMap_args)that);
20433
      return false;
20434
    }
20435
 
20436
    public boolean equals(getLocationInfoMap_args that) {
20437
      if (that == null)
20438
        return false;
20439
 
20440
      boolean this_present_destPincode = true && this.isSetDestPincode();
20441
      boolean that_present_destPincode = true && that.isSetDestPincode();
20442
      if (this_present_destPincode || that_present_destPincode) {
20443
        if (!(this_present_destPincode && that_present_destPincode))
20444
          return false;
20445
        if (!this.destPincode.equals(that.destPincode))
20446
          return false;
20447
      }
20448
 
20449
      boolean this_present_price = true && this.isSetPrice();
20450
      boolean that_present_price = true && that.isSetPrice();
20451
      if (this_present_price || that_present_price) {
20452
        if (!(this_present_price && that_present_price))
20453
          return false;
20454
        if (!this.price.equals(that.price))
20455
          return false;
20456
      }
20457
 
20458
      return true;
20459
    }
20460
 
20461
    @Override
20462
    public int hashCode() {
20463
      return 0;
20464
    }
20465
 
20466
    public int compareTo(getLocationInfoMap_args other) {
20467
      if (!getClass().equals(other.getClass())) {
20468
        return getClass().getName().compareTo(other.getClass().getName());
20469
      }
20470
 
20471
      int lastComparison = 0;
20472
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20473
 
20474
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20475
      if (lastComparison != 0) {
20476
        return lastComparison;
20477
      }
20478
      if (isSetDestPincode()) {
20479
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20480
        if (lastComparison != 0) {
20481
          return lastComparison;
20482
        }
20483
      }
20484
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20485
      if (lastComparison != 0) {
20486
        return lastComparison;
20487
      }
20488
      if (isSetPrice()) {
20489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20490
        if (lastComparison != 0) {
20491
          return lastComparison;
20492
        }
20493
      }
20494
      return 0;
20495
    }
20496
 
20497
    public _Fields fieldForId(int fieldId) {
20498
      return _Fields.findByThriftId(fieldId);
20499
    }
20500
 
20501
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20502
      org.apache.thrift.protocol.TField field;
20503
      iprot.readStructBegin();
20504
      while (true)
20505
      {
20506
        field = iprot.readFieldBegin();
20507
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20508
          break;
20509
        }
20510
        switch (field.id) {
20511
          case 1: // DEST_PINCODE
20512
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20513
              this.destPincode = iprot.readString();
20514
            } else { 
20515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20516
            }
20517
            break;
20518
          case 2: // PRICE
20519
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20520
              {
20521
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20522
                this.price = new ArrayList<Long>(_list37.size);
20523
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20524
                {
20525
                  long _elem39; // required
20526
                  _elem39 = iprot.readI64();
20527
                  this.price.add(_elem39);
20528
                }
20529
                iprot.readListEnd();
20530
              }
20531
            } else { 
20532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20533
            }
20534
            break;
20535
          default:
20536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20537
        }
20538
        iprot.readFieldEnd();
20539
      }
20540
      iprot.readStructEnd();
20541
      validate();
20542
    }
20543
 
20544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20545
      validate();
20546
 
20547
      oprot.writeStructBegin(STRUCT_DESC);
20548
      if (this.destPincode != null) {
20549
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20550
        oprot.writeString(this.destPincode);
20551
        oprot.writeFieldEnd();
20552
      }
20553
      if (this.price != null) {
20554
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20555
        {
20556
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20557
          for (long _iter40 : this.price)
20558
          {
20559
            oprot.writeI64(_iter40);
20560
          }
20561
          oprot.writeListEnd();
20562
        }
20563
        oprot.writeFieldEnd();
20564
      }
20565
      oprot.writeFieldStop();
20566
      oprot.writeStructEnd();
20567
    }
20568
 
20569
    @Override
20570
    public String toString() {
20571
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20572
      boolean first = true;
20573
 
20574
      sb.append("destPincode:");
20575
      if (this.destPincode == null) {
20576
        sb.append("null");
20577
      } else {
20578
        sb.append(this.destPincode);
20579
      }
20580
      first = false;
20581
      if (!first) sb.append(", ");
20582
      sb.append("price:");
20583
      if (this.price == null) {
20584
        sb.append("null");
20585
      } else {
20586
        sb.append(this.price);
20587
      }
20588
      first = false;
20589
      sb.append(")");
20590
      return sb.toString();
20591
    }
20592
 
20593
    public void validate() throws org.apache.thrift.TException {
20594
      // check for required fields
20595
    }
20596
 
20597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20598
      try {
20599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20600
      } catch (org.apache.thrift.TException te) {
20601
        throw new java.io.IOException(te);
20602
      }
20603
    }
20604
 
20605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20606
      try {
20607
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20608
      } catch (org.apache.thrift.TException te) {
20609
        throw new java.io.IOException(te);
20610
      }
20611
    }
20612
 
20613
  }
20614
 
20615
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20616
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20617
 
20618
    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);
20619
 
20620
    private Map<Long,Map<Long,LocationInfo>> success; // required
20621
 
20622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20624
      SUCCESS((short)0, "success");
20625
 
20626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20627
 
20628
      static {
20629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20630
          byName.put(field.getFieldName(), field);
20631
        }
20632
      }
20633
 
20634
      /**
20635
       * Find the _Fields constant that matches fieldId, or null if its not found.
20636
       */
20637
      public static _Fields findByThriftId(int fieldId) {
20638
        switch(fieldId) {
20639
          case 0: // SUCCESS
20640
            return SUCCESS;
20641
          default:
20642
            return null;
20643
        }
20644
      }
20645
 
20646
      /**
20647
       * Find the _Fields constant that matches fieldId, throwing an exception
20648
       * if it is not found.
20649
       */
20650
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20651
        _Fields fields = findByThriftId(fieldId);
20652
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20653
        return fields;
20654
      }
20655
 
20656
      /**
20657
       * Find the _Fields constant that matches name, or null if its not found.
20658
       */
20659
      public static _Fields findByName(String name) {
20660
        return byName.get(name);
20661
      }
20662
 
20663
      private final short _thriftId;
20664
      private final String _fieldName;
20665
 
20666
      _Fields(short thriftId, String fieldName) {
20667
        _thriftId = thriftId;
20668
        _fieldName = fieldName;
20669
      }
20670
 
20671
      public short getThriftFieldId() {
20672
        return _thriftId;
20673
      }
20674
 
20675
      public String getFieldName() {
20676
        return _fieldName;
20677
      }
20678
    }
20679
 
20680
    // isset id assignments
20681
 
20682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20683
    static {
20684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20685
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20686
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20687
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20688
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20689
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20690
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20693
    }
20694
 
20695
    public getLocationInfoMap_result() {
20696
    }
20697
 
20698
    public getLocationInfoMap_result(
20699
      Map<Long,Map<Long,LocationInfo>> success)
20700
    {
20701
      this();
20702
      this.success = success;
20703
    }
20704
 
20705
    /**
20706
     * Performs a deep copy on <i>other</i>.
20707
     */
20708
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20709
      if (other.isSetSuccess()) {
20710
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20711
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20712
 
20713
          Long other_element_key = other_element.getKey();
20714
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20715
 
20716
          Long __this__success_copy_key = other_element_key;
20717
 
20718
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20719
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20720
 
20721
            Long other_element_value_element_key = other_element_value_element.getKey();
20722
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20723
 
20724
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20725
 
20726
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20727
 
20728
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20729
          }
20730
 
20731
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20732
        }
20733
        this.success = __this__success;
20734
      }
20735
    }
20736
 
20737
    public getLocationInfoMap_result deepCopy() {
20738
      return new getLocationInfoMap_result(this);
20739
    }
20740
 
20741
    @Override
20742
    public void clear() {
20743
      this.success = null;
20744
    }
20745
 
20746
    public int getSuccessSize() {
20747
      return (this.success == null) ? 0 : this.success.size();
20748
    }
20749
 
20750
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20751
      if (this.success == null) {
20752
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20753
      }
20754
      this.success.put(key, val);
20755
    }
20756
 
20757
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20758
      return this.success;
20759
    }
20760
 
20761
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20762
      this.success = success;
20763
    }
20764
 
20765
    public void unsetSuccess() {
20766
      this.success = null;
20767
    }
20768
 
20769
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20770
    public boolean isSetSuccess() {
20771
      return this.success != null;
20772
    }
20773
 
20774
    public void setSuccessIsSet(boolean value) {
20775
      if (!value) {
20776
        this.success = null;
20777
      }
20778
    }
20779
 
20780
    public void setFieldValue(_Fields field, Object value) {
20781
      switch (field) {
20782
      case SUCCESS:
20783
        if (value == null) {
20784
          unsetSuccess();
20785
        } else {
20786
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20787
        }
20788
        break;
20789
 
20790
      }
20791
    }
20792
 
20793
    public Object getFieldValue(_Fields field) {
20794
      switch (field) {
20795
      case SUCCESS:
20796
        return getSuccess();
20797
 
20798
      }
20799
      throw new IllegalStateException();
20800
    }
20801
 
20802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20803
    public boolean isSet(_Fields field) {
20804
      if (field == null) {
20805
        throw new IllegalArgumentException();
20806
      }
20807
 
20808
      switch (field) {
20809
      case SUCCESS:
20810
        return isSetSuccess();
20811
      }
20812
      throw new IllegalStateException();
20813
    }
20814
 
20815
    @Override
20816
    public boolean equals(Object that) {
20817
      if (that == null)
20818
        return false;
20819
      if (that instanceof getLocationInfoMap_result)
20820
        return this.equals((getLocationInfoMap_result)that);
20821
      return false;
20822
    }
20823
 
20824
    public boolean equals(getLocationInfoMap_result that) {
20825
      if (that == null)
20826
        return false;
20827
 
20828
      boolean this_present_success = true && this.isSetSuccess();
20829
      boolean that_present_success = true && that.isSetSuccess();
20830
      if (this_present_success || that_present_success) {
20831
        if (!(this_present_success && that_present_success))
20832
          return false;
20833
        if (!this.success.equals(that.success))
20834
          return false;
20835
      }
20836
 
20837
      return true;
20838
    }
20839
 
20840
    @Override
20841
    public int hashCode() {
20842
      return 0;
20843
    }
20844
 
20845
    public int compareTo(getLocationInfoMap_result other) {
20846
      if (!getClass().equals(other.getClass())) {
20847
        return getClass().getName().compareTo(other.getClass().getName());
20848
      }
20849
 
20850
      int lastComparison = 0;
20851
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
20852
 
20853
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20854
      if (lastComparison != 0) {
20855
        return lastComparison;
20856
      }
20857
      if (isSetSuccess()) {
20858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20859
        if (lastComparison != 0) {
20860
          return lastComparison;
20861
        }
20862
      }
20863
      return 0;
20864
    }
20865
 
20866
    public _Fields fieldForId(int fieldId) {
20867
      return _Fields.findByThriftId(fieldId);
20868
    }
20869
 
20870
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20871
      org.apache.thrift.protocol.TField field;
20872
      iprot.readStructBegin();
20873
      while (true)
20874
      {
20875
        field = iprot.readFieldBegin();
20876
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20877
          break;
20878
        }
20879
        switch (field.id) {
20880
          case 0: // SUCCESS
20881
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20882
              {
20883
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
20884
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
20885
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
20886
                {
20887
                  long _key43; // required
20888
                  Map<Long,LocationInfo> _val44; // required
20889
                  _key43 = iprot.readI64();
20890
                  {
20891
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
20892
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
20893
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
20894
                    {
20895
                      long _key47; // required
20896
                      LocationInfo _val48; // required
20897
                      _key47 = iprot.readI64();
20898
                      _val48 = new LocationInfo();
20899
                      _val48.read(iprot);
20900
                      _val44.put(_key47, _val48);
20901
                    }
20902
                    iprot.readMapEnd();
20903
                  }
20904
                  this.success.put(_key43, _val44);
20905
                }
20906
                iprot.readMapEnd();
20907
              }
20908
            } else { 
20909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20910
            }
20911
            break;
20912
          default:
20913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20914
        }
20915
        iprot.readFieldEnd();
20916
      }
20917
      iprot.readStructEnd();
20918
      validate();
20919
    }
20920
 
20921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20922
      oprot.writeStructBegin(STRUCT_DESC);
20923
 
20924
      if (this.isSetSuccess()) {
20925
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20926
        {
20927
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
20928
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
20929
          {
20930
            oprot.writeI64(_iter49.getKey());
20931
            {
20932
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
20933
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
20934
              {
20935
                oprot.writeI64(_iter50.getKey());
20936
                _iter50.getValue().write(oprot);
20937
              }
20938
              oprot.writeMapEnd();
20939
            }
20940
          }
20941
          oprot.writeMapEnd();
20942
        }
20943
        oprot.writeFieldEnd();
20944
      }
20945
      oprot.writeFieldStop();
20946
      oprot.writeStructEnd();
20947
    }
20948
 
20949
    @Override
20950
    public String toString() {
20951
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
20952
      boolean first = true;
20953
 
20954
      sb.append("success:");
20955
      if (this.success == null) {
20956
        sb.append("null");
20957
      } else {
20958
        sb.append(this.success);
20959
      }
20960
      first = false;
20961
      sb.append(")");
20962
      return sb.toString();
20963
    }
20964
 
20965
    public void validate() throws org.apache.thrift.TException {
20966
      // check for required fields
20967
    }
20968
 
20969
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20970
      try {
20971
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20972
      } catch (org.apache.thrift.TException te) {
20973
        throw new java.io.IOException(te);
20974
      }
20975
    }
20976
 
20977
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20978
      try {
20979
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20980
      } catch (org.apache.thrift.TException te) {
20981
        throw new java.io.IOException(te);
20982
      }
20983
    }
20984
 
20985
  }
20986
 
19421 manish.sha 20987
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
20988
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
20989
 
20990
    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);
20991
    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);
20992
    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);
20993
    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);
20994
    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 20995
    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 20996
 
20997
    private String pincode; // required
20998
    private double transactionAmount; // required
20999
    private boolean isCod; // required
21000
    private double weight; // required
21001
    private long billingWarehouseId; // required
19474 manish.sha 21002
    private boolean isCompleteTxn; // required
19421 manish.sha 21003
 
21004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21006
      PINCODE((short)1, "pincode"),
21007
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21008
      IS_COD((short)3, "isCod"),
21009
      WEIGHT((short)4, "weight"),
19474 manish.sha 21010
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId"),
21011
      IS_COMPLETE_TXN((short)6, "isCompleteTxn");
19421 manish.sha 21012
 
21013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21014
 
21015
      static {
21016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21017
          byName.put(field.getFieldName(), field);
21018
        }
21019
      }
21020
 
21021
      /**
21022
       * Find the _Fields constant that matches fieldId, or null if its not found.
21023
       */
21024
      public static _Fields findByThriftId(int fieldId) {
21025
        switch(fieldId) {
21026
          case 1: // PINCODE
21027
            return PINCODE;
21028
          case 2: // TRANSACTION_AMOUNT
21029
            return TRANSACTION_AMOUNT;
21030
          case 3: // IS_COD
21031
            return IS_COD;
21032
          case 4: // WEIGHT
21033
            return WEIGHT;
21034
          case 5: // BILLING_WAREHOUSE_ID
21035
            return BILLING_WAREHOUSE_ID;
19474 manish.sha 21036
          case 6: // IS_COMPLETE_TXN
21037
            return IS_COMPLETE_TXN;
19421 manish.sha 21038
          default:
21039
            return null;
21040
        }
21041
      }
21042
 
21043
      /**
21044
       * Find the _Fields constant that matches fieldId, throwing an exception
21045
       * if it is not found.
21046
       */
21047
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21048
        _Fields fields = findByThriftId(fieldId);
21049
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21050
        return fields;
21051
      }
21052
 
21053
      /**
21054
       * Find the _Fields constant that matches name, or null if its not found.
21055
       */
21056
      public static _Fields findByName(String name) {
21057
        return byName.get(name);
21058
      }
21059
 
21060
      private final short _thriftId;
21061
      private final String _fieldName;
21062
 
21063
      _Fields(short thriftId, String fieldName) {
21064
        _thriftId = thriftId;
21065
        _fieldName = fieldName;
21066
      }
21067
 
21068
      public short getThriftFieldId() {
21069
        return _thriftId;
21070
      }
21071
 
21072
      public String getFieldName() {
21073
        return _fieldName;
21074
      }
21075
    }
21076
 
21077
    // isset id assignments
21078
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21079
    private static final int __ISCOD_ISSET_ID = 1;
21080
    private static final int __WEIGHT_ISSET_ID = 2;
21081
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
19474 manish.sha 21082
    private static final int __ISCOMPLETETXN_ISSET_ID = 4;
21083
    private BitSet __isset_bit_vector = new BitSet(5);
19421 manish.sha 21084
 
21085
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21086
    static {
21087
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21088
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21090
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21092
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21093
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21094
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21096
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21097
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19474 manish.sha 21098
      tmpMap.put(_Fields.IS_COMPLETE_TXN, new org.apache.thrift.meta_data.FieldMetaData("isCompleteTxn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
19421 manish.sha 21100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21102
    }
21103
 
21104
    public getCostingAndDeliveryEstimateForPincode_args() {
21105
    }
21106
 
21107
    public getCostingAndDeliveryEstimateForPincode_args(
21108
      String pincode,
21109
      double transactionAmount,
21110
      boolean isCod,
21111
      double weight,
19474 manish.sha 21112
      long billingWarehouseId,
21113
      boolean isCompleteTxn)
19421 manish.sha 21114
    {
21115
      this();
21116
      this.pincode = pincode;
21117
      this.transactionAmount = transactionAmount;
21118
      setTransactionAmountIsSet(true);
21119
      this.isCod = isCod;
21120
      setIsCodIsSet(true);
21121
      this.weight = weight;
21122
      setWeightIsSet(true);
21123
      this.billingWarehouseId = billingWarehouseId;
21124
      setBillingWarehouseIdIsSet(true);
19474 manish.sha 21125
      this.isCompleteTxn = isCompleteTxn;
21126
      setIsCompleteTxnIsSet(true);
19421 manish.sha 21127
    }
21128
 
21129
    /**
21130
     * Performs a deep copy on <i>other</i>.
21131
     */
21132
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21133
      __isset_bit_vector.clear();
21134
      __isset_bit_vector.or(other.__isset_bit_vector);
21135
      if (other.isSetPincode()) {
21136
        this.pincode = other.pincode;
21137
      }
21138
      this.transactionAmount = other.transactionAmount;
21139
      this.isCod = other.isCod;
21140
      this.weight = other.weight;
21141
      this.billingWarehouseId = other.billingWarehouseId;
19474 manish.sha 21142
      this.isCompleteTxn = other.isCompleteTxn;
19421 manish.sha 21143
    }
21144
 
21145
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21146
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21147
    }
21148
 
21149
    @Override
21150
    public void clear() {
21151
      this.pincode = null;
21152
      setTransactionAmountIsSet(false);
21153
      this.transactionAmount = 0.0;
21154
      setIsCodIsSet(false);
21155
      this.isCod = false;
21156
      setWeightIsSet(false);
21157
      this.weight = 0.0;
21158
      setBillingWarehouseIdIsSet(false);
21159
      this.billingWarehouseId = 0;
19474 manish.sha 21160
      setIsCompleteTxnIsSet(false);
21161
      this.isCompleteTxn = false;
19421 manish.sha 21162
    }
21163
 
21164
    public String getPincode() {
21165
      return this.pincode;
21166
    }
21167
 
21168
    public void setPincode(String pincode) {
21169
      this.pincode = pincode;
21170
    }
21171
 
21172
    public void unsetPincode() {
21173
      this.pincode = null;
21174
    }
21175
 
21176
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21177
    public boolean isSetPincode() {
21178
      return this.pincode != null;
21179
    }
21180
 
21181
    public void setPincodeIsSet(boolean value) {
21182
      if (!value) {
21183
        this.pincode = null;
21184
      }
21185
    }
21186
 
21187
    public double getTransactionAmount() {
21188
      return this.transactionAmount;
21189
    }
21190
 
21191
    public void setTransactionAmount(double transactionAmount) {
21192
      this.transactionAmount = transactionAmount;
21193
      setTransactionAmountIsSet(true);
21194
    }
21195
 
21196
    public void unsetTransactionAmount() {
21197
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21198
    }
21199
 
21200
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21201
    public boolean isSetTransactionAmount() {
21202
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21203
    }
21204
 
21205
    public void setTransactionAmountIsSet(boolean value) {
21206
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21207
    }
21208
 
21209
    public boolean isIsCod() {
21210
      return this.isCod;
21211
    }
21212
 
21213
    public void setIsCod(boolean isCod) {
21214
      this.isCod = isCod;
21215
      setIsCodIsSet(true);
21216
    }
21217
 
21218
    public void unsetIsCod() {
21219
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21220
    }
21221
 
21222
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21223
    public boolean isSetIsCod() {
21224
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21225
    }
21226
 
21227
    public void setIsCodIsSet(boolean value) {
21228
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21229
    }
21230
 
21231
    public double getWeight() {
21232
      return this.weight;
21233
    }
21234
 
21235
    public void setWeight(double weight) {
21236
      this.weight = weight;
21237
      setWeightIsSet(true);
21238
    }
21239
 
21240
    public void unsetWeight() {
21241
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21242
    }
21243
 
21244
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21245
    public boolean isSetWeight() {
21246
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21247
    }
21248
 
21249
    public void setWeightIsSet(boolean value) {
21250
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21251
    }
21252
 
21253
    public long getBillingWarehouseId() {
21254
      return this.billingWarehouseId;
21255
    }
21256
 
21257
    public void setBillingWarehouseId(long billingWarehouseId) {
21258
      this.billingWarehouseId = billingWarehouseId;
21259
      setBillingWarehouseIdIsSet(true);
21260
    }
21261
 
21262
    public void unsetBillingWarehouseId() {
21263
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21264
    }
21265
 
21266
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21267
    public boolean isSetBillingWarehouseId() {
21268
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21269
    }
21270
 
21271
    public void setBillingWarehouseIdIsSet(boolean value) {
21272
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21273
    }
21274
 
19474 manish.sha 21275
    public boolean isIsCompleteTxn() {
21276
      return this.isCompleteTxn;
21277
    }
21278
 
21279
    public void setIsCompleteTxn(boolean isCompleteTxn) {
21280
      this.isCompleteTxn = isCompleteTxn;
21281
      setIsCompleteTxnIsSet(true);
21282
    }
21283
 
21284
    public void unsetIsCompleteTxn() {
21285
      __isset_bit_vector.clear(__ISCOMPLETETXN_ISSET_ID);
21286
    }
21287
 
21288
    /** Returns true if field isCompleteTxn is set (has been assigned a value) and false otherwise */
21289
    public boolean isSetIsCompleteTxn() {
21290
      return __isset_bit_vector.get(__ISCOMPLETETXN_ISSET_ID);
21291
    }
21292
 
21293
    public void setIsCompleteTxnIsSet(boolean value) {
21294
      __isset_bit_vector.set(__ISCOMPLETETXN_ISSET_ID, value);
21295
    }
21296
 
19421 manish.sha 21297
    public void setFieldValue(_Fields field, Object value) {
21298
      switch (field) {
21299
      case PINCODE:
21300
        if (value == null) {
21301
          unsetPincode();
21302
        } else {
21303
          setPincode((String)value);
21304
        }
21305
        break;
21306
 
21307
      case TRANSACTION_AMOUNT:
21308
        if (value == null) {
21309
          unsetTransactionAmount();
21310
        } else {
21311
          setTransactionAmount((Double)value);
21312
        }
21313
        break;
21314
 
21315
      case IS_COD:
21316
        if (value == null) {
21317
          unsetIsCod();
21318
        } else {
21319
          setIsCod((Boolean)value);
21320
        }
21321
        break;
21322
 
21323
      case WEIGHT:
21324
        if (value == null) {
21325
          unsetWeight();
21326
        } else {
21327
          setWeight((Double)value);
21328
        }
21329
        break;
21330
 
21331
      case BILLING_WAREHOUSE_ID:
21332
        if (value == null) {
21333
          unsetBillingWarehouseId();
21334
        } else {
21335
          setBillingWarehouseId((Long)value);
21336
        }
21337
        break;
21338
 
19474 manish.sha 21339
      case IS_COMPLETE_TXN:
21340
        if (value == null) {
21341
          unsetIsCompleteTxn();
21342
        } else {
21343
          setIsCompleteTxn((Boolean)value);
21344
        }
21345
        break;
21346
 
19421 manish.sha 21347
      }
21348
    }
21349
 
21350
    public Object getFieldValue(_Fields field) {
21351
      switch (field) {
21352
      case PINCODE:
21353
        return getPincode();
21354
 
21355
      case TRANSACTION_AMOUNT:
21356
        return Double.valueOf(getTransactionAmount());
21357
 
21358
      case IS_COD:
21359
        return Boolean.valueOf(isIsCod());
21360
 
21361
      case WEIGHT:
21362
        return Double.valueOf(getWeight());
21363
 
21364
      case BILLING_WAREHOUSE_ID:
21365
        return Long.valueOf(getBillingWarehouseId());
21366
 
19474 manish.sha 21367
      case IS_COMPLETE_TXN:
21368
        return Boolean.valueOf(isIsCompleteTxn());
21369
 
19421 manish.sha 21370
      }
21371
      throw new IllegalStateException();
21372
    }
21373
 
21374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21375
    public boolean isSet(_Fields field) {
21376
      if (field == null) {
21377
        throw new IllegalArgumentException();
21378
      }
21379
 
21380
      switch (field) {
21381
      case PINCODE:
21382
        return isSetPincode();
21383
      case TRANSACTION_AMOUNT:
21384
        return isSetTransactionAmount();
21385
      case IS_COD:
21386
        return isSetIsCod();
21387
      case WEIGHT:
21388
        return isSetWeight();
21389
      case BILLING_WAREHOUSE_ID:
21390
        return isSetBillingWarehouseId();
19474 manish.sha 21391
      case IS_COMPLETE_TXN:
21392
        return isSetIsCompleteTxn();
19421 manish.sha 21393
      }
21394
      throw new IllegalStateException();
21395
    }
21396
 
21397
    @Override
21398
    public boolean equals(Object that) {
21399
      if (that == null)
21400
        return false;
21401
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21402
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21403
      return false;
21404
    }
21405
 
21406
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21407
      if (that == null)
21408
        return false;
21409
 
21410
      boolean this_present_pincode = true && this.isSetPincode();
21411
      boolean that_present_pincode = true && that.isSetPincode();
21412
      if (this_present_pincode || that_present_pincode) {
21413
        if (!(this_present_pincode && that_present_pincode))
21414
          return false;
21415
        if (!this.pincode.equals(that.pincode))
21416
          return false;
21417
      }
21418
 
21419
      boolean this_present_transactionAmount = true;
21420
      boolean that_present_transactionAmount = true;
21421
      if (this_present_transactionAmount || that_present_transactionAmount) {
21422
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21423
          return false;
21424
        if (this.transactionAmount != that.transactionAmount)
21425
          return false;
21426
      }
21427
 
21428
      boolean this_present_isCod = true;
21429
      boolean that_present_isCod = true;
21430
      if (this_present_isCod || that_present_isCod) {
21431
        if (!(this_present_isCod && that_present_isCod))
21432
          return false;
21433
        if (this.isCod != that.isCod)
21434
          return false;
21435
      }
21436
 
21437
      boolean this_present_weight = true;
21438
      boolean that_present_weight = true;
21439
      if (this_present_weight || that_present_weight) {
21440
        if (!(this_present_weight && that_present_weight))
21441
          return false;
21442
        if (this.weight != that.weight)
21443
          return false;
21444
      }
21445
 
21446
      boolean this_present_billingWarehouseId = true;
21447
      boolean that_present_billingWarehouseId = true;
21448
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21449
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21450
          return false;
21451
        if (this.billingWarehouseId != that.billingWarehouseId)
21452
          return false;
21453
      }
21454
 
19474 manish.sha 21455
      boolean this_present_isCompleteTxn = true;
21456
      boolean that_present_isCompleteTxn = true;
21457
      if (this_present_isCompleteTxn || that_present_isCompleteTxn) {
21458
        if (!(this_present_isCompleteTxn && that_present_isCompleteTxn))
21459
          return false;
21460
        if (this.isCompleteTxn != that.isCompleteTxn)
21461
          return false;
21462
      }
21463
 
19421 manish.sha 21464
      return true;
21465
    }
21466
 
21467
    @Override
21468
    public int hashCode() {
21469
      return 0;
21470
    }
21471
 
21472
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21473
      if (!getClass().equals(other.getClass())) {
21474
        return getClass().getName().compareTo(other.getClass().getName());
21475
      }
21476
 
21477
      int lastComparison = 0;
21478
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21479
 
21480
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21481
      if (lastComparison != 0) {
21482
        return lastComparison;
21483
      }
21484
      if (isSetPincode()) {
21485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21486
        if (lastComparison != 0) {
21487
          return lastComparison;
21488
        }
21489
      }
21490
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21491
      if (lastComparison != 0) {
21492
        return lastComparison;
21493
      }
21494
      if (isSetTransactionAmount()) {
21495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21496
        if (lastComparison != 0) {
21497
          return lastComparison;
21498
        }
21499
      }
21500
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21501
      if (lastComparison != 0) {
21502
        return lastComparison;
21503
      }
21504
      if (isSetIsCod()) {
21505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21506
        if (lastComparison != 0) {
21507
          return lastComparison;
21508
        }
21509
      }
21510
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21511
      if (lastComparison != 0) {
21512
        return lastComparison;
21513
      }
21514
      if (isSetWeight()) {
21515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21516
        if (lastComparison != 0) {
21517
          return lastComparison;
21518
        }
21519
      }
21520
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21521
      if (lastComparison != 0) {
21522
        return lastComparison;
21523
      }
21524
      if (isSetBillingWarehouseId()) {
21525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21526
        if (lastComparison != 0) {
21527
          return lastComparison;
21528
        }
21529
      }
19474 manish.sha 21530
      lastComparison = Boolean.valueOf(isSetIsCompleteTxn()).compareTo(typedOther.isSetIsCompleteTxn());
21531
      if (lastComparison != 0) {
21532
        return lastComparison;
21533
      }
21534
      if (isSetIsCompleteTxn()) {
21535
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCompleteTxn, typedOther.isCompleteTxn);
21536
        if (lastComparison != 0) {
21537
          return lastComparison;
21538
        }
21539
      }
19421 manish.sha 21540
      return 0;
21541
    }
21542
 
21543
    public _Fields fieldForId(int fieldId) {
21544
      return _Fields.findByThriftId(fieldId);
21545
    }
21546
 
21547
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21548
      org.apache.thrift.protocol.TField field;
21549
      iprot.readStructBegin();
21550
      while (true)
21551
      {
21552
        field = iprot.readFieldBegin();
21553
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21554
          break;
21555
        }
21556
        switch (field.id) {
21557
          case 1: // PINCODE
21558
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21559
              this.pincode = iprot.readString();
21560
            } else { 
21561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21562
            }
21563
            break;
21564
          case 2: // TRANSACTION_AMOUNT
21565
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21566
              this.transactionAmount = iprot.readDouble();
21567
              setTransactionAmountIsSet(true);
21568
            } else { 
21569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21570
            }
21571
            break;
21572
          case 3: // IS_COD
21573
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21574
              this.isCod = iprot.readBool();
21575
              setIsCodIsSet(true);
21576
            } else { 
21577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21578
            }
21579
            break;
21580
          case 4: // WEIGHT
21581
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21582
              this.weight = iprot.readDouble();
21583
              setWeightIsSet(true);
21584
            } else { 
21585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21586
            }
21587
            break;
21588
          case 5: // BILLING_WAREHOUSE_ID
21589
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21590
              this.billingWarehouseId = iprot.readI64();
21591
              setBillingWarehouseIdIsSet(true);
21592
            } else { 
21593
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21594
            }
21595
            break;
19474 manish.sha 21596
          case 6: // IS_COMPLETE_TXN
21597
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21598
              this.isCompleteTxn = iprot.readBool();
21599
              setIsCompleteTxnIsSet(true);
21600
            } else { 
21601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21602
            }
21603
            break;
19421 manish.sha 21604
          default:
21605
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21606
        }
21607
        iprot.readFieldEnd();
21608
      }
21609
      iprot.readStructEnd();
21610
      validate();
21611
    }
21612
 
21613
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21614
      validate();
21615
 
21616
      oprot.writeStructBegin(STRUCT_DESC);
21617
      if (this.pincode != null) {
21618
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21619
        oprot.writeString(this.pincode);
21620
        oprot.writeFieldEnd();
21621
      }
21622
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21623
      oprot.writeDouble(this.transactionAmount);
21624
      oprot.writeFieldEnd();
21625
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21626
      oprot.writeBool(this.isCod);
21627
      oprot.writeFieldEnd();
21628
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21629
      oprot.writeDouble(this.weight);
21630
      oprot.writeFieldEnd();
21631
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21632
      oprot.writeI64(this.billingWarehouseId);
21633
      oprot.writeFieldEnd();
19474 manish.sha 21634
      oprot.writeFieldBegin(IS_COMPLETE_TXN_FIELD_DESC);
21635
      oprot.writeBool(this.isCompleteTxn);
21636
      oprot.writeFieldEnd();
19421 manish.sha 21637
      oprot.writeFieldStop();
21638
      oprot.writeStructEnd();
21639
    }
21640
 
21641
    @Override
21642
    public String toString() {
21643
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21644
      boolean first = true;
21645
 
21646
      sb.append("pincode:");
21647
      if (this.pincode == null) {
21648
        sb.append("null");
21649
      } else {
21650
        sb.append(this.pincode);
21651
      }
21652
      first = false;
21653
      if (!first) sb.append(", ");
21654
      sb.append("transactionAmount:");
21655
      sb.append(this.transactionAmount);
21656
      first = false;
21657
      if (!first) sb.append(", ");
21658
      sb.append("isCod:");
21659
      sb.append(this.isCod);
21660
      first = false;
21661
      if (!first) sb.append(", ");
21662
      sb.append("weight:");
21663
      sb.append(this.weight);
21664
      first = false;
21665
      if (!first) sb.append(", ");
21666
      sb.append("billingWarehouseId:");
21667
      sb.append(this.billingWarehouseId);
21668
      first = false;
19474 manish.sha 21669
      if (!first) sb.append(", ");
21670
      sb.append("isCompleteTxn:");
21671
      sb.append(this.isCompleteTxn);
21672
      first = false;
19421 manish.sha 21673
      sb.append(")");
21674
      return sb.toString();
21675
    }
21676
 
21677
    public void validate() throws org.apache.thrift.TException {
21678
      // check for required fields
21679
    }
21680
 
21681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21682
      try {
21683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21684
      } catch (org.apache.thrift.TException te) {
21685
        throw new java.io.IOException(te);
21686
      }
21687
    }
21688
 
21689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21690
      try {
21691
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21692
        __isset_bit_vector = new BitSet(1);
21693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21694
      } catch (org.apache.thrift.TException te) {
21695
        throw new java.io.IOException(te);
21696
      }
21697
    }
21698
 
21699
  }
21700
 
21701
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21703
 
21704
    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);
21705
    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);
21706
 
21707
    private DeliveryEstimateAndCosting success; // required
21708
    private LogisticsServiceException se; // required
21709
 
21710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21712
      SUCCESS((short)0, "success"),
21713
      SE((short)1, "se");
21714
 
21715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21716
 
21717
      static {
21718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21719
          byName.put(field.getFieldName(), field);
21720
        }
21721
      }
21722
 
21723
      /**
21724
       * Find the _Fields constant that matches fieldId, or null if its not found.
21725
       */
21726
      public static _Fields findByThriftId(int fieldId) {
21727
        switch(fieldId) {
21728
          case 0: // SUCCESS
21729
            return SUCCESS;
21730
          case 1: // SE
21731
            return SE;
21732
          default:
21733
            return null;
21734
        }
21735
      }
21736
 
21737
      /**
21738
       * Find the _Fields constant that matches fieldId, throwing an exception
21739
       * if it is not found.
21740
       */
21741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21742
        _Fields fields = findByThriftId(fieldId);
21743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21744
        return fields;
21745
      }
21746
 
21747
      /**
21748
       * Find the _Fields constant that matches name, or null if its not found.
21749
       */
21750
      public static _Fields findByName(String name) {
21751
        return byName.get(name);
21752
      }
21753
 
21754
      private final short _thriftId;
21755
      private final String _fieldName;
21756
 
21757
      _Fields(short thriftId, String fieldName) {
21758
        _thriftId = thriftId;
21759
        _fieldName = fieldName;
21760
      }
21761
 
21762
      public short getThriftFieldId() {
21763
        return _thriftId;
21764
      }
21765
 
21766
      public String getFieldName() {
21767
        return _fieldName;
21768
      }
21769
    }
21770
 
21771
    // isset id assignments
21772
 
21773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21774
    static {
21775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21776
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21777
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
21778
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21780
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21781
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
21782
    }
21783
 
21784
    public getCostingAndDeliveryEstimateForPincode_result() {
21785
    }
21786
 
21787
    public getCostingAndDeliveryEstimateForPincode_result(
21788
      DeliveryEstimateAndCosting success,
21789
      LogisticsServiceException se)
21790
    {
21791
      this();
21792
      this.success = success;
21793
      this.se = se;
21794
    }
21795
 
21796
    /**
21797
     * Performs a deep copy on <i>other</i>.
21798
     */
21799
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
21800
      if (other.isSetSuccess()) {
21801
        this.success = new DeliveryEstimateAndCosting(other.success);
21802
      }
21803
      if (other.isSetSe()) {
21804
        this.se = new LogisticsServiceException(other.se);
21805
      }
21806
    }
21807
 
21808
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
21809
      return new getCostingAndDeliveryEstimateForPincode_result(this);
21810
    }
21811
 
21812
    @Override
21813
    public void clear() {
21814
      this.success = null;
21815
      this.se = null;
21816
    }
21817
 
21818
    public DeliveryEstimateAndCosting getSuccess() {
21819
      return this.success;
21820
    }
21821
 
21822
    public void setSuccess(DeliveryEstimateAndCosting success) {
21823
      this.success = success;
21824
    }
21825
 
21826
    public void unsetSuccess() {
21827
      this.success = null;
21828
    }
21829
 
21830
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21831
    public boolean isSetSuccess() {
21832
      return this.success != null;
21833
    }
21834
 
21835
    public void setSuccessIsSet(boolean value) {
21836
      if (!value) {
21837
        this.success = null;
21838
      }
21839
    }
21840
 
21841
    public LogisticsServiceException getSe() {
21842
      return this.se;
21843
    }
21844
 
21845
    public void setSe(LogisticsServiceException se) {
21846
      this.se = se;
21847
    }
21848
 
21849
    public void unsetSe() {
21850
      this.se = null;
21851
    }
21852
 
21853
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
21854
    public boolean isSetSe() {
21855
      return this.se != null;
21856
    }
21857
 
21858
    public void setSeIsSet(boolean value) {
21859
      if (!value) {
21860
        this.se = null;
21861
      }
21862
    }
21863
 
21864
    public void setFieldValue(_Fields field, Object value) {
21865
      switch (field) {
21866
      case SUCCESS:
21867
        if (value == null) {
21868
          unsetSuccess();
21869
        } else {
21870
          setSuccess((DeliveryEstimateAndCosting)value);
21871
        }
21872
        break;
21873
 
21874
      case SE:
21875
        if (value == null) {
21876
          unsetSe();
21877
        } else {
21878
          setSe((LogisticsServiceException)value);
21879
        }
21880
        break;
21881
 
21882
      }
21883
    }
21884
 
21885
    public Object getFieldValue(_Fields field) {
21886
      switch (field) {
21887
      case SUCCESS:
21888
        return getSuccess();
21889
 
21890
      case SE:
21891
        return getSe();
21892
 
21893
      }
21894
      throw new IllegalStateException();
21895
    }
21896
 
21897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21898
    public boolean isSet(_Fields field) {
21899
      if (field == null) {
21900
        throw new IllegalArgumentException();
21901
      }
21902
 
21903
      switch (field) {
21904
      case SUCCESS:
21905
        return isSetSuccess();
21906
      case SE:
21907
        return isSetSe();
21908
      }
21909
      throw new IllegalStateException();
21910
    }
21911
 
21912
    @Override
21913
    public boolean equals(Object that) {
21914
      if (that == null)
21915
        return false;
21916
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
21917
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
21918
      return false;
21919
    }
21920
 
21921
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
21922
      if (that == null)
21923
        return false;
21924
 
21925
      boolean this_present_success = true && this.isSetSuccess();
21926
      boolean that_present_success = true && that.isSetSuccess();
21927
      if (this_present_success || that_present_success) {
21928
        if (!(this_present_success && that_present_success))
21929
          return false;
21930
        if (!this.success.equals(that.success))
21931
          return false;
21932
      }
21933
 
21934
      boolean this_present_se = true && this.isSetSe();
21935
      boolean that_present_se = true && that.isSetSe();
21936
      if (this_present_se || that_present_se) {
21937
        if (!(this_present_se && that_present_se))
21938
          return false;
21939
        if (!this.se.equals(that.se))
21940
          return false;
21941
      }
21942
 
21943
      return true;
21944
    }
21945
 
21946
    @Override
21947
    public int hashCode() {
21948
      return 0;
21949
    }
21950
 
21951
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
21952
      if (!getClass().equals(other.getClass())) {
21953
        return getClass().getName().compareTo(other.getClass().getName());
21954
      }
21955
 
21956
      int lastComparison = 0;
21957
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
21958
 
21959
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21960
      if (lastComparison != 0) {
21961
        return lastComparison;
21962
      }
21963
      if (isSetSuccess()) {
21964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21965
        if (lastComparison != 0) {
21966
          return lastComparison;
21967
        }
21968
      }
21969
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
21970
      if (lastComparison != 0) {
21971
        return lastComparison;
21972
      }
21973
      if (isSetSe()) {
21974
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
21975
        if (lastComparison != 0) {
21976
          return lastComparison;
21977
        }
21978
      }
21979
      return 0;
21980
    }
21981
 
21982
    public _Fields fieldForId(int fieldId) {
21983
      return _Fields.findByThriftId(fieldId);
21984
    }
21985
 
21986
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21987
      org.apache.thrift.protocol.TField field;
21988
      iprot.readStructBegin();
21989
      while (true)
21990
      {
21991
        field = iprot.readFieldBegin();
21992
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21993
          break;
21994
        }
21995
        switch (field.id) {
21996
          case 0: // SUCCESS
21997
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21998
              this.success = new DeliveryEstimateAndCosting();
21999
              this.success.read(iprot);
22000
            } else { 
22001
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22002
            }
22003
            break;
22004
          case 1: // SE
22005
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22006
              this.se = new LogisticsServiceException();
22007
              this.se.read(iprot);
22008
            } else { 
22009
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22010
            }
22011
            break;
22012
          default:
22013
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22014
        }
22015
        iprot.readFieldEnd();
22016
      }
22017
      iprot.readStructEnd();
22018
      validate();
22019
    }
22020
 
22021
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22022
      oprot.writeStructBegin(STRUCT_DESC);
22023
 
22024
      if (this.isSetSuccess()) {
22025
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22026
        this.success.write(oprot);
22027
        oprot.writeFieldEnd();
22028
      } else if (this.isSetSe()) {
22029
        oprot.writeFieldBegin(SE_FIELD_DESC);
22030
        this.se.write(oprot);
22031
        oprot.writeFieldEnd();
22032
      }
22033
      oprot.writeFieldStop();
22034
      oprot.writeStructEnd();
22035
    }
22036
 
22037
    @Override
22038
    public String toString() {
22039
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
22040
      boolean first = true;
22041
 
22042
      sb.append("success:");
22043
      if (this.success == null) {
22044
        sb.append("null");
22045
      } else {
22046
        sb.append(this.success);
22047
      }
22048
      first = false;
22049
      if (!first) sb.append(", ");
22050
      sb.append("se:");
22051
      if (this.se == null) {
22052
        sb.append("null");
22053
      } else {
22054
        sb.append(this.se);
22055
      }
22056
      first = false;
22057
      sb.append(")");
22058
      return sb.toString();
22059
    }
22060
 
22061
    public void validate() throws org.apache.thrift.TException {
22062
      // check for required fields
22063
    }
22064
 
22065
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22066
      try {
22067
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22068
      } catch (org.apache.thrift.TException te) {
22069
        throw new java.io.IOException(te);
22070
      }
22071
    }
22072
 
22073
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22074
      try {
22075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22076
      } catch (org.apache.thrift.TException te) {
22077
        throw new java.io.IOException(te);
22078
      }
22079
    }
22080
 
22081
  }
22082
 
412 ashish 22083
}