Subversion Repositories SmartDukaan

Rev

Rev 19413 | Rev 19474 | 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
 
19421 manish.sha 161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException;
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
 
19421 manish.sha 217
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
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
 
19421 manish.sha 872
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws LogisticsServiceException, org.apache.thrift.TException
873
    {
874
      send_getCostingAndDeliveryEstimateForPincode(pincode, transactionAmount, isCod, weight, billingWarehouseId);
875
      return recv_getCostingAndDeliveryEstimateForPincode();
876
    }
877
 
878
    public void send_getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId) throws org.apache.thrift.TException
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);
886
      sendBase("getCostingAndDeliveryEstimateForPincode", args);
887
    }
888
 
889
    public DeliveryEstimateAndCosting recv_getCostingAndDeliveryEstimateForPincode() throws LogisticsServiceException, org.apache.thrift.TException
890
    {
891
      getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
892
      receiveBase(result, "getCostingAndDeliveryEstimateForPincode");
893
      if (result.isSetSuccess()) {
894
        return result.success;
895
      }
896
      if (result.se != null) {
897
        throw result.se;
898
      }
899
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
900
    }
901
 
412 ashish 902
  }
3430 rajveer 903
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
904
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
905
      private org.apache.thrift.async.TAsyncClientManager clientManager;
906
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
907
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
908
        this.clientManager = clientManager;
909
        this.protocolFactory = protocolFactory;
910
      }
911
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
912
        return new AsyncClient(protocolFactory, clientManager, transport);
913
      }
412 ashish 914
    }
915
 
3430 rajveer 916
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
917
      super(protocolFactory, clientManager, transport);
918
    }
412 ashish 919
 
3430 rajveer 920
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
921
      checkReady();
922
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
923
      this.___currentMethod = method_call;
924
      ___manager.call(method_call);
925
    }
926
 
927
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
928
      private long providerId;
929
      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 {
930
        super(client, protocolFactory, transport, resultHandler, false);
931
        this.providerId = providerId;
412 ashish 932
      }
3430 rajveer 933
 
934
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
935
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
936
        getProvider_args args = new getProvider_args();
937
        args.setProviderId(providerId);
938
        args.write(prot);
939
        prot.writeMessageEnd();
940
      }
941
 
942
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
943
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
944
          throw new IllegalStateException("Method call not finished!");
945
        }
946
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
947
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
948
        return (new Client(prot)).recv_getProvider();
949
      }
412 ashish 950
    }
951
 
3430 rajveer 952
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
953
      checkReady();
954
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
955
      this.___currentMethod = method_call;
956
      ___manager.call(method_call);
957
    }
958
 
959
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
960
      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 {
961
        super(client, protocolFactory, transport, resultHandler, false);
962
      }
963
 
964
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
965
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
966
        getAllProviders_args args = new getAllProviders_args();
967
        args.write(prot);
968
        prot.writeMessageEnd();
969
      }
970
 
971
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
972
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
973
          throw new IllegalStateException("Method call not finished!");
974
        }
975
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
976
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
977
        return (new Client(prot)).recv_getAllProviders();
978
      }
979
    }
980
 
4630 mandeep.dh 981
    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 982
      checkReady();
4630 mandeep.dh 983
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 984
      this.___currentMethod = method_call;
985
      ___manager.call(method_call);
986
    }
987
 
988
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
989
      private long itemId;
990
      private String destination_pin;
4630 mandeep.dh 991
      private DeliveryType type;
992
      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 993
        super(client, protocolFactory, transport, resultHandler, false);
994
        this.itemId = itemId;
995
        this.destination_pin = destination_pin;
4630 mandeep.dh 996
        this.type = type;
3430 rajveer 997
      }
998
 
999
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1000
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1001
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
1002
        args.setItemId(itemId);
1003
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 1004
        args.setType(type);
3430 rajveer 1005
        args.write(prot);
1006
        prot.writeMessageEnd();
1007
      }
1008
 
1009
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1010
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1011
          throw new IllegalStateException("Method call not finished!");
1012
        }
1013
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1014
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1015
        return (new Client(prot)).recv_getLogisticsEstimation();
1016
      }
1017
    }
1018
 
7256 rajveer 1019
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
1020
      checkReady();
1021
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1022
      this.___currentMethod = method_call;
1023
      ___manager.call(method_call);
1024
    }
1025
 
1026
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1027
      private long itemId;
1028
      private String destination_pin;
1029
      private DeliveryType type;
1030
      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 {
1031
        super(client, protocolFactory, transport, resultHandler, false);
1032
        this.itemId = itemId;
1033
        this.destination_pin = destination_pin;
1034
        this.type = type;
1035
      }
1036
 
1037
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1038
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1039
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1040
        args.setItemId(itemId);
1041
        args.setDestination_pin(destination_pin);
1042
        args.setType(type);
1043
        args.write(prot);
1044
        prot.writeMessageEnd();
1045
      }
1046
 
1047
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1048
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1049
          throw new IllegalStateException("Method call not finished!");
1050
        }
1051
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1053
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1054
      }
1055
    }
1056
 
5766 rajveer 1057
    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 1058
      checkReady();
5766 rajveer 1059
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1060
      this.___currentMethod = method_call;
1061
      ___manager.call(method_call);
1062
    }
1063
 
1064
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1065
      private String destination_pincode;
1066
      private long item_id;
1067
      private DeliveryType type;
5766 rajveer 1068
      private PickUpType pickUp;
1069
      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 1070
        super(client, protocolFactory, transport, resultHandler, false);
1071
        this.destination_pincode = destination_pincode;
1072
        this.item_id = item_id;
1073
        this.type = type;
5766 rajveer 1074
        this.pickUp = pickUp;
3430 rajveer 1075
      }
1076
 
1077
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1078
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1079
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1080
        args.setDestination_pincode(destination_pincode);
1081
        args.setItem_id(item_id);
1082
        args.setType(type);
5766 rajveer 1083
        args.setPickUp(pickUp);
3430 rajveer 1084
        args.write(prot);
1085
        prot.writeMessageEnd();
1086
      }
1087
 
1088
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1089
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1090
          throw new IllegalStateException("Method call not finished!");
1091
        }
1092
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1093
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1094
        return (new Client(prot)).recv_getLogisticsInfo();
1095
      }
1096
    }
1097
 
5247 rajveer 1098
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1099
      checkReady();
5247 rajveer 1100
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1101
      this.___currentMethod = method_call;
1102
      ___manager.call(method_call);
1103
    }
1104
 
1105
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1106
      private long providerId;
5247 rajveer 1107
      private DeliveryType type;
1108
      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 1109
        super(client, protocolFactory, transport, resultHandler, false);
1110
        this.providerId = providerId;
5247 rajveer 1111
        this.type = type;
3430 rajveer 1112
      }
1113
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        getEmptyAWB_args args = new getEmptyAWB_args();
1117
        args.setProviderId(providerId);
5247 rajveer 1118
        args.setType(type);
3430 rajveer 1119
        args.write(prot);
1120
        prot.writeMessageEnd();
1121
      }
1122
 
1123
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1124
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1125
          throw new IllegalStateException("Method call not finished!");
1126
        }
1127
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1128
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1129
        return (new Client(prot)).recv_getEmptyAWB();
1130
      }
1131
    }
1132
 
6643 rajveer 1133
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1134
      checkReady();
6643 rajveer 1135
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1136
      this.___currentMethod = method_call;
1137
      ___manager.call(method_call);
1138
    }
1139
 
1140
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1141
      private String awbNumber;
3430 rajveer 1142
      private long providerId;
6643 rajveer 1143
      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 1144
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1145
        this.awbNumber = awbNumber;
3430 rajveer 1146
        this.providerId = providerId;
1147
      }
1148
 
1149
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1150
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1151
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1152
        args.setAwbNumber(awbNumber);
3430 rajveer 1153
        args.setProviderId(providerId);
1154
        args.write(prot);
1155
        prot.writeMessageEnd();
1156
      }
1157
 
1158
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1159
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1160
          throw new IllegalStateException("Method call not finished!");
1161
        }
1162
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1163
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1164
        return (new Client(prot)).recv_getShipmentInfo();
1165
      }
1166
    }
1167
 
6643 rajveer 1168
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1169
      checkReady();
1170
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1171
      this.___currentMethod = method_call;
1172
      ___manager.call(method_call);
1173
    }
1174
 
1175
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1176
      private AwbUpdate update;
1177
      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 {
1178
        super(client, protocolFactory, transport, resultHandler, false);
1179
        this.update = update;
1180
      }
1181
 
1182
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1183
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1184
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1185
        args.setUpdate(update);
1186
        args.write(prot);
1187
        prot.writeMessageEnd();
1188
      }
1189
 
1190
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1191
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1192
          throw new IllegalStateException("Method call not finished!");
1193
        }
1194
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1195
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1196
        (new Client(prot)).recv_storeShipmentInfo();
1197
      }
1198
    }
1199
 
3430 rajveer 1200
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1201
      checkReady();
1202
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1203
      this.___currentMethod = method_call;
1204
      ___manager.call(method_call);
1205
    }
1206
 
1207
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1208
      private long providerId;
1209
      private String pinCode;
1210
      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 {
1211
        super(client, protocolFactory, transport, resultHandler, false);
1212
        this.providerId = providerId;
1213
        this.pinCode = pinCode;
1214
      }
1215
 
1216
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1217
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1218
        getDestinationCode_args args = new getDestinationCode_args();
1219
        args.setProviderId(providerId);
1220
        args.setPinCode(pinCode);
1221
        args.write(prot);
1222
        prot.writeMessageEnd();
1223
      }
1224
 
1225
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1226
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1227
          throw new IllegalStateException("Method call not finished!");
1228
        }
1229
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1230
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1231
        return (new Client(prot)).recv_getDestinationCode();
1232
      }
1233
    }
1234
 
1235
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1236
      checkReady();
1237
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1238
      this.___currentMethod = method_call;
1239
      ___manager.call(method_call);
1240
    }
1241
 
1242
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1243
      private long providerId;
1244
      private String type;
1245
      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 {
1246
        super(client, protocolFactory, transport, resultHandler, false);
1247
        this.providerId = providerId;
1248
        this.type = type;
1249
      }
1250
 
1251
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1252
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1253
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1254
        args.setProviderId(providerId);
1255
        args.setType(type);
1256
        args.write(prot);
1257
        prot.writeMessageEnd();
1258
      }
1259
 
1260
      public long getResult() throws org.apache.thrift.TException {
1261
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1262
          throw new IllegalStateException("Method call not finished!");
1263
        }
1264
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1265
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1266
        return (new Client(prot)).recv_getFreeAwbCount();
1267
      }
1268
    }
1269
 
1270
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1271
      checkReady();
1272
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1273
      this.___currentMethod = method_call;
1274
      ___manager.call(method_call);
1275
    }
1276
 
1277
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1278
      private long fromDate;
1279
      private long toDate;
1280
      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 {
1281
        super(client, protocolFactory, transport, resultHandler, false);
1282
        this.fromDate = fromDate;
1283
        this.toDate = toDate;
1284
      }
1285
 
1286
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1287
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1288
        getHolidays_args args = new getHolidays_args();
1289
        args.setFromDate(fromDate);
1290
        args.setToDate(toDate);
1291
        args.write(prot);
1292
        prot.writeMessageEnd();
1293
      }
1294
 
1295
      public List<Long> getResult() throws org.apache.thrift.TException {
1296
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1297
          throw new IllegalStateException("Method call not finished!");
1298
        }
1299
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1300
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1301
        return (new Client(prot)).recv_getHolidays();
1302
      }
1303
    }
1304
 
4934 amit.gupta 1305
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1306
      checkReady();
1307
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1308
      this.___currentMethod = method_call;
1309
      ___manager.call(method_call);
1310
    }
1311
 
1312
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1313
      private long catalogItemId;
1314
      private String destination_pin;
1315
      private DeliveryType type;
1316
      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 {
1317
        super(client, protocolFactory, transport, resultHandler, false);
1318
        this.catalogItemId = catalogItemId;
1319
        this.destination_pin = destination_pin;
1320
        this.type = type;
1321
      }
1322
 
1323
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1324
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1325
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1326
        args.setCatalogItemId(catalogItemId);
1327
        args.setDestination_pin(destination_pin);
1328
        args.setType(type);
1329
        args.write(prot);
1330
        prot.writeMessageEnd();
1331
      }
1332
 
9840 amit.gupta 1333
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1334
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1335
          throw new IllegalStateException("Method call not finished!");
1336
        }
1337
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1338
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1339
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1340
      }
1341
    }
1342
 
5527 anupam.sin 1343
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1344
      checkReady();
1345
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1346
      this.___currentMethod = method_call;
1347
      ___manager.call(method_call);
1348
    }
1349
 
1350
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1351
      private long pickUp;
1352
      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 {
1353
        super(client, protocolFactory, transport, resultHandler, false);
1354
        this.pickUp = pickUp;
1355
      }
1356
 
1357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1359
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1360
        args.setPickUp(pickUp);
1361
        args.write(prot);
1362
        prot.writeMessageEnd();
1363
      }
1364
 
1365
      public long getResult() throws org.apache.thrift.TException {
1366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1367
          throw new IllegalStateException("Method call not finished!");
1368
        }
1369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1371
        return (new Client(prot)).recv_getProviderForPickupType();
1372
      }
1373
    }
1374
 
5553 rajveer 1375
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1376
      checkReady();
1377
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1378
      this.___currentMethod = method_call;
1379
      ___manager.call(method_call);
1380
    }
1381
 
1382
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1383
      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 {
1384
        super(client, protocolFactory, transport, resultHandler, false);
1385
      }
1386
 
1387
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1388
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1389
        getAllPickupStores_args args = new getAllPickupStores_args();
1390
        args.write(prot);
1391
        prot.writeMessageEnd();
1392
      }
1393
 
1394
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1396
          throw new IllegalStateException("Method call not finished!");
1397
        }
1398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1400
        return (new Client(prot)).recv_getAllPickupStores();
1401
      }
1402
    }
1403
 
1404
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1405
      checkReady();
1406
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1407
      this.___currentMethod = method_call;
1408
      ___manager.call(method_call);
1409
    }
1410
 
1411
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1412
      private long storeId;
1413
      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 {
1414
        super(client, protocolFactory, transport, resultHandler, false);
1415
        this.storeId = storeId;
1416
      }
1417
 
1418
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1419
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1420
        getPickupStore_args args = new getPickupStore_args();
1421
        args.setStoreId(storeId);
1422
        args.write(prot);
1423
        prot.writeMessageEnd();
1424
      }
1425
 
1426
      public PickupStore getResult() throws org.apache.thrift.TException {
1427
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1428
          throw new IllegalStateException("Method call not finished!");
1429
        }
1430
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1432
        return (new Client(prot)).recv_getPickupStore();
1433
      }
1434
    }
1435
 
5719 rajveer 1436
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1437
      checkReady();
1438
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1439
      this.___currentMethod = method_call;
1440
      ___manager.call(method_call);
1441
    }
1442
 
1443
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1444
      private String hotspotId;
1445
      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 {
1446
        super(client, protocolFactory, transport, resultHandler, false);
1447
        this.hotspotId = hotspotId;
1448
      }
1449
 
1450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1452
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1453
        args.setHotspotId(hotspotId);
1454
        args.write(prot);
1455
        prot.writeMessageEnd();
1456
      }
1457
 
1458
      public PickupStore getResult() throws org.apache.thrift.TException {
1459
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1460
          throw new IllegalStateException("Method call not finished!");
1461
        }
1462
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1463
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1464
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1465
      }
1466
    }
1467
 
6524 rajveer 1468
    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 1469
      checkReady();
6524 rajveer 1470
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1471
      this.___currentMethod = method_call;
1472
      ___manager.call(method_call);
1473
    }
1474
 
1475
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1476
      private long providerId;
1477
      private String pincode;
1478
      private String destCode;
1479
      private boolean exp;
1480
      private boolean cod;
1481
      private int stationType;
6524 rajveer 1482
      private boolean otgAvailable;
1483
      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 1484
        super(client, protocolFactory, transport, resultHandler, false);
1485
        this.providerId = providerId;
1486
        this.pincode = pincode;
1487
        this.destCode = destCode;
1488
        this.exp = exp;
1489
        this.cod = cod;
1490
        this.stationType = stationType;
6524 rajveer 1491
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1492
      }
1493
 
1494
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1495
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1496
        addPincode_args args = new addPincode_args();
1497
        args.setProviderId(providerId);
1498
        args.setPincode(pincode);
1499
        args.setDestCode(destCode);
1500
        args.setExp(exp);
1501
        args.setCod(cod);
1502
        args.setStationType(stationType);
6524 rajveer 1503
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1504
        args.write(prot);
1505
        prot.writeMessageEnd();
1506
      }
1507
 
1508
      public void getResult() throws org.apache.thrift.TException {
1509
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1510
          throw new IllegalStateException("Method call not finished!");
1511
        }
1512
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1513
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1514
        (new Client(prot)).recv_addPincode();
1515
      }
1516
    }
1517
 
6524 rajveer 1518
    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 1519
      checkReady();
6524 rajveer 1520
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1521
      this.___currentMethod = method_call;
1522
      ___manager.call(method_call);
1523
    }
1524
 
1525
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1526
      private long providerId;
1527
      private String pincode;
1528
      private boolean exp;
1529
      private boolean cod;
6524 rajveer 1530
      private boolean otgAvailable;
1531
      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 1532
        super(client, protocolFactory, transport, resultHandler, false);
1533
        this.providerId = providerId;
1534
        this.pincode = pincode;
1535
        this.exp = exp;
1536
        this.cod = cod;
6524 rajveer 1537
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1538
      }
1539
 
1540
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1541
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1542
        updatePincode_args args = new updatePincode_args();
1543
        args.setProviderId(providerId);
1544
        args.setPincode(pincode);
1545
        args.setExp(exp);
1546
        args.setCod(cod);
6524 rajveer 1547
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1548
        args.write(prot);
1549
        prot.writeMessageEnd();
1550
      }
1551
 
1552
      public void getResult() throws org.apache.thrift.TException {
1553
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1554
          throw new IllegalStateException("Method call not finished!");
1555
        }
1556
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1557
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1558
        (new Client(prot)).recv_updatePincode();
1559
      }
1560
    }
1561
 
13146 manish.sha 1562
    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 1563
      checkReady();
13146 manish.sha 1564
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1565
      this.___currentMethod = method_call;
1566
      ___manager.call(method_call);
1567
    }
1568
 
1569
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1570
      private long providerId;
1571
      private boolean cod;
1572
      private List<String> awbs;
13146 manish.sha 1573
      private long awbUsedFor;
1574
      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 1575
        super(client, protocolFactory, transport, resultHandler, false);
1576
        this.providerId = providerId;
1577
        this.cod = cod;
1578
        this.awbs = awbs;
13146 manish.sha 1579
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1580
      }
1581
 
1582
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1583
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1584
        addNewAwbs_args args = new addNewAwbs_args();
1585
        args.setProviderId(providerId);
1586
        args.setCod(cod);
1587
        args.setAwbs(awbs);
13146 manish.sha 1588
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1589
        args.write(prot);
1590
        prot.writeMessageEnd();
1591
      }
1592
 
1593
      public boolean getResult() throws org.apache.thrift.TException {
1594
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1595
          throw new IllegalStateException("Method call not finished!");
1596
        }
1597
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1598
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1599
        return (new Client(prot)).recv_addNewAwbs();
1600
      }
1601
    }
1602
 
7788 manish.sha 1603
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1604
      checkReady();
7788 manish.sha 1605
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1606
      this.___currentMethod = method_call;
1607
      ___manager.call(method_call);
1608
    }
1609
 
7788 manish.sha 1610
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1611
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1612
      private boolean runCompleteUpdate;
1613
      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 1614
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1615
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1616
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1617
      }
1618
 
1619
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1620
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1621
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1622
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1623
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1624
        args.write(prot);
1625
        prot.writeMessageEnd();
1626
      }
1627
 
1628
      public void getResult() throws org.apache.thrift.TException {
1629
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1630
          throw new IllegalStateException("Method call not finished!");
1631
        }
1632
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1633
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1634
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1635
      }
1636
    }
1637
 
7888 rajveer 1638
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1639
      checkReady();
1640
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1641
      this.___currentMethod = method_call;
1642
      ___manager.call(method_call);
1643
    }
1644
 
1645
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1646
      private long startDate;
1647
      private long days;
1648
      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 {
1649
        super(client, protocolFactory, transport, resultHandler, false);
1650
        this.startDate = startDate;
1651
        this.days = days;
1652
      }
1653
 
1654
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1655
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1656
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1657
        args.setStartDate(startDate);
1658
        args.setDays(days);
1659
        args.write(prot);
1660
        prot.writeMessageEnd();
1661
      }
1662
 
1663
      public long getResult() throws org.apache.thrift.TException {
1664
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1665
          throw new IllegalStateException("Method call not finished!");
1666
        }
1667
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1668
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1669
        return (new Client(prot)).recv_adjustDeliveryDays();
1670
      }
1671
    }
1672
 
12895 manish.sha 1673
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1674
      checkReady();
1675
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1676
      this.___currentMethod = method_call;
1677
      ___manager.call(method_call);
1678
    }
1679
 
1680
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1681
      private String pincode;
1682
      private long whLocation;
1683
      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 {
1684
        super(client, protocolFactory, transport, resultHandler, false);
1685
        this.pincode = pincode;
1686
        this.whLocation = whLocation;
1687
      }
1688
 
1689
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1690
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1691
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1692
        args.setPincode(pincode);
1693
        args.setWhLocation(whLocation);
1694
        args.write(prot);
1695
        prot.writeMessageEnd();
1696
      }
1697
 
1698
      public long getResult() throws org.apache.thrift.TException {
1699
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1700
          throw new IllegalStateException("Method call not finished!");
1701
        }
1702
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1703
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1704
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1705
      }
1706
    }
1707
 
13146 manish.sha 1708
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1709
      checkReady();
1710
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1711
      this.___currentMethod = method_call;
1712
      ___manager.call(method_call);
1713
    }
1714
 
1715
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1716
      private long providerId;
1717
      private DeliveryType type;
1718
      private long orderQuantity;
1719
      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 {
1720
        super(client, protocolFactory, transport, resultHandler, false);
1721
        this.providerId = providerId;
1722
        this.type = type;
1723
        this.orderQuantity = orderQuantity;
1724
      }
1725
 
1726
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1727
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1728
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1729
        args.setProviderId(providerId);
1730
        args.setType(type);
1731
        args.setOrderQuantity(orderQuantity);
1732
        args.write(prot);
1733
        prot.writeMessageEnd();
1734
      }
1735
 
1736
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1737
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1738
          throw new IllegalStateException("Method call not finished!");
1739
        }
1740
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1741
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1742
        return (new Client(prot)).recv_getNewEmptyAwb();
1743
      }
1744
    }
1745
 
1746
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1747
      checkReady();
1748
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1749
      this.___currentMethod = method_call;
1750
      ___manager.call(method_call);
1751
    }
1752
 
1753
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1754
      private long providerId;
1755
      private String pincode;
1756
      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 {
1757
        super(client, protocolFactory, transport, resultHandler, false);
1758
        this.providerId = providerId;
1759
        this.pincode = pincode;
1760
      }
1761
 
1762
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1763
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1764
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1765
        args.setProviderId(providerId);
1766
        args.setPincode(pincode);
1767
        args.write(prot);
1768
        prot.writeMessageEnd();
1769
      }
1770
 
1771
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1772
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1773
          throw new IllegalStateException("Method call not finished!");
1774
        }
1775
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1776
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1777
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1778
      }
1779
    }
1780
 
19413 amit.gupta 1781
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1782
      checkReady();
1783
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1784
      this.___currentMethod = method_call;
1785
      ___manager.call(method_call);
1786
    }
1787
 
1788
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1789
      private String destPincode;
1790
      private List<Long> price;
1791
      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 {
1792
        super(client, protocolFactory, transport, resultHandler, false);
1793
        this.destPincode = destPincode;
1794
        this.price = price;
1795
      }
1796
 
1797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1799
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1800
        args.setDestPincode(destPincode);
1801
        args.setPrice(price);
1802
        args.write(prot);
1803
        prot.writeMessageEnd();
1804
      }
1805
 
1806
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1807
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1808
          throw new IllegalStateException("Method call not finished!");
1809
        }
1810
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1811
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1812
        return (new Client(prot)).recv_getLocationInfoMap();
1813
      }
1814
    }
1815
 
19421 manish.sha 1816
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException {
1817
      checkReady();
1818
      getCostingAndDeliveryEstimateForPincode_call method_call = new getCostingAndDeliveryEstimateForPincode_call(pincode, transactionAmount, isCod, weight, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
1819
      this.___currentMethod = method_call;
1820
      ___manager.call(method_call);
1821
    }
1822
 
1823
    public static class getCostingAndDeliveryEstimateForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1824
      private String pincode;
1825
      private double transactionAmount;
1826
      private boolean isCod;
1827
      private double weight;
1828
      private long billingWarehouseId;
1829
      public getCostingAndDeliveryEstimateForPincode_call(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, 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 {
1830
        super(client, protocolFactory, transport, resultHandler, false);
1831
        this.pincode = pincode;
1832
        this.transactionAmount = transactionAmount;
1833
        this.isCod = isCod;
1834
        this.weight = weight;
1835
        this.billingWarehouseId = billingWarehouseId;
1836
      }
1837
 
1838
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1839
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCostingAndDeliveryEstimateForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1840
        getCostingAndDeliveryEstimateForPincode_args args = new getCostingAndDeliveryEstimateForPincode_args();
1841
        args.setPincode(pincode);
1842
        args.setTransactionAmount(transactionAmount);
1843
        args.setIsCod(isCod);
1844
        args.setWeight(weight);
1845
        args.setBillingWarehouseId(billingWarehouseId);
1846
        args.write(prot);
1847
        prot.writeMessageEnd();
1848
      }
1849
 
1850
      public DeliveryEstimateAndCosting getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1852
          throw new IllegalStateException("Method call not finished!");
1853
        }
1854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1856
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1857
      }
1858
    }
1859
 
3430 rajveer 1860
  }
1861
 
1862
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1863
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1864
    public Processor(I iface) {
1865
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1866
    }
1867
 
1868
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1869
      super(iface, getProcessMap(processMap));
1870
    }
1871
 
1872
    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) {
1873
      processMap.put("getProvider", new getProvider());
1874
      processMap.put("getAllProviders", new getAllProviders());
1875
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1876
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1877
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1878
      processMap.put("getEmptyAWB", new getEmptyAWB());
1879
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1880
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1881
      processMap.put("getDestinationCode", new getDestinationCode());
1882
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1883
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1884
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1885
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1886
      processMap.put("getAllPickupStores", new getAllPickupStores());
1887
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1888
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1889
      processMap.put("addPincode", new addPincode());
1890
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1891
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1892
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1893
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1894
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1895
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1896
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 1897
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
19421 manish.sha 1898
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
3430 rajveer 1899
      return processMap;
1900
    }
1901
 
1902
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1903
      public getProvider() {
1904
        super("getProvider");
1905
      }
1906
 
1907
      protected getProvider_args getEmptyArgsInstance() {
1908
        return new getProvider_args();
1909
      }
1910
 
1911
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1912
        getProvider_result result = new getProvider_result();
1913
        try {
3430 rajveer 1914
          result.success = iface.getProvider(args.providerId);
668 chandransh 1915
        } catch (LogisticsServiceException lse) {
1916
          result.lse = lse;
1917
        }
3430 rajveer 1918
        return result;
668 chandransh 1919
      }
1920
    }
1921
 
3430 rajveer 1922
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1923
      public getAllProviders() {
1924
        super("getAllProviders");
1925
      }
1926
 
1927
      protected getAllProviders_args getEmptyArgsInstance() {
1928
        return new getAllProviders_args();
1929
      }
1930
 
1931
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1932
        getAllProviders_result result = new getAllProviders_result();
1933
        try {
3430 rajveer 1934
          result.success = iface.getAllProviders();
674 chandransh 1935
        } catch (LogisticsServiceException lse) {
1936
          result.lse = lse;
1937
        }
3430 rajveer 1938
        return result;
674 chandransh 1939
      }
1940
    }
1941
 
3430 rajveer 1942
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1943
      public getLogisticsEstimation() {
1944
        super("getLogisticsEstimation");
1945
      }
1946
 
1947
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1948
        return new getLogisticsEstimation_args();
1949
      }
1950
 
1951
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1952
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1953
        try {
4630 mandeep.dh 1954
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1955
        } catch (LogisticsServiceException se) {
1956
          result.se = se;
1957
        }
3430 rajveer 1958
        return result;
483 rajveer 1959
      }
1960
    }
1961
 
7256 rajveer 1962
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1963
      public getLogisticsEstimationForStore() {
1964
        super("getLogisticsEstimationForStore");
1965
      }
1966
 
1967
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1968
        return new getLogisticsEstimationForStore_args();
1969
      }
1970
 
1971
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1972
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1973
        try {
1974
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1975
        } catch (LogisticsServiceException se) {
1976
          result.se = se;
1977
        }
1978
        return result;
1979
      }
1980
    }
1981
 
3430 rajveer 1982
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1983
      public getLogisticsInfo() {
1984
        super("getLogisticsInfo");
1985
      }
1986
 
1987
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1988
        return new getLogisticsInfo_args();
1989
      }
1990
 
1991
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1992
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1993
        try {
5766 rajveer 1994
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1995
        } catch (LogisticsServiceException se) {
1996
          result.se = se;
1997
        }
3430 rajveer 1998
        return result;
471 rajveer 1999
      }
2000
    }
2001
 
3430 rajveer 2002
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
2003
      public getEmptyAWB() {
2004
        super("getEmptyAWB");
2005
      }
2006
 
2007
      protected getEmptyAWB_args getEmptyArgsInstance() {
2008
        return new getEmptyAWB_args();
2009
      }
2010
 
2011
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 2012
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 2013
        try {
5247 rajveer 2014
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 2015
        } catch (LogisticsServiceException se) {
2016
          result.se = se;
2017
        }
3430 rajveer 2018
        return result;
412 ashish 2019
      }
2020
    }
2021
 
3430 rajveer 2022
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
2023
      public getShipmentInfo() {
2024
        super("getShipmentInfo");
2025
      }
2026
 
2027
      protected getShipmentInfo_args getEmptyArgsInstance() {
2028
        return new getShipmentInfo_args();
2029
      }
2030
 
2031
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 2032
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 2033
        try {
6643 rajveer 2034
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 2035
        } catch (LogisticsServiceException se) {
2036
          result.se = se;
2037
        }
3430 rajveer 2038
        return result;
412 ashish 2039
      }
2040
    }
2041
 
6643 rajveer 2042
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
2043
      public storeShipmentInfo() {
2044
        super("storeShipmentInfo");
2045
      }
2046
 
2047
      protected storeShipmentInfo_args getEmptyArgsInstance() {
2048
        return new storeShipmentInfo_args();
2049
      }
2050
 
2051
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
2052
        storeShipmentInfo_result result = new storeShipmentInfo_result();
2053
        try {
2054
          iface.storeShipmentInfo(args.update);
2055
        } catch (LogisticsServiceException se) {
2056
          result.se = se;
2057
        }
2058
        return result;
2059
      }
2060
    }
2061
 
3430 rajveer 2062
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
2063
      public getDestinationCode() {
2064
        super("getDestinationCode");
2065
      }
2066
 
2067
      protected getDestinationCode_args getEmptyArgsInstance() {
2068
        return new getDestinationCode_args();
2069
      }
2070
 
2071
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 2072
        getDestinationCode_result result = new getDestinationCode_result();
2073
        try {
3430 rajveer 2074
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 2075
        } catch (LogisticsServiceException se) {
2076
          result.se = se;
2077
        }
3430 rajveer 2078
        return result;
730 chandransh 2079
      }
2080
    }
2081
 
3430 rajveer 2082
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2083
      public getFreeAwbCount() {
2084
        super("getFreeAwbCount");
2085
      }
2086
 
2087
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2088
        return new getFreeAwbCount_args();
2089
      }
2090
 
2091
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2092
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2093
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2094
        result.setSuccessIsSet(true);
3430 rajveer 2095
        return result;
1139 chandransh 2096
      }
2097
    }
2098
 
3430 rajveer 2099
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2100
      public getHolidays() {
2101
        super("getHolidays");
2102
      }
2103
 
2104
      protected getHolidays_args getEmptyArgsInstance() {
2105
        return new getHolidays_args();
2106
      }
2107
 
2108
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2109
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2110
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2111
        return result;
1730 ankur.sing 2112
      }
2113
    }
2114
 
4934 amit.gupta 2115
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2116
      public getEntityLogisticsEstimation() {
2117
        super("getEntityLogisticsEstimation");
2118
      }
2119
 
2120
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2121
        return new getEntityLogisticsEstimation_args();
2122
      }
2123
 
2124
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2125
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2126
        try {
2127
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2128
        } catch (LogisticsServiceException se) {
2129
          result.se = se;
2130
        }
2131
        return result;
2132
      }
2133
    }
2134
 
5527 anupam.sin 2135
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2136
      public getProviderForPickupType() {
2137
        super("getProviderForPickupType");
2138
      }
2139
 
2140
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2141
        return new getProviderForPickupType_args();
2142
      }
2143
 
2144
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2145
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2146
        result.success = iface.getProviderForPickupType(args.pickUp);
2147
        result.setSuccessIsSet(true);
2148
        return result;
2149
      }
2150
    }
2151
 
5553 rajveer 2152
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2153
      public getAllPickupStores() {
2154
        super("getAllPickupStores");
2155
      }
2156
 
2157
      protected getAllPickupStores_args getEmptyArgsInstance() {
2158
        return new getAllPickupStores_args();
2159
      }
2160
 
2161
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2162
        getAllPickupStores_result result = new getAllPickupStores_result();
2163
        result.success = iface.getAllPickupStores();
2164
        return result;
2165
      }
2166
    }
2167
 
2168
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2169
      public getPickupStore() {
2170
        super("getPickupStore");
2171
      }
2172
 
2173
      protected getPickupStore_args getEmptyArgsInstance() {
2174
        return new getPickupStore_args();
2175
      }
2176
 
2177
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2178
        getPickupStore_result result = new getPickupStore_result();
2179
        result.success = iface.getPickupStore(args.storeId);
2180
        return result;
2181
      }
2182
    }
2183
 
5719 rajveer 2184
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2185
      public getPickupStoreByHotspotId() {
2186
        super("getPickupStoreByHotspotId");
2187
      }
2188
 
2189
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2190
        return new getPickupStoreByHotspotId_args();
2191
      }
2192
 
2193
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2194
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2195
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2196
        return result;
2197
      }
2198
    }
2199
 
6322 amar.kumar 2200
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2201
      public addPincode() {
2202
        super("addPincode");
2203
      }
2204
 
2205
      protected addPincode_args getEmptyArgsInstance() {
2206
        return new addPincode_args();
2207
      }
2208
 
2209
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2210
        addPincode_result result = new addPincode_result();
6524 rajveer 2211
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2212
        return result;
2213
      }
2214
    }
2215
 
2216
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2217
      public updatePincode() {
2218
        super("updatePincode");
2219
      }
2220
 
2221
      protected updatePincode_args getEmptyArgsInstance() {
2222
        return new updatePincode_args();
2223
      }
2224
 
2225
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2226
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2227
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2228
        return result;
2229
      }
2230
    }
2231
 
7567 rajveer 2232
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2233
      public addNewAwbs() {
2234
        super("addNewAwbs");
2235
      }
2236
 
2237
      protected addNewAwbs_args getEmptyArgsInstance() {
2238
        return new addNewAwbs_args();
2239
      }
2240
 
2241
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2242
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2243
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2244
        result.setSuccessIsSet(true);
2245
        return result;
2246
      }
2247
    }
2248
 
7788 manish.sha 2249
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2250
      public runLogisticsLocationInfoUpdate() {
2251
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2252
      }
2253
 
7788 manish.sha 2254
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2255
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2256
      }
2257
 
7788 manish.sha 2258
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2259
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
2260
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 2261
        return result;
2262
      }
2263
    }
2264
 
7888 rajveer 2265
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2266
      public adjustDeliveryDays() {
2267
        super("adjustDeliveryDays");
2268
      }
2269
 
2270
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2271
        return new adjustDeliveryDays_args();
2272
      }
2273
 
2274
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2275
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2276
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2277
        result.setSuccessIsSet(true);
2278
        return result;
2279
      }
2280
    }
2281
 
12895 manish.sha 2282
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2283
      public getFirstDeliveryEstimateForWhLocation() {
2284
        super("getFirstDeliveryEstimateForWhLocation");
2285
      }
2286
 
2287
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2288
        return new getFirstDeliveryEstimateForWhLocation_args();
2289
      }
2290
 
2291
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2292
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2293
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2294
        result.setSuccessIsSet(true);
2295
        return result;
2296
      }
2297
    }
2298
 
13146 manish.sha 2299
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2300
      public getNewEmptyAwb() {
2301
        super("getNewEmptyAwb");
2302
      }
2303
 
2304
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2305
        return new getNewEmptyAwb_args();
2306
      }
2307
 
2308
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2309
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2310
        try {
2311
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2312
        } catch (LogisticsServiceException se) {
2313
          result.se = se;
2314
        }
2315
        return result;
2316
      }
2317
    }
2318
 
2319
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2320
      public getProviderLimitDetailsForPincode() {
2321
        super("getProviderLimitDetailsForPincode");
2322
      }
2323
 
2324
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2325
        return new getProviderLimitDetailsForPincode_args();
2326
      }
2327
 
2328
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2329
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2330
        try {
2331
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2332
        } catch (LogisticsServiceException se) {
2333
          result.se = se;
2334
        }
2335
        return result;
2336
      }
2337
    }
2338
 
19413 amit.gupta 2339
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2340
      public getLocationInfoMap() {
2341
        super("getLocationInfoMap");
2342
      }
2343
 
2344
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2345
        return new getLocationInfoMap_args();
2346
      }
2347
 
2348
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2349
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2350
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2351
        return result;
2352
      }
2353
    }
2354
 
19421 manish.sha 2355
    private static class getCostingAndDeliveryEstimateForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCostingAndDeliveryEstimateForPincode_args> {
2356
      public getCostingAndDeliveryEstimateForPincode() {
2357
        super("getCostingAndDeliveryEstimateForPincode");
2358
      }
2359
 
2360
      protected getCostingAndDeliveryEstimateForPincode_args getEmptyArgsInstance() {
2361
        return new getCostingAndDeliveryEstimateForPincode_args();
2362
      }
2363
 
2364
      protected getCostingAndDeliveryEstimateForPincode_result getResult(I iface, getCostingAndDeliveryEstimateForPincode_args args) throws org.apache.thrift.TException {
2365
        getCostingAndDeliveryEstimateForPincode_result result = new getCostingAndDeliveryEstimateForPincode_result();
2366
        try {
2367
          result.success = iface.getCostingAndDeliveryEstimateForPincode(args.pincode, args.transactionAmount, args.isCod, args.weight, args.billingWarehouseId);
2368
        } catch (LogisticsServiceException se) {
2369
          result.se = se;
2370
        }
2371
        return result;
2372
      }
2373
    }
2374
 
412 ashish 2375
  }
2376
 
3430 rajveer 2377
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2378
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2379
 
3430 rajveer 2380
    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 2381
 
3430 rajveer 2382
    private long providerId; // required
668 chandransh 2383
 
2384
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2385
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2386
      PROVIDER_ID((short)1, "providerId");
2387
 
2388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2389
 
2390
      static {
2391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2392
          byName.put(field.getFieldName(), field);
2393
        }
2394
      }
2395
 
2396
      /**
2397
       * Find the _Fields constant that matches fieldId, or null if its not found.
2398
       */
2399
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2400
        switch(fieldId) {
2401
          case 1: // PROVIDER_ID
2402
            return PROVIDER_ID;
2403
          default:
2404
            return null;
2405
        }
668 chandransh 2406
      }
2407
 
2408
      /**
2409
       * Find the _Fields constant that matches fieldId, throwing an exception
2410
       * if it is not found.
2411
       */
2412
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2413
        _Fields fields = findByThriftId(fieldId);
2414
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2415
        return fields;
2416
      }
2417
 
2418
      /**
2419
       * Find the _Fields constant that matches name, or null if its not found.
2420
       */
2421
      public static _Fields findByName(String name) {
2422
        return byName.get(name);
2423
      }
2424
 
2425
      private final short _thriftId;
2426
      private final String _fieldName;
2427
 
2428
      _Fields(short thriftId, String fieldName) {
2429
        _thriftId = thriftId;
2430
        _fieldName = fieldName;
2431
      }
2432
 
2433
      public short getThriftFieldId() {
2434
        return _thriftId;
2435
      }
2436
 
2437
      public String getFieldName() {
2438
        return _fieldName;
2439
      }
2440
    }
2441
 
2442
    // isset id assignments
2443
    private static final int __PROVIDERID_ISSET_ID = 0;
2444
    private BitSet __isset_bit_vector = new BitSet(1);
2445
 
3430 rajveer 2446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2447
    static {
3430 rajveer 2448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2449
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2453
    }
2454
 
2455
    public getProvider_args() {
2456
    }
2457
 
2458
    public getProvider_args(
2459
      long providerId)
2460
    {
2461
      this();
2462
      this.providerId = providerId;
2463
      setProviderIdIsSet(true);
2464
    }
2465
 
2466
    /**
2467
     * Performs a deep copy on <i>other</i>.
2468
     */
2469
    public getProvider_args(getProvider_args other) {
2470
      __isset_bit_vector.clear();
2471
      __isset_bit_vector.or(other.__isset_bit_vector);
2472
      this.providerId = other.providerId;
2473
    }
2474
 
2475
    public getProvider_args deepCopy() {
2476
      return new getProvider_args(this);
2477
    }
2478
 
3430 rajveer 2479
    @Override
2480
    public void clear() {
2481
      setProviderIdIsSet(false);
2482
      this.providerId = 0;
668 chandransh 2483
    }
2484
 
2485
    public long getProviderId() {
2486
      return this.providerId;
2487
    }
2488
 
3430 rajveer 2489
    public void setProviderId(long providerId) {
668 chandransh 2490
      this.providerId = providerId;
2491
      setProviderIdIsSet(true);
2492
    }
2493
 
2494
    public void unsetProviderId() {
2495
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2496
    }
2497
 
3430 rajveer 2498
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2499
    public boolean isSetProviderId() {
2500
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2501
    }
2502
 
2503
    public void setProviderIdIsSet(boolean value) {
2504
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2505
    }
2506
 
2507
    public void setFieldValue(_Fields field, Object value) {
2508
      switch (field) {
2509
      case PROVIDER_ID:
2510
        if (value == null) {
2511
          unsetProviderId();
2512
        } else {
2513
          setProviderId((Long)value);
2514
        }
2515
        break;
2516
 
2517
      }
2518
    }
2519
 
2520
    public Object getFieldValue(_Fields field) {
2521
      switch (field) {
2522
      case PROVIDER_ID:
3430 rajveer 2523
        return Long.valueOf(getProviderId());
668 chandransh 2524
 
2525
      }
2526
      throw new IllegalStateException();
2527
    }
2528
 
3430 rajveer 2529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2530
    public boolean isSet(_Fields field) {
2531
      if (field == null) {
2532
        throw new IllegalArgumentException();
2533
      }
668 chandransh 2534
 
2535
      switch (field) {
2536
      case PROVIDER_ID:
2537
        return isSetProviderId();
2538
      }
2539
      throw new IllegalStateException();
2540
    }
2541
 
2542
    @Override
2543
    public boolean equals(Object that) {
2544
      if (that == null)
2545
        return false;
2546
      if (that instanceof getProvider_args)
2547
        return this.equals((getProvider_args)that);
2548
      return false;
2549
    }
2550
 
2551
    public boolean equals(getProvider_args that) {
2552
      if (that == null)
2553
        return false;
2554
 
2555
      boolean this_present_providerId = true;
2556
      boolean that_present_providerId = true;
2557
      if (this_present_providerId || that_present_providerId) {
2558
        if (!(this_present_providerId && that_present_providerId))
2559
          return false;
2560
        if (this.providerId != that.providerId)
2561
          return false;
2562
      }
2563
 
2564
      return true;
2565
    }
2566
 
2567
    @Override
2568
    public int hashCode() {
2569
      return 0;
2570
    }
2571
 
2572
    public int compareTo(getProvider_args other) {
2573
      if (!getClass().equals(other.getClass())) {
2574
        return getClass().getName().compareTo(other.getClass().getName());
2575
      }
2576
 
2577
      int lastComparison = 0;
2578
      getProvider_args typedOther = (getProvider_args)other;
2579
 
3430 rajveer 2580
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2581
      if (lastComparison != 0) {
2582
        return lastComparison;
2583
      }
3430 rajveer 2584
      if (isSetProviderId()) {
2585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2586
        if (lastComparison != 0) {
2587
          return lastComparison;
2588
        }
668 chandransh 2589
      }
2590
      return 0;
2591
    }
2592
 
3430 rajveer 2593
    public _Fields fieldForId(int fieldId) {
2594
      return _Fields.findByThriftId(fieldId);
2595
    }
2596
 
2597
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2598
      org.apache.thrift.protocol.TField field;
668 chandransh 2599
      iprot.readStructBegin();
2600
      while (true)
2601
      {
2602
        field = iprot.readFieldBegin();
3430 rajveer 2603
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2604
          break;
2605
        }
3430 rajveer 2606
        switch (field.id) {
2607
          case 1: // PROVIDER_ID
2608
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2609
              this.providerId = iprot.readI64();
2610
              setProviderIdIsSet(true);
2611
            } else { 
2612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2613
            }
2614
            break;
2615
          default:
2616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2617
        }
3430 rajveer 2618
        iprot.readFieldEnd();
668 chandransh 2619
      }
2620
      iprot.readStructEnd();
2621
      validate();
2622
    }
2623
 
3430 rajveer 2624
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2625
      validate();
2626
 
2627
      oprot.writeStructBegin(STRUCT_DESC);
2628
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2629
      oprot.writeI64(this.providerId);
2630
      oprot.writeFieldEnd();
2631
      oprot.writeFieldStop();
2632
      oprot.writeStructEnd();
2633
    }
2634
 
2635
    @Override
2636
    public String toString() {
2637
      StringBuilder sb = new StringBuilder("getProvider_args(");
2638
      boolean first = true;
2639
 
2640
      sb.append("providerId:");
2641
      sb.append(this.providerId);
2642
      first = false;
2643
      sb.append(")");
2644
      return sb.toString();
2645
    }
2646
 
3430 rajveer 2647
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2648
      // check for required fields
2649
    }
2650
 
3430 rajveer 2651
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2652
      try {
2653
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2654
      } catch (org.apache.thrift.TException te) {
2655
        throw new java.io.IOException(te);
2656
      }
2657
    }
2658
 
2659
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2660
      try {
2661
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2662
      } catch (org.apache.thrift.TException te) {
2663
        throw new java.io.IOException(te);
2664
      }
2665
    }
2666
 
668 chandransh 2667
  }
2668
 
3430 rajveer 2669
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2670
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2671
 
3430 rajveer 2672
    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);
2673
    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 2674
 
3430 rajveer 2675
    private Provider success; // required
2676
    private LogisticsServiceException lse; // required
668 chandransh 2677
 
2678
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2679
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2680
      SUCCESS((short)0, "success"),
2681
      LSE((short)1, "lse");
2682
 
2683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2684
 
2685
      static {
2686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2687
          byName.put(field.getFieldName(), field);
2688
        }
2689
      }
2690
 
2691
      /**
2692
       * Find the _Fields constant that matches fieldId, or null if its not found.
2693
       */
2694
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2695
        switch(fieldId) {
2696
          case 0: // SUCCESS
2697
            return SUCCESS;
2698
          case 1: // LSE
2699
            return LSE;
2700
          default:
2701
            return null;
2702
        }
668 chandransh 2703
      }
2704
 
2705
      /**
2706
       * Find the _Fields constant that matches fieldId, throwing an exception
2707
       * if it is not found.
2708
       */
2709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2710
        _Fields fields = findByThriftId(fieldId);
2711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2712
        return fields;
2713
      }
2714
 
2715
      /**
2716
       * Find the _Fields constant that matches name, or null if its not found.
2717
       */
2718
      public static _Fields findByName(String name) {
2719
        return byName.get(name);
2720
      }
2721
 
2722
      private final short _thriftId;
2723
      private final String _fieldName;
2724
 
2725
      _Fields(short thriftId, String fieldName) {
2726
        _thriftId = thriftId;
2727
        _fieldName = fieldName;
2728
      }
2729
 
2730
      public short getThriftFieldId() {
2731
        return _thriftId;
2732
      }
2733
 
2734
      public String getFieldName() {
2735
        return _fieldName;
2736
      }
2737
    }
2738
 
2739
    // isset id assignments
2740
 
3430 rajveer 2741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2742
    static {
3430 rajveer 2743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2744
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2745
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2746
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2750
    }
2751
 
2752
    public getProvider_result() {
2753
    }
2754
 
2755
    public getProvider_result(
2756
      Provider success,
2757
      LogisticsServiceException lse)
2758
    {
2759
      this();
2760
      this.success = success;
2761
      this.lse = lse;
2762
    }
2763
 
2764
    /**
2765
     * Performs a deep copy on <i>other</i>.
2766
     */
2767
    public getProvider_result(getProvider_result other) {
2768
      if (other.isSetSuccess()) {
2769
        this.success = new Provider(other.success);
2770
      }
2771
      if (other.isSetLse()) {
2772
        this.lse = new LogisticsServiceException(other.lse);
2773
      }
2774
    }
2775
 
2776
    public getProvider_result deepCopy() {
2777
      return new getProvider_result(this);
2778
    }
2779
 
3430 rajveer 2780
    @Override
2781
    public void clear() {
2782
      this.success = null;
2783
      this.lse = null;
668 chandransh 2784
    }
2785
 
2786
    public Provider getSuccess() {
2787
      return this.success;
2788
    }
2789
 
3430 rajveer 2790
    public void setSuccess(Provider success) {
668 chandransh 2791
      this.success = success;
2792
    }
2793
 
2794
    public void unsetSuccess() {
2795
      this.success = null;
2796
    }
2797
 
3430 rajveer 2798
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2799
    public boolean isSetSuccess() {
2800
      return this.success != null;
2801
    }
2802
 
2803
    public void setSuccessIsSet(boolean value) {
2804
      if (!value) {
2805
        this.success = null;
2806
      }
2807
    }
2808
 
2809
    public LogisticsServiceException getLse() {
2810
      return this.lse;
2811
    }
2812
 
3430 rajveer 2813
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2814
      this.lse = lse;
2815
    }
2816
 
2817
    public void unsetLse() {
2818
      this.lse = null;
2819
    }
2820
 
3430 rajveer 2821
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2822
    public boolean isSetLse() {
2823
      return this.lse != null;
2824
    }
2825
 
2826
    public void setLseIsSet(boolean value) {
2827
      if (!value) {
2828
        this.lse = null;
2829
      }
2830
    }
2831
 
2832
    public void setFieldValue(_Fields field, Object value) {
2833
      switch (field) {
2834
      case SUCCESS:
2835
        if (value == null) {
2836
          unsetSuccess();
2837
        } else {
2838
          setSuccess((Provider)value);
2839
        }
2840
        break;
2841
 
2842
      case LSE:
2843
        if (value == null) {
2844
          unsetLse();
2845
        } else {
2846
          setLse((LogisticsServiceException)value);
2847
        }
2848
        break;
2849
 
2850
      }
2851
    }
2852
 
2853
    public Object getFieldValue(_Fields field) {
2854
      switch (field) {
2855
      case SUCCESS:
2856
        return getSuccess();
2857
 
2858
      case LSE:
2859
        return getLse();
2860
 
2861
      }
2862
      throw new IllegalStateException();
2863
    }
2864
 
3430 rajveer 2865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2866
    public boolean isSet(_Fields field) {
2867
      if (field == null) {
2868
        throw new IllegalArgumentException();
2869
      }
668 chandransh 2870
 
2871
      switch (field) {
2872
      case SUCCESS:
2873
        return isSetSuccess();
2874
      case LSE:
2875
        return isSetLse();
2876
      }
2877
      throw new IllegalStateException();
2878
    }
2879
 
2880
    @Override
2881
    public boolean equals(Object that) {
2882
      if (that == null)
2883
        return false;
2884
      if (that instanceof getProvider_result)
2885
        return this.equals((getProvider_result)that);
2886
      return false;
2887
    }
2888
 
2889
    public boolean equals(getProvider_result that) {
2890
      if (that == null)
2891
        return false;
2892
 
2893
      boolean this_present_success = true && this.isSetSuccess();
2894
      boolean that_present_success = true && that.isSetSuccess();
2895
      if (this_present_success || that_present_success) {
2896
        if (!(this_present_success && that_present_success))
2897
          return false;
2898
        if (!this.success.equals(that.success))
2899
          return false;
2900
      }
2901
 
2902
      boolean this_present_lse = true && this.isSetLse();
2903
      boolean that_present_lse = true && that.isSetLse();
2904
      if (this_present_lse || that_present_lse) {
2905
        if (!(this_present_lse && that_present_lse))
2906
          return false;
2907
        if (!this.lse.equals(that.lse))
2908
          return false;
2909
      }
2910
 
2911
      return true;
2912
    }
2913
 
2914
    @Override
2915
    public int hashCode() {
2916
      return 0;
2917
    }
2918
 
3430 rajveer 2919
    public int compareTo(getProvider_result other) {
2920
      if (!getClass().equals(other.getClass())) {
2921
        return getClass().getName().compareTo(other.getClass().getName());
2922
      }
2923
 
2924
      int lastComparison = 0;
2925
      getProvider_result typedOther = (getProvider_result)other;
2926
 
2927
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2928
      if (lastComparison != 0) {
2929
        return lastComparison;
2930
      }
2931
      if (isSetSuccess()) {
2932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2933
        if (lastComparison != 0) {
2934
          return lastComparison;
2935
        }
2936
      }
2937
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2938
      if (lastComparison != 0) {
2939
        return lastComparison;
2940
      }
2941
      if (isSetLse()) {
2942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2943
        if (lastComparison != 0) {
2944
          return lastComparison;
2945
        }
2946
      }
2947
      return 0;
2948
    }
2949
 
2950
    public _Fields fieldForId(int fieldId) {
2951
      return _Fields.findByThriftId(fieldId);
2952
    }
2953
 
2954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2955
      org.apache.thrift.protocol.TField field;
668 chandransh 2956
      iprot.readStructBegin();
2957
      while (true)
2958
      {
2959
        field = iprot.readFieldBegin();
3430 rajveer 2960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2961
          break;
2962
        }
3430 rajveer 2963
        switch (field.id) {
2964
          case 0: // SUCCESS
2965
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2966
              this.success = new Provider();
2967
              this.success.read(iprot);
2968
            } else { 
2969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2970
            }
2971
            break;
2972
          case 1: // LSE
2973
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2974
              this.lse = new LogisticsServiceException();
2975
              this.lse.read(iprot);
2976
            } else { 
2977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2978
            }
2979
            break;
2980
          default:
2981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2982
        }
3430 rajveer 2983
        iprot.readFieldEnd();
668 chandransh 2984
      }
2985
      iprot.readStructEnd();
2986
      validate();
2987
    }
2988
 
3430 rajveer 2989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2990
      oprot.writeStructBegin(STRUCT_DESC);
2991
 
2992
      if (this.isSetSuccess()) {
2993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2994
        this.success.write(oprot);
2995
        oprot.writeFieldEnd();
2996
      } else if (this.isSetLse()) {
2997
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2998
        this.lse.write(oprot);
2999
        oprot.writeFieldEnd();
3000
      }
3001
      oprot.writeFieldStop();
3002
      oprot.writeStructEnd();
3003
    }
3004
 
3005
    @Override
3006
    public String toString() {
3007
      StringBuilder sb = new StringBuilder("getProvider_result(");
3008
      boolean first = true;
3009
 
3010
      sb.append("success:");
3011
      if (this.success == null) {
3012
        sb.append("null");
3013
      } else {
3014
        sb.append(this.success);
3015
      }
3016
      first = false;
3017
      if (!first) sb.append(", ");
3018
      sb.append("lse:");
3019
      if (this.lse == null) {
3020
        sb.append("null");
3021
      } else {
3022
        sb.append(this.lse);
3023
      }
3024
      first = false;
3025
      sb.append(")");
3026
      return sb.toString();
3027
    }
3028
 
3430 rajveer 3029
    public void validate() throws org.apache.thrift.TException {
668 chandransh 3030
      // check for required fields
3031
    }
3032
 
3430 rajveer 3033
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3034
      try {
3035
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3036
      } catch (org.apache.thrift.TException te) {
3037
        throw new java.io.IOException(te);
3038
      }
3039
    }
3040
 
3041
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3042
      try {
3043
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3044
      } catch (org.apache.thrift.TException te) {
3045
        throw new java.io.IOException(te);
3046
      }
3047
    }
3048
 
668 chandransh 3049
  }
3050
 
3430 rajveer 3051
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
3052
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 3053
 
3054
 
3055
 
3056
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3057
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3058
;
3059
 
3060
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3061
 
3062
      static {
3063
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3064
          byName.put(field.getFieldName(), field);
3065
        }
3066
      }
3067
 
3068
      /**
3069
       * Find the _Fields constant that matches fieldId, or null if its not found.
3070
       */
3071
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3072
        switch(fieldId) {
3073
          default:
3074
            return null;
3075
        }
674 chandransh 3076
      }
3077
 
3078
      /**
3079
       * Find the _Fields constant that matches fieldId, throwing an exception
3080
       * if it is not found.
3081
       */
3082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3083
        _Fields fields = findByThriftId(fieldId);
3084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3085
        return fields;
3086
      }
3087
 
3088
      /**
3089
       * Find the _Fields constant that matches name, or null if its not found.
3090
       */
3091
      public static _Fields findByName(String name) {
3092
        return byName.get(name);
3093
      }
3094
 
3095
      private final short _thriftId;
3096
      private final String _fieldName;
3097
 
3098
      _Fields(short thriftId, String fieldName) {
3099
        _thriftId = thriftId;
3100
        _fieldName = fieldName;
3101
      }
3102
 
3103
      public short getThriftFieldId() {
3104
        return _thriftId;
3105
      }
3106
 
3107
      public String getFieldName() {
3108
        return _fieldName;
3109
      }
3110
    }
3430 rajveer 3111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3112
    static {
3430 rajveer 3113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3114
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3115
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3116
    }
3117
 
3118
    public getAllProviders_args() {
3119
    }
3120
 
3121
    /**
3122
     * Performs a deep copy on <i>other</i>.
3123
     */
3124
    public getAllProviders_args(getAllProviders_args other) {
3125
    }
3126
 
3127
    public getAllProviders_args deepCopy() {
3128
      return new getAllProviders_args(this);
3129
    }
3130
 
3430 rajveer 3131
    @Override
3132
    public void clear() {
674 chandransh 3133
    }
3134
 
3135
    public void setFieldValue(_Fields field, Object value) {
3136
      switch (field) {
3137
      }
3138
    }
3139
 
3140
    public Object getFieldValue(_Fields field) {
3141
      switch (field) {
3142
      }
3143
      throw new IllegalStateException();
3144
    }
3145
 
3430 rajveer 3146
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3147
    public boolean isSet(_Fields field) {
3148
      if (field == null) {
3149
        throw new IllegalArgumentException();
3150
      }
674 chandransh 3151
 
3152
      switch (field) {
3153
      }
3154
      throw new IllegalStateException();
3155
    }
3156
 
3157
    @Override
3158
    public boolean equals(Object that) {
3159
      if (that == null)
3160
        return false;
3161
      if (that instanceof getAllProviders_args)
3162
        return this.equals((getAllProviders_args)that);
3163
      return false;
3164
    }
3165
 
3166
    public boolean equals(getAllProviders_args that) {
3167
      if (that == null)
3168
        return false;
3169
 
3170
      return true;
3171
    }
3172
 
3173
    @Override
3174
    public int hashCode() {
3175
      return 0;
3176
    }
3177
 
3178
    public int compareTo(getAllProviders_args other) {
3179
      if (!getClass().equals(other.getClass())) {
3180
        return getClass().getName().compareTo(other.getClass().getName());
3181
      }
3182
 
3183
      int lastComparison = 0;
3184
      getAllProviders_args typedOther = (getAllProviders_args)other;
3185
 
3186
      return 0;
3187
    }
3188
 
3430 rajveer 3189
    public _Fields fieldForId(int fieldId) {
3190
      return _Fields.findByThriftId(fieldId);
3191
    }
3192
 
3193
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3194
      org.apache.thrift.protocol.TField field;
674 chandransh 3195
      iprot.readStructBegin();
3196
      while (true)
3197
      {
3198
        field = iprot.readFieldBegin();
3430 rajveer 3199
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3200
          break;
3201
        }
3430 rajveer 3202
        switch (field.id) {
3203
          default:
3204
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3205
        }
3430 rajveer 3206
        iprot.readFieldEnd();
674 chandransh 3207
      }
3208
      iprot.readStructEnd();
3209
      validate();
3210
    }
3211
 
3430 rajveer 3212
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3213
      validate();
3214
 
3215
      oprot.writeStructBegin(STRUCT_DESC);
3216
      oprot.writeFieldStop();
3217
      oprot.writeStructEnd();
3218
    }
3219
 
3220
    @Override
3221
    public String toString() {
3222
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3223
      boolean first = true;
3224
 
3225
      sb.append(")");
3226
      return sb.toString();
3227
    }
3228
 
3430 rajveer 3229
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3230
      // check for required fields
3231
    }
3232
 
3430 rajveer 3233
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3234
      try {
3235
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3236
      } catch (org.apache.thrift.TException te) {
3237
        throw new java.io.IOException(te);
3238
      }
3239
    }
3240
 
3241
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3242
      try {
3243
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3244
      } catch (org.apache.thrift.TException te) {
3245
        throw new java.io.IOException(te);
3246
      }
3247
    }
3248
 
674 chandransh 3249
  }
3250
 
3430 rajveer 3251
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3252
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3253
 
3430 rajveer 3254
    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);
3255
    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 3256
 
3430 rajveer 3257
    private List<Provider> success; // required
3258
    private LogisticsServiceException lse; // required
674 chandransh 3259
 
3260
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3261
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3262
      SUCCESS((short)0, "success"),
3263
      LSE((short)1, "lse");
3264
 
3265
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3266
 
3267
      static {
3268
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3269
          byName.put(field.getFieldName(), field);
3270
        }
3271
      }
3272
 
3273
      /**
3274
       * Find the _Fields constant that matches fieldId, or null if its not found.
3275
       */
3276
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3277
        switch(fieldId) {
3278
          case 0: // SUCCESS
3279
            return SUCCESS;
3280
          case 1: // LSE
3281
            return LSE;
3282
          default:
3283
            return null;
3284
        }
674 chandransh 3285
      }
3286
 
3287
      /**
3288
       * Find the _Fields constant that matches fieldId, throwing an exception
3289
       * if it is not found.
3290
       */
3291
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3292
        _Fields fields = findByThriftId(fieldId);
3293
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3294
        return fields;
3295
      }
3296
 
3297
      /**
3298
       * Find the _Fields constant that matches name, or null if its not found.
3299
       */
3300
      public static _Fields findByName(String name) {
3301
        return byName.get(name);
3302
      }
3303
 
3304
      private final short _thriftId;
3305
      private final String _fieldName;
3306
 
3307
      _Fields(short thriftId, String fieldName) {
3308
        _thriftId = thriftId;
3309
        _fieldName = fieldName;
3310
      }
3311
 
3312
      public short getThriftFieldId() {
3313
        return _thriftId;
3314
      }
3315
 
3316
      public String getFieldName() {
3317
        return _fieldName;
3318
      }
3319
    }
3320
 
3321
    // isset id assignments
3322
 
3430 rajveer 3323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3324
    static {
3430 rajveer 3325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3326
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3327
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3328
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3329
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3330
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3331
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3332
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3333
    }
3334
 
3335
    public getAllProviders_result() {
3336
    }
3337
 
3338
    public getAllProviders_result(
3339
      List<Provider> success,
3340
      LogisticsServiceException lse)
3341
    {
3342
      this();
3343
      this.success = success;
3344
      this.lse = lse;
3345
    }
3346
 
3347
    /**
3348
     * Performs a deep copy on <i>other</i>.
3349
     */
3350
    public getAllProviders_result(getAllProviders_result other) {
3351
      if (other.isSetSuccess()) {
3352
        List<Provider> __this__success = new ArrayList<Provider>();
3353
        for (Provider other_element : other.success) {
3354
          __this__success.add(new Provider(other_element));
3355
        }
3356
        this.success = __this__success;
3357
      }
3358
      if (other.isSetLse()) {
3359
        this.lse = new LogisticsServiceException(other.lse);
3360
      }
3361
    }
3362
 
3363
    public getAllProviders_result deepCopy() {
3364
      return new getAllProviders_result(this);
3365
    }
3366
 
3430 rajveer 3367
    @Override
3368
    public void clear() {
3369
      this.success = null;
3370
      this.lse = null;
674 chandransh 3371
    }
3372
 
3373
    public int getSuccessSize() {
3374
      return (this.success == null) ? 0 : this.success.size();
3375
    }
3376
 
3377
    public java.util.Iterator<Provider> getSuccessIterator() {
3378
      return (this.success == null) ? null : this.success.iterator();
3379
    }
3380
 
3381
    public void addToSuccess(Provider elem) {
3382
      if (this.success == null) {
3383
        this.success = new ArrayList<Provider>();
3384
      }
3385
      this.success.add(elem);
3386
    }
3387
 
3388
    public List<Provider> getSuccess() {
3389
      return this.success;
3390
    }
3391
 
3430 rajveer 3392
    public void setSuccess(List<Provider> success) {
674 chandransh 3393
      this.success = success;
3394
    }
3395
 
3396
    public void unsetSuccess() {
3397
      this.success = null;
3398
    }
3399
 
3430 rajveer 3400
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3401
    public boolean isSetSuccess() {
3402
      return this.success != null;
3403
    }
3404
 
3405
    public void setSuccessIsSet(boolean value) {
3406
      if (!value) {
3407
        this.success = null;
3408
      }
3409
    }
3410
 
3411
    public LogisticsServiceException getLse() {
3412
      return this.lse;
3413
    }
3414
 
3430 rajveer 3415
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3416
      this.lse = lse;
3417
    }
3418
 
3419
    public void unsetLse() {
3420
      this.lse = null;
3421
    }
3422
 
3430 rajveer 3423
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3424
    public boolean isSetLse() {
3425
      return this.lse != null;
3426
    }
3427
 
3428
    public void setLseIsSet(boolean value) {
3429
      if (!value) {
3430
        this.lse = null;
3431
      }
3432
    }
3433
 
3434
    public void setFieldValue(_Fields field, Object value) {
3435
      switch (field) {
3436
      case SUCCESS:
3437
        if (value == null) {
3438
          unsetSuccess();
3439
        } else {
3440
          setSuccess((List<Provider>)value);
3441
        }
3442
        break;
3443
 
3444
      case LSE:
3445
        if (value == null) {
3446
          unsetLse();
3447
        } else {
3448
          setLse((LogisticsServiceException)value);
3449
        }
3450
        break;
3451
 
3452
      }
3453
    }
3454
 
3455
    public Object getFieldValue(_Fields field) {
3456
      switch (field) {
3457
      case SUCCESS:
3458
        return getSuccess();
3459
 
3460
      case LSE:
3461
        return getLse();
3462
 
3463
      }
3464
      throw new IllegalStateException();
3465
    }
3466
 
3430 rajveer 3467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3468
    public boolean isSet(_Fields field) {
3469
      if (field == null) {
3470
        throw new IllegalArgumentException();
3471
      }
674 chandransh 3472
 
3473
      switch (field) {
3474
      case SUCCESS:
3475
        return isSetSuccess();
3476
      case LSE:
3477
        return isSetLse();
3478
      }
3479
      throw new IllegalStateException();
3480
    }
3481
 
3482
    @Override
3483
    public boolean equals(Object that) {
3484
      if (that == null)
3485
        return false;
3486
      if (that instanceof getAllProviders_result)
3487
        return this.equals((getAllProviders_result)that);
3488
      return false;
3489
    }
3490
 
3491
    public boolean equals(getAllProviders_result that) {
3492
      if (that == null)
3493
        return false;
3494
 
3495
      boolean this_present_success = true && this.isSetSuccess();
3496
      boolean that_present_success = true && that.isSetSuccess();
3497
      if (this_present_success || that_present_success) {
3498
        if (!(this_present_success && that_present_success))
3499
          return false;
3500
        if (!this.success.equals(that.success))
3501
          return false;
3502
      }
3503
 
3504
      boolean this_present_lse = true && this.isSetLse();
3505
      boolean that_present_lse = true && that.isSetLse();
3506
      if (this_present_lse || that_present_lse) {
3507
        if (!(this_present_lse && that_present_lse))
3508
          return false;
3509
        if (!this.lse.equals(that.lse))
3510
          return false;
3511
      }
3512
 
3513
      return true;
3514
    }
3515
 
3516
    @Override
3517
    public int hashCode() {
3518
      return 0;
3519
    }
3520
 
3430 rajveer 3521
    public int compareTo(getAllProviders_result other) {
3522
      if (!getClass().equals(other.getClass())) {
3523
        return getClass().getName().compareTo(other.getClass().getName());
3524
      }
3525
 
3526
      int lastComparison = 0;
3527
      getAllProviders_result typedOther = (getAllProviders_result)other;
3528
 
3529
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3530
      if (lastComparison != 0) {
3531
        return lastComparison;
3532
      }
3533
      if (isSetSuccess()) {
3534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3535
        if (lastComparison != 0) {
3536
          return lastComparison;
3537
        }
3538
      }
3539
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3540
      if (lastComparison != 0) {
3541
        return lastComparison;
3542
      }
3543
      if (isSetLse()) {
3544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3545
        if (lastComparison != 0) {
3546
          return lastComparison;
3547
        }
3548
      }
3549
      return 0;
3550
    }
3551
 
3552
    public _Fields fieldForId(int fieldId) {
3553
      return _Fields.findByThriftId(fieldId);
3554
    }
3555
 
3556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3557
      org.apache.thrift.protocol.TField field;
674 chandransh 3558
      iprot.readStructBegin();
3559
      while (true)
3560
      {
3561
        field = iprot.readFieldBegin();
3430 rajveer 3562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3563
          break;
3564
        }
3430 rajveer 3565
        switch (field.id) {
3566
          case 0: // SUCCESS
3567
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3568
              {
7792 anupam.sin 3569
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3570
                this.success = new ArrayList<Provider>(_list4.size);
3571
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3572
                {
7792 anupam.sin 3573
                  Provider _elem6; // required
3574
                  _elem6 = new Provider();
3575
                  _elem6.read(iprot);
3576
                  this.success.add(_elem6);
674 chandransh 3577
                }
3430 rajveer 3578
                iprot.readListEnd();
674 chandransh 3579
              }
3430 rajveer 3580
            } else { 
3581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3582
            }
3583
            break;
3584
          case 1: // LSE
3585
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3586
              this.lse = new LogisticsServiceException();
3587
              this.lse.read(iprot);
3588
            } else { 
3589
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3590
            }
3591
            break;
3592
          default:
3593
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3594
        }
3430 rajveer 3595
        iprot.readFieldEnd();
674 chandransh 3596
      }
3597
      iprot.readStructEnd();
3598
      validate();
3599
    }
3600
 
3430 rajveer 3601
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3602
      oprot.writeStructBegin(STRUCT_DESC);
3603
 
3604
      if (this.isSetSuccess()) {
3605
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3606
        {
3430 rajveer 3607
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3608
          for (Provider _iter7 : this.success)
674 chandransh 3609
          {
7792 anupam.sin 3610
            _iter7.write(oprot);
674 chandransh 3611
          }
3612
          oprot.writeListEnd();
3613
        }
3614
        oprot.writeFieldEnd();
3615
      } else if (this.isSetLse()) {
3616
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3617
        this.lse.write(oprot);
3618
        oprot.writeFieldEnd();
3619
      }
3620
      oprot.writeFieldStop();
3621
      oprot.writeStructEnd();
3622
    }
3623
 
3624
    @Override
3625
    public String toString() {
3626
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3627
      boolean first = true;
3628
 
3629
      sb.append("success:");
3630
      if (this.success == null) {
3631
        sb.append("null");
3632
      } else {
3633
        sb.append(this.success);
3634
      }
3635
      first = false;
3636
      if (!first) sb.append(", ");
3637
      sb.append("lse:");
3638
      if (this.lse == null) {
3639
        sb.append("null");
3640
      } else {
3641
        sb.append(this.lse);
3642
      }
3643
      first = false;
3644
      sb.append(")");
3645
      return sb.toString();
3646
    }
3647
 
3430 rajveer 3648
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3649
      // check for required fields
3650
    }
3651
 
3430 rajveer 3652
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3653
      try {
3654
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3655
      } catch (org.apache.thrift.TException te) {
3656
        throw new java.io.IOException(te);
3657
      }
3658
    }
3659
 
3660
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3661
      try {
3662
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3663
      } catch (org.apache.thrift.TException te) {
3664
        throw new java.io.IOException(te);
3665
      }
3666
    }
3667
 
674 chandransh 3668
  }
3669
 
3430 rajveer 3670
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3671
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3672
 
3430 rajveer 3673
    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);
3674
    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 3675
    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 3676
 
3430 rajveer 3677
    private long itemId; // required
3678
    private String destination_pin; // required
4630 mandeep.dh 3679
    private DeliveryType type; // required
471 rajveer 3680
 
3681
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3682
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3683
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3684
      DESTINATION_PIN((short)2, "destination_pin"),
3685
      /**
3686
       * 
3687
       * @see DeliveryType
3688
       */
3689
      TYPE((short)3, "type");
471 rajveer 3690
 
3691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3692
 
3693
      static {
3694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3695
          byName.put(field.getFieldName(), field);
3696
        }
3697
      }
3698
 
3699
      /**
3700
       * Find the _Fields constant that matches fieldId, or null if its not found.
3701
       */
3702
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3703
        switch(fieldId) {
3704
          case 1: // ITEM_ID
3705
            return ITEM_ID;
3706
          case 2: // DESTINATION_PIN
3707
            return DESTINATION_PIN;
4630 mandeep.dh 3708
          case 3: // TYPE
3709
            return TYPE;
3430 rajveer 3710
          default:
3711
            return null;
3712
        }
471 rajveer 3713
      }
3714
 
3715
      /**
3716
       * Find the _Fields constant that matches fieldId, throwing an exception
3717
       * if it is not found.
3718
       */
3719
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3720
        _Fields fields = findByThriftId(fieldId);
3721
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3722
        return fields;
3723
      }
3724
 
3725
      /**
3726
       * Find the _Fields constant that matches name, or null if its not found.
3727
       */
3728
      public static _Fields findByName(String name) {
3729
        return byName.get(name);
3730
      }
3731
 
3732
      private final short _thriftId;
3733
      private final String _fieldName;
3734
 
3735
      _Fields(short thriftId, String fieldName) {
3736
        _thriftId = thriftId;
3737
        _fieldName = fieldName;
3738
      }
3739
 
3740
      public short getThriftFieldId() {
3741
        return _thriftId;
3742
      }
3743
 
3744
      public String getFieldName() {
3745
        return _fieldName;
3746
      }
3747
    }
3748
 
3749
    // isset id assignments
3750
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3751
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3752
 
3430 rajveer 3753
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3754
    static {
3430 rajveer 3755
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3756
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3757
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3758
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3759
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3760
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3761
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3764
    }
3765
 
3766
    public getLogisticsEstimation_args() {
3767
    }
3768
 
3769
    public getLogisticsEstimation_args(
3770
      long itemId,
4630 mandeep.dh 3771
      String destination_pin,
3772
      DeliveryType type)
471 rajveer 3773
    {
3774
      this();
3775
      this.itemId = itemId;
3776
      setItemIdIsSet(true);
3777
      this.destination_pin = destination_pin;
4630 mandeep.dh 3778
      this.type = type;
471 rajveer 3779
    }
3780
 
3781
    /**
3782
     * Performs a deep copy on <i>other</i>.
3783
     */
3784
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3785
      __isset_bit_vector.clear();
3786
      __isset_bit_vector.or(other.__isset_bit_vector);
3787
      this.itemId = other.itemId;
3788
      if (other.isSetDestination_pin()) {
3789
        this.destination_pin = other.destination_pin;
3790
      }
4630 mandeep.dh 3791
      if (other.isSetType()) {
3792
        this.type = other.type;
3793
      }
471 rajveer 3794
    }
3795
 
3796
    public getLogisticsEstimation_args deepCopy() {
3797
      return new getLogisticsEstimation_args(this);
3798
    }
3799
 
3430 rajveer 3800
    @Override
3801
    public void clear() {
3802
      setItemIdIsSet(false);
3803
      this.itemId = 0;
3804
      this.destination_pin = null;
4630 mandeep.dh 3805
      this.type = null;
471 rajveer 3806
    }
3807
 
3808
    public long getItemId() {
3809
      return this.itemId;
3810
    }
3811
 
3430 rajveer 3812
    public void setItemId(long itemId) {
471 rajveer 3813
      this.itemId = itemId;
3814
      setItemIdIsSet(true);
3815
    }
3816
 
3817
    public void unsetItemId() {
3818
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3819
    }
3820
 
3430 rajveer 3821
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3822
    public boolean isSetItemId() {
3823
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3824
    }
3825
 
3826
    public void setItemIdIsSet(boolean value) {
3827
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3828
    }
3829
 
3830
    public String getDestination_pin() {
3831
      return this.destination_pin;
3832
    }
3833
 
3430 rajveer 3834
    public void setDestination_pin(String destination_pin) {
471 rajveer 3835
      this.destination_pin = destination_pin;
3836
    }
3837
 
3838
    public void unsetDestination_pin() {
3839
      this.destination_pin = null;
3840
    }
3841
 
3430 rajveer 3842
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3843
    public boolean isSetDestination_pin() {
3844
      return this.destination_pin != null;
3845
    }
3846
 
3847
    public void setDestination_pinIsSet(boolean value) {
3848
      if (!value) {
3849
        this.destination_pin = null;
3850
      }
3851
    }
3852
 
4630 mandeep.dh 3853
    /**
3854
     * 
3855
     * @see DeliveryType
3856
     */
3857
    public DeliveryType getType() {
3858
      return this.type;
3859
    }
3860
 
3861
    /**
3862
     * 
3863
     * @see DeliveryType
3864
     */
3865
    public void setType(DeliveryType type) {
3866
      this.type = type;
3867
    }
3868
 
3869
    public void unsetType() {
3870
      this.type = null;
3871
    }
3872
 
3873
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3874
    public boolean isSetType() {
3875
      return this.type != null;
3876
    }
3877
 
3878
    public void setTypeIsSet(boolean value) {
3879
      if (!value) {
3880
        this.type = null;
3881
      }
3882
    }
3883
 
471 rajveer 3884
    public void setFieldValue(_Fields field, Object value) {
3885
      switch (field) {
3886
      case ITEM_ID:
3887
        if (value == null) {
3888
          unsetItemId();
3889
        } else {
3890
          setItemId((Long)value);
3891
        }
3892
        break;
3893
 
3894
      case DESTINATION_PIN:
3895
        if (value == null) {
3896
          unsetDestination_pin();
3897
        } else {
3898
          setDestination_pin((String)value);
3899
        }
3900
        break;
3901
 
4630 mandeep.dh 3902
      case TYPE:
3903
        if (value == null) {
3904
          unsetType();
3905
        } else {
3906
          setType((DeliveryType)value);
3907
        }
3908
        break;
3909
 
471 rajveer 3910
      }
3911
    }
3912
 
3913
    public Object getFieldValue(_Fields field) {
3914
      switch (field) {
3915
      case ITEM_ID:
3430 rajveer 3916
        return Long.valueOf(getItemId());
471 rajveer 3917
 
3918
      case DESTINATION_PIN:
3919
        return getDestination_pin();
3920
 
4630 mandeep.dh 3921
      case TYPE:
3922
        return getType();
3923
 
471 rajveer 3924
      }
3925
      throw new IllegalStateException();
3926
    }
3927
 
3430 rajveer 3928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3929
    public boolean isSet(_Fields field) {
3930
      if (field == null) {
3931
        throw new IllegalArgumentException();
3932
      }
471 rajveer 3933
 
3934
      switch (field) {
3935
      case ITEM_ID:
3936
        return isSetItemId();
3937
      case DESTINATION_PIN:
3938
        return isSetDestination_pin();
4630 mandeep.dh 3939
      case TYPE:
3940
        return isSetType();
471 rajveer 3941
      }
3942
      throw new IllegalStateException();
3943
    }
3944
 
3945
    @Override
3946
    public boolean equals(Object that) {
3947
      if (that == null)
3948
        return false;
3949
      if (that instanceof getLogisticsEstimation_args)
3950
        return this.equals((getLogisticsEstimation_args)that);
3951
      return false;
3952
    }
3953
 
3954
    public boolean equals(getLogisticsEstimation_args that) {
3955
      if (that == null)
3956
        return false;
3957
 
3958
      boolean this_present_itemId = true;
3959
      boolean that_present_itemId = true;
3960
      if (this_present_itemId || that_present_itemId) {
3961
        if (!(this_present_itemId && that_present_itemId))
3962
          return false;
3963
        if (this.itemId != that.itemId)
3964
          return false;
3965
      }
3966
 
3967
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3968
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3969
      if (this_present_destination_pin || that_present_destination_pin) {
3970
        if (!(this_present_destination_pin && that_present_destination_pin))
3971
          return false;
3972
        if (!this.destination_pin.equals(that.destination_pin))
3973
          return false;
3974
      }
3975
 
4630 mandeep.dh 3976
      boolean this_present_type = true && this.isSetType();
3977
      boolean that_present_type = true && that.isSetType();
3978
      if (this_present_type || that_present_type) {
3979
        if (!(this_present_type && that_present_type))
3980
          return false;
3981
        if (!this.type.equals(that.type))
3982
          return false;
3983
      }
3984
 
471 rajveer 3985
      return true;
3986
    }
3987
 
3988
    @Override
3989
    public int hashCode() {
3990
      return 0;
3991
    }
3992
 
3993
    public int compareTo(getLogisticsEstimation_args other) {
3994
      if (!getClass().equals(other.getClass())) {
3995
        return getClass().getName().compareTo(other.getClass().getName());
3996
      }
3997
 
3998
      int lastComparison = 0;
3999
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
4000
 
3430 rajveer 4001
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 4002
      if (lastComparison != 0) {
4003
        return lastComparison;
4004
      }
3430 rajveer 4005
      if (isSetItemId()) {
4006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4007
        if (lastComparison != 0) {
4008
          return lastComparison;
4009
        }
471 rajveer 4010
      }
3430 rajveer 4011
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 4012
      if (lastComparison != 0) {
4013
        return lastComparison;
4014
      }
3430 rajveer 4015
      if (isSetDestination_pin()) {
4016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4017
        if (lastComparison != 0) {
4018
          return lastComparison;
4019
        }
471 rajveer 4020
      }
4630 mandeep.dh 4021
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4022
      if (lastComparison != 0) {
4023
        return lastComparison;
4024
      }
4025
      if (isSetType()) {
4026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4027
        if (lastComparison != 0) {
4028
          return lastComparison;
4029
        }
4030
      }
471 rajveer 4031
      return 0;
4032
    }
4033
 
3430 rajveer 4034
    public _Fields fieldForId(int fieldId) {
4035
      return _Fields.findByThriftId(fieldId);
4036
    }
4037
 
4038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4039
      org.apache.thrift.protocol.TField field;
471 rajveer 4040
      iprot.readStructBegin();
4041
      while (true)
4042
      {
4043
        field = iprot.readFieldBegin();
3430 rajveer 4044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4045
          break;
4046
        }
3430 rajveer 4047
        switch (field.id) {
4048
          case 1: // ITEM_ID
4049
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4050
              this.itemId = iprot.readI64();
4051
              setItemIdIsSet(true);
4052
            } else { 
4053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4054
            }
4055
            break;
4056
          case 2: // DESTINATION_PIN
4057
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4058
              this.destination_pin = iprot.readString();
4059
            } else { 
4060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4061
            }
4062
            break;
4630 mandeep.dh 4063
          case 3: // TYPE
4064
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4065
              this.type = DeliveryType.findByValue(iprot.readI32());
4066
            } else { 
4067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4068
            }
4069
            break;
3430 rajveer 4070
          default:
4071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4072
        }
3430 rajveer 4073
        iprot.readFieldEnd();
471 rajveer 4074
      }
4075
      iprot.readStructEnd();
4076
      validate();
4077
    }
4078
 
3430 rajveer 4079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4080
      validate();
4081
 
4082
      oprot.writeStructBegin(STRUCT_DESC);
4083
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4084
      oprot.writeI64(this.itemId);
4085
      oprot.writeFieldEnd();
4086
      if (this.destination_pin != null) {
4087
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4088
        oprot.writeString(this.destination_pin);
4089
        oprot.writeFieldEnd();
4090
      }
4630 mandeep.dh 4091
      if (this.type != null) {
4092
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4093
        oprot.writeI32(this.type.getValue());
4094
        oprot.writeFieldEnd();
4095
      }
471 rajveer 4096
      oprot.writeFieldStop();
4097
      oprot.writeStructEnd();
4098
    }
4099
 
4100
    @Override
4101
    public String toString() {
4102
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4103
      boolean first = true;
4104
 
4105
      sb.append("itemId:");
4106
      sb.append(this.itemId);
4107
      first = false;
4108
      if (!first) sb.append(", ");
4109
      sb.append("destination_pin:");
4110
      if (this.destination_pin == null) {
4111
        sb.append("null");
4112
      } else {
4113
        sb.append(this.destination_pin);
4114
      }
4115
      first = false;
4630 mandeep.dh 4116
      if (!first) sb.append(", ");
4117
      sb.append("type:");
4118
      if (this.type == null) {
4119
        sb.append("null");
4120
      } else {
4121
        sb.append(this.type);
4122
      }
4123
      first = false;
471 rajveer 4124
      sb.append(")");
4125
      return sb.toString();
4126
    }
4127
 
3430 rajveer 4128
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4129
      // check for required fields
4130
    }
4131
 
3430 rajveer 4132
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4133
      try {
4134
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4135
      } catch (org.apache.thrift.TException te) {
4136
        throw new java.io.IOException(te);
4137
      }
4138
    }
4139
 
4140
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4141
      try {
4142
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4143
      } catch (org.apache.thrift.TException te) {
4144
        throw new java.io.IOException(te);
4145
      }
4146
    }
4147
 
471 rajveer 4148
  }
4149
 
3430 rajveer 4150
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4151
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4152
 
3430 rajveer 4153
    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);
4154
    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 4155
 
3430 rajveer 4156
    private LogisticsInfo success; // required
4157
    private LogisticsServiceException se; // required
471 rajveer 4158
 
4159
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4160
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4161
      SUCCESS((short)0, "success"),
4162
      SE((short)1, "se");
4163
 
4164
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4165
 
4166
      static {
4167
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4168
          byName.put(field.getFieldName(), field);
4169
        }
4170
      }
4171
 
4172
      /**
4173
       * Find the _Fields constant that matches fieldId, or null if its not found.
4174
       */
4175
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4176
        switch(fieldId) {
4177
          case 0: // SUCCESS
4178
            return SUCCESS;
4179
          case 1: // SE
4180
            return SE;
4181
          default:
4182
            return null;
4183
        }
471 rajveer 4184
      }
4185
 
4186
      /**
4187
       * Find the _Fields constant that matches fieldId, throwing an exception
4188
       * if it is not found.
4189
       */
4190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4191
        _Fields fields = findByThriftId(fieldId);
4192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4193
        return fields;
4194
      }
4195
 
4196
      /**
4197
       * Find the _Fields constant that matches name, or null if its not found.
4198
       */
4199
      public static _Fields findByName(String name) {
4200
        return byName.get(name);
4201
      }
4202
 
4203
      private final short _thriftId;
4204
      private final String _fieldName;
4205
 
4206
      _Fields(short thriftId, String fieldName) {
4207
        _thriftId = thriftId;
4208
        _fieldName = fieldName;
4209
      }
4210
 
4211
      public short getThriftFieldId() {
4212
        return _thriftId;
4213
      }
4214
 
4215
      public String getFieldName() {
4216
        return _fieldName;
4217
      }
4218
    }
4219
 
4220
    // isset id assignments
4221
 
3430 rajveer 4222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4223
    static {
3430 rajveer 4224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4225
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4226
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4227
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4229
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4230
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4231
    }
4232
 
4233
    public getLogisticsEstimation_result() {
4234
    }
4235
 
4236
    public getLogisticsEstimation_result(
648 chandransh 4237
      LogisticsInfo success,
471 rajveer 4238
      LogisticsServiceException se)
4239
    {
4240
      this();
4241
      this.success = success;
4242
      this.se = se;
4243
    }
4244
 
4245
    /**
4246
     * Performs a deep copy on <i>other</i>.
4247
     */
4248
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4249
      if (other.isSetSuccess()) {
648 chandransh 4250
        this.success = new LogisticsInfo(other.success);
471 rajveer 4251
      }
4252
      if (other.isSetSe()) {
4253
        this.se = new LogisticsServiceException(other.se);
4254
      }
4255
    }
4256
 
4257
    public getLogisticsEstimation_result deepCopy() {
4258
      return new getLogisticsEstimation_result(this);
4259
    }
4260
 
3430 rajveer 4261
    @Override
4262
    public void clear() {
4263
      this.success = null;
4264
      this.se = null;
471 rajveer 4265
    }
4266
 
648 chandransh 4267
    public LogisticsInfo getSuccess() {
471 rajveer 4268
      return this.success;
4269
    }
4270
 
3430 rajveer 4271
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4272
      this.success = success;
4273
    }
4274
 
4275
    public void unsetSuccess() {
4276
      this.success = null;
4277
    }
4278
 
3430 rajveer 4279
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4280
    public boolean isSetSuccess() {
4281
      return this.success != null;
4282
    }
4283
 
4284
    public void setSuccessIsSet(boolean value) {
4285
      if (!value) {
4286
        this.success = null;
4287
      }
4288
    }
4289
 
4290
    public LogisticsServiceException getSe() {
4291
      return this.se;
4292
    }
4293
 
3430 rajveer 4294
    public void setSe(LogisticsServiceException se) {
471 rajveer 4295
      this.se = se;
4296
    }
4297
 
4298
    public void unsetSe() {
4299
      this.se = null;
4300
    }
4301
 
3430 rajveer 4302
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4303
    public boolean isSetSe() {
4304
      return this.se != null;
4305
    }
4306
 
4307
    public void setSeIsSet(boolean value) {
4308
      if (!value) {
4309
        this.se = null;
4310
      }
4311
    }
4312
 
4313
    public void setFieldValue(_Fields field, Object value) {
4314
      switch (field) {
4315
      case SUCCESS:
4316
        if (value == null) {
4317
          unsetSuccess();
4318
        } else {
648 chandransh 4319
          setSuccess((LogisticsInfo)value);
471 rajveer 4320
        }
4321
        break;
4322
 
4323
      case SE:
4324
        if (value == null) {
4325
          unsetSe();
4326
        } else {
4327
          setSe((LogisticsServiceException)value);
4328
        }
4329
        break;
4330
 
4331
      }
4332
    }
4333
 
4334
    public Object getFieldValue(_Fields field) {
4335
      switch (field) {
4336
      case SUCCESS:
4337
        return getSuccess();
4338
 
4339
      case SE:
4340
        return getSe();
4341
 
4342
      }
4343
      throw new IllegalStateException();
4344
    }
4345
 
3430 rajveer 4346
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4347
    public boolean isSet(_Fields field) {
4348
      if (field == null) {
4349
        throw new IllegalArgumentException();
4350
      }
471 rajveer 4351
 
4352
      switch (field) {
4353
      case SUCCESS:
4354
        return isSetSuccess();
4355
      case SE:
4356
        return isSetSe();
4357
      }
4358
      throw new IllegalStateException();
4359
    }
4360
 
4361
    @Override
4362
    public boolean equals(Object that) {
4363
      if (that == null)
4364
        return false;
4365
      if (that instanceof getLogisticsEstimation_result)
4366
        return this.equals((getLogisticsEstimation_result)that);
4367
      return false;
4368
    }
4369
 
4370
    public boolean equals(getLogisticsEstimation_result that) {
4371
      if (that == null)
4372
        return false;
4373
 
4374
      boolean this_present_success = true && this.isSetSuccess();
4375
      boolean that_present_success = true && that.isSetSuccess();
4376
      if (this_present_success || that_present_success) {
4377
        if (!(this_present_success && that_present_success))
4378
          return false;
4379
        if (!this.success.equals(that.success))
4380
          return false;
4381
      }
4382
 
4383
      boolean this_present_se = true && this.isSetSe();
4384
      boolean that_present_se = true && that.isSetSe();
4385
      if (this_present_se || that_present_se) {
4386
        if (!(this_present_se && that_present_se))
4387
          return false;
4388
        if (!this.se.equals(that.se))
4389
          return false;
4390
      }
4391
 
4392
      return true;
4393
    }
4394
 
4395
    @Override
4396
    public int hashCode() {
4397
      return 0;
4398
    }
4399
 
4400
    public int compareTo(getLogisticsEstimation_result other) {
4401
      if (!getClass().equals(other.getClass())) {
4402
        return getClass().getName().compareTo(other.getClass().getName());
4403
      }
4404
 
4405
      int lastComparison = 0;
4406
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4407
 
3430 rajveer 4408
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4409
      if (lastComparison != 0) {
4410
        return lastComparison;
4411
      }
3430 rajveer 4412
      if (isSetSuccess()) {
4413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4414
        if (lastComparison != 0) {
4415
          return lastComparison;
4416
        }
471 rajveer 4417
      }
3430 rajveer 4418
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4419
      if (lastComparison != 0) {
4420
        return lastComparison;
4421
      }
3430 rajveer 4422
      if (isSetSe()) {
4423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4424
        if (lastComparison != 0) {
4425
          return lastComparison;
4426
        }
471 rajveer 4427
      }
4428
      return 0;
4429
    }
4430
 
3430 rajveer 4431
    public _Fields fieldForId(int fieldId) {
4432
      return _Fields.findByThriftId(fieldId);
4433
    }
4434
 
4435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4436
      org.apache.thrift.protocol.TField field;
471 rajveer 4437
      iprot.readStructBegin();
4438
      while (true)
4439
      {
4440
        field = iprot.readFieldBegin();
3430 rajveer 4441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4442
          break;
4443
        }
3430 rajveer 4444
        switch (field.id) {
4445
          case 0: // SUCCESS
4446
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4447
              this.success = new LogisticsInfo();
4448
              this.success.read(iprot);
4449
            } else { 
4450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4451
            }
4452
            break;
4453
          case 1: // SE
4454
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4455
              this.se = new LogisticsServiceException();
4456
              this.se.read(iprot);
4457
            } else { 
4458
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4459
            }
4460
            break;
4461
          default:
4462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4463
        }
3430 rajveer 4464
        iprot.readFieldEnd();
471 rajveer 4465
      }
4466
      iprot.readStructEnd();
4467
      validate();
4468
    }
4469
 
3430 rajveer 4470
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4471
      oprot.writeStructBegin(STRUCT_DESC);
4472
 
4473
      if (this.isSetSuccess()) {
4474
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4475
        this.success.write(oprot);
4476
        oprot.writeFieldEnd();
4477
      } else if (this.isSetSe()) {
4478
        oprot.writeFieldBegin(SE_FIELD_DESC);
4479
        this.se.write(oprot);
4480
        oprot.writeFieldEnd();
4481
      }
4482
      oprot.writeFieldStop();
4483
      oprot.writeStructEnd();
4484
    }
4485
 
4486
    @Override
4487
    public String toString() {
4488
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4489
      boolean first = true;
4490
 
4491
      sb.append("success:");
4492
      if (this.success == null) {
4493
        sb.append("null");
4494
      } else {
4495
        sb.append(this.success);
4496
      }
4497
      first = false;
4498
      if (!first) sb.append(", ");
4499
      sb.append("se:");
4500
      if (this.se == null) {
4501
        sb.append("null");
4502
      } else {
4503
        sb.append(this.se);
4504
      }
4505
      first = false;
4506
      sb.append(")");
4507
      return sb.toString();
4508
    }
4509
 
3430 rajveer 4510
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4511
      // check for required fields
4512
    }
4513
 
3430 rajveer 4514
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4515
      try {
4516
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4517
      } catch (org.apache.thrift.TException te) {
4518
        throw new java.io.IOException(te);
4519
      }
4520
    }
4521
 
4522
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4523
      try {
4524
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4525
      } catch (org.apache.thrift.TException te) {
4526
        throw new java.io.IOException(te);
4527
      }
4528
    }
4529
 
471 rajveer 4530
  }
4531
 
7256 rajveer 4532
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4533
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4534
 
4535
    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);
4536
    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);
4537
    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);
4538
 
4539
    private long itemId; // required
4540
    private String destination_pin; // required
4541
    private DeliveryType type; // required
4542
 
4543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4545
      ITEM_ID((short)1, "itemId"),
4546
      DESTINATION_PIN((short)2, "destination_pin"),
4547
      /**
4548
       * 
4549
       * @see DeliveryType
4550
       */
4551
      TYPE((short)3, "type");
4552
 
4553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4554
 
4555
      static {
4556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4557
          byName.put(field.getFieldName(), field);
4558
        }
4559
      }
4560
 
4561
      /**
4562
       * Find the _Fields constant that matches fieldId, or null if its not found.
4563
       */
4564
      public static _Fields findByThriftId(int fieldId) {
4565
        switch(fieldId) {
4566
          case 1: // ITEM_ID
4567
            return ITEM_ID;
4568
          case 2: // DESTINATION_PIN
4569
            return DESTINATION_PIN;
4570
          case 3: // TYPE
4571
            return TYPE;
4572
          default:
4573
            return null;
4574
        }
4575
      }
4576
 
4577
      /**
4578
       * Find the _Fields constant that matches fieldId, throwing an exception
4579
       * if it is not found.
4580
       */
4581
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4582
        _Fields fields = findByThriftId(fieldId);
4583
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4584
        return fields;
4585
      }
4586
 
4587
      /**
4588
       * Find the _Fields constant that matches name, or null if its not found.
4589
       */
4590
      public static _Fields findByName(String name) {
4591
        return byName.get(name);
4592
      }
4593
 
4594
      private final short _thriftId;
4595
      private final String _fieldName;
4596
 
4597
      _Fields(short thriftId, String fieldName) {
4598
        _thriftId = thriftId;
4599
        _fieldName = fieldName;
4600
      }
4601
 
4602
      public short getThriftFieldId() {
4603
        return _thriftId;
4604
      }
4605
 
4606
      public String getFieldName() {
4607
        return _fieldName;
4608
      }
4609
    }
4610
 
4611
    // isset id assignments
4612
    private static final int __ITEMID_ISSET_ID = 0;
4613
    private BitSet __isset_bit_vector = new BitSet(1);
4614
 
4615
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4616
    static {
4617
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4618
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4619
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4620
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4621
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4622
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4623
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4624
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4625
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4626
    }
4627
 
4628
    public getLogisticsEstimationForStore_args() {
4629
    }
4630
 
4631
    public getLogisticsEstimationForStore_args(
4632
      long itemId,
4633
      String destination_pin,
4634
      DeliveryType type)
4635
    {
4636
      this();
4637
      this.itemId = itemId;
4638
      setItemIdIsSet(true);
4639
      this.destination_pin = destination_pin;
4640
      this.type = type;
4641
    }
4642
 
4643
    /**
4644
     * Performs a deep copy on <i>other</i>.
4645
     */
4646
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4647
      __isset_bit_vector.clear();
4648
      __isset_bit_vector.or(other.__isset_bit_vector);
4649
      this.itemId = other.itemId;
4650
      if (other.isSetDestination_pin()) {
4651
        this.destination_pin = other.destination_pin;
4652
      }
4653
      if (other.isSetType()) {
4654
        this.type = other.type;
4655
      }
4656
    }
4657
 
4658
    public getLogisticsEstimationForStore_args deepCopy() {
4659
      return new getLogisticsEstimationForStore_args(this);
4660
    }
4661
 
4662
    @Override
4663
    public void clear() {
4664
      setItemIdIsSet(false);
4665
      this.itemId = 0;
4666
      this.destination_pin = null;
4667
      this.type = null;
4668
    }
4669
 
4670
    public long getItemId() {
4671
      return this.itemId;
4672
    }
4673
 
4674
    public void setItemId(long itemId) {
4675
      this.itemId = itemId;
4676
      setItemIdIsSet(true);
4677
    }
4678
 
4679
    public void unsetItemId() {
4680
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4681
    }
4682
 
4683
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4684
    public boolean isSetItemId() {
4685
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4686
    }
4687
 
4688
    public void setItemIdIsSet(boolean value) {
4689
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4690
    }
4691
 
4692
    public String getDestination_pin() {
4693
      return this.destination_pin;
4694
    }
4695
 
4696
    public void setDestination_pin(String destination_pin) {
4697
      this.destination_pin = destination_pin;
4698
    }
4699
 
4700
    public void unsetDestination_pin() {
4701
      this.destination_pin = null;
4702
    }
4703
 
4704
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4705
    public boolean isSetDestination_pin() {
4706
      return this.destination_pin != null;
4707
    }
4708
 
4709
    public void setDestination_pinIsSet(boolean value) {
4710
      if (!value) {
4711
        this.destination_pin = null;
4712
      }
4713
    }
4714
 
4715
    /**
4716
     * 
4717
     * @see DeliveryType
4718
     */
4719
    public DeliveryType getType() {
4720
      return this.type;
4721
    }
4722
 
4723
    /**
4724
     * 
4725
     * @see DeliveryType
4726
     */
4727
    public void setType(DeliveryType type) {
4728
      this.type = type;
4729
    }
4730
 
4731
    public void unsetType() {
4732
      this.type = null;
4733
    }
4734
 
4735
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4736
    public boolean isSetType() {
4737
      return this.type != null;
4738
    }
4739
 
4740
    public void setTypeIsSet(boolean value) {
4741
      if (!value) {
4742
        this.type = null;
4743
      }
4744
    }
4745
 
4746
    public void setFieldValue(_Fields field, Object value) {
4747
      switch (field) {
4748
      case ITEM_ID:
4749
        if (value == null) {
4750
          unsetItemId();
4751
        } else {
4752
          setItemId((Long)value);
4753
        }
4754
        break;
4755
 
4756
      case DESTINATION_PIN:
4757
        if (value == null) {
4758
          unsetDestination_pin();
4759
        } else {
4760
          setDestination_pin((String)value);
4761
        }
4762
        break;
4763
 
4764
      case TYPE:
4765
        if (value == null) {
4766
          unsetType();
4767
        } else {
4768
          setType((DeliveryType)value);
4769
        }
4770
        break;
4771
 
4772
      }
4773
    }
4774
 
4775
    public Object getFieldValue(_Fields field) {
4776
      switch (field) {
4777
      case ITEM_ID:
4778
        return Long.valueOf(getItemId());
4779
 
4780
      case DESTINATION_PIN:
4781
        return getDestination_pin();
4782
 
4783
      case TYPE:
4784
        return getType();
4785
 
4786
      }
4787
      throw new IllegalStateException();
4788
    }
4789
 
4790
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4791
    public boolean isSet(_Fields field) {
4792
      if (field == null) {
4793
        throw new IllegalArgumentException();
4794
      }
4795
 
4796
      switch (field) {
4797
      case ITEM_ID:
4798
        return isSetItemId();
4799
      case DESTINATION_PIN:
4800
        return isSetDestination_pin();
4801
      case TYPE:
4802
        return isSetType();
4803
      }
4804
      throw new IllegalStateException();
4805
    }
4806
 
4807
    @Override
4808
    public boolean equals(Object that) {
4809
      if (that == null)
4810
        return false;
4811
      if (that instanceof getLogisticsEstimationForStore_args)
4812
        return this.equals((getLogisticsEstimationForStore_args)that);
4813
      return false;
4814
    }
4815
 
4816
    public boolean equals(getLogisticsEstimationForStore_args that) {
4817
      if (that == null)
4818
        return false;
4819
 
4820
      boolean this_present_itemId = true;
4821
      boolean that_present_itemId = true;
4822
      if (this_present_itemId || that_present_itemId) {
4823
        if (!(this_present_itemId && that_present_itemId))
4824
          return false;
4825
        if (this.itemId != that.itemId)
4826
          return false;
4827
      }
4828
 
4829
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4830
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4831
      if (this_present_destination_pin || that_present_destination_pin) {
4832
        if (!(this_present_destination_pin && that_present_destination_pin))
4833
          return false;
4834
        if (!this.destination_pin.equals(that.destination_pin))
4835
          return false;
4836
      }
4837
 
4838
      boolean this_present_type = true && this.isSetType();
4839
      boolean that_present_type = true && that.isSetType();
4840
      if (this_present_type || that_present_type) {
4841
        if (!(this_present_type && that_present_type))
4842
          return false;
4843
        if (!this.type.equals(that.type))
4844
          return false;
4845
      }
4846
 
4847
      return true;
4848
    }
4849
 
4850
    @Override
4851
    public int hashCode() {
4852
      return 0;
4853
    }
4854
 
4855
    public int compareTo(getLogisticsEstimationForStore_args other) {
4856
      if (!getClass().equals(other.getClass())) {
4857
        return getClass().getName().compareTo(other.getClass().getName());
4858
      }
4859
 
4860
      int lastComparison = 0;
4861
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4862
 
4863
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4864
      if (lastComparison != 0) {
4865
        return lastComparison;
4866
      }
4867
      if (isSetItemId()) {
4868
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4869
        if (lastComparison != 0) {
4870
          return lastComparison;
4871
        }
4872
      }
4873
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4874
      if (lastComparison != 0) {
4875
        return lastComparison;
4876
      }
4877
      if (isSetDestination_pin()) {
4878
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4879
        if (lastComparison != 0) {
4880
          return lastComparison;
4881
        }
4882
      }
4883
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4884
      if (lastComparison != 0) {
4885
        return lastComparison;
4886
      }
4887
      if (isSetType()) {
4888
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4889
        if (lastComparison != 0) {
4890
          return lastComparison;
4891
        }
4892
      }
4893
      return 0;
4894
    }
4895
 
4896
    public _Fields fieldForId(int fieldId) {
4897
      return _Fields.findByThriftId(fieldId);
4898
    }
4899
 
4900
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4901
      org.apache.thrift.protocol.TField field;
4902
      iprot.readStructBegin();
4903
      while (true)
4904
      {
4905
        field = iprot.readFieldBegin();
4906
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4907
          break;
4908
        }
4909
        switch (field.id) {
4910
          case 1: // ITEM_ID
4911
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4912
              this.itemId = iprot.readI64();
4913
              setItemIdIsSet(true);
4914
            } else { 
4915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4916
            }
4917
            break;
4918
          case 2: // DESTINATION_PIN
4919
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4920
              this.destination_pin = iprot.readString();
4921
            } else { 
4922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4923
            }
4924
            break;
4925
          case 3: // TYPE
4926
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4927
              this.type = DeliveryType.findByValue(iprot.readI32());
4928
            } else { 
4929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4930
            }
4931
            break;
4932
          default:
4933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4934
        }
4935
        iprot.readFieldEnd();
4936
      }
4937
      iprot.readStructEnd();
4938
      validate();
4939
    }
4940
 
4941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4942
      validate();
4943
 
4944
      oprot.writeStructBegin(STRUCT_DESC);
4945
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4946
      oprot.writeI64(this.itemId);
4947
      oprot.writeFieldEnd();
4948
      if (this.destination_pin != null) {
4949
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4950
        oprot.writeString(this.destination_pin);
4951
        oprot.writeFieldEnd();
4952
      }
4953
      if (this.type != null) {
4954
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4955
        oprot.writeI32(this.type.getValue());
4956
        oprot.writeFieldEnd();
4957
      }
4958
      oprot.writeFieldStop();
4959
      oprot.writeStructEnd();
4960
    }
4961
 
4962
    @Override
4963
    public String toString() {
4964
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4965
      boolean first = true;
4966
 
4967
      sb.append("itemId:");
4968
      sb.append(this.itemId);
4969
      first = false;
4970
      if (!first) sb.append(", ");
4971
      sb.append("destination_pin:");
4972
      if (this.destination_pin == null) {
4973
        sb.append("null");
4974
      } else {
4975
        sb.append(this.destination_pin);
4976
      }
4977
      first = false;
4978
      if (!first) sb.append(", ");
4979
      sb.append("type:");
4980
      if (this.type == null) {
4981
        sb.append("null");
4982
      } else {
4983
        sb.append(this.type);
4984
      }
4985
      first = false;
4986
      sb.append(")");
4987
      return sb.toString();
4988
    }
4989
 
4990
    public void validate() throws org.apache.thrift.TException {
4991
      // check for required fields
4992
    }
4993
 
4994
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4995
      try {
4996
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4997
      } catch (org.apache.thrift.TException te) {
4998
        throw new java.io.IOException(te);
4999
      }
5000
    }
5001
 
5002
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5003
      try {
5004
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5005
        __isset_bit_vector = new BitSet(1);
5006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5007
      } catch (org.apache.thrift.TException te) {
5008
        throw new java.io.IOException(te);
5009
      }
5010
    }
5011
 
5012
  }
5013
 
5014
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
5015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
5016
 
5017
    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);
5018
    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);
5019
 
5020
    private LogisticsInfo success; // required
5021
    private LogisticsServiceException se; // required
5022
 
5023
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5024
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5025
      SUCCESS((short)0, "success"),
5026
      SE((short)1, "se");
5027
 
5028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5029
 
5030
      static {
5031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5032
          byName.put(field.getFieldName(), field);
5033
        }
5034
      }
5035
 
5036
      /**
5037
       * Find the _Fields constant that matches fieldId, or null if its not found.
5038
       */
5039
      public static _Fields findByThriftId(int fieldId) {
5040
        switch(fieldId) {
5041
          case 0: // SUCCESS
5042
            return SUCCESS;
5043
          case 1: // SE
5044
            return SE;
5045
          default:
5046
            return null;
5047
        }
5048
      }
5049
 
5050
      /**
5051
       * Find the _Fields constant that matches fieldId, throwing an exception
5052
       * if it is not found.
5053
       */
5054
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5055
        _Fields fields = findByThriftId(fieldId);
5056
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5057
        return fields;
5058
      }
5059
 
5060
      /**
5061
       * Find the _Fields constant that matches name, or null if its not found.
5062
       */
5063
      public static _Fields findByName(String name) {
5064
        return byName.get(name);
5065
      }
5066
 
5067
      private final short _thriftId;
5068
      private final String _fieldName;
5069
 
5070
      _Fields(short thriftId, String fieldName) {
5071
        _thriftId = thriftId;
5072
        _fieldName = fieldName;
5073
      }
5074
 
5075
      public short getThriftFieldId() {
5076
        return _thriftId;
5077
      }
5078
 
5079
      public String getFieldName() {
5080
        return _fieldName;
5081
      }
5082
    }
5083
 
5084
    // isset id assignments
5085
 
5086
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5087
    static {
5088
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5089
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5090
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5091
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5093
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5094
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
5095
    }
5096
 
5097
    public getLogisticsEstimationForStore_result() {
5098
    }
5099
 
5100
    public getLogisticsEstimationForStore_result(
5101
      LogisticsInfo success,
5102
      LogisticsServiceException se)
5103
    {
5104
      this();
5105
      this.success = success;
5106
      this.se = se;
5107
    }
5108
 
5109
    /**
5110
     * Performs a deep copy on <i>other</i>.
5111
     */
5112
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5113
      if (other.isSetSuccess()) {
5114
        this.success = new LogisticsInfo(other.success);
5115
      }
5116
      if (other.isSetSe()) {
5117
        this.se = new LogisticsServiceException(other.se);
5118
      }
5119
    }
5120
 
5121
    public getLogisticsEstimationForStore_result deepCopy() {
5122
      return new getLogisticsEstimationForStore_result(this);
5123
    }
5124
 
5125
    @Override
5126
    public void clear() {
5127
      this.success = null;
5128
      this.se = null;
5129
    }
5130
 
5131
    public LogisticsInfo getSuccess() {
5132
      return this.success;
5133
    }
5134
 
5135
    public void setSuccess(LogisticsInfo success) {
5136
      this.success = success;
5137
    }
5138
 
5139
    public void unsetSuccess() {
5140
      this.success = null;
5141
    }
5142
 
5143
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5144
    public boolean isSetSuccess() {
5145
      return this.success != null;
5146
    }
5147
 
5148
    public void setSuccessIsSet(boolean value) {
5149
      if (!value) {
5150
        this.success = null;
5151
      }
5152
    }
5153
 
5154
    public LogisticsServiceException getSe() {
5155
      return this.se;
5156
    }
5157
 
5158
    public void setSe(LogisticsServiceException se) {
5159
      this.se = se;
5160
    }
5161
 
5162
    public void unsetSe() {
5163
      this.se = null;
5164
    }
5165
 
5166
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5167
    public boolean isSetSe() {
5168
      return this.se != null;
5169
    }
5170
 
5171
    public void setSeIsSet(boolean value) {
5172
      if (!value) {
5173
        this.se = null;
5174
      }
5175
    }
5176
 
5177
    public void setFieldValue(_Fields field, Object value) {
5178
      switch (field) {
5179
      case SUCCESS:
5180
        if (value == null) {
5181
          unsetSuccess();
5182
        } else {
5183
          setSuccess((LogisticsInfo)value);
5184
        }
5185
        break;
5186
 
5187
      case SE:
5188
        if (value == null) {
5189
          unsetSe();
5190
        } else {
5191
          setSe((LogisticsServiceException)value);
5192
        }
5193
        break;
5194
 
5195
      }
5196
    }
5197
 
5198
    public Object getFieldValue(_Fields field) {
5199
      switch (field) {
5200
      case SUCCESS:
5201
        return getSuccess();
5202
 
5203
      case SE:
5204
        return getSe();
5205
 
5206
      }
5207
      throw new IllegalStateException();
5208
    }
5209
 
5210
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5211
    public boolean isSet(_Fields field) {
5212
      if (field == null) {
5213
        throw new IllegalArgumentException();
5214
      }
5215
 
5216
      switch (field) {
5217
      case SUCCESS:
5218
        return isSetSuccess();
5219
      case SE:
5220
        return isSetSe();
5221
      }
5222
      throw new IllegalStateException();
5223
    }
5224
 
5225
    @Override
5226
    public boolean equals(Object that) {
5227
      if (that == null)
5228
        return false;
5229
      if (that instanceof getLogisticsEstimationForStore_result)
5230
        return this.equals((getLogisticsEstimationForStore_result)that);
5231
      return false;
5232
    }
5233
 
5234
    public boolean equals(getLogisticsEstimationForStore_result that) {
5235
      if (that == null)
5236
        return false;
5237
 
5238
      boolean this_present_success = true && this.isSetSuccess();
5239
      boolean that_present_success = true && that.isSetSuccess();
5240
      if (this_present_success || that_present_success) {
5241
        if (!(this_present_success && that_present_success))
5242
          return false;
5243
        if (!this.success.equals(that.success))
5244
          return false;
5245
      }
5246
 
5247
      boolean this_present_se = true && this.isSetSe();
5248
      boolean that_present_se = true && that.isSetSe();
5249
      if (this_present_se || that_present_se) {
5250
        if (!(this_present_se && that_present_se))
5251
          return false;
5252
        if (!this.se.equals(that.se))
5253
          return false;
5254
      }
5255
 
5256
      return true;
5257
    }
5258
 
5259
    @Override
5260
    public int hashCode() {
5261
      return 0;
5262
    }
5263
 
5264
    public int compareTo(getLogisticsEstimationForStore_result other) {
5265
      if (!getClass().equals(other.getClass())) {
5266
        return getClass().getName().compareTo(other.getClass().getName());
5267
      }
5268
 
5269
      int lastComparison = 0;
5270
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5271
 
5272
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5273
      if (lastComparison != 0) {
5274
        return lastComparison;
5275
      }
5276
      if (isSetSuccess()) {
5277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5278
        if (lastComparison != 0) {
5279
          return lastComparison;
5280
        }
5281
      }
5282
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5283
      if (lastComparison != 0) {
5284
        return lastComparison;
5285
      }
5286
      if (isSetSe()) {
5287
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5288
        if (lastComparison != 0) {
5289
          return lastComparison;
5290
        }
5291
      }
5292
      return 0;
5293
    }
5294
 
5295
    public _Fields fieldForId(int fieldId) {
5296
      return _Fields.findByThriftId(fieldId);
5297
    }
5298
 
5299
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5300
      org.apache.thrift.protocol.TField field;
5301
      iprot.readStructBegin();
5302
      while (true)
5303
      {
5304
        field = iprot.readFieldBegin();
5305
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5306
          break;
5307
        }
5308
        switch (field.id) {
5309
          case 0: // SUCCESS
5310
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5311
              this.success = new LogisticsInfo();
5312
              this.success.read(iprot);
5313
            } else { 
5314
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5315
            }
5316
            break;
5317
          case 1: // SE
5318
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5319
              this.se = new LogisticsServiceException();
5320
              this.se.read(iprot);
5321
            } else { 
5322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5323
            }
5324
            break;
5325
          default:
5326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5327
        }
5328
        iprot.readFieldEnd();
5329
      }
5330
      iprot.readStructEnd();
5331
      validate();
5332
    }
5333
 
5334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5335
      oprot.writeStructBegin(STRUCT_DESC);
5336
 
5337
      if (this.isSetSuccess()) {
5338
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5339
        this.success.write(oprot);
5340
        oprot.writeFieldEnd();
5341
      } else if (this.isSetSe()) {
5342
        oprot.writeFieldBegin(SE_FIELD_DESC);
5343
        this.se.write(oprot);
5344
        oprot.writeFieldEnd();
5345
      }
5346
      oprot.writeFieldStop();
5347
      oprot.writeStructEnd();
5348
    }
5349
 
5350
    @Override
5351
    public String toString() {
5352
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5353
      boolean first = true;
5354
 
5355
      sb.append("success:");
5356
      if (this.success == null) {
5357
        sb.append("null");
5358
      } else {
5359
        sb.append(this.success);
5360
      }
5361
      first = false;
5362
      if (!first) sb.append(", ");
5363
      sb.append("se:");
5364
      if (this.se == null) {
5365
        sb.append("null");
5366
      } else {
5367
        sb.append(this.se);
5368
      }
5369
      first = false;
5370
      sb.append(")");
5371
      return sb.toString();
5372
    }
5373
 
5374
    public void validate() throws org.apache.thrift.TException {
5375
      // check for required fields
5376
    }
5377
 
5378
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5379
      try {
5380
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5381
      } catch (org.apache.thrift.TException te) {
5382
        throw new java.io.IOException(te);
5383
      }
5384
    }
5385
 
5386
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5387
      try {
5388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5389
      } catch (org.apache.thrift.TException te) {
5390
        throw new java.io.IOException(te);
5391
      }
5392
    }
5393
 
5394
  }
5395
 
3430 rajveer 5396
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5398
 
3430 rajveer 5399
    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);
5400
    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);
5401
    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 5402
    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 5403
 
3430 rajveer 5404
    private String destination_pincode; // required
5405
    private long item_id; // required
5406
    private DeliveryType type; // required
5766 rajveer 5407
    private PickUpType pickUp; // required
471 rajveer 5408
 
5409
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5410
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5411
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5412
      ITEM_ID((short)2, "item_id"),
5413
      /**
5414
       * 
5415
       * @see DeliveryType
5416
       */
5766 rajveer 5417
      TYPE((short)3, "type"),
5418
      /**
5419
       * 
5420
       * @see PickUpType
5421
       */
5422
      PICK_UP((short)4, "pickUp");
471 rajveer 5423
 
5424
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5425
 
5426
      static {
5427
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5428
          byName.put(field.getFieldName(), field);
5429
        }
5430
      }
5431
 
5432
      /**
5433
       * Find the _Fields constant that matches fieldId, or null if its not found.
5434
       */
5435
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5436
        switch(fieldId) {
5437
          case 1: // DESTINATION_PINCODE
5438
            return DESTINATION_PINCODE;
5439
          case 2: // ITEM_ID
5440
            return ITEM_ID;
5441
          case 3: // TYPE
5442
            return TYPE;
5766 rajveer 5443
          case 4: // PICK_UP
5444
            return PICK_UP;
3430 rajveer 5445
          default:
5446
            return null;
5447
        }
471 rajveer 5448
      }
5449
 
5450
      /**
5451
       * Find the _Fields constant that matches fieldId, throwing an exception
5452
       * if it is not found.
5453
       */
5454
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5455
        _Fields fields = findByThriftId(fieldId);
5456
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5457
        return fields;
5458
      }
5459
 
5460
      /**
5461
       * Find the _Fields constant that matches name, or null if its not found.
5462
       */
5463
      public static _Fields findByName(String name) {
5464
        return byName.get(name);
5465
      }
5466
 
5467
      private final short _thriftId;
5468
      private final String _fieldName;
5469
 
5470
      _Fields(short thriftId, String fieldName) {
5471
        _thriftId = thriftId;
5472
        _fieldName = fieldName;
5473
      }
5474
 
5475
      public short getThriftFieldId() {
5476
        return _thriftId;
5477
      }
5478
 
5479
      public String getFieldName() {
5480
        return _fieldName;
5481
      }
5482
    }
5483
 
5484
    // isset id assignments
715 rajveer 5485
    private static final int __ITEM_ID_ISSET_ID = 0;
5486
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5487
 
3430 rajveer 5488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5489
    static {
3430 rajveer 5490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5491
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5492
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5493
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5495
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5496
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5497
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5498
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5499
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5500
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5501
    }
5502
 
648 chandransh 5503
    public getLogisticsInfo_args() {
477 rajveer 5504
    }
5505
 
648 chandransh 5506
    public getLogisticsInfo_args(
5507
      String destination_pincode,
3044 chandransh 5508
      long item_id,
5766 rajveer 5509
      DeliveryType type,
5510
      PickUpType pickUp)
477 rajveer 5511
    {
5512
      this();
648 chandransh 5513
      this.destination_pincode = destination_pincode;
5514
      this.item_id = item_id;
715 rajveer 5515
      setItem_idIsSet(true);
3044 chandransh 5516
      this.type = type;
5766 rajveer 5517
      this.pickUp = pickUp;
477 rajveer 5518
    }
5519
 
5520
    /**
5521
     * Performs a deep copy on <i>other</i>.
5522
     */
648 chandransh 5523
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5524
      __isset_bit_vector.clear();
5525
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5526
      if (other.isSetDestination_pincode()) {
5527
        this.destination_pincode = other.destination_pincode;
477 rajveer 5528
      }
715 rajveer 5529
      this.item_id = other.item_id;
3044 chandransh 5530
      if (other.isSetType()) {
5531
        this.type = other.type;
5532
      }
5766 rajveer 5533
      if (other.isSetPickUp()) {
5534
        this.pickUp = other.pickUp;
5535
      }
477 rajveer 5536
    }
5537
 
648 chandransh 5538
    public getLogisticsInfo_args deepCopy() {
5539
      return new getLogisticsInfo_args(this);
477 rajveer 5540
    }
5541
 
3430 rajveer 5542
    @Override
5543
    public void clear() {
5544
      this.destination_pincode = null;
5545
      setItem_idIsSet(false);
5546
      this.item_id = 0;
5547
      this.type = null;
5766 rajveer 5548
      this.pickUp = null;
477 rajveer 5549
    }
5550
 
648 chandransh 5551
    public String getDestination_pincode() {
5552
      return this.destination_pincode;
477 rajveer 5553
    }
5554
 
3430 rajveer 5555
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5556
      this.destination_pincode = destination_pincode;
477 rajveer 5557
    }
5558
 
648 chandransh 5559
    public void unsetDestination_pincode() {
5560
      this.destination_pincode = null;
477 rajveer 5561
    }
5562
 
3430 rajveer 5563
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5564
    public boolean isSetDestination_pincode() {
5565
      return this.destination_pincode != null;
477 rajveer 5566
    }
5567
 
648 chandransh 5568
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5569
      if (!value) {
648 chandransh 5570
        this.destination_pincode = null;
477 rajveer 5571
      }
5572
    }
5573
 
715 rajveer 5574
    public long getItem_id() {
648 chandransh 5575
      return this.item_id;
477 rajveer 5576
    }
5577
 
3430 rajveer 5578
    public void setItem_id(long item_id) {
648 chandransh 5579
      this.item_id = item_id;
715 rajveer 5580
      setItem_idIsSet(true);
477 rajveer 5581
    }
5582
 
648 chandransh 5583
    public void unsetItem_id() {
715 rajveer 5584
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5585
    }
5586
 
3430 rajveer 5587
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5588
    public boolean isSetItem_id() {
715 rajveer 5589
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5590
    }
5591
 
648 chandransh 5592
    public void setItem_idIsSet(boolean value) {
715 rajveer 5593
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5594
    }
5595
 
3044 chandransh 5596
    /**
5597
     * 
5598
     * @see DeliveryType
5599
     */
5600
    public DeliveryType getType() {
5601
      return this.type;
5602
    }
5603
 
5604
    /**
5605
     * 
5606
     * @see DeliveryType
5607
     */
3430 rajveer 5608
    public void setType(DeliveryType type) {
3044 chandransh 5609
      this.type = type;
5610
    }
5611
 
5612
    public void unsetType() {
5613
      this.type = null;
5614
    }
5615
 
3430 rajveer 5616
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5617
    public boolean isSetType() {
5618
      return this.type != null;
5619
    }
5620
 
5621
    public void setTypeIsSet(boolean value) {
5622
      if (!value) {
5623
        this.type = null;
5624
      }
5625
    }
5626
 
5766 rajveer 5627
    /**
5628
     * 
5629
     * @see PickUpType
5630
     */
5631
    public PickUpType getPickUp() {
5632
      return this.pickUp;
5633
    }
5634
 
5635
    /**
5636
     * 
5637
     * @see PickUpType
5638
     */
5639
    public void setPickUp(PickUpType pickUp) {
5640
      this.pickUp = pickUp;
5641
    }
5642
 
5643
    public void unsetPickUp() {
5644
      this.pickUp = null;
5645
    }
5646
 
5647
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5648
    public boolean isSetPickUp() {
5649
      return this.pickUp != null;
5650
    }
5651
 
5652
    public void setPickUpIsSet(boolean value) {
5653
      if (!value) {
5654
        this.pickUp = null;
5655
      }
5656
    }
5657
 
477 rajveer 5658
    public void setFieldValue(_Fields field, Object value) {
5659
      switch (field) {
648 chandransh 5660
      case DESTINATION_PINCODE:
477 rajveer 5661
        if (value == null) {
648 chandransh 5662
          unsetDestination_pincode();
477 rajveer 5663
        } else {
648 chandransh 5664
          setDestination_pincode((String)value);
477 rajveer 5665
        }
5666
        break;
5667
 
648 chandransh 5668
      case ITEM_ID:
477 rajveer 5669
        if (value == null) {
648 chandransh 5670
          unsetItem_id();
477 rajveer 5671
        } else {
715 rajveer 5672
          setItem_id((Long)value);
477 rajveer 5673
        }
5674
        break;
5675
 
3044 chandransh 5676
      case TYPE:
5677
        if (value == null) {
5678
          unsetType();
5679
        } else {
5680
          setType((DeliveryType)value);
5681
        }
5682
        break;
5683
 
5766 rajveer 5684
      case PICK_UP:
5685
        if (value == null) {
5686
          unsetPickUp();
5687
        } else {
5688
          setPickUp((PickUpType)value);
5689
        }
5690
        break;
5691
 
477 rajveer 5692
      }
5693
    }
5694
 
5695
    public Object getFieldValue(_Fields field) {
5696
      switch (field) {
648 chandransh 5697
      case DESTINATION_PINCODE:
5698
        return getDestination_pincode();
477 rajveer 5699
 
648 chandransh 5700
      case ITEM_ID:
3430 rajveer 5701
        return Long.valueOf(getItem_id());
477 rajveer 5702
 
3044 chandransh 5703
      case TYPE:
5704
        return getType();
5705
 
5766 rajveer 5706
      case PICK_UP:
5707
        return getPickUp();
5708
 
477 rajveer 5709
      }
5710
      throw new IllegalStateException();
5711
    }
5712
 
3430 rajveer 5713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5714
    public boolean isSet(_Fields field) {
5715
      if (field == null) {
5716
        throw new IllegalArgumentException();
5717
      }
477 rajveer 5718
 
5719
      switch (field) {
648 chandransh 5720
      case DESTINATION_PINCODE:
5721
        return isSetDestination_pincode();
5722
      case ITEM_ID:
5723
        return isSetItem_id();
3044 chandransh 5724
      case TYPE:
5725
        return isSetType();
5766 rajveer 5726
      case PICK_UP:
5727
        return isSetPickUp();
477 rajveer 5728
      }
5729
      throw new IllegalStateException();
5730
    }
5731
 
5732
    @Override
5733
    public boolean equals(Object that) {
5734
      if (that == null)
5735
        return false;
648 chandransh 5736
      if (that instanceof getLogisticsInfo_args)
5737
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5738
      return false;
5739
    }
5740
 
648 chandransh 5741
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5742
      if (that == null)
5743
        return false;
5744
 
648 chandransh 5745
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5746
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5747
      if (this_present_destination_pincode || that_present_destination_pincode) {
5748
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5749
          return false;
648 chandransh 5750
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5751
          return false;
5752
      }
5753
 
715 rajveer 5754
      boolean this_present_item_id = true;
5755
      boolean that_present_item_id = true;
648 chandransh 5756
      if (this_present_item_id || that_present_item_id) {
5757
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5758
          return false;
715 rajveer 5759
        if (this.item_id != that.item_id)
477 rajveer 5760
          return false;
5761
      }
5762
 
3044 chandransh 5763
      boolean this_present_type = true && this.isSetType();
5764
      boolean that_present_type = true && that.isSetType();
5765
      if (this_present_type || that_present_type) {
5766
        if (!(this_present_type && that_present_type))
5767
          return false;
5768
        if (!this.type.equals(that.type))
5769
          return false;
5770
      }
5771
 
5766 rajveer 5772
      boolean this_present_pickUp = true && this.isSetPickUp();
5773
      boolean that_present_pickUp = true && that.isSetPickUp();
5774
      if (this_present_pickUp || that_present_pickUp) {
5775
        if (!(this_present_pickUp && that_present_pickUp))
5776
          return false;
5777
        if (!this.pickUp.equals(that.pickUp))
5778
          return false;
5779
      }
5780
 
477 rajveer 5781
      return true;
5782
    }
5783
 
5784
    @Override
5785
    public int hashCode() {
5786
      return 0;
5787
    }
5788
 
648 chandransh 5789
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5790
      if (!getClass().equals(other.getClass())) {
5791
        return getClass().getName().compareTo(other.getClass().getName());
5792
      }
5793
 
5794
      int lastComparison = 0;
648 chandransh 5795
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5796
 
3430 rajveer 5797
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5798
      if (lastComparison != 0) {
5799
        return lastComparison;
5800
      }
3430 rajveer 5801
      if (isSetDestination_pincode()) {
5802
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5803
        if (lastComparison != 0) {
5804
          return lastComparison;
5805
        }
477 rajveer 5806
      }
3430 rajveer 5807
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5808
      if (lastComparison != 0) {
5809
        return lastComparison;
5810
      }
3430 rajveer 5811
      if (isSetItem_id()) {
5812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5813
        if (lastComparison != 0) {
5814
          return lastComparison;
5815
        }
477 rajveer 5816
      }
3430 rajveer 5817
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5818
      if (lastComparison != 0) {
5819
        return lastComparison;
5820
      }
3430 rajveer 5821
      if (isSetType()) {
5822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5823
        if (lastComparison != 0) {
5824
          return lastComparison;
5825
        }
3044 chandransh 5826
      }
5766 rajveer 5827
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5828
      if (lastComparison != 0) {
5829
        return lastComparison;
5830
      }
5831
      if (isSetPickUp()) {
5832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5833
        if (lastComparison != 0) {
5834
          return lastComparison;
5835
        }
5836
      }
477 rajveer 5837
      return 0;
5838
    }
5839
 
3430 rajveer 5840
    public _Fields fieldForId(int fieldId) {
5841
      return _Fields.findByThriftId(fieldId);
5842
    }
5843
 
5844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5845
      org.apache.thrift.protocol.TField field;
477 rajveer 5846
      iprot.readStructBegin();
5847
      while (true)
5848
      {
5849
        field = iprot.readFieldBegin();
3430 rajveer 5850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5851
          break;
5852
        }
3430 rajveer 5853
        switch (field.id) {
5854
          case 1: // DESTINATION_PINCODE
5855
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5856
              this.destination_pincode = iprot.readString();
5857
            } else { 
5858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5859
            }
5860
            break;
5861
          case 2: // ITEM_ID
5862
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5863
              this.item_id = iprot.readI64();
5864
              setItem_idIsSet(true);
5865
            } else { 
5866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5867
            }
5868
            break;
5869
          case 3: // TYPE
5870
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5871
              this.type = DeliveryType.findByValue(iprot.readI32());
5872
            } else { 
5873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5874
            }
5875
            break;
5766 rajveer 5876
          case 4: // PICK_UP
5877
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5878
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5879
            } else { 
5880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5881
            }
5882
            break;
3430 rajveer 5883
          default:
5884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5885
        }
3430 rajveer 5886
        iprot.readFieldEnd();
477 rajveer 5887
      }
5888
      iprot.readStructEnd();
5889
      validate();
5890
    }
5891
 
3430 rajveer 5892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5893
      validate();
5894
 
5895
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5896
      if (this.destination_pincode != null) {
5897
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5898
        oprot.writeString(this.destination_pincode);
477 rajveer 5899
        oprot.writeFieldEnd();
5900
      }
715 rajveer 5901
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5902
      oprot.writeI64(this.item_id);
5903
      oprot.writeFieldEnd();
3044 chandransh 5904
      if (this.type != null) {
5905
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5906
        oprot.writeI32(this.type.getValue());
5907
        oprot.writeFieldEnd();
5908
      }
5766 rajveer 5909
      if (this.pickUp != null) {
5910
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5911
        oprot.writeI32(this.pickUp.getValue());
5912
        oprot.writeFieldEnd();
5913
      }
477 rajveer 5914
      oprot.writeFieldStop();
5915
      oprot.writeStructEnd();
5916
    }
5917
 
5918
    @Override
5919
    public String toString() {
648 chandransh 5920
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5921
      boolean first = true;
5922
 
648 chandransh 5923
      sb.append("destination_pincode:");
5924
      if (this.destination_pincode == null) {
477 rajveer 5925
        sb.append("null");
5926
      } else {
648 chandransh 5927
        sb.append(this.destination_pincode);
477 rajveer 5928
      }
5929
      first = false;
5930
      if (!first) sb.append(", ");
648 chandransh 5931
      sb.append("item_id:");
715 rajveer 5932
      sb.append(this.item_id);
477 rajveer 5933
      first = false;
3044 chandransh 5934
      if (!first) sb.append(", ");
5935
      sb.append("type:");
5936
      if (this.type == null) {
5937
        sb.append("null");
5938
      } else {
5939
        sb.append(this.type);
5940
      }
5941
      first = false;
5766 rajveer 5942
      if (!first) sb.append(", ");
5943
      sb.append("pickUp:");
5944
      if (this.pickUp == null) {
5945
        sb.append("null");
5946
      } else {
5947
        sb.append(this.pickUp);
5948
      }
5949
      first = false;
477 rajveer 5950
      sb.append(")");
5951
      return sb.toString();
5952
    }
5953
 
3430 rajveer 5954
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5955
      // check for required fields
5956
    }
5957
 
3430 rajveer 5958
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5959
      try {
5960
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5961
      } catch (org.apache.thrift.TException te) {
5962
        throw new java.io.IOException(te);
5963
      }
5964
    }
5965
 
5966
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5967
      try {
5968
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5969
      } catch (org.apache.thrift.TException te) {
5970
        throw new java.io.IOException(te);
5971
      }
5972
    }
5973
 
477 rajveer 5974
  }
5975
 
3430 rajveer 5976
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5977
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5978
 
3430 rajveer 5979
    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);
5980
    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 5981
 
3430 rajveer 5982
    private LogisticsInfo success; // required
5983
    private LogisticsServiceException se; // required
477 rajveer 5984
 
5985
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5986
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5987
      SUCCESS((short)0, "success"),
5988
      SE((short)1, "se");
477 rajveer 5989
 
5990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5991
 
5992
      static {
5993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5994
          byName.put(field.getFieldName(), field);
5995
        }
5996
      }
5997
 
5998
      /**
5999
       * Find the _Fields constant that matches fieldId, or null if its not found.
6000
       */
6001
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6002
        switch(fieldId) {
6003
          case 0: // SUCCESS
6004
            return SUCCESS;
6005
          case 1: // SE
6006
            return SE;
6007
          default:
6008
            return null;
6009
        }
477 rajveer 6010
      }
6011
 
6012
      /**
6013
       * Find the _Fields constant that matches fieldId, throwing an exception
6014
       * if it is not found.
6015
       */
6016
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6017
        _Fields fields = findByThriftId(fieldId);
6018
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6019
        return fields;
6020
      }
6021
 
6022
      /**
6023
       * Find the _Fields constant that matches name, or null if its not found.
6024
       */
6025
      public static _Fields findByName(String name) {
6026
        return byName.get(name);
6027
      }
6028
 
6029
      private final short _thriftId;
6030
      private final String _fieldName;
6031
 
6032
      _Fields(short thriftId, String fieldName) {
6033
        _thriftId = thriftId;
6034
        _fieldName = fieldName;
6035
      }
6036
 
6037
      public short getThriftFieldId() {
6038
        return _thriftId;
6039
      }
6040
 
6041
      public String getFieldName() {
6042
        return _fieldName;
6043
      }
6044
    }
6045
 
412 ashish 6046
    // isset id assignments
6047
 
3430 rajveer 6048
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6049
    static {
3430 rajveer 6050
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6051
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6052
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
6053
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6054
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6055
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6056
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 6057
    }
6058
 
648 chandransh 6059
    public getLogisticsInfo_result() {
412 ashish 6060
    }
6061
 
648 chandransh 6062
    public getLogisticsInfo_result(
6063
      LogisticsInfo success,
6064
      LogisticsServiceException se)
412 ashish 6065
    {
6066
      this();
648 chandransh 6067
      this.success = success;
6068
      this.se = se;
412 ashish 6069
    }
6070
 
6071
    /**
6072
     * Performs a deep copy on <i>other</i>.
6073
     */
648 chandransh 6074
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
6075
      if (other.isSetSuccess()) {
6076
        this.success = new LogisticsInfo(other.success);
412 ashish 6077
      }
648 chandransh 6078
      if (other.isSetSe()) {
6079
        this.se = new LogisticsServiceException(other.se);
6080
      }
412 ashish 6081
    }
6082
 
648 chandransh 6083
    public getLogisticsInfo_result deepCopy() {
6084
      return new getLogisticsInfo_result(this);
412 ashish 6085
    }
6086
 
3430 rajveer 6087
    @Override
6088
    public void clear() {
6089
      this.success = null;
6090
      this.se = null;
412 ashish 6091
    }
6092
 
648 chandransh 6093
    public LogisticsInfo getSuccess() {
6094
      return this.success;
412 ashish 6095
    }
6096
 
3430 rajveer 6097
    public void setSuccess(LogisticsInfo success) {
648 chandransh 6098
      this.success = success;
412 ashish 6099
    }
6100
 
648 chandransh 6101
    public void unsetSuccess() {
6102
      this.success = null;
412 ashish 6103
    }
6104
 
3430 rajveer 6105
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6106
    public boolean isSetSuccess() {
6107
      return this.success != null;
412 ashish 6108
    }
6109
 
648 chandransh 6110
    public void setSuccessIsSet(boolean value) {
412 ashish 6111
      if (!value) {
648 chandransh 6112
        this.success = null;
412 ashish 6113
      }
6114
    }
6115
 
648 chandransh 6116
    public LogisticsServiceException getSe() {
6117
      return this.se;
412 ashish 6118
    }
6119
 
3430 rajveer 6120
    public void setSe(LogisticsServiceException se) {
648 chandransh 6121
      this.se = se;
412 ashish 6122
    }
6123
 
648 chandransh 6124
    public void unsetSe() {
6125
      this.se = null;
412 ashish 6126
    }
6127
 
3430 rajveer 6128
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6129
    public boolean isSetSe() {
6130
      return this.se != null;
412 ashish 6131
    }
6132
 
648 chandransh 6133
    public void setSeIsSet(boolean value) {
6134
      if (!value) {
6135
        this.se = null;
6136
      }
412 ashish 6137
    }
6138
 
6139
    public void setFieldValue(_Fields field, Object value) {
6140
      switch (field) {
648 chandransh 6141
      case SUCCESS:
412 ashish 6142
        if (value == null) {
648 chandransh 6143
          unsetSuccess();
412 ashish 6144
        } else {
648 chandransh 6145
          setSuccess((LogisticsInfo)value);
412 ashish 6146
        }
6147
        break;
6148
 
648 chandransh 6149
      case SE:
412 ashish 6150
        if (value == null) {
648 chandransh 6151
          unsetSe();
412 ashish 6152
        } else {
648 chandransh 6153
          setSe((LogisticsServiceException)value);
412 ashish 6154
        }
6155
        break;
6156
 
6157
      }
6158
    }
6159
 
6160
    public Object getFieldValue(_Fields field) {
6161
      switch (field) {
648 chandransh 6162
      case SUCCESS:
6163
        return getSuccess();
412 ashish 6164
 
648 chandransh 6165
      case SE:
6166
        return getSe();
412 ashish 6167
 
6168
      }
6169
      throw new IllegalStateException();
6170
    }
6171
 
3430 rajveer 6172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6173
    public boolean isSet(_Fields field) {
6174
      if (field == null) {
6175
        throw new IllegalArgumentException();
6176
      }
412 ashish 6177
 
6178
      switch (field) {
648 chandransh 6179
      case SUCCESS:
6180
        return isSetSuccess();
6181
      case SE:
6182
        return isSetSe();
412 ashish 6183
      }
6184
      throw new IllegalStateException();
6185
    }
6186
 
6187
    @Override
6188
    public boolean equals(Object that) {
6189
      if (that == null)
6190
        return false;
648 chandransh 6191
      if (that instanceof getLogisticsInfo_result)
6192
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6193
      return false;
6194
    }
6195
 
648 chandransh 6196
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6197
      if (that == null)
6198
        return false;
6199
 
648 chandransh 6200
      boolean this_present_success = true && this.isSetSuccess();
6201
      boolean that_present_success = true && that.isSetSuccess();
6202
      if (this_present_success || that_present_success) {
6203
        if (!(this_present_success && that_present_success))
412 ashish 6204
          return false;
648 chandransh 6205
        if (!this.success.equals(that.success))
412 ashish 6206
          return false;
6207
      }
6208
 
648 chandransh 6209
      boolean this_present_se = true && this.isSetSe();
6210
      boolean that_present_se = true && that.isSetSe();
6211
      if (this_present_se || that_present_se) {
6212
        if (!(this_present_se && that_present_se))
412 ashish 6213
          return false;
648 chandransh 6214
        if (!this.se.equals(that.se))
412 ashish 6215
          return false;
6216
      }
6217
 
6218
      return true;
6219
    }
6220
 
6221
    @Override
6222
    public int hashCode() {
6223
      return 0;
6224
    }
6225
 
648 chandransh 6226
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6227
      if (!getClass().equals(other.getClass())) {
6228
        return getClass().getName().compareTo(other.getClass().getName());
6229
      }
6230
 
6231
      int lastComparison = 0;
648 chandransh 6232
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6233
 
3430 rajveer 6234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6235
      if (lastComparison != 0) {
6236
        return lastComparison;
6237
      }
3430 rajveer 6238
      if (isSetSuccess()) {
6239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6240
        if (lastComparison != 0) {
6241
          return lastComparison;
6242
        }
412 ashish 6243
      }
3430 rajveer 6244
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6245
      if (lastComparison != 0) {
6246
        return lastComparison;
6247
      }
3430 rajveer 6248
      if (isSetSe()) {
6249
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6250
        if (lastComparison != 0) {
6251
          return lastComparison;
6252
        }
412 ashish 6253
      }
6254
      return 0;
6255
    }
6256
 
3430 rajveer 6257
    public _Fields fieldForId(int fieldId) {
6258
      return _Fields.findByThriftId(fieldId);
6259
    }
6260
 
6261
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6262
      org.apache.thrift.protocol.TField field;
412 ashish 6263
      iprot.readStructBegin();
6264
      while (true)
6265
      {
6266
        field = iprot.readFieldBegin();
3430 rajveer 6267
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6268
          break;
6269
        }
3430 rajveer 6270
        switch (field.id) {
6271
          case 0: // SUCCESS
6272
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6273
              this.success = new LogisticsInfo();
6274
              this.success.read(iprot);
6275
            } else { 
6276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6277
            }
6278
            break;
6279
          case 1: // SE
6280
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6281
              this.se = new LogisticsServiceException();
6282
              this.se.read(iprot);
6283
            } else { 
6284
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6285
            }
6286
            break;
6287
          default:
6288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6289
        }
3430 rajveer 6290
        iprot.readFieldEnd();
412 ashish 6291
      }
6292
      iprot.readStructEnd();
6293
      validate();
6294
    }
6295
 
3430 rajveer 6296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6297
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6298
 
648 chandransh 6299
      if (this.isSetSuccess()) {
6300
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6301
        this.success.write(oprot);
412 ashish 6302
        oprot.writeFieldEnd();
648 chandransh 6303
      } else if (this.isSetSe()) {
6304
        oprot.writeFieldBegin(SE_FIELD_DESC);
6305
        this.se.write(oprot);
6306
        oprot.writeFieldEnd();
412 ashish 6307
      }
6308
      oprot.writeFieldStop();
6309
      oprot.writeStructEnd();
6310
    }
6311
 
6312
    @Override
6313
    public String toString() {
648 chandransh 6314
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6315
      boolean first = true;
6316
 
648 chandransh 6317
      sb.append("success:");
6318
      if (this.success == null) {
412 ashish 6319
        sb.append("null");
6320
      } else {
648 chandransh 6321
        sb.append(this.success);
412 ashish 6322
      }
6323
      first = false;
6324
      if (!first) sb.append(", ");
648 chandransh 6325
      sb.append("se:");
6326
      if (this.se == null) {
6327
        sb.append("null");
6328
      } else {
6329
        sb.append(this.se);
6330
      }
412 ashish 6331
      first = false;
6332
      sb.append(")");
6333
      return sb.toString();
6334
    }
6335
 
3430 rajveer 6336
    public void validate() throws org.apache.thrift.TException {
412 ashish 6337
      // check for required fields
6338
    }
6339
 
3430 rajveer 6340
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6341
      try {
6342
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6343
      } catch (org.apache.thrift.TException te) {
6344
        throw new java.io.IOException(te);
6345
      }
6346
    }
6347
 
6348
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6349
      try {
6350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6351
      } catch (org.apache.thrift.TException te) {
6352
        throw new java.io.IOException(te);
6353
      }
6354
    }
6355
 
412 ashish 6356
  }
6357
 
3430 rajveer 6358
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6360
 
3430 rajveer 6361
    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 6362
    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 6363
 
3430 rajveer 6364
    private long providerId; // required
5247 rajveer 6365
    private DeliveryType type; // required
412 ashish 6366
 
6367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6369
      PROVIDER_ID((short)1, "providerId"),
6370
      /**
6371
       * 
6372
       * @see DeliveryType
6373
       */
6374
      TYPE((short)-1, "type");
412 ashish 6375
 
6376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6377
 
6378
      static {
6379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6380
          byName.put(field.getFieldName(), field);
6381
        }
6382
      }
6383
 
6384
      /**
6385
       * Find the _Fields constant that matches fieldId, or null if its not found.
6386
       */
6387
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6388
        switch(fieldId) {
6389
          case 1: // PROVIDER_ID
6390
            return PROVIDER_ID;
5247 rajveer 6391
          case -1: // TYPE
6392
            return TYPE;
3430 rajveer 6393
          default:
6394
            return null;
6395
        }
412 ashish 6396
      }
6397
 
6398
      /**
6399
       * Find the _Fields constant that matches fieldId, throwing an exception
6400
       * if it is not found.
6401
       */
6402
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6403
        _Fields fields = findByThriftId(fieldId);
6404
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6405
        return fields;
6406
      }
6407
 
6408
      /**
6409
       * Find the _Fields constant that matches name, or null if its not found.
6410
       */
6411
      public static _Fields findByName(String name) {
6412
        return byName.get(name);
6413
      }
6414
 
6415
      private final short _thriftId;
6416
      private final String _fieldName;
6417
 
6418
      _Fields(short thriftId, String fieldName) {
6419
        _thriftId = thriftId;
6420
        _fieldName = fieldName;
6421
      }
6422
 
6423
      public short getThriftFieldId() {
6424
        return _thriftId;
6425
      }
6426
 
6427
      public String getFieldName() {
6428
        return _fieldName;
6429
      }
6430
    }
6431
 
6432
    // isset id assignments
648 chandransh 6433
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6434
    private BitSet __isset_bit_vector = new BitSet(1);
6435
 
3430 rajveer 6436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6437
    static {
3430 rajveer 6438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6439
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 6441
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6442
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 6443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6445
    }
6446
 
6447
    public getEmptyAWB_args() {
6448
    }
6449
 
6450
    public getEmptyAWB_args(
5247 rajveer 6451
      long providerId,
6452
      DeliveryType type)
412 ashish 6453
    {
6454
      this();
648 chandransh 6455
      this.providerId = providerId;
6456
      setProviderIdIsSet(true);
5247 rajveer 6457
      this.type = type;
412 ashish 6458
    }
6459
 
6460
    /**
6461
     * Performs a deep copy on <i>other</i>.
6462
     */
6463
    public getEmptyAWB_args(getEmptyAWB_args other) {
6464
      __isset_bit_vector.clear();
6465
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6466
      this.providerId = other.providerId;
5247 rajveer 6467
      if (other.isSetType()) {
6468
        this.type = other.type;
6469
      }
412 ashish 6470
    }
6471
 
6472
    public getEmptyAWB_args deepCopy() {
6473
      return new getEmptyAWB_args(this);
6474
    }
6475
 
3430 rajveer 6476
    @Override
6477
    public void clear() {
6478
      setProviderIdIsSet(false);
6479
      this.providerId = 0;
5247 rajveer 6480
      this.type = null;
412 ashish 6481
    }
6482
 
648 chandransh 6483
    public long getProviderId() {
6484
      return this.providerId;
412 ashish 6485
    }
6486
 
3430 rajveer 6487
    public void setProviderId(long providerId) {
648 chandransh 6488
      this.providerId = providerId;
6489
      setProviderIdIsSet(true);
412 ashish 6490
    }
6491
 
648 chandransh 6492
    public void unsetProviderId() {
6493
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6494
    }
6495
 
3430 rajveer 6496
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6497
    public boolean isSetProviderId() {
6498
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6499
    }
6500
 
648 chandransh 6501
    public void setProviderIdIsSet(boolean value) {
6502
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6503
    }
6504
 
5247 rajveer 6505
    /**
6506
     * 
6507
     * @see DeliveryType
6508
     */
6509
    public DeliveryType getType() {
6510
      return this.type;
6511
    }
6512
 
6513
    /**
6514
     * 
6515
     * @see DeliveryType
6516
     */
6517
    public void setType(DeliveryType type) {
6518
      this.type = type;
6519
    }
6520
 
6521
    public void unsetType() {
6522
      this.type = null;
6523
    }
6524
 
6525
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6526
    public boolean isSetType() {
6527
      return this.type != null;
6528
    }
6529
 
6530
    public void setTypeIsSet(boolean value) {
6531
      if (!value) {
6532
        this.type = null;
6533
      }
6534
    }
6535
 
412 ashish 6536
    public void setFieldValue(_Fields field, Object value) {
6537
      switch (field) {
6538
      case PROVIDER_ID:
6539
        if (value == null) {
648 chandransh 6540
          unsetProviderId();
412 ashish 6541
        } else {
648 chandransh 6542
          setProviderId((Long)value);
412 ashish 6543
        }
6544
        break;
6545
 
5247 rajveer 6546
      case TYPE:
6547
        if (value == null) {
6548
          unsetType();
6549
        } else {
6550
          setType((DeliveryType)value);
6551
        }
6552
        break;
6553
 
412 ashish 6554
      }
6555
    }
6556
 
6557
    public Object getFieldValue(_Fields field) {
6558
      switch (field) {
6559
      case PROVIDER_ID:
3430 rajveer 6560
        return Long.valueOf(getProviderId());
412 ashish 6561
 
5247 rajveer 6562
      case TYPE:
6563
        return getType();
6564
 
412 ashish 6565
      }
6566
      throw new IllegalStateException();
6567
    }
6568
 
3430 rajveer 6569
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6570
    public boolean isSet(_Fields field) {
6571
      if (field == null) {
6572
        throw new IllegalArgumentException();
6573
      }
412 ashish 6574
 
6575
      switch (field) {
6576
      case PROVIDER_ID:
648 chandransh 6577
        return isSetProviderId();
5247 rajveer 6578
      case TYPE:
6579
        return isSetType();
412 ashish 6580
      }
6581
      throw new IllegalStateException();
6582
    }
6583
 
6584
    @Override
6585
    public boolean equals(Object that) {
6586
      if (that == null)
6587
        return false;
6588
      if (that instanceof getEmptyAWB_args)
6589
        return this.equals((getEmptyAWB_args)that);
6590
      return false;
6591
    }
6592
 
6593
    public boolean equals(getEmptyAWB_args that) {
6594
      if (that == null)
6595
        return false;
6596
 
648 chandransh 6597
      boolean this_present_providerId = true;
6598
      boolean that_present_providerId = true;
6599
      if (this_present_providerId || that_present_providerId) {
6600
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6601
          return false;
648 chandransh 6602
        if (this.providerId != that.providerId)
412 ashish 6603
          return false;
6604
      }
6605
 
5247 rajveer 6606
      boolean this_present_type = true && this.isSetType();
6607
      boolean that_present_type = true && that.isSetType();
6608
      if (this_present_type || that_present_type) {
6609
        if (!(this_present_type && that_present_type))
6610
          return false;
6611
        if (!this.type.equals(that.type))
6612
          return false;
6613
      }
6614
 
412 ashish 6615
      return true;
6616
    }
6617
 
6618
    @Override
6619
    public int hashCode() {
6620
      return 0;
6621
    }
6622
 
6623
    public int compareTo(getEmptyAWB_args other) {
6624
      if (!getClass().equals(other.getClass())) {
6625
        return getClass().getName().compareTo(other.getClass().getName());
6626
      }
6627
 
6628
      int lastComparison = 0;
6629
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6630
 
3430 rajveer 6631
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6632
      if (lastComparison != 0) {
6633
        return lastComparison;
6634
      }
3430 rajveer 6635
      if (isSetProviderId()) {
6636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6637
        if (lastComparison != 0) {
6638
          return lastComparison;
6639
        }
412 ashish 6640
      }
5247 rajveer 6641
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6642
      if (lastComparison != 0) {
6643
        return lastComparison;
6644
      }
6645
      if (isSetType()) {
6646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6647
        if (lastComparison != 0) {
6648
          return lastComparison;
6649
        }
6650
      }
412 ashish 6651
      return 0;
6652
    }
6653
 
3430 rajveer 6654
    public _Fields fieldForId(int fieldId) {
6655
      return _Fields.findByThriftId(fieldId);
6656
    }
6657
 
6658
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6659
      org.apache.thrift.protocol.TField field;
412 ashish 6660
      iprot.readStructBegin();
6661
      while (true)
6662
      {
6663
        field = iprot.readFieldBegin();
3430 rajveer 6664
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6665
          break;
6666
        }
3430 rajveer 6667
        switch (field.id) {
6668
          case 1: // PROVIDER_ID
6669
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6670
              this.providerId = iprot.readI64();
6671
              setProviderIdIsSet(true);
6672
            } else { 
6673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6674
            }
6675
            break;
5247 rajveer 6676
          case -1: // TYPE
6677
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6678
              this.type = DeliveryType.findByValue(iprot.readI32());
6679
            } else { 
6680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6681
            }
6682
            break;
3430 rajveer 6683
          default:
6684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6685
        }
3430 rajveer 6686
        iprot.readFieldEnd();
412 ashish 6687
      }
6688
      iprot.readStructEnd();
6689
      validate();
6690
    }
6691
 
3430 rajveer 6692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6693
      validate();
6694
 
6695
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6696
      if (this.type != null) {
6697
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6698
        oprot.writeI32(this.type.getValue());
6699
        oprot.writeFieldEnd();
6700
      }
412 ashish 6701
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6702
      oprot.writeI64(this.providerId);
412 ashish 6703
      oprot.writeFieldEnd();
6704
      oprot.writeFieldStop();
6705
      oprot.writeStructEnd();
6706
    }
6707
 
6708
    @Override
6709
    public String toString() {
6710
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6711
      boolean first = true;
6712
 
648 chandransh 6713
      sb.append("providerId:");
6714
      sb.append(this.providerId);
412 ashish 6715
      first = false;
5247 rajveer 6716
      if (!first) sb.append(", ");
6717
      sb.append("type:");
6718
      if (this.type == null) {
6719
        sb.append("null");
6720
      } else {
6721
        sb.append(this.type);
6722
      }
6723
      first = false;
412 ashish 6724
      sb.append(")");
6725
      return sb.toString();
6726
    }
6727
 
3430 rajveer 6728
    public void validate() throws org.apache.thrift.TException {
412 ashish 6729
      // check for required fields
6730
    }
6731
 
3430 rajveer 6732
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6733
      try {
6734
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6735
      } catch (org.apache.thrift.TException te) {
6736
        throw new java.io.IOException(te);
6737
      }
6738
    }
6739
 
6740
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6741
      try {
6742
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6743
        __isset_bit_vector = new BitSet(1);
6744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6745
      } catch (org.apache.thrift.TException te) {
6746
        throw new java.io.IOException(te);
6747
      }
6748
    }
6749
 
412 ashish 6750
  }
6751
 
3430 rajveer 6752
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6754
 
3430 rajveer 6755
    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);
6756
    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 6757
 
3430 rajveer 6758
    private String success; // required
6759
    private LogisticsServiceException se; // required
412 ashish 6760
 
6761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6763
      SUCCESS((short)0, "success"),
6764
      SE((short)1, "se");
412 ashish 6765
 
6766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6767
 
6768
      static {
6769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6770
          byName.put(field.getFieldName(), field);
6771
        }
6772
      }
6773
 
6774
      /**
6775
       * Find the _Fields constant that matches fieldId, or null if its not found.
6776
       */
6777
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6778
        switch(fieldId) {
6779
          case 0: // SUCCESS
6780
            return SUCCESS;
6781
          case 1: // SE
6782
            return SE;
6783
          default:
6784
            return null;
6785
        }
412 ashish 6786
      }
6787
 
6788
      /**
6789
       * Find the _Fields constant that matches fieldId, throwing an exception
6790
       * if it is not found.
6791
       */
6792
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6793
        _Fields fields = findByThriftId(fieldId);
6794
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6795
        return fields;
6796
      }
6797
 
6798
      /**
6799
       * Find the _Fields constant that matches name, or null if its not found.
6800
       */
6801
      public static _Fields findByName(String name) {
6802
        return byName.get(name);
6803
      }
6804
 
6805
      private final short _thriftId;
6806
      private final String _fieldName;
6807
 
6808
      _Fields(short thriftId, String fieldName) {
6809
        _thriftId = thriftId;
6810
        _fieldName = fieldName;
6811
      }
6812
 
6813
      public short getThriftFieldId() {
6814
        return _thriftId;
6815
      }
6816
 
6817
      public String getFieldName() {
6818
        return _fieldName;
6819
      }
6820
    }
6821
 
6822
    // isset id assignments
6823
 
3430 rajveer 6824
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6825
    static {
3430 rajveer 6826
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6827
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6829
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6831
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6832
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6833
    }
6834
 
6835
    public getEmptyAWB_result() {
6836
    }
6837
 
6838
    public getEmptyAWB_result(
648 chandransh 6839
      String success,
6840
      LogisticsServiceException se)
412 ashish 6841
    {
6842
      this();
6843
      this.success = success;
648 chandransh 6844
      this.se = se;
412 ashish 6845
    }
6846
 
6847
    /**
6848
     * Performs a deep copy on <i>other</i>.
6849
     */
6850
    public getEmptyAWB_result(getEmptyAWB_result other) {
6851
      if (other.isSetSuccess()) {
6852
        this.success = other.success;
6853
      }
648 chandransh 6854
      if (other.isSetSe()) {
6855
        this.se = new LogisticsServiceException(other.se);
6856
      }
412 ashish 6857
    }
6858
 
6859
    public getEmptyAWB_result deepCopy() {
6860
      return new getEmptyAWB_result(this);
6861
    }
6862
 
3430 rajveer 6863
    @Override
6864
    public void clear() {
6865
      this.success = null;
6866
      this.se = null;
412 ashish 6867
    }
6868
 
6869
    public String getSuccess() {
6870
      return this.success;
6871
    }
6872
 
3430 rajveer 6873
    public void setSuccess(String success) {
412 ashish 6874
      this.success = success;
6875
    }
6876
 
6877
    public void unsetSuccess() {
6878
      this.success = null;
6879
    }
6880
 
3430 rajveer 6881
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6882
    public boolean isSetSuccess() {
6883
      return this.success != null;
6884
    }
6885
 
6886
    public void setSuccessIsSet(boolean value) {
6887
      if (!value) {
6888
        this.success = null;
6889
      }
6890
    }
6891
 
648 chandransh 6892
    public LogisticsServiceException getSe() {
6893
      return this.se;
412 ashish 6894
    }
6895
 
3430 rajveer 6896
    public void setSe(LogisticsServiceException se) {
648 chandransh 6897
      this.se = se;
412 ashish 6898
    }
6899
 
648 chandransh 6900
    public void unsetSe() {
6901
      this.se = null;
412 ashish 6902
    }
6903
 
3430 rajveer 6904
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6905
    public boolean isSetSe() {
6906
      return this.se != null;
412 ashish 6907
    }
6908
 
648 chandransh 6909
    public void setSeIsSet(boolean value) {
412 ashish 6910
      if (!value) {
648 chandransh 6911
        this.se = null;
412 ashish 6912
      }
6913
    }
6914
 
6915
    public void setFieldValue(_Fields field, Object value) {
6916
      switch (field) {
6917
      case SUCCESS:
6918
        if (value == null) {
6919
          unsetSuccess();
6920
        } else {
648 chandransh 6921
          setSuccess((String)value);
412 ashish 6922
        }
6923
        break;
6924
 
648 chandransh 6925
      case SE:
6926
        if (value == null) {
6927
          unsetSe();
6928
        } else {
6929
          setSe((LogisticsServiceException)value);
6930
        }
6931
        break;
6932
 
412 ashish 6933
      }
6934
    }
6935
 
6936
    public Object getFieldValue(_Fields field) {
6937
      switch (field) {
6938
      case SUCCESS:
6939
        return getSuccess();
6940
 
648 chandransh 6941
      case SE:
6942
        return getSe();
6943
 
412 ashish 6944
      }
6945
      throw new IllegalStateException();
6946
    }
6947
 
3430 rajveer 6948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6949
    public boolean isSet(_Fields field) {
6950
      if (field == null) {
6951
        throw new IllegalArgumentException();
6952
      }
412 ashish 6953
 
6954
      switch (field) {
6955
      case SUCCESS:
6956
        return isSetSuccess();
648 chandransh 6957
      case SE:
6958
        return isSetSe();
412 ashish 6959
      }
6960
      throw new IllegalStateException();
6961
    }
6962
 
6963
    @Override
6964
    public boolean equals(Object that) {
6965
      if (that == null)
6966
        return false;
648 chandransh 6967
      if (that instanceof getEmptyAWB_result)
6968
        return this.equals((getEmptyAWB_result)that);
412 ashish 6969
      return false;
6970
    }
6971
 
648 chandransh 6972
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6973
      if (that == null)
6974
        return false;
6975
 
6976
      boolean this_present_success = true && this.isSetSuccess();
6977
      boolean that_present_success = true && that.isSetSuccess();
6978
      if (this_present_success || that_present_success) {
6979
        if (!(this_present_success && that_present_success))
6980
          return false;
6981
        if (!this.success.equals(that.success))
6982
          return false;
6983
      }
6984
 
648 chandransh 6985
      boolean this_present_se = true && this.isSetSe();
6986
      boolean that_present_se = true && that.isSetSe();
6987
      if (this_present_se || that_present_se) {
6988
        if (!(this_present_se && that_present_se))
6989
          return false;
6990
        if (!this.se.equals(that.se))
6991
          return false;
6992
      }
6993
 
412 ashish 6994
      return true;
6995
    }
6996
 
6997
    @Override
6998
    public int hashCode() {
6999
      return 0;
7000
    }
7001
 
648 chandransh 7002
    public int compareTo(getEmptyAWB_result other) {
412 ashish 7003
      if (!getClass().equals(other.getClass())) {
7004
        return getClass().getName().compareTo(other.getClass().getName());
7005
      }
7006
 
7007
      int lastComparison = 0;
648 chandransh 7008
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 7009
 
3430 rajveer 7010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7011
      if (lastComparison != 0) {
7012
        return lastComparison;
7013
      }
3430 rajveer 7014
      if (isSetSuccess()) {
7015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7016
        if (lastComparison != 0) {
7017
          return lastComparison;
7018
        }
412 ashish 7019
      }
3430 rajveer 7020
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7021
      if (lastComparison != 0) {
7022
        return lastComparison;
7023
      }
3430 rajveer 7024
      if (isSetSe()) {
7025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7026
        if (lastComparison != 0) {
7027
          return lastComparison;
7028
        }
412 ashish 7029
      }
7030
      return 0;
7031
    }
7032
 
3430 rajveer 7033
    public _Fields fieldForId(int fieldId) {
7034
      return _Fields.findByThriftId(fieldId);
7035
    }
7036
 
7037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7038
      org.apache.thrift.protocol.TField field;
412 ashish 7039
      iprot.readStructBegin();
7040
      while (true)
7041
      {
7042
        field = iprot.readFieldBegin();
3430 rajveer 7043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7044
          break;
7045
        }
3430 rajveer 7046
        switch (field.id) {
7047
          case 0: // SUCCESS
7048
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7049
              this.success = iprot.readString();
7050
            } else { 
7051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7052
            }
7053
            break;
7054
          case 1: // SE
7055
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7056
              this.se = new LogisticsServiceException();
7057
              this.se.read(iprot);
7058
            } else { 
7059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7060
            }
7061
            break;
7062
          default:
7063
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7064
        }
3430 rajveer 7065
        iprot.readFieldEnd();
412 ashish 7066
      }
7067
      iprot.readStructEnd();
7068
      validate();
7069
    }
7070
 
3430 rajveer 7071
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7072
      oprot.writeStructBegin(STRUCT_DESC);
7073
 
7074
      if (this.isSetSuccess()) {
7075
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 7076
        oprot.writeString(this.success);
412 ashish 7077
        oprot.writeFieldEnd();
648 chandransh 7078
      } else if (this.isSetSe()) {
7079
        oprot.writeFieldBegin(SE_FIELD_DESC);
7080
        this.se.write(oprot);
7081
        oprot.writeFieldEnd();
412 ashish 7082
      }
7083
      oprot.writeFieldStop();
7084
      oprot.writeStructEnd();
7085
    }
7086
 
7087
    @Override
7088
    public String toString() {
648 chandransh 7089
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 7090
      boolean first = true;
7091
 
7092
      sb.append("success:");
7093
      if (this.success == null) {
7094
        sb.append("null");
7095
      } else {
7096
        sb.append(this.success);
7097
      }
7098
      first = false;
648 chandransh 7099
      if (!first) sb.append(", ");
7100
      sb.append("se:");
7101
      if (this.se == null) {
442 rajveer 7102
        sb.append("null");
7103
      } else {
648 chandransh 7104
        sb.append(this.se);
442 rajveer 7105
      }
7106
      first = false;
7107
      sb.append(")");
7108
      return sb.toString();
7109
    }
7110
 
3430 rajveer 7111
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7112
      // check for required fields
7113
    }
7114
 
3430 rajveer 7115
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7116
      try {
7117
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7118
      } catch (org.apache.thrift.TException te) {
7119
        throw new java.io.IOException(te);
7120
      }
7121
    }
7122
 
7123
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7124
      try {
7125
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7126
      } catch (org.apache.thrift.TException te) {
7127
        throw new java.io.IOException(te);
7128
      }
7129
    }
7130
 
442 rajveer 7131
  }
7132
 
3430 rajveer 7133
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7134
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7135
 
6643 rajveer 7136
    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 7137
    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 7138
 
6643 rajveer 7139
    private String awbNumber; // required
3430 rajveer 7140
    private long providerId; // required
442 rajveer 7141
 
7142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7143
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7144
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7145
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7146
 
7147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7148
 
7149
      static {
7150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7151
          byName.put(field.getFieldName(), field);
7152
        }
7153
      }
7154
 
7155
      /**
7156
       * Find the _Fields constant that matches fieldId, or null if its not found.
7157
       */
7158
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7159
        switch(fieldId) {
6643 rajveer 7160
          case 1: // AWB_NUMBER
7161
            return AWB_NUMBER;
3430 rajveer 7162
          case 2: // PROVIDER_ID
7163
            return PROVIDER_ID;
7164
          default:
7165
            return null;
7166
        }
442 rajveer 7167
      }
7168
 
7169
      /**
7170
       * Find the _Fields constant that matches fieldId, throwing an exception
7171
       * if it is not found.
7172
       */
7173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7174
        _Fields fields = findByThriftId(fieldId);
7175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7176
        return fields;
7177
      }
7178
 
7179
      /**
7180
       * Find the _Fields constant that matches name, or null if its not found.
7181
       */
7182
      public static _Fields findByName(String name) {
7183
        return byName.get(name);
7184
      }
7185
 
7186
      private final short _thriftId;
7187
      private final String _fieldName;
7188
 
7189
      _Fields(short thriftId, String fieldName) {
7190
        _thriftId = thriftId;
7191
        _fieldName = fieldName;
7192
      }
7193
 
7194
      public short getThriftFieldId() {
7195
        return _thriftId;
7196
      }
7197
 
7198
      public String getFieldName() {
7199
        return _fieldName;
7200
      }
7201
    }
7202
 
7203
    // isset id assignments
648 chandransh 7204
    private static final int __PROVIDERID_ISSET_ID = 0;
7205
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7206
 
3430 rajveer 7207
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7208
    static {
3430 rajveer 7209
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7210
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7211
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7212
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7213
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7214
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7215
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7216
    }
7217
 
648 chandransh 7218
    public getShipmentInfo_args() {
442 rajveer 7219
    }
7220
 
648 chandransh 7221
    public getShipmentInfo_args(
6643 rajveer 7222
      String awbNumber,
648 chandransh 7223
      long providerId)
442 rajveer 7224
    {
7225
      this();
6643 rajveer 7226
      this.awbNumber = awbNumber;
648 chandransh 7227
      this.providerId = providerId;
7228
      setProviderIdIsSet(true);
442 rajveer 7229
    }
7230
 
7231
    /**
7232
     * Performs a deep copy on <i>other</i>.
7233
     */
648 chandransh 7234
    public getShipmentInfo_args(getShipmentInfo_args other) {
7235
      __isset_bit_vector.clear();
7236
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7237
      if (other.isSetAwbNumber()) {
7238
        this.awbNumber = other.awbNumber;
442 rajveer 7239
      }
648 chandransh 7240
      this.providerId = other.providerId;
442 rajveer 7241
    }
7242
 
648 chandransh 7243
    public getShipmentInfo_args deepCopy() {
7244
      return new getShipmentInfo_args(this);
442 rajveer 7245
    }
7246
 
3430 rajveer 7247
    @Override
7248
    public void clear() {
6643 rajveer 7249
      this.awbNumber = null;
3430 rajveer 7250
      setProviderIdIsSet(false);
7251
      this.providerId = 0;
442 rajveer 7252
    }
7253
 
6643 rajveer 7254
    public String getAwbNumber() {
7255
      return this.awbNumber;
442 rajveer 7256
    }
7257
 
6643 rajveer 7258
    public void setAwbNumber(String awbNumber) {
7259
      this.awbNumber = awbNumber;
442 rajveer 7260
    }
7261
 
6643 rajveer 7262
    public void unsetAwbNumber() {
7263
      this.awbNumber = null;
442 rajveer 7264
    }
7265
 
6643 rajveer 7266
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7267
    public boolean isSetAwbNumber() {
7268
      return this.awbNumber != null;
442 rajveer 7269
    }
7270
 
6643 rajveer 7271
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7272
      if (!value) {
6643 rajveer 7273
        this.awbNumber = null;
442 rajveer 7274
      }
7275
    }
7276
 
648 chandransh 7277
    public long getProviderId() {
7278
      return this.providerId;
442 rajveer 7279
    }
7280
 
3430 rajveer 7281
    public void setProviderId(long providerId) {
648 chandransh 7282
      this.providerId = providerId;
7283
      setProviderIdIsSet(true);
442 rajveer 7284
    }
7285
 
648 chandransh 7286
    public void unsetProviderId() {
7287
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7288
    }
7289
 
3430 rajveer 7290
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7291
    public boolean isSetProviderId() {
7292
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7293
    }
7294
 
648 chandransh 7295
    public void setProviderIdIsSet(boolean value) {
7296
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7297
    }
7298
 
7299
    public void setFieldValue(_Fields field, Object value) {
7300
      switch (field) {
6643 rajveer 7301
      case AWB_NUMBER:
442 rajveer 7302
        if (value == null) {
6643 rajveer 7303
          unsetAwbNumber();
442 rajveer 7304
        } else {
6643 rajveer 7305
          setAwbNumber((String)value);
442 rajveer 7306
        }
7307
        break;
7308
 
648 chandransh 7309
      case PROVIDER_ID:
442 rajveer 7310
        if (value == null) {
648 chandransh 7311
          unsetProviderId();
442 rajveer 7312
        } else {
648 chandransh 7313
          setProviderId((Long)value);
442 rajveer 7314
        }
7315
        break;
7316
 
7317
      }
7318
    }
7319
 
7320
    public Object getFieldValue(_Fields field) {
7321
      switch (field) {
6643 rajveer 7322
      case AWB_NUMBER:
7323
        return getAwbNumber();
442 rajveer 7324
 
648 chandransh 7325
      case PROVIDER_ID:
3430 rajveer 7326
        return Long.valueOf(getProviderId());
442 rajveer 7327
 
7328
      }
7329
      throw new IllegalStateException();
7330
    }
7331
 
3430 rajveer 7332
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7333
    public boolean isSet(_Fields field) {
7334
      if (field == null) {
7335
        throw new IllegalArgumentException();
7336
      }
442 rajveer 7337
 
7338
      switch (field) {
6643 rajveer 7339
      case AWB_NUMBER:
7340
        return isSetAwbNumber();
648 chandransh 7341
      case PROVIDER_ID:
7342
        return isSetProviderId();
442 rajveer 7343
      }
7344
      throw new IllegalStateException();
7345
    }
7346
 
7347
    @Override
7348
    public boolean equals(Object that) {
7349
      if (that == null)
7350
        return false;
648 chandransh 7351
      if (that instanceof getShipmentInfo_args)
7352
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7353
      return false;
7354
    }
7355
 
648 chandransh 7356
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7357
      if (that == null)
7358
        return false;
7359
 
6643 rajveer 7360
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7361
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7362
      if (this_present_awbNumber || that_present_awbNumber) {
7363
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7364
          return false;
6643 rajveer 7365
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7366
          return false;
7367
      }
7368
 
648 chandransh 7369
      boolean this_present_providerId = true;
7370
      boolean that_present_providerId = true;
7371
      if (this_present_providerId || that_present_providerId) {
7372
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7373
          return false;
648 chandransh 7374
        if (this.providerId != that.providerId)
442 rajveer 7375
          return false;
7376
      }
7377
 
7378
      return true;
7379
    }
7380
 
7381
    @Override
7382
    public int hashCode() {
7383
      return 0;
7384
    }
7385
 
648 chandransh 7386
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7387
      if (!getClass().equals(other.getClass())) {
7388
        return getClass().getName().compareTo(other.getClass().getName());
7389
      }
7390
 
7391
      int lastComparison = 0;
648 chandransh 7392
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7393
 
6643 rajveer 7394
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7395
      if (lastComparison != 0) {
7396
        return lastComparison;
7397
      }
6643 rajveer 7398
      if (isSetAwbNumber()) {
7399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7400
        if (lastComparison != 0) {
7401
          return lastComparison;
7402
        }
442 rajveer 7403
      }
3430 rajveer 7404
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7405
      if (lastComparison != 0) {
7406
        return lastComparison;
7407
      }
3430 rajveer 7408
      if (isSetProviderId()) {
7409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7410
        if (lastComparison != 0) {
7411
          return lastComparison;
7412
        }
442 rajveer 7413
      }
7414
      return 0;
7415
    }
7416
 
3430 rajveer 7417
    public _Fields fieldForId(int fieldId) {
7418
      return _Fields.findByThriftId(fieldId);
7419
    }
7420
 
7421
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7422
      org.apache.thrift.protocol.TField field;
442 rajveer 7423
      iprot.readStructBegin();
7424
      while (true)
7425
      {
7426
        field = iprot.readFieldBegin();
3430 rajveer 7427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7428
          break;
7429
        }
3430 rajveer 7430
        switch (field.id) {
6643 rajveer 7431
          case 1: // AWB_NUMBER
3430 rajveer 7432
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7433
              this.awbNumber = iprot.readString();
3430 rajveer 7434
            } else { 
7435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7436
            }
7437
            break;
7438
          case 2: // PROVIDER_ID
7439
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7440
              this.providerId = iprot.readI64();
7441
              setProviderIdIsSet(true);
7442
            } else { 
7443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7444
            }
7445
            break;
7446
          default:
7447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7448
        }
3430 rajveer 7449
        iprot.readFieldEnd();
442 rajveer 7450
      }
7451
      iprot.readStructEnd();
7452
      validate();
7453
    }
7454
 
3430 rajveer 7455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7456
      validate();
7457
 
7458
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7459
      if (this.awbNumber != null) {
7460
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7461
        oprot.writeString(this.awbNumber);
442 rajveer 7462
        oprot.writeFieldEnd();
7463
      }
648 chandransh 7464
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7465
      oprot.writeI64(this.providerId);
7466
      oprot.writeFieldEnd();
442 rajveer 7467
      oprot.writeFieldStop();
7468
      oprot.writeStructEnd();
7469
    }
7470
 
7471
    @Override
7472
    public String toString() {
648 chandransh 7473
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7474
      boolean first = true;
7475
 
6643 rajveer 7476
      sb.append("awbNumber:");
7477
      if (this.awbNumber == null) {
442 rajveer 7478
        sb.append("null");
7479
      } else {
6643 rajveer 7480
        sb.append(this.awbNumber);
442 rajveer 7481
      }
7482
      first = false;
7483
      if (!first) sb.append(", ");
648 chandransh 7484
      sb.append("providerId:");
7485
      sb.append(this.providerId);
442 rajveer 7486
      first = false;
7487
      sb.append(")");
7488
      return sb.toString();
7489
    }
7490
 
3430 rajveer 7491
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7492
      // check for required fields
7493
    }
7494
 
3430 rajveer 7495
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7496
      try {
7497
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7498
      } catch (org.apache.thrift.TException te) {
7499
        throw new java.io.IOException(te);
7500
      }
7501
    }
7502
 
7503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7504
      try {
7505
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7506
      } catch (org.apache.thrift.TException te) {
7507
        throw new java.io.IOException(te);
7508
      }
7509
    }
7510
 
442 rajveer 7511
  }
7512
 
3430 rajveer 7513
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7514
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7515
 
3430 rajveer 7516
    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);
7517
    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 7518
 
3430 rajveer 7519
    private List<AwbUpdate> success; // required
7520
    private LogisticsServiceException se; // required
412 ashish 7521
 
7522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7524
      SUCCESS((short)0, "success"),
7525
      SE((short)1, "se");
412 ashish 7526
 
7527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7528
 
7529
      static {
7530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7531
          byName.put(field.getFieldName(), field);
7532
        }
7533
      }
7534
 
7535
      /**
7536
       * Find the _Fields constant that matches fieldId, or null if its not found.
7537
       */
7538
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7539
        switch(fieldId) {
7540
          case 0: // SUCCESS
7541
            return SUCCESS;
7542
          case 1: // SE
7543
            return SE;
7544
          default:
7545
            return null;
7546
        }
412 ashish 7547
      }
7548
 
7549
      /**
7550
       * Find the _Fields constant that matches fieldId, throwing an exception
7551
       * if it is not found.
7552
       */
7553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7554
        _Fields fields = findByThriftId(fieldId);
7555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7556
        return fields;
7557
      }
7558
 
7559
      /**
7560
       * Find the _Fields constant that matches name, or null if its not found.
7561
       */
7562
      public static _Fields findByName(String name) {
7563
        return byName.get(name);
7564
      }
7565
 
7566
      private final short _thriftId;
7567
      private final String _fieldName;
7568
 
7569
      _Fields(short thriftId, String fieldName) {
7570
        _thriftId = thriftId;
7571
        _fieldName = fieldName;
7572
      }
7573
 
7574
      public short getThriftFieldId() {
7575
        return _thriftId;
7576
      }
7577
 
7578
      public String getFieldName() {
7579
        return _fieldName;
7580
      }
7581
    }
7582
 
7583
    // isset id assignments
7584
 
3430 rajveer 7585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7586
    static {
3430 rajveer 7587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7588
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7589
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7590
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7591
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7595
    }
7596
 
7597
    public getShipmentInfo_result() {
7598
    }
7599
 
7600
    public getShipmentInfo_result(
648 chandransh 7601
      List<AwbUpdate> success,
7602
      LogisticsServiceException se)
412 ashish 7603
    {
7604
      this();
7605
      this.success = success;
648 chandransh 7606
      this.se = se;
412 ashish 7607
    }
7608
 
7609
    /**
7610
     * Performs a deep copy on <i>other</i>.
7611
     */
7612
    public getShipmentInfo_result(getShipmentInfo_result other) {
7613
      if (other.isSetSuccess()) {
648 chandransh 7614
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7615
        for (AwbUpdate other_element : other.success) {
7616
          __this__success.add(new AwbUpdate(other_element));
7617
        }
7618
        this.success = __this__success;
412 ashish 7619
      }
648 chandransh 7620
      if (other.isSetSe()) {
7621
        this.se = new LogisticsServiceException(other.se);
7622
      }
412 ashish 7623
    }
7624
 
7625
    public getShipmentInfo_result deepCopy() {
7626
      return new getShipmentInfo_result(this);
7627
    }
7628
 
3430 rajveer 7629
    @Override
7630
    public void clear() {
7631
      this.success = null;
7632
      this.se = null;
412 ashish 7633
    }
7634
 
7635
    public int getSuccessSize() {
7636
      return (this.success == null) ? 0 : this.success.size();
7637
    }
7638
 
648 chandransh 7639
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7640
      return (this.success == null) ? null : this.success.iterator();
7641
    }
7642
 
648 chandransh 7643
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7644
      if (this.success == null) {
648 chandransh 7645
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7646
      }
7647
      this.success.add(elem);
7648
    }
7649
 
648 chandransh 7650
    public List<AwbUpdate> getSuccess() {
412 ashish 7651
      return this.success;
7652
    }
7653
 
3430 rajveer 7654
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7655
      this.success = success;
7656
    }
7657
 
7658
    public void unsetSuccess() {
7659
      this.success = null;
7660
    }
7661
 
3430 rajveer 7662
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7663
    public boolean isSetSuccess() {
7664
      return this.success != null;
7665
    }
7666
 
7667
    public void setSuccessIsSet(boolean value) {
7668
      if (!value) {
7669
        this.success = null;
7670
      }
7671
    }
7672
 
648 chandransh 7673
    public LogisticsServiceException getSe() {
7674
      return this.se;
412 ashish 7675
    }
7676
 
3430 rajveer 7677
    public void setSe(LogisticsServiceException se) {
648 chandransh 7678
      this.se = se;
412 ashish 7679
    }
7680
 
648 chandransh 7681
    public void unsetSe() {
7682
      this.se = null;
412 ashish 7683
    }
7684
 
3430 rajveer 7685
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7686
    public boolean isSetSe() {
7687
      return this.se != null;
412 ashish 7688
    }
7689
 
648 chandransh 7690
    public void setSeIsSet(boolean value) {
7691
      if (!value) {
7692
        this.se = null;
412 ashish 7693
      }
7694
    }
7695
 
7696
    public void setFieldValue(_Fields field, Object value) {
7697
      switch (field) {
648 chandransh 7698
      case SUCCESS:
412 ashish 7699
        if (value == null) {
648 chandransh 7700
          unsetSuccess();
412 ashish 7701
        } else {
648 chandransh 7702
          setSuccess((List<AwbUpdate>)value);
412 ashish 7703
        }
7704
        break;
7705
 
648 chandransh 7706
      case SE:
412 ashish 7707
        if (value == null) {
648 chandransh 7708
          unsetSe();
412 ashish 7709
        } else {
648 chandransh 7710
          setSe((LogisticsServiceException)value);
412 ashish 7711
        }
7712
        break;
7713
 
7714
      }
7715
    }
7716
 
7717
    public Object getFieldValue(_Fields field) {
7718
      switch (field) {
648 chandransh 7719
      case SUCCESS:
7720
        return getSuccess();
412 ashish 7721
 
648 chandransh 7722
      case SE:
7723
        return getSe();
412 ashish 7724
 
7725
      }
7726
      throw new IllegalStateException();
7727
    }
7728
 
3430 rajveer 7729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7730
    public boolean isSet(_Fields field) {
7731
      if (field == null) {
7732
        throw new IllegalArgumentException();
7733
      }
412 ashish 7734
 
7735
      switch (field) {
648 chandransh 7736
      case SUCCESS:
7737
        return isSetSuccess();
7738
      case SE:
7739
        return isSetSe();
412 ashish 7740
      }
7741
      throw new IllegalStateException();
7742
    }
7743
 
7744
    @Override
7745
    public boolean equals(Object that) {
7746
      if (that == null)
7747
        return false;
648 chandransh 7748
      if (that instanceof getShipmentInfo_result)
7749
        return this.equals((getShipmentInfo_result)that);
412 ashish 7750
      return false;
7751
    }
7752
 
648 chandransh 7753
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7754
      if (that == null)
7755
        return false;
7756
 
648 chandransh 7757
      boolean this_present_success = true && this.isSetSuccess();
7758
      boolean that_present_success = true && that.isSetSuccess();
7759
      if (this_present_success || that_present_success) {
7760
        if (!(this_present_success && that_present_success))
412 ashish 7761
          return false;
648 chandransh 7762
        if (!this.success.equals(that.success))
412 ashish 7763
          return false;
7764
      }
7765
 
648 chandransh 7766
      boolean this_present_se = true && this.isSetSe();
7767
      boolean that_present_se = true && that.isSetSe();
7768
      if (this_present_se || that_present_se) {
7769
        if (!(this_present_se && that_present_se))
412 ashish 7770
          return false;
648 chandransh 7771
        if (!this.se.equals(that.se))
412 ashish 7772
          return false;
7773
      }
7774
 
7775
      return true;
7776
    }
7777
 
7778
    @Override
7779
    public int hashCode() {
7780
      return 0;
7781
    }
7782
 
648 chandransh 7783
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7784
      if (!getClass().equals(other.getClass())) {
7785
        return getClass().getName().compareTo(other.getClass().getName());
7786
      }
7787
 
7788
      int lastComparison = 0;
648 chandransh 7789
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7790
 
3430 rajveer 7791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7792
      if (lastComparison != 0) {
7793
        return lastComparison;
7794
      }
3430 rajveer 7795
      if (isSetSuccess()) {
7796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7797
        if (lastComparison != 0) {
7798
          return lastComparison;
7799
        }
412 ashish 7800
      }
3430 rajveer 7801
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7802
      if (lastComparison != 0) {
7803
        return lastComparison;
7804
      }
3430 rajveer 7805
      if (isSetSe()) {
7806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7807
        if (lastComparison != 0) {
7808
          return lastComparison;
7809
        }
412 ashish 7810
      }
7811
      return 0;
7812
    }
7813
 
3430 rajveer 7814
    public _Fields fieldForId(int fieldId) {
7815
      return _Fields.findByThriftId(fieldId);
7816
    }
7817
 
7818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7819
      org.apache.thrift.protocol.TField field;
412 ashish 7820
      iprot.readStructBegin();
7821
      while (true)
7822
      {
7823
        field = iprot.readFieldBegin();
3430 rajveer 7824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7825
          break;
7826
        }
3430 rajveer 7827
        switch (field.id) {
7828
          case 0: // SUCCESS
7829
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7830
              {
7792 anupam.sin 7831
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7832
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7833
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7834
                {
7792 anupam.sin 7835
                  AwbUpdate _elem10; // required
7836
                  _elem10 = new AwbUpdate();
7837
                  _elem10.read(iprot);
7838
                  this.success.add(_elem10);
412 ashish 7839
                }
3430 rajveer 7840
                iprot.readListEnd();
412 ashish 7841
              }
3430 rajveer 7842
            } else { 
7843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7844
            }
7845
            break;
7846
          case 1: // SE
7847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7848
              this.se = new LogisticsServiceException();
7849
              this.se.read(iprot);
7850
            } else { 
7851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7852
            }
7853
            break;
7854
          default:
7855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7856
        }
3430 rajveer 7857
        iprot.readFieldEnd();
412 ashish 7858
      }
7859
      iprot.readStructEnd();
7860
      validate();
7861
    }
7862
 
3430 rajveer 7863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7864
      oprot.writeStructBegin(STRUCT_DESC);
7865
 
7866
      if (this.isSetSuccess()) {
7867
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7868
        {
3430 rajveer 7869
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7870
          for (AwbUpdate _iter11 : this.success)
412 ashish 7871
          {
7792 anupam.sin 7872
            _iter11.write(oprot);
412 ashish 7873
          }
7874
          oprot.writeListEnd();
7875
        }
7876
        oprot.writeFieldEnd();
648 chandransh 7877
      } else if (this.isSetSe()) {
7878
        oprot.writeFieldBegin(SE_FIELD_DESC);
7879
        this.se.write(oprot);
7880
        oprot.writeFieldEnd();
412 ashish 7881
      }
7882
      oprot.writeFieldStop();
7883
      oprot.writeStructEnd();
7884
    }
7885
 
7886
    @Override
7887
    public String toString() {
648 chandransh 7888
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7889
      boolean first = true;
7890
 
7891
      sb.append("success:");
7892
      if (this.success == null) {
7893
        sb.append("null");
7894
      } else {
7895
        sb.append(this.success);
7896
      }
7897
      first = false;
648 chandransh 7898
      if (!first) sb.append(", ");
7899
      sb.append("se:");
7900
      if (this.se == null) {
7901
        sb.append("null");
7902
      } else {
7903
        sb.append(this.se);
7904
      }
7905
      first = false;
412 ashish 7906
      sb.append(")");
7907
      return sb.toString();
7908
    }
7909
 
3430 rajveer 7910
    public void validate() throws org.apache.thrift.TException {
412 ashish 7911
      // check for required fields
7912
    }
7913
 
3430 rajveer 7914
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7915
      try {
7916
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7917
      } catch (org.apache.thrift.TException te) {
7918
        throw new java.io.IOException(te);
7919
      }
7920
    }
7921
 
7922
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7923
      try {
7924
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7925
      } catch (org.apache.thrift.TException te) {
7926
        throw new java.io.IOException(te);
7927
      }
7928
    }
7929
 
412 ashish 7930
  }
7931
 
6643 rajveer 7932
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7933
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7934
 
7935
    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);
7936
 
7937
    private AwbUpdate update; // required
7938
 
7939
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7940
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7941
      UPDATE((short)1, "update");
7942
 
7943
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7944
 
7945
      static {
7946
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7947
          byName.put(field.getFieldName(), field);
7948
        }
7949
      }
7950
 
7951
      /**
7952
       * Find the _Fields constant that matches fieldId, or null if its not found.
7953
       */
7954
      public static _Fields findByThriftId(int fieldId) {
7955
        switch(fieldId) {
7956
          case 1: // UPDATE
7957
            return UPDATE;
7958
          default:
7959
            return null;
7960
        }
7961
      }
7962
 
7963
      /**
7964
       * Find the _Fields constant that matches fieldId, throwing an exception
7965
       * if it is not found.
7966
       */
7967
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7968
        _Fields fields = findByThriftId(fieldId);
7969
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7970
        return fields;
7971
      }
7972
 
7973
      /**
7974
       * Find the _Fields constant that matches name, or null if its not found.
7975
       */
7976
      public static _Fields findByName(String name) {
7977
        return byName.get(name);
7978
      }
7979
 
7980
      private final short _thriftId;
7981
      private final String _fieldName;
7982
 
7983
      _Fields(short thriftId, String fieldName) {
7984
        _thriftId = thriftId;
7985
        _fieldName = fieldName;
7986
      }
7987
 
7988
      public short getThriftFieldId() {
7989
        return _thriftId;
7990
      }
7991
 
7992
      public String getFieldName() {
7993
        return _fieldName;
7994
      }
7995
    }
7996
 
7997
    // isset id assignments
7998
 
7999
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8000
    static {
8001
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8002
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8003
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
8004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
8006
    }
8007
 
8008
    public storeShipmentInfo_args() {
8009
    }
8010
 
8011
    public storeShipmentInfo_args(
8012
      AwbUpdate update)
8013
    {
8014
      this();
8015
      this.update = update;
8016
    }
8017
 
8018
    /**
8019
     * Performs a deep copy on <i>other</i>.
8020
     */
8021
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
8022
      if (other.isSetUpdate()) {
8023
        this.update = new AwbUpdate(other.update);
8024
      }
8025
    }
8026
 
8027
    public storeShipmentInfo_args deepCopy() {
8028
      return new storeShipmentInfo_args(this);
8029
    }
8030
 
8031
    @Override
8032
    public void clear() {
8033
      this.update = null;
8034
    }
8035
 
8036
    public AwbUpdate getUpdate() {
8037
      return this.update;
8038
    }
8039
 
8040
    public void setUpdate(AwbUpdate update) {
8041
      this.update = update;
8042
    }
8043
 
8044
    public void unsetUpdate() {
8045
      this.update = null;
8046
    }
8047
 
8048
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
8049
    public boolean isSetUpdate() {
8050
      return this.update != null;
8051
    }
8052
 
8053
    public void setUpdateIsSet(boolean value) {
8054
      if (!value) {
8055
        this.update = null;
8056
      }
8057
    }
8058
 
8059
    public void setFieldValue(_Fields field, Object value) {
8060
      switch (field) {
8061
      case UPDATE:
8062
        if (value == null) {
8063
          unsetUpdate();
8064
        } else {
8065
          setUpdate((AwbUpdate)value);
8066
        }
8067
        break;
8068
 
8069
      }
8070
    }
8071
 
8072
    public Object getFieldValue(_Fields field) {
8073
      switch (field) {
8074
      case UPDATE:
8075
        return getUpdate();
8076
 
8077
      }
8078
      throw new IllegalStateException();
8079
    }
8080
 
8081
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8082
    public boolean isSet(_Fields field) {
8083
      if (field == null) {
8084
        throw new IllegalArgumentException();
8085
      }
8086
 
8087
      switch (field) {
8088
      case UPDATE:
8089
        return isSetUpdate();
8090
      }
8091
      throw new IllegalStateException();
8092
    }
8093
 
8094
    @Override
8095
    public boolean equals(Object that) {
8096
      if (that == null)
8097
        return false;
8098
      if (that instanceof storeShipmentInfo_args)
8099
        return this.equals((storeShipmentInfo_args)that);
8100
      return false;
8101
    }
8102
 
8103
    public boolean equals(storeShipmentInfo_args that) {
8104
      if (that == null)
8105
        return false;
8106
 
8107
      boolean this_present_update = true && this.isSetUpdate();
8108
      boolean that_present_update = true && that.isSetUpdate();
8109
      if (this_present_update || that_present_update) {
8110
        if (!(this_present_update && that_present_update))
8111
          return false;
8112
        if (!this.update.equals(that.update))
8113
          return false;
8114
      }
8115
 
8116
      return true;
8117
    }
8118
 
8119
    @Override
8120
    public int hashCode() {
8121
      return 0;
8122
    }
8123
 
8124
    public int compareTo(storeShipmentInfo_args other) {
8125
      if (!getClass().equals(other.getClass())) {
8126
        return getClass().getName().compareTo(other.getClass().getName());
8127
      }
8128
 
8129
      int lastComparison = 0;
8130
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8131
 
8132
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8133
      if (lastComparison != 0) {
8134
        return lastComparison;
8135
      }
8136
      if (isSetUpdate()) {
8137
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8138
        if (lastComparison != 0) {
8139
          return lastComparison;
8140
        }
8141
      }
8142
      return 0;
8143
    }
8144
 
8145
    public _Fields fieldForId(int fieldId) {
8146
      return _Fields.findByThriftId(fieldId);
8147
    }
8148
 
8149
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8150
      org.apache.thrift.protocol.TField field;
8151
      iprot.readStructBegin();
8152
      while (true)
8153
      {
8154
        field = iprot.readFieldBegin();
8155
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8156
          break;
8157
        }
8158
        switch (field.id) {
8159
          case 1: // UPDATE
8160
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8161
              this.update = new AwbUpdate();
8162
              this.update.read(iprot);
8163
            } else { 
8164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8165
            }
8166
            break;
8167
          default:
8168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8169
        }
8170
        iprot.readFieldEnd();
8171
      }
8172
      iprot.readStructEnd();
8173
      validate();
8174
    }
8175
 
8176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8177
      validate();
8178
 
8179
      oprot.writeStructBegin(STRUCT_DESC);
8180
      if (this.update != null) {
8181
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8182
        this.update.write(oprot);
8183
        oprot.writeFieldEnd();
8184
      }
8185
      oprot.writeFieldStop();
8186
      oprot.writeStructEnd();
8187
    }
8188
 
8189
    @Override
8190
    public String toString() {
8191
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8192
      boolean first = true;
8193
 
8194
      sb.append("update:");
8195
      if (this.update == null) {
8196
        sb.append("null");
8197
      } else {
8198
        sb.append(this.update);
8199
      }
8200
      first = false;
8201
      sb.append(")");
8202
      return sb.toString();
8203
    }
8204
 
8205
    public void validate() throws org.apache.thrift.TException {
8206
      // check for required fields
8207
    }
8208
 
8209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8210
      try {
8211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8212
      } catch (org.apache.thrift.TException te) {
8213
        throw new java.io.IOException(te);
8214
      }
8215
    }
8216
 
8217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8218
      try {
8219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8220
      } catch (org.apache.thrift.TException te) {
8221
        throw new java.io.IOException(te);
8222
      }
8223
    }
8224
 
8225
  }
8226
 
8227
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8228
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8229
 
8230
    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);
8231
 
8232
    private LogisticsServiceException se; // required
8233
 
8234
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8235
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8236
      SE((short)1, "se");
8237
 
8238
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8239
 
8240
      static {
8241
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8242
          byName.put(field.getFieldName(), field);
8243
        }
8244
      }
8245
 
8246
      /**
8247
       * Find the _Fields constant that matches fieldId, or null if its not found.
8248
       */
8249
      public static _Fields findByThriftId(int fieldId) {
8250
        switch(fieldId) {
8251
          case 1: // SE
8252
            return SE;
8253
          default:
8254
            return null;
8255
        }
8256
      }
8257
 
8258
      /**
8259
       * Find the _Fields constant that matches fieldId, throwing an exception
8260
       * if it is not found.
8261
       */
8262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8263
        _Fields fields = findByThriftId(fieldId);
8264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8265
        return fields;
8266
      }
8267
 
8268
      /**
8269
       * Find the _Fields constant that matches name, or null if its not found.
8270
       */
8271
      public static _Fields findByName(String name) {
8272
        return byName.get(name);
8273
      }
8274
 
8275
      private final short _thriftId;
8276
      private final String _fieldName;
8277
 
8278
      _Fields(short thriftId, String fieldName) {
8279
        _thriftId = thriftId;
8280
        _fieldName = fieldName;
8281
      }
8282
 
8283
      public short getThriftFieldId() {
8284
        return _thriftId;
8285
      }
8286
 
8287
      public String getFieldName() {
8288
        return _fieldName;
8289
      }
8290
    }
8291
 
8292
    // isset id assignments
8293
 
8294
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8295
    static {
8296
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8297
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8298
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8301
    }
8302
 
8303
    public storeShipmentInfo_result() {
8304
    }
8305
 
8306
    public storeShipmentInfo_result(
8307
      LogisticsServiceException se)
8308
    {
8309
      this();
8310
      this.se = se;
8311
    }
8312
 
8313
    /**
8314
     * Performs a deep copy on <i>other</i>.
8315
     */
8316
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8317
      if (other.isSetSe()) {
8318
        this.se = new LogisticsServiceException(other.se);
8319
      }
8320
    }
8321
 
8322
    public storeShipmentInfo_result deepCopy() {
8323
      return new storeShipmentInfo_result(this);
8324
    }
8325
 
8326
    @Override
8327
    public void clear() {
8328
      this.se = null;
8329
    }
8330
 
8331
    public LogisticsServiceException getSe() {
8332
      return this.se;
8333
    }
8334
 
8335
    public void setSe(LogisticsServiceException se) {
8336
      this.se = se;
8337
    }
8338
 
8339
    public void unsetSe() {
8340
      this.se = null;
8341
    }
8342
 
8343
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8344
    public boolean isSetSe() {
8345
      return this.se != null;
8346
    }
8347
 
8348
    public void setSeIsSet(boolean value) {
8349
      if (!value) {
8350
        this.se = null;
8351
      }
8352
    }
8353
 
8354
    public void setFieldValue(_Fields field, Object value) {
8355
      switch (field) {
8356
      case SE:
8357
        if (value == null) {
8358
          unsetSe();
8359
        } else {
8360
          setSe((LogisticsServiceException)value);
8361
        }
8362
        break;
8363
 
8364
      }
8365
    }
8366
 
8367
    public Object getFieldValue(_Fields field) {
8368
      switch (field) {
8369
      case SE:
8370
        return getSe();
8371
 
8372
      }
8373
      throw new IllegalStateException();
8374
    }
8375
 
8376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8377
    public boolean isSet(_Fields field) {
8378
      if (field == null) {
8379
        throw new IllegalArgumentException();
8380
      }
8381
 
8382
      switch (field) {
8383
      case SE:
8384
        return isSetSe();
8385
      }
8386
      throw new IllegalStateException();
8387
    }
8388
 
8389
    @Override
8390
    public boolean equals(Object that) {
8391
      if (that == null)
8392
        return false;
8393
      if (that instanceof storeShipmentInfo_result)
8394
        return this.equals((storeShipmentInfo_result)that);
8395
      return false;
8396
    }
8397
 
8398
    public boolean equals(storeShipmentInfo_result that) {
8399
      if (that == null)
8400
        return false;
8401
 
8402
      boolean this_present_se = true && this.isSetSe();
8403
      boolean that_present_se = true && that.isSetSe();
8404
      if (this_present_se || that_present_se) {
8405
        if (!(this_present_se && that_present_se))
8406
          return false;
8407
        if (!this.se.equals(that.se))
8408
          return false;
8409
      }
8410
 
8411
      return true;
8412
    }
8413
 
8414
    @Override
8415
    public int hashCode() {
8416
      return 0;
8417
    }
8418
 
8419
    public int compareTo(storeShipmentInfo_result other) {
8420
      if (!getClass().equals(other.getClass())) {
8421
        return getClass().getName().compareTo(other.getClass().getName());
8422
      }
8423
 
8424
      int lastComparison = 0;
8425
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8426
 
8427
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8428
      if (lastComparison != 0) {
8429
        return lastComparison;
8430
      }
8431
      if (isSetSe()) {
8432
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8433
        if (lastComparison != 0) {
8434
          return lastComparison;
8435
        }
8436
      }
8437
      return 0;
8438
    }
8439
 
8440
    public _Fields fieldForId(int fieldId) {
8441
      return _Fields.findByThriftId(fieldId);
8442
    }
8443
 
8444
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8445
      org.apache.thrift.protocol.TField field;
8446
      iprot.readStructBegin();
8447
      while (true)
8448
      {
8449
        field = iprot.readFieldBegin();
8450
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8451
          break;
8452
        }
8453
        switch (field.id) {
8454
          case 1: // SE
8455
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8456
              this.se = new LogisticsServiceException();
8457
              this.se.read(iprot);
8458
            } else { 
8459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8460
            }
8461
            break;
8462
          default:
8463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8464
        }
8465
        iprot.readFieldEnd();
8466
      }
8467
      iprot.readStructEnd();
8468
      validate();
8469
    }
8470
 
8471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8472
      oprot.writeStructBegin(STRUCT_DESC);
8473
 
8474
      if (this.isSetSe()) {
8475
        oprot.writeFieldBegin(SE_FIELD_DESC);
8476
        this.se.write(oprot);
8477
        oprot.writeFieldEnd();
8478
      }
8479
      oprot.writeFieldStop();
8480
      oprot.writeStructEnd();
8481
    }
8482
 
8483
    @Override
8484
    public String toString() {
8485
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8486
      boolean first = true;
8487
 
8488
      sb.append("se:");
8489
      if (this.se == null) {
8490
        sb.append("null");
8491
      } else {
8492
        sb.append(this.se);
8493
      }
8494
      first = false;
8495
      sb.append(")");
8496
      return sb.toString();
8497
    }
8498
 
8499
    public void validate() throws org.apache.thrift.TException {
8500
      // check for required fields
8501
    }
8502
 
8503
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8504
      try {
8505
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8506
      } catch (org.apache.thrift.TException te) {
8507
        throw new java.io.IOException(te);
8508
      }
8509
    }
8510
 
8511
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8512
      try {
8513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8514
      } catch (org.apache.thrift.TException te) {
8515
        throw new java.io.IOException(te);
8516
      }
8517
    }
8518
 
8519
  }
8520
 
3430 rajveer 8521
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8523
 
3430 rajveer 8524
    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);
8525
    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 8526
 
3430 rajveer 8527
    private long providerId; // required
8528
    private String pinCode; // required
730 chandransh 8529
 
8530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8532
      PROVIDER_ID((short)1, "providerId"),
8533
      PIN_CODE((short)2, "pinCode");
8534
 
8535
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8536
 
8537
      static {
8538
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8539
          byName.put(field.getFieldName(), field);
8540
        }
8541
      }
8542
 
8543
      /**
8544
       * Find the _Fields constant that matches fieldId, or null if its not found.
8545
       */
8546
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8547
        switch(fieldId) {
8548
          case 1: // PROVIDER_ID
8549
            return PROVIDER_ID;
8550
          case 2: // PIN_CODE
8551
            return PIN_CODE;
8552
          default:
8553
            return null;
8554
        }
730 chandransh 8555
      }
8556
 
8557
      /**
8558
       * Find the _Fields constant that matches fieldId, throwing an exception
8559
       * if it is not found.
8560
       */
8561
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8562
        _Fields fields = findByThriftId(fieldId);
8563
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8564
        return fields;
8565
      }
8566
 
8567
      /**
8568
       * Find the _Fields constant that matches name, or null if its not found.
8569
       */
8570
      public static _Fields findByName(String name) {
8571
        return byName.get(name);
8572
      }
8573
 
8574
      private final short _thriftId;
8575
      private final String _fieldName;
8576
 
8577
      _Fields(short thriftId, String fieldName) {
8578
        _thriftId = thriftId;
8579
        _fieldName = fieldName;
8580
      }
8581
 
8582
      public short getThriftFieldId() {
8583
        return _thriftId;
8584
      }
8585
 
8586
      public String getFieldName() {
8587
        return _fieldName;
8588
      }
8589
    }
8590
 
8591
    // isset id assignments
8592
    private static final int __PROVIDERID_ISSET_ID = 0;
8593
    private BitSet __isset_bit_vector = new BitSet(1);
8594
 
3430 rajveer 8595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8596
    static {
3430 rajveer 8597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8598
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8600
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8601
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8602
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8603
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8604
    }
8605
 
8606
    public getDestinationCode_args() {
8607
    }
8608
 
8609
    public getDestinationCode_args(
8610
      long providerId,
8611
      String pinCode)
8612
    {
8613
      this();
8614
      this.providerId = providerId;
8615
      setProviderIdIsSet(true);
8616
      this.pinCode = pinCode;
8617
    }
8618
 
8619
    /**
8620
     * Performs a deep copy on <i>other</i>.
8621
     */
8622
    public getDestinationCode_args(getDestinationCode_args other) {
8623
      __isset_bit_vector.clear();
8624
      __isset_bit_vector.or(other.__isset_bit_vector);
8625
      this.providerId = other.providerId;
8626
      if (other.isSetPinCode()) {
8627
        this.pinCode = other.pinCode;
8628
      }
8629
    }
8630
 
8631
    public getDestinationCode_args deepCopy() {
8632
      return new getDestinationCode_args(this);
8633
    }
8634
 
3430 rajveer 8635
    @Override
8636
    public void clear() {
8637
      setProviderIdIsSet(false);
8638
      this.providerId = 0;
8639
      this.pinCode = null;
730 chandransh 8640
    }
8641
 
8642
    public long getProviderId() {
8643
      return this.providerId;
8644
    }
8645
 
3430 rajveer 8646
    public void setProviderId(long providerId) {
730 chandransh 8647
      this.providerId = providerId;
8648
      setProviderIdIsSet(true);
8649
    }
8650
 
8651
    public void unsetProviderId() {
8652
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8653
    }
8654
 
3430 rajveer 8655
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8656
    public boolean isSetProviderId() {
8657
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8658
    }
8659
 
8660
    public void setProviderIdIsSet(boolean value) {
8661
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8662
    }
8663
 
8664
    public String getPinCode() {
8665
      return this.pinCode;
8666
    }
8667
 
3430 rajveer 8668
    public void setPinCode(String pinCode) {
730 chandransh 8669
      this.pinCode = pinCode;
8670
    }
8671
 
8672
    public void unsetPinCode() {
8673
      this.pinCode = null;
8674
    }
8675
 
3430 rajveer 8676
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8677
    public boolean isSetPinCode() {
8678
      return this.pinCode != null;
8679
    }
8680
 
8681
    public void setPinCodeIsSet(boolean value) {
8682
      if (!value) {
8683
        this.pinCode = null;
8684
      }
8685
    }
8686
 
8687
    public void setFieldValue(_Fields field, Object value) {
8688
      switch (field) {
8689
      case PROVIDER_ID:
8690
        if (value == null) {
8691
          unsetProviderId();
8692
        } else {
8693
          setProviderId((Long)value);
8694
        }
8695
        break;
8696
 
8697
      case PIN_CODE:
8698
        if (value == null) {
8699
          unsetPinCode();
8700
        } else {
8701
          setPinCode((String)value);
8702
        }
8703
        break;
8704
 
8705
      }
8706
    }
8707
 
8708
    public Object getFieldValue(_Fields field) {
8709
      switch (field) {
8710
      case PROVIDER_ID:
3430 rajveer 8711
        return Long.valueOf(getProviderId());
730 chandransh 8712
 
8713
      case PIN_CODE:
8714
        return getPinCode();
8715
 
8716
      }
8717
      throw new IllegalStateException();
8718
    }
8719
 
3430 rajveer 8720
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8721
    public boolean isSet(_Fields field) {
8722
      if (field == null) {
8723
        throw new IllegalArgumentException();
8724
      }
730 chandransh 8725
 
8726
      switch (field) {
8727
      case PROVIDER_ID:
8728
        return isSetProviderId();
8729
      case PIN_CODE:
8730
        return isSetPinCode();
8731
      }
8732
      throw new IllegalStateException();
8733
    }
8734
 
8735
    @Override
8736
    public boolean equals(Object that) {
8737
      if (that == null)
8738
        return false;
8739
      if (that instanceof getDestinationCode_args)
8740
        return this.equals((getDestinationCode_args)that);
8741
      return false;
8742
    }
8743
 
8744
    public boolean equals(getDestinationCode_args that) {
8745
      if (that == null)
8746
        return false;
8747
 
8748
      boolean this_present_providerId = true;
8749
      boolean that_present_providerId = true;
8750
      if (this_present_providerId || that_present_providerId) {
8751
        if (!(this_present_providerId && that_present_providerId))
8752
          return false;
8753
        if (this.providerId != that.providerId)
8754
          return false;
8755
      }
8756
 
8757
      boolean this_present_pinCode = true && this.isSetPinCode();
8758
      boolean that_present_pinCode = true && that.isSetPinCode();
8759
      if (this_present_pinCode || that_present_pinCode) {
8760
        if (!(this_present_pinCode && that_present_pinCode))
8761
          return false;
8762
        if (!this.pinCode.equals(that.pinCode))
8763
          return false;
8764
      }
8765
 
8766
      return true;
8767
    }
8768
 
8769
    @Override
8770
    public int hashCode() {
8771
      return 0;
8772
    }
8773
 
8774
    public int compareTo(getDestinationCode_args other) {
8775
      if (!getClass().equals(other.getClass())) {
8776
        return getClass().getName().compareTo(other.getClass().getName());
8777
      }
8778
 
8779
      int lastComparison = 0;
8780
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8781
 
3430 rajveer 8782
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8783
      if (lastComparison != 0) {
8784
        return lastComparison;
8785
      }
3430 rajveer 8786
      if (isSetProviderId()) {
8787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8788
        if (lastComparison != 0) {
8789
          return lastComparison;
8790
        }
730 chandransh 8791
      }
3430 rajveer 8792
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8793
      if (lastComparison != 0) {
8794
        return lastComparison;
8795
      }
3430 rajveer 8796
      if (isSetPinCode()) {
8797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8798
        if (lastComparison != 0) {
8799
          return lastComparison;
8800
        }
730 chandransh 8801
      }
8802
      return 0;
8803
    }
8804
 
3430 rajveer 8805
    public _Fields fieldForId(int fieldId) {
8806
      return _Fields.findByThriftId(fieldId);
8807
    }
8808
 
8809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8810
      org.apache.thrift.protocol.TField field;
730 chandransh 8811
      iprot.readStructBegin();
8812
      while (true)
8813
      {
8814
        field = iprot.readFieldBegin();
3430 rajveer 8815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8816
          break;
8817
        }
3430 rajveer 8818
        switch (field.id) {
8819
          case 1: // PROVIDER_ID
8820
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8821
              this.providerId = iprot.readI64();
8822
              setProviderIdIsSet(true);
8823
            } else { 
8824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8825
            }
8826
            break;
8827
          case 2: // PIN_CODE
8828
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8829
              this.pinCode = iprot.readString();
8830
            } else { 
8831
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8832
            }
8833
            break;
8834
          default:
8835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8836
        }
3430 rajveer 8837
        iprot.readFieldEnd();
730 chandransh 8838
      }
8839
      iprot.readStructEnd();
8840
      validate();
8841
    }
8842
 
3430 rajveer 8843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8844
      validate();
8845
 
8846
      oprot.writeStructBegin(STRUCT_DESC);
8847
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8848
      oprot.writeI64(this.providerId);
8849
      oprot.writeFieldEnd();
8850
      if (this.pinCode != null) {
8851
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8852
        oprot.writeString(this.pinCode);
8853
        oprot.writeFieldEnd();
8854
      }
8855
      oprot.writeFieldStop();
8856
      oprot.writeStructEnd();
8857
    }
8858
 
8859
    @Override
8860
    public String toString() {
8861
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8862
      boolean first = true;
8863
 
8864
      sb.append("providerId:");
8865
      sb.append(this.providerId);
8866
      first = false;
8867
      if (!first) sb.append(", ");
8868
      sb.append("pinCode:");
8869
      if (this.pinCode == null) {
8870
        sb.append("null");
8871
      } else {
8872
        sb.append(this.pinCode);
8873
      }
8874
      first = false;
8875
      sb.append(")");
8876
      return sb.toString();
8877
    }
8878
 
3430 rajveer 8879
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8880
      // check for required fields
8881
    }
8882
 
3430 rajveer 8883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8884
      try {
8885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8886
      } catch (org.apache.thrift.TException te) {
8887
        throw new java.io.IOException(te);
8888
      }
8889
    }
8890
 
8891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8892
      try {
8893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8894
      } catch (org.apache.thrift.TException te) {
8895
        throw new java.io.IOException(te);
8896
      }
8897
    }
8898
 
730 chandransh 8899
  }
8900
 
3430 rajveer 8901
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8903
 
3430 rajveer 8904
    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);
8905
    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 8906
 
3430 rajveer 8907
    private String success; // required
8908
    private LogisticsServiceException se; // required
730 chandransh 8909
 
8910
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8911
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8912
      SUCCESS((short)0, "success"),
8913
      SE((short)1, "se");
8914
 
8915
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8916
 
8917
      static {
8918
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8919
          byName.put(field.getFieldName(), field);
8920
        }
8921
      }
8922
 
8923
      /**
8924
       * Find the _Fields constant that matches fieldId, or null if its not found.
8925
       */
8926
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8927
        switch(fieldId) {
8928
          case 0: // SUCCESS
8929
            return SUCCESS;
8930
          case 1: // SE
8931
            return SE;
8932
          default:
8933
            return null;
8934
        }
730 chandransh 8935
      }
8936
 
8937
      /**
8938
       * Find the _Fields constant that matches fieldId, throwing an exception
8939
       * if it is not found.
8940
       */
8941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8942
        _Fields fields = findByThriftId(fieldId);
8943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8944
        return fields;
8945
      }
8946
 
8947
      /**
8948
       * Find the _Fields constant that matches name, or null if its not found.
8949
       */
8950
      public static _Fields findByName(String name) {
8951
        return byName.get(name);
8952
      }
8953
 
8954
      private final short _thriftId;
8955
      private final String _fieldName;
8956
 
8957
      _Fields(short thriftId, String fieldName) {
8958
        _thriftId = thriftId;
8959
        _fieldName = fieldName;
8960
      }
8961
 
8962
      public short getThriftFieldId() {
8963
        return _thriftId;
8964
      }
8965
 
8966
      public String getFieldName() {
8967
        return _fieldName;
8968
      }
8969
    }
8970
 
8971
    // isset id assignments
8972
 
3430 rajveer 8973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8974
    static {
3430 rajveer 8975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8977
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8978
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8979
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8980
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8981
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8982
    }
8983
 
8984
    public getDestinationCode_result() {
8985
    }
8986
 
8987
    public getDestinationCode_result(
8988
      String success,
8989
      LogisticsServiceException se)
8990
    {
8991
      this();
8992
      this.success = success;
8993
      this.se = se;
8994
    }
8995
 
8996
    /**
8997
     * Performs a deep copy on <i>other</i>.
8998
     */
8999
    public getDestinationCode_result(getDestinationCode_result other) {
9000
      if (other.isSetSuccess()) {
9001
        this.success = other.success;
9002
      }
9003
      if (other.isSetSe()) {
9004
        this.se = new LogisticsServiceException(other.se);
9005
      }
9006
    }
9007
 
9008
    public getDestinationCode_result deepCopy() {
9009
      return new getDestinationCode_result(this);
9010
    }
9011
 
3430 rajveer 9012
    @Override
9013
    public void clear() {
9014
      this.success = null;
9015
      this.se = null;
730 chandransh 9016
    }
9017
 
9018
    public String getSuccess() {
9019
      return this.success;
9020
    }
9021
 
3430 rajveer 9022
    public void setSuccess(String success) {
730 chandransh 9023
      this.success = success;
9024
    }
9025
 
9026
    public void unsetSuccess() {
9027
      this.success = null;
9028
    }
9029
 
3430 rajveer 9030
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 9031
    public boolean isSetSuccess() {
9032
      return this.success != null;
9033
    }
9034
 
9035
    public void setSuccessIsSet(boolean value) {
9036
      if (!value) {
9037
        this.success = null;
9038
      }
9039
    }
9040
 
9041
    public LogisticsServiceException getSe() {
9042
      return this.se;
9043
    }
9044
 
3430 rajveer 9045
    public void setSe(LogisticsServiceException se) {
730 chandransh 9046
      this.se = se;
9047
    }
9048
 
9049
    public void unsetSe() {
9050
      this.se = null;
9051
    }
9052
 
3430 rajveer 9053
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 9054
    public boolean isSetSe() {
9055
      return this.se != null;
9056
    }
9057
 
9058
    public void setSeIsSet(boolean value) {
9059
      if (!value) {
9060
        this.se = null;
9061
      }
9062
    }
9063
 
9064
    public void setFieldValue(_Fields field, Object value) {
9065
      switch (field) {
9066
      case SUCCESS:
9067
        if (value == null) {
9068
          unsetSuccess();
9069
        } else {
9070
          setSuccess((String)value);
9071
        }
9072
        break;
9073
 
9074
      case SE:
9075
        if (value == null) {
9076
          unsetSe();
9077
        } else {
9078
          setSe((LogisticsServiceException)value);
9079
        }
9080
        break;
9081
 
9082
      }
9083
    }
9084
 
9085
    public Object getFieldValue(_Fields field) {
9086
      switch (field) {
9087
      case SUCCESS:
9088
        return getSuccess();
9089
 
9090
      case SE:
9091
        return getSe();
9092
 
9093
      }
9094
      throw new IllegalStateException();
9095
    }
9096
 
3430 rajveer 9097
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9098
    public boolean isSet(_Fields field) {
9099
      if (field == null) {
9100
        throw new IllegalArgumentException();
9101
      }
730 chandransh 9102
 
9103
      switch (field) {
9104
      case SUCCESS:
9105
        return isSetSuccess();
9106
      case SE:
9107
        return isSetSe();
9108
      }
9109
      throw new IllegalStateException();
9110
    }
9111
 
9112
    @Override
9113
    public boolean equals(Object that) {
9114
      if (that == null)
9115
        return false;
9116
      if (that instanceof getDestinationCode_result)
9117
        return this.equals((getDestinationCode_result)that);
9118
      return false;
9119
    }
9120
 
9121
    public boolean equals(getDestinationCode_result that) {
9122
      if (that == null)
9123
        return false;
9124
 
9125
      boolean this_present_success = true && this.isSetSuccess();
9126
      boolean that_present_success = true && that.isSetSuccess();
9127
      if (this_present_success || that_present_success) {
9128
        if (!(this_present_success && that_present_success))
9129
          return false;
9130
        if (!this.success.equals(that.success))
9131
          return false;
9132
      }
9133
 
9134
      boolean this_present_se = true && this.isSetSe();
9135
      boolean that_present_se = true && that.isSetSe();
9136
      if (this_present_se || that_present_se) {
9137
        if (!(this_present_se && that_present_se))
9138
          return false;
9139
        if (!this.se.equals(that.se))
9140
          return false;
9141
      }
9142
 
9143
      return true;
9144
    }
9145
 
9146
    @Override
9147
    public int hashCode() {
9148
      return 0;
9149
    }
9150
 
9151
    public int compareTo(getDestinationCode_result other) {
9152
      if (!getClass().equals(other.getClass())) {
9153
        return getClass().getName().compareTo(other.getClass().getName());
9154
      }
9155
 
9156
      int lastComparison = 0;
9157
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9158
 
3430 rajveer 9159
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9160
      if (lastComparison != 0) {
9161
        return lastComparison;
9162
      }
3430 rajveer 9163
      if (isSetSuccess()) {
9164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9165
        if (lastComparison != 0) {
9166
          return lastComparison;
9167
        }
730 chandransh 9168
      }
3430 rajveer 9169
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9170
      if (lastComparison != 0) {
9171
        return lastComparison;
9172
      }
3430 rajveer 9173
      if (isSetSe()) {
9174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9175
        if (lastComparison != 0) {
9176
          return lastComparison;
9177
        }
730 chandransh 9178
      }
9179
      return 0;
9180
    }
9181
 
3430 rajveer 9182
    public _Fields fieldForId(int fieldId) {
9183
      return _Fields.findByThriftId(fieldId);
9184
    }
9185
 
9186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9187
      org.apache.thrift.protocol.TField field;
730 chandransh 9188
      iprot.readStructBegin();
9189
      while (true)
9190
      {
9191
        field = iprot.readFieldBegin();
3430 rajveer 9192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9193
          break;
9194
        }
3430 rajveer 9195
        switch (field.id) {
9196
          case 0: // SUCCESS
9197
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9198
              this.success = iprot.readString();
9199
            } else { 
9200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9201
            }
9202
            break;
9203
          case 1: // SE
9204
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9205
              this.se = new LogisticsServiceException();
9206
              this.se.read(iprot);
9207
            } else { 
9208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9209
            }
9210
            break;
9211
          default:
9212
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9213
        }
3430 rajveer 9214
        iprot.readFieldEnd();
730 chandransh 9215
      }
9216
      iprot.readStructEnd();
9217
      validate();
9218
    }
9219
 
3430 rajveer 9220
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9221
      oprot.writeStructBegin(STRUCT_DESC);
9222
 
9223
      if (this.isSetSuccess()) {
9224
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9225
        oprot.writeString(this.success);
9226
        oprot.writeFieldEnd();
9227
      } else if (this.isSetSe()) {
9228
        oprot.writeFieldBegin(SE_FIELD_DESC);
9229
        this.se.write(oprot);
9230
        oprot.writeFieldEnd();
9231
      }
9232
      oprot.writeFieldStop();
9233
      oprot.writeStructEnd();
9234
    }
9235
 
9236
    @Override
9237
    public String toString() {
9238
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9239
      boolean first = true;
9240
 
9241
      sb.append("success:");
9242
      if (this.success == null) {
9243
        sb.append("null");
9244
      } else {
9245
        sb.append(this.success);
9246
      }
9247
      first = false;
9248
      if (!first) sb.append(", ");
9249
      sb.append("se:");
9250
      if (this.se == null) {
9251
        sb.append("null");
9252
      } else {
9253
        sb.append(this.se);
9254
      }
9255
      first = false;
9256
      sb.append(")");
9257
      return sb.toString();
9258
    }
9259
 
3430 rajveer 9260
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9261
      // check for required fields
9262
    }
9263
 
3430 rajveer 9264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9265
      try {
9266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9267
      } catch (org.apache.thrift.TException te) {
9268
        throw new java.io.IOException(te);
9269
      }
9270
    }
9271
 
9272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9273
      try {
9274
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9275
      } catch (org.apache.thrift.TException te) {
9276
        throw new java.io.IOException(te);
9277
      }
9278
    }
9279
 
730 chandransh 9280
  }
9281
 
3430 rajveer 9282
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9283
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9284
 
3430 rajveer 9285
    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);
9286
    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 9287
 
3430 rajveer 9288
    private long providerId; // required
9289
    private String type; // required
1139 chandransh 9290
 
9291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9292
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9293
      PROVIDER_ID((short)1, "providerId"),
9294
      TYPE((short)2, "type");
1139 chandransh 9295
 
9296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9297
 
9298
      static {
9299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9300
          byName.put(field.getFieldName(), field);
9301
        }
9302
      }
9303
 
9304
      /**
9305
       * Find the _Fields constant that matches fieldId, or null if its not found.
9306
       */
9307
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9308
        switch(fieldId) {
9309
          case 1: // PROVIDER_ID
9310
            return PROVIDER_ID;
9311
          case 2: // TYPE
9312
            return TYPE;
9313
          default:
9314
            return null;
9315
        }
1139 chandransh 9316
      }
9317
 
9318
      /**
9319
       * Find the _Fields constant that matches fieldId, throwing an exception
9320
       * if it is not found.
9321
       */
9322
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9323
        _Fields fields = findByThriftId(fieldId);
9324
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9325
        return fields;
9326
      }
9327
 
9328
      /**
9329
       * Find the _Fields constant that matches name, or null if its not found.
9330
       */
9331
      public static _Fields findByName(String name) {
9332
        return byName.get(name);
9333
      }
9334
 
9335
      private final short _thriftId;
9336
      private final String _fieldName;
9337
 
9338
      _Fields(short thriftId, String fieldName) {
9339
        _thriftId = thriftId;
9340
        _fieldName = fieldName;
9341
      }
9342
 
9343
      public short getThriftFieldId() {
9344
        return _thriftId;
9345
      }
9346
 
9347
      public String getFieldName() {
9348
        return _fieldName;
9349
      }
9350
    }
9351
 
9352
    // isset id assignments
9353
    private static final int __PROVIDERID_ISSET_ID = 0;
9354
    private BitSet __isset_bit_vector = new BitSet(1);
9355
 
3430 rajveer 9356
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9357
    static {
3430 rajveer 9358
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9359
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9360
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9361
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9365
    }
9366
 
9367
    public getFreeAwbCount_args() {
9368
    }
9369
 
9370
    public getFreeAwbCount_args(
3103 chandransh 9371
      long providerId,
9372
      String type)
1139 chandransh 9373
    {
9374
      this();
9375
      this.providerId = providerId;
9376
      setProviderIdIsSet(true);
3103 chandransh 9377
      this.type = type;
1139 chandransh 9378
    }
9379
 
9380
    /**
9381
     * Performs a deep copy on <i>other</i>.
9382
     */
9383
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9384
      __isset_bit_vector.clear();
9385
      __isset_bit_vector.or(other.__isset_bit_vector);
9386
      this.providerId = other.providerId;
3103 chandransh 9387
      if (other.isSetType()) {
9388
        this.type = other.type;
9389
      }
1139 chandransh 9390
    }
9391
 
9392
    public getFreeAwbCount_args deepCopy() {
9393
      return new getFreeAwbCount_args(this);
9394
    }
9395
 
3430 rajveer 9396
    @Override
9397
    public void clear() {
9398
      setProviderIdIsSet(false);
9399
      this.providerId = 0;
9400
      this.type = null;
1139 chandransh 9401
    }
9402
 
9403
    public long getProviderId() {
9404
      return this.providerId;
9405
    }
9406
 
3430 rajveer 9407
    public void setProviderId(long providerId) {
1139 chandransh 9408
      this.providerId = providerId;
9409
      setProviderIdIsSet(true);
9410
    }
9411
 
9412
    public void unsetProviderId() {
9413
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9414
    }
9415
 
3430 rajveer 9416
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9417
    public boolean isSetProviderId() {
9418
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9419
    }
9420
 
9421
    public void setProviderIdIsSet(boolean value) {
9422
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9423
    }
9424
 
3103 chandransh 9425
    public String getType() {
9426
      return this.type;
9427
    }
9428
 
3430 rajveer 9429
    public void setType(String type) {
3103 chandransh 9430
      this.type = type;
9431
    }
9432
 
9433
    public void unsetType() {
9434
      this.type = null;
9435
    }
9436
 
3430 rajveer 9437
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9438
    public boolean isSetType() {
9439
      return this.type != null;
9440
    }
9441
 
9442
    public void setTypeIsSet(boolean value) {
9443
      if (!value) {
9444
        this.type = null;
9445
      }
9446
    }
9447
 
1139 chandransh 9448
    public void setFieldValue(_Fields field, Object value) {
9449
      switch (field) {
9450
      case PROVIDER_ID:
9451
        if (value == null) {
9452
          unsetProviderId();
9453
        } else {
9454
          setProviderId((Long)value);
9455
        }
9456
        break;
9457
 
3103 chandransh 9458
      case TYPE:
9459
        if (value == null) {
9460
          unsetType();
9461
        } else {
9462
          setType((String)value);
9463
        }
9464
        break;
9465
 
1139 chandransh 9466
      }
9467
    }
9468
 
9469
    public Object getFieldValue(_Fields field) {
9470
      switch (field) {
9471
      case PROVIDER_ID:
3430 rajveer 9472
        return Long.valueOf(getProviderId());
1139 chandransh 9473
 
3103 chandransh 9474
      case TYPE:
9475
        return getType();
9476
 
1139 chandransh 9477
      }
9478
      throw new IllegalStateException();
9479
    }
9480
 
3430 rajveer 9481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9482
    public boolean isSet(_Fields field) {
9483
      if (field == null) {
9484
        throw new IllegalArgumentException();
9485
      }
1139 chandransh 9486
 
9487
      switch (field) {
9488
      case PROVIDER_ID:
9489
        return isSetProviderId();
3103 chandransh 9490
      case TYPE:
9491
        return isSetType();
1139 chandransh 9492
      }
9493
      throw new IllegalStateException();
9494
    }
9495
 
9496
    @Override
9497
    public boolean equals(Object that) {
9498
      if (that == null)
9499
        return false;
9500
      if (that instanceof getFreeAwbCount_args)
9501
        return this.equals((getFreeAwbCount_args)that);
9502
      return false;
9503
    }
9504
 
9505
    public boolean equals(getFreeAwbCount_args that) {
9506
      if (that == null)
9507
        return false;
9508
 
9509
      boolean this_present_providerId = true;
9510
      boolean that_present_providerId = true;
9511
      if (this_present_providerId || that_present_providerId) {
9512
        if (!(this_present_providerId && that_present_providerId))
9513
          return false;
9514
        if (this.providerId != that.providerId)
9515
          return false;
9516
      }
9517
 
3103 chandransh 9518
      boolean this_present_type = true && this.isSetType();
9519
      boolean that_present_type = true && that.isSetType();
9520
      if (this_present_type || that_present_type) {
9521
        if (!(this_present_type && that_present_type))
9522
          return false;
9523
        if (!this.type.equals(that.type))
9524
          return false;
9525
      }
9526
 
1139 chandransh 9527
      return true;
9528
    }
9529
 
9530
    @Override
9531
    public int hashCode() {
9532
      return 0;
9533
    }
9534
 
9535
    public int compareTo(getFreeAwbCount_args other) {
9536
      if (!getClass().equals(other.getClass())) {
9537
        return getClass().getName().compareTo(other.getClass().getName());
9538
      }
9539
 
9540
      int lastComparison = 0;
9541
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9542
 
3430 rajveer 9543
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9544
      if (lastComparison != 0) {
9545
        return lastComparison;
9546
      }
3430 rajveer 9547
      if (isSetProviderId()) {
9548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9549
        if (lastComparison != 0) {
9550
          return lastComparison;
9551
        }
1139 chandransh 9552
      }
3430 rajveer 9553
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9554
      if (lastComparison != 0) {
9555
        return lastComparison;
9556
      }
3430 rajveer 9557
      if (isSetType()) {
9558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9559
        if (lastComparison != 0) {
9560
          return lastComparison;
9561
        }
3103 chandransh 9562
      }
1139 chandransh 9563
      return 0;
9564
    }
9565
 
3430 rajveer 9566
    public _Fields fieldForId(int fieldId) {
9567
      return _Fields.findByThriftId(fieldId);
9568
    }
9569
 
9570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9571
      org.apache.thrift.protocol.TField field;
1139 chandransh 9572
      iprot.readStructBegin();
9573
      while (true)
9574
      {
9575
        field = iprot.readFieldBegin();
3430 rajveer 9576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9577
          break;
9578
        }
3430 rajveer 9579
        switch (field.id) {
9580
          case 1: // PROVIDER_ID
9581
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9582
              this.providerId = iprot.readI64();
9583
              setProviderIdIsSet(true);
9584
            } else { 
9585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9586
            }
9587
            break;
9588
          case 2: // TYPE
9589
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9590
              this.type = iprot.readString();
9591
            } else { 
9592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9593
            }
9594
            break;
9595
          default:
9596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9597
        }
3430 rajveer 9598
        iprot.readFieldEnd();
1139 chandransh 9599
      }
9600
      iprot.readStructEnd();
9601
      validate();
9602
    }
9603
 
3430 rajveer 9604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9605
      validate();
9606
 
9607
      oprot.writeStructBegin(STRUCT_DESC);
9608
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9609
      oprot.writeI64(this.providerId);
9610
      oprot.writeFieldEnd();
3103 chandransh 9611
      if (this.type != null) {
9612
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9613
        oprot.writeString(this.type);
9614
        oprot.writeFieldEnd();
9615
      }
1139 chandransh 9616
      oprot.writeFieldStop();
9617
      oprot.writeStructEnd();
9618
    }
9619
 
9620
    @Override
9621
    public String toString() {
9622
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9623
      boolean first = true;
9624
 
9625
      sb.append("providerId:");
9626
      sb.append(this.providerId);
9627
      first = false;
3103 chandransh 9628
      if (!first) sb.append(", ");
9629
      sb.append("type:");
9630
      if (this.type == null) {
9631
        sb.append("null");
9632
      } else {
9633
        sb.append(this.type);
9634
      }
9635
      first = false;
1139 chandransh 9636
      sb.append(")");
9637
      return sb.toString();
9638
    }
9639
 
3430 rajveer 9640
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9641
      // check for required fields
9642
    }
9643
 
3430 rajveer 9644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9645
      try {
9646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9647
      } catch (org.apache.thrift.TException te) {
9648
        throw new java.io.IOException(te);
9649
      }
9650
    }
9651
 
9652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9653
      try {
9654
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9655
      } catch (org.apache.thrift.TException te) {
9656
        throw new java.io.IOException(te);
9657
      }
9658
    }
9659
 
1139 chandransh 9660
  }
9661
 
3430 rajveer 9662
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9663
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9664
 
3430 rajveer 9665
    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 9666
 
3430 rajveer 9667
    private long success; // required
1139 chandransh 9668
 
9669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9671
      SUCCESS((short)0, "success");
9672
 
9673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9674
 
9675
      static {
9676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9677
          byName.put(field.getFieldName(), field);
9678
        }
9679
      }
9680
 
9681
      /**
9682
       * Find the _Fields constant that matches fieldId, or null if its not found.
9683
       */
9684
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9685
        switch(fieldId) {
9686
          case 0: // SUCCESS
9687
            return SUCCESS;
9688
          default:
9689
            return null;
9690
        }
1139 chandransh 9691
      }
9692
 
9693
      /**
9694
       * Find the _Fields constant that matches fieldId, throwing an exception
9695
       * if it is not found.
9696
       */
9697
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9698
        _Fields fields = findByThriftId(fieldId);
9699
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9700
        return fields;
9701
      }
9702
 
9703
      /**
9704
       * Find the _Fields constant that matches name, or null if its not found.
9705
       */
9706
      public static _Fields findByName(String name) {
9707
        return byName.get(name);
9708
      }
9709
 
9710
      private final short _thriftId;
9711
      private final String _fieldName;
9712
 
9713
      _Fields(short thriftId, String fieldName) {
9714
        _thriftId = thriftId;
9715
        _fieldName = fieldName;
9716
      }
9717
 
9718
      public short getThriftFieldId() {
9719
        return _thriftId;
9720
      }
9721
 
9722
      public String getFieldName() {
9723
        return _fieldName;
9724
      }
9725
    }
9726
 
9727
    // isset id assignments
9728
    private static final int __SUCCESS_ISSET_ID = 0;
9729
    private BitSet __isset_bit_vector = new BitSet(1);
9730
 
3430 rajveer 9731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9732
    static {
3430 rajveer 9733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9734
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9738
    }
9739
 
9740
    public getFreeAwbCount_result() {
9741
    }
9742
 
9743
    public getFreeAwbCount_result(
9744
      long success)
9745
    {
9746
      this();
9747
      this.success = success;
9748
      setSuccessIsSet(true);
9749
    }
9750
 
9751
    /**
9752
     * Performs a deep copy on <i>other</i>.
9753
     */
9754
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9755
      __isset_bit_vector.clear();
9756
      __isset_bit_vector.or(other.__isset_bit_vector);
9757
      this.success = other.success;
9758
    }
9759
 
9760
    public getFreeAwbCount_result deepCopy() {
9761
      return new getFreeAwbCount_result(this);
9762
    }
9763
 
3430 rajveer 9764
    @Override
9765
    public void clear() {
9766
      setSuccessIsSet(false);
9767
      this.success = 0;
1139 chandransh 9768
    }
9769
 
9770
    public long getSuccess() {
9771
      return this.success;
9772
    }
9773
 
3430 rajveer 9774
    public void setSuccess(long success) {
1139 chandransh 9775
      this.success = success;
9776
      setSuccessIsSet(true);
9777
    }
9778
 
9779
    public void unsetSuccess() {
9780
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9781
    }
9782
 
3430 rajveer 9783
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9784
    public boolean isSetSuccess() {
9785
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9786
    }
9787
 
9788
    public void setSuccessIsSet(boolean value) {
9789
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9790
    }
9791
 
9792
    public void setFieldValue(_Fields field, Object value) {
9793
      switch (field) {
9794
      case SUCCESS:
9795
        if (value == null) {
9796
          unsetSuccess();
9797
        } else {
9798
          setSuccess((Long)value);
9799
        }
9800
        break;
9801
 
9802
      }
9803
    }
9804
 
9805
    public Object getFieldValue(_Fields field) {
9806
      switch (field) {
9807
      case SUCCESS:
3430 rajveer 9808
        return Long.valueOf(getSuccess());
1139 chandransh 9809
 
9810
      }
9811
      throw new IllegalStateException();
9812
    }
9813
 
3430 rajveer 9814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9815
    public boolean isSet(_Fields field) {
9816
      if (field == null) {
9817
        throw new IllegalArgumentException();
9818
      }
1139 chandransh 9819
 
9820
      switch (field) {
9821
      case SUCCESS:
9822
        return isSetSuccess();
9823
      }
9824
      throw new IllegalStateException();
9825
    }
9826
 
9827
    @Override
9828
    public boolean equals(Object that) {
9829
      if (that == null)
9830
        return false;
9831
      if (that instanceof getFreeAwbCount_result)
9832
        return this.equals((getFreeAwbCount_result)that);
9833
      return false;
9834
    }
9835
 
9836
    public boolean equals(getFreeAwbCount_result that) {
9837
      if (that == null)
9838
        return false;
9839
 
9840
      boolean this_present_success = true;
9841
      boolean that_present_success = true;
9842
      if (this_present_success || that_present_success) {
9843
        if (!(this_present_success && that_present_success))
9844
          return false;
9845
        if (this.success != that.success)
9846
          return false;
9847
      }
9848
 
9849
      return true;
9850
    }
9851
 
9852
    @Override
9853
    public int hashCode() {
9854
      return 0;
9855
    }
9856
 
9857
    public int compareTo(getFreeAwbCount_result other) {
9858
      if (!getClass().equals(other.getClass())) {
9859
        return getClass().getName().compareTo(other.getClass().getName());
9860
      }
9861
 
9862
      int lastComparison = 0;
9863
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9864
 
3430 rajveer 9865
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9866
      if (lastComparison != 0) {
9867
        return lastComparison;
9868
      }
3430 rajveer 9869
      if (isSetSuccess()) {
9870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9871
        if (lastComparison != 0) {
9872
          return lastComparison;
9873
        }
1139 chandransh 9874
      }
9875
      return 0;
9876
    }
9877
 
3430 rajveer 9878
    public _Fields fieldForId(int fieldId) {
9879
      return _Fields.findByThriftId(fieldId);
9880
    }
9881
 
9882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9883
      org.apache.thrift.protocol.TField field;
1139 chandransh 9884
      iprot.readStructBegin();
9885
      while (true)
9886
      {
9887
        field = iprot.readFieldBegin();
3430 rajveer 9888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9889
          break;
9890
        }
3430 rajveer 9891
        switch (field.id) {
9892
          case 0: // SUCCESS
9893
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9894
              this.success = iprot.readI64();
9895
              setSuccessIsSet(true);
9896
            } else { 
9897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9898
            }
9899
            break;
9900
          default:
9901
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9902
        }
3430 rajveer 9903
        iprot.readFieldEnd();
1139 chandransh 9904
      }
9905
      iprot.readStructEnd();
9906
      validate();
9907
    }
9908
 
3430 rajveer 9909
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9910
      oprot.writeStructBegin(STRUCT_DESC);
9911
 
9912
      if (this.isSetSuccess()) {
9913
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9914
        oprot.writeI64(this.success);
9915
        oprot.writeFieldEnd();
9916
      }
9917
      oprot.writeFieldStop();
9918
      oprot.writeStructEnd();
9919
    }
9920
 
9921
    @Override
9922
    public String toString() {
9923
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9924
      boolean first = true;
9925
 
9926
      sb.append("success:");
9927
      sb.append(this.success);
9928
      first = false;
9929
      sb.append(")");
9930
      return sb.toString();
9931
    }
9932
 
3430 rajveer 9933
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9934
      // check for required fields
9935
    }
9936
 
3430 rajveer 9937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9938
      try {
9939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9940
      } catch (org.apache.thrift.TException te) {
9941
        throw new java.io.IOException(te);
9942
      }
9943
    }
9944
 
9945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9946
      try {
9947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9948
      } catch (org.apache.thrift.TException te) {
9949
        throw new java.io.IOException(te);
9950
      }
9951
    }
9952
 
1139 chandransh 9953
  }
9954
 
3430 rajveer 9955
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9957
 
3430 rajveer 9958
    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);
9959
    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 9960
 
3430 rajveer 9961
    private long fromDate; // required
9962
    private long toDate; // required
1730 ankur.sing 9963
 
9964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9966
      FROM_DATE((short)1, "fromDate"),
9967
      TO_DATE((short)2, "toDate");
9968
 
9969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9970
 
9971
      static {
9972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9973
          byName.put(field.getFieldName(), field);
9974
        }
9975
      }
9976
 
9977
      /**
9978
       * Find the _Fields constant that matches fieldId, or null if its not found.
9979
       */
9980
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9981
        switch(fieldId) {
9982
          case 1: // FROM_DATE
9983
            return FROM_DATE;
9984
          case 2: // TO_DATE
9985
            return TO_DATE;
9986
          default:
9987
            return null;
9988
        }
1730 ankur.sing 9989
      }
9990
 
9991
      /**
9992
       * Find the _Fields constant that matches fieldId, throwing an exception
9993
       * if it is not found.
9994
       */
9995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9996
        _Fields fields = findByThriftId(fieldId);
9997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9998
        return fields;
9999
      }
10000
 
10001
      /**
10002
       * Find the _Fields constant that matches name, or null if its not found.
10003
       */
10004
      public static _Fields findByName(String name) {
10005
        return byName.get(name);
10006
      }
10007
 
10008
      private final short _thriftId;
10009
      private final String _fieldName;
10010
 
10011
      _Fields(short thriftId, String fieldName) {
10012
        _thriftId = thriftId;
10013
        _fieldName = fieldName;
10014
      }
10015
 
10016
      public short getThriftFieldId() {
10017
        return _thriftId;
10018
      }
10019
 
10020
      public String getFieldName() {
10021
        return _fieldName;
10022
      }
10023
    }
10024
 
10025
    // isset id assignments
10026
    private static final int __FROMDATE_ISSET_ID = 0;
10027
    private static final int __TODATE_ISSET_ID = 1;
10028
    private BitSet __isset_bit_vector = new BitSet(2);
10029
 
3430 rajveer 10030
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10031
    static {
3430 rajveer 10032
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10033
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10034
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10035
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 10039
    }
10040
 
10041
    public getHolidays_args() {
10042
    }
10043
 
10044
    public getHolidays_args(
10045
      long fromDate,
10046
      long toDate)
10047
    {
10048
      this();
10049
      this.fromDate = fromDate;
10050
      setFromDateIsSet(true);
10051
      this.toDate = toDate;
10052
      setToDateIsSet(true);
10053
    }
10054
 
10055
    /**
10056
     * Performs a deep copy on <i>other</i>.
10057
     */
10058
    public getHolidays_args(getHolidays_args other) {
10059
      __isset_bit_vector.clear();
10060
      __isset_bit_vector.or(other.__isset_bit_vector);
10061
      this.fromDate = other.fromDate;
10062
      this.toDate = other.toDate;
10063
    }
10064
 
10065
    public getHolidays_args deepCopy() {
10066
      return new getHolidays_args(this);
10067
    }
10068
 
3430 rajveer 10069
    @Override
10070
    public void clear() {
10071
      setFromDateIsSet(false);
10072
      this.fromDate = 0;
10073
      setToDateIsSet(false);
10074
      this.toDate = 0;
1730 ankur.sing 10075
    }
10076
 
10077
    public long getFromDate() {
10078
      return this.fromDate;
10079
    }
10080
 
3430 rajveer 10081
    public void setFromDate(long fromDate) {
1730 ankur.sing 10082
      this.fromDate = fromDate;
10083
      setFromDateIsSet(true);
10084
    }
10085
 
10086
    public void unsetFromDate() {
10087
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
10088
    }
10089
 
3430 rajveer 10090
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10091
    public boolean isSetFromDate() {
10092
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
10093
    }
10094
 
10095
    public void setFromDateIsSet(boolean value) {
10096
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
10097
    }
10098
 
10099
    public long getToDate() {
10100
      return this.toDate;
10101
    }
10102
 
3430 rajveer 10103
    public void setToDate(long toDate) {
1730 ankur.sing 10104
      this.toDate = toDate;
10105
      setToDateIsSet(true);
10106
    }
10107
 
10108
    public void unsetToDate() {
10109
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10110
    }
10111
 
3430 rajveer 10112
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10113
    public boolean isSetToDate() {
10114
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10115
    }
10116
 
10117
    public void setToDateIsSet(boolean value) {
10118
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10119
    }
10120
 
10121
    public void setFieldValue(_Fields field, Object value) {
10122
      switch (field) {
10123
      case FROM_DATE:
10124
        if (value == null) {
10125
          unsetFromDate();
10126
        } else {
10127
          setFromDate((Long)value);
10128
        }
10129
        break;
10130
 
10131
      case TO_DATE:
10132
        if (value == null) {
10133
          unsetToDate();
10134
        } else {
10135
          setToDate((Long)value);
10136
        }
10137
        break;
10138
 
10139
      }
10140
    }
10141
 
10142
    public Object getFieldValue(_Fields field) {
10143
      switch (field) {
10144
      case FROM_DATE:
3430 rajveer 10145
        return Long.valueOf(getFromDate());
1730 ankur.sing 10146
 
10147
      case TO_DATE:
3430 rajveer 10148
        return Long.valueOf(getToDate());
1730 ankur.sing 10149
 
10150
      }
10151
      throw new IllegalStateException();
10152
    }
10153
 
3430 rajveer 10154
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10155
    public boolean isSet(_Fields field) {
10156
      if (field == null) {
10157
        throw new IllegalArgumentException();
10158
      }
1730 ankur.sing 10159
 
10160
      switch (field) {
10161
      case FROM_DATE:
10162
        return isSetFromDate();
10163
      case TO_DATE:
10164
        return isSetToDate();
10165
      }
10166
      throw new IllegalStateException();
10167
    }
10168
 
10169
    @Override
10170
    public boolean equals(Object that) {
10171
      if (that == null)
10172
        return false;
10173
      if (that instanceof getHolidays_args)
10174
        return this.equals((getHolidays_args)that);
10175
      return false;
10176
    }
10177
 
10178
    public boolean equals(getHolidays_args that) {
10179
      if (that == null)
10180
        return false;
10181
 
10182
      boolean this_present_fromDate = true;
10183
      boolean that_present_fromDate = true;
10184
      if (this_present_fromDate || that_present_fromDate) {
10185
        if (!(this_present_fromDate && that_present_fromDate))
10186
          return false;
10187
        if (this.fromDate != that.fromDate)
10188
          return false;
10189
      }
10190
 
10191
      boolean this_present_toDate = true;
10192
      boolean that_present_toDate = true;
10193
      if (this_present_toDate || that_present_toDate) {
10194
        if (!(this_present_toDate && that_present_toDate))
10195
          return false;
10196
        if (this.toDate != that.toDate)
10197
          return false;
10198
      }
10199
 
10200
      return true;
10201
    }
10202
 
10203
    @Override
10204
    public int hashCode() {
10205
      return 0;
10206
    }
10207
 
10208
    public int compareTo(getHolidays_args other) {
10209
      if (!getClass().equals(other.getClass())) {
10210
        return getClass().getName().compareTo(other.getClass().getName());
10211
      }
10212
 
10213
      int lastComparison = 0;
10214
      getHolidays_args typedOther = (getHolidays_args)other;
10215
 
3430 rajveer 10216
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10217
      if (lastComparison != 0) {
10218
        return lastComparison;
10219
      }
3430 rajveer 10220
      if (isSetFromDate()) {
10221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10222
        if (lastComparison != 0) {
10223
          return lastComparison;
10224
        }
1730 ankur.sing 10225
      }
3430 rajveer 10226
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10227
      if (lastComparison != 0) {
10228
        return lastComparison;
10229
      }
3430 rajveer 10230
      if (isSetToDate()) {
10231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10232
        if (lastComparison != 0) {
10233
          return lastComparison;
10234
        }
1730 ankur.sing 10235
      }
10236
      return 0;
10237
    }
10238
 
3430 rajveer 10239
    public _Fields fieldForId(int fieldId) {
10240
      return _Fields.findByThriftId(fieldId);
10241
    }
10242
 
10243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10244
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10245
      iprot.readStructBegin();
10246
      while (true)
10247
      {
10248
        field = iprot.readFieldBegin();
3430 rajveer 10249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10250
          break;
10251
        }
3430 rajveer 10252
        switch (field.id) {
10253
          case 1: // FROM_DATE
10254
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10255
              this.fromDate = iprot.readI64();
10256
              setFromDateIsSet(true);
10257
            } else { 
10258
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10259
            }
10260
            break;
10261
          case 2: // TO_DATE
10262
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10263
              this.toDate = iprot.readI64();
10264
              setToDateIsSet(true);
10265
            } else { 
10266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10267
            }
10268
            break;
10269
          default:
10270
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10271
        }
3430 rajveer 10272
        iprot.readFieldEnd();
1730 ankur.sing 10273
      }
10274
      iprot.readStructEnd();
10275
      validate();
10276
    }
10277
 
3430 rajveer 10278
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10279
      validate();
10280
 
10281
      oprot.writeStructBegin(STRUCT_DESC);
10282
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10283
      oprot.writeI64(this.fromDate);
10284
      oprot.writeFieldEnd();
10285
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10286
      oprot.writeI64(this.toDate);
10287
      oprot.writeFieldEnd();
10288
      oprot.writeFieldStop();
10289
      oprot.writeStructEnd();
10290
    }
10291
 
10292
    @Override
10293
    public String toString() {
10294
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10295
      boolean first = true;
10296
 
10297
      sb.append("fromDate:");
10298
      sb.append(this.fromDate);
10299
      first = false;
10300
      if (!first) sb.append(", ");
10301
      sb.append("toDate:");
10302
      sb.append(this.toDate);
10303
      first = false;
10304
      sb.append(")");
10305
      return sb.toString();
10306
    }
10307
 
3430 rajveer 10308
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10309
      // check for required fields
10310
    }
10311
 
3430 rajveer 10312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10313
      try {
10314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10315
      } catch (org.apache.thrift.TException te) {
10316
        throw new java.io.IOException(te);
10317
      }
10318
    }
10319
 
10320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10321
      try {
10322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10323
      } catch (org.apache.thrift.TException te) {
10324
        throw new java.io.IOException(te);
10325
      }
10326
    }
10327
 
1730 ankur.sing 10328
  }
10329
 
3430 rajveer 10330
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10332
 
3430 rajveer 10333
    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 10334
 
3430 rajveer 10335
    private List<Long> success; // required
1730 ankur.sing 10336
 
10337
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10338
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10339
      SUCCESS((short)0, "success");
10340
 
10341
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10342
 
10343
      static {
10344
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10345
          byName.put(field.getFieldName(), field);
10346
        }
10347
      }
10348
 
10349
      /**
10350
       * Find the _Fields constant that matches fieldId, or null if its not found.
10351
       */
10352
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10353
        switch(fieldId) {
10354
          case 0: // SUCCESS
10355
            return SUCCESS;
10356
          default:
10357
            return null;
10358
        }
1730 ankur.sing 10359
      }
10360
 
10361
      /**
10362
       * Find the _Fields constant that matches fieldId, throwing an exception
10363
       * if it is not found.
10364
       */
10365
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10366
        _Fields fields = findByThriftId(fieldId);
10367
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10368
        return fields;
10369
      }
10370
 
10371
      /**
10372
       * Find the _Fields constant that matches name, or null if its not found.
10373
       */
10374
      public static _Fields findByName(String name) {
10375
        return byName.get(name);
10376
      }
10377
 
10378
      private final short _thriftId;
10379
      private final String _fieldName;
10380
 
10381
      _Fields(short thriftId, String fieldName) {
10382
        _thriftId = thriftId;
10383
        _fieldName = fieldName;
10384
      }
10385
 
10386
      public short getThriftFieldId() {
10387
        return _thriftId;
10388
      }
10389
 
10390
      public String getFieldName() {
10391
        return _fieldName;
10392
      }
10393
    }
10394
 
10395
    // isset id assignments
10396
 
3430 rajveer 10397
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10398
    static {
3430 rajveer 10399
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10400
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10401
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10402
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10405
    }
10406
 
10407
    public getHolidays_result() {
10408
    }
10409
 
10410
    public getHolidays_result(
10411
      List<Long> success)
10412
    {
10413
      this();
10414
      this.success = success;
10415
    }
10416
 
10417
    /**
10418
     * Performs a deep copy on <i>other</i>.
10419
     */
10420
    public getHolidays_result(getHolidays_result other) {
10421
      if (other.isSetSuccess()) {
10422
        List<Long> __this__success = new ArrayList<Long>();
10423
        for (Long other_element : other.success) {
10424
          __this__success.add(other_element);
10425
        }
10426
        this.success = __this__success;
10427
      }
10428
    }
10429
 
10430
    public getHolidays_result deepCopy() {
10431
      return new getHolidays_result(this);
10432
    }
10433
 
3430 rajveer 10434
    @Override
10435
    public void clear() {
10436
      this.success = null;
1730 ankur.sing 10437
    }
10438
 
10439
    public int getSuccessSize() {
10440
      return (this.success == null) ? 0 : this.success.size();
10441
    }
10442
 
10443
    public java.util.Iterator<Long> getSuccessIterator() {
10444
      return (this.success == null) ? null : this.success.iterator();
10445
    }
10446
 
10447
    public void addToSuccess(long elem) {
10448
      if (this.success == null) {
10449
        this.success = new ArrayList<Long>();
10450
      }
10451
      this.success.add(elem);
10452
    }
10453
 
10454
    public List<Long> getSuccess() {
10455
      return this.success;
10456
    }
10457
 
3430 rajveer 10458
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10459
      this.success = success;
10460
    }
10461
 
10462
    public void unsetSuccess() {
10463
      this.success = null;
10464
    }
10465
 
3430 rajveer 10466
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10467
    public boolean isSetSuccess() {
10468
      return this.success != null;
10469
    }
10470
 
10471
    public void setSuccessIsSet(boolean value) {
10472
      if (!value) {
10473
        this.success = null;
10474
      }
10475
    }
10476
 
10477
    public void setFieldValue(_Fields field, Object value) {
10478
      switch (field) {
10479
      case SUCCESS:
10480
        if (value == null) {
10481
          unsetSuccess();
10482
        } else {
10483
          setSuccess((List<Long>)value);
10484
        }
10485
        break;
10486
 
10487
      }
10488
    }
10489
 
10490
    public Object getFieldValue(_Fields field) {
10491
      switch (field) {
10492
      case SUCCESS:
10493
        return getSuccess();
10494
 
10495
      }
10496
      throw new IllegalStateException();
10497
    }
10498
 
3430 rajveer 10499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10500
    public boolean isSet(_Fields field) {
10501
      if (field == null) {
10502
        throw new IllegalArgumentException();
10503
      }
1730 ankur.sing 10504
 
10505
      switch (field) {
10506
      case SUCCESS:
10507
        return isSetSuccess();
10508
      }
10509
      throw new IllegalStateException();
10510
    }
10511
 
10512
    @Override
10513
    public boolean equals(Object that) {
10514
      if (that == null)
10515
        return false;
10516
      if (that instanceof getHolidays_result)
10517
        return this.equals((getHolidays_result)that);
10518
      return false;
10519
    }
10520
 
10521
    public boolean equals(getHolidays_result that) {
10522
      if (that == null)
10523
        return false;
10524
 
10525
      boolean this_present_success = true && this.isSetSuccess();
10526
      boolean that_present_success = true && that.isSetSuccess();
10527
      if (this_present_success || that_present_success) {
10528
        if (!(this_present_success && that_present_success))
10529
          return false;
10530
        if (!this.success.equals(that.success))
10531
          return false;
10532
      }
10533
 
10534
      return true;
10535
    }
10536
 
10537
    @Override
10538
    public int hashCode() {
10539
      return 0;
10540
    }
10541
 
10542
    public int compareTo(getHolidays_result other) {
10543
      if (!getClass().equals(other.getClass())) {
10544
        return getClass().getName().compareTo(other.getClass().getName());
10545
      }
10546
 
10547
      int lastComparison = 0;
10548
      getHolidays_result typedOther = (getHolidays_result)other;
10549
 
3430 rajveer 10550
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10551
      if (lastComparison != 0) {
10552
        return lastComparison;
10553
      }
3430 rajveer 10554
      if (isSetSuccess()) {
10555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10556
        if (lastComparison != 0) {
10557
          return lastComparison;
10558
        }
1730 ankur.sing 10559
      }
10560
      return 0;
10561
    }
10562
 
3430 rajveer 10563
    public _Fields fieldForId(int fieldId) {
10564
      return _Fields.findByThriftId(fieldId);
10565
    }
10566
 
10567
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10568
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10569
      iprot.readStructBegin();
10570
      while (true)
10571
      {
10572
        field = iprot.readFieldBegin();
3430 rajveer 10573
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10574
          break;
10575
        }
3430 rajveer 10576
        switch (field.id) {
10577
          case 0: // SUCCESS
10578
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10579
              {
7792 anupam.sin 10580
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10581
                this.success = new ArrayList<Long>(_list12.size);
10582
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10583
                {
7792 anupam.sin 10584
                  long _elem14; // required
10585
                  _elem14 = iprot.readI64();
10586
                  this.success.add(_elem14);
1730 ankur.sing 10587
                }
3430 rajveer 10588
                iprot.readListEnd();
1730 ankur.sing 10589
              }
3430 rajveer 10590
            } else { 
10591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10592
            }
10593
            break;
10594
          default:
10595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10596
        }
3430 rajveer 10597
        iprot.readFieldEnd();
1730 ankur.sing 10598
      }
10599
      iprot.readStructEnd();
10600
      validate();
10601
    }
10602
 
3430 rajveer 10603
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10604
      oprot.writeStructBegin(STRUCT_DESC);
10605
 
10606
      if (this.isSetSuccess()) {
10607
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10608
        {
3430 rajveer 10609
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10610
          for (long _iter15 : this.success)
1730 ankur.sing 10611
          {
7792 anupam.sin 10612
            oprot.writeI64(_iter15);
1730 ankur.sing 10613
          }
10614
          oprot.writeListEnd();
10615
        }
10616
        oprot.writeFieldEnd();
10617
      }
10618
      oprot.writeFieldStop();
10619
      oprot.writeStructEnd();
10620
    }
10621
 
10622
    @Override
10623
    public String toString() {
10624
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10625
      boolean first = true;
10626
 
10627
      sb.append("success:");
10628
      if (this.success == null) {
10629
        sb.append("null");
10630
      } else {
10631
        sb.append(this.success);
10632
      }
10633
      first = false;
10634
      sb.append(")");
10635
      return sb.toString();
10636
    }
10637
 
3430 rajveer 10638
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10639
      // check for required fields
10640
    }
10641
 
3430 rajveer 10642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10643
      try {
10644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10645
      } catch (org.apache.thrift.TException te) {
10646
        throw new java.io.IOException(te);
10647
      }
10648
    }
10649
 
10650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10651
      try {
10652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10653
      } catch (org.apache.thrift.TException te) {
10654
        throw new java.io.IOException(te);
10655
      }
10656
    }
10657
 
1730 ankur.sing 10658
  }
10659
 
4934 amit.gupta 10660
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10662
 
10663
    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);
10664
    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);
10665
    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);
10666
 
10667
    private long catalogItemId; // required
10668
    private String destination_pin; // required
10669
    private DeliveryType type; // required
10670
 
10671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10673
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10674
      DESTINATION_PIN((short)2, "destination_pin"),
10675
      /**
10676
       * 
10677
       * @see DeliveryType
10678
       */
10679
      TYPE((short)3, "type");
10680
 
10681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10682
 
10683
      static {
10684
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10685
          byName.put(field.getFieldName(), field);
10686
        }
10687
      }
10688
 
10689
      /**
10690
       * Find the _Fields constant that matches fieldId, or null if its not found.
10691
       */
10692
      public static _Fields findByThriftId(int fieldId) {
10693
        switch(fieldId) {
10694
          case 1: // CATALOG_ITEM_ID
10695
            return CATALOG_ITEM_ID;
10696
          case 2: // DESTINATION_PIN
10697
            return DESTINATION_PIN;
10698
          case 3: // TYPE
10699
            return TYPE;
10700
          default:
10701
            return null;
10702
        }
10703
      }
10704
 
10705
      /**
10706
       * Find the _Fields constant that matches fieldId, throwing an exception
10707
       * if it is not found.
10708
       */
10709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10710
        _Fields fields = findByThriftId(fieldId);
10711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10712
        return fields;
10713
      }
10714
 
10715
      /**
10716
       * Find the _Fields constant that matches name, or null if its not found.
10717
       */
10718
      public static _Fields findByName(String name) {
10719
        return byName.get(name);
10720
      }
10721
 
10722
      private final short _thriftId;
10723
      private final String _fieldName;
10724
 
10725
      _Fields(short thriftId, String fieldName) {
10726
        _thriftId = thriftId;
10727
        _fieldName = fieldName;
10728
      }
10729
 
10730
      public short getThriftFieldId() {
10731
        return _thriftId;
10732
      }
10733
 
10734
      public String getFieldName() {
10735
        return _fieldName;
10736
      }
10737
    }
10738
 
10739
    // isset id assignments
10740
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10741
    private BitSet __isset_bit_vector = new BitSet(1);
10742
 
10743
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10744
    static {
10745
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10746
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10748
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10750
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10751
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10752
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10753
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10754
    }
10755
 
10756
    public getEntityLogisticsEstimation_args() {
10757
    }
10758
 
10759
    public getEntityLogisticsEstimation_args(
10760
      long catalogItemId,
10761
      String destination_pin,
10762
      DeliveryType type)
10763
    {
10764
      this();
10765
      this.catalogItemId = catalogItemId;
10766
      setCatalogItemIdIsSet(true);
10767
      this.destination_pin = destination_pin;
10768
      this.type = type;
10769
    }
10770
 
10771
    /**
10772
     * Performs a deep copy on <i>other</i>.
10773
     */
10774
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10775
      __isset_bit_vector.clear();
10776
      __isset_bit_vector.or(other.__isset_bit_vector);
10777
      this.catalogItemId = other.catalogItemId;
10778
      if (other.isSetDestination_pin()) {
10779
        this.destination_pin = other.destination_pin;
10780
      }
10781
      if (other.isSetType()) {
10782
        this.type = other.type;
10783
      }
10784
    }
10785
 
10786
    public getEntityLogisticsEstimation_args deepCopy() {
10787
      return new getEntityLogisticsEstimation_args(this);
10788
    }
10789
 
10790
    @Override
10791
    public void clear() {
10792
      setCatalogItemIdIsSet(false);
10793
      this.catalogItemId = 0;
10794
      this.destination_pin = null;
10795
      this.type = null;
10796
    }
10797
 
10798
    public long getCatalogItemId() {
10799
      return this.catalogItemId;
10800
    }
10801
 
10802
    public void setCatalogItemId(long catalogItemId) {
10803
      this.catalogItemId = catalogItemId;
10804
      setCatalogItemIdIsSet(true);
10805
    }
10806
 
10807
    public void unsetCatalogItemId() {
10808
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10809
    }
10810
 
10811
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10812
    public boolean isSetCatalogItemId() {
10813
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10814
    }
10815
 
10816
    public void setCatalogItemIdIsSet(boolean value) {
10817
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10818
    }
10819
 
10820
    public String getDestination_pin() {
10821
      return this.destination_pin;
10822
    }
10823
 
10824
    public void setDestination_pin(String destination_pin) {
10825
      this.destination_pin = destination_pin;
10826
    }
10827
 
10828
    public void unsetDestination_pin() {
10829
      this.destination_pin = null;
10830
    }
10831
 
10832
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10833
    public boolean isSetDestination_pin() {
10834
      return this.destination_pin != null;
10835
    }
10836
 
10837
    public void setDestination_pinIsSet(boolean value) {
10838
      if (!value) {
10839
        this.destination_pin = null;
10840
      }
10841
    }
10842
 
10843
    /**
10844
     * 
10845
     * @see DeliveryType
10846
     */
10847
    public DeliveryType getType() {
10848
      return this.type;
10849
    }
10850
 
10851
    /**
10852
     * 
10853
     * @see DeliveryType
10854
     */
10855
    public void setType(DeliveryType type) {
10856
      this.type = type;
10857
    }
10858
 
10859
    public void unsetType() {
10860
      this.type = null;
10861
    }
10862
 
10863
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10864
    public boolean isSetType() {
10865
      return this.type != null;
10866
    }
10867
 
10868
    public void setTypeIsSet(boolean value) {
10869
      if (!value) {
10870
        this.type = null;
10871
      }
10872
    }
10873
 
10874
    public void setFieldValue(_Fields field, Object value) {
10875
      switch (field) {
10876
      case CATALOG_ITEM_ID:
10877
        if (value == null) {
10878
          unsetCatalogItemId();
10879
        } else {
10880
          setCatalogItemId((Long)value);
10881
        }
10882
        break;
10883
 
10884
      case DESTINATION_PIN:
10885
        if (value == null) {
10886
          unsetDestination_pin();
10887
        } else {
10888
          setDestination_pin((String)value);
10889
        }
10890
        break;
10891
 
10892
      case TYPE:
10893
        if (value == null) {
10894
          unsetType();
10895
        } else {
10896
          setType((DeliveryType)value);
10897
        }
10898
        break;
10899
 
10900
      }
10901
    }
10902
 
10903
    public Object getFieldValue(_Fields field) {
10904
      switch (field) {
10905
      case CATALOG_ITEM_ID:
10906
        return Long.valueOf(getCatalogItemId());
10907
 
10908
      case DESTINATION_PIN:
10909
        return getDestination_pin();
10910
 
10911
      case TYPE:
10912
        return getType();
10913
 
10914
      }
10915
      throw new IllegalStateException();
10916
    }
10917
 
10918
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10919
    public boolean isSet(_Fields field) {
10920
      if (field == null) {
10921
        throw new IllegalArgumentException();
10922
      }
10923
 
10924
      switch (field) {
10925
      case CATALOG_ITEM_ID:
10926
        return isSetCatalogItemId();
10927
      case DESTINATION_PIN:
10928
        return isSetDestination_pin();
10929
      case TYPE:
10930
        return isSetType();
10931
      }
10932
      throw new IllegalStateException();
10933
    }
10934
 
10935
    @Override
10936
    public boolean equals(Object that) {
10937
      if (that == null)
10938
        return false;
10939
      if (that instanceof getEntityLogisticsEstimation_args)
10940
        return this.equals((getEntityLogisticsEstimation_args)that);
10941
      return false;
10942
    }
10943
 
10944
    public boolean equals(getEntityLogisticsEstimation_args that) {
10945
      if (that == null)
10946
        return false;
10947
 
10948
      boolean this_present_catalogItemId = true;
10949
      boolean that_present_catalogItemId = true;
10950
      if (this_present_catalogItemId || that_present_catalogItemId) {
10951
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10952
          return false;
10953
        if (this.catalogItemId != that.catalogItemId)
10954
          return false;
10955
      }
10956
 
10957
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10958
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10959
      if (this_present_destination_pin || that_present_destination_pin) {
10960
        if (!(this_present_destination_pin && that_present_destination_pin))
10961
          return false;
10962
        if (!this.destination_pin.equals(that.destination_pin))
10963
          return false;
10964
      }
10965
 
10966
      boolean this_present_type = true && this.isSetType();
10967
      boolean that_present_type = true && that.isSetType();
10968
      if (this_present_type || that_present_type) {
10969
        if (!(this_present_type && that_present_type))
10970
          return false;
10971
        if (!this.type.equals(that.type))
10972
          return false;
10973
      }
10974
 
10975
      return true;
10976
    }
10977
 
10978
    @Override
10979
    public int hashCode() {
10980
      return 0;
10981
    }
10982
 
10983
    public int compareTo(getEntityLogisticsEstimation_args other) {
10984
      if (!getClass().equals(other.getClass())) {
10985
        return getClass().getName().compareTo(other.getClass().getName());
10986
      }
10987
 
10988
      int lastComparison = 0;
10989
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10990
 
10991
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10992
      if (lastComparison != 0) {
10993
        return lastComparison;
10994
      }
10995
      if (isSetCatalogItemId()) {
10996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10997
        if (lastComparison != 0) {
10998
          return lastComparison;
10999
        }
11000
      }
11001
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
11002
      if (lastComparison != 0) {
11003
        return lastComparison;
11004
      }
11005
      if (isSetDestination_pin()) {
11006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
11007
        if (lastComparison != 0) {
11008
          return lastComparison;
11009
        }
11010
      }
11011
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
11012
      if (lastComparison != 0) {
11013
        return lastComparison;
11014
      }
11015
      if (isSetType()) {
11016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
11017
        if (lastComparison != 0) {
11018
          return lastComparison;
11019
        }
11020
      }
11021
      return 0;
11022
    }
11023
 
11024
    public _Fields fieldForId(int fieldId) {
11025
      return _Fields.findByThriftId(fieldId);
11026
    }
11027
 
11028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11029
      org.apache.thrift.protocol.TField field;
11030
      iprot.readStructBegin();
11031
      while (true)
11032
      {
11033
        field = iprot.readFieldBegin();
11034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11035
          break;
11036
        }
11037
        switch (field.id) {
11038
          case 1: // CATALOG_ITEM_ID
11039
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11040
              this.catalogItemId = iprot.readI64();
11041
              setCatalogItemIdIsSet(true);
11042
            } else { 
11043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11044
            }
11045
            break;
11046
          case 2: // DESTINATION_PIN
11047
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11048
              this.destination_pin = iprot.readString();
11049
            } else { 
11050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11051
            }
11052
            break;
11053
          case 3: // TYPE
11054
            if (field.type == org.apache.thrift.protocol.TType.I32) {
11055
              this.type = DeliveryType.findByValue(iprot.readI32());
11056
            } else { 
11057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11058
            }
11059
            break;
11060
          default:
11061
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11062
        }
11063
        iprot.readFieldEnd();
11064
      }
11065
      iprot.readStructEnd();
11066
      validate();
11067
    }
11068
 
11069
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11070
      validate();
11071
 
11072
      oprot.writeStructBegin(STRUCT_DESC);
11073
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
11074
      oprot.writeI64(this.catalogItemId);
11075
      oprot.writeFieldEnd();
11076
      if (this.destination_pin != null) {
11077
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
11078
        oprot.writeString(this.destination_pin);
11079
        oprot.writeFieldEnd();
11080
      }
11081
      if (this.type != null) {
11082
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
11083
        oprot.writeI32(this.type.getValue());
11084
        oprot.writeFieldEnd();
11085
      }
11086
      oprot.writeFieldStop();
11087
      oprot.writeStructEnd();
11088
    }
11089
 
11090
    @Override
11091
    public String toString() {
11092
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
11093
      boolean first = true;
11094
 
11095
      sb.append("catalogItemId:");
11096
      sb.append(this.catalogItemId);
11097
      first = false;
11098
      if (!first) sb.append(", ");
11099
      sb.append("destination_pin:");
11100
      if (this.destination_pin == null) {
11101
        sb.append("null");
11102
      } else {
11103
        sb.append(this.destination_pin);
11104
      }
11105
      first = false;
11106
      if (!first) sb.append(", ");
11107
      sb.append("type:");
11108
      if (this.type == null) {
11109
        sb.append("null");
11110
      } else {
11111
        sb.append(this.type);
11112
      }
11113
      first = false;
11114
      sb.append(")");
11115
      return sb.toString();
11116
    }
11117
 
11118
    public void validate() throws org.apache.thrift.TException {
11119
      // check for required fields
11120
    }
11121
 
11122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11123
      try {
11124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11125
      } catch (org.apache.thrift.TException te) {
11126
        throw new java.io.IOException(te);
11127
      }
11128
    }
11129
 
11130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11131
      try {
11132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11133
      } catch (org.apache.thrift.TException te) {
11134
        throw new java.io.IOException(te);
11135
      }
11136
    }
11137
 
11138
  }
11139
 
11140
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11142
 
11143
    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);
11144
    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);
11145
 
9840 amit.gupta 11146
    private List<ItemText> success; // required
4934 amit.gupta 11147
    private LogisticsServiceException se; // required
11148
 
11149
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11150
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11151
      SUCCESS((short)0, "success"),
11152
      SE((short)1, "se");
11153
 
11154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11155
 
11156
      static {
11157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11158
          byName.put(field.getFieldName(), field);
11159
        }
11160
      }
11161
 
11162
      /**
11163
       * Find the _Fields constant that matches fieldId, or null if its not found.
11164
       */
11165
      public static _Fields findByThriftId(int fieldId) {
11166
        switch(fieldId) {
11167
          case 0: // SUCCESS
11168
            return SUCCESS;
11169
          case 1: // SE
11170
            return SE;
11171
          default:
11172
            return null;
11173
        }
11174
      }
11175
 
11176
      /**
11177
       * Find the _Fields constant that matches fieldId, throwing an exception
11178
       * if it is not found.
11179
       */
11180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11181
        _Fields fields = findByThriftId(fieldId);
11182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11183
        return fields;
11184
      }
11185
 
11186
      /**
11187
       * Find the _Fields constant that matches name, or null if its not found.
11188
       */
11189
      public static _Fields findByName(String name) {
11190
        return byName.get(name);
11191
      }
11192
 
11193
      private final short _thriftId;
11194
      private final String _fieldName;
11195
 
11196
      _Fields(short thriftId, String fieldName) {
11197
        _thriftId = thriftId;
11198
        _fieldName = fieldName;
11199
      }
11200
 
11201
      public short getThriftFieldId() {
11202
        return _thriftId;
11203
      }
11204
 
11205
      public String getFieldName() {
11206
        return _fieldName;
11207
      }
11208
    }
11209
 
11210
    // isset id assignments
11211
 
11212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11213
    static {
11214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11216
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11217
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11218
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11222
    }
11223
 
11224
    public getEntityLogisticsEstimation_result() {
11225
    }
11226
 
11227
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11228
      List<ItemText> success,
4934 amit.gupta 11229
      LogisticsServiceException se)
11230
    {
11231
      this();
11232
      this.success = success;
11233
      this.se = se;
11234
    }
11235
 
11236
    /**
11237
     * Performs a deep copy on <i>other</i>.
11238
     */
11239
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11240
      if (other.isSetSuccess()) {
9840 amit.gupta 11241
        List<ItemText> __this__success = new ArrayList<ItemText>();
11242
        for (ItemText other_element : other.success) {
11243
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11244
        }
11245
        this.success = __this__success;
11246
      }
11247
      if (other.isSetSe()) {
11248
        this.se = new LogisticsServiceException(other.se);
11249
      }
11250
    }
11251
 
11252
    public getEntityLogisticsEstimation_result deepCopy() {
11253
      return new getEntityLogisticsEstimation_result(this);
11254
    }
11255
 
11256
    @Override
11257
    public void clear() {
11258
      this.success = null;
11259
      this.se = null;
11260
    }
11261
 
11262
    public int getSuccessSize() {
11263
      return (this.success == null) ? 0 : this.success.size();
11264
    }
11265
 
9840 amit.gupta 11266
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11267
      return (this.success == null) ? null : this.success.iterator();
11268
    }
11269
 
9840 amit.gupta 11270
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11271
      if (this.success == null) {
9840 amit.gupta 11272
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11273
      }
11274
      this.success.add(elem);
11275
    }
11276
 
9840 amit.gupta 11277
    public List<ItemText> getSuccess() {
4934 amit.gupta 11278
      return this.success;
11279
    }
11280
 
9840 amit.gupta 11281
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11282
      this.success = success;
11283
    }
11284
 
11285
    public void unsetSuccess() {
11286
      this.success = null;
11287
    }
11288
 
11289
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11290
    public boolean isSetSuccess() {
11291
      return this.success != null;
11292
    }
11293
 
11294
    public void setSuccessIsSet(boolean value) {
11295
      if (!value) {
11296
        this.success = null;
11297
      }
11298
    }
11299
 
11300
    public LogisticsServiceException getSe() {
11301
      return this.se;
11302
    }
11303
 
11304
    public void setSe(LogisticsServiceException se) {
11305
      this.se = se;
11306
    }
11307
 
11308
    public void unsetSe() {
11309
      this.se = null;
11310
    }
11311
 
11312
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11313
    public boolean isSetSe() {
11314
      return this.se != null;
11315
    }
11316
 
11317
    public void setSeIsSet(boolean value) {
11318
      if (!value) {
11319
        this.se = null;
11320
      }
11321
    }
11322
 
11323
    public void setFieldValue(_Fields field, Object value) {
11324
      switch (field) {
11325
      case SUCCESS:
11326
        if (value == null) {
11327
          unsetSuccess();
11328
        } else {
9840 amit.gupta 11329
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11330
        }
11331
        break;
11332
 
11333
      case SE:
11334
        if (value == null) {
11335
          unsetSe();
11336
        } else {
11337
          setSe((LogisticsServiceException)value);
11338
        }
11339
        break;
11340
 
11341
      }
11342
    }
11343
 
11344
    public Object getFieldValue(_Fields field) {
11345
      switch (field) {
11346
      case SUCCESS:
11347
        return getSuccess();
11348
 
11349
      case SE:
11350
        return getSe();
11351
 
11352
      }
11353
      throw new IllegalStateException();
11354
    }
11355
 
11356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11357
    public boolean isSet(_Fields field) {
11358
      if (field == null) {
11359
        throw new IllegalArgumentException();
11360
      }
11361
 
11362
      switch (field) {
11363
      case SUCCESS:
11364
        return isSetSuccess();
11365
      case SE:
11366
        return isSetSe();
11367
      }
11368
      throw new IllegalStateException();
11369
    }
11370
 
11371
    @Override
11372
    public boolean equals(Object that) {
11373
      if (that == null)
11374
        return false;
11375
      if (that instanceof getEntityLogisticsEstimation_result)
11376
        return this.equals((getEntityLogisticsEstimation_result)that);
11377
      return false;
11378
    }
11379
 
11380
    public boolean equals(getEntityLogisticsEstimation_result that) {
11381
      if (that == null)
11382
        return false;
11383
 
11384
      boolean this_present_success = true && this.isSetSuccess();
11385
      boolean that_present_success = true && that.isSetSuccess();
11386
      if (this_present_success || that_present_success) {
11387
        if (!(this_present_success && that_present_success))
11388
          return false;
11389
        if (!this.success.equals(that.success))
11390
          return false;
11391
      }
11392
 
11393
      boolean this_present_se = true && this.isSetSe();
11394
      boolean that_present_se = true && that.isSetSe();
11395
      if (this_present_se || that_present_se) {
11396
        if (!(this_present_se && that_present_se))
11397
          return false;
11398
        if (!this.se.equals(that.se))
11399
          return false;
11400
      }
11401
 
11402
      return true;
11403
    }
11404
 
11405
    @Override
11406
    public int hashCode() {
11407
      return 0;
11408
    }
11409
 
11410
    public int compareTo(getEntityLogisticsEstimation_result other) {
11411
      if (!getClass().equals(other.getClass())) {
11412
        return getClass().getName().compareTo(other.getClass().getName());
11413
      }
11414
 
11415
      int lastComparison = 0;
11416
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11417
 
11418
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11419
      if (lastComparison != 0) {
11420
        return lastComparison;
11421
      }
11422
      if (isSetSuccess()) {
11423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11424
        if (lastComparison != 0) {
11425
          return lastComparison;
11426
        }
11427
      }
11428
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11429
      if (lastComparison != 0) {
11430
        return lastComparison;
11431
      }
11432
      if (isSetSe()) {
11433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11434
        if (lastComparison != 0) {
11435
          return lastComparison;
11436
        }
11437
      }
11438
      return 0;
11439
    }
11440
 
11441
    public _Fields fieldForId(int fieldId) {
11442
      return _Fields.findByThriftId(fieldId);
11443
    }
11444
 
11445
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11446
      org.apache.thrift.protocol.TField field;
11447
      iprot.readStructBegin();
11448
      while (true)
11449
      {
11450
        field = iprot.readFieldBegin();
11451
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11452
          break;
11453
        }
11454
        switch (field.id) {
11455
          case 0: // SUCCESS
11456
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11457
              {
7792 anupam.sin 11458
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11459
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11460
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11461
                {
9840 amit.gupta 11462
                  ItemText _elem18; // required
11463
                  _elem18 = new ItemText();
11464
                  _elem18.read(iprot);
7792 anupam.sin 11465
                  this.success.add(_elem18);
4934 amit.gupta 11466
                }
11467
                iprot.readListEnd();
11468
              }
11469
            } else { 
11470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11471
            }
11472
            break;
11473
          case 1: // SE
11474
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11475
              this.se = new LogisticsServiceException();
11476
              this.se.read(iprot);
11477
            } else { 
11478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11479
            }
11480
            break;
11481
          default:
11482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11483
        }
11484
        iprot.readFieldEnd();
11485
      }
11486
      iprot.readStructEnd();
11487
      validate();
11488
    }
11489
 
11490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11491
      oprot.writeStructBegin(STRUCT_DESC);
11492
 
11493
      if (this.isSetSuccess()) {
11494
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11495
        {
9840 amit.gupta 11496
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11497
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11498
          {
9840 amit.gupta 11499
            _iter19.write(oprot);
4934 amit.gupta 11500
          }
11501
          oprot.writeListEnd();
11502
        }
11503
        oprot.writeFieldEnd();
11504
      } else if (this.isSetSe()) {
11505
        oprot.writeFieldBegin(SE_FIELD_DESC);
11506
        this.se.write(oprot);
11507
        oprot.writeFieldEnd();
11508
      }
11509
      oprot.writeFieldStop();
11510
      oprot.writeStructEnd();
11511
    }
11512
 
11513
    @Override
11514
    public String toString() {
11515
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11516
      boolean first = true;
11517
 
11518
      sb.append("success:");
11519
      if (this.success == null) {
11520
        sb.append("null");
11521
      } else {
11522
        sb.append(this.success);
11523
      }
11524
      first = false;
11525
      if (!first) sb.append(", ");
11526
      sb.append("se:");
11527
      if (this.se == null) {
11528
        sb.append("null");
11529
      } else {
11530
        sb.append(this.se);
11531
      }
11532
      first = false;
11533
      sb.append(")");
11534
      return sb.toString();
11535
    }
11536
 
11537
    public void validate() throws org.apache.thrift.TException {
11538
      // check for required fields
11539
    }
11540
 
11541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11542
      try {
11543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11544
      } catch (org.apache.thrift.TException te) {
11545
        throw new java.io.IOException(te);
11546
      }
11547
    }
11548
 
11549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11550
      try {
11551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11552
      } catch (org.apache.thrift.TException te) {
11553
        throw new java.io.IOException(te);
11554
      }
11555
    }
11556
 
11557
  }
11558
 
5527 anupam.sin 11559
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11561
 
11562
    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);
11563
 
11564
    private long pickUp; // required
11565
 
11566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11568
      PICK_UP((short)1, "pickUp");
11569
 
11570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11571
 
11572
      static {
11573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11574
          byName.put(field.getFieldName(), field);
11575
        }
11576
      }
11577
 
11578
      /**
11579
       * Find the _Fields constant that matches fieldId, or null if its not found.
11580
       */
11581
      public static _Fields findByThriftId(int fieldId) {
11582
        switch(fieldId) {
11583
          case 1: // PICK_UP
11584
            return PICK_UP;
11585
          default:
11586
            return null;
11587
        }
11588
      }
11589
 
11590
      /**
11591
       * Find the _Fields constant that matches fieldId, throwing an exception
11592
       * if it is not found.
11593
       */
11594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11595
        _Fields fields = findByThriftId(fieldId);
11596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11597
        return fields;
11598
      }
11599
 
11600
      /**
11601
       * Find the _Fields constant that matches name, or null if its not found.
11602
       */
11603
      public static _Fields findByName(String name) {
11604
        return byName.get(name);
11605
      }
11606
 
11607
      private final short _thriftId;
11608
      private final String _fieldName;
11609
 
11610
      _Fields(short thriftId, String fieldName) {
11611
        _thriftId = thriftId;
11612
        _fieldName = fieldName;
11613
      }
11614
 
11615
      public short getThriftFieldId() {
11616
        return _thriftId;
11617
      }
11618
 
11619
      public String getFieldName() {
11620
        return _fieldName;
11621
      }
11622
    }
11623
 
11624
    // isset id assignments
11625
    private static final int __PICKUP_ISSET_ID = 0;
11626
    private BitSet __isset_bit_vector = new BitSet(1);
11627
 
11628
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11629
    static {
11630
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11631
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11632
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11633
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11634
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11635
    }
11636
 
11637
    public getProviderForPickupType_args() {
11638
    }
11639
 
11640
    public getProviderForPickupType_args(
11641
      long pickUp)
11642
    {
11643
      this();
11644
      this.pickUp = pickUp;
11645
      setPickUpIsSet(true);
11646
    }
11647
 
11648
    /**
11649
     * Performs a deep copy on <i>other</i>.
11650
     */
11651
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11652
      __isset_bit_vector.clear();
11653
      __isset_bit_vector.or(other.__isset_bit_vector);
11654
      this.pickUp = other.pickUp;
11655
    }
11656
 
11657
    public getProviderForPickupType_args deepCopy() {
11658
      return new getProviderForPickupType_args(this);
11659
    }
11660
 
11661
    @Override
11662
    public void clear() {
11663
      setPickUpIsSet(false);
11664
      this.pickUp = 0;
11665
    }
11666
 
11667
    public long getPickUp() {
11668
      return this.pickUp;
11669
    }
11670
 
11671
    public void setPickUp(long pickUp) {
11672
      this.pickUp = pickUp;
11673
      setPickUpIsSet(true);
11674
    }
11675
 
11676
    public void unsetPickUp() {
11677
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11678
    }
11679
 
11680
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11681
    public boolean isSetPickUp() {
11682
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11683
    }
11684
 
11685
    public void setPickUpIsSet(boolean value) {
11686
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11687
    }
11688
 
11689
    public void setFieldValue(_Fields field, Object value) {
11690
      switch (field) {
11691
      case PICK_UP:
11692
        if (value == null) {
11693
          unsetPickUp();
11694
        } else {
11695
          setPickUp((Long)value);
11696
        }
11697
        break;
11698
 
11699
      }
11700
    }
11701
 
11702
    public Object getFieldValue(_Fields field) {
11703
      switch (field) {
11704
      case PICK_UP:
11705
        return Long.valueOf(getPickUp());
11706
 
11707
      }
11708
      throw new IllegalStateException();
11709
    }
11710
 
11711
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11712
    public boolean isSet(_Fields field) {
11713
      if (field == null) {
11714
        throw new IllegalArgumentException();
11715
      }
11716
 
11717
      switch (field) {
11718
      case PICK_UP:
11719
        return isSetPickUp();
11720
      }
11721
      throw new IllegalStateException();
11722
    }
11723
 
11724
    @Override
11725
    public boolean equals(Object that) {
11726
      if (that == null)
11727
        return false;
11728
      if (that instanceof getProviderForPickupType_args)
11729
        return this.equals((getProviderForPickupType_args)that);
11730
      return false;
11731
    }
11732
 
11733
    public boolean equals(getProviderForPickupType_args that) {
11734
      if (that == null)
11735
        return false;
11736
 
11737
      boolean this_present_pickUp = true;
11738
      boolean that_present_pickUp = true;
11739
      if (this_present_pickUp || that_present_pickUp) {
11740
        if (!(this_present_pickUp && that_present_pickUp))
11741
          return false;
11742
        if (this.pickUp != that.pickUp)
11743
          return false;
11744
      }
11745
 
11746
      return true;
11747
    }
11748
 
11749
    @Override
11750
    public int hashCode() {
11751
      return 0;
11752
    }
11753
 
11754
    public int compareTo(getProviderForPickupType_args other) {
11755
      if (!getClass().equals(other.getClass())) {
11756
        return getClass().getName().compareTo(other.getClass().getName());
11757
      }
11758
 
11759
      int lastComparison = 0;
11760
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11761
 
11762
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11763
      if (lastComparison != 0) {
11764
        return lastComparison;
11765
      }
11766
      if (isSetPickUp()) {
11767
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11768
        if (lastComparison != 0) {
11769
          return lastComparison;
11770
        }
11771
      }
11772
      return 0;
11773
    }
11774
 
11775
    public _Fields fieldForId(int fieldId) {
11776
      return _Fields.findByThriftId(fieldId);
11777
    }
11778
 
11779
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11780
      org.apache.thrift.protocol.TField field;
11781
      iprot.readStructBegin();
11782
      while (true)
11783
      {
11784
        field = iprot.readFieldBegin();
11785
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11786
          break;
11787
        }
11788
        switch (field.id) {
11789
          case 1: // PICK_UP
11790
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11791
              this.pickUp = iprot.readI64();
11792
              setPickUpIsSet(true);
11793
            } else { 
11794
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11795
            }
11796
            break;
11797
          default:
11798
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11799
        }
11800
        iprot.readFieldEnd();
11801
      }
11802
      iprot.readStructEnd();
11803
      validate();
11804
    }
11805
 
11806
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11807
      validate();
11808
 
11809
      oprot.writeStructBegin(STRUCT_DESC);
11810
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11811
      oprot.writeI64(this.pickUp);
11812
      oprot.writeFieldEnd();
11813
      oprot.writeFieldStop();
11814
      oprot.writeStructEnd();
11815
    }
11816
 
11817
    @Override
11818
    public String toString() {
11819
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11820
      boolean first = true;
11821
 
11822
      sb.append("pickUp:");
11823
      sb.append(this.pickUp);
11824
      first = false;
11825
      sb.append(")");
11826
      return sb.toString();
11827
    }
11828
 
11829
    public void validate() throws org.apache.thrift.TException {
11830
      // check for required fields
11831
    }
11832
 
11833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11834
      try {
11835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11836
      } catch (org.apache.thrift.TException te) {
11837
        throw new java.io.IOException(te);
11838
      }
11839
    }
11840
 
11841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11842
      try {
11843
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11844
        __isset_bit_vector = new BitSet(1);
11845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11846
      } catch (org.apache.thrift.TException te) {
11847
        throw new java.io.IOException(te);
11848
      }
11849
    }
11850
 
11851
  }
11852
 
11853
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11855
 
11856
    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);
11857
 
11858
    private long success; // required
11859
 
11860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11862
      SUCCESS((short)0, "success");
11863
 
11864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11865
 
11866
      static {
11867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11868
          byName.put(field.getFieldName(), field);
11869
        }
11870
      }
11871
 
11872
      /**
11873
       * Find the _Fields constant that matches fieldId, or null if its not found.
11874
       */
11875
      public static _Fields findByThriftId(int fieldId) {
11876
        switch(fieldId) {
11877
          case 0: // SUCCESS
11878
            return SUCCESS;
11879
          default:
11880
            return null;
11881
        }
11882
      }
11883
 
11884
      /**
11885
       * Find the _Fields constant that matches fieldId, throwing an exception
11886
       * if it is not found.
11887
       */
11888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11889
        _Fields fields = findByThriftId(fieldId);
11890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11891
        return fields;
11892
      }
11893
 
11894
      /**
11895
       * Find the _Fields constant that matches name, or null if its not found.
11896
       */
11897
      public static _Fields findByName(String name) {
11898
        return byName.get(name);
11899
      }
11900
 
11901
      private final short _thriftId;
11902
      private final String _fieldName;
11903
 
11904
      _Fields(short thriftId, String fieldName) {
11905
        _thriftId = thriftId;
11906
        _fieldName = fieldName;
11907
      }
11908
 
11909
      public short getThriftFieldId() {
11910
        return _thriftId;
11911
      }
11912
 
11913
      public String getFieldName() {
11914
        return _fieldName;
11915
      }
11916
    }
11917
 
11918
    // isset id assignments
11919
    private static final int __SUCCESS_ISSET_ID = 0;
11920
    private BitSet __isset_bit_vector = new BitSet(1);
11921
 
11922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11923
    static {
11924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11925
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11927
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11928
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11929
    }
11930
 
11931
    public getProviderForPickupType_result() {
11932
    }
11933
 
11934
    public getProviderForPickupType_result(
11935
      long success)
11936
    {
11937
      this();
11938
      this.success = success;
11939
      setSuccessIsSet(true);
11940
    }
11941
 
11942
    /**
11943
     * Performs a deep copy on <i>other</i>.
11944
     */
11945
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11946
      __isset_bit_vector.clear();
11947
      __isset_bit_vector.or(other.__isset_bit_vector);
11948
      this.success = other.success;
11949
    }
11950
 
11951
    public getProviderForPickupType_result deepCopy() {
11952
      return new getProviderForPickupType_result(this);
11953
    }
11954
 
11955
    @Override
11956
    public void clear() {
11957
      setSuccessIsSet(false);
11958
      this.success = 0;
11959
    }
11960
 
11961
    public long getSuccess() {
11962
      return this.success;
11963
    }
11964
 
11965
    public void setSuccess(long success) {
11966
      this.success = success;
11967
      setSuccessIsSet(true);
11968
    }
11969
 
11970
    public void unsetSuccess() {
11971
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11972
    }
11973
 
11974
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11975
    public boolean isSetSuccess() {
11976
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11977
    }
11978
 
11979
    public void setSuccessIsSet(boolean value) {
11980
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11981
    }
11982
 
11983
    public void setFieldValue(_Fields field, Object value) {
11984
      switch (field) {
11985
      case SUCCESS:
11986
        if (value == null) {
11987
          unsetSuccess();
11988
        } else {
11989
          setSuccess((Long)value);
11990
        }
11991
        break;
11992
 
11993
      }
11994
    }
11995
 
11996
    public Object getFieldValue(_Fields field) {
11997
      switch (field) {
11998
      case SUCCESS:
11999
        return Long.valueOf(getSuccess());
12000
 
12001
      }
12002
      throw new IllegalStateException();
12003
    }
12004
 
12005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12006
    public boolean isSet(_Fields field) {
12007
      if (field == null) {
12008
        throw new IllegalArgumentException();
12009
      }
12010
 
12011
      switch (field) {
12012
      case SUCCESS:
12013
        return isSetSuccess();
12014
      }
12015
      throw new IllegalStateException();
12016
    }
12017
 
12018
    @Override
12019
    public boolean equals(Object that) {
12020
      if (that == null)
12021
        return false;
12022
      if (that instanceof getProviderForPickupType_result)
12023
        return this.equals((getProviderForPickupType_result)that);
12024
      return false;
12025
    }
12026
 
12027
    public boolean equals(getProviderForPickupType_result that) {
12028
      if (that == null)
12029
        return false;
12030
 
12031
      boolean this_present_success = true;
12032
      boolean that_present_success = true;
12033
      if (this_present_success || that_present_success) {
12034
        if (!(this_present_success && that_present_success))
12035
          return false;
12036
        if (this.success != that.success)
12037
          return false;
12038
      }
12039
 
12040
      return true;
12041
    }
12042
 
12043
    @Override
12044
    public int hashCode() {
12045
      return 0;
12046
    }
12047
 
12048
    public int compareTo(getProviderForPickupType_result other) {
12049
      if (!getClass().equals(other.getClass())) {
12050
        return getClass().getName().compareTo(other.getClass().getName());
12051
      }
12052
 
12053
      int lastComparison = 0;
12054
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
12055
 
12056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12057
      if (lastComparison != 0) {
12058
        return lastComparison;
12059
      }
12060
      if (isSetSuccess()) {
12061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12062
        if (lastComparison != 0) {
12063
          return lastComparison;
12064
        }
12065
      }
12066
      return 0;
12067
    }
12068
 
12069
    public _Fields fieldForId(int fieldId) {
12070
      return _Fields.findByThriftId(fieldId);
12071
    }
12072
 
12073
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12074
      org.apache.thrift.protocol.TField field;
12075
      iprot.readStructBegin();
12076
      while (true)
12077
      {
12078
        field = iprot.readFieldBegin();
12079
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12080
          break;
12081
        }
12082
        switch (field.id) {
12083
          case 0: // SUCCESS
12084
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12085
              this.success = iprot.readI64();
12086
              setSuccessIsSet(true);
12087
            } else { 
12088
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12089
            }
12090
            break;
12091
          default:
12092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12093
        }
12094
        iprot.readFieldEnd();
12095
      }
12096
      iprot.readStructEnd();
12097
      validate();
12098
    }
12099
 
12100
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12101
      oprot.writeStructBegin(STRUCT_DESC);
12102
 
12103
      if (this.isSetSuccess()) {
12104
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12105
        oprot.writeI64(this.success);
12106
        oprot.writeFieldEnd();
12107
      }
12108
      oprot.writeFieldStop();
12109
      oprot.writeStructEnd();
12110
    }
12111
 
12112
    @Override
12113
    public String toString() {
12114
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12115
      boolean first = true;
12116
 
12117
      sb.append("success:");
12118
      sb.append(this.success);
12119
      first = false;
12120
      sb.append(")");
12121
      return sb.toString();
12122
    }
12123
 
12124
    public void validate() throws org.apache.thrift.TException {
12125
      // check for required fields
12126
    }
12127
 
12128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12129
      try {
12130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12131
      } catch (org.apache.thrift.TException te) {
12132
        throw new java.io.IOException(te);
12133
      }
12134
    }
12135
 
12136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12137
      try {
12138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12139
      } catch (org.apache.thrift.TException te) {
12140
        throw new java.io.IOException(te);
12141
      }
12142
    }
12143
 
12144
  }
12145
 
5553 rajveer 12146
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12148
 
12149
 
12150
 
12151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12153
;
12154
 
12155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12156
 
12157
      static {
12158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12159
          byName.put(field.getFieldName(), field);
12160
        }
12161
      }
12162
 
12163
      /**
12164
       * Find the _Fields constant that matches fieldId, or null if its not found.
12165
       */
12166
      public static _Fields findByThriftId(int fieldId) {
12167
        switch(fieldId) {
12168
          default:
12169
            return null;
12170
        }
12171
      }
12172
 
12173
      /**
12174
       * Find the _Fields constant that matches fieldId, throwing an exception
12175
       * if it is not found.
12176
       */
12177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12178
        _Fields fields = findByThriftId(fieldId);
12179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12180
        return fields;
12181
      }
12182
 
12183
      /**
12184
       * Find the _Fields constant that matches name, or null if its not found.
12185
       */
12186
      public static _Fields findByName(String name) {
12187
        return byName.get(name);
12188
      }
12189
 
12190
      private final short _thriftId;
12191
      private final String _fieldName;
12192
 
12193
      _Fields(short thriftId, String fieldName) {
12194
        _thriftId = thriftId;
12195
        _fieldName = fieldName;
12196
      }
12197
 
12198
      public short getThriftFieldId() {
12199
        return _thriftId;
12200
      }
12201
 
12202
      public String getFieldName() {
12203
        return _fieldName;
12204
      }
12205
    }
12206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12207
    static {
12208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12211
    }
12212
 
12213
    public getAllPickupStores_args() {
12214
    }
12215
 
12216
    /**
12217
     * Performs a deep copy on <i>other</i>.
12218
     */
12219
    public getAllPickupStores_args(getAllPickupStores_args other) {
12220
    }
12221
 
12222
    public getAllPickupStores_args deepCopy() {
12223
      return new getAllPickupStores_args(this);
12224
    }
12225
 
12226
    @Override
12227
    public void clear() {
12228
    }
12229
 
12230
    public void setFieldValue(_Fields field, Object value) {
12231
      switch (field) {
12232
      }
12233
    }
12234
 
12235
    public Object getFieldValue(_Fields field) {
12236
      switch (field) {
12237
      }
12238
      throw new IllegalStateException();
12239
    }
12240
 
12241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12242
    public boolean isSet(_Fields field) {
12243
      if (field == null) {
12244
        throw new IllegalArgumentException();
12245
      }
12246
 
12247
      switch (field) {
12248
      }
12249
      throw new IllegalStateException();
12250
    }
12251
 
12252
    @Override
12253
    public boolean equals(Object that) {
12254
      if (that == null)
12255
        return false;
12256
      if (that instanceof getAllPickupStores_args)
12257
        return this.equals((getAllPickupStores_args)that);
12258
      return false;
12259
    }
12260
 
12261
    public boolean equals(getAllPickupStores_args that) {
12262
      if (that == null)
12263
        return false;
12264
 
12265
      return true;
12266
    }
12267
 
12268
    @Override
12269
    public int hashCode() {
12270
      return 0;
12271
    }
12272
 
12273
    public int compareTo(getAllPickupStores_args other) {
12274
      if (!getClass().equals(other.getClass())) {
12275
        return getClass().getName().compareTo(other.getClass().getName());
12276
      }
12277
 
12278
      int lastComparison = 0;
12279
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12280
 
12281
      return 0;
12282
    }
12283
 
12284
    public _Fields fieldForId(int fieldId) {
12285
      return _Fields.findByThriftId(fieldId);
12286
    }
12287
 
12288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12289
      org.apache.thrift.protocol.TField field;
12290
      iprot.readStructBegin();
12291
      while (true)
12292
      {
12293
        field = iprot.readFieldBegin();
12294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12295
          break;
12296
        }
12297
        switch (field.id) {
12298
          default:
12299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12300
        }
12301
        iprot.readFieldEnd();
12302
      }
12303
      iprot.readStructEnd();
12304
      validate();
12305
    }
12306
 
12307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12308
      validate();
12309
 
12310
      oprot.writeStructBegin(STRUCT_DESC);
12311
      oprot.writeFieldStop();
12312
      oprot.writeStructEnd();
12313
    }
12314
 
12315
    @Override
12316
    public String toString() {
12317
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12318
      boolean first = true;
12319
 
12320
      sb.append(")");
12321
      return sb.toString();
12322
    }
12323
 
12324
    public void validate() throws org.apache.thrift.TException {
12325
      // check for required fields
12326
    }
12327
 
12328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12329
      try {
12330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12331
      } catch (org.apache.thrift.TException te) {
12332
        throw new java.io.IOException(te);
12333
      }
12334
    }
12335
 
12336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12337
      try {
12338
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12339
      } catch (org.apache.thrift.TException te) {
12340
        throw new java.io.IOException(te);
12341
      }
12342
    }
12343
 
12344
  }
12345
 
12346
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12347
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12348
 
12349
    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);
12350
 
12351
    private List<PickupStore> success; // required
12352
 
12353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12355
      SUCCESS((short)0, "success");
12356
 
12357
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12358
 
12359
      static {
12360
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12361
          byName.put(field.getFieldName(), field);
12362
        }
12363
      }
12364
 
12365
      /**
12366
       * Find the _Fields constant that matches fieldId, or null if its not found.
12367
       */
12368
      public static _Fields findByThriftId(int fieldId) {
12369
        switch(fieldId) {
12370
          case 0: // SUCCESS
12371
            return SUCCESS;
12372
          default:
12373
            return null;
12374
        }
12375
      }
12376
 
12377
      /**
12378
       * Find the _Fields constant that matches fieldId, throwing an exception
12379
       * if it is not found.
12380
       */
12381
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12382
        _Fields fields = findByThriftId(fieldId);
12383
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12384
        return fields;
12385
      }
12386
 
12387
      /**
12388
       * Find the _Fields constant that matches name, or null if its not found.
12389
       */
12390
      public static _Fields findByName(String name) {
12391
        return byName.get(name);
12392
      }
12393
 
12394
      private final short _thriftId;
12395
      private final String _fieldName;
12396
 
12397
      _Fields(short thriftId, String fieldName) {
12398
        _thriftId = thriftId;
12399
        _fieldName = fieldName;
12400
      }
12401
 
12402
      public short getThriftFieldId() {
12403
        return _thriftId;
12404
      }
12405
 
12406
      public String getFieldName() {
12407
        return _fieldName;
12408
      }
12409
    }
12410
 
12411
    // isset id assignments
12412
 
12413
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12414
    static {
12415
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12416
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12417
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12418
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12419
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12420
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12421
    }
12422
 
12423
    public getAllPickupStores_result() {
12424
    }
12425
 
12426
    public getAllPickupStores_result(
12427
      List<PickupStore> success)
12428
    {
12429
      this();
12430
      this.success = success;
12431
    }
12432
 
12433
    /**
12434
     * Performs a deep copy on <i>other</i>.
12435
     */
12436
    public getAllPickupStores_result(getAllPickupStores_result other) {
12437
      if (other.isSetSuccess()) {
12438
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12439
        for (PickupStore other_element : other.success) {
12440
          __this__success.add(new PickupStore(other_element));
12441
        }
12442
        this.success = __this__success;
12443
      }
12444
    }
12445
 
12446
    public getAllPickupStores_result deepCopy() {
12447
      return new getAllPickupStores_result(this);
12448
    }
12449
 
12450
    @Override
12451
    public void clear() {
12452
      this.success = null;
12453
    }
12454
 
12455
    public int getSuccessSize() {
12456
      return (this.success == null) ? 0 : this.success.size();
12457
    }
12458
 
12459
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12460
      return (this.success == null) ? null : this.success.iterator();
12461
    }
12462
 
12463
    public void addToSuccess(PickupStore elem) {
12464
      if (this.success == null) {
12465
        this.success = new ArrayList<PickupStore>();
12466
      }
12467
      this.success.add(elem);
12468
    }
12469
 
12470
    public List<PickupStore> getSuccess() {
12471
      return this.success;
12472
    }
12473
 
12474
    public void setSuccess(List<PickupStore> success) {
12475
      this.success = success;
12476
    }
12477
 
12478
    public void unsetSuccess() {
12479
      this.success = null;
12480
    }
12481
 
12482
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12483
    public boolean isSetSuccess() {
12484
      return this.success != null;
12485
    }
12486
 
12487
    public void setSuccessIsSet(boolean value) {
12488
      if (!value) {
12489
        this.success = null;
12490
      }
12491
    }
12492
 
12493
    public void setFieldValue(_Fields field, Object value) {
12494
      switch (field) {
12495
      case SUCCESS:
12496
        if (value == null) {
12497
          unsetSuccess();
12498
        } else {
12499
          setSuccess((List<PickupStore>)value);
12500
        }
12501
        break;
12502
 
12503
      }
12504
    }
12505
 
12506
    public Object getFieldValue(_Fields field) {
12507
      switch (field) {
12508
      case SUCCESS:
12509
        return getSuccess();
12510
 
12511
      }
12512
      throw new IllegalStateException();
12513
    }
12514
 
12515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12516
    public boolean isSet(_Fields field) {
12517
      if (field == null) {
12518
        throw new IllegalArgumentException();
12519
      }
12520
 
12521
      switch (field) {
12522
      case SUCCESS:
12523
        return isSetSuccess();
12524
      }
12525
      throw new IllegalStateException();
12526
    }
12527
 
12528
    @Override
12529
    public boolean equals(Object that) {
12530
      if (that == null)
12531
        return false;
12532
      if (that instanceof getAllPickupStores_result)
12533
        return this.equals((getAllPickupStores_result)that);
12534
      return false;
12535
    }
12536
 
12537
    public boolean equals(getAllPickupStores_result that) {
12538
      if (that == null)
12539
        return false;
12540
 
12541
      boolean this_present_success = true && this.isSetSuccess();
12542
      boolean that_present_success = true && that.isSetSuccess();
12543
      if (this_present_success || that_present_success) {
12544
        if (!(this_present_success && that_present_success))
12545
          return false;
12546
        if (!this.success.equals(that.success))
12547
          return false;
12548
      }
12549
 
12550
      return true;
12551
    }
12552
 
12553
    @Override
12554
    public int hashCode() {
12555
      return 0;
12556
    }
12557
 
12558
    public int compareTo(getAllPickupStores_result other) {
12559
      if (!getClass().equals(other.getClass())) {
12560
        return getClass().getName().compareTo(other.getClass().getName());
12561
      }
12562
 
12563
      int lastComparison = 0;
12564
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12565
 
12566
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12567
      if (lastComparison != 0) {
12568
        return lastComparison;
12569
      }
12570
      if (isSetSuccess()) {
12571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12572
        if (lastComparison != 0) {
12573
          return lastComparison;
12574
        }
12575
      }
12576
      return 0;
12577
    }
12578
 
12579
    public _Fields fieldForId(int fieldId) {
12580
      return _Fields.findByThriftId(fieldId);
12581
    }
12582
 
12583
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12584
      org.apache.thrift.protocol.TField field;
12585
      iprot.readStructBegin();
12586
      while (true)
12587
      {
12588
        field = iprot.readFieldBegin();
12589
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12590
          break;
12591
        }
12592
        switch (field.id) {
12593
          case 0: // SUCCESS
12594
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12595
              {
7792 anupam.sin 12596
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12597
                this.success = new ArrayList<PickupStore>(_list20.size);
12598
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12599
                {
7792 anupam.sin 12600
                  PickupStore _elem22; // required
12601
                  _elem22 = new PickupStore();
12602
                  _elem22.read(iprot);
12603
                  this.success.add(_elem22);
5553 rajveer 12604
                }
12605
                iprot.readListEnd();
12606
              }
12607
            } else { 
12608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12609
            }
12610
            break;
12611
          default:
12612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12613
        }
12614
        iprot.readFieldEnd();
12615
      }
12616
      iprot.readStructEnd();
12617
      validate();
12618
    }
12619
 
12620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12621
      oprot.writeStructBegin(STRUCT_DESC);
12622
 
12623
      if (this.isSetSuccess()) {
12624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12625
        {
12626
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12627
          for (PickupStore _iter23 : this.success)
5553 rajveer 12628
          {
7792 anupam.sin 12629
            _iter23.write(oprot);
5553 rajveer 12630
          }
12631
          oprot.writeListEnd();
12632
        }
12633
        oprot.writeFieldEnd();
12634
      }
12635
      oprot.writeFieldStop();
12636
      oprot.writeStructEnd();
12637
    }
12638
 
12639
    @Override
12640
    public String toString() {
12641
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12642
      boolean first = true;
12643
 
12644
      sb.append("success:");
12645
      if (this.success == null) {
12646
        sb.append("null");
12647
      } else {
12648
        sb.append(this.success);
12649
      }
12650
      first = false;
12651
      sb.append(")");
12652
      return sb.toString();
12653
    }
12654
 
12655
    public void validate() throws org.apache.thrift.TException {
12656
      // check for required fields
12657
    }
12658
 
12659
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12660
      try {
12661
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12662
      } catch (org.apache.thrift.TException te) {
12663
        throw new java.io.IOException(te);
12664
      }
12665
    }
12666
 
12667
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12668
      try {
12669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12670
      } catch (org.apache.thrift.TException te) {
12671
        throw new java.io.IOException(te);
12672
      }
12673
    }
12674
 
12675
  }
12676
 
12677
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12679
 
12680
    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);
12681
 
12682
    private long storeId; // required
12683
 
12684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12686
      STORE_ID((short)1, "storeId");
12687
 
12688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12689
 
12690
      static {
12691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12692
          byName.put(field.getFieldName(), field);
12693
        }
12694
      }
12695
 
12696
      /**
12697
       * Find the _Fields constant that matches fieldId, or null if its not found.
12698
       */
12699
      public static _Fields findByThriftId(int fieldId) {
12700
        switch(fieldId) {
12701
          case 1: // STORE_ID
12702
            return STORE_ID;
12703
          default:
12704
            return null;
12705
        }
12706
      }
12707
 
12708
      /**
12709
       * Find the _Fields constant that matches fieldId, throwing an exception
12710
       * if it is not found.
12711
       */
12712
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12713
        _Fields fields = findByThriftId(fieldId);
12714
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12715
        return fields;
12716
      }
12717
 
12718
      /**
12719
       * Find the _Fields constant that matches name, or null if its not found.
12720
       */
12721
      public static _Fields findByName(String name) {
12722
        return byName.get(name);
12723
      }
12724
 
12725
      private final short _thriftId;
12726
      private final String _fieldName;
12727
 
12728
      _Fields(short thriftId, String fieldName) {
12729
        _thriftId = thriftId;
12730
        _fieldName = fieldName;
12731
      }
12732
 
12733
      public short getThriftFieldId() {
12734
        return _thriftId;
12735
      }
12736
 
12737
      public String getFieldName() {
12738
        return _fieldName;
12739
      }
12740
    }
12741
 
12742
    // isset id assignments
12743
    private static final int __STOREID_ISSET_ID = 0;
12744
    private BitSet __isset_bit_vector = new BitSet(1);
12745
 
12746
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12747
    static {
12748
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12749
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12751
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12752
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12753
    }
12754
 
12755
    public getPickupStore_args() {
12756
    }
12757
 
12758
    public getPickupStore_args(
12759
      long storeId)
12760
    {
12761
      this();
12762
      this.storeId = storeId;
12763
      setStoreIdIsSet(true);
12764
    }
12765
 
12766
    /**
12767
     * Performs a deep copy on <i>other</i>.
12768
     */
12769
    public getPickupStore_args(getPickupStore_args other) {
12770
      __isset_bit_vector.clear();
12771
      __isset_bit_vector.or(other.__isset_bit_vector);
12772
      this.storeId = other.storeId;
12773
    }
12774
 
12775
    public getPickupStore_args deepCopy() {
12776
      return new getPickupStore_args(this);
12777
    }
12778
 
12779
    @Override
12780
    public void clear() {
12781
      setStoreIdIsSet(false);
12782
      this.storeId = 0;
12783
    }
12784
 
12785
    public long getStoreId() {
12786
      return this.storeId;
12787
    }
12788
 
12789
    public void setStoreId(long storeId) {
12790
      this.storeId = storeId;
12791
      setStoreIdIsSet(true);
12792
    }
12793
 
12794
    public void unsetStoreId() {
12795
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12796
    }
12797
 
12798
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12799
    public boolean isSetStoreId() {
12800
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12801
    }
12802
 
12803
    public void setStoreIdIsSet(boolean value) {
12804
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12805
    }
12806
 
12807
    public void setFieldValue(_Fields field, Object value) {
12808
      switch (field) {
12809
      case STORE_ID:
12810
        if (value == null) {
12811
          unsetStoreId();
12812
        } else {
12813
          setStoreId((Long)value);
12814
        }
12815
        break;
12816
 
12817
      }
12818
    }
12819
 
12820
    public Object getFieldValue(_Fields field) {
12821
      switch (field) {
12822
      case STORE_ID:
12823
        return Long.valueOf(getStoreId());
12824
 
12825
      }
12826
      throw new IllegalStateException();
12827
    }
12828
 
12829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12830
    public boolean isSet(_Fields field) {
12831
      if (field == null) {
12832
        throw new IllegalArgumentException();
12833
      }
12834
 
12835
      switch (field) {
12836
      case STORE_ID:
12837
        return isSetStoreId();
12838
      }
12839
      throw new IllegalStateException();
12840
    }
12841
 
12842
    @Override
12843
    public boolean equals(Object that) {
12844
      if (that == null)
12845
        return false;
12846
      if (that instanceof getPickupStore_args)
12847
        return this.equals((getPickupStore_args)that);
12848
      return false;
12849
    }
12850
 
12851
    public boolean equals(getPickupStore_args that) {
12852
      if (that == null)
12853
        return false;
12854
 
12855
      boolean this_present_storeId = true;
12856
      boolean that_present_storeId = true;
12857
      if (this_present_storeId || that_present_storeId) {
12858
        if (!(this_present_storeId && that_present_storeId))
12859
          return false;
12860
        if (this.storeId != that.storeId)
12861
          return false;
12862
      }
12863
 
12864
      return true;
12865
    }
12866
 
12867
    @Override
12868
    public int hashCode() {
12869
      return 0;
12870
    }
12871
 
12872
    public int compareTo(getPickupStore_args other) {
12873
      if (!getClass().equals(other.getClass())) {
12874
        return getClass().getName().compareTo(other.getClass().getName());
12875
      }
12876
 
12877
      int lastComparison = 0;
12878
      getPickupStore_args typedOther = (getPickupStore_args)other;
12879
 
12880
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12881
      if (lastComparison != 0) {
12882
        return lastComparison;
12883
      }
12884
      if (isSetStoreId()) {
12885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12886
        if (lastComparison != 0) {
12887
          return lastComparison;
12888
        }
12889
      }
12890
      return 0;
12891
    }
12892
 
12893
    public _Fields fieldForId(int fieldId) {
12894
      return _Fields.findByThriftId(fieldId);
12895
    }
12896
 
12897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12898
      org.apache.thrift.protocol.TField field;
12899
      iprot.readStructBegin();
12900
      while (true)
12901
      {
12902
        field = iprot.readFieldBegin();
12903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12904
          break;
12905
        }
12906
        switch (field.id) {
12907
          case 1: // STORE_ID
12908
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12909
              this.storeId = iprot.readI64();
12910
              setStoreIdIsSet(true);
12911
            } else { 
12912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12913
            }
12914
            break;
12915
          default:
12916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12917
        }
12918
        iprot.readFieldEnd();
12919
      }
12920
      iprot.readStructEnd();
12921
      validate();
12922
    }
12923
 
12924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12925
      validate();
12926
 
12927
      oprot.writeStructBegin(STRUCT_DESC);
12928
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12929
      oprot.writeI64(this.storeId);
12930
      oprot.writeFieldEnd();
12931
      oprot.writeFieldStop();
12932
      oprot.writeStructEnd();
12933
    }
12934
 
12935
    @Override
12936
    public String toString() {
12937
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12938
      boolean first = true;
12939
 
12940
      sb.append("storeId:");
12941
      sb.append(this.storeId);
12942
      first = false;
12943
      sb.append(")");
12944
      return sb.toString();
12945
    }
12946
 
12947
    public void validate() throws org.apache.thrift.TException {
12948
      // check for required fields
12949
    }
12950
 
12951
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12952
      try {
12953
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12954
      } catch (org.apache.thrift.TException te) {
12955
        throw new java.io.IOException(te);
12956
      }
12957
    }
12958
 
12959
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12960
      try {
12961
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12962
        __isset_bit_vector = new BitSet(1);
12963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12964
      } catch (org.apache.thrift.TException te) {
12965
        throw new java.io.IOException(te);
12966
      }
12967
    }
12968
 
12969
  }
12970
 
12971
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12973
 
12974
    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);
12975
 
12976
    private PickupStore success; // required
12977
 
12978
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12979
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12980
      SUCCESS((short)0, "success");
12981
 
12982
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12983
 
12984
      static {
12985
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12986
          byName.put(field.getFieldName(), field);
12987
        }
12988
      }
12989
 
12990
      /**
12991
       * Find the _Fields constant that matches fieldId, or null if its not found.
12992
       */
12993
      public static _Fields findByThriftId(int fieldId) {
12994
        switch(fieldId) {
12995
          case 0: // SUCCESS
12996
            return SUCCESS;
12997
          default:
12998
            return null;
12999
        }
13000
      }
13001
 
13002
      /**
13003
       * Find the _Fields constant that matches fieldId, throwing an exception
13004
       * if it is not found.
13005
       */
13006
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13007
        _Fields fields = findByThriftId(fieldId);
13008
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13009
        return fields;
13010
      }
13011
 
13012
      /**
13013
       * Find the _Fields constant that matches name, or null if its not found.
13014
       */
13015
      public static _Fields findByName(String name) {
13016
        return byName.get(name);
13017
      }
13018
 
13019
      private final short _thriftId;
13020
      private final String _fieldName;
13021
 
13022
      _Fields(short thriftId, String fieldName) {
13023
        _thriftId = thriftId;
13024
        _fieldName = fieldName;
13025
      }
13026
 
13027
      public short getThriftFieldId() {
13028
        return _thriftId;
13029
      }
13030
 
13031
      public String getFieldName() {
13032
        return _fieldName;
13033
      }
13034
    }
13035
 
13036
    // isset id assignments
13037
 
13038
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13039
    static {
13040
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13041
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13042
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13043
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13044
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
13045
    }
13046
 
13047
    public getPickupStore_result() {
13048
    }
13049
 
13050
    public getPickupStore_result(
13051
      PickupStore success)
13052
    {
13053
      this();
13054
      this.success = success;
13055
    }
13056
 
13057
    /**
13058
     * Performs a deep copy on <i>other</i>.
13059
     */
13060
    public getPickupStore_result(getPickupStore_result other) {
13061
      if (other.isSetSuccess()) {
13062
        this.success = new PickupStore(other.success);
13063
      }
13064
    }
13065
 
13066
    public getPickupStore_result deepCopy() {
13067
      return new getPickupStore_result(this);
13068
    }
13069
 
13070
    @Override
13071
    public void clear() {
13072
      this.success = null;
13073
    }
13074
 
13075
    public PickupStore getSuccess() {
13076
      return this.success;
13077
    }
13078
 
13079
    public void setSuccess(PickupStore success) {
13080
      this.success = success;
13081
    }
13082
 
13083
    public void unsetSuccess() {
13084
      this.success = null;
13085
    }
13086
 
13087
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13088
    public boolean isSetSuccess() {
13089
      return this.success != null;
13090
    }
13091
 
13092
    public void setSuccessIsSet(boolean value) {
13093
      if (!value) {
13094
        this.success = null;
13095
      }
13096
    }
13097
 
13098
    public void setFieldValue(_Fields field, Object value) {
13099
      switch (field) {
13100
      case SUCCESS:
13101
        if (value == null) {
13102
          unsetSuccess();
13103
        } else {
13104
          setSuccess((PickupStore)value);
13105
        }
13106
        break;
13107
 
13108
      }
13109
    }
13110
 
13111
    public Object getFieldValue(_Fields field) {
13112
      switch (field) {
13113
      case SUCCESS:
13114
        return getSuccess();
13115
 
13116
      }
13117
      throw new IllegalStateException();
13118
    }
13119
 
13120
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13121
    public boolean isSet(_Fields field) {
13122
      if (field == null) {
13123
        throw new IllegalArgumentException();
13124
      }
13125
 
13126
      switch (field) {
13127
      case SUCCESS:
13128
        return isSetSuccess();
13129
      }
13130
      throw new IllegalStateException();
13131
    }
13132
 
13133
    @Override
13134
    public boolean equals(Object that) {
13135
      if (that == null)
13136
        return false;
13137
      if (that instanceof getPickupStore_result)
13138
        return this.equals((getPickupStore_result)that);
13139
      return false;
13140
    }
13141
 
13142
    public boolean equals(getPickupStore_result that) {
13143
      if (that == null)
13144
        return false;
13145
 
13146
      boolean this_present_success = true && this.isSetSuccess();
13147
      boolean that_present_success = true && that.isSetSuccess();
13148
      if (this_present_success || that_present_success) {
13149
        if (!(this_present_success && that_present_success))
13150
          return false;
13151
        if (!this.success.equals(that.success))
13152
          return false;
13153
      }
13154
 
13155
      return true;
13156
    }
13157
 
13158
    @Override
13159
    public int hashCode() {
13160
      return 0;
13161
    }
13162
 
13163
    public int compareTo(getPickupStore_result other) {
13164
      if (!getClass().equals(other.getClass())) {
13165
        return getClass().getName().compareTo(other.getClass().getName());
13166
      }
13167
 
13168
      int lastComparison = 0;
13169
      getPickupStore_result typedOther = (getPickupStore_result)other;
13170
 
13171
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13172
      if (lastComparison != 0) {
13173
        return lastComparison;
13174
      }
13175
      if (isSetSuccess()) {
13176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13177
        if (lastComparison != 0) {
13178
          return lastComparison;
13179
        }
13180
      }
13181
      return 0;
13182
    }
13183
 
13184
    public _Fields fieldForId(int fieldId) {
13185
      return _Fields.findByThriftId(fieldId);
13186
    }
13187
 
13188
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13189
      org.apache.thrift.protocol.TField field;
13190
      iprot.readStructBegin();
13191
      while (true)
13192
      {
13193
        field = iprot.readFieldBegin();
13194
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13195
          break;
13196
        }
13197
        switch (field.id) {
13198
          case 0: // SUCCESS
13199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13200
              this.success = new PickupStore();
13201
              this.success.read(iprot);
13202
            } else { 
13203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13204
            }
13205
            break;
13206
          default:
13207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13208
        }
13209
        iprot.readFieldEnd();
13210
      }
13211
      iprot.readStructEnd();
13212
      validate();
13213
    }
13214
 
13215
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13216
      oprot.writeStructBegin(STRUCT_DESC);
13217
 
13218
      if (this.isSetSuccess()) {
13219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13220
        this.success.write(oprot);
13221
        oprot.writeFieldEnd();
13222
      }
13223
      oprot.writeFieldStop();
13224
      oprot.writeStructEnd();
13225
    }
13226
 
13227
    @Override
13228
    public String toString() {
13229
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13230
      boolean first = true;
13231
 
13232
      sb.append("success:");
13233
      if (this.success == null) {
13234
        sb.append("null");
13235
      } else {
13236
        sb.append(this.success);
13237
      }
13238
      first = false;
13239
      sb.append(")");
13240
      return sb.toString();
13241
    }
13242
 
13243
    public void validate() throws org.apache.thrift.TException {
13244
      // check for required fields
13245
    }
13246
 
13247
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13248
      try {
13249
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13250
      } catch (org.apache.thrift.TException te) {
13251
        throw new java.io.IOException(te);
13252
      }
13253
    }
13254
 
13255
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13256
      try {
13257
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13258
      } catch (org.apache.thrift.TException te) {
13259
        throw new java.io.IOException(te);
13260
      }
13261
    }
13262
 
13263
  }
13264
 
5719 rajveer 13265
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13266
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13267
 
13268
    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);
13269
 
13270
    private String hotspotId; // required
13271
 
13272
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13273
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13274
      HOTSPOT_ID((short)1, "hotspotId");
13275
 
13276
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13277
 
13278
      static {
13279
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13280
          byName.put(field.getFieldName(), field);
13281
        }
13282
      }
13283
 
13284
      /**
13285
       * Find the _Fields constant that matches fieldId, or null if its not found.
13286
       */
13287
      public static _Fields findByThriftId(int fieldId) {
13288
        switch(fieldId) {
13289
          case 1: // HOTSPOT_ID
13290
            return HOTSPOT_ID;
13291
          default:
13292
            return null;
13293
        }
13294
      }
13295
 
13296
      /**
13297
       * Find the _Fields constant that matches fieldId, throwing an exception
13298
       * if it is not found.
13299
       */
13300
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13301
        _Fields fields = findByThriftId(fieldId);
13302
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13303
        return fields;
13304
      }
13305
 
13306
      /**
13307
       * Find the _Fields constant that matches name, or null if its not found.
13308
       */
13309
      public static _Fields findByName(String name) {
13310
        return byName.get(name);
13311
      }
13312
 
13313
      private final short _thriftId;
13314
      private final String _fieldName;
13315
 
13316
      _Fields(short thriftId, String fieldName) {
13317
        _thriftId = thriftId;
13318
        _fieldName = fieldName;
13319
      }
13320
 
13321
      public short getThriftFieldId() {
13322
        return _thriftId;
13323
      }
13324
 
13325
      public String getFieldName() {
13326
        return _fieldName;
13327
      }
13328
    }
13329
 
13330
    // isset id assignments
13331
 
13332
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13333
    static {
13334
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13335
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13337
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13338
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13339
    }
13340
 
13341
    public getPickupStoreByHotspotId_args() {
13342
    }
13343
 
13344
    public getPickupStoreByHotspotId_args(
13345
      String hotspotId)
13346
    {
13347
      this();
13348
      this.hotspotId = hotspotId;
13349
    }
13350
 
13351
    /**
13352
     * Performs a deep copy on <i>other</i>.
13353
     */
13354
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13355
      if (other.isSetHotspotId()) {
13356
        this.hotspotId = other.hotspotId;
13357
      }
13358
    }
13359
 
13360
    public getPickupStoreByHotspotId_args deepCopy() {
13361
      return new getPickupStoreByHotspotId_args(this);
13362
    }
13363
 
13364
    @Override
13365
    public void clear() {
13366
      this.hotspotId = null;
13367
    }
13368
 
13369
    public String getHotspotId() {
13370
      return this.hotspotId;
13371
    }
13372
 
13373
    public void setHotspotId(String hotspotId) {
13374
      this.hotspotId = hotspotId;
13375
    }
13376
 
13377
    public void unsetHotspotId() {
13378
      this.hotspotId = null;
13379
    }
13380
 
13381
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13382
    public boolean isSetHotspotId() {
13383
      return this.hotspotId != null;
13384
    }
13385
 
13386
    public void setHotspotIdIsSet(boolean value) {
13387
      if (!value) {
13388
        this.hotspotId = null;
13389
      }
13390
    }
13391
 
13392
    public void setFieldValue(_Fields field, Object value) {
13393
      switch (field) {
13394
      case HOTSPOT_ID:
13395
        if (value == null) {
13396
          unsetHotspotId();
13397
        } else {
13398
          setHotspotId((String)value);
13399
        }
13400
        break;
13401
 
13402
      }
13403
    }
13404
 
13405
    public Object getFieldValue(_Fields field) {
13406
      switch (field) {
13407
      case HOTSPOT_ID:
13408
        return getHotspotId();
13409
 
13410
      }
13411
      throw new IllegalStateException();
13412
    }
13413
 
13414
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13415
    public boolean isSet(_Fields field) {
13416
      if (field == null) {
13417
        throw new IllegalArgumentException();
13418
      }
13419
 
13420
      switch (field) {
13421
      case HOTSPOT_ID:
13422
        return isSetHotspotId();
13423
      }
13424
      throw new IllegalStateException();
13425
    }
13426
 
13427
    @Override
13428
    public boolean equals(Object that) {
13429
      if (that == null)
13430
        return false;
13431
      if (that instanceof getPickupStoreByHotspotId_args)
13432
        return this.equals((getPickupStoreByHotspotId_args)that);
13433
      return false;
13434
    }
13435
 
13436
    public boolean equals(getPickupStoreByHotspotId_args that) {
13437
      if (that == null)
13438
        return false;
13439
 
13440
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13441
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13442
      if (this_present_hotspotId || that_present_hotspotId) {
13443
        if (!(this_present_hotspotId && that_present_hotspotId))
13444
          return false;
13445
        if (!this.hotspotId.equals(that.hotspotId))
13446
          return false;
13447
      }
13448
 
13449
      return true;
13450
    }
13451
 
13452
    @Override
13453
    public int hashCode() {
13454
      return 0;
13455
    }
13456
 
13457
    public int compareTo(getPickupStoreByHotspotId_args other) {
13458
      if (!getClass().equals(other.getClass())) {
13459
        return getClass().getName().compareTo(other.getClass().getName());
13460
      }
13461
 
13462
      int lastComparison = 0;
13463
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13464
 
13465
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13466
      if (lastComparison != 0) {
13467
        return lastComparison;
13468
      }
13469
      if (isSetHotspotId()) {
13470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13471
        if (lastComparison != 0) {
13472
          return lastComparison;
13473
        }
13474
      }
13475
      return 0;
13476
    }
13477
 
13478
    public _Fields fieldForId(int fieldId) {
13479
      return _Fields.findByThriftId(fieldId);
13480
    }
13481
 
13482
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13483
      org.apache.thrift.protocol.TField field;
13484
      iprot.readStructBegin();
13485
      while (true)
13486
      {
13487
        field = iprot.readFieldBegin();
13488
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13489
          break;
13490
        }
13491
        switch (field.id) {
13492
          case 1: // HOTSPOT_ID
13493
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13494
              this.hotspotId = iprot.readString();
13495
            } else { 
13496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13497
            }
13498
            break;
13499
          default:
13500
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13501
        }
13502
        iprot.readFieldEnd();
13503
      }
13504
      iprot.readStructEnd();
13505
      validate();
13506
    }
13507
 
13508
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13509
      validate();
13510
 
13511
      oprot.writeStructBegin(STRUCT_DESC);
13512
      if (this.hotspotId != null) {
13513
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13514
        oprot.writeString(this.hotspotId);
13515
        oprot.writeFieldEnd();
13516
      }
13517
      oprot.writeFieldStop();
13518
      oprot.writeStructEnd();
13519
    }
13520
 
13521
    @Override
13522
    public String toString() {
13523
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13524
      boolean first = true;
13525
 
13526
      sb.append("hotspotId:");
13527
      if (this.hotspotId == null) {
13528
        sb.append("null");
13529
      } else {
13530
        sb.append(this.hotspotId);
13531
      }
13532
      first = false;
13533
      sb.append(")");
13534
      return sb.toString();
13535
    }
13536
 
13537
    public void validate() throws org.apache.thrift.TException {
13538
      // check for required fields
13539
    }
13540
 
13541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13542
      try {
13543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13544
      } catch (org.apache.thrift.TException te) {
13545
        throw new java.io.IOException(te);
13546
      }
13547
    }
13548
 
13549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13550
      try {
13551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13552
      } catch (org.apache.thrift.TException te) {
13553
        throw new java.io.IOException(te);
13554
      }
13555
    }
13556
 
13557
  }
13558
 
13559
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13561
 
13562
    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);
13563
 
13564
    private PickupStore success; // required
13565
 
13566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13568
      SUCCESS((short)0, "success");
13569
 
13570
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13571
 
13572
      static {
13573
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13574
          byName.put(field.getFieldName(), field);
13575
        }
13576
      }
13577
 
13578
      /**
13579
       * Find the _Fields constant that matches fieldId, or null if its not found.
13580
       */
13581
      public static _Fields findByThriftId(int fieldId) {
13582
        switch(fieldId) {
13583
          case 0: // SUCCESS
13584
            return SUCCESS;
13585
          default:
13586
            return null;
13587
        }
13588
      }
13589
 
13590
      /**
13591
       * Find the _Fields constant that matches fieldId, throwing an exception
13592
       * if it is not found.
13593
       */
13594
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13595
        _Fields fields = findByThriftId(fieldId);
13596
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13597
        return fields;
13598
      }
13599
 
13600
      /**
13601
       * Find the _Fields constant that matches name, or null if its not found.
13602
       */
13603
      public static _Fields findByName(String name) {
13604
        return byName.get(name);
13605
      }
13606
 
13607
      private final short _thriftId;
13608
      private final String _fieldName;
13609
 
13610
      _Fields(short thriftId, String fieldName) {
13611
        _thriftId = thriftId;
13612
        _fieldName = fieldName;
13613
      }
13614
 
13615
      public short getThriftFieldId() {
13616
        return _thriftId;
13617
      }
13618
 
13619
      public String getFieldName() {
13620
        return _fieldName;
13621
      }
13622
    }
13623
 
13624
    // isset id assignments
13625
 
13626
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13627
    static {
13628
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13629
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13630
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13633
    }
13634
 
13635
    public getPickupStoreByHotspotId_result() {
13636
    }
13637
 
13638
    public getPickupStoreByHotspotId_result(
13639
      PickupStore success)
13640
    {
13641
      this();
13642
      this.success = success;
13643
    }
13644
 
13645
    /**
13646
     * Performs a deep copy on <i>other</i>.
13647
     */
13648
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13649
      if (other.isSetSuccess()) {
13650
        this.success = new PickupStore(other.success);
13651
      }
13652
    }
13653
 
13654
    public getPickupStoreByHotspotId_result deepCopy() {
13655
      return new getPickupStoreByHotspotId_result(this);
13656
    }
13657
 
13658
    @Override
13659
    public void clear() {
13660
      this.success = null;
13661
    }
13662
 
13663
    public PickupStore getSuccess() {
13664
      return this.success;
13665
    }
13666
 
13667
    public void setSuccess(PickupStore success) {
13668
      this.success = success;
13669
    }
13670
 
13671
    public void unsetSuccess() {
13672
      this.success = null;
13673
    }
13674
 
13675
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13676
    public boolean isSetSuccess() {
13677
      return this.success != null;
13678
    }
13679
 
13680
    public void setSuccessIsSet(boolean value) {
13681
      if (!value) {
13682
        this.success = null;
13683
      }
13684
    }
13685
 
13686
    public void setFieldValue(_Fields field, Object value) {
13687
      switch (field) {
13688
      case SUCCESS:
13689
        if (value == null) {
13690
          unsetSuccess();
13691
        } else {
13692
          setSuccess((PickupStore)value);
13693
        }
13694
        break;
13695
 
13696
      }
13697
    }
13698
 
13699
    public Object getFieldValue(_Fields field) {
13700
      switch (field) {
13701
      case SUCCESS:
13702
        return getSuccess();
13703
 
13704
      }
13705
      throw new IllegalStateException();
13706
    }
13707
 
13708
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13709
    public boolean isSet(_Fields field) {
13710
      if (field == null) {
13711
        throw new IllegalArgumentException();
13712
      }
13713
 
13714
      switch (field) {
13715
      case SUCCESS:
13716
        return isSetSuccess();
13717
      }
13718
      throw new IllegalStateException();
13719
    }
13720
 
13721
    @Override
13722
    public boolean equals(Object that) {
13723
      if (that == null)
13724
        return false;
13725
      if (that instanceof getPickupStoreByHotspotId_result)
13726
        return this.equals((getPickupStoreByHotspotId_result)that);
13727
      return false;
13728
    }
13729
 
13730
    public boolean equals(getPickupStoreByHotspotId_result that) {
13731
      if (that == null)
13732
        return false;
13733
 
13734
      boolean this_present_success = true && this.isSetSuccess();
13735
      boolean that_present_success = true && that.isSetSuccess();
13736
      if (this_present_success || that_present_success) {
13737
        if (!(this_present_success && that_present_success))
13738
          return false;
13739
        if (!this.success.equals(that.success))
13740
          return false;
13741
      }
13742
 
13743
      return true;
13744
    }
13745
 
13746
    @Override
13747
    public int hashCode() {
13748
      return 0;
13749
    }
13750
 
13751
    public int compareTo(getPickupStoreByHotspotId_result other) {
13752
      if (!getClass().equals(other.getClass())) {
13753
        return getClass().getName().compareTo(other.getClass().getName());
13754
      }
13755
 
13756
      int lastComparison = 0;
13757
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13758
 
13759
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13760
      if (lastComparison != 0) {
13761
        return lastComparison;
13762
      }
13763
      if (isSetSuccess()) {
13764
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13765
        if (lastComparison != 0) {
13766
          return lastComparison;
13767
        }
13768
      }
13769
      return 0;
13770
    }
13771
 
13772
    public _Fields fieldForId(int fieldId) {
13773
      return _Fields.findByThriftId(fieldId);
13774
    }
13775
 
13776
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13777
      org.apache.thrift.protocol.TField field;
13778
      iprot.readStructBegin();
13779
      while (true)
13780
      {
13781
        field = iprot.readFieldBegin();
13782
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13783
          break;
13784
        }
13785
        switch (field.id) {
13786
          case 0: // SUCCESS
13787
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13788
              this.success = new PickupStore();
13789
              this.success.read(iprot);
13790
            } else { 
13791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13792
            }
13793
            break;
13794
          default:
13795
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13796
        }
13797
        iprot.readFieldEnd();
13798
      }
13799
      iprot.readStructEnd();
13800
      validate();
13801
    }
13802
 
13803
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13804
      oprot.writeStructBegin(STRUCT_DESC);
13805
 
13806
      if (this.isSetSuccess()) {
13807
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13808
        this.success.write(oprot);
13809
        oprot.writeFieldEnd();
13810
      }
13811
      oprot.writeFieldStop();
13812
      oprot.writeStructEnd();
13813
    }
13814
 
13815
    @Override
13816
    public String toString() {
13817
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13818
      boolean first = true;
13819
 
13820
      sb.append("success:");
13821
      if (this.success == null) {
13822
        sb.append("null");
13823
      } else {
13824
        sb.append(this.success);
13825
      }
13826
      first = false;
13827
      sb.append(")");
13828
      return sb.toString();
13829
    }
13830
 
13831
    public void validate() throws org.apache.thrift.TException {
13832
      // check for required fields
13833
    }
13834
 
13835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13836
      try {
13837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13838
      } catch (org.apache.thrift.TException te) {
13839
        throw new java.io.IOException(te);
13840
      }
13841
    }
13842
 
13843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13844
      try {
13845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13846
      } catch (org.apache.thrift.TException te) {
13847
        throw new java.io.IOException(te);
13848
      }
13849
    }
13850
 
13851
  }
13852
 
6322 amar.kumar 13853
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13855
 
13856
    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);
13857
    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);
13858
    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);
13859
    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);
13860
    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);
13861
    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 13862
    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 13863
 
13864
    private long providerId; // required
13865
    private String pincode; // required
13866
    private String destCode; // required
13867
    private boolean exp; // required
13868
    private boolean cod; // required
13869
    private int stationType; // required
6524 rajveer 13870
    private boolean otgAvailable; // required
6322 amar.kumar 13871
 
13872
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13873
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13874
      PROVIDER_ID((short)1, "providerId"),
13875
      PINCODE((short)2, "pincode"),
13876
      DEST_CODE((short)3, "destCode"),
13877
      EXP((short)4, "exp"),
13878
      COD((short)5, "cod"),
6524 rajveer 13879
      STATION_TYPE((short)6, "stationType"),
13880
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13881
 
13882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13883
 
13884
      static {
13885
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13886
          byName.put(field.getFieldName(), field);
13887
        }
13888
      }
13889
 
13890
      /**
13891
       * Find the _Fields constant that matches fieldId, or null if its not found.
13892
       */
13893
      public static _Fields findByThriftId(int fieldId) {
13894
        switch(fieldId) {
13895
          case 1: // PROVIDER_ID
13896
            return PROVIDER_ID;
13897
          case 2: // PINCODE
13898
            return PINCODE;
13899
          case 3: // DEST_CODE
13900
            return DEST_CODE;
13901
          case 4: // EXP
13902
            return EXP;
13903
          case 5: // COD
13904
            return COD;
13905
          case 6: // STATION_TYPE
13906
            return STATION_TYPE;
6524 rajveer 13907
          case 7: // OTG_AVAILABLE
13908
            return OTG_AVAILABLE;
6322 amar.kumar 13909
          default:
13910
            return null;
13911
        }
13912
      }
13913
 
13914
      /**
13915
       * Find the _Fields constant that matches fieldId, throwing an exception
13916
       * if it is not found.
13917
       */
13918
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13919
        _Fields fields = findByThriftId(fieldId);
13920
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13921
        return fields;
13922
      }
13923
 
13924
      /**
13925
       * Find the _Fields constant that matches name, or null if its not found.
13926
       */
13927
      public static _Fields findByName(String name) {
13928
        return byName.get(name);
13929
      }
13930
 
13931
      private final short _thriftId;
13932
      private final String _fieldName;
13933
 
13934
      _Fields(short thriftId, String fieldName) {
13935
        _thriftId = thriftId;
13936
        _fieldName = fieldName;
13937
      }
13938
 
13939
      public short getThriftFieldId() {
13940
        return _thriftId;
13941
      }
13942
 
13943
      public String getFieldName() {
13944
        return _fieldName;
13945
      }
13946
    }
13947
 
13948
    // isset id assignments
13949
    private static final int __PROVIDERID_ISSET_ID = 0;
13950
    private static final int __EXP_ISSET_ID = 1;
13951
    private static final int __COD_ISSET_ID = 2;
13952
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13953
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13954
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13955
 
13956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13957
    static {
13958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13959
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13961
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13963
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13965
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13966
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13967
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13968
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13969
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13971
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13975
    }
13976
 
13977
    public addPincode_args() {
13978
    }
13979
 
13980
    public addPincode_args(
13981
      long providerId,
13982
      String pincode,
13983
      String destCode,
13984
      boolean exp,
13985
      boolean cod,
6524 rajveer 13986
      int stationType,
13987
      boolean otgAvailable)
6322 amar.kumar 13988
    {
13989
      this();
13990
      this.providerId = providerId;
13991
      setProviderIdIsSet(true);
13992
      this.pincode = pincode;
13993
      this.destCode = destCode;
13994
      this.exp = exp;
13995
      setExpIsSet(true);
13996
      this.cod = cod;
13997
      setCodIsSet(true);
13998
      this.stationType = stationType;
13999
      setStationTypeIsSet(true);
6524 rajveer 14000
      this.otgAvailable = otgAvailable;
14001
      setOtgAvailableIsSet(true);
6322 amar.kumar 14002
    }
14003
 
14004
    /**
14005
     * Performs a deep copy on <i>other</i>.
14006
     */
14007
    public addPincode_args(addPincode_args other) {
14008
      __isset_bit_vector.clear();
14009
      __isset_bit_vector.or(other.__isset_bit_vector);
14010
      this.providerId = other.providerId;
14011
      if (other.isSetPincode()) {
14012
        this.pincode = other.pincode;
14013
      }
14014
      if (other.isSetDestCode()) {
14015
        this.destCode = other.destCode;
14016
      }
14017
      this.exp = other.exp;
14018
      this.cod = other.cod;
14019
      this.stationType = other.stationType;
6524 rajveer 14020
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14021
    }
14022
 
14023
    public addPincode_args deepCopy() {
14024
      return new addPincode_args(this);
14025
    }
14026
 
14027
    @Override
14028
    public void clear() {
14029
      setProviderIdIsSet(false);
14030
      this.providerId = 0;
14031
      this.pincode = null;
14032
      this.destCode = null;
14033
      setExpIsSet(false);
14034
      this.exp = false;
14035
      setCodIsSet(false);
14036
      this.cod = false;
14037
      setStationTypeIsSet(false);
14038
      this.stationType = 0;
6524 rajveer 14039
      setOtgAvailableIsSet(false);
14040
      this.otgAvailable = false;
6322 amar.kumar 14041
    }
14042
 
14043
    public long getProviderId() {
14044
      return this.providerId;
14045
    }
14046
 
14047
    public void setProviderId(long providerId) {
14048
      this.providerId = providerId;
14049
      setProviderIdIsSet(true);
14050
    }
14051
 
14052
    public void unsetProviderId() {
14053
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14054
    }
14055
 
14056
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14057
    public boolean isSetProviderId() {
14058
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14059
    }
14060
 
14061
    public void setProviderIdIsSet(boolean value) {
14062
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14063
    }
14064
 
14065
    public String getPincode() {
14066
      return this.pincode;
14067
    }
14068
 
14069
    public void setPincode(String pincode) {
14070
      this.pincode = pincode;
14071
    }
14072
 
14073
    public void unsetPincode() {
14074
      this.pincode = null;
14075
    }
14076
 
14077
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14078
    public boolean isSetPincode() {
14079
      return this.pincode != null;
14080
    }
14081
 
14082
    public void setPincodeIsSet(boolean value) {
14083
      if (!value) {
14084
        this.pincode = null;
14085
      }
14086
    }
14087
 
14088
    public String getDestCode() {
14089
      return this.destCode;
14090
    }
14091
 
14092
    public void setDestCode(String destCode) {
14093
      this.destCode = destCode;
14094
    }
14095
 
14096
    public void unsetDestCode() {
14097
      this.destCode = null;
14098
    }
14099
 
14100
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14101
    public boolean isSetDestCode() {
14102
      return this.destCode != null;
14103
    }
14104
 
14105
    public void setDestCodeIsSet(boolean value) {
14106
      if (!value) {
14107
        this.destCode = null;
14108
      }
14109
    }
14110
 
14111
    public boolean isExp() {
14112
      return this.exp;
14113
    }
14114
 
14115
    public void setExp(boolean exp) {
14116
      this.exp = exp;
14117
      setExpIsSet(true);
14118
    }
14119
 
14120
    public void unsetExp() {
14121
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14122
    }
14123
 
14124
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14125
    public boolean isSetExp() {
14126
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14127
    }
14128
 
14129
    public void setExpIsSet(boolean value) {
14130
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14131
    }
14132
 
14133
    public boolean isCod() {
14134
      return this.cod;
14135
    }
14136
 
14137
    public void setCod(boolean cod) {
14138
      this.cod = cod;
14139
      setCodIsSet(true);
14140
    }
14141
 
14142
    public void unsetCod() {
14143
      __isset_bit_vector.clear(__COD_ISSET_ID);
14144
    }
14145
 
14146
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14147
    public boolean isSetCod() {
14148
      return __isset_bit_vector.get(__COD_ISSET_ID);
14149
    }
14150
 
14151
    public void setCodIsSet(boolean value) {
14152
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14153
    }
14154
 
14155
    public int getStationType() {
14156
      return this.stationType;
14157
    }
14158
 
14159
    public void setStationType(int stationType) {
14160
      this.stationType = stationType;
14161
      setStationTypeIsSet(true);
14162
    }
14163
 
14164
    public void unsetStationType() {
14165
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14166
    }
14167
 
14168
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14169
    public boolean isSetStationType() {
14170
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14171
    }
14172
 
14173
    public void setStationTypeIsSet(boolean value) {
14174
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14175
    }
14176
 
6524 rajveer 14177
    public boolean isOtgAvailable() {
14178
      return this.otgAvailable;
14179
    }
14180
 
14181
    public void setOtgAvailable(boolean otgAvailable) {
14182
      this.otgAvailable = otgAvailable;
14183
      setOtgAvailableIsSet(true);
14184
    }
14185
 
14186
    public void unsetOtgAvailable() {
14187
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14188
    }
14189
 
14190
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14191
    public boolean isSetOtgAvailable() {
14192
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14193
    }
14194
 
14195
    public void setOtgAvailableIsSet(boolean value) {
14196
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14197
    }
14198
 
6322 amar.kumar 14199
    public void setFieldValue(_Fields field, Object value) {
14200
      switch (field) {
14201
      case PROVIDER_ID:
14202
        if (value == null) {
14203
          unsetProviderId();
14204
        } else {
14205
          setProviderId((Long)value);
14206
        }
14207
        break;
14208
 
14209
      case PINCODE:
14210
        if (value == null) {
14211
          unsetPincode();
14212
        } else {
14213
          setPincode((String)value);
14214
        }
14215
        break;
14216
 
14217
      case DEST_CODE:
14218
        if (value == null) {
14219
          unsetDestCode();
14220
        } else {
14221
          setDestCode((String)value);
14222
        }
14223
        break;
14224
 
14225
      case EXP:
14226
        if (value == null) {
14227
          unsetExp();
14228
        } else {
14229
          setExp((Boolean)value);
14230
        }
14231
        break;
14232
 
14233
      case COD:
14234
        if (value == null) {
14235
          unsetCod();
14236
        } else {
14237
          setCod((Boolean)value);
14238
        }
14239
        break;
14240
 
14241
      case STATION_TYPE:
14242
        if (value == null) {
14243
          unsetStationType();
14244
        } else {
14245
          setStationType((Integer)value);
14246
        }
14247
        break;
14248
 
6524 rajveer 14249
      case OTG_AVAILABLE:
14250
        if (value == null) {
14251
          unsetOtgAvailable();
14252
        } else {
14253
          setOtgAvailable((Boolean)value);
14254
        }
14255
        break;
14256
 
6322 amar.kumar 14257
      }
14258
    }
14259
 
14260
    public Object getFieldValue(_Fields field) {
14261
      switch (field) {
14262
      case PROVIDER_ID:
14263
        return Long.valueOf(getProviderId());
14264
 
14265
      case PINCODE:
14266
        return getPincode();
14267
 
14268
      case DEST_CODE:
14269
        return getDestCode();
14270
 
14271
      case EXP:
14272
        return Boolean.valueOf(isExp());
14273
 
14274
      case COD:
14275
        return Boolean.valueOf(isCod());
14276
 
14277
      case STATION_TYPE:
14278
        return Integer.valueOf(getStationType());
14279
 
6524 rajveer 14280
      case OTG_AVAILABLE:
14281
        return Boolean.valueOf(isOtgAvailable());
14282
 
6322 amar.kumar 14283
      }
14284
      throw new IllegalStateException();
14285
    }
14286
 
14287
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14288
    public boolean isSet(_Fields field) {
14289
      if (field == null) {
14290
        throw new IllegalArgumentException();
14291
      }
14292
 
14293
      switch (field) {
14294
      case PROVIDER_ID:
14295
        return isSetProviderId();
14296
      case PINCODE:
14297
        return isSetPincode();
14298
      case DEST_CODE:
14299
        return isSetDestCode();
14300
      case EXP:
14301
        return isSetExp();
14302
      case COD:
14303
        return isSetCod();
14304
      case STATION_TYPE:
14305
        return isSetStationType();
6524 rajveer 14306
      case OTG_AVAILABLE:
14307
        return isSetOtgAvailable();
6322 amar.kumar 14308
      }
14309
      throw new IllegalStateException();
14310
    }
14311
 
14312
    @Override
14313
    public boolean equals(Object that) {
14314
      if (that == null)
14315
        return false;
14316
      if (that instanceof addPincode_args)
14317
        return this.equals((addPincode_args)that);
14318
      return false;
14319
    }
14320
 
14321
    public boolean equals(addPincode_args that) {
14322
      if (that == null)
14323
        return false;
14324
 
14325
      boolean this_present_providerId = true;
14326
      boolean that_present_providerId = true;
14327
      if (this_present_providerId || that_present_providerId) {
14328
        if (!(this_present_providerId && that_present_providerId))
14329
          return false;
14330
        if (this.providerId != that.providerId)
14331
          return false;
14332
      }
14333
 
14334
      boolean this_present_pincode = true && this.isSetPincode();
14335
      boolean that_present_pincode = true && that.isSetPincode();
14336
      if (this_present_pincode || that_present_pincode) {
14337
        if (!(this_present_pincode && that_present_pincode))
14338
          return false;
14339
        if (!this.pincode.equals(that.pincode))
14340
          return false;
14341
      }
14342
 
14343
      boolean this_present_destCode = true && this.isSetDestCode();
14344
      boolean that_present_destCode = true && that.isSetDestCode();
14345
      if (this_present_destCode || that_present_destCode) {
14346
        if (!(this_present_destCode && that_present_destCode))
14347
          return false;
14348
        if (!this.destCode.equals(that.destCode))
14349
          return false;
14350
      }
14351
 
14352
      boolean this_present_exp = true;
14353
      boolean that_present_exp = true;
14354
      if (this_present_exp || that_present_exp) {
14355
        if (!(this_present_exp && that_present_exp))
14356
          return false;
14357
        if (this.exp != that.exp)
14358
          return false;
14359
      }
14360
 
14361
      boolean this_present_cod = true;
14362
      boolean that_present_cod = true;
14363
      if (this_present_cod || that_present_cod) {
14364
        if (!(this_present_cod && that_present_cod))
14365
          return false;
14366
        if (this.cod != that.cod)
14367
          return false;
14368
      }
14369
 
14370
      boolean this_present_stationType = true;
14371
      boolean that_present_stationType = true;
14372
      if (this_present_stationType || that_present_stationType) {
14373
        if (!(this_present_stationType && that_present_stationType))
14374
          return false;
14375
        if (this.stationType != that.stationType)
14376
          return false;
14377
      }
14378
 
6524 rajveer 14379
      boolean this_present_otgAvailable = true;
14380
      boolean that_present_otgAvailable = true;
14381
      if (this_present_otgAvailable || that_present_otgAvailable) {
14382
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14383
          return false;
14384
        if (this.otgAvailable != that.otgAvailable)
14385
          return false;
14386
      }
14387
 
6322 amar.kumar 14388
      return true;
14389
    }
14390
 
14391
    @Override
14392
    public int hashCode() {
14393
      return 0;
14394
    }
14395
 
14396
    public int compareTo(addPincode_args other) {
14397
      if (!getClass().equals(other.getClass())) {
14398
        return getClass().getName().compareTo(other.getClass().getName());
14399
      }
14400
 
14401
      int lastComparison = 0;
14402
      addPincode_args typedOther = (addPincode_args)other;
14403
 
14404
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14405
      if (lastComparison != 0) {
14406
        return lastComparison;
14407
      }
14408
      if (isSetProviderId()) {
14409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14410
        if (lastComparison != 0) {
14411
          return lastComparison;
14412
        }
14413
      }
14414
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14415
      if (lastComparison != 0) {
14416
        return lastComparison;
14417
      }
14418
      if (isSetPincode()) {
14419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14420
        if (lastComparison != 0) {
14421
          return lastComparison;
14422
        }
14423
      }
14424
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14425
      if (lastComparison != 0) {
14426
        return lastComparison;
14427
      }
14428
      if (isSetDestCode()) {
14429
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14430
        if (lastComparison != 0) {
14431
          return lastComparison;
14432
        }
14433
      }
14434
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14435
      if (lastComparison != 0) {
14436
        return lastComparison;
14437
      }
14438
      if (isSetExp()) {
14439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14440
        if (lastComparison != 0) {
14441
          return lastComparison;
14442
        }
14443
      }
14444
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14445
      if (lastComparison != 0) {
14446
        return lastComparison;
14447
      }
14448
      if (isSetCod()) {
14449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14450
        if (lastComparison != 0) {
14451
          return lastComparison;
14452
        }
14453
      }
14454
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14455
      if (lastComparison != 0) {
14456
        return lastComparison;
14457
      }
14458
      if (isSetStationType()) {
14459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14460
        if (lastComparison != 0) {
14461
          return lastComparison;
14462
        }
14463
      }
6524 rajveer 14464
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14465
      if (lastComparison != 0) {
14466
        return lastComparison;
14467
      }
14468
      if (isSetOtgAvailable()) {
14469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14470
        if (lastComparison != 0) {
14471
          return lastComparison;
14472
        }
14473
      }
6322 amar.kumar 14474
      return 0;
14475
    }
14476
 
14477
    public _Fields fieldForId(int fieldId) {
14478
      return _Fields.findByThriftId(fieldId);
14479
    }
14480
 
14481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14482
      org.apache.thrift.protocol.TField field;
14483
      iprot.readStructBegin();
14484
      while (true)
14485
      {
14486
        field = iprot.readFieldBegin();
14487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14488
          break;
14489
        }
14490
        switch (field.id) {
14491
          case 1: // PROVIDER_ID
14492
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14493
              this.providerId = iprot.readI64();
14494
              setProviderIdIsSet(true);
14495
            } else { 
14496
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14497
            }
14498
            break;
14499
          case 2: // PINCODE
14500
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14501
              this.pincode = iprot.readString();
14502
            } else { 
14503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14504
            }
14505
            break;
14506
          case 3: // DEST_CODE
14507
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14508
              this.destCode = iprot.readString();
14509
            } else { 
14510
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14511
            }
14512
            break;
14513
          case 4: // EXP
14514
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14515
              this.exp = iprot.readBool();
14516
              setExpIsSet(true);
14517
            } else { 
14518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14519
            }
14520
            break;
14521
          case 5: // COD
14522
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14523
              this.cod = iprot.readBool();
14524
              setCodIsSet(true);
14525
            } else { 
14526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14527
            }
14528
            break;
14529
          case 6: // STATION_TYPE
14530
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14531
              this.stationType = iprot.readI32();
14532
              setStationTypeIsSet(true);
14533
            } else { 
14534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14535
            }
14536
            break;
6524 rajveer 14537
          case 7: // OTG_AVAILABLE
14538
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14539
              this.otgAvailable = iprot.readBool();
14540
              setOtgAvailableIsSet(true);
14541
            } else { 
14542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14543
            }
14544
            break;
6322 amar.kumar 14545
          default:
14546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14547
        }
14548
        iprot.readFieldEnd();
14549
      }
14550
      iprot.readStructEnd();
14551
      validate();
14552
    }
14553
 
14554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14555
      validate();
14556
 
14557
      oprot.writeStructBegin(STRUCT_DESC);
14558
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14559
      oprot.writeI64(this.providerId);
14560
      oprot.writeFieldEnd();
14561
      if (this.pincode != null) {
14562
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14563
        oprot.writeString(this.pincode);
14564
        oprot.writeFieldEnd();
14565
      }
14566
      if (this.destCode != null) {
14567
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14568
        oprot.writeString(this.destCode);
14569
        oprot.writeFieldEnd();
14570
      }
14571
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14572
      oprot.writeBool(this.exp);
14573
      oprot.writeFieldEnd();
14574
      oprot.writeFieldBegin(COD_FIELD_DESC);
14575
      oprot.writeBool(this.cod);
14576
      oprot.writeFieldEnd();
14577
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14578
      oprot.writeI32(this.stationType);
14579
      oprot.writeFieldEnd();
6524 rajveer 14580
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14581
      oprot.writeBool(this.otgAvailable);
14582
      oprot.writeFieldEnd();
6322 amar.kumar 14583
      oprot.writeFieldStop();
14584
      oprot.writeStructEnd();
14585
    }
14586
 
14587
    @Override
14588
    public String toString() {
14589
      StringBuilder sb = new StringBuilder("addPincode_args(");
14590
      boolean first = true;
14591
 
14592
      sb.append("providerId:");
14593
      sb.append(this.providerId);
14594
      first = false;
14595
      if (!first) sb.append(", ");
14596
      sb.append("pincode:");
14597
      if (this.pincode == null) {
14598
        sb.append("null");
14599
      } else {
14600
        sb.append(this.pincode);
14601
      }
14602
      first = false;
14603
      if (!first) sb.append(", ");
14604
      sb.append("destCode:");
14605
      if (this.destCode == null) {
14606
        sb.append("null");
14607
      } else {
14608
        sb.append(this.destCode);
14609
      }
14610
      first = false;
14611
      if (!first) sb.append(", ");
14612
      sb.append("exp:");
14613
      sb.append(this.exp);
14614
      first = false;
14615
      if (!first) sb.append(", ");
14616
      sb.append("cod:");
14617
      sb.append(this.cod);
14618
      first = false;
14619
      if (!first) sb.append(", ");
14620
      sb.append("stationType:");
14621
      sb.append(this.stationType);
14622
      first = false;
6524 rajveer 14623
      if (!first) sb.append(", ");
14624
      sb.append("otgAvailable:");
14625
      sb.append(this.otgAvailable);
14626
      first = false;
6322 amar.kumar 14627
      sb.append(")");
14628
      return sb.toString();
14629
    }
14630
 
14631
    public void validate() throws org.apache.thrift.TException {
14632
      // check for required fields
14633
    }
14634
 
14635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14636
      try {
14637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14638
      } catch (org.apache.thrift.TException te) {
14639
        throw new java.io.IOException(te);
14640
      }
14641
    }
14642
 
14643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14644
      try {
14645
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14646
        __isset_bit_vector = new BitSet(1);
14647
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14648
      } catch (org.apache.thrift.TException te) {
14649
        throw new java.io.IOException(te);
14650
      }
14651
    }
14652
 
14653
  }
14654
 
14655
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14656
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14657
 
14658
 
14659
 
14660
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14661
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14662
;
14663
 
14664
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14665
 
14666
      static {
14667
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14668
          byName.put(field.getFieldName(), field);
14669
        }
14670
      }
14671
 
14672
      /**
14673
       * Find the _Fields constant that matches fieldId, or null if its not found.
14674
       */
14675
      public static _Fields findByThriftId(int fieldId) {
14676
        switch(fieldId) {
14677
          default:
14678
            return null;
14679
        }
14680
      }
14681
 
14682
      /**
14683
       * Find the _Fields constant that matches fieldId, throwing an exception
14684
       * if it is not found.
14685
       */
14686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14687
        _Fields fields = findByThriftId(fieldId);
14688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14689
        return fields;
14690
      }
14691
 
14692
      /**
14693
       * Find the _Fields constant that matches name, or null if its not found.
14694
       */
14695
      public static _Fields findByName(String name) {
14696
        return byName.get(name);
14697
      }
14698
 
14699
      private final short _thriftId;
14700
      private final String _fieldName;
14701
 
14702
      _Fields(short thriftId, String fieldName) {
14703
        _thriftId = thriftId;
14704
        _fieldName = fieldName;
14705
      }
14706
 
14707
      public short getThriftFieldId() {
14708
        return _thriftId;
14709
      }
14710
 
14711
      public String getFieldName() {
14712
        return _fieldName;
14713
      }
14714
    }
14715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14716
    static {
14717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14720
    }
14721
 
14722
    public addPincode_result() {
14723
    }
14724
 
14725
    /**
14726
     * Performs a deep copy on <i>other</i>.
14727
     */
14728
    public addPincode_result(addPincode_result other) {
14729
    }
14730
 
14731
    public addPincode_result deepCopy() {
14732
      return new addPincode_result(this);
14733
    }
14734
 
14735
    @Override
14736
    public void clear() {
14737
    }
14738
 
14739
    public void setFieldValue(_Fields field, Object value) {
14740
      switch (field) {
14741
      }
14742
    }
14743
 
14744
    public Object getFieldValue(_Fields field) {
14745
      switch (field) {
14746
      }
14747
      throw new IllegalStateException();
14748
    }
14749
 
14750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14751
    public boolean isSet(_Fields field) {
14752
      if (field == null) {
14753
        throw new IllegalArgumentException();
14754
      }
14755
 
14756
      switch (field) {
14757
      }
14758
      throw new IllegalStateException();
14759
    }
14760
 
14761
    @Override
14762
    public boolean equals(Object that) {
14763
      if (that == null)
14764
        return false;
14765
      if (that instanceof addPincode_result)
14766
        return this.equals((addPincode_result)that);
14767
      return false;
14768
    }
14769
 
14770
    public boolean equals(addPincode_result that) {
14771
      if (that == null)
14772
        return false;
14773
 
14774
      return true;
14775
    }
14776
 
14777
    @Override
14778
    public int hashCode() {
14779
      return 0;
14780
    }
14781
 
14782
    public int compareTo(addPincode_result other) {
14783
      if (!getClass().equals(other.getClass())) {
14784
        return getClass().getName().compareTo(other.getClass().getName());
14785
      }
14786
 
14787
      int lastComparison = 0;
14788
      addPincode_result typedOther = (addPincode_result)other;
14789
 
14790
      return 0;
14791
    }
14792
 
14793
    public _Fields fieldForId(int fieldId) {
14794
      return _Fields.findByThriftId(fieldId);
14795
    }
14796
 
14797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14798
      org.apache.thrift.protocol.TField field;
14799
      iprot.readStructBegin();
14800
      while (true)
14801
      {
14802
        field = iprot.readFieldBegin();
14803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14804
          break;
14805
        }
14806
        switch (field.id) {
14807
          default:
14808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14809
        }
14810
        iprot.readFieldEnd();
14811
      }
14812
      iprot.readStructEnd();
14813
      validate();
14814
    }
14815
 
14816
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14817
      oprot.writeStructBegin(STRUCT_DESC);
14818
 
14819
      oprot.writeFieldStop();
14820
      oprot.writeStructEnd();
14821
    }
14822
 
14823
    @Override
14824
    public String toString() {
14825
      StringBuilder sb = new StringBuilder("addPincode_result(");
14826
      boolean first = true;
14827
 
14828
      sb.append(")");
14829
      return sb.toString();
14830
    }
14831
 
14832
    public void validate() throws org.apache.thrift.TException {
14833
      // check for required fields
14834
    }
14835
 
14836
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14837
      try {
14838
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14839
      } catch (org.apache.thrift.TException te) {
14840
        throw new java.io.IOException(te);
14841
      }
14842
    }
14843
 
14844
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14845
      try {
14846
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14847
      } catch (org.apache.thrift.TException te) {
14848
        throw new java.io.IOException(te);
14849
      }
14850
    }
14851
 
14852
  }
14853
 
14854
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14855
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14856
 
14857
    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);
14858
    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);
14859
    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);
14860
    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 14861
    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 14862
 
14863
    private long providerId; // required
14864
    private String pincode; // required
14865
    private boolean exp; // required
14866
    private boolean cod; // required
6524 rajveer 14867
    private boolean otgAvailable; // required
6322 amar.kumar 14868
 
14869
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14870
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14871
      PROVIDER_ID((short)1, "providerId"),
14872
      PINCODE((short)2, "pincode"),
14873
      EXP((short)3, "exp"),
6524 rajveer 14874
      COD((short)4, "cod"),
14875
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14876
 
14877
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14878
 
14879
      static {
14880
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14881
          byName.put(field.getFieldName(), field);
14882
        }
14883
      }
14884
 
14885
      /**
14886
       * Find the _Fields constant that matches fieldId, or null if its not found.
14887
       */
14888
      public static _Fields findByThriftId(int fieldId) {
14889
        switch(fieldId) {
14890
          case 1: // PROVIDER_ID
14891
            return PROVIDER_ID;
14892
          case 2: // PINCODE
14893
            return PINCODE;
14894
          case 3: // EXP
14895
            return EXP;
14896
          case 4: // COD
14897
            return COD;
6524 rajveer 14898
          case 5: // OTG_AVAILABLE
14899
            return OTG_AVAILABLE;
6322 amar.kumar 14900
          default:
14901
            return null;
14902
        }
14903
      }
14904
 
14905
      /**
14906
       * Find the _Fields constant that matches fieldId, throwing an exception
14907
       * if it is not found.
14908
       */
14909
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14910
        _Fields fields = findByThriftId(fieldId);
14911
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14912
        return fields;
14913
      }
14914
 
14915
      /**
14916
       * Find the _Fields constant that matches name, or null if its not found.
14917
       */
14918
      public static _Fields findByName(String name) {
14919
        return byName.get(name);
14920
      }
14921
 
14922
      private final short _thriftId;
14923
      private final String _fieldName;
14924
 
14925
      _Fields(short thriftId, String fieldName) {
14926
        _thriftId = thriftId;
14927
        _fieldName = fieldName;
14928
      }
14929
 
14930
      public short getThriftFieldId() {
14931
        return _thriftId;
14932
      }
14933
 
14934
      public String getFieldName() {
14935
        return _fieldName;
14936
      }
14937
    }
14938
 
14939
    // isset id assignments
14940
    private static final int __PROVIDERID_ISSET_ID = 0;
14941
    private static final int __EXP_ISSET_ID = 1;
14942
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14943
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14944
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14945
 
14946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14947
    static {
14948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14949
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14951
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14953
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14955
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14956
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14957
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14961
    }
14962
 
14963
    public updatePincode_args() {
14964
    }
14965
 
14966
    public updatePincode_args(
14967
      long providerId,
14968
      String pincode,
14969
      boolean exp,
6524 rajveer 14970
      boolean cod,
14971
      boolean otgAvailable)
6322 amar.kumar 14972
    {
14973
      this();
14974
      this.providerId = providerId;
14975
      setProviderIdIsSet(true);
14976
      this.pincode = pincode;
14977
      this.exp = exp;
14978
      setExpIsSet(true);
14979
      this.cod = cod;
14980
      setCodIsSet(true);
6524 rajveer 14981
      this.otgAvailable = otgAvailable;
14982
      setOtgAvailableIsSet(true);
6322 amar.kumar 14983
    }
14984
 
14985
    /**
14986
     * Performs a deep copy on <i>other</i>.
14987
     */
14988
    public updatePincode_args(updatePincode_args other) {
14989
      __isset_bit_vector.clear();
14990
      __isset_bit_vector.or(other.__isset_bit_vector);
14991
      this.providerId = other.providerId;
14992
      if (other.isSetPincode()) {
14993
        this.pincode = other.pincode;
14994
      }
14995
      this.exp = other.exp;
14996
      this.cod = other.cod;
6524 rajveer 14997
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14998
    }
14999
 
15000
    public updatePincode_args deepCopy() {
15001
      return new updatePincode_args(this);
15002
    }
15003
 
15004
    @Override
15005
    public void clear() {
15006
      setProviderIdIsSet(false);
15007
      this.providerId = 0;
15008
      this.pincode = null;
15009
      setExpIsSet(false);
15010
      this.exp = false;
15011
      setCodIsSet(false);
15012
      this.cod = false;
6524 rajveer 15013
      setOtgAvailableIsSet(false);
15014
      this.otgAvailable = false;
6322 amar.kumar 15015
    }
15016
 
15017
    public long getProviderId() {
15018
      return this.providerId;
15019
    }
15020
 
15021
    public void setProviderId(long providerId) {
15022
      this.providerId = providerId;
15023
      setProviderIdIsSet(true);
15024
    }
15025
 
15026
    public void unsetProviderId() {
15027
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15028
    }
15029
 
15030
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15031
    public boolean isSetProviderId() {
15032
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15033
    }
15034
 
15035
    public void setProviderIdIsSet(boolean value) {
15036
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15037
    }
15038
 
15039
    public String getPincode() {
15040
      return this.pincode;
15041
    }
15042
 
15043
    public void setPincode(String pincode) {
15044
      this.pincode = pincode;
15045
    }
15046
 
15047
    public void unsetPincode() {
15048
      this.pincode = null;
15049
    }
15050
 
15051
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
15052
    public boolean isSetPincode() {
15053
      return this.pincode != null;
15054
    }
15055
 
15056
    public void setPincodeIsSet(boolean value) {
15057
      if (!value) {
15058
        this.pincode = null;
15059
      }
15060
    }
15061
 
15062
    public boolean isExp() {
15063
      return this.exp;
15064
    }
15065
 
15066
    public void setExp(boolean exp) {
15067
      this.exp = exp;
15068
      setExpIsSet(true);
15069
    }
15070
 
15071
    public void unsetExp() {
15072
      __isset_bit_vector.clear(__EXP_ISSET_ID);
15073
    }
15074
 
15075
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
15076
    public boolean isSetExp() {
15077
      return __isset_bit_vector.get(__EXP_ISSET_ID);
15078
    }
15079
 
15080
    public void setExpIsSet(boolean value) {
15081
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
15082
    }
15083
 
15084
    public boolean isCod() {
15085
      return this.cod;
15086
    }
15087
 
15088
    public void setCod(boolean cod) {
15089
      this.cod = cod;
15090
      setCodIsSet(true);
15091
    }
15092
 
15093
    public void unsetCod() {
15094
      __isset_bit_vector.clear(__COD_ISSET_ID);
15095
    }
15096
 
15097
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15098
    public boolean isSetCod() {
15099
      return __isset_bit_vector.get(__COD_ISSET_ID);
15100
    }
15101
 
15102
    public void setCodIsSet(boolean value) {
15103
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15104
    }
15105
 
6524 rajveer 15106
    public boolean isOtgAvailable() {
15107
      return this.otgAvailable;
15108
    }
15109
 
15110
    public void setOtgAvailable(boolean otgAvailable) {
15111
      this.otgAvailable = otgAvailable;
15112
      setOtgAvailableIsSet(true);
15113
    }
15114
 
15115
    public void unsetOtgAvailable() {
15116
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15117
    }
15118
 
15119
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15120
    public boolean isSetOtgAvailable() {
15121
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15122
    }
15123
 
15124
    public void setOtgAvailableIsSet(boolean value) {
15125
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15126
    }
15127
 
6322 amar.kumar 15128
    public void setFieldValue(_Fields field, Object value) {
15129
      switch (field) {
15130
      case PROVIDER_ID:
15131
        if (value == null) {
15132
          unsetProviderId();
15133
        } else {
15134
          setProviderId((Long)value);
15135
        }
15136
        break;
15137
 
15138
      case PINCODE:
15139
        if (value == null) {
15140
          unsetPincode();
15141
        } else {
15142
          setPincode((String)value);
15143
        }
15144
        break;
15145
 
15146
      case EXP:
15147
        if (value == null) {
15148
          unsetExp();
15149
        } else {
15150
          setExp((Boolean)value);
15151
        }
15152
        break;
15153
 
15154
      case COD:
15155
        if (value == null) {
15156
          unsetCod();
15157
        } else {
15158
          setCod((Boolean)value);
15159
        }
15160
        break;
15161
 
6524 rajveer 15162
      case OTG_AVAILABLE:
15163
        if (value == null) {
15164
          unsetOtgAvailable();
15165
        } else {
15166
          setOtgAvailable((Boolean)value);
15167
        }
15168
        break;
15169
 
6322 amar.kumar 15170
      }
15171
    }
15172
 
15173
    public Object getFieldValue(_Fields field) {
15174
      switch (field) {
15175
      case PROVIDER_ID:
15176
        return Long.valueOf(getProviderId());
15177
 
15178
      case PINCODE:
15179
        return getPincode();
15180
 
15181
      case EXP:
15182
        return Boolean.valueOf(isExp());
15183
 
15184
      case COD:
15185
        return Boolean.valueOf(isCod());
15186
 
6524 rajveer 15187
      case OTG_AVAILABLE:
15188
        return Boolean.valueOf(isOtgAvailable());
15189
 
6322 amar.kumar 15190
      }
15191
      throw new IllegalStateException();
15192
    }
15193
 
15194
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15195
    public boolean isSet(_Fields field) {
15196
      if (field == null) {
15197
        throw new IllegalArgumentException();
15198
      }
15199
 
15200
      switch (field) {
15201
      case PROVIDER_ID:
15202
        return isSetProviderId();
15203
      case PINCODE:
15204
        return isSetPincode();
15205
      case EXP:
15206
        return isSetExp();
15207
      case COD:
15208
        return isSetCod();
6524 rajveer 15209
      case OTG_AVAILABLE:
15210
        return isSetOtgAvailable();
6322 amar.kumar 15211
      }
15212
      throw new IllegalStateException();
15213
    }
15214
 
15215
    @Override
15216
    public boolean equals(Object that) {
15217
      if (that == null)
15218
        return false;
15219
      if (that instanceof updatePincode_args)
15220
        return this.equals((updatePincode_args)that);
15221
      return false;
15222
    }
15223
 
15224
    public boolean equals(updatePincode_args that) {
15225
      if (that == null)
15226
        return false;
15227
 
15228
      boolean this_present_providerId = true;
15229
      boolean that_present_providerId = true;
15230
      if (this_present_providerId || that_present_providerId) {
15231
        if (!(this_present_providerId && that_present_providerId))
15232
          return false;
15233
        if (this.providerId != that.providerId)
15234
          return false;
15235
      }
15236
 
15237
      boolean this_present_pincode = true && this.isSetPincode();
15238
      boolean that_present_pincode = true && that.isSetPincode();
15239
      if (this_present_pincode || that_present_pincode) {
15240
        if (!(this_present_pincode && that_present_pincode))
15241
          return false;
15242
        if (!this.pincode.equals(that.pincode))
15243
          return false;
15244
      }
15245
 
15246
      boolean this_present_exp = true;
15247
      boolean that_present_exp = true;
15248
      if (this_present_exp || that_present_exp) {
15249
        if (!(this_present_exp && that_present_exp))
15250
          return false;
15251
        if (this.exp != that.exp)
15252
          return false;
15253
      }
15254
 
15255
      boolean this_present_cod = true;
15256
      boolean that_present_cod = true;
15257
      if (this_present_cod || that_present_cod) {
15258
        if (!(this_present_cod && that_present_cod))
15259
          return false;
15260
        if (this.cod != that.cod)
15261
          return false;
15262
      }
15263
 
6524 rajveer 15264
      boolean this_present_otgAvailable = true;
15265
      boolean that_present_otgAvailable = true;
15266
      if (this_present_otgAvailable || that_present_otgAvailable) {
15267
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15268
          return false;
15269
        if (this.otgAvailable != that.otgAvailable)
15270
          return false;
15271
      }
15272
 
6322 amar.kumar 15273
      return true;
15274
    }
15275
 
15276
    @Override
15277
    public int hashCode() {
15278
      return 0;
15279
    }
15280
 
15281
    public int compareTo(updatePincode_args other) {
15282
      if (!getClass().equals(other.getClass())) {
15283
        return getClass().getName().compareTo(other.getClass().getName());
15284
      }
15285
 
15286
      int lastComparison = 0;
15287
      updatePincode_args typedOther = (updatePincode_args)other;
15288
 
15289
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15290
      if (lastComparison != 0) {
15291
        return lastComparison;
15292
      }
15293
      if (isSetProviderId()) {
15294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15295
        if (lastComparison != 0) {
15296
          return lastComparison;
15297
        }
15298
      }
15299
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15300
      if (lastComparison != 0) {
15301
        return lastComparison;
15302
      }
15303
      if (isSetPincode()) {
15304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15305
        if (lastComparison != 0) {
15306
          return lastComparison;
15307
        }
15308
      }
15309
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15310
      if (lastComparison != 0) {
15311
        return lastComparison;
15312
      }
15313
      if (isSetExp()) {
15314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15315
        if (lastComparison != 0) {
15316
          return lastComparison;
15317
        }
15318
      }
15319
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15320
      if (lastComparison != 0) {
15321
        return lastComparison;
15322
      }
15323
      if (isSetCod()) {
15324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15325
        if (lastComparison != 0) {
15326
          return lastComparison;
15327
        }
15328
      }
6524 rajveer 15329
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15330
      if (lastComparison != 0) {
15331
        return lastComparison;
15332
      }
15333
      if (isSetOtgAvailable()) {
15334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15335
        if (lastComparison != 0) {
15336
          return lastComparison;
15337
        }
15338
      }
6322 amar.kumar 15339
      return 0;
15340
    }
15341
 
15342
    public _Fields fieldForId(int fieldId) {
15343
      return _Fields.findByThriftId(fieldId);
15344
    }
15345
 
15346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15347
      org.apache.thrift.protocol.TField field;
15348
      iprot.readStructBegin();
15349
      while (true)
15350
      {
15351
        field = iprot.readFieldBegin();
15352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15353
          break;
15354
        }
15355
        switch (field.id) {
15356
          case 1: // PROVIDER_ID
15357
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15358
              this.providerId = iprot.readI64();
15359
              setProviderIdIsSet(true);
15360
            } else { 
15361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15362
            }
15363
            break;
15364
          case 2: // PINCODE
15365
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15366
              this.pincode = iprot.readString();
15367
            } else { 
15368
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15369
            }
15370
            break;
15371
          case 3: // EXP
15372
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15373
              this.exp = iprot.readBool();
15374
              setExpIsSet(true);
15375
            } else { 
15376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15377
            }
15378
            break;
15379
          case 4: // COD
15380
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15381
              this.cod = iprot.readBool();
15382
              setCodIsSet(true);
15383
            } else { 
15384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15385
            }
15386
            break;
6524 rajveer 15387
          case 5: // OTG_AVAILABLE
15388
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15389
              this.otgAvailable = iprot.readBool();
15390
              setOtgAvailableIsSet(true);
15391
            } else { 
15392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15393
            }
15394
            break;
6322 amar.kumar 15395
          default:
15396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15397
        }
15398
        iprot.readFieldEnd();
15399
      }
15400
      iprot.readStructEnd();
15401
      validate();
15402
    }
15403
 
15404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15405
      validate();
15406
 
15407
      oprot.writeStructBegin(STRUCT_DESC);
15408
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15409
      oprot.writeI64(this.providerId);
15410
      oprot.writeFieldEnd();
15411
      if (this.pincode != null) {
15412
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15413
        oprot.writeString(this.pincode);
15414
        oprot.writeFieldEnd();
15415
      }
15416
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15417
      oprot.writeBool(this.exp);
15418
      oprot.writeFieldEnd();
15419
      oprot.writeFieldBegin(COD_FIELD_DESC);
15420
      oprot.writeBool(this.cod);
15421
      oprot.writeFieldEnd();
6524 rajveer 15422
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15423
      oprot.writeBool(this.otgAvailable);
15424
      oprot.writeFieldEnd();
6322 amar.kumar 15425
      oprot.writeFieldStop();
15426
      oprot.writeStructEnd();
15427
    }
15428
 
15429
    @Override
15430
    public String toString() {
15431
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15432
      boolean first = true;
15433
 
15434
      sb.append("providerId:");
15435
      sb.append(this.providerId);
15436
      first = false;
15437
      if (!first) sb.append(", ");
15438
      sb.append("pincode:");
15439
      if (this.pincode == null) {
15440
        sb.append("null");
15441
      } else {
15442
        sb.append(this.pincode);
15443
      }
15444
      first = false;
15445
      if (!first) sb.append(", ");
15446
      sb.append("exp:");
15447
      sb.append(this.exp);
15448
      first = false;
15449
      if (!first) sb.append(", ");
15450
      sb.append("cod:");
15451
      sb.append(this.cod);
15452
      first = false;
6524 rajveer 15453
      if (!first) sb.append(", ");
15454
      sb.append("otgAvailable:");
15455
      sb.append(this.otgAvailable);
15456
      first = false;
6322 amar.kumar 15457
      sb.append(")");
15458
      return sb.toString();
15459
    }
15460
 
15461
    public void validate() throws org.apache.thrift.TException {
15462
      // check for required fields
15463
    }
15464
 
15465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15466
      try {
15467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15468
      } catch (org.apache.thrift.TException te) {
15469
        throw new java.io.IOException(te);
15470
      }
15471
    }
15472
 
15473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15474
      try {
15475
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15476
        __isset_bit_vector = new BitSet(1);
15477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15478
      } catch (org.apache.thrift.TException te) {
15479
        throw new java.io.IOException(te);
15480
      }
15481
    }
15482
 
15483
  }
15484
 
15485
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15487
 
15488
 
15489
 
15490
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15491
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15492
;
15493
 
15494
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15495
 
15496
      static {
15497
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15498
          byName.put(field.getFieldName(), field);
15499
        }
15500
      }
15501
 
15502
      /**
15503
       * Find the _Fields constant that matches fieldId, or null if its not found.
15504
       */
15505
      public static _Fields findByThriftId(int fieldId) {
15506
        switch(fieldId) {
15507
          default:
15508
            return null;
15509
        }
15510
      }
15511
 
15512
      /**
15513
       * Find the _Fields constant that matches fieldId, throwing an exception
15514
       * if it is not found.
15515
       */
15516
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15517
        _Fields fields = findByThriftId(fieldId);
15518
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15519
        return fields;
15520
      }
15521
 
15522
      /**
15523
       * Find the _Fields constant that matches name, or null if its not found.
15524
       */
15525
      public static _Fields findByName(String name) {
15526
        return byName.get(name);
15527
      }
15528
 
15529
      private final short _thriftId;
15530
      private final String _fieldName;
15531
 
15532
      _Fields(short thriftId, String fieldName) {
15533
        _thriftId = thriftId;
15534
        _fieldName = fieldName;
15535
      }
15536
 
15537
      public short getThriftFieldId() {
15538
        return _thriftId;
15539
      }
15540
 
15541
      public String getFieldName() {
15542
        return _fieldName;
15543
      }
15544
    }
15545
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15546
    static {
15547
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15548
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15549
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15550
    }
15551
 
15552
    public updatePincode_result() {
15553
    }
15554
 
15555
    /**
15556
     * Performs a deep copy on <i>other</i>.
15557
     */
15558
    public updatePincode_result(updatePincode_result other) {
15559
    }
15560
 
15561
    public updatePincode_result deepCopy() {
15562
      return new updatePincode_result(this);
15563
    }
15564
 
15565
    @Override
15566
    public void clear() {
15567
    }
15568
 
15569
    public void setFieldValue(_Fields field, Object value) {
15570
      switch (field) {
15571
      }
15572
    }
15573
 
15574
    public Object getFieldValue(_Fields field) {
15575
      switch (field) {
15576
      }
15577
      throw new IllegalStateException();
15578
    }
15579
 
15580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15581
    public boolean isSet(_Fields field) {
15582
      if (field == null) {
15583
        throw new IllegalArgumentException();
15584
      }
15585
 
15586
      switch (field) {
15587
      }
15588
      throw new IllegalStateException();
15589
    }
15590
 
15591
    @Override
15592
    public boolean equals(Object that) {
15593
      if (that == null)
15594
        return false;
15595
      if (that instanceof updatePincode_result)
15596
        return this.equals((updatePincode_result)that);
15597
      return false;
15598
    }
15599
 
15600
    public boolean equals(updatePincode_result that) {
15601
      if (that == null)
15602
        return false;
15603
 
15604
      return true;
15605
    }
15606
 
15607
    @Override
15608
    public int hashCode() {
15609
      return 0;
15610
    }
15611
 
15612
    public int compareTo(updatePincode_result other) {
15613
      if (!getClass().equals(other.getClass())) {
15614
        return getClass().getName().compareTo(other.getClass().getName());
15615
      }
15616
 
15617
      int lastComparison = 0;
15618
      updatePincode_result typedOther = (updatePincode_result)other;
15619
 
15620
      return 0;
15621
    }
15622
 
15623
    public _Fields fieldForId(int fieldId) {
15624
      return _Fields.findByThriftId(fieldId);
15625
    }
15626
 
15627
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15628
      org.apache.thrift.protocol.TField field;
15629
      iprot.readStructBegin();
15630
      while (true)
15631
      {
15632
        field = iprot.readFieldBegin();
15633
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15634
          break;
15635
        }
15636
        switch (field.id) {
15637
          default:
15638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15639
        }
15640
        iprot.readFieldEnd();
15641
      }
15642
      iprot.readStructEnd();
15643
      validate();
15644
    }
15645
 
15646
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15647
      oprot.writeStructBegin(STRUCT_DESC);
15648
 
15649
      oprot.writeFieldStop();
15650
      oprot.writeStructEnd();
15651
    }
15652
 
15653
    @Override
15654
    public String toString() {
15655
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15656
      boolean first = true;
15657
 
15658
      sb.append(")");
15659
      return sb.toString();
15660
    }
15661
 
15662
    public void validate() throws org.apache.thrift.TException {
15663
      // check for required fields
15664
    }
15665
 
15666
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15667
      try {
15668
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15669
      } catch (org.apache.thrift.TException te) {
15670
        throw new java.io.IOException(te);
15671
      }
15672
    }
15673
 
15674
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15675
      try {
15676
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15677
      } catch (org.apache.thrift.TException te) {
15678
        throw new java.io.IOException(te);
15679
      }
15680
    }
15681
 
15682
  }
15683
 
7567 rajveer 15684
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15685
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15686
 
15687
    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);
15688
    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);
15689
    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 15690
    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 15691
 
15692
    private long providerId; // required
15693
    private boolean cod; // required
15694
    private List<String> awbs; // required
13146 manish.sha 15695
    private long awbUsedFor; // required
7567 rajveer 15696
 
15697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15699
      PROVIDER_ID((short)1, "providerId"),
15700
      COD((short)2, "cod"),
13146 manish.sha 15701
      AWBS((short)3, "awbs"),
15702
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15703
 
15704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15705
 
15706
      static {
15707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15708
          byName.put(field.getFieldName(), field);
15709
        }
15710
      }
15711
 
15712
      /**
15713
       * Find the _Fields constant that matches fieldId, or null if its not found.
15714
       */
15715
      public static _Fields findByThriftId(int fieldId) {
15716
        switch(fieldId) {
15717
          case 1: // PROVIDER_ID
15718
            return PROVIDER_ID;
15719
          case 2: // COD
15720
            return COD;
15721
          case 3: // AWBS
15722
            return AWBS;
13146 manish.sha 15723
          case 4: // AWB_USED_FOR
15724
            return AWB_USED_FOR;
7567 rajveer 15725
          default:
15726
            return null;
15727
        }
15728
      }
15729
 
15730
      /**
15731
       * Find the _Fields constant that matches fieldId, throwing an exception
15732
       * if it is not found.
15733
       */
15734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15735
        _Fields fields = findByThriftId(fieldId);
15736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15737
        return fields;
15738
      }
15739
 
15740
      /**
15741
       * Find the _Fields constant that matches name, or null if its not found.
15742
       */
15743
      public static _Fields findByName(String name) {
15744
        return byName.get(name);
15745
      }
15746
 
15747
      private final short _thriftId;
15748
      private final String _fieldName;
15749
 
15750
      _Fields(short thriftId, String fieldName) {
15751
        _thriftId = thriftId;
15752
        _fieldName = fieldName;
15753
      }
15754
 
15755
      public short getThriftFieldId() {
15756
        return _thriftId;
15757
      }
15758
 
15759
      public String getFieldName() {
15760
        return _fieldName;
15761
      }
15762
    }
15763
 
15764
    // isset id assignments
15765
    private static final int __PROVIDERID_ISSET_ID = 0;
15766
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15767
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15768
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15769
 
15770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15771
    static {
15772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15773
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15774
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15775
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15777
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15778
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15779
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15780
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15782
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15783
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15784
    }
15785
 
15786
    public addNewAwbs_args() {
15787
    }
15788
 
15789
    public addNewAwbs_args(
15790
      long providerId,
15791
      boolean cod,
13146 manish.sha 15792
      List<String> awbs,
15793
      long awbUsedFor)
7567 rajveer 15794
    {
15795
      this();
15796
      this.providerId = providerId;
15797
      setProviderIdIsSet(true);
15798
      this.cod = cod;
15799
      setCodIsSet(true);
15800
      this.awbs = awbs;
13146 manish.sha 15801
      this.awbUsedFor = awbUsedFor;
15802
      setAwbUsedForIsSet(true);
7567 rajveer 15803
    }
15804
 
15805
    /**
15806
     * Performs a deep copy on <i>other</i>.
15807
     */
15808
    public addNewAwbs_args(addNewAwbs_args other) {
15809
      __isset_bit_vector.clear();
15810
      __isset_bit_vector.or(other.__isset_bit_vector);
15811
      this.providerId = other.providerId;
15812
      this.cod = other.cod;
15813
      if (other.isSetAwbs()) {
15814
        List<String> __this__awbs = new ArrayList<String>();
15815
        for (String other_element : other.awbs) {
15816
          __this__awbs.add(other_element);
15817
        }
15818
        this.awbs = __this__awbs;
15819
      }
13146 manish.sha 15820
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15821
    }
15822
 
15823
    public addNewAwbs_args deepCopy() {
15824
      return new addNewAwbs_args(this);
15825
    }
15826
 
15827
    @Override
15828
    public void clear() {
15829
      setProviderIdIsSet(false);
15830
      this.providerId = 0;
15831
      setCodIsSet(false);
15832
      this.cod = false;
15833
      this.awbs = null;
13146 manish.sha 15834
      setAwbUsedForIsSet(false);
15835
      this.awbUsedFor = 0;
7567 rajveer 15836
    }
15837
 
15838
    public long getProviderId() {
15839
      return this.providerId;
15840
    }
15841
 
15842
    public void setProviderId(long providerId) {
15843
      this.providerId = providerId;
15844
      setProviderIdIsSet(true);
15845
    }
15846
 
15847
    public void unsetProviderId() {
15848
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15849
    }
15850
 
15851
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15852
    public boolean isSetProviderId() {
15853
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15854
    }
15855
 
15856
    public void setProviderIdIsSet(boolean value) {
15857
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15858
    }
15859
 
15860
    public boolean isCod() {
15861
      return this.cod;
15862
    }
15863
 
15864
    public void setCod(boolean cod) {
15865
      this.cod = cod;
15866
      setCodIsSet(true);
15867
    }
15868
 
15869
    public void unsetCod() {
15870
      __isset_bit_vector.clear(__COD_ISSET_ID);
15871
    }
15872
 
15873
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15874
    public boolean isSetCod() {
15875
      return __isset_bit_vector.get(__COD_ISSET_ID);
15876
    }
15877
 
15878
    public void setCodIsSet(boolean value) {
15879
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15880
    }
15881
 
15882
    public int getAwbsSize() {
15883
      return (this.awbs == null) ? 0 : this.awbs.size();
15884
    }
15885
 
15886
    public java.util.Iterator<String> getAwbsIterator() {
15887
      return (this.awbs == null) ? null : this.awbs.iterator();
15888
    }
15889
 
15890
    public void addToAwbs(String elem) {
15891
      if (this.awbs == null) {
15892
        this.awbs = new ArrayList<String>();
15893
      }
15894
      this.awbs.add(elem);
15895
    }
15896
 
15897
    public List<String> getAwbs() {
15898
      return this.awbs;
15899
    }
15900
 
15901
    public void setAwbs(List<String> awbs) {
15902
      this.awbs = awbs;
15903
    }
15904
 
15905
    public void unsetAwbs() {
15906
      this.awbs = null;
15907
    }
15908
 
15909
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15910
    public boolean isSetAwbs() {
15911
      return this.awbs != null;
15912
    }
15913
 
15914
    public void setAwbsIsSet(boolean value) {
15915
      if (!value) {
15916
        this.awbs = null;
15917
      }
15918
    }
15919
 
13146 manish.sha 15920
    public long getAwbUsedFor() {
15921
      return this.awbUsedFor;
15922
    }
15923
 
15924
    public void setAwbUsedFor(long awbUsedFor) {
15925
      this.awbUsedFor = awbUsedFor;
15926
      setAwbUsedForIsSet(true);
15927
    }
15928
 
15929
    public void unsetAwbUsedFor() {
15930
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
15931
    }
15932
 
15933
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
15934
    public boolean isSetAwbUsedFor() {
15935
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
15936
    }
15937
 
15938
    public void setAwbUsedForIsSet(boolean value) {
15939
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
15940
    }
15941
 
7567 rajveer 15942
    public void setFieldValue(_Fields field, Object value) {
15943
      switch (field) {
15944
      case PROVIDER_ID:
15945
        if (value == null) {
15946
          unsetProviderId();
15947
        } else {
15948
          setProviderId((Long)value);
15949
        }
15950
        break;
15951
 
15952
      case COD:
15953
        if (value == null) {
15954
          unsetCod();
15955
        } else {
15956
          setCod((Boolean)value);
15957
        }
15958
        break;
15959
 
15960
      case AWBS:
15961
        if (value == null) {
15962
          unsetAwbs();
15963
        } else {
15964
          setAwbs((List<String>)value);
15965
        }
15966
        break;
15967
 
13146 manish.sha 15968
      case AWB_USED_FOR:
15969
        if (value == null) {
15970
          unsetAwbUsedFor();
15971
        } else {
15972
          setAwbUsedFor((Long)value);
15973
        }
15974
        break;
15975
 
7567 rajveer 15976
      }
15977
    }
15978
 
15979
    public Object getFieldValue(_Fields field) {
15980
      switch (field) {
15981
      case PROVIDER_ID:
15982
        return Long.valueOf(getProviderId());
15983
 
15984
      case COD:
15985
        return Boolean.valueOf(isCod());
15986
 
15987
      case AWBS:
15988
        return getAwbs();
15989
 
13146 manish.sha 15990
      case AWB_USED_FOR:
15991
        return Long.valueOf(getAwbUsedFor());
15992
 
7567 rajveer 15993
      }
15994
      throw new IllegalStateException();
15995
    }
15996
 
15997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15998
    public boolean isSet(_Fields field) {
15999
      if (field == null) {
16000
        throw new IllegalArgumentException();
16001
      }
16002
 
16003
      switch (field) {
16004
      case PROVIDER_ID:
16005
        return isSetProviderId();
16006
      case COD:
16007
        return isSetCod();
16008
      case AWBS:
16009
        return isSetAwbs();
13146 manish.sha 16010
      case AWB_USED_FOR:
16011
        return isSetAwbUsedFor();
7567 rajveer 16012
      }
16013
      throw new IllegalStateException();
16014
    }
16015
 
16016
    @Override
16017
    public boolean equals(Object that) {
16018
      if (that == null)
16019
        return false;
16020
      if (that instanceof addNewAwbs_args)
16021
        return this.equals((addNewAwbs_args)that);
16022
      return false;
16023
    }
16024
 
16025
    public boolean equals(addNewAwbs_args that) {
16026
      if (that == null)
16027
        return false;
16028
 
16029
      boolean this_present_providerId = true;
16030
      boolean that_present_providerId = true;
16031
      if (this_present_providerId || that_present_providerId) {
16032
        if (!(this_present_providerId && that_present_providerId))
16033
          return false;
16034
        if (this.providerId != that.providerId)
16035
          return false;
16036
      }
16037
 
16038
      boolean this_present_cod = true;
16039
      boolean that_present_cod = true;
16040
      if (this_present_cod || that_present_cod) {
16041
        if (!(this_present_cod && that_present_cod))
16042
          return false;
16043
        if (this.cod != that.cod)
16044
          return false;
16045
      }
16046
 
16047
      boolean this_present_awbs = true && this.isSetAwbs();
16048
      boolean that_present_awbs = true && that.isSetAwbs();
16049
      if (this_present_awbs || that_present_awbs) {
16050
        if (!(this_present_awbs && that_present_awbs))
16051
          return false;
16052
        if (!this.awbs.equals(that.awbs))
16053
          return false;
16054
      }
16055
 
13146 manish.sha 16056
      boolean this_present_awbUsedFor = true;
16057
      boolean that_present_awbUsedFor = true;
16058
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
16059
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
16060
          return false;
16061
        if (this.awbUsedFor != that.awbUsedFor)
16062
          return false;
16063
      }
16064
 
7567 rajveer 16065
      return true;
16066
    }
16067
 
16068
    @Override
16069
    public int hashCode() {
16070
      return 0;
16071
    }
16072
 
16073
    public int compareTo(addNewAwbs_args other) {
16074
      if (!getClass().equals(other.getClass())) {
16075
        return getClass().getName().compareTo(other.getClass().getName());
16076
      }
16077
 
16078
      int lastComparison = 0;
16079
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
16080
 
16081
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
16082
      if (lastComparison != 0) {
16083
        return lastComparison;
16084
      }
16085
      if (isSetProviderId()) {
16086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
16087
        if (lastComparison != 0) {
16088
          return lastComparison;
16089
        }
16090
      }
16091
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
16092
      if (lastComparison != 0) {
16093
        return lastComparison;
16094
      }
16095
      if (isSetCod()) {
16096
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
16097
        if (lastComparison != 0) {
16098
          return lastComparison;
16099
        }
16100
      }
16101
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16102
      if (lastComparison != 0) {
16103
        return lastComparison;
16104
      }
16105
      if (isSetAwbs()) {
16106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16107
        if (lastComparison != 0) {
16108
          return lastComparison;
16109
        }
16110
      }
13146 manish.sha 16111
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16112
      if (lastComparison != 0) {
16113
        return lastComparison;
16114
      }
16115
      if (isSetAwbUsedFor()) {
16116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16117
        if (lastComparison != 0) {
16118
          return lastComparison;
16119
        }
16120
      }
7567 rajveer 16121
      return 0;
16122
    }
16123
 
16124
    public _Fields fieldForId(int fieldId) {
16125
      return _Fields.findByThriftId(fieldId);
16126
    }
16127
 
16128
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16129
      org.apache.thrift.protocol.TField field;
16130
      iprot.readStructBegin();
16131
      while (true)
16132
      {
16133
        field = iprot.readFieldBegin();
16134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16135
          break;
16136
        }
16137
        switch (field.id) {
16138
          case 1: // PROVIDER_ID
16139
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16140
              this.providerId = iprot.readI64();
16141
              setProviderIdIsSet(true);
16142
            } else { 
16143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16144
            }
16145
            break;
16146
          case 2: // COD
16147
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16148
              this.cod = iprot.readBool();
16149
              setCodIsSet(true);
16150
            } else { 
16151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16152
            }
16153
            break;
16154
          case 3: // AWBS
16155
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16156
              {
7792 anupam.sin 16157
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16158
                this.awbs = new ArrayList<String>(_list24.size);
16159
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16160
                {
7792 anupam.sin 16161
                  String _elem26; // required
16162
                  _elem26 = iprot.readString();
16163
                  this.awbs.add(_elem26);
7567 rajveer 16164
                }
16165
                iprot.readListEnd();
16166
              }
16167
            } else { 
16168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16169
            }
16170
            break;
13146 manish.sha 16171
          case 4: // AWB_USED_FOR
16172
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16173
              this.awbUsedFor = iprot.readI64();
16174
              setAwbUsedForIsSet(true);
16175
            } else { 
16176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16177
            }
16178
            break;
7567 rajveer 16179
          default:
16180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16181
        }
16182
        iprot.readFieldEnd();
16183
      }
16184
      iprot.readStructEnd();
16185
      validate();
16186
    }
16187
 
16188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16189
      validate();
16190
 
16191
      oprot.writeStructBegin(STRUCT_DESC);
16192
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16193
      oprot.writeI64(this.providerId);
16194
      oprot.writeFieldEnd();
16195
      oprot.writeFieldBegin(COD_FIELD_DESC);
16196
      oprot.writeBool(this.cod);
16197
      oprot.writeFieldEnd();
16198
      if (this.awbs != null) {
16199
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16200
        {
16201
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16202
          for (String _iter27 : this.awbs)
7567 rajveer 16203
          {
7792 anupam.sin 16204
            oprot.writeString(_iter27);
7567 rajveer 16205
          }
16206
          oprot.writeListEnd();
16207
        }
16208
        oprot.writeFieldEnd();
16209
      }
13146 manish.sha 16210
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16211
      oprot.writeI64(this.awbUsedFor);
16212
      oprot.writeFieldEnd();
7567 rajveer 16213
      oprot.writeFieldStop();
16214
      oprot.writeStructEnd();
16215
    }
16216
 
16217
    @Override
16218
    public String toString() {
16219
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16220
      boolean first = true;
16221
 
16222
      sb.append("providerId:");
16223
      sb.append(this.providerId);
16224
      first = false;
16225
      if (!first) sb.append(", ");
16226
      sb.append("cod:");
16227
      sb.append(this.cod);
16228
      first = false;
16229
      if (!first) sb.append(", ");
16230
      sb.append("awbs:");
16231
      if (this.awbs == null) {
16232
        sb.append("null");
16233
      } else {
16234
        sb.append(this.awbs);
16235
      }
16236
      first = false;
13146 manish.sha 16237
      if (!first) sb.append(", ");
16238
      sb.append("awbUsedFor:");
16239
      sb.append(this.awbUsedFor);
16240
      first = false;
7567 rajveer 16241
      sb.append(")");
16242
      return sb.toString();
16243
    }
16244
 
16245
    public void validate() throws org.apache.thrift.TException {
16246
      // check for required fields
16247
    }
16248
 
16249
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16250
      try {
16251
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16252
      } catch (org.apache.thrift.TException te) {
16253
        throw new java.io.IOException(te);
16254
      }
16255
    }
16256
 
16257
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16258
      try {
16259
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16260
        __isset_bit_vector = new BitSet(1);
16261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16262
      } catch (org.apache.thrift.TException te) {
16263
        throw new java.io.IOException(te);
16264
      }
16265
    }
16266
 
16267
  }
16268
 
16269
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16271
 
16272
    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);
16273
 
16274
    private boolean success; // required
16275
 
16276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16277
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16278
      SUCCESS((short)0, "success");
16279
 
16280
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16281
 
16282
      static {
16283
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16284
          byName.put(field.getFieldName(), field);
16285
        }
16286
      }
16287
 
16288
      /**
16289
       * Find the _Fields constant that matches fieldId, or null if its not found.
16290
       */
16291
      public static _Fields findByThriftId(int fieldId) {
16292
        switch(fieldId) {
16293
          case 0: // SUCCESS
16294
            return SUCCESS;
16295
          default:
16296
            return null;
16297
        }
16298
      }
16299
 
16300
      /**
16301
       * Find the _Fields constant that matches fieldId, throwing an exception
16302
       * if it is not found.
16303
       */
16304
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16305
        _Fields fields = findByThriftId(fieldId);
16306
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16307
        return fields;
16308
      }
16309
 
16310
      /**
16311
       * Find the _Fields constant that matches name, or null if its not found.
16312
       */
16313
      public static _Fields findByName(String name) {
16314
        return byName.get(name);
16315
      }
16316
 
16317
      private final short _thriftId;
16318
      private final String _fieldName;
16319
 
16320
      _Fields(short thriftId, String fieldName) {
16321
        _thriftId = thriftId;
16322
        _fieldName = fieldName;
16323
      }
16324
 
16325
      public short getThriftFieldId() {
16326
        return _thriftId;
16327
      }
16328
 
16329
      public String getFieldName() {
16330
        return _fieldName;
16331
      }
16332
    }
16333
 
16334
    // isset id assignments
16335
    private static final int __SUCCESS_ISSET_ID = 0;
16336
    private BitSet __isset_bit_vector = new BitSet(1);
16337
 
16338
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16339
    static {
16340
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16341
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16342
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16343
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16344
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16345
    }
16346
 
16347
    public addNewAwbs_result() {
16348
    }
16349
 
16350
    public addNewAwbs_result(
16351
      boolean success)
16352
    {
16353
      this();
16354
      this.success = success;
16355
      setSuccessIsSet(true);
16356
    }
16357
 
16358
    /**
16359
     * Performs a deep copy on <i>other</i>.
16360
     */
16361
    public addNewAwbs_result(addNewAwbs_result other) {
16362
      __isset_bit_vector.clear();
16363
      __isset_bit_vector.or(other.__isset_bit_vector);
16364
      this.success = other.success;
16365
    }
16366
 
16367
    public addNewAwbs_result deepCopy() {
16368
      return new addNewAwbs_result(this);
16369
    }
16370
 
16371
    @Override
16372
    public void clear() {
16373
      setSuccessIsSet(false);
16374
      this.success = false;
16375
    }
16376
 
16377
    public boolean isSuccess() {
16378
      return this.success;
16379
    }
16380
 
16381
    public void setSuccess(boolean success) {
16382
      this.success = success;
16383
      setSuccessIsSet(true);
16384
    }
16385
 
16386
    public void unsetSuccess() {
16387
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16388
    }
16389
 
16390
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16391
    public boolean isSetSuccess() {
16392
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16393
    }
16394
 
16395
    public void setSuccessIsSet(boolean value) {
16396
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16397
    }
16398
 
16399
    public void setFieldValue(_Fields field, Object value) {
16400
      switch (field) {
16401
      case SUCCESS:
16402
        if (value == null) {
16403
          unsetSuccess();
16404
        } else {
16405
          setSuccess((Boolean)value);
16406
        }
16407
        break;
16408
 
16409
      }
16410
    }
16411
 
16412
    public Object getFieldValue(_Fields field) {
16413
      switch (field) {
16414
      case SUCCESS:
16415
        return Boolean.valueOf(isSuccess());
16416
 
16417
      }
16418
      throw new IllegalStateException();
16419
    }
16420
 
16421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16422
    public boolean isSet(_Fields field) {
16423
      if (field == null) {
16424
        throw new IllegalArgumentException();
16425
      }
16426
 
16427
      switch (field) {
16428
      case SUCCESS:
16429
        return isSetSuccess();
16430
      }
16431
      throw new IllegalStateException();
16432
    }
16433
 
16434
    @Override
16435
    public boolean equals(Object that) {
16436
      if (that == null)
16437
        return false;
16438
      if (that instanceof addNewAwbs_result)
16439
        return this.equals((addNewAwbs_result)that);
16440
      return false;
16441
    }
16442
 
16443
    public boolean equals(addNewAwbs_result that) {
16444
      if (that == null)
16445
        return false;
16446
 
16447
      boolean this_present_success = true;
16448
      boolean that_present_success = true;
16449
      if (this_present_success || that_present_success) {
16450
        if (!(this_present_success && that_present_success))
16451
          return false;
16452
        if (this.success != that.success)
16453
          return false;
16454
      }
16455
 
16456
      return true;
16457
    }
16458
 
16459
    @Override
16460
    public int hashCode() {
16461
      return 0;
16462
    }
16463
 
16464
    public int compareTo(addNewAwbs_result other) {
16465
      if (!getClass().equals(other.getClass())) {
16466
        return getClass().getName().compareTo(other.getClass().getName());
16467
      }
16468
 
16469
      int lastComparison = 0;
16470
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16471
 
16472
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16473
      if (lastComparison != 0) {
16474
        return lastComparison;
16475
      }
16476
      if (isSetSuccess()) {
16477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16478
        if (lastComparison != 0) {
16479
          return lastComparison;
16480
        }
16481
      }
16482
      return 0;
16483
    }
16484
 
16485
    public _Fields fieldForId(int fieldId) {
16486
      return _Fields.findByThriftId(fieldId);
16487
    }
16488
 
16489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16490
      org.apache.thrift.protocol.TField field;
16491
      iprot.readStructBegin();
16492
      while (true)
16493
      {
16494
        field = iprot.readFieldBegin();
16495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16496
          break;
16497
        }
16498
        switch (field.id) {
16499
          case 0: // SUCCESS
16500
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16501
              this.success = iprot.readBool();
16502
              setSuccessIsSet(true);
16503
            } else { 
16504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16505
            }
16506
            break;
16507
          default:
16508
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16509
        }
16510
        iprot.readFieldEnd();
16511
      }
16512
      iprot.readStructEnd();
16513
      validate();
16514
    }
16515
 
16516
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16517
      oprot.writeStructBegin(STRUCT_DESC);
16518
 
16519
      if (this.isSetSuccess()) {
16520
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16521
        oprot.writeBool(this.success);
16522
        oprot.writeFieldEnd();
16523
      }
16524
      oprot.writeFieldStop();
16525
      oprot.writeStructEnd();
16526
    }
16527
 
16528
    @Override
16529
    public String toString() {
16530
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16531
      boolean first = true;
16532
 
16533
      sb.append("success:");
16534
      sb.append(this.success);
16535
      first = false;
16536
      sb.append(")");
16537
      return sb.toString();
16538
    }
16539
 
16540
    public void validate() throws org.apache.thrift.TException {
16541
      // check for required fields
16542
    }
16543
 
16544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16545
      try {
16546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16547
      } catch (org.apache.thrift.TException te) {
16548
        throw new java.io.IOException(te);
16549
      }
16550
    }
16551
 
16552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16553
      try {
16554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16555
      } catch (org.apache.thrift.TException te) {
16556
        throw new java.io.IOException(te);
16557
      }
16558
    }
16559
 
16560
  }
16561
 
7788 manish.sha 16562
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16564
 
7788 manish.sha 16565
    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);
16566
    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 16567
 
7788 manish.sha 16568
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16569
    private boolean runCompleteUpdate; // required
7737 manish.sha 16570
 
16571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16573
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16574
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16575
 
16576
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16577
 
16578
      static {
16579
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16580
          byName.put(field.getFieldName(), field);
16581
        }
16582
      }
16583
 
16584
      /**
16585
       * Find the _Fields constant that matches fieldId, or null if its not found.
16586
       */
16587
      public static _Fields findByThriftId(int fieldId) {
16588
        switch(fieldId) {
7788 manish.sha 16589
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16590
            return LOGISTICS_LOCATION_INFO_LIST;
16591
          case 2: // RUN_COMPLETE_UPDATE
16592
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16593
          default:
16594
            return null;
16595
        }
16596
      }
16597
 
16598
      /**
16599
       * Find the _Fields constant that matches fieldId, throwing an exception
16600
       * if it is not found.
16601
       */
16602
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16603
        _Fields fields = findByThriftId(fieldId);
16604
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16605
        return fields;
16606
      }
16607
 
16608
      /**
16609
       * Find the _Fields constant that matches name, or null if its not found.
16610
       */
16611
      public static _Fields findByName(String name) {
16612
        return byName.get(name);
16613
      }
16614
 
16615
      private final short _thriftId;
16616
      private final String _fieldName;
16617
 
16618
      _Fields(short thriftId, String fieldName) {
16619
        _thriftId = thriftId;
16620
        _fieldName = fieldName;
16621
      }
16622
 
16623
      public short getThriftFieldId() {
16624
        return _thriftId;
16625
      }
16626
 
16627
      public String getFieldName() {
16628
        return _fieldName;
16629
      }
16630
    }
16631
 
16632
    // isset id assignments
7788 manish.sha 16633
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16634
    private BitSet __isset_bit_vector = new BitSet(1);
16635
 
16636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16637
    static {
16638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16639
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16640
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16641
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16642
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16643
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16644
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16645
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16646
    }
16647
 
7788 manish.sha 16648
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16649
    }
16650
 
7788 manish.sha 16651
    public runLogisticsLocationInfoUpdate_args(
16652
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16653
      boolean runCompleteUpdate)
7737 manish.sha 16654
    {
16655
      this();
7788 manish.sha 16656
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16657
      this.runCompleteUpdate = runCompleteUpdate;
16658
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16659
    }
16660
 
16661
    /**
16662
     * Performs a deep copy on <i>other</i>.
16663
     */
7788 manish.sha 16664
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16665
      __isset_bit_vector.clear();
16666
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16667
      if (other.isSetLogisticsLocationInfoList()) {
16668
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16669
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16670
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16671
        }
16672
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16673
      }
7788 manish.sha 16674
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16675
    }
16676
 
7788 manish.sha 16677
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16678
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16679
    }
16680
 
16681
    @Override
16682
    public void clear() {
7788 manish.sha 16683
      this.logisticsLocationInfoList = null;
16684
      setRunCompleteUpdateIsSet(false);
16685
      this.runCompleteUpdate = false;
7737 manish.sha 16686
    }
16687
 
7788 manish.sha 16688
    public int getLogisticsLocationInfoListSize() {
16689
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16690
    }
16691
 
7788 manish.sha 16692
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16693
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16694
    }
16695
 
7788 manish.sha 16696
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16697
      if (this.logisticsLocationInfoList == null) {
16698
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16699
      }
16700
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16701
    }
16702
 
7788 manish.sha 16703
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16704
      return this.logisticsLocationInfoList;
7737 manish.sha 16705
    }
16706
 
7788 manish.sha 16707
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16708
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16709
    }
16710
 
7788 manish.sha 16711
    public void unsetLogisticsLocationInfoList() {
16712
      this.logisticsLocationInfoList = null;
7737 manish.sha 16713
    }
16714
 
7788 manish.sha 16715
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16716
    public boolean isSetLogisticsLocationInfoList() {
16717
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16718
    }
16719
 
7788 manish.sha 16720
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16721
      if (!value) {
16722
        this.logisticsLocationInfoList = null;
16723
      }
7737 manish.sha 16724
    }
16725
 
7788 manish.sha 16726
    public boolean isRunCompleteUpdate() {
16727
      return this.runCompleteUpdate;
7737 manish.sha 16728
    }
16729
 
7788 manish.sha 16730
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16731
      this.runCompleteUpdate = runCompleteUpdate;
16732
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16733
    }
16734
 
7788 manish.sha 16735
    public void unsetRunCompleteUpdate() {
16736
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16737
    }
16738
 
16739
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16740
    public boolean isSetRunCompleteUpdate() {
16741
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16742
    }
16743
 
16744
    public void setRunCompleteUpdateIsSet(boolean value) {
16745
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16746
    }
16747
 
7737 manish.sha 16748
    public void setFieldValue(_Fields field, Object value) {
16749
      switch (field) {
7788 manish.sha 16750
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16751
        if (value == null) {
7788 manish.sha 16752
          unsetLogisticsLocationInfoList();
7737 manish.sha 16753
        } else {
7788 manish.sha 16754
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16755
        }
16756
        break;
16757
 
7788 manish.sha 16758
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16759
        if (value == null) {
7788 manish.sha 16760
          unsetRunCompleteUpdate();
7737 manish.sha 16761
        } else {
7788 manish.sha 16762
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16763
        }
16764
        break;
16765
 
16766
      }
16767
    }
16768
 
16769
    public Object getFieldValue(_Fields field) {
16770
      switch (field) {
7788 manish.sha 16771
      case LOGISTICS_LOCATION_INFO_LIST:
16772
        return getLogisticsLocationInfoList();
7737 manish.sha 16773
 
7788 manish.sha 16774
      case RUN_COMPLETE_UPDATE:
16775
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16776
 
16777
      }
16778
      throw new IllegalStateException();
16779
    }
16780
 
16781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16782
    public boolean isSet(_Fields field) {
16783
      if (field == null) {
16784
        throw new IllegalArgumentException();
16785
      }
16786
 
16787
      switch (field) {
7788 manish.sha 16788
      case LOGISTICS_LOCATION_INFO_LIST:
16789
        return isSetLogisticsLocationInfoList();
16790
      case RUN_COMPLETE_UPDATE:
16791
        return isSetRunCompleteUpdate();
7737 manish.sha 16792
      }
16793
      throw new IllegalStateException();
16794
    }
16795
 
16796
    @Override
16797
    public boolean equals(Object that) {
16798
      if (that == null)
16799
        return false;
7788 manish.sha 16800
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16801
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16802
      return false;
16803
    }
16804
 
7788 manish.sha 16805
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16806
      if (that == null)
16807
        return false;
16808
 
7788 manish.sha 16809
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16810
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16811
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16812
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16813
          return false;
7788 manish.sha 16814
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16815
          return false;
16816
      }
16817
 
7788 manish.sha 16818
      boolean this_present_runCompleteUpdate = true;
16819
      boolean that_present_runCompleteUpdate = true;
16820
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16821
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16822
          return false;
7788 manish.sha 16823
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16824
          return false;
16825
      }
16826
 
16827
      return true;
16828
    }
16829
 
16830
    @Override
16831
    public int hashCode() {
16832
      return 0;
16833
    }
16834
 
7788 manish.sha 16835
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16836
      if (!getClass().equals(other.getClass())) {
16837
        return getClass().getName().compareTo(other.getClass().getName());
16838
      }
16839
 
16840
      int lastComparison = 0;
7788 manish.sha 16841
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16842
 
7788 manish.sha 16843
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16844
      if (lastComparison != 0) {
16845
        return lastComparison;
16846
      }
7788 manish.sha 16847
      if (isSetLogisticsLocationInfoList()) {
16848
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16849
        if (lastComparison != 0) {
16850
          return lastComparison;
16851
        }
16852
      }
7788 manish.sha 16853
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16854
      if (lastComparison != 0) {
16855
        return lastComparison;
16856
      }
7788 manish.sha 16857
      if (isSetRunCompleteUpdate()) {
16858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16859
        if (lastComparison != 0) {
16860
          return lastComparison;
16861
        }
16862
      }
16863
      return 0;
16864
    }
16865
 
16866
    public _Fields fieldForId(int fieldId) {
16867
      return _Fields.findByThriftId(fieldId);
16868
    }
16869
 
16870
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16871
      org.apache.thrift.protocol.TField field;
16872
      iprot.readStructBegin();
16873
      while (true)
16874
      {
16875
        field = iprot.readFieldBegin();
16876
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16877
          break;
16878
        }
16879
        switch (field.id) {
7788 manish.sha 16880
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16881
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16882
              {
7808 anupam.sin 16883
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16884
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16885
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16886
                {
7808 anupam.sin 16887
                  LogisticsLocationInfo _elem30; // required
16888
                  _elem30 = new LogisticsLocationInfo();
16889
                  _elem30.read(iprot);
16890
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16891
                }
16892
                iprot.readListEnd();
16893
              }
7737 manish.sha 16894
            } else { 
16895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16896
            }
16897
            break;
7788 manish.sha 16898
          case 2: // RUN_COMPLETE_UPDATE
16899
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16900
              this.runCompleteUpdate = iprot.readBool();
16901
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16902
            } else { 
16903
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16904
            }
16905
            break;
16906
          default:
16907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16908
        }
16909
        iprot.readFieldEnd();
16910
      }
16911
      iprot.readStructEnd();
16912
      validate();
16913
    }
16914
 
16915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16916
      validate();
16917
 
16918
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16919
      if (this.logisticsLocationInfoList != null) {
16920
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16921
        {
16922
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16923
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16924
          {
7808 anupam.sin 16925
            _iter31.write(oprot);
7788 manish.sha 16926
          }
16927
          oprot.writeListEnd();
16928
        }
7737 manish.sha 16929
        oprot.writeFieldEnd();
16930
      }
7788 manish.sha 16931
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16932
      oprot.writeBool(this.runCompleteUpdate);
16933
      oprot.writeFieldEnd();
7737 manish.sha 16934
      oprot.writeFieldStop();
16935
      oprot.writeStructEnd();
16936
    }
16937
 
16938
    @Override
16939
    public String toString() {
7788 manish.sha 16940
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16941
      boolean first = true;
16942
 
7788 manish.sha 16943
      sb.append("logisticsLocationInfoList:");
16944
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16945
        sb.append("null");
16946
      } else {
7788 manish.sha 16947
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16948
      }
16949
      first = false;
7788 manish.sha 16950
      if (!first) sb.append(", ");
16951
      sb.append("runCompleteUpdate:");
16952
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16953
      first = false;
16954
      sb.append(")");
16955
      return sb.toString();
16956
    }
16957
 
16958
    public void validate() throws org.apache.thrift.TException {
16959
      // check for required fields
16960
    }
16961
 
16962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16963
      try {
16964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16965
      } catch (org.apache.thrift.TException te) {
16966
        throw new java.io.IOException(te);
16967
      }
16968
    }
16969
 
16970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16971
      try {
7788 manish.sha 16972
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16973
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16974
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16975
      } catch (org.apache.thrift.TException te) {
16976
        throw new java.io.IOException(te);
16977
      }
16978
    }
16979
 
16980
  }
16981
 
7788 manish.sha 16982
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16983
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16984
 
16985
 
16986
 
16987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16989
;
16990
 
16991
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16992
 
16993
      static {
16994
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16995
          byName.put(field.getFieldName(), field);
16996
        }
16997
      }
16998
 
16999
      /**
17000
       * Find the _Fields constant that matches fieldId, or null if its not found.
17001
       */
17002
      public static _Fields findByThriftId(int fieldId) {
17003
        switch(fieldId) {
17004
          default:
17005
            return null;
17006
        }
17007
      }
17008
 
17009
      /**
17010
       * Find the _Fields constant that matches fieldId, throwing an exception
17011
       * if it is not found.
17012
       */
17013
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17014
        _Fields fields = findByThriftId(fieldId);
17015
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17016
        return fields;
17017
      }
17018
 
17019
      /**
17020
       * Find the _Fields constant that matches name, or null if its not found.
17021
       */
17022
      public static _Fields findByName(String name) {
17023
        return byName.get(name);
17024
      }
17025
 
17026
      private final short _thriftId;
17027
      private final String _fieldName;
17028
 
17029
      _Fields(short thriftId, String fieldName) {
17030
        _thriftId = thriftId;
17031
        _fieldName = fieldName;
17032
      }
17033
 
17034
      public short getThriftFieldId() {
17035
        return _thriftId;
17036
      }
17037
 
17038
      public String getFieldName() {
17039
        return _fieldName;
17040
      }
17041
    }
17042
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17043
    static {
17044
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17045
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 17046
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 17047
    }
17048
 
7788 manish.sha 17049
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 17050
    }
17051
 
17052
    /**
17053
     * Performs a deep copy on <i>other</i>.
17054
     */
7788 manish.sha 17055
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17056
    }
17057
 
7788 manish.sha 17058
    public runLogisticsLocationInfoUpdate_result deepCopy() {
17059
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 17060
    }
17061
 
17062
    @Override
17063
    public void clear() {
17064
    }
17065
 
17066
    public void setFieldValue(_Fields field, Object value) {
17067
      switch (field) {
17068
      }
17069
    }
17070
 
17071
    public Object getFieldValue(_Fields field) {
17072
      switch (field) {
17073
      }
17074
      throw new IllegalStateException();
17075
    }
17076
 
17077
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17078
    public boolean isSet(_Fields field) {
17079
      if (field == null) {
17080
        throw new IllegalArgumentException();
17081
      }
17082
 
17083
      switch (field) {
17084
      }
17085
      throw new IllegalStateException();
17086
    }
17087
 
17088
    @Override
17089
    public boolean equals(Object that) {
17090
      if (that == null)
17091
        return false;
7788 manish.sha 17092
      if (that instanceof runLogisticsLocationInfoUpdate_result)
17093
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 17094
      return false;
17095
    }
17096
 
7788 manish.sha 17097
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 17098
      if (that == null)
17099
        return false;
17100
 
17101
      return true;
17102
    }
17103
 
17104
    @Override
17105
    public int hashCode() {
17106
      return 0;
17107
    }
17108
 
7788 manish.sha 17109
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17110
      if (!getClass().equals(other.getClass())) {
17111
        return getClass().getName().compareTo(other.getClass().getName());
17112
      }
17113
 
17114
      int lastComparison = 0;
7788 manish.sha 17115
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17116
 
17117
      return 0;
17118
    }
17119
 
17120
    public _Fields fieldForId(int fieldId) {
17121
      return _Fields.findByThriftId(fieldId);
17122
    }
17123
 
17124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17125
      org.apache.thrift.protocol.TField field;
17126
      iprot.readStructBegin();
17127
      while (true)
17128
      {
17129
        field = iprot.readFieldBegin();
17130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17131
          break;
17132
        }
17133
        switch (field.id) {
17134
          default:
17135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17136
        }
17137
        iprot.readFieldEnd();
17138
      }
17139
      iprot.readStructEnd();
17140
      validate();
17141
    }
17142
 
17143
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17144
      oprot.writeStructBegin(STRUCT_DESC);
17145
 
17146
      oprot.writeFieldStop();
17147
      oprot.writeStructEnd();
17148
    }
17149
 
17150
    @Override
17151
    public String toString() {
7788 manish.sha 17152
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17153
      boolean first = true;
17154
 
17155
      sb.append(")");
17156
      return sb.toString();
17157
    }
17158
 
17159
    public void validate() throws org.apache.thrift.TException {
17160
      // check for required fields
17161
    }
17162
 
17163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17164
      try {
17165
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17166
      } catch (org.apache.thrift.TException te) {
17167
        throw new java.io.IOException(te);
17168
      }
17169
    }
17170
 
17171
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17172
      try {
17173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17174
      } catch (org.apache.thrift.TException te) {
17175
        throw new java.io.IOException(te);
17176
      }
17177
    }
17178
 
17179
  }
17180
 
7888 rajveer 17181
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17183
 
17184
    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);
17185
    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);
17186
 
17187
    private long startDate; // required
17188
    private long days; // required
17189
 
17190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17192
      START_DATE((short)1, "startDate"),
17193
      DAYS((short)2, "days");
17194
 
17195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17196
 
17197
      static {
17198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17199
          byName.put(field.getFieldName(), field);
17200
        }
17201
      }
17202
 
17203
      /**
17204
       * Find the _Fields constant that matches fieldId, or null if its not found.
17205
       */
17206
      public static _Fields findByThriftId(int fieldId) {
17207
        switch(fieldId) {
17208
          case 1: // START_DATE
17209
            return START_DATE;
17210
          case 2: // DAYS
17211
            return DAYS;
17212
          default:
17213
            return null;
17214
        }
17215
      }
17216
 
17217
      /**
17218
       * Find the _Fields constant that matches fieldId, throwing an exception
17219
       * if it is not found.
17220
       */
17221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17222
        _Fields fields = findByThriftId(fieldId);
17223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17224
        return fields;
17225
      }
17226
 
17227
      /**
17228
       * Find the _Fields constant that matches name, or null if its not found.
17229
       */
17230
      public static _Fields findByName(String name) {
17231
        return byName.get(name);
17232
      }
17233
 
17234
      private final short _thriftId;
17235
      private final String _fieldName;
17236
 
17237
      _Fields(short thriftId, String fieldName) {
17238
        _thriftId = thriftId;
17239
        _fieldName = fieldName;
17240
      }
17241
 
17242
      public short getThriftFieldId() {
17243
        return _thriftId;
17244
      }
17245
 
17246
      public String getFieldName() {
17247
        return _fieldName;
17248
      }
17249
    }
17250
 
17251
    // isset id assignments
17252
    private static final int __STARTDATE_ISSET_ID = 0;
17253
    private static final int __DAYS_ISSET_ID = 1;
17254
    private BitSet __isset_bit_vector = new BitSet(2);
17255
 
17256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17257
    static {
17258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17259
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17261
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17265
    }
17266
 
17267
    public adjustDeliveryDays_args() {
17268
    }
17269
 
17270
    public adjustDeliveryDays_args(
17271
      long startDate,
17272
      long days)
17273
    {
17274
      this();
17275
      this.startDate = startDate;
17276
      setStartDateIsSet(true);
17277
      this.days = days;
17278
      setDaysIsSet(true);
17279
    }
17280
 
17281
    /**
17282
     * Performs a deep copy on <i>other</i>.
17283
     */
17284
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17285
      __isset_bit_vector.clear();
17286
      __isset_bit_vector.or(other.__isset_bit_vector);
17287
      this.startDate = other.startDate;
17288
      this.days = other.days;
17289
    }
17290
 
17291
    public adjustDeliveryDays_args deepCopy() {
17292
      return new adjustDeliveryDays_args(this);
17293
    }
17294
 
17295
    @Override
17296
    public void clear() {
17297
      setStartDateIsSet(false);
17298
      this.startDate = 0;
17299
      setDaysIsSet(false);
17300
      this.days = 0;
17301
    }
17302
 
17303
    public long getStartDate() {
17304
      return this.startDate;
17305
    }
17306
 
17307
    public void setStartDate(long startDate) {
17308
      this.startDate = startDate;
17309
      setStartDateIsSet(true);
17310
    }
17311
 
17312
    public void unsetStartDate() {
17313
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17314
    }
17315
 
17316
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17317
    public boolean isSetStartDate() {
17318
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17319
    }
17320
 
17321
    public void setStartDateIsSet(boolean value) {
17322
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17323
    }
17324
 
17325
    public long getDays() {
17326
      return this.days;
17327
    }
17328
 
17329
    public void setDays(long days) {
17330
      this.days = days;
17331
      setDaysIsSet(true);
17332
    }
17333
 
17334
    public void unsetDays() {
17335
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17336
    }
17337
 
17338
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17339
    public boolean isSetDays() {
17340
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17341
    }
17342
 
17343
    public void setDaysIsSet(boolean value) {
17344
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17345
    }
17346
 
17347
    public void setFieldValue(_Fields field, Object value) {
17348
      switch (field) {
17349
      case START_DATE:
17350
        if (value == null) {
17351
          unsetStartDate();
17352
        } else {
17353
          setStartDate((Long)value);
17354
        }
17355
        break;
17356
 
17357
      case DAYS:
17358
        if (value == null) {
17359
          unsetDays();
17360
        } else {
17361
          setDays((Long)value);
17362
        }
17363
        break;
17364
 
17365
      }
17366
    }
17367
 
17368
    public Object getFieldValue(_Fields field) {
17369
      switch (field) {
17370
      case START_DATE:
17371
        return Long.valueOf(getStartDate());
17372
 
17373
      case DAYS:
17374
        return Long.valueOf(getDays());
17375
 
17376
      }
17377
      throw new IllegalStateException();
17378
    }
17379
 
17380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17381
    public boolean isSet(_Fields field) {
17382
      if (field == null) {
17383
        throw new IllegalArgumentException();
17384
      }
17385
 
17386
      switch (field) {
17387
      case START_DATE:
17388
        return isSetStartDate();
17389
      case DAYS:
17390
        return isSetDays();
17391
      }
17392
      throw new IllegalStateException();
17393
    }
17394
 
17395
    @Override
17396
    public boolean equals(Object that) {
17397
      if (that == null)
17398
        return false;
17399
      if (that instanceof adjustDeliveryDays_args)
17400
        return this.equals((adjustDeliveryDays_args)that);
17401
      return false;
17402
    }
17403
 
17404
    public boolean equals(adjustDeliveryDays_args that) {
17405
      if (that == null)
17406
        return false;
17407
 
17408
      boolean this_present_startDate = true;
17409
      boolean that_present_startDate = true;
17410
      if (this_present_startDate || that_present_startDate) {
17411
        if (!(this_present_startDate && that_present_startDate))
17412
          return false;
17413
        if (this.startDate != that.startDate)
17414
          return false;
17415
      }
17416
 
17417
      boolean this_present_days = true;
17418
      boolean that_present_days = true;
17419
      if (this_present_days || that_present_days) {
17420
        if (!(this_present_days && that_present_days))
17421
          return false;
17422
        if (this.days != that.days)
17423
          return false;
17424
      }
17425
 
17426
      return true;
17427
    }
17428
 
17429
    @Override
17430
    public int hashCode() {
17431
      return 0;
17432
    }
17433
 
17434
    public int compareTo(adjustDeliveryDays_args other) {
17435
      if (!getClass().equals(other.getClass())) {
17436
        return getClass().getName().compareTo(other.getClass().getName());
17437
      }
17438
 
17439
      int lastComparison = 0;
17440
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17441
 
17442
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17443
      if (lastComparison != 0) {
17444
        return lastComparison;
17445
      }
17446
      if (isSetStartDate()) {
17447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17448
        if (lastComparison != 0) {
17449
          return lastComparison;
17450
        }
17451
      }
17452
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17453
      if (lastComparison != 0) {
17454
        return lastComparison;
17455
      }
17456
      if (isSetDays()) {
17457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17458
        if (lastComparison != 0) {
17459
          return lastComparison;
17460
        }
17461
      }
17462
      return 0;
17463
    }
17464
 
17465
    public _Fields fieldForId(int fieldId) {
17466
      return _Fields.findByThriftId(fieldId);
17467
    }
17468
 
17469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17470
      org.apache.thrift.protocol.TField field;
17471
      iprot.readStructBegin();
17472
      while (true)
17473
      {
17474
        field = iprot.readFieldBegin();
17475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17476
          break;
17477
        }
17478
        switch (field.id) {
17479
          case 1: // START_DATE
17480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17481
              this.startDate = iprot.readI64();
17482
              setStartDateIsSet(true);
17483
            } else { 
17484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17485
            }
17486
            break;
17487
          case 2: // DAYS
17488
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17489
              this.days = iprot.readI64();
17490
              setDaysIsSet(true);
17491
            } else { 
17492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17493
            }
17494
            break;
17495
          default:
17496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17497
        }
17498
        iprot.readFieldEnd();
17499
      }
17500
      iprot.readStructEnd();
17501
      validate();
17502
    }
17503
 
17504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17505
      validate();
17506
 
17507
      oprot.writeStructBegin(STRUCT_DESC);
17508
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17509
      oprot.writeI64(this.startDate);
17510
      oprot.writeFieldEnd();
17511
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17512
      oprot.writeI64(this.days);
17513
      oprot.writeFieldEnd();
17514
      oprot.writeFieldStop();
17515
      oprot.writeStructEnd();
17516
    }
17517
 
17518
    @Override
17519
    public String toString() {
17520
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17521
      boolean first = true;
17522
 
17523
      sb.append("startDate:");
17524
      sb.append(this.startDate);
17525
      first = false;
17526
      if (!first) sb.append(", ");
17527
      sb.append("days:");
17528
      sb.append(this.days);
17529
      first = false;
17530
      sb.append(")");
17531
      return sb.toString();
17532
    }
17533
 
17534
    public void validate() throws org.apache.thrift.TException {
17535
      // check for required fields
17536
    }
17537
 
17538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17539
      try {
17540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17541
      } catch (org.apache.thrift.TException te) {
17542
        throw new java.io.IOException(te);
17543
      }
17544
    }
17545
 
17546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17547
      try {
17548
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17549
        __isset_bit_vector = new BitSet(1);
17550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17551
      } catch (org.apache.thrift.TException te) {
17552
        throw new java.io.IOException(te);
17553
      }
17554
    }
17555
 
17556
  }
17557
 
17558
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17560
 
17561
    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);
17562
 
17563
    private long success; // required
17564
 
17565
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17566
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17567
      SUCCESS((short)0, "success");
17568
 
17569
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17570
 
17571
      static {
17572
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17573
          byName.put(field.getFieldName(), field);
17574
        }
17575
      }
17576
 
17577
      /**
17578
       * Find the _Fields constant that matches fieldId, or null if its not found.
17579
       */
17580
      public static _Fields findByThriftId(int fieldId) {
17581
        switch(fieldId) {
17582
          case 0: // SUCCESS
17583
            return SUCCESS;
17584
          default:
17585
            return null;
17586
        }
17587
      }
17588
 
17589
      /**
17590
       * Find the _Fields constant that matches fieldId, throwing an exception
17591
       * if it is not found.
17592
       */
17593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17594
        _Fields fields = findByThriftId(fieldId);
17595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17596
        return fields;
17597
      }
17598
 
17599
      /**
17600
       * Find the _Fields constant that matches name, or null if its not found.
17601
       */
17602
      public static _Fields findByName(String name) {
17603
        return byName.get(name);
17604
      }
17605
 
17606
      private final short _thriftId;
17607
      private final String _fieldName;
17608
 
17609
      _Fields(short thriftId, String fieldName) {
17610
        _thriftId = thriftId;
17611
        _fieldName = fieldName;
17612
      }
17613
 
17614
      public short getThriftFieldId() {
17615
        return _thriftId;
17616
      }
17617
 
17618
      public String getFieldName() {
17619
        return _fieldName;
17620
      }
17621
    }
17622
 
17623
    // isset id assignments
17624
    private static final int __SUCCESS_ISSET_ID = 0;
17625
    private BitSet __isset_bit_vector = new BitSet(1);
17626
 
17627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17628
    static {
17629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17630
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17632
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17633
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17634
    }
17635
 
17636
    public adjustDeliveryDays_result() {
17637
    }
17638
 
17639
    public adjustDeliveryDays_result(
17640
      long success)
17641
    {
17642
      this();
17643
      this.success = success;
17644
      setSuccessIsSet(true);
17645
    }
17646
 
17647
    /**
17648
     * Performs a deep copy on <i>other</i>.
17649
     */
17650
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17651
      __isset_bit_vector.clear();
17652
      __isset_bit_vector.or(other.__isset_bit_vector);
17653
      this.success = other.success;
17654
    }
17655
 
17656
    public adjustDeliveryDays_result deepCopy() {
17657
      return new adjustDeliveryDays_result(this);
17658
    }
17659
 
17660
    @Override
17661
    public void clear() {
17662
      setSuccessIsSet(false);
17663
      this.success = 0;
17664
    }
17665
 
17666
    public long getSuccess() {
17667
      return this.success;
17668
    }
17669
 
17670
    public void setSuccess(long success) {
17671
      this.success = success;
17672
      setSuccessIsSet(true);
17673
    }
17674
 
17675
    public void unsetSuccess() {
17676
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17677
    }
17678
 
17679
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17680
    public boolean isSetSuccess() {
17681
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17682
    }
17683
 
17684
    public void setSuccessIsSet(boolean value) {
17685
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17686
    }
17687
 
17688
    public void setFieldValue(_Fields field, Object value) {
17689
      switch (field) {
17690
      case SUCCESS:
17691
        if (value == null) {
17692
          unsetSuccess();
17693
        } else {
17694
          setSuccess((Long)value);
17695
        }
17696
        break;
17697
 
17698
      }
17699
    }
17700
 
17701
    public Object getFieldValue(_Fields field) {
17702
      switch (field) {
17703
      case SUCCESS:
17704
        return Long.valueOf(getSuccess());
17705
 
17706
      }
17707
      throw new IllegalStateException();
17708
    }
17709
 
17710
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17711
    public boolean isSet(_Fields field) {
17712
      if (field == null) {
17713
        throw new IllegalArgumentException();
17714
      }
17715
 
17716
      switch (field) {
17717
      case SUCCESS:
17718
        return isSetSuccess();
17719
      }
17720
      throw new IllegalStateException();
17721
    }
17722
 
17723
    @Override
17724
    public boolean equals(Object that) {
17725
      if (that == null)
17726
        return false;
17727
      if (that instanceof adjustDeliveryDays_result)
17728
        return this.equals((adjustDeliveryDays_result)that);
17729
      return false;
17730
    }
17731
 
17732
    public boolean equals(adjustDeliveryDays_result that) {
17733
      if (that == null)
17734
        return false;
17735
 
17736
      boolean this_present_success = true;
17737
      boolean that_present_success = true;
17738
      if (this_present_success || that_present_success) {
17739
        if (!(this_present_success && that_present_success))
17740
          return false;
17741
        if (this.success != that.success)
17742
          return false;
17743
      }
17744
 
17745
      return true;
17746
    }
17747
 
17748
    @Override
17749
    public int hashCode() {
17750
      return 0;
17751
    }
17752
 
17753
    public int compareTo(adjustDeliveryDays_result other) {
17754
      if (!getClass().equals(other.getClass())) {
17755
        return getClass().getName().compareTo(other.getClass().getName());
17756
      }
17757
 
17758
      int lastComparison = 0;
17759
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17760
 
17761
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17762
      if (lastComparison != 0) {
17763
        return lastComparison;
17764
      }
17765
      if (isSetSuccess()) {
17766
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17767
        if (lastComparison != 0) {
17768
          return lastComparison;
17769
        }
17770
      }
17771
      return 0;
17772
    }
17773
 
17774
    public _Fields fieldForId(int fieldId) {
17775
      return _Fields.findByThriftId(fieldId);
17776
    }
17777
 
17778
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17779
      org.apache.thrift.protocol.TField field;
17780
      iprot.readStructBegin();
17781
      while (true)
17782
      {
17783
        field = iprot.readFieldBegin();
17784
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17785
          break;
17786
        }
17787
        switch (field.id) {
17788
          case 0: // SUCCESS
17789
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17790
              this.success = iprot.readI64();
17791
              setSuccessIsSet(true);
17792
            } else { 
17793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17794
            }
17795
            break;
17796
          default:
17797
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17798
        }
17799
        iprot.readFieldEnd();
17800
      }
17801
      iprot.readStructEnd();
17802
      validate();
17803
    }
17804
 
17805
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17806
      oprot.writeStructBegin(STRUCT_DESC);
17807
 
17808
      if (this.isSetSuccess()) {
17809
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17810
        oprot.writeI64(this.success);
17811
        oprot.writeFieldEnd();
17812
      }
17813
      oprot.writeFieldStop();
17814
      oprot.writeStructEnd();
17815
    }
17816
 
17817
    @Override
17818
    public String toString() {
17819
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17820
      boolean first = true;
17821
 
17822
      sb.append("success:");
17823
      sb.append(this.success);
17824
      first = false;
17825
      sb.append(")");
17826
      return sb.toString();
17827
    }
17828
 
17829
    public void validate() throws org.apache.thrift.TException {
17830
      // check for required fields
17831
    }
17832
 
17833
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17834
      try {
17835
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17836
      } catch (org.apache.thrift.TException te) {
17837
        throw new java.io.IOException(te);
17838
      }
17839
    }
17840
 
17841
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17842
      try {
17843
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17844
      } catch (org.apache.thrift.TException te) {
17845
        throw new java.io.IOException(te);
17846
      }
17847
    }
17848
 
17849
  }
17850
 
12895 manish.sha 17851
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17852
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17853
 
17854
    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);
17855
    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);
17856
 
17857
    private String pincode; // required
17858
    private long whLocation; // required
17859
 
17860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17862
      PINCODE((short)1, "pincode"),
17863
      WH_LOCATION((short)2, "whLocation");
17864
 
17865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17866
 
17867
      static {
17868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17869
          byName.put(field.getFieldName(), field);
17870
        }
17871
      }
17872
 
17873
      /**
17874
       * Find the _Fields constant that matches fieldId, or null if its not found.
17875
       */
17876
      public static _Fields findByThriftId(int fieldId) {
17877
        switch(fieldId) {
17878
          case 1: // PINCODE
17879
            return PINCODE;
17880
          case 2: // WH_LOCATION
17881
            return WH_LOCATION;
17882
          default:
17883
            return null;
17884
        }
17885
      }
17886
 
17887
      /**
17888
       * Find the _Fields constant that matches fieldId, throwing an exception
17889
       * if it is not found.
17890
       */
17891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17892
        _Fields fields = findByThriftId(fieldId);
17893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17894
        return fields;
17895
      }
17896
 
17897
      /**
17898
       * Find the _Fields constant that matches name, or null if its not found.
17899
       */
17900
      public static _Fields findByName(String name) {
17901
        return byName.get(name);
17902
      }
17903
 
17904
      private final short _thriftId;
17905
      private final String _fieldName;
17906
 
17907
      _Fields(short thriftId, String fieldName) {
17908
        _thriftId = thriftId;
17909
        _fieldName = fieldName;
17910
      }
17911
 
17912
      public short getThriftFieldId() {
17913
        return _thriftId;
17914
      }
17915
 
17916
      public String getFieldName() {
17917
        return _fieldName;
17918
      }
17919
    }
17920
 
17921
    // isset id assignments
17922
    private static final int __WHLOCATION_ISSET_ID = 0;
17923
    private BitSet __isset_bit_vector = new BitSet(1);
17924
 
17925
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17926
    static {
17927
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17928
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17930
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
17934
    }
17935
 
17936
    public getFirstDeliveryEstimateForWhLocation_args() {
17937
    }
17938
 
17939
    public getFirstDeliveryEstimateForWhLocation_args(
17940
      String pincode,
17941
      long whLocation)
17942
    {
17943
      this();
17944
      this.pincode = pincode;
17945
      this.whLocation = whLocation;
17946
      setWhLocationIsSet(true);
17947
    }
17948
 
17949
    /**
17950
     * Performs a deep copy on <i>other</i>.
17951
     */
17952
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
17953
      __isset_bit_vector.clear();
17954
      __isset_bit_vector.or(other.__isset_bit_vector);
17955
      if (other.isSetPincode()) {
17956
        this.pincode = other.pincode;
17957
      }
17958
      this.whLocation = other.whLocation;
17959
    }
17960
 
17961
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
17962
      return new getFirstDeliveryEstimateForWhLocation_args(this);
17963
    }
17964
 
17965
    @Override
17966
    public void clear() {
17967
      this.pincode = null;
17968
      setWhLocationIsSet(false);
17969
      this.whLocation = 0;
17970
    }
17971
 
17972
    public String getPincode() {
17973
      return this.pincode;
17974
    }
17975
 
17976
    public void setPincode(String pincode) {
17977
      this.pincode = pincode;
17978
    }
17979
 
17980
    public void unsetPincode() {
17981
      this.pincode = null;
17982
    }
17983
 
17984
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
17985
    public boolean isSetPincode() {
17986
      return this.pincode != null;
17987
    }
17988
 
17989
    public void setPincodeIsSet(boolean value) {
17990
      if (!value) {
17991
        this.pincode = null;
17992
      }
17993
    }
17994
 
17995
    public long getWhLocation() {
17996
      return this.whLocation;
17997
    }
17998
 
17999
    public void setWhLocation(long whLocation) {
18000
      this.whLocation = whLocation;
18001
      setWhLocationIsSet(true);
18002
    }
18003
 
18004
    public void unsetWhLocation() {
18005
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
18006
    }
18007
 
18008
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
18009
    public boolean isSetWhLocation() {
18010
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
18011
    }
18012
 
18013
    public void setWhLocationIsSet(boolean value) {
18014
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
18015
    }
18016
 
18017
    public void setFieldValue(_Fields field, Object value) {
18018
      switch (field) {
18019
      case PINCODE:
18020
        if (value == null) {
18021
          unsetPincode();
18022
        } else {
18023
          setPincode((String)value);
18024
        }
18025
        break;
18026
 
18027
      case WH_LOCATION:
18028
        if (value == null) {
18029
          unsetWhLocation();
18030
        } else {
18031
          setWhLocation((Long)value);
18032
        }
18033
        break;
18034
 
18035
      }
18036
    }
18037
 
18038
    public Object getFieldValue(_Fields field) {
18039
      switch (field) {
18040
      case PINCODE:
18041
        return getPincode();
18042
 
18043
      case WH_LOCATION:
18044
        return Long.valueOf(getWhLocation());
18045
 
18046
      }
18047
      throw new IllegalStateException();
18048
    }
18049
 
18050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18051
    public boolean isSet(_Fields field) {
18052
      if (field == null) {
18053
        throw new IllegalArgumentException();
18054
      }
18055
 
18056
      switch (field) {
18057
      case PINCODE:
18058
        return isSetPincode();
18059
      case WH_LOCATION:
18060
        return isSetWhLocation();
18061
      }
18062
      throw new IllegalStateException();
18063
    }
18064
 
18065
    @Override
18066
    public boolean equals(Object that) {
18067
      if (that == null)
18068
        return false;
18069
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
18070
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
18071
      return false;
18072
    }
18073
 
18074
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
18075
      if (that == null)
18076
        return false;
18077
 
18078
      boolean this_present_pincode = true && this.isSetPincode();
18079
      boolean that_present_pincode = true && that.isSetPincode();
18080
      if (this_present_pincode || that_present_pincode) {
18081
        if (!(this_present_pincode && that_present_pincode))
18082
          return false;
18083
        if (!this.pincode.equals(that.pincode))
18084
          return false;
18085
      }
18086
 
18087
      boolean this_present_whLocation = true;
18088
      boolean that_present_whLocation = true;
18089
      if (this_present_whLocation || that_present_whLocation) {
18090
        if (!(this_present_whLocation && that_present_whLocation))
18091
          return false;
18092
        if (this.whLocation != that.whLocation)
18093
          return false;
18094
      }
18095
 
18096
      return true;
18097
    }
18098
 
18099
    @Override
18100
    public int hashCode() {
18101
      return 0;
18102
    }
18103
 
18104
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18105
      if (!getClass().equals(other.getClass())) {
18106
        return getClass().getName().compareTo(other.getClass().getName());
18107
      }
18108
 
18109
      int lastComparison = 0;
18110
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18111
 
18112
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18113
      if (lastComparison != 0) {
18114
        return lastComparison;
18115
      }
18116
      if (isSetPincode()) {
18117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18118
        if (lastComparison != 0) {
18119
          return lastComparison;
18120
        }
18121
      }
18122
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18123
      if (lastComparison != 0) {
18124
        return lastComparison;
18125
      }
18126
      if (isSetWhLocation()) {
18127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18128
        if (lastComparison != 0) {
18129
          return lastComparison;
18130
        }
18131
      }
18132
      return 0;
18133
    }
18134
 
18135
    public _Fields fieldForId(int fieldId) {
18136
      return _Fields.findByThriftId(fieldId);
18137
    }
18138
 
18139
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18140
      org.apache.thrift.protocol.TField field;
18141
      iprot.readStructBegin();
18142
      while (true)
18143
      {
18144
        field = iprot.readFieldBegin();
18145
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18146
          break;
18147
        }
18148
        switch (field.id) {
18149
          case 1: // PINCODE
18150
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18151
              this.pincode = iprot.readString();
18152
            } else { 
18153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18154
            }
18155
            break;
18156
          case 2: // WH_LOCATION
18157
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18158
              this.whLocation = iprot.readI64();
18159
              setWhLocationIsSet(true);
18160
            } else { 
18161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18162
            }
18163
            break;
18164
          default:
18165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18166
        }
18167
        iprot.readFieldEnd();
18168
      }
18169
      iprot.readStructEnd();
18170
      validate();
18171
    }
18172
 
18173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18174
      validate();
18175
 
18176
      oprot.writeStructBegin(STRUCT_DESC);
18177
      if (this.pincode != null) {
18178
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18179
        oprot.writeString(this.pincode);
18180
        oprot.writeFieldEnd();
18181
      }
18182
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18183
      oprot.writeI64(this.whLocation);
18184
      oprot.writeFieldEnd();
18185
      oprot.writeFieldStop();
18186
      oprot.writeStructEnd();
18187
    }
18188
 
18189
    @Override
18190
    public String toString() {
18191
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18192
      boolean first = true;
18193
 
18194
      sb.append("pincode:");
18195
      if (this.pincode == null) {
18196
        sb.append("null");
18197
      } else {
18198
        sb.append(this.pincode);
18199
      }
18200
      first = false;
18201
      if (!first) sb.append(", ");
18202
      sb.append("whLocation:");
18203
      sb.append(this.whLocation);
18204
      first = false;
18205
      sb.append(")");
18206
      return sb.toString();
18207
    }
18208
 
18209
    public void validate() throws org.apache.thrift.TException {
18210
      // check for required fields
18211
    }
18212
 
18213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18214
      try {
18215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18216
      } catch (org.apache.thrift.TException te) {
18217
        throw new java.io.IOException(te);
18218
      }
18219
    }
18220
 
18221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18222
      try {
18223
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18224
        __isset_bit_vector = new BitSet(1);
18225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18226
      } catch (org.apache.thrift.TException te) {
18227
        throw new java.io.IOException(te);
18228
      }
18229
    }
18230
 
18231
  }
18232
 
18233
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18234
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18235
 
18236
    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);
18237
 
18238
    private long success; // required
18239
 
18240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18242
      SUCCESS((short)0, "success");
18243
 
18244
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18245
 
18246
      static {
18247
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18248
          byName.put(field.getFieldName(), field);
18249
        }
18250
      }
18251
 
18252
      /**
18253
       * Find the _Fields constant that matches fieldId, or null if its not found.
18254
       */
18255
      public static _Fields findByThriftId(int fieldId) {
18256
        switch(fieldId) {
18257
          case 0: // SUCCESS
18258
            return SUCCESS;
18259
          default:
18260
            return null;
18261
        }
18262
      }
18263
 
18264
      /**
18265
       * Find the _Fields constant that matches fieldId, throwing an exception
18266
       * if it is not found.
18267
       */
18268
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18269
        _Fields fields = findByThriftId(fieldId);
18270
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18271
        return fields;
18272
      }
18273
 
18274
      /**
18275
       * Find the _Fields constant that matches name, or null if its not found.
18276
       */
18277
      public static _Fields findByName(String name) {
18278
        return byName.get(name);
18279
      }
18280
 
18281
      private final short _thriftId;
18282
      private final String _fieldName;
18283
 
18284
      _Fields(short thriftId, String fieldName) {
18285
        _thriftId = thriftId;
18286
        _fieldName = fieldName;
18287
      }
18288
 
18289
      public short getThriftFieldId() {
18290
        return _thriftId;
18291
      }
18292
 
18293
      public String getFieldName() {
18294
        return _fieldName;
18295
      }
18296
    }
18297
 
18298
    // isset id assignments
18299
    private static final int __SUCCESS_ISSET_ID = 0;
18300
    private BitSet __isset_bit_vector = new BitSet(1);
18301
 
18302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18303
    static {
18304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18305
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18309
    }
18310
 
18311
    public getFirstDeliveryEstimateForWhLocation_result() {
18312
    }
18313
 
18314
    public getFirstDeliveryEstimateForWhLocation_result(
18315
      long success)
18316
    {
18317
      this();
18318
      this.success = success;
18319
      setSuccessIsSet(true);
18320
    }
18321
 
18322
    /**
18323
     * Performs a deep copy on <i>other</i>.
18324
     */
18325
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18326
      __isset_bit_vector.clear();
18327
      __isset_bit_vector.or(other.__isset_bit_vector);
18328
      this.success = other.success;
18329
    }
18330
 
18331
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18332
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18333
    }
18334
 
18335
    @Override
18336
    public void clear() {
18337
      setSuccessIsSet(false);
18338
      this.success = 0;
18339
    }
18340
 
18341
    public long getSuccess() {
18342
      return this.success;
18343
    }
18344
 
18345
    public void setSuccess(long success) {
18346
      this.success = success;
18347
      setSuccessIsSet(true);
18348
    }
18349
 
18350
    public void unsetSuccess() {
18351
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18352
    }
18353
 
18354
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18355
    public boolean isSetSuccess() {
18356
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18357
    }
18358
 
18359
    public void setSuccessIsSet(boolean value) {
18360
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18361
    }
18362
 
18363
    public void setFieldValue(_Fields field, Object value) {
18364
      switch (field) {
18365
      case SUCCESS:
18366
        if (value == null) {
18367
          unsetSuccess();
18368
        } else {
18369
          setSuccess((Long)value);
18370
        }
18371
        break;
18372
 
18373
      }
18374
    }
18375
 
18376
    public Object getFieldValue(_Fields field) {
18377
      switch (field) {
18378
      case SUCCESS:
18379
        return Long.valueOf(getSuccess());
18380
 
18381
      }
18382
      throw new IllegalStateException();
18383
    }
18384
 
18385
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18386
    public boolean isSet(_Fields field) {
18387
      if (field == null) {
18388
        throw new IllegalArgumentException();
18389
      }
18390
 
18391
      switch (field) {
18392
      case SUCCESS:
18393
        return isSetSuccess();
18394
      }
18395
      throw new IllegalStateException();
18396
    }
18397
 
18398
    @Override
18399
    public boolean equals(Object that) {
18400
      if (that == null)
18401
        return false;
18402
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18403
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18404
      return false;
18405
    }
18406
 
18407
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18408
      if (that == null)
18409
        return false;
18410
 
18411
      boolean this_present_success = true;
18412
      boolean that_present_success = true;
18413
      if (this_present_success || that_present_success) {
18414
        if (!(this_present_success && that_present_success))
18415
          return false;
18416
        if (this.success != that.success)
18417
          return false;
18418
      }
18419
 
18420
      return true;
18421
    }
18422
 
18423
    @Override
18424
    public int hashCode() {
18425
      return 0;
18426
    }
18427
 
18428
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18429
      if (!getClass().equals(other.getClass())) {
18430
        return getClass().getName().compareTo(other.getClass().getName());
18431
      }
18432
 
18433
      int lastComparison = 0;
18434
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18435
 
18436
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18437
      if (lastComparison != 0) {
18438
        return lastComparison;
18439
      }
18440
      if (isSetSuccess()) {
18441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18442
        if (lastComparison != 0) {
18443
          return lastComparison;
18444
        }
18445
      }
18446
      return 0;
18447
    }
18448
 
18449
    public _Fields fieldForId(int fieldId) {
18450
      return _Fields.findByThriftId(fieldId);
18451
    }
18452
 
18453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18454
      org.apache.thrift.protocol.TField field;
18455
      iprot.readStructBegin();
18456
      while (true)
18457
      {
18458
        field = iprot.readFieldBegin();
18459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18460
          break;
18461
        }
18462
        switch (field.id) {
18463
          case 0: // SUCCESS
18464
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18465
              this.success = iprot.readI64();
18466
              setSuccessIsSet(true);
18467
            } else { 
18468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18469
            }
18470
            break;
18471
          default:
18472
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18473
        }
18474
        iprot.readFieldEnd();
18475
      }
18476
      iprot.readStructEnd();
18477
      validate();
18478
    }
18479
 
18480
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18481
      oprot.writeStructBegin(STRUCT_DESC);
18482
 
18483
      if (this.isSetSuccess()) {
18484
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18485
        oprot.writeI64(this.success);
18486
        oprot.writeFieldEnd();
18487
      }
18488
      oprot.writeFieldStop();
18489
      oprot.writeStructEnd();
18490
    }
18491
 
18492
    @Override
18493
    public String toString() {
18494
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18495
      boolean first = true;
18496
 
18497
      sb.append("success:");
18498
      sb.append(this.success);
18499
      first = false;
18500
      sb.append(")");
18501
      return sb.toString();
18502
    }
18503
 
18504
    public void validate() throws org.apache.thrift.TException {
18505
      // check for required fields
18506
    }
18507
 
18508
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18509
      try {
18510
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18511
      } catch (org.apache.thrift.TException te) {
18512
        throw new java.io.IOException(te);
18513
      }
18514
    }
18515
 
18516
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18517
      try {
18518
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18519
      } catch (org.apache.thrift.TException te) {
18520
        throw new java.io.IOException(te);
18521
      }
18522
    }
18523
 
18524
  }
18525
 
13146 manish.sha 18526
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18527
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18528
 
18529
    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);
18530
    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);
18531
    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);
18532
 
18533
    private long providerId; // required
18534
    private DeliveryType type; // required
18535
    private long orderQuantity; // required
18536
 
18537
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18538
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18539
      PROVIDER_ID((short)1, "providerId"),
18540
      /**
18541
       * 
18542
       * @see DeliveryType
18543
       */
18544
      TYPE((short)2, "type"),
18545
      ORDER_QUANTITY((short)3, "orderQuantity");
18546
 
18547
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18548
 
18549
      static {
18550
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18551
          byName.put(field.getFieldName(), field);
18552
        }
18553
      }
18554
 
18555
      /**
18556
       * Find the _Fields constant that matches fieldId, or null if its not found.
18557
       */
18558
      public static _Fields findByThriftId(int fieldId) {
18559
        switch(fieldId) {
18560
          case 1: // PROVIDER_ID
18561
            return PROVIDER_ID;
18562
          case 2: // TYPE
18563
            return TYPE;
18564
          case 3: // ORDER_QUANTITY
18565
            return ORDER_QUANTITY;
18566
          default:
18567
            return null;
18568
        }
18569
      }
18570
 
18571
      /**
18572
       * Find the _Fields constant that matches fieldId, throwing an exception
18573
       * if it is not found.
18574
       */
18575
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18576
        _Fields fields = findByThriftId(fieldId);
18577
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18578
        return fields;
18579
      }
18580
 
18581
      /**
18582
       * Find the _Fields constant that matches name, or null if its not found.
18583
       */
18584
      public static _Fields findByName(String name) {
18585
        return byName.get(name);
18586
      }
18587
 
18588
      private final short _thriftId;
18589
      private final String _fieldName;
18590
 
18591
      _Fields(short thriftId, String fieldName) {
18592
        _thriftId = thriftId;
18593
        _fieldName = fieldName;
18594
      }
18595
 
18596
      public short getThriftFieldId() {
18597
        return _thriftId;
18598
      }
18599
 
18600
      public String getFieldName() {
18601
        return _fieldName;
18602
      }
18603
    }
18604
 
18605
    // isset id assignments
18606
    private static final int __PROVIDERID_ISSET_ID = 0;
18607
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18608
    private BitSet __isset_bit_vector = new BitSet(2);
18609
 
18610
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18611
    static {
18612
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18613
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18614
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18615
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18616
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18617
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18621
    }
18622
 
18623
    public getNewEmptyAwb_args() {
18624
    }
18625
 
18626
    public getNewEmptyAwb_args(
18627
      long providerId,
18628
      DeliveryType type,
18629
      long orderQuantity)
18630
    {
18631
      this();
18632
      this.providerId = providerId;
18633
      setProviderIdIsSet(true);
18634
      this.type = type;
18635
      this.orderQuantity = orderQuantity;
18636
      setOrderQuantityIsSet(true);
18637
    }
18638
 
18639
    /**
18640
     * Performs a deep copy on <i>other</i>.
18641
     */
18642
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18643
      __isset_bit_vector.clear();
18644
      __isset_bit_vector.or(other.__isset_bit_vector);
18645
      this.providerId = other.providerId;
18646
      if (other.isSetType()) {
18647
        this.type = other.type;
18648
      }
18649
      this.orderQuantity = other.orderQuantity;
18650
    }
18651
 
18652
    public getNewEmptyAwb_args deepCopy() {
18653
      return new getNewEmptyAwb_args(this);
18654
    }
18655
 
18656
    @Override
18657
    public void clear() {
18658
      setProviderIdIsSet(false);
18659
      this.providerId = 0;
18660
      this.type = null;
18661
      setOrderQuantityIsSet(false);
18662
      this.orderQuantity = 0;
18663
    }
18664
 
18665
    public long getProviderId() {
18666
      return this.providerId;
18667
    }
18668
 
18669
    public void setProviderId(long providerId) {
18670
      this.providerId = providerId;
18671
      setProviderIdIsSet(true);
18672
    }
18673
 
18674
    public void unsetProviderId() {
18675
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18676
    }
18677
 
18678
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18679
    public boolean isSetProviderId() {
18680
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18681
    }
18682
 
18683
    public void setProviderIdIsSet(boolean value) {
18684
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18685
    }
18686
 
18687
    /**
18688
     * 
18689
     * @see DeliveryType
18690
     */
18691
    public DeliveryType getType() {
18692
      return this.type;
18693
    }
18694
 
18695
    /**
18696
     * 
18697
     * @see DeliveryType
18698
     */
18699
    public void setType(DeliveryType type) {
18700
      this.type = type;
18701
    }
18702
 
18703
    public void unsetType() {
18704
      this.type = null;
18705
    }
18706
 
18707
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18708
    public boolean isSetType() {
18709
      return this.type != null;
18710
    }
18711
 
18712
    public void setTypeIsSet(boolean value) {
18713
      if (!value) {
18714
        this.type = null;
18715
      }
18716
    }
18717
 
18718
    public long getOrderQuantity() {
18719
      return this.orderQuantity;
18720
    }
18721
 
18722
    public void setOrderQuantity(long orderQuantity) {
18723
      this.orderQuantity = orderQuantity;
18724
      setOrderQuantityIsSet(true);
18725
    }
18726
 
18727
    public void unsetOrderQuantity() {
18728
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18729
    }
18730
 
18731
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18732
    public boolean isSetOrderQuantity() {
18733
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18734
    }
18735
 
18736
    public void setOrderQuantityIsSet(boolean value) {
18737
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18738
    }
18739
 
18740
    public void setFieldValue(_Fields field, Object value) {
18741
      switch (field) {
18742
      case PROVIDER_ID:
18743
        if (value == null) {
18744
          unsetProviderId();
18745
        } else {
18746
          setProviderId((Long)value);
18747
        }
18748
        break;
18749
 
18750
      case TYPE:
18751
        if (value == null) {
18752
          unsetType();
18753
        } else {
18754
          setType((DeliveryType)value);
18755
        }
18756
        break;
18757
 
18758
      case ORDER_QUANTITY:
18759
        if (value == null) {
18760
          unsetOrderQuantity();
18761
        } else {
18762
          setOrderQuantity((Long)value);
18763
        }
18764
        break;
18765
 
18766
      }
18767
    }
18768
 
18769
    public Object getFieldValue(_Fields field) {
18770
      switch (field) {
18771
      case PROVIDER_ID:
18772
        return Long.valueOf(getProviderId());
18773
 
18774
      case TYPE:
18775
        return getType();
18776
 
18777
      case ORDER_QUANTITY:
18778
        return Long.valueOf(getOrderQuantity());
18779
 
18780
      }
18781
      throw new IllegalStateException();
18782
    }
18783
 
18784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18785
    public boolean isSet(_Fields field) {
18786
      if (field == null) {
18787
        throw new IllegalArgumentException();
18788
      }
18789
 
18790
      switch (field) {
18791
      case PROVIDER_ID:
18792
        return isSetProviderId();
18793
      case TYPE:
18794
        return isSetType();
18795
      case ORDER_QUANTITY:
18796
        return isSetOrderQuantity();
18797
      }
18798
      throw new IllegalStateException();
18799
    }
18800
 
18801
    @Override
18802
    public boolean equals(Object that) {
18803
      if (that == null)
18804
        return false;
18805
      if (that instanceof getNewEmptyAwb_args)
18806
        return this.equals((getNewEmptyAwb_args)that);
18807
      return false;
18808
    }
18809
 
18810
    public boolean equals(getNewEmptyAwb_args that) {
18811
      if (that == null)
18812
        return false;
18813
 
18814
      boolean this_present_providerId = true;
18815
      boolean that_present_providerId = true;
18816
      if (this_present_providerId || that_present_providerId) {
18817
        if (!(this_present_providerId && that_present_providerId))
18818
          return false;
18819
        if (this.providerId != that.providerId)
18820
          return false;
18821
      }
18822
 
18823
      boolean this_present_type = true && this.isSetType();
18824
      boolean that_present_type = true && that.isSetType();
18825
      if (this_present_type || that_present_type) {
18826
        if (!(this_present_type && that_present_type))
18827
          return false;
18828
        if (!this.type.equals(that.type))
18829
          return false;
18830
      }
18831
 
18832
      boolean this_present_orderQuantity = true;
18833
      boolean that_present_orderQuantity = true;
18834
      if (this_present_orderQuantity || that_present_orderQuantity) {
18835
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18836
          return false;
18837
        if (this.orderQuantity != that.orderQuantity)
18838
          return false;
18839
      }
18840
 
18841
      return true;
18842
    }
18843
 
18844
    @Override
18845
    public int hashCode() {
18846
      return 0;
18847
    }
18848
 
18849
    public int compareTo(getNewEmptyAwb_args other) {
18850
      if (!getClass().equals(other.getClass())) {
18851
        return getClass().getName().compareTo(other.getClass().getName());
18852
      }
18853
 
18854
      int lastComparison = 0;
18855
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18856
 
18857
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18858
      if (lastComparison != 0) {
18859
        return lastComparison;
18860
      }
18861
      if (isSetProviderId()) {
18862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18863
        if (lastComparison != 0) {
18864
          return lastComparison;
18865
        }
18866
      }
18867
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18868
      if (lastComparison != 0) {
18869
        return lastComparison;
18870
      }
18871
      if (isSetType()) {
18872
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18873
        if (lastComparison != 0) {
18874
          return lastComparison;
18875
        }
18876
      }
18877
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18878
      if (lastComparison != 0) {
18879
        return lastComparison;
18880
      }
18881
      if (isSetOrderQuantity()) {
18882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18883
        if (lastComparison != 0) {
18884
          return lastComparison;
18885
        }
18886
      }
18887
      return 0;
18888
    }
18889
 
18890
    public _Fields fieldForId(int fieldId) {
18891
      return _Fields.findByThriftId(fieldId);
18892
    }
18893
 
18894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18895
      org.apache.thrift.protocol.TField field;
18896
      iprot.readStructBegin();
18897
      while (true)
18898
      {
18899
        field = iprot.readFieldBegin();
18900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18901
          break;
18902
        }
18903
        switch (field.id) {
18904
          case 1: // PROVIDER_ID
18905
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18906
              this.providerId = iprot.readI64();
18907
              setProviderIdIsSet(true);
18908
            } else { 
18909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18910
            }
18911
            break;
18912
          case 2: // TYPE
18913
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18914
              this.type = DeliveryType.findByValue(iprot.readI32());
18915
            } else { 
18916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18917
            }
18918
            break;
18919
          case 3: // ORDER_QUANTITY
18920
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18921
              this.orderQuantity = iprot.readI64();
18922
              setOrderQuantityIsSet(true);
18923
            } else { 
18924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18925
            }
18926
            break;
18927
          default:
18928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18929
        }
18930
        iprot.readFieldEnd();
18931
      }
18932
      iprot.readStructEnd();
18933
      validate();
18934
    }
18935
 
18936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18937
      validate();
18938
 
18939
      oprot.writeStructBegin(STRUCT_DESC);
18940
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
18941
      oprot.writeI64(this.providerId);
18942
      oprot.writeFieldEnd();
18943
      if (this.type != null) {
18944
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
18945
        oprot.writeI32(this.type.getValue());
18946
        oprot.writeFieldEnd();
18947
      }
18948
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
18949
      oprot.writeI64(this.orderQuantity);
18950
      oprot.writeFieldEnd();
18951
      oprot.writeFieldStop();
18952
      oprot.writeStructEnd();
18953
    }
18954
 
18955
    @Override
18956
    public String toString() {
18957
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
18958
      boolean first = true;
18959
 
18960
      sb.append("providerId:");
18961
      sb.append(this.providerId);
18962
      first = false;
18963
      if (!first) sb.append(", ");
18964
      sb.append("type:");
18965
      if (this.type == null) {
18966
        sb.append("null");
18967
      } else {
18968
        sb.append(this.type);
18969
      }
18970
      first = false;
18971
      if (!first) sb.append(", ");
18972
      sb.append("orderQuantity:");
18973
      sb.append(this.orderQuantity);
18974
      first = false;
18975
      sb.append(")");
18976
      return sb.toString();
18977
    }
18978
 
18979
    public void validate() throws org.apache.thrift.TException {
18980
      // check for required fields
18981
    }
18982
 
18983
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18984
      try {
18985
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18986
      } catch (org.apache.thrift.TException te) {
18987
        throw new java.io.IOException(te);
18988
      }
18989
    }
18990
 
18991
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18992
      try {
18993
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18994
        __isset_bit_vector = new BitSet(1);
18995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18996
      } catch (org.apache.thrift.TException te) {
18997
        throw new java.io.IOException(te);
18998
      }
18999
    }
19000
 
19001
  }
19002
 
19003
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
19004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
19005
 
19006
    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);
19007
    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);
19008
 
19009
    private String success; // required
19010
    private LogisticsServiceException se; // required
19011
 
19012
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19013
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19014
      SUCCESS((short)0, "success"),
19015
      SE((short)1, "se");
19016
 
19017
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19018
 
19019
      static {
19020
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19021
          byName.put(field.getFieldName(), field);
19022
        }
19023
      }
19024
 
19025
      /**
19026
       * Find the _Fields constant that matches fieldId, or null if its not found.
19027
       */
19028
      public static _Fields findByThriftId(int fieldId) {
19029
        switch(fieldId) {
19030
          case 0: // SUCCESS
19031
            return SUCCESS;
19032
          case 1: // SE
19033
            return SE;
19034
          default:
19035
            return null;
19036
        }
19037
      }
19038
 
19039
      /**
19040
       * Find the _Fields constant that matches fieldId, throwing an exception
19041
       * if it is not found.
19042
       */
19043
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19044
        _Fields fields = findByThriftId(fieldId);
19045
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19046
        return fields;
19047
      }
19048
 
19049
      /**
19050
       * Find the _Fields constant that matches name, or null if its not found.
19051
       */
19052
      public static _Fields findByName(String name) {
19053
        return byName.get(name);
19054
      }
19055
 
19056
      private final short _thriftId;
19057
      private final String _fieldName;
19058
 
19059
      _Fields(short thriftId, String fieldName) {
19060
        _thriftId = thriftId;
19061
        _fieldName = fieldName;
19062
      }
19063
 
19064
      public short getThriftFieldId() {
19065
        return _thriftId;
19066
      }
19067
 
19068
      public String getFieldName() {
19069
        return _fieldName;
19070
      }
19071
    }
19072
 
19073
    // isset id assignments
19074
 
19075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19076
    static {
19077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19078
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19080
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
19084
    }
19085
 
19086
    public getNewEmptyAwb_result() {
19087
    }
19088
 
19089
    public getNewEmptyAwb_result(
19090
      String success,
19091
      LogisticsServiceException se)
19092
    {
19093
      this();
19094
      this.success = success;
19095
      this.se = se;
19096
    }
19097
 
19098
    /**
19099
     * Performs a deep copy on <i>other</i>.
19100
     */
19101
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19102
      if (other.isSetSuccess()) {
19103
        this.success = other.success;
19104
      }
19105
      if (other.isSetSe()) {
19106
        this.se = new LogisticsServiceException(other.se);
19107
      }
19108
    }
19109
 
19110
    public getNewEmptyAwb_result deepCopy() {
19111
      return new getNewEmptyAwb_result(this);
19112
    }
19113
 
19114
    @Override
19115
    public void clear() {
19116
      this.success = null;
19117
      this.se = null;
19118
    }
19119
 
19120
    public String getSuccess() {
19121
      return this.success;
19122
    }
19123
 
19124
    public void setSuccess(String success) {
19125
      this.success = success;
19126
    }
19127
 
19128
    public void unsetSuccess() {
19129
      this.success = null;
19130
    }
19131
 
19132
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19133
    public boolean isSetSuccess() {
19134
      return this.success != null;
19135
    }
19136
 
19137
    public void setSuccessIsSet(boolean value) {
19138
      if (!value) {
19139
        this.success = null;
19140
      }
19141
    }
19142
 
19143
    public LogisticsServiceException getSe() {
19144
      return this.se;
19145
    }
19146
 
19147
    public void setSe(LogisticsServiceException se) {
19148
      this.se = se;
19149
    }
19150
 
19151
    public void unsetSe() {
19152
      this.se = null;
19153
    }
19154
 
19155
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19156
    public boolean isSetSe() {
19157
      return this.se != null;
19158
    }
19159
 
19160
    public void setSeIsSet(boolean value) {
19161
      if (!value) {
19162
        this.se = null;
19163
      }
19164
    }
19165
 
19166
    public void setFieldValue(_Fields field, Object value) {
19167
      switch (field) {
19168
      case SUCCESS:
19169
        if (value == null) {
19170
          unsetSuccess();
19171
        } else {
19172
          setSuccess((String)value);
19173
        }
19174
        break;
19175
 
19176
      case SE:
19177
        if (value == null) {
19178
          unsetSe();
19179
        } else {
19180
          setSe((LogisticsServiceException)value);
19181
        }
19182
        break;
19183
 
19184
      }
19185
    }
19186
 
19187
    public Object getFieldValue(_Fields field) {
19188
      switch (field) {
19189
      case SUCCESS:
19190
        return getSuccess();
19191
 
19192
      case SE:
19193
        return getSe();
19194
 
19195
      }
19196
      throw new IllegalStateException();
19197
    }
19198
 
19199
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19200
    public boolean isSet(_Fields field) {
19201
      if (field == null) {
19202
        throw new IllegalArgumentException();
19203
      }
19204
 
19205
      switch (field) {
19206
      case SUCCESS:
19207
        return isSetSuccess();
19208
      case SE:
19209
        return isSetSe();
19210
      }
19211
      throw new IllegalStateException();
19212
    }
19213
 
19214
    @Override
19215
    public boolean equals(Object that) {
19216
      if (that == null)
19217
        return false;
19218
      if (that instanceof getNewEmptyAwb_result)
19219
        return this.equals((getNewEmptyAwb_result)that);
19220
      return false;
19221
    }
19222
 
19223
    public boolean equals(getNewEmptyAwb_result that) {
19224
      if (that == null)
19225
        return false;
19226
 
19227
      boolean this_present_success = true && this.isSetSuccess();
19228
      boolean that_present_success = true && that.isSetSuccess();
19229
      if (this_present_success || that_present_success) {
19230
        if (!(this_present_success && that_present_success))
19231
          return false;
19232
        if (!this.success.equals(that.success))
19233
          return false;
19234
      }
19235
 
19236
      boolean this_present_se = true && this.isSetSe();
19237
      boolean that_present_se = true && that.isSetSe();
19238
      if (this_present_se || that_present_se) {
19239
        if (!(this_present_se && that_present_se))
19240
          return false;
19241
        if (!this.se.equals(that.se))
19242
          return false;
19243
      }
19244
 
19245
      return true;
19246
    }
19247
 
19248
    @Override
19249
    public int hashCode() {
19250
      return 0;
19251
    }
19252
 
19253
    public int compareTo(getNewEmptyAwb_result other) {
19254
      if (!getClass().equals(other.getClass())) {
19255
        return getClass().getName().compareTo(other.getClass().getName());
19256
      }
19257
 
19258
      int lastComparison = 0;
19259
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19260
 
19261
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19262
      if (lastComparison != 0) {
19263
        return lastComparison;
19264
      }
19265
      if (isSetSuccess()) {
19266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19267
        if (lastComparison != 0) {
19268
          return lastComparison;
19269
        }
19270
      }
19271
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19272
      if (lastComparison != 0) {
19273
        return lastComparison;
19274
      }
19275
      if (isSetSe()) {
19276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19277
        if (lastComparison != 0) {
19278
          return lastComparison;
19279
        }
19280
      }
19281
      return 0;
19282
    }
19283
 
19284
    public _Fields fieldForId(int fieldId) {
19285
      return _Fields.findByThriftId(fieldId);
19286
    }
19287
 
19288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19289
      org.apache.thrift.protocol.TField field;
19290
      iprot.readStructBegin();
19291
      while (true)
19292
      {
19293
        field = iprot.readFieldBegin();
19294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19295
          break;
19296
        }
19297
        switch (field.id) {
19298
          case 0: // SUCCESS
19299
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19300
              this.success = iprot.readString();
19301
            } else { 
19302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19303
            }
19304
            break;
19305
          case 1: // SE
19306
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19307
              this.se = new LogisticsServiceException();
19308
              this.se.read(iprot);
19309
            } else { 
19310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19311
            }
19312
            break;
19313
          default:
19314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19315
        }
19316
        iprot.readFieldEnd();
19317
      }
19318
      iprot.readStructEnd();
19319
      validate();
19320
    }
19321
 
19322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19323
      oprot.writeStructBegin(STRUCT_DESC);
19324
 
19325
      if (this.isSetSuccess()) {
19326
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19327
        oprot.writeString(this.success);
19328
        oprot.writeFieldEnd();
19329
      } else if (this.isSetSe()) {
19330
        oprot.writeFieldBegin(SE_FIELD_DESC);
19331
        this.se.write(oprot);
19332
        oprot.writeFieldEnd();
19333
      }
19334
      oprot.writeFieldStop();
19335
      oprot.writeStructEnd();
19336
    }
19337
 
19338
    @Override
19339
    public String toString() {
19340
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19341
      boolean first = true;
19342
 
19343
      sb.append("success:");
19344
      if (this.success == null) {
19345
        sb.append("null");
19346
      } else {
19347
        sb.append(this.success);
19348
      }
19349
      first = false;
19350
      if (!first) sb.append(", ");
19351
      sb.append("se:");
19352
      if (this.se == null) {
19353
        sb.append("null");
19354
      } else {
19355
        sb.append(this.se);
19356
      }
19357
      first = false;
19358
      sb.append(")");
19359
      return sb.toString();
19360
    }
19361
 
19362
    public void validate() throws org.apache.thrift.TException {
19363
      // check for required fields
19364
    }
19365
 
19366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19367
      try {
19368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19369
      } catch (org.apache.thrift.TException te) {
19370
        throw new java.io.IOException(te);
19371
      }
19372
    }
19373
 
19374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19375
      try {
19376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19377
      } catch (org.apache.thrift.TException te) {
19378
        throw new java.io.IOException(te);
19379
      }
19380
    }
19381
 
19382
  }
19383
 
19384
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19386
 
19387
    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);
19388
    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);
19389
 
19390
    private long providerId; // required
19391
    private String pincode; // required
19392
 
19393
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19394
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19395
      PROVIDER_ID((short)1, "providerId"),
19396
      PINCODE((short)2, "pincode");
19397
 
19398
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19399
 
19400
      static {
19401
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19402
          byName.put(field.getFieldName(), field);
19403
        }
19404
      }
19405
 
19406
      /**
19407
       * Find the _Fields constant that matches fieldId, or null if its not found.
19408
       */
19409
      public static _Fields findByThriftId(int fieldId) {
19410
        switch(fieldId) {
19411
          case 1: // PROVIDER_ID
19412
            return PROVIDER_ID;
19413
          case 2: // PINCODE
19414
            return PINCODE;
19415
          default:
19416
            return null;
19417
        }
19418
      }
19419
 
19420
      /**
19421
       * Find the _Fields constant that matches fieldId, throwing an exception
19422
       * if it is not found.
19423
       */
19424
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19425
        _Fields fields = findByThriftId(fieldId);
19426
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19427
        return fields;
19428
      }
19429
 
19430
      /**
19431
       * Find the _Fields constant that matches name, or null if its not found.
19432
       */
19433
      public static _Fields findByName(String name) {
19434
        return byName.get(name);
19435
      }
19436
 
19437
      private final short _thriftId;
19438
      private final String _fieldName;
19439
 
19440
      _Fields(short thriftId, String fieldName) {
19441
        _thriftId = thriftId;
19442
        _fieldName = fieldName;
19443
      }
19444
 
19445
      public short getThriftFieldId() {
19446
        return _thriftId;
19447
      }
19448
 
19449
      public String getFieldName() {
19450
        return _fieldName;
19451
      }
19452
    }
19453
 
19454
    // isset id assignments
19455
    private static final int __PROVIDERID_ISSET_ID = 0;
19456
    private BitSet __isset_bit_vector = new BitSet(1);
19457
 
19458
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19459
    static {
19460
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19461
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19462
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19463
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19464
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19465
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19466
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19467
    }
19468
 
19469
    public getProviderLimitDetailsForPincode_args() {
19470
    }
19471
 
19472
    public getProviderLimitDetailsForPincode_args(
19473
      long providerId,
19474
      String pincode)
19475
    {
19476
      this();
19477
      this.providerId = providerId;
19478
      setProviderIdIsSet(true);
19479
      this.pincode = pincode;
19480
    }
19481
 
19482
    /**
19483
     * Performs a deep copy on <i>other</i>.
19484
     */
19485
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19486
      __isset_bit_vector.clear();
19487
      __isset_bit_vector.or(other.__isset_bit_vector);
19488
      this.providerId = other.providerId;
19489
      if (other.isSetPincode()) {
19490
        this.pincode = other.pincode;
19491
      }
19492
    }
19493
 
19494
    public getProviderLimitDetailsForPincode_args deepCopy() {
19495
      return new getProviderLimitDetailsForPincode_args(this);
19496
    }
19497
 
19498
    @Override
19499
    public void clear() {
19500
      setProviderIdIsSet(false);
19501
      this.providerId = 0;
19502
      this.pincode = null;
19503
    }
19504
 
19505
    public long getProviderId() {
19506
      return this.providerId;
19507
    }
19508
 
19509
    public void setProviderId(long providerId) {
19510
      this.providerId = providerId;
19511
      setProviderIdIsSet(true);
19512
    }
19513
 
19514
    public void unsetProviderId() {
19515
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19516
    }
19517
 
19518
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19519
    public boolean isSetProviderId() {
19520
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19521
    }
19522
 
19523
    public void setProviderIdIsSet(boolean value) {
19524
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19525
    }
19526
 
19527
    public String getPincode() {
19528
      return this.pincode;
19529
    }
19530
 
19531
    public void setPincode(String pincode) {
19532
      this.pincode = pincode;
19533
    }
19534
 
19535
    public void unsetPincode() {
19536
      this.pincode = null;
19537
    }
19538
 
19539
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19540
    public boolean isSetPincode() {
19541
      return this.pincode != null;
19542
    }
19543
 
19544
    public void setPincodeIsSet(boolean value) {
19545
      if (!value) {
19546
        this.pincode = null;
19547
      }
19548
    }
19549
 
19550
    public void setFieldValue(_Fields field, Object value) {
19551
      switch (field) {
19552
      case PROVIDER_ID:
19553
        if (value == null) {
19554
          unsetProviderId();
19555
        } else {
19556
          setProviderId((Long)value);
19557
        }
19558
        break;
19559
 
19560
      case PINCODE:
19561
        if (value == null) {
19562
          unsetPincode();
19563
        } else {
19564
          setPincode((String)value);
19565
        }
19566
        break;
19567
 
19568
      }
19569
    }
19570
 
19571
    public Object getFieldValue(_Fields field) {
19572
      switch (field) {
19573
      case PROVIDER_ID:
19574
        return Long.valueOf(getProviderId());
19575
 
19576
      case PINCODE:
19577
        return getPincode();
19578
 
19579
      }
19580
      throw new IllegalStateException();
19581
    }
19582
 
19583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19584
    public boolean isSet(_Fields field) {
19585
      if (field == null) {
19586
        throw new IllegalArgumentException();
19587
      }
19588
 
19589
      switch (field) {
19590
      case PROVIDER_ID:
19591
        return isSetProviderId();
19592
      case PINCODE:
19593
        return isSetPincode();
19594
      }
19595
      throw new IllegalStateException();
19596
    }
19597
 
19598
    @Override
19599
    public boolean equals(Object that) {
19600
      if (that == null)
19601
        return false;
19602
      if (that instanceof getProviderLimitDetailsForPincode_args)
19603
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19604
      return false;
19605
    }
19606
 
19607
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19608
      if (that == null)
19609
        return false;
19610
 
19611
      boolean this_present_providerId = true;
19612
      boolean that_present_providerId = true;
19613
      if (this_present_providerId || that_present_providerId) {
19614
        if (!(this_present_providerId && that_present_providerId))
19615
          return false;
19616
        if (this.providerId != that.providerId)
19617
          return false;
19618
      }
19619
 
19620
      boolean this_present_pincode = true && this.isSetPincode();
19621
      boolean that_present_pincode = true && that.isSetPincode();
19622
      if (this_present_pincode || that_present_pincode) {
19623
        if (!(this_present_pincode && that_present_pincode))
19624
          return false;
19625
        if (!this.pincode.equals(that.pincode))
19626
          return false;
19627
      }
19628
 
19629
      return true;
19630
    }
19631
 
19632
    @Override
19633
    public int hashCode() {
19634
      return 0;
19635
    }
19636
 
19637
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19638
      if (!getClass().equals(other.getClass())) {
19639
        return getClass().getName().compareTo(other.getClass().getName());
19640
      }
19641
 
19642
      int lastComparison = 0;
19643
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19644
 
19645
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19646
      if (lastComparison != 0) {
19647
        return lastComparison;
19648
      }
19649
      if (isSetProviderId()) {
19650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19651
        if (lastComparison != 0) {
19652
          return lastComparison;
19653
        }
19654
      }
19655
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19656
      if (lastComparison != 0) {
19657
        return lastComparison;
19658
      }
19659
      if (isSetPincode()) {
19660
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19661
        if (lastComparison != 0) {
19662
          return lastComparison;
19663
        }
19664
      }
19665
      return 0;
19666
    }
19667
 
19668
    public _Fields fieldForId(int fieldId) {
19669
      return _Fields.findByThriftId(fieldId);
19670
    }
19671
 
19672
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19673
      org.apache.thrift.protocol.TField field;
19674
      iprot.readStructBegin();
19675
      while (true)
19676
      {
19677
        field = iprot.readFieldBegin();
19678
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19679
          break;
19680
        }
19681
        switch (field.id) {
19682
          case 1: // PROVIDER_ID
19683
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19684
              this.providerId = iprot.readI64();
19685
              setProviderIdIsSet(true);
19686
            } else { 
19687
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19688
            }
19689
            break;
19690
          case 2: // PINCODE
19691
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19692
              this.pincode = iprot.readString();
19693
            } else { 
19694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19695
            }
19696
            break;
19697
          default:
19698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19699
        }
19700
        iprot.readFieldEnd();
19701
      }
19702
      iprot.readStructEnd();
19703
      validate();
19704
    }
19705
 
19706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19707
      validate();
19708
 
19709
      oprot.writeStructBegin(STRUCT_DESC);
19710
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19711
      oprot.writeI64(this.providerId);
19712
      oprot.writeFieldEnd();
19713
      if (this.pincode != null) {
19714
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19715
        oprot.writeString(this.pincode);
19716
        oprot.writeFieldEnd();
19717
      }
19718
      oprot.writeFieldStop();
19719
      oprot.writeStructEnd();
19720
    }
19721
 
19722
    @Override
19723
    public String toString() {
19724
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19725
      boolean first = true;
19726
 
19727
      sb.append("providerId:");
19728
      sb.append(this.providerId);
19729
      first = false;
19730
      if (!first) sb.append(", ");
19731
      sb.append("pincode:");
19732
      if (this.pincode == null) {
19733
        sb.append("null");
19734
      } else {
19735
        sb.append(this.pincode);
19736
      }
19737
      first = false;
19738
      sb.append(")");
19739
      return sb.toString();
19740
    }
19741
 
19742
    public void validate() throws org.apache.thrift.TException {
19743
      // check for required fields
19744
    }
19745
 
19746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19747
      try {
19748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19749
      } catch (org.apache.thrift.TException te) {
19750
        throw new java.io.IOException(te);
19751
      }
19752
    }
19753
 
19754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19755
      try {
19756
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19757
        __isset_bit_vector = new BitSet(1);
19758
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19759
      } catch (org.apache.thrift.TException te) {
19760
        throw new java.io.IOException(te);
19761
      }
19762
    }
19763
 
19764
  }
19765
 
19766
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19767
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19768
 
19769
    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);
19770
    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);
19771
 
19772
    private Map<String,String> success; // required
19773
    private LogisticsServiceException se; // required
19774
 
19775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19776
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19777
      SUCCESS((short)0, "success"),
19778
      SE((short)1, "se");
19779
 
19780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19781
 
19782
      static {
19783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19784
          byName.put(field.getFieldName(), field);
19785
        }
19786
      }
19787
 
19788
      /**
19789
       * Find the _Fields constant that matches fieldId, or null if its not found.
19790
       */
19791
      public static _Fields findByThriftId(int fieldId) {
19792
        switch(fieldId) {
19793
          case 0: // SUCCESS
19794
            return SUCCESS;
19795
          case 1: // SE
19796
            return SE;
19797
          default:
19798
            return null;
19799
        }
19800
      }
19801
 
19802
      /**
19803
       * Find the _Fields constant that matches fieldId, throwing an exception
19804
       * if it is not found.
19805
       */
19806
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19807
        _Fields fields = findByThriftId(fieldId);
19808
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19809
        return fields;
19810
      }
19811
 
19812
      /**
19813
       * Find the _Fields constant that matches name, or null if its not found.
19814
       */
19815
      public static _Fields findByName(String name) {
19816
        return byName.get(name);
19817
      }
19818
 
19819
      private final short _thriftId;
19820
      private final String _fieldName;
19821
 
19822
      _Fields(short thriftId, String fieldName) {
19823
        _thriftId = thriftId;
19824
        _fieldName = fieldName;
19825
      }
19826
 
19827
      public short getThriftFieldId() {
19828
        return _thriftId;
19829
      }
19830
 
19831
      public String getFieldName() {
19832
        return _fieldName;
19833
      }
19834
    }
19835
 
19836
    // isset id assignments
19837
 
19838
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19839
    static {
19840
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19841
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19842
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19843
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19844
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19845
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19846
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19847
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19848
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19849
    }
19850
 
19851
    public getProviderLimitDetailsForPincode_result() {
19852
    }
19853
 
19854
    public getProviderLimitDetailsForPincode_result(
19855
      Map<String,String> success,
19856
      LogisticsServiceException se)
19857
    {
19858
      this();
19859
      this.success = success;
19860
      this.se = se;
19861
    }
19862
 
19863
    /**
19864
     * Performs a deep copy on <i>other</i>.
19865
     */
19866
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19867
      if (other.isSetSuccess()) {
19868
        Map<String,String> __this__success = new HashMap<String,String>();
19869
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19870
 
19871
          String other_element_key = other_element.getKey();
19872
          String other_element_value = other_element.getValue();
19873
 
19874
          String __this__success_copy_key = other_element_key;
19875
 
19876
          String __this__success_copy_value = other_element_value;
19877
 
19878
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19879
        }
19880
        this.success = __this__success;
19881
      }
19882
      if (other.isSetSe()) {
19883
        this.se = new LogisticsServiceException(other.se);
19884
      }
19885
    }
19886
 
19887
    public getProviderLimitDetailsForPincode_result deepCopy() {
19888
      return new getProviderLimitDetailsForPincode_result(this);
19889
    }
19890
 
19891
    @Override
19892
    public void clear() {
19893
      this.success = null;
19894
      this.se = null;
19895
    }
19896
 
19897
    public int getSuccessSize() {
19898
      return (this.success == null) ? 0 : this.success.size();
19899
    }
19900
 
19901
    public void putToSuccess(String key, String val) {
19902
      if (this.success == null) {
19903
        this.success = new HashMap<String,String>();
19904
      }
19905
      this.success.put(key, val);
19906
    }
19907
 
19908
    public Map<String,String> getSuccess() {
19909
      return this.success;
19910
    }
19911
 
19912
    public void setSuccess(Map<String,String> success) {
19913
      this.success = success;
19914
    }
19915
 
19916
    public void unsetSuccess() {
19917
      this.success = null;
19918
    }
19919
 
19920
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19921
    public boolean isSetSuccess() {
19922
      return this.success != null;
19923
    }
19924
 
19925
    public void setSuccessIsSet(boolean value) {
19926
      if (!value) {
19927
        this.success = null;
19928
      }
19929
    }
19930
 
19931
    public LogisticsServiceException getSe() {
19932
      return this.se;
19933
    }
19934
 
19935
    public void setSe(LogisticsServiceException se) {
19936
      this.se = se;
19937
    }
19938
 
19939
    public void unsetSe() {
19940
      this.se = null;
19941
    }
19942
 
19943
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19944
    public boolean isSetSe() {
19945
      return this.se != null;
19946
    }
19947
 
19948
    public void setSeIsSet(boolean value) {
19949
      if (!value) {
19950
        this.se = null;
19951
      }
19952
    }
19953
 
19954
    public void setFieldValue(_Fields field, Object value) {
19955
      switch (field) {
19956
      case SUCCESS:
19957
        if (value == null) {
19958
          unsetSuccess();
19959
        } else {
19960
          setSuccess((Map<String,String>)value);
19961
        }
19962
        break;
19963
 
19964
      case SE:
19965
        if (value == null) {
19966
          unsetSe();
19967
        } else {
19968
          setSe((LogisticsServiceException)value);
19969
        }
19970
        break;
19971
 
19972
      }
19973
    }
19974
 
19975
    public Object getFieldValue(_Fields field) {
19976
      switch (field) {
19977
      case SUCCESS:
19978
        return getSuccess();
19979
 
19980
      case SE:
19981
        return getSe();
19982
 
19983
      }
19984
      throw new IllegalStateException();
19985
    }
19986
 
19987
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19988
    public boolean isSet(_Fields field) {
19989
      if (field == null) {
19990
        throw new IllegalArgumentException();
19991
      }
19992
 
19993
      switch (field) {
19994
      case SUCCESS:
19995
        return isSetSuccess();
19996
      case SE:
19997
        return isSetSe();
19998
      }
19999
      throw new IllegalStateException();
20000
    }
20001
 
20002
    @Override
20003
    public boolean equals(Object that) {
20004
      if (that == null)
20005
        return false;
20006
      if (that instanceof getProviderLimitDetailsForPincode_result)
20007
        return this.equals((getProviderLimitDetailsForPincode_result)that);
20008
      return false;
20009
    }
20010
 
20011
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
20012
      if (that == null)
20013
        return false;
20014
 
20015
      boolean this_present_success = true && this.isSetSuccess();
20016
      boolean that_present_success = true && that.isSetSuccess();
20017
      if (this_present_success || that_present_success) {
20018
        if (!(this_present_success && that_present_success))
20019
          return false;
20020
        if (!this.success.equals(that.success))
20021
          return false;
20022
      }
20023
 
20024
      boolean this_present_se = true && this.isSetSe();
20025
      boolean that_present_se = true && that.isSetSe();
20026
      if (this_present_se || that_present_se) {
20027
        if (!(this_present_se && that_present_se))
20028
          return false;
20029
        if (!this.se.equals(that.se))
20030
          return false;
20031
      }
20032
 
20033
      return true;
20034
    }
20035
 
20036
    @Override
20037
    public int hashCode() {
20038
      return 0;
20039
    }
20040
 
20041
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
20042
      if (!getClass().equals(other.getClass())) {
20043
        return getClass().getName().compareTo(other.getClass().getName());
20044
      }
20045
 
20046
      int lastComparison = 0;
20047
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
20048
 
20049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20050
      if (lastComparison != 0) {
20051
        return lastComparison;
20052
      }
20053
      if (isSetSuccess()) {
20054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20055
        if (lastComparison != 0) {
20056
          return lastComparison;
20057
        }
20058
      }
20059
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
20060
      if (lastComparison != 0) {
20061
        return lastComparison;
20062
      }
20063
      if (isSetSe()) {
20064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
20065
        if (lastComparison != 0) {
20066
          return lastComparison;
20067
        }
20068
      }
20069
      return 0;
20070
    }
20071
 
20072
    public _Fields fieldForId(int fieldId) {
20073
      return _Fields.findByThriftId(fieldId);
20074
    }
20075
 
20076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20077
      org.apache.thrift.protocol.TField field;
20078
      iprot.readStructBegin();
20079
      while (true)
20080
      {
20081
        field = iprot.readFieldBegin();
20082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20083
          break;
20084
        }
20085
        switch (field.id) {
20086
          case 0: // SUCCESS
20087
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20088
              {
20089
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
20090
                this.success = new HashMap<String,String>(2*_map32.size);
20091
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
20092
                {
20093
                  String _key34; // required
20094
                  String _val35; // required
20095
                  _key34 = iprot.readString();
20096
                  _val35 = iprot.readString();
20097
                  this.success.put(_key34, _val35);
20098
                }
20099
                iprot.readMapEnd();
20100
              }
20101
            } else { 
20102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20103
            }
20104
            break;
20105
          case 1: // SE
20106
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20107
              this.se = new LogisticsServiceException();
20108
              this.se.read(iprot);
20109
            } else { 
20110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20111
            }
20112
            break;
20113
          default:
20114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20115
        }
20116
        iprot.readFieldEnd();
20117
      }
20118
      iprot.readStructEnd();
20119
      validate();
20120
    }
20121
 
20122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20123
      oprot.writeStructBegin(STRUCT_DESC);
20124
 
20125
      if (this.isSetSuccess()) {
20126
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20127
        {
20128
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20129
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20130
          {
20131
            oprot.writeString(_iter36.getKey());
20132
            oprot.writeString(_iter36.getValue());
20133
          }
20134
          oprot.writeMapEnd();
20135
        }
20136
        oprot.writeFieldEnd();
20137
      } else if (this.isSetSe()) {
20138
        oprot.writeFieldBegin(SE_FIELD_DESC);
20139
        this.se.write(oprot);
20140
        oprot.writeFieldEnd();
20141
      }
20142
      oprot.writeFieldStop();
20143
      oprot.writeStructEnd();
20144
    }
20145
 
20146
    @Override
20147
    public String toString() {
20148
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20149
      boolean first = true;
20150
 
20151
      sb.append("success:");
20152
      if (this.success == null) {
20153
        sb.append("null");
20154
      } else {
20155
        sb.append(this.success);
20156
      }
20157
      first = false;
20158
      if (!first) sb.append(", ");
20159
      sb.append("se:");
20160
      if (this.se == null) {
20161
        sb.append("null");
20162
      } else {
20163
        sb.append(this.se);
20164
      }
20165
      first = false;
20166
      sb.append(")");
20167
      return sb.toString();
20168
    }
20169
 
20170
    public void validate() throws org.apache.thrift.TException {
20171
      // check for required fields
20172
    }
20173
 
20174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20175
      try {
20176
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20177
      } catch (org.apache.thrift.TException te) {
20178
        throw new java.io.IOException(te);
20179
      }
20180
    }
20181
 
20182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20183
      try {
20184
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20185
      } catch (org.apache.thrift.TException te) {
20186
        throw new java.io.IOException(te);
20187
      }
20188
    }
20189
 
20190
  }
20191
 
19413 amit.gupta 20192
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20194
 
20195
    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);
20196
    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);
20197
 
20198
    private String destPincode; // required
20199
    private List<Long> price; // required
20200
 
20201
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20202
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20203
      DEST_PINCODE((short)1, "destPincode"),
20204
      PRICE((short)2, "price");
20205
 
20206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20207
 
20208
      static {
20209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20210
          byName.put(field.getFieldName(), field);
20211
        }
20212
      }
20213
 
20214
      /**
20215
       * Find the _Fields constant that matches fieldId, or null if its not found.
20216
       */
20217
      public static _Fields findByThriftId(int fieldId) {
20218
        switch(fieldId) {
20219
          case 1: // DEST_PINCODE
20220
            return DEST_PINCODE;
20221
          case 2: // PRICE
20222
            return PRICE;
20223
          default:
20224
            return null;
20225
        }
20226
      }
20227
 
20228
      /**
20229
       * Find the _Fields constant that matches fieldId, throwing an exception
20230
       * if it is not found.
20231
       */
20232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20233
        _Fields fields = findByThriftId(fieldId);
20234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20235
        return fields;
20236
      }
20237
 
20238
      /**
20239
       * Find the _Fields constant that matches name, or null if its not found.
20240
       */
20241
      public static _Fields findByName(String name) {
20242
        return byName.get(name);
20243
      }
20244
 
20245
      private final short _thriftId;
20246
      private final String _fieldName;
20247
 
20248
      _Fields(short thriftId, String fieldName) {
20249
        _thriftId = thriftId;
20250
        _fieldName = fieldName;
20251
      }
20252
 
20253
      public short getThriftFieldId() {
20254
        return _thriftId;
20255
      }
20256
 
20257
      public String getFieldName() {
20258
        return _fieldName;
20259
      }
20260
    }
20261
 
20262
    // isset id assignments
20263
 
20264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20265
    static {
20266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20267
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20268
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20269
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20270
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20271
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20272
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20273
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20274
    }
20275
 
20276
    public getLocationInfoMap_args() {
20277
    }
20278
 
20279
    public getLocationInfoMap_args(
20280
      String destPincode,
20281
      List<Long> price)
20282
    {
20283
      this();
20284
      this.destPincode = destPincode;
20285
      this.price = price;
20286
    }
20287
 
20288
    /**
20289
     * Performs a deep copy on <i>other</i>.
20290
     */
20291
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20292
      if (other.isSetDestPincode()) {
20293
        this.destPincode = other.destPincode;
20294
      }
20295
      if (other.isSetPrice()) {
20296
        List<Long> __this__price = new ArrayList<Long>();
20297
        for (Long other_element : other.price) {
20298
          __this__price.add(other_element);
20299
        }
20300
        this.price = __this__price;
20301
      }
20302
    }
20303
 
20304
    public getLocationInfoMap_args deepCopy() {
20305
      return new getLocationInfoMap_args(this);
20306
    }
20307
 
20308
    @Override
20309
    public void clear() {
20310
      this.destPincode = null;
20311
      this.price = null;
20312
    }
20313
 
20314
    public String getDestPincode() {
20315
      return this.destPincode;
20316
    }
20317
 
20318
    public void setDestPincode(String destPincode) {
20319
      this.destPincode = destPincode;
20320
    }
20321
 
20322
    public void unsetDestPincode() {
20323
      this.destPincode = null;
20324
    }
20325
 
20326
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20327
    public boolean isSetDestPincode() {
20328
      return this.destPincode != null;
20329
    }
20330
 
20331
    public void setDestPincodeIsSet(boolean value) {
20332
      if (!value) {
20333
        this.destPincode = null;
20334
      }
20335
    }
20336
 
20337
    public int getPriceSize() {
20338
      return (this.price == null) ? 0 : this.price.size();
20339
    }
20340
 
20341
    public java.util.Iterator<Long> getPriceIterator() {
20342
      return (this.price == null) ? null : this.price.iterator();
20343
    }
20344
 
20345
    public void addToPrice(long elem) {
20346
      if (this.price == null) {
20347
        this.price = new ArrayList<Long>();
20348
      }
20349
      this.price.add(elem);
20350
    }
20351
 
20352
    public List<Long> getPrice() {
20353
      return this.price;
20354
    }
20355
 
20356
    public void setPrice(List<Long> price) {
20357
      this.price = price;
20358
    }
20359
 
20360
    public void unsetPrice() {
20361
      this.price = null;
20362
    }
20363
 
20364
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20365
    public boolean isSetPrice() {
20366
      return this.price != null;
20367
    }
20368
 
20369
    public void setPriceIsSet(boolean value) {
20370
      if (!value) {
20371
        this.price = null;
20372
      }
20373
    }
20374
 
20375
    public void setFieldValue(_Fields field, Object value) {
20376
      switch (field) {
20377
      case DEST_PINCODE:
20378
        if (value == null) {
20379
          unsetDestPincode();
20380
        } else {
20381
          setDestPincode((String)value);
20382
        }
20383
        break;
20384
 
20385
      case PRICE:
20386
        if (value == null) {
20387
          unsetPrice();
20388
        } else {
20389
          setPrice((List<Long>)value);
20390
        }
20391
        break;
20392
 
20393
      }
20394
    }
20395
 
20396
    public Object getFieldValue(_Fields field) {
20397
      switch (field) {
20398
      case DEST_PINCODE:
20399
        return getDestPincode();
20400
 
20401
      case PRICE:
20402
        return getPrice();
20403
 
20404
      }
20405
      throw new IllegalStateException();
20406
    }
20407
 
20408
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20409
    public boolean isSet(_Fields field) {
20410
      if (field == null) {
20411
        throw new IllegalArgumentException();
20412
      }
20413
 
20414
      switch (field) {
20415
      case DEST_PINCODE:
20416
        return isSetDestPincode();
20417
      case PRICE:
20418
        return isSetPrice();
20419
      }
20420
      throw new IllegalStateException();
20421
    }
20422
 
20423
    @Override
20424
    public boolean equals(Object that) {
20425
      if (that == null)
20426
        return false;
20427
      if (that instanceof getLocationInfoMap_args)
20428
        return this.equals((getLocationInfoMap_args)that);
20429
      return false;
20430
    }
20431
 
20432
    public boolean equals(getLocationInfoMap_args that) {
20433
      if (that == null)
20434
        return false;
20435
 
20436
      boolean this_present_destPincode = true && this.isSetDestPincode();
20437
      boolean that_present_destPincode = true && that.isSetDestPincode();
20438
      if (this_present_destPincode || that_present_destPincode) {
20439
        if (!(this_present_destPincode && that_present_destPincode))
20440
          return false;
20441
        if (!this.destPincode.equals(that.destPincode))
20442
          return false;
20443
      }
20444
 
20445
      boolean this_present_price = true && this.isSetPrice();
20446
      boolean that_present_price = true && that.isSetPrice();
20447
      if (this_present_price || that_present_price) {
20448
        if (!(this_present_price && that_present_price))
20449
          return false;
20450
        if (!this.price.equals(that.price))
20451
          return false;
20452
      }
20453
 
20454
      return true;
20455
    }
20456
 
20457
    @Override
20458
    public int hashCode() {
20459
      return 0;
20460
    }
20461
 
20462
    public int compareTo(getLocationInfoMap_args other) {
20463
      if (!getClass().equals(other.getClass())) {
20464
        return getClass().getName().compareTo(other.getClass().getName());
20465
      }
20466
 
20467
      int lastComparison = 0;
20468
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20469
 
20470
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20471
      if (lastComparison != 0) {
20472
        return lastComparison;
20473
      }
20474
      if (isSetDestPincode()) {
20475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20476
        if (lastComparison != 0) {
20477
          return lastComparison;
20478
        }
20479
      }
20480
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20481
      if (lastComparison != 0) {
20482
        return lastComparison;
20483
      }
20484
      if (isSetPrice()) {
20485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20486
        if (lastComparison != 0) {
20487
          return lastComparison;
20488
        }
20489
      }
20490
      return 0;
20491
    }
20492
 
20493
    public _Fields fieldForId(int fieldId) {
20494
      return _Fields.findByThriftId(fieldId);
20495
    }
20496
 
20497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20498
      org.apache.thrift.protocol.TField field;
20499
      iprot.readStructBegin();
20500
      while (true)
20501
      {
20502
        field = iprot.readFieldBegin();
20503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20504
          break;
20505
        }
20506
        switch (field.id) {
20507
          case 1: // DEST_PINCODE
20508
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20509
              this.destPincode = iprot.readString();
20510
            } else { 
20511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20512
            }
20513
            break;
20514
          case 2: // PRICE
20515
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20516
              {
20517
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20518
                this.price = new ArrayList<Long>(_list37.size);
20519
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20520
                {
20521
                  long _elem39; // required
20522
                  _elem39 = iprot.readI64();
20523
                  this.price.add(_elem39);
20524
                }
20525
                iprot.readListEnd();
20526
              }
20527
            } else { 
20528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20529
            }
20530
            break;
20531
          default:
20532
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20533
        }
20534
        iprot.readFieldEnd();
20535
      }
20536
      iprot.readStructEnd();
20537
      validate();
20538
    }
20539
 
20540
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20541
      validate();
20542
 
20543
      oprot.writeStructBegin(STRUCT_DESC);
20544
      if (this.destPincode != null) {
20545
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20546
        oprot.writeString(this.destPincode);
20547
        oprot.writeFieldEnd();
20548
      }
20549
      if (this.price != null) {
20550
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20551
        {
20552
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20553
          for (long _iter40 : this.price)
20554
          {
20555
            oprot.writeI64(_iter40);
20556
          }
20557
          oprot.writeListEnd();
20558
        }
20559
        oprot.writeFieldEnd();
20560
      }
20561
      oprot.writeFieldStop();
20562
      oprot.writeStructEnd();
20563
    }
20564
 
20565
    @Override
20566
    public String toString() {
20567
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20568
      boolean first = true;
20569
 
20570
      sb.append("destPincode:");
20571
      if (this.destPincode == null) {
20572
        sb.append("null");
20573
      } else {
20574
        sb.append(this.destPincode);
20575
      }
20576
      first = false;
20577
      if (!first) sb.append(", ");
20578
      sb.append("price:");
20579
      if (this.price == null) {
20580
        sb.append("null");
20581
      } else {
20582
        sb.append(this.price);
20583
      }
20584
      first = false;
20585
      sb.append(")");
20586
      return sb.toString();
20587
    }
20588
 
20589
    public void validate() throws org.apache.thrift.TException {
20590
      // check for required fields
20591
    }
20592
 
20593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20594
      try {
20595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20596
      } catch (org.apache.thrift.TException te) {
20597
        throw new java.io.IOException(te);
20598
      }
20599
    }
20600
 
20601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20602
      try {
20603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20604
      } catch (org.apache.thrift.TException te) {
20605
        throw new java.io.IOException(te);
20606
      }
20607
    }
20608
 
20609
  }
20610
 
20611
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20613
 
20614
    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);
20615
 
20616
    private Map<Long,Map<Long,LocationInfo>> success; // required
20617
 
20618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20619
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20620
      SUCCESS((short)0, "success");
20621
 
20622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20623
 
20624
      static {
20625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20626
          byName.put(field.getFieldName(), field);
20627
        }
20628
      }
20629
 
20630
      /**
20631
       * Find the _Fields constant that matches fieldId, or null if its not found.
20632
       */
20633
      public static _Fields findByThriftId(int fieldId) {
20634
        switch(fieldId) {
20635
          case 0: // SUCCESS
20636
            return SUCCESS;
20637
          default:
20638
            return null;
20639
        }
20640
      }
20641
 
20642
      /**
20643
       * Find the _Fields constant that matches fieldId, throwing an exception
20644
       * if it is not found.
20645
       */
20646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20647
        _Fields fields = findByThriftId(fieldId);
20648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20649
        return fields;
20650
      }
20651
 
20652
      /**
20653
       * Find the _Fields constant that matches name, or null if its not found.
20654
       */
20655
      public static _Fields findByName(String name) {
20656
        return byName.get(name);
20657
      }
20658
 
20659
      private final short _thriftId;
20660
      private final String _fieldName;
20661
 
20662
      _Fields(short thriftId, String fieldName) {
20663
        _thriftId = thriftId;
20664
        _fieldName = fieldName;
20665
      }
20666
 
20667
      public short getThriftFieldId() {
20668
        return _thriftId;
20669
      }
20670
 
20671
      public String getFieldName() {
20672
        return _fieldName;
20673
      }
20674
    }
20675
 
20676
    // isset id assignments
20677
 
20678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20679
    static {
20680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20682
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20683
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20684
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20685
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20686
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20689
    }
20690
 
20691
    public getLocationInfoMap_result() {
20692
    }
20693
 
20694
    public getLocationInfoMap_result(
20695
      Map<Long,Map<Long,LocationInfo>> success)
20696
    {
20697
      this();
20698
      this.success = success;
20699
    }
20700
 
20701
    /**
20702
     * Performs a deep copy on <i>other</i>.
20703
     */
20704
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20705
      if (other.isSetSuccess()) {
20706
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20707
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20708
 
20709
          Long other_element_key = other_element.getKey();
20710
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20711
 
20712
          Long __this__success_copy_key = other_element_key;
20713
 
20714
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20715
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20716
 
20717
            Long other_element_value_element_key = other_element_value_element.getKey();
20718
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20719
 
20720
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20721
 
20722
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20723
 
20724
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20725
          }
20726
 
20727
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20728
        }
20729
        this.success = __this__success;
20730
      }
20731
    }
20732
 
20733
    public getLocationInfoMap_result deepCopy() {
20734
      return new getLocationInfoMap_result(this);
20735
    }
20736
 
20737
    @Override
20738
    public void clear() {
20739
      this.success = null;
20740
    }
20741
 
20742
    public int getSuccessSize() {
20743
      return (this.success == null) ? 0 : this.success.size();
20744
    }
20745
 
20746
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20747
      if (this.success == null) {
20748
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20749
      }
20750
      this.success.put(key, val);
20751
    }
20752
 
20753
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20754
      return this.success;
20755
    }
20756
 
20757
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20758
      this.success = success;
20759
    }
20760
 
20761
    public void unsetSuccess() {
20762
      this.success = null;
20763
    }
20764
 
20765
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20766
    public boolean isSetSuccess() {
20767
      return this.success != null;
20768
    }
20769
 
20770
    public void setSuccessIsSet(boolean value) {
20771
      if (!value) {
20772
        this.success = null;
20773
      }
20774
    }
20775
 
20776
    public void setFieldValue(_Fields field, Object value) {
20777
      switch (field) {
20778
      case SUCCESS:
20779
        if (value == null) {
20780
          unsetSuccess();
20781
        } else {
20782
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20783
        }
20784
        break;
20785
 
20786
      }
20787
    }
20788
 
20789
    public Object getFieldValue(_Fields field) {
20790
      switch (field) {
20791
      case SUCCESS:
20792
        return getSuccess();
20793
 
20794
      }
20795
      throw new IllegalStateException();
20796
    }
20797
 
20798
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20799
    public boolean isSet(_Fields field) {
20800
      if (field == null) {
20801
        throw new IllegalArgumentException();
20802
      }
20803
 
20804
      switch (field) {
20805
      case SUCCESS:
20806
        return isSetSuccess();
20807
      }
20808
      throw new IllegalStateException();
20809
    }
20810
 
20811
    @Override
20812
    public boolean equals(Object that) {
20813
      if (that == null)
20814
        return false;
20815
      if (that instanceof getLocationInfoMap_result)
20816
        return this.equals((getLocationInfoMap_result)that);
20817
      return false;
20818
    }
20819
 
20820
    public boolean equals(getLocationInfoMap_result that) {
20821
      if (that == null)
20822
        return false;
20823
 
20824
      boolean this_present_success = true && this.isSetSuccess();
20825
      boolean that_present_success = true && that.isSetSuccess();
20826
      if (this_present_success || that_present_success) {
20827
        if (!(this_present_success && that_present_success))
20828
          return false;
20829
        if (!this.success.equals(that.success))
20830
          return false;
20831
      }
20832
 
20833
      return true;
20834
    }
20835
 
20836
    @Override
20837
    public int hashCode() {
20838
      return 0;
20839
    }
20840
 
20841
    public int compareTo(getLocationInfoMap_result other) {
20842
      if (!getClass().equals(other.getClass())) {
20843
        return getClass().getName().compareTo(other.getClass().getName());
20844
      }
20845
 
20846
      int lastComparison = 0;
20847
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
20848
 
20849
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20850
      if (lastComparison != 0) {
20851
        return lastComparison;
20852
      }
20853
      if (isSetSuccess()) {
20854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20855
        if (lastComparison != 0) {
20856
          return lastComparison;
20857
        }
20858
      }
20859
      return 0;
20860
    }
20861
 
20862
    public _Fields fieldForId(int fieldId) {
20863
      return _Fields.findByThriftId(fieldId);
20864
    }
20865
 
20866
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20867
      org.apache.thrift.protocol.TField field;
20868
      iprot.readStructBegin();
20869
      while (true)
20870
      {
20871
        field = iprot.readFieldBegin();
20872
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20873
          break;
20874
        }
20875
        switch (field.id) {
20876
          case 0: // SUCCESS
20877
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20878
              {
20879
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
20880
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
20881
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
20882
                {
20883
                  long _key43; // required
20884
                  Map<Long,LocationInfo> _val44; // required
20885
                  _key43 = iprot.readI64();
20886
                  {
20887
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
20888
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
20889
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
20890
                    {
20891
                      long _key47; // required
20892
                      LocationInfo _val48; // required
20893
                      _key47 = iprot.readI64();
20894
                      _val48 = new LocationInfo();
20895
                      _val48.read(iprot);
20896
                      _val44.put(_key47, _val48);
20897
                    }
20898
                    iprot.readMapEnd();
20899
                  }
20900
                  this.success.put(_key43, _val44);
20901
                }
20902
                iprot.readMapEnd();
20903
              }
20904
            } else { 
20905
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20906
            }
20907
            break;
20908
          default:
20909
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20910
        }
20911
        iprot.readFieldEnd();
20912
      }
20913
      iprot.readStructEnd();
20914
      validate();
20915
    }
20916
 
20917
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20918
      oprot.writeStructBegin(STRUCT_DESC);
20919
 
20920
      if (this.isSetSuccess()) {
20921
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20922
        {
20923
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
20924
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
20925
          {
20926
            oprot.writeI64(_iter49.getKey());
20927
            {
20928
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
20929
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
20930
              {
20931
                oprot.writeI64(_iter50.getKey());
20932
                _iter50.getValue().write(oprot);
20933
              }
20934
              oprot.writeMapEnd();
20935
            }
20936
          }
20937
          oprot.writeMapEnd();
20938
        }
20939
        oprot.writeFieldEnd();
20940
      }
20941
      oprot.writeFieldStop();
20942
      oprot.writeStructEnd();
20943
    }
20944
 
20945
    @Override
20946
    public String toString() {
20947
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
20948
      boolean first = true;
20949
 
20950
      sb.append("success:");
20951
      if (this.success == null) {
20952
        sb.append("null");
20953
      } else {
20954
        sb.append(this.success);
20955
      }
20956
      first = false;
20957
      sb.append(")");
20958
      return sb.toString();
20959
    }
20960
 
20961
    public void validate() throws org.apache.thrift.TException {
20962
      // check for required fields
20963
    }
20964
 
20965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20966
      try {
20967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20968
      } catch (org.apache.thrift.TException te) {
20969
        throw new java.io.IOException(te);
20970
      }
20971
    }
20972
 
20973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20974
      try {
20975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20976
      } catch (org.apache.thrift.TException te) {
20977
        throw new java.io.IOException(te);
20978
      }
20979
    }
20980
 
20981
  }
20982
 
19421 manish.sha 20983
  public static class getCostingAndDeliveryEstimateForPincode_args implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_args, getCostingAndDeliveryEstimateForPincode_args._Fields>, java.io.Serializable, Cloneable   {
20984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_args");
20985
 
20986
    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);
20987
    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);
20988
    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);
20989
    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);
20990
    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);
20991
 
20992
    private String pincode; // required
20993
    private double transactionAmount; // required
20994
    private boolean isCod; // required
20995
    private double weight; // required
20996
    private long billingWarehouseId; // required
20997
 
20998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21000
      PINCODE((short)1, "pincode"),
21001
      TRANSACTION_AMOUNT((short)2, "transactionAmount"),
21002
      IS_COD((short)3, "isCod"),
21003
      WEIGHT((short)4, "weight"),
21004
      BILLING_WAREHOUSE_ID((short)5, "billingWarehouseId");
21005
 
21006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21007
 
21008
      static {
21009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21010
          byName.put(field.getFieldName(), field);
21011
        }
21012
      }
21013
 
21014
      /**
21015
       * Find the _Fields constant that matches fieldId, or null if its not found.
21016
       */
21017
      public static _Fields findByThriftId(int fieldId) {
21018
        switch(fieldId) {
21019
          case 1: // PINCODE
21020
            return PINCODE;
21021
          case 2: // TRANSACTION_AMOUNT
21022
            return TRANSACTION_AMOUNT;
21023
          case 3: // IS_COD
21024
            return IS_COD;
21025
          case 4: // WEIGHT
21026
            return WEIGHT;
21027
          case 5: // BILLING_WAREHOUSE_ID
21028
            return BILLING_WAREHOUSE_ID;
21029
          default:
21030
            return null;
21031
        }
21032
      }
21033
 
21034
      /**
21035
       * Find the _Fields constant that matches fieldId, throwing an exception
21036
       * if it is not found.
21037
       */
21038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21039
        _Fields fields = findByThriftId(fieldId);
21040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21041
        return fields;
21042
      }
21043
 
21044
      /**
21045
       * Find the _Fields constant that matches name, or null if its not found.
21046
       */
21047
      public static _Fields findByName(String name) {
21048
        return byName.get(name);
21049
      }
21050
 
21051
      private final short _thriftId;
21052
      private final String _fieldName;
21053
 
21054
      _Fields(short thriftId, String fieldName) {
21055
        _thriftId = thriftId;
21056
        _fieldName = fieldName;
21057
      }
21058
 
21059
      public short getThriftFieldId() {
21060
        return _thriftId;
21061
      }
21062
 
21063
      public String getFieldName() {
21064
        return _fieldName;
21065
      }
21066
    }
21067
 
21068
    // isset id assignments
21069
    private static final int __TRANSACTIONAMOUNT_ISSET_ID = 0;
21070
    private static final int __ISCOD_ISSET_ID = 1;
21071
    private static final int __WEIGHT_ISSET_ID = 2;
21072
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
21073
    private BitSet __isset_bit_vector = new BitSet(4);
21074
 
21075
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21076
    static {
21077
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21078
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21080
      tmpMap.put(_Fields.TRANSACTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("transactionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21082
      tmpMap.put(_Fields.IS_COD, new org.apache.thrift.meta_data.FieldMetaData("isCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
21084
      tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21086
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_args.class, metaDataMap);
21090
    }
21091
 
21092
    public getCostingAndDeliveryEstimateForPincode_args() {
21093
    }
21094
 
21095
    public getCostingAndDeliveryEstimateForPincode_args(
21096
      String pincode,
21097
      double transactionAmount,
21098
      boolean isCod,
21099
      double weight,
21100
      long billingWarehouseId)
21101
    {
21102
      this();
21103
      this.pincode = pincode;
21104
      this.transactionAmount = transactionAmount;
21105
      setTransactionAmountIsSet(true);
21106
      this.isCod = isCod;
21107
      setIsCodIsSet(true);
21108
      this.weight = weight;
21109
      setWeightIsSet(true);
21110
      this.billingWarehouseId = billingWarehouseId;
21111
      setBillingWarehouseIdIsSet(true);
21112
    }
21113
 
21114
    /**
21115
     * Performs a deep copy on <i>other</i>.
21116
     */
21117
    public getCostingAndDeliveryEstimateForPincode_args(getCostingAndDeliveryEstimateForPincode_args other) {
21118
      __isset_bit_vector.clear();
21119
      __isset_bit_vector.or(other.__isset_bit_vector);
21120
      if (other.isSetPincode()) {
21121
        this.pincode = other.pincode;
21122
      }
21123
      this.transactionAmount = other.transactionAmount;
21124
      this.isCod = other.isCod;
21125
      this.weight = other.weight;
21126
      this.billingWarehouseId = other.billingWarehouseId;
21127
    }
21128
 
21129
    public getCostingAndDeliveryEstimateForPincode_args deepCopy() {
21130
      return new getCostingAndDeliveryEstimateForPincode_args(this);
21131
    }
21132
 
21133
    @Override
21134
    public void clear() {
21135
      this.pincode = null;
21136
      setTransactionAmountIsSet(false);
21137
      this.transactionAmount = 0.0;
21138
      setIsCodIsSet(false);
21139
      this.isCod = false;
21140
      setWeightIsSet(false);
21141
      this.weight = 0.0;
21142
      setBillingWarehouseIdIsSet(false);
21143
      this.billingWarehouseId = 0;
21144
    }
21145
 
21146
    public String getPincode() {
21147
      return this.pincode;
21148
    }
21149
 
21150
    public void setPincode(String pincode) {
21151
      this.pincode = pincode;
21152
    }
21153
 
21154
    public void unsetPincode() {
21155
      this.pincode = null;
21156
    }
21157
 
21158
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
21159
    public boolean isSetPincode() {
21160
      return this.pincode != null;
21161
    }
21162
 
21163
    public void setPincodeIsSet(boolean value) {
21164
      if (!value) {
21165
        this.pincode = null;
21166
      }
21167
    }
21168
 
21169
    public double getTransactionAmount() {
21170
      return this.transactionAmount;
21171
    }
21172
 
21173
    public void setTransactionAmount(double transactionAmount) {
21174
      this.transactionAmount = transactionAmount;
21175
      setTransactionAmountIsSet(true);
21176
    }
21177
 
21178
    public void unsetTransactionAmount() {
21179
      __isset_bit_vector.clear(__TRANSACTIONAMOUNT_ISSET_ID);
21180
    }
21181
 
21182
    /** Returns true if field transactionAmount is set (has been assigned a value) and false otherwise */
21183
    public boolean isSetTransactionAmount() {
21184
      return __isset_bit_vector.get(__TRANSACTIONAMOUNT_ISSET_ID);
21185
    }
21186
 
21187
    public void setTransactionAmountIsSet(boolean value) {
21188
      __isset_bit_vector.set(__TRANSACTIONAMOUNT_ISSET_ID, value);
21189
    }
21190
 
21191
    public boolean isIsCod() {
21192
      return this.isCod;
21193
    }
21194
 
21195
    public void setIsCod(boolean isCod) {
21196
      this.isCod = isCod;
21197
      setIsCodIsSet(true);
21198
    }
21199
 
21200
    public void unsetIsCod() {
21201
      __isset_bit_vector.clear(__ISCOD_ISSET_ID);
21202
    }
21203
 
21204
    /** Returns true if field isCod is set (has been assigned a value) and false otherwise */
21205
    public boolean isSetIsCod() {
21206
      return __isset_bit_vector.get(__ISCOD_ISSET_ID);
21207
    }
21208
 
21209
    public void setIsCodIsSet(boolean value) {
21210
      __isset_bit_vector.set(__ISCOD_ISSET_ID, value);
21211
    }
21212
 
21213
    public double getWeight() {
21214
      return this.weight;
21215
    }
21216
 
21217
    public void setWeight(double weight) {
21218
      this.weight = weight;
21219
      setWeightIsSet(true);
21220
    }
21221
 
21222
    public void unsetWeight() {
21223
      __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
21224
    }
21225
 
21226
    /** Returns true if field weight is set (has been assigned a value) and false otherwise */
21227
    public boolean isSetWeight() {
21228
      return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
21229
    }
21230
 
21231
    public void setWeightIsSet(boolean value) {
21232
      __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
21233
    }
21234
 
21235
    public long getBillingWarehouseId() {
21236
      return this.billingWarehouseId;
21237
    }
21238
 
21239
    public void setBillingWarehouseId(long billingWarehouseId) {
21240
      this.billingWarehouseId = billingWarehouseId;
21241
      setBillingWarehouseIdIsSet(true);
21242
    }
21243
 
21244
    public void unsetBillingWarehouseId() {
21245
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
21246
    }
21247
 
21248
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
21249
    public boolean isSetBillingWarehouseId() {
21250
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
21251
    }
21252
 
21253
    public void setBillingWarehouseIdIsSet(boolean value) {
21254
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
21255
    }
21256
 
21257
    public void setFieldValue(_Fields field, Object value) {
21258
      switch (field) {
21259
      case PINCODE:
21260
        if (value == null) {
21261
          unsetPincode();
21262
        } else {
21263
          setPincode((String)value);
21264
        }
21265
        break;
21266
 
21267
      case TRANSACTION_AMOUNT:
21268
        if (value == null) {
21269
          unsetTransactionAmount();
21270
        } else {
21271
          setTransactionAmount((Double)value);
21272
        }
21273
        break;
21274
 
21275
      case IS_COD:
21276
        if (value == null) {
21277
          unsetIsCod();
21278
        } else {
21279
          setIsCod((Boolean)value);
21280
        }
21281
        break;
21282
 
21283
      case WEIGHT:
21284
        if (value == null) {
21285
          unsetWeight();
21286
        } else {
21287
          setWeight((Double)value);
21288
        }
21289
        break;
21290
 
21291
      case BILLING_WAREHOUSE_ID:
21292
        if (value == null) {
21293
          unsetBillingWarehouseId();
21294
        } else {
21295
          setBillingWarehouseId((Long)value);
21296
        }
21297
        break;
21298
 
21299
      }
21300
    }
21301
 
21302
    public Object getFieldValue(_Fields field) {
21303
      switch (field) {
21304
      case PINCODE:
21305
        return getPincode();
21306
 
21307
      case TRANSACTION_AMOUNT:
21308
        return Double.valueOf(getTransactionAmount());
21309
 
21310
      case IS_COD:
21311
        return Boolean.valueOf(isIsCod());
21312
 
21313
      case WEIGHT:
21314
        return Double.valueOf(getWeight());
21315
 
21316
      case BILLING_WAREHOUSE_ID:
21317
        return Long.valueOf(getBillingWarehouseId());
21318
 
21319
      }
21320
      throw new IllegalStateException();
21321
    }
21322
 
21323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21324
    public boolean isSet(_Fields field) {
21325
      if (field == null) {
21326
        throw new IllegalArgumentException();
21327
      }
21328
 
21329
      switch (field) {
21330
      case PINCODE:
21331
        return isSetPincode();
21332
      case TRANSACTION_AMOUNT:
21333
        return isSetTransactionAmount();
21334
      case IS_COD:
21335
        return isSetIsCod();
21336
      case WEIGHT:
21337
        return isSetWeight();
21338
      case BILLING_WAREHOUSE_ID:
21339
        return isSetBillingWarehouseId();
21340
      }
21341
      throw new IllegalStateException();
21342
    }
21343
 
21344
    @Override
21345
    public boolean equals(Object that) {
21346
      if (that == null)
21347
        return false;
21348
      if (that instanceof getCostingAndDeliveryEstimateForPincode_args)
21349
        return this.equals((getCostingAndDeliveryEstimateForPincode_args)that);
21350
      return false;
21351
    }
21352
 
21353
    public boolean equals(getCostingAndDeliveryEstimateForPincode_args that) {
21354
      if (that == null)
21355
        return false;
21356
 
21357
      boolean this_present_pincode = true && this.isSetPincode();
21358
      boolean that_present_pincode = true && that.isSetPincode();
21359
      if (this_present_pincode || that_present_pincode) {
21360
        if (!(this_present_pincode && that_present_pincode))
21361
          return false;
21362
        if (!this.pincode.equals(that.pincode))
21363
          return false;
21364
      }
21365
 
21366
      boolean this_present_transactionAmount = true;
21367
      boolean that_present_transactionAmount = true;
21368
      if (this_present_transactionAmount || that_present_transactionAmount) {
21369
        if (!(this_present_transactionAmount && that_present_transactionAmount))
21370
          return false;
21371
        if (this.transactionAmount != that.transactionAmount)
21372
          return false;
21373
      }
21374
 
21375
      boolean this_present_isCod = true;
21376
      boolean that_present_isCod = true;
21377
      if (this_present_isCod || that_present_isCod) {
21378
        if (!(this_present_isCod && that_present_isCod))
21379
          return false;
21380
        if (this.isCod != that.isCod)
21381
          return false;
21382
      }
21383
 
21384
      boolean this_present_weight = true;
21385
      boolean that_present_weight = true;
21386
      if (this_present_weight || that_present_weight) {
21387
        if (!(this_present_weight && that_present_weight))
21388
          return false;
21389
        if (this.weight != that.weight)
21390
          return false;
21391
      }
21392
 
21393
      boolean this_present_billingWarehouseId = true;
21394
      boolean that_present_billingWarehouseId = true;
21395
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
21396
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
21397
          return false;
21398
        if (this.billingWarehouseId != that.billingWarehouseId)
21399
          return false;
21400
      }
21401
 
21402
      return true;
21403
    }
21404
 
21405
    @Override
21406
    public int hashCode() {
21407
      return 0;
21408
    }
21409
 
21410
    public int compareTo(getCostingAndDeliveryEstimateForPincode_args other) {
21411
      if (!getClass().equals(other.getClass())) {
21412
        return getClass().getName().compareTo(other.getClass().getName());
21413
      }
21414
 
21415
      int lastComparison = 0;
21416
      getCostingAndDeliveryEstimateForPincode_args typedOther = (getCostingAndDeliveryEstimateForPincode_args)other;
21417
 
21418
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
21419
      if (lastComparison != 0) {
21420
        return lastComparison;
21421
      }
21422
      if (isSetPincode()) {
21423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
21424
        if (lastComparison != 0) {
21425
          return lastComparison;
21426
        }
21427
      }
21428
      lastComparison = Boolean.valueOf(isSetTransactionAmount()).compareTo(typedOther.isSetTransactionAmount());
21429
      if (lastComparison != 0) {
21430
        return lastComparison;
21431
      }
21432
      if (isSetTransactionAmount()) {
21433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionAmount, typedOther.transactionAmount);
21434
        if (lastComparison != 0) {
21435
          return lastComparison;
21436
        }
21437
      }
21438
      lastComparison = Boolean.valueOf(isSetIsCod()).compareTo(typedOther.isSetIsCod());
21439
      if (lastComparison != 0) {
21440
        return lastComparison;
21441
      }
21442
      if (isSetIsCod()) {
21443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isCod, typedOther.isCod);
21444
        if (lastComparison != 0) {
21445
          return lastComparison;
21446
        }
21447
      }
21448
      lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
21449
      if (lastComparison != 0) {
21450
        return lastComparison;
21451
      }
21452
      if (isSetWeight()) {
21453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
21454
        if (lastComparison != 0) {
21455
          return lastComparison;
21456
        }
21457
      }
21458
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
21459
      if (lastComparison != 0) {
21460
        return lastComparison;
21461
      }
21462
      if (isSetBillingWarehouseId()) {
21463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
21464
        if (lastComparison != 0) {
21465
          return lastComparison;
21466
        }
21467
      }
21468
      return 0;
21469
    }
21470
 
21471
    public _Fields fieldForId(int fieldId) {
21472
      return _Fields.findByThriftId(fieldId);
21473
    }
21474
 
21475
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21476
      org.apache.thrift.protocol.TField field;
21477
      iprot.readStructBegin();
21478
      while (true)
21479
      {
21480
        field = iprot.readFieldBegin();
21481
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21482
          break;
21483
        }
21484
        switch (field.id) {
21485
          case 1: // PINCODE
21486
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21487
              this.pincode = iprot.readString();
21488
            } else { 
21489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21490
            }
21491
            break;
21492
          case 2: // TRANSACTION_AMOUNT
21493
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21494
              this.transactionAmount = iprot.readDouble();
21495
              setTransactionAmountIsSet(true);
21496
            } else { 
21497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21498
            }
21499
            break;
21500
          case 3: // IS_COD
21501
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
21502
              this.isCod = iprot.readBool();
21503
              setIsCodIsSet(true);
21504
            } else { 
21505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21506
            }
21507
            break;
21508
          case 4: // WEIGHT
21509
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21510
              this.weight = iprot.readDouble();
21511
              setWeightIsSet(true);
21512
            } else { 
21513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21514
            }
21515
            break;
21516
          case 5: // BILLING_WAREHOUSE_ID
21517
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21518
              this.billingWarehouseId = iprot.readI64();
21519
              setBillingWarehouseIdIsSet(true);
21520
            } else { 
21521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21522
            }
21523
            break;
21524
          default:
21525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21526
        }
21527
        iprot.readFieldEnd();
21528
      }
21529
      iprot.readStructEnd();
21530
      validate();
21531
    }
21532
 
21533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21534
      validate();
21535
 
21536
      oprot.writeStructBegin(STRUCT_DESC);
21537
      if (this.pincode != null) {
21538
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
21539
        oprot.writeString(this.pincode);
21540
        oprot.writeFieldEnd();
21541
      }
21542
      oprot.writeFieldBegin(TRANSACTION_AMOUNT_FIELD_DESC);
21543
      oprot.writeDouble(this.transactionAmount);
21544
      oprot.writeFieldEnd();
21545
      oprot.writeFieldBegin(IS_COD_FIELD_DESC);
21546
      oprot.writeBool(this.isCod);
21547
      oprot.writeFieldEnd();
21548
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
21549
      oprot.writeDouble(this.weight);
21550
      oprot.writeFieldEnd();
21551
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
21552
      oprot.writeI64(this.billingWarehouseId);
21553
      oprot.writeFieldEnd();
21554
      oprot.writeFieldStop();
21555
      oprot.writeStructEnd();
21556
    }
21557
 
21558
    @Override
21559
    public String toString() {
21560
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_args(");
21561
      boolean first = true;
21562
 
21563
      sb.append("pincode:");
21564
      if (this.pincode == null) {
21565
        sb.append("null");
21566
      } else {
21567
        sb.append(this.pincode);
21568
      }
21569
      first = false;
21570
      if (!first) sb.append(", ");
21571
      sb.append("transactionAmount:");
21572
      sb.append(this.transactionAmount);
21573
      first = false;
21574
      if (!first) sb.append(", ");
21575
      sb.append("isCod:");
21576
      sb.append(this.isCod);
21577
      first = false;
21578
      if (!first) sb.append(", ");
21579
      sb.append("weight:");
21580
      sb.append(this.weight);
21581
      first = false;
21582
      if (!first) sb.append(", ");
21583
      sb.append("billingWarehouseId:");
21584
      sb.append(this.billingWarehouseId);
21585
      first = false;
21586
      sb.append(")");
21587
      return sb.toString();
21588
    }
21589
 
21590
    public void validate() throws org.apache.thrift.TException {
21591
      // check for required fields
21592
    }
21593
 
21594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21595
      try {
21596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21597
      } catch (org.apache.thrift.TException te) {
21598
        throw new java.io.IOException(te);
21599
      }
21600
    }
21601
 
21602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21603
      try {
21604
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21605
        __isset_bit_vector = new BitSet(1);
21606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21607
      } catch (org.apache.thrift.TException te) {
21608
        throw new java.io.IOException(te);
21609
      }
21610
    }
21611
 
21612
  }
21613
 
21614
  public static class getCostingAndDeliveryEstimateForPincode_result implements org.apache.thrift.TBase<getCostingAndDeliveryEstimateForPincode_result, getCostingAndDeliveryEstimateForPincode_result._Fields>, java.io.Serializable, Cloneable   {
21615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCostingAndDeliveryEstimateForPincode_result");
21616
 
21617
    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);
21618
    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);
21619
 
21620
    private DeliveryEstimateAndCosting success; // required
21621
    private LogisticsServiceException se; // required
21622
 
21623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21625
      SUCCESS((short)0, "success"),
21626
      SE((short)1, "se");
21627
 
21628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21629
 
21630
      static {
21631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21632
          byName.put(field.getFieldName(), field);
21633
        }
21634
      }
21635
 
21636
      /**
21637
       * Find the _Fields constant that matches fieldId, or null if its not found.
21638
       */
21639
      public static _Fields findByThriftId(int fieldId) {
21640
        switch(fieldId) {
21641
          case 0: // SUCCESS
21642
            return SUCCESS;
21643
          case 1: // SE
21644
            return SE;
21645
          default:
21646
            return null;
21647
        }
21648
      }
21649
 
21650
      /**
21651
       * Find the _Fields constant that matches fieldId, throwing an exception
21652
       * if it is not found.
21653
       */
21654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21655
        _Fields fields = findByThriftId(fieldId);
21656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21657
        return fields;
21658
      }
21659
 
21660
      /**
21661
       * Find the _Fields constant that matches name, or null if its not found.
21662
       */
21663
      public static _Fields findByName(String name) {
21664
        return byName.get(name);
21665
      }
21666
 
21667
      private final short _thriftId;
21668
      private final String _fieldName;
21669
 
21670
      _Fields(short thriftId, String fieldName) {
21671
        _thriftId = thriftId;
21672
        _fieldName = fieldName;
21673
      }
21674
 
21675
      public short getThriftFieldId() {
21676
        return _thriftId;
21677
      }
21678
 
21679
      public String getFieldName() {
21680
        return _fieldName;
21681
      }
21682
    }
21683
 
21684
    // isset id assignments
21685
 
21686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21687
    static {
21688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21689
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21690
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DeliveryEstimateAndCosting.class)));
21691
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCostingAndDeliveryEstimateForPincode_result.class, metaDataMap);
21695
    }
21696
 
21697
    public getCostingAndDeliveryEstimateForPincode_result() {
21698
    }
21699
 
21700
    public getCostingAndDeliveryEstimateForPincode_result(
21701
      DeliveryEstimateAndCosting success,
21702
      LogisticsServiceException se)
21703
    {
21704
      this();
21705
      this.success = success;
21706
      this.se = se;
21707
    }
21708
 
21709
    /**
21710
     * Performs a deep copy on <i>other</i>.
21711
     */
21712
    public getCostingAndDeliveryEstimateForPincode_result(getCostingAndDeliveryEstimateForPincode_result other) {
21713
      if (other.isSetSuccess()) {
21714
        this.success = new DeliveryEstimateAndCosting(other.success);
21715
      }
21716
      if (other.isSetSe()) {
21717
        this.se = new LogisticsServiceException(other.se);
21718
      }
21719
    }
21720
 
21721
    public getCostingAndDeliveryEstimateForPincode_result deepCopy() {
21722
      return new getCostingAndDeliveryEstimateForPincode_result(this);
21723
    }
21724
 
21725
    @Override
21726
    public void clear() {
21727
      this.success = null;
21728
      this.se = null;
21729
    }
21730
 
21731
    public DeliveryEstimateAndCosting getSuccess() {
21732
      return this.success;
21733
    }
21734
 
21735
    public void setSuccess(DeliveryEstimateAndCosting success) {
21736
      this.success = success;
21737
    }
21738
 
21739
    public void unsetSuccess() {
21740
      this.success = null;
21741
    }
21742
 
21743
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21744
    public boolean isSetSuccess() {
21745
      return this.success != null;
21746
    }
21747
 
21748
    public void setSuccessIsSet(boolean value) {
21749
      if (!value) {
21750
        this.success = null;
21751
      }
21752
    }
21753
 
21754
    public LogisticsServiceException getSe() {
21755
      return this.se;
21756
    }
21757
 
21758
    public void setSe(LogisticsServiceException se) {
21759
      this.se = se;
21760
    }
21761
 
21762
    public void unsetSe() {
21763
      this.se = null;
21764
    }
21765
 
21766
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
21767
    public boolean isSetSe() {
21768
      return this.se != null;
21769
    }
21770
 
21771
    public void setSeIsSet(boolean value) {
21772
      if (!value) {
21773
        this.se = null;
21774
      }
21775
    }
21776
 
21777
    public void setFieldValue(_Fields field, Object value) {
21778
      switch (field) {
21779
      case SUCCESS:
21780
        if (value == null) {
21781
          unsetSuccess();
21782
        } else {
21783
          setSuccess((DeliveryEstimateAndCosting)value);
21784
        }
21785
        break;
21786
 
21787
      case SE:
21788
        if (value == null) {
21789
          unsetSe();
21790
        } else {
21791
          setSe((LogisticsServiceException)value);
21792
        }
21793
        break;
21794
 
21795
      }
21796
    }
21797
 
21798
    public Object getFieldValue(_Fields field) {
21799
      switch (field) {
21800
      case SUCCESS:
21801
        return getSuccess();
21802
 
21803
      case SE:
21804
        return getSe();
21805
 
21806
      }
21807
      throw new IllegalStateException();
21808
    }
21809
 
21810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21811
    public boolean isSet(_Fields field) {
21812
      if (field == null) {
21813
        throw new IllegalArgumentException();
21814
      }
21815
 
21816
      switch (field) {
21817
      case SUCCESS:
21818
        return isSetSuccess();
21819
      case SE:
21820
        return isSetSe();
21821
      }
21822
      throw new IllegalStateException();
21823
    }
21824
 
21825
    @Override
21826
    public boolean equals(Object that) {
21827
      if (that == null)
21828
        return false;
21829
      if (that instanceof getCostingAndDeliveryEstimateForPincode_result)
21830
        return this.equals((getCostingAndDeliveryEstimateForPincode_result)that);
21831
      return false;
21832
    }
21833
 
21834
    public boolean equals(getCostingAndDeliveryEstimateForPincode_result that) {
21835
      if (that == null)
21836
        return false;
21837
 
21838
      boolean this_present_success = true && this.isSetSuccess();
21839
      boolean that_present_success = true && that.isSetSuccess();
21840
      if (this_present_success || that_present_success) {
21841
        if (!(this_present_success && that_present_success))
21842
          return false;
21843
        if (!this.success.equals(that.success))
21844
          return false;
21845
      }
21846
 
21847
      boolean this_present_se = true && this.isSetSe();
21848
      boolean that_present_se = true && that.isSetSe();
21849
      if (this_present_se || that_present_se) {
21850
        if (!(this_present_se && that_present_se))
21851
          return false;
21852
        if (!this.se.equals(that.se))
21853
          return false;
21854
      }
21855
 
21856
      return true;
21857
    }
21858
 
21859
    @Override
21860
    public int hashCode() {
21861
      return 0;
21862
    }
21863
 
21864
    public int compareTo(getCostingAndDeliveryEstimateForPincode_result other) {
21865
      if (!getClass().equals(other.getClass())) {
21866
        return getClass().getName().compareTo(other.getClass().getName());
21867
      }
21868
 
21869
      int lastComparison = 0;
21870
      getCostingAndDeliveryEstimateForPincode_result typedOther = (getCostingAndDeliveryEstimateForPincode_result)other;
21871
 
21872
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21873
      if (lastComparison != 0) {
21874
        return lastComparison;
21875
      }
21876
      if (isSetSuccess()) {
21877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21878
        if (lastComparison != 0) {
21879
          return lastComparison;
21880
        }
21881
      }
21882
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
21883
      if (lastComparison != 0) {
21884
        return lastComparison;
21885
      }
21886
      if (isSetSe()) {
21887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
21888
        if (lastComparison != 0) {
21889
          return lastComparison;
21890
        }
21891
      }
21892
      return 0;
21893
    }
21894
 
21895
    public _Fields fieldForId(int fieldId) {
21896
      return _Fields.findByThriftId(fieldId);
21897
    }
21898
 
21899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21900
      org.apache.thrift.protocol.TField field;
21901
      iprot.readStructBegin();
21902
      while (true)
21903
      {
21904
        field = iprot.readFieldBegin();
21905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21906
          break;
21907
        }
21908
        switch (field.id) {
21909
          case 0: // SUCCESS
21910
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21911
              this.success = new DeliveryEstimateAndCosting();
21912
              this.success.read(iprot);
21913
            } else { 
21914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21915
            }
21916
            break;
21917
          case 1: // SE
21918
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21919
              this.se = new LogisticsServiceException();
21920
              this.se.read(iprot);
21921
            } else { 
21922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21923
            }
21924
            break;
21925
          default:
21926
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21927
        }
21928
        iprot.readFieldEnd();
21929
      }
21930
      iprot.readStructEnd();
21931
      validate();
21932
    }
21933
 
21934
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21935
      oprot.writeStructBegin(STRUCT_DESC);
21936
 
21937
      if (this.isSetSuccess()) {
21938
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21939
        this.success.write(oprot);
21940
        oprot.writeFieldEnd();
21941
      } else if (this.isSetSe()) {
21942
        oprot.writeFieldBegin(SE_FIELD_DESC);
21943
        this.se.write(oprot);
21944
        oprot.writeFieldEnd();
21945
      }
21946
      oprot.writeFieldStop();
21947
      oprot.writeStructEnd();
21948
    }
21949
 
21950
    @Override
21951
    public String toString() {
21952
      StringBuilder sb = new StringBuilder("getCostingAndDeliveryEstimateForPincode_result(");
21953
      boolean first = true;
21954
 
21955
      sb.append("success:");
21956
      if (this.success == null) {
21957
        sb.append("null");
21958
      } else {
21959
        sb.append(this.success);
21960
      }
21961
      first = false;
21962
      if (!first) sb.append(", ");
21963
      sb.append("se:");
21964
      if (this.se == null) {
21965
        sb.append("null");
21966
      } else {
21967
        sb.append(this.se);
21968
      }
21969
      first = false;
21970
      sb.append(")");
21971
      return sb.toString();
21972
    }
21973
 
21974
    public void validate() throws org.apache.thrift.TException {
21975
      // check for required fields
21976
    }
21977
 
21978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21979
      try {
21980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21981
      } catch (org.apache.thrift.TException te) {
21982
        throw new java.io.IOException(te);
21983
      }
21984
    }
21985
 
21986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21987
      try {
21988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21989
      } catch (org.apache.thrift.TException te) {
21990
        throw new java.io.IOException(te);
21991
      }
21992
    }
21993
 
21994
  }
21995
 
412 ashish 21996
}