Subversion Repositories SmartDukaan

Rev

Rev 13146 | Rev 19421 | 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
 
412 ashish 161
  }
162
 
3430 rajveer 163
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
164
 
165
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
168
 
4630 mandeep.dh 169
    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 170
 
7256 rajveer 171
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
172
 
5766 rajveer 173
    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 174
 
5247 rajveer 175
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 176
 
6643 rajveer 177
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 178
 
6643 rajveer 179
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
180
 
3430 rajveer 181
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
186
 
4934 amit.gupta 187
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
188
 
5527 anupam.sin 189
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
190
 
5553 rajveer 191
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
194
 
5719 rajveer 195
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
196
 
6524 rajveer 197
    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 198
 
6524 rajveer 199
    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 200
 
13146 manish.sha 201
    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 202
 
7788 manish.sha 203
    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 204
 
7888 rajveer 205
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
206
 
12895 manish.sha 207
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
208
 
13146 manish.sha 209
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException;
212
 
19413 amit.gupta 213
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
214
 
3430 rajveer 215
  }
216
 
3374 rajveer 217
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 218
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
219
      public Factory() {}
220
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
221
        return new Client(prot);
222
      }
223
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
224
        return new Client(iprot, oprot);
225
      }
226
    }
227
 
228
    public Client(org.apache.thrift.protocol.TProtocol prot)
412 ashish 229
    {
3430 rajveer 230
      super(prot, prot);
412 ashish 231
    }
232
 
3430 rajveer 233
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 234
      super(iprot, oprot);
412 ashish 235
    }
236
 
3430 rajveer 237
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 238
    {
239
      send_getProvider(providerId);
240
      return recv_getProvider();
241
    }
242
 
3430 rajveer 243
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
668 chandransh 244
    {
245
      getProvider_args args = new getProvider_args();
3430 rajveer 246
      args.setProviderId(providerId);
247
      sendBase("getProvider", args);
668 chandransh 248
    }
249
 
3430 rajveer 250
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
668 chandransh 251
    {
252
      getProvider_result result = new getProvider_result();
3430 rajveer 253
      receiveBase(result, "getProvider");
668 chandransh 254
      if (result.isSetSuccess()) {
255
        return result.success;
256
      }
257
      if (result.lse != null) {
258
        throw result.lse;
259
      }
3430 rajveer 260
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
668 chandransh 261
    }
262
 
3430 rajveer 263
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 264
    {
265
      send_getAllProviders();
266
      return recv_getAllProviders();
267
    }
268
 
3430 rajveer 269
    public void send_getAllProviders() throws org.apache.thrift.TException
674 chandransh 270
    {
271
      getAllProviders_args args = new getAllProviders_args();
3430 rajveer 272
      sendBase("getAllProviders", args);
674 chandransh 273
    }
274
 
3430 rajveer 275
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
674 chandransh 276
    {
277
      getAllProviders_result result = new getAllProviders_result();
3430 rajveer 278
      receiveBase(result, "getAllProviders");
674 chandransh 279
      if (result.isSetSuccess()) {
280
        return result.success;
281
      }
282
      if (result.lse != null) {
283
        throw result.lse;
284
      }
3430 rajveer 285
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
674 chandransh 286
    }
287
 
4630 mandeep.dh 288
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
483 rajveer 289
    {
4630 mandeep.dh 290
      send_getLogisticsEstimation(itemId, destination_pin, type);
471 rajveer 291
      return recv_getLogisticsEstimation();
292
    }
293
 
4630 mandeep.dh 294
    public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
471 rajveer 295
    {
296
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
3430 rajveer 297
      args.setItemId(itemId);
298
      args.setDestination_pin(destination_pin);
4630 mandeep.dh 299
      args.setType(type);
3430 rajveer 300
      sendBase("getLogisticsEstimation", args);
471 rajveer 301
    }
302
 
3430 rajveer 303
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 304
    {
305
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
3430 rajveer 306
      receiveBase(result, "getLogisticsEstimation");
471 rajveer 307
      if (result.isSetSuccess()) {
308
        return result.success;
309
      }
310
      if (result.se != null) {
311
        throw result.se;
312
      }
3430 rajveer 313
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
471 rajveer 314
    }
315
 
7256 rajveer 316
    public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
317
    {
318
      send_getLogisticsEstimationForStore(itemId, destination_pin, type);
319
      return recv_getLogisticsEstimationForStore();
320
    }
321
 
322
    public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
323
    {
324
      getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
325
      args.setItemId(itemId);
326
      args.setDestination_pin(destination_pin);
327
      args.setType(type);
328
      sendBase("getLogisticsEstimationForStore", args);
329
    }
330
 
331
    public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
332
    {
333
      getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
334
      receiveBase(result, "getLogisticsEstimationForStore");
335
      if (result.isSetSuccess()) {
336
        return result.success;
337
      }
338
      if (result.se != null) {
339
        throw result.se;
340
      }
341
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
342
    }
343
 
5766 rajveer 344
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 345
    {
5766 rajveer 346
      send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
648 chandransh 347
      return recv_getLogisticsInfo();
471 rajveer 348
    }
349
 
5766 rajveer 350
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
471 rajveer 351
    {
648 chandransh 352
      getLogisticsInfo_args args = new getLogisticsInfo_args();
3430 rajveer 353
      args.setDestination_pincode(destination_pincode);
354
      args.setItem_id(item_id);
355
      args.setType(type);
5766 rajveer 356
      args.setPickUp(pickUp);
3430 rajveer 357
      sendBase("getLogisticsInfo", args);
471 rajveer 358
    }
359
 
3430 rajveer 360
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
471 rajveer 361
    {
648 chandransh 362
      getLogisticsInfo_result result = new getLogisticsInfo_result();
3430 rajveer 363
      receiveBase(result, "getLogisticsInfo");
648 chandransh 364
      if (result.isSetSuccess()) {
365
        return result.success;
477 rajveer 366
      }
648 chandransh 367
      if (result.se != null) {
368
        throw result.se;
412 ashish 369
      }
3430 rajveer 370
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
412 ashish 371
    }
372
 
5247 rajveer 373
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 374
    {
5247 rajveer 375
      send_getEmptyAWB(providerId, type);
412 ashish 376
      return recv_getEmptyAWB();
377
    }
378
 
5247 rajveer 379
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
412 ashish 380
    {
381
      getEmptyAWB_args args = new getEmptyAWB_args();
3430 rajveer 382
      args.setProviderId(providerId);
5247 rajveer 383
      args.setType(type);
3430 rajveer 384
      sendBase("getEmptyAWB", args);
412 ashish 385
    }
386
 
3430 rajveer 387
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 388
    {
389
      getEmptyAWB_result result = new getEmptyAWB_result();
3430 rajveer 390
      receiveBase(result, "getEmptyAWB");
412 ashish 391
      if (result.isSetSuccess()) {
392
        return result.success;
393
      }
648 chandransh 394
      if (result.se != null) {
395
        throw result.se;
396
      }
3430 rajveer 397
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
412 ashish 398
    }
399
 
6643 rajveer 400
    public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 401
    {
6643 rajveer 402
      send_getShipmentInfo(awbNumber, providerId);
412 ashish 403
      return recv_getShipmentInfo();
404
    }
405
 
6643 rajveer 406
    public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
412 ashish 407
    {
408
      getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 409
      args.setAwbNumber(awbNumber);
3430 rajveer 410
      args.setProviderId(providerId);
411
      sendBase("getShipmentInfo", args);
412 ashish 412
    }
413
 
3430 rajveer 414
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
412 ashish 415
    {
416
      getShipmentInfo_result result = new getShipmentInfo_result();
3430 rajveer 417
      receiveBase(result, "getShipmentInfo");
412 ashish 418
      if (result.isSetSuccess()) {
419
        return result.success;
420
      }
648 chandransh 421
      if (result.se != null) {
422
        throw result.se;
423
      }
3430 rajveer 424
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
412 ashish 425
    }
426
 
6643 rajveer 427
    public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
428
    {
429
      send_storeShipmentInfo(update);
430
      recv_storeShipmentInfo();
431
    }
432
 
433
    public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
434
    {
435
      storeShipmentInfo_args args = new storeShipmentInfo_args();
436
      args.setUpdate(update);
437
      sendBase("storeShipmentInfo", args);
438
    }
439
 
440
    public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
441
    {
442
      storeShipmentInfo_result result = new storeShipmentInfo_result();
443
      receiveBase(result, "storeShipmentInfo");
444
      if (result.se != null) {
445
        throw result.se;
446
      }
447
      return;
448
    }
449
 
3430 rajveer 450
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 451
    {
452
      send_getDestinationCode(providerId, pinCode);
453
      return recv_getDestinationCode();
454
    }
455
 
3430 rajveer 456
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
730 chandransh 457
    {
458
      getDestinationCode_args args = new getDestinationCode_args();
3430 rajveer 459
      args.setProviderId(providerId);
460
      args.setPinCode(pinCode);
461
      sendBase("getDestinationCode", args);
730 chandransh 462
    }
463
 
3430 rajveer 464
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
730 chandransh 465
    {
466
      getDestinationCode_result result = new getDestinationCode_result();
3430 rajveer 467
      receiveBase(result, "getDestinationCode");
730 chandransh 468
      if (result.isSetSuccess()) {
469
        return result.success;
470
      }
471
      if (result.se != null) {
472
        throw result.se;
473
      }
3430 rajveer 474
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
730 chandransh 475
    }
476
 
3430 rajveer 477
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 478
    {
3103 chandransh 479
      send_getFreeAwbCount(providerId, type);
1139 chandransh 480
      return recv_getFreeAwbCount();
481
    }
482
 
3430 rajveer 483
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
1139 chandransh 484
    {
485
      getFreeAwbCount_args args = new getFreeAwbCount_args();
3430 rajveer 486
      args.setProviderId(providerId);
487
      args.setType(type);
488
      sendBase("getFreeAwbCount", args);
1139 chandransh 489
    }
490
 
3430 rajveer 491
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
1139 chandransh 492
    {
493
      getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 494
      receiveBase(result, "getFreeAwbCount");
1139 chandransh 495
      if (result.isSetSuccess()) {
496
        return result.success;
497
      }
3430 rajveer 498
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
1139 chandransh 499
    }
500
 
3430 rajveer 501
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 502
    {
503
      send_getHolidays(fromDate, toDate);
504
      return recv_getHolidays();
505
    }
506
 
3430 rajveer 507
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
1730 ankur.sing 508
    {
509
      getHolidays_args args = new getHolidays_args();
3430 rajveer 510
      args.setFromDate(fromDate);
511
      args.setToDate(toDate);
512
      sendBase("getHolidays", args);
1730 ankur.sing 513
    }
514
 
3430 rajveer 515
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
1730 ankur.sing 516
    {
517
      getHolidays_result result = new getHolidays_result();
3430 rajveer 518
      receiveBase(result, "getHolidays");
1730 ankur.sing 519
      if (result.isSetSuccess()) {
520
        return result.success;
521
      }
3430 rajveer 522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
1730 ankur.sing 523
    }
524
 
9840 amit.gupta 525
    public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 526
    {
527
      send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
528
      return recv_getEntityLogisticsEstimation();
529
    }
530
 
531
    public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
532
    {
533
      getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
534
      args.setCatalogItemId(catalogItemId);
535
      args.setDestination_pin(destination_pin);
536
      args.setType(type);
537
      sendBase("getEntityLogisticsEstimation", args);
538
    }
539
 
9840 amit.gupta 540
    public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
4934 amit.gupta 541
    {
542
      getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
543
      receiveBase(result, "getEntityLogisticsEstimation");
544
      if (result.isSetSuccess()) {
545
        return result.success;
546
      }
547
      if (result.se != null) {
548
        throw result.se;
549
      }
550
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
551
    }
552
 
5527 anupam.sin 553
    public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
554
    {
555
      send_getProviderForPickupType(pickUp);
556
      return recv_getProviderForPickupType();
557
    }
558
 
559
    public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
560
    {
561
      getProviderForPickupType_args args = new getProviderForPickupType_args();
562
      args.setPickUp(pickUp);
563
      sendBase("getProviderForPickupType", args);
564
    }
565
 
566
    public long recv_getProviderForPickupType() throws org.apache.thrift.TException
567
    {
568
      getProviderForPickupType_result result = new getProviderForPickupType_result();
569
      receiveBase(result, "getProviderForPickupType");
570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
574
    }
575
 
5553 rajveer 576
    public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
577
    {
578
      send_getAllPickupStores();
579
      return recv_getAllPickupStores();
580
    }
581
 
582
    public void send_getAllPickupStores() throws org.apache.thrift.TException
583
    {
584
      getAllPickupStores_args args = new getAllPickupStores_args();
585
      sendBase("getAllPickupStores", args);
586
    }
587
 
588
    public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
589
    {
590
      getAllPickupStores_result result = new getAllPickupStores_result();
591
      receiveBase(result, "getAllPickupStores");
592
      if (result.isSetSuccess()) {
593
        return result.success;
594
      }
595
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
596
    }
597
 
598
    public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
599
    {
600
      send_getPickupStore(storeId);
601
      return recv_getPickupStore();
602
    }
603
 
604
    public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
605
    {
606
      getPickupStore_args args = new getPickupStore_args();
607
      args.setStoreId(storeId);
608
      sendBase("getPickupStore", args);
609
    }
610
 
611
    public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
612
    {
613
      getPickupStore_result result = new getPickupStore_result();
614
      receiveBase(result, "getPickupStore");
615
      if (result.isSetSuccess()) {
616
        return result.success;
617
      }
618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
619
    }
620
 
5719 rajveer 621
    public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
622
    {
623
      send_getPickupStoreByHotspotId(hotspotId);
624
      return recv_getPickupStoreByHotspotId();
625
    }
626
 
627
    public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
628
    {
629
      getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
630
      args.setHotspotId(hotspotId);
631
      sendBase("getPickupStoreByHotspotId", args);
632
    }
633
 
634
    public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
635
    {
636
      getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
637
      receiveBase(result, "getPickupStoreByHotspotId");
638
      if (result.isSetSuccess()) {
639
        return result.success;
640
      }
641
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
642
    }
643
 
6524 rajveer 644
    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 645
    {
6524 rajveer 646
      send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
6322 amar.kumar 647
      recv_addPincode();
648
    }
649
 
6524 rajveer 650
    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 651
    {
652
      addPincode_args args = new addPincode_args();
653
      args.setProviderId(providerId);
654
      args.setPincode(pincode);
655
      args.setDestCode(destCode);
656
      args.setExp(exp);
657
      args.setCod(cod);
658
      args.setStationType(stationType);
6524 rajveer 659
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 660
      sendBase("addPincode", args);
661
    }
662
 
663
    public void recv_addPincode() throws org.apache.thrift.TException
664
    {
665
      addPincode_result result = new addPincode_result();
666
      receiveBase(result, "addPincode");
667
      return;
668
    }
669
 
6524 rajveer 670
    public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 671
    {
6524 rajveer 672
      send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
6322 amar.kumar 673
      recv_updatePincode();
674
    }
675
 
6524 rajveer 676
    public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
6322 amar.kumar 677
    {
678
      updatePincode_args args = new updatePincode_args();
679
      args.setProviderId(providerId);
680
      args.setPincode(pincode);
681
      args.setExp(exp);
682
      args.setCod(cod);
6524 rajveer 683
      args.setOtgAvailable(otgAvailable);
6322 amar.kumar 684
      sendBase("updatePincode", args);
685
    }
686
 
687
    public void recv_updatePincode() throws org.apache.thrift.TException
688
    {
689
      updatePincode_result result = new updatePincode_result();
690
      receiveBase(result, "updatePincode");
691
      return;
692
    }
693
 
13146 manish.sha 694
    public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 695
    {
13146 manish.sha 696
      send_addNewAwbs(providerId, cod, awbs, awbUsedFor);
7567 rajveer 697
      return recv_addNewAwbs();
698
    }
699
 
13146 manish.sha 700
    public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs, long awbUsedFor) throws org.apache.thrift.TException
7567 rajveer 701
    {
702
      addNewAwbs_args args = new addNewAwbs_args();
703
      args.setProviderId(providerId);
704
      args.setCod(cod);
705
      args.setAwbs(awbs);
13146 manish.sha 706
      args.setAwbUsedFor(awbUsedFor);
7567 rajveer 707
      sendBase("addNewAwbs", args);
708
    }
709
 
710
    public boolean recv_addNewAwbs() throws org.apache.thrift.TException
711
    {
712
      addNewAwbs_result result = new addNewAwbs_result();
713
      receiveBase(result, "addNewAwbs");
714
      if (result.isSetSuccess()) {
715
        return result.success;
716
      }
717
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
718
    }
719
 
7788 manish.sha 720
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 721
    {
7788 manish.sha 722
      send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
723
      recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 724
    }
725
 
7788 manish.sha 726
    public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
7737 manish.sha 727
    {
7788 manish.sha 728
      runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
729
      args.setLogisticsLocationInfoList(logisticsLocationInfoList);
730
      args.setRunCompleteUpdate(runCompleteUpdate);
731
      sendBase("runLogisticsLocationInfoUpdate", args);
7737 manish.sha 732
    }
733
 
7788 manish.sha 734
    public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
7737 manish.sha 735
    {
7788 manish.sha 736
      runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
737
      receiveBase(result, "runLogisticsLocationInfoUpdate");
7737 manish.sha 738
      return;
739
    }
740
 
7888 rajveer 741
    public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
742
    {
743
      send_adjustDeliveryDays(startDate, days);
744
      return recv_adjustDeliveryDays();
745
    }
746
 
747
    public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
748
    {
749
      adjustDeliveryDays_args args = new adjustDeliveryDays_args();
750
      args.setStartDate(startDate);
751
      args.setDays(days);
752
      sendBase("adjustDeliveryDays", args);
753
    }
754
 
755
    public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
756
    {
757
      adjustDeliveryDays_result result = new adjustDeliveryDays_result();
758
      receiveBase(result, "adjustDeliveryDays");
759
      if (result.isSetSuccess()) {
760
        return result.success;
761
      }
762
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
763
    }
764
 
12895 manish.sha 765
    public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
766
    {
767
      send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
768
      return recv_getFirstDeliveryEstimateForWhLocation();
769
    }
770
 
771
    public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
772
    {
773
      getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
774
      args.setPincode(pincode);
775
      args.setWhLocation(whLocation);
776
      sendBase("getFirstDeliveryEstimateForWhLocation", args);
777
    }
778
 
779
    public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
780
    {
781
      getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
782
      receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
783
      if (result.isSetSuccess()) {
784
        return result.success;
785
      }
786
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
787
    }
788
 
13146 manish.sha 789
    public String getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws LogisticsServiceException, org.apache.thrift.TException
790
    {
791
      send_getNewEmptyAwb(providerId, type, orderQuantity);
792
      return recv_getNewEmptyAwb();
793
    }
794
 
795
    public void send_getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity) throws org.apache.thrift.TException
796
    {
797
      getNewEmptyAwb_args args = new getNewEmptyAwb_args();
798
      args.setProviderId(providerId);
799
      args.setType(type);
800
      args.setOrderQuantity(orderQuantity);
801
      sendBase("getNewEmptyAwb", args);
802
    }
803
 
804
    public String recv_getNewEmptyAwb() throws LogisticsServiceException, org.apache.thrift.TException
805
    {
806
      getNewEmptyAwb_result result = new getNewEmptyAwb_result();
807
      receiveBase(result, "getNewEmptyAwb");
808
      if (result.isSetSuccess()) {
809
        return result.success;
810
      }
811
      if (result.se != null) {
812
        throw result.se;
813
      }
814
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNewEmptyAwb failed: unknown result");
815
    }
816
 
817
    public Map<String,String> getProviderLimitDetailsForPincode(long providerId, String pincode) throws LogisticsServiceException, org.apache.thrift.TException
818
    {
819
      send_getProviderLimitDetailsForPincode(providerId, pincode);
820
      return recv_getProviderLimitDetailsForPincode();
821
    }
822
 
823
    public void send_getProviderLimitDetailsForPincode(long providerId, String pincode) throws org.apache.thrift.TException
824
    {
825
      getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
826
      args.setProviderId(providerId);
827
      args.setPincode(pincode);
828
      sendBase("getProviderLimitDetailsForPincode", args);
829
    }
830
 
831
    public Map<String,String> recv_getProviderLimitDetailsForPincode() throws LogisticsServiceException, org.apache.thrift.TException
832
    {
833
      getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
834
      receiveBase(result, "getProviderLimitDetailsForPincode");
835
      if (result.isSetSuccess()) {
836
        return result.success;
837
      }
838
      if (result.se != null) {
839
        throw result.se;
840
      }
841
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderLimitDetailsForPincode failed: unknown result");
842
    }
843
 
19413 amit.gupta 844
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
845
    {
846
      send_getLocationInfoMap(destPincode, price);
847
      return recv_getLocationInfoMap();
848
    }
849
 
850
    public void send_getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException
851
    {
852
      getLocationInfoMap_args args = new getLocationInfoMap_args();
853
      args.setDestPincode(destPincode);
854
      args.setPrice(price);
855
      sendBase("getLocationInfoMap", args);
856
    }
857
 
858
    public Map<Long,Map<Long,LocationInfo>> recv_getLocationInfoMap() throws org.apache.thrift.TException
859
    {
860
      getLocationInfoMap_result result = new getLocationInfoMap_result();
861
      receiveBase(result, "getLocationInfoMap");
862
      if (result.isSetSuccess()) {
863
        return result.success;
864
      }
865
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLocationInfoMap failed: unknown result");
866
    }
867
 
412 ashish 868
  }
3430 rajveer 869
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
870
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
871
      private org.apache.thrift.async.TAsyncClientManager clientManager;
872
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
873
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
874
        this.clientManager = clientManager;
875
        this.protocolFactory = protocolFactory;
876
      }
877
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
878
        return new AsyncClient(protocolFactory, clientManager, transport);
879
      }
412 ashish 880
    }
881
 
3430 rajveer 882
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
883
      super(protocolFactory, clientManager, transport);
884
    }
412 ashish 885
 
3430 rajveer 886
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
887
      checkReady();
888
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
889
      this.___currentMethod = method_call;
890
      ___manager.call(method_call);
891
    }
892
 
893
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
894
      private long providerId;
895
      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 {
896
        super(client, protocolFactory, transport, resultHandler, false);
897
        this.providerId = providerId;
412 ashish 898
      }
3430 rajveer 899
 
900
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
901
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
902
        getProvider_args args = new getProvider_args();
903
        args.setProviderId(providerId);
904
        args.write(prot);
905
        prot.writeMessageEnd();
906
      }
907
 
908
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
909
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
910
          throw new IllegalStateException("Method call not finished!");
911
        }
912
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
913
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
914
        return (new Client(prot)).recv_getProvider();
915
      }
412 ashish 916
    }
917
 
3430 rajveer 918
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
919
      checkReady();
920
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
921
      this.___currentMethod = method_call;
922
      ___manager.call(method_call);
923
    }
924
 
925
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
926
      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 {
927
        super(client, protocolFactory, transport, resultHandler, false);
928
      }
929
 
930
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
931
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
932
        getAllProviders_args args = new getAllProviders_args();
933
        args.write(prot);
934
        prot.writeMessageEnd();
935
      }
936
 
937
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
938
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
939
          throw new IllegalStateException("Method call not finished!");
940
        }
941
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
942
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
943
        return (new Client(prot)).recv_getAllProviders();
944
      }
945
    }
946
 
4630 mandeep.dh 947
    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 948
      checkReady();
4630 mandeep.dh 949
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 950
      this.___currentMethod = method_call;
951
      ___manager.call(method_call);
952
    }
953
 
954
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
955
      private long itemId;
956
      private String destination_pin;
4630 mandeep.dh 957
      private DeliveryType type;
958
      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 959
        super(client, protocolFactory, transport, resultHandler, false);
960
        this.itemId = itemId;
961
        this.destination_pin = destination_pin;
4630 mandeep.dh 962
        this.type = type;
3430 rajveer 963
      }
964
 
965
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
966
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
967
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
968
        args.setItemId(itemId);
969
        args.setDestination_pin(destination_pin);
4630 mandeep.dh 970
        args.setType(type);
3430 rajveer 971
        args.write(prot);
972
        prot.writeMessageEnd();
973
      }
974
 
975
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
976
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
977
          throw new IllegalStateException("Method call not finished!");
978
        }
979
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
980
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
981
        return (new Client(prot)).recv_getLogisticsEstimation();
982
      }
983
    }
984
 
7256 rajveer 985
    public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
986
      checkReady();
987
      getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
988
      this.___currentMethod = method_call;
989
      ___manager.call(method_call);
990
    }
991
 
992
    public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
993
      private long itemId;
994
      private String destination_pin;
995
      private DeliveryType type;
996
      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 {
997
        super(client, protocolFactory, transport, resultHandler, false);
998
        this.itemId = itemId;
999
        this.destination_pin = destination_pin;
1000
        this.type = type;
1001
      }
1002
 
1003
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1004
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1005
        getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
1006
        args.setItemId(itemId);
1007
        args.setDestination_pin(destination_pin);
1008
        args.setType(type);
1009
        args.write(prot);
1010
        prot.writeMessageEnd();
1011
      }
1012
 
1013
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1014
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1015
          throw new IllegalStateException("Method call not finished!");
1016
        }
1017
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1018
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1019
        return (new Client(prot)).recv_getLogisticsEstimationForStore();
1020
      }
1021
    }
1022
 
5766 rajveer 1023
    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 1024
      checkReady();
5766 rajveer 1025
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1026
      this.___currentMethod = method_call;
1027
      ___manager.call(method_call);
1028
    }
1029
 
1030
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1031
      private String destination_pincode;
1032
      private long item_id;
1033
      private DeliveryType type;
5766 rajveer 1034
      private PickUpType pickUp;
1035
      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 1036
        super(client, protocolFactory, transport, resultHandler, false);
1037
        this.destination_pincode = destination_pincode;
1038
        this.item_id = item_id;
1039
        this.type = type;
5766 rajveer 1040
        this.pickUp = pickUp;
3430 rajveer 1041
      }
1042
 
1043
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1044
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1045
        getLogisticsInfo_args args = new getLogisticsInfo_args();
1046
        args.setDestination_pincode(destination_pincode);
1047
        args.setItem_id(item_id);
1048
        args.setType(type);
5766 rajveer 1049
        args.setPickUp(pickUp);
3430 rajveer 1050
        args.write(prot);
1051
        prot.writeMessageEnd();
1052
      }
1053
 
1054
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1055
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1056
          throw new IllegalStateException("Method call not finished!");
1057
        }
1058
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1059
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1060
        return (new Client(prot)).recv_getLogisticsInfo();
1061
      }
1062
    }
1063
 
5247 rajveer 1064
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1065
      checkReady();
5247 rajveer 1066
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1067
      this.___currentMethod = method_call;
1068
      ___manager.call(method_call);
1069
    }
1070
 
1071
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
1072
      private long providerId;
5247 rajveer 1073
      private DeliveryType type;
1074
      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 1075
        super(client, protocolFactory, transport, resultHandler, false);
1076
        this.providerId = providerId;
5247 rajveer 1077
        this.type = type;
3430 rajveer 1078
      }
1079
 
1080
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1081
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
1082
        getEmptyAWB_args args = new getEmptyAWB_args();
1083
        args.setProviderId(providerId);
5247 rajveer 1084
        args.setType(type);
3430 rajveer 1085
        args.write(prot);
1086
        prot.writeMessageEnd();
1087
      }
1088
 
1089
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1090
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1091
          throw new IllegalStateException("Method call not finished!");
1092
        }
1093
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1094
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1095
        return (new Client(prot)).recv_getEmptyAWB();
1096
      }
1097
    }
1098
 
6643 rajveer 1099
    public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1100
      checkReady();
6643 rajveer 1101
      getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1102
      this.___currentMethod = method_call;
1103
      ___manager.call(method_call);
1104
    }
1105
 
1106
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
6643 rajveer 1107
      private String awbNumber;
3430 rajveer 1108
      private long providerId;
6643 rajveer 1109
      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 1110
        super(client, protocolFactory, transport, resultHandler, false);
6643 rajveer 1111
        this.awbNumber = awbNumber;
3430 rajveer 1112
        this.providerId = providerId;
1113
      }
1114
 
1115
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1116
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1117
        getShipmentInfo_args args = new getShipmentInfo_args();
6643 rajveer 1118
        args.setAwbNumber(awbNumber);
3430 rajveer 1119
        args.setProviderId(providerId);
1120
        args.write(prot);
1121
        prot.writeMessageEnd();
1122
      }
1123
 
1124
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1125
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1126
          throw new IllegalStateException("Method call not finished!");
1127
        }
1128
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1129
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1130
        return (new Client(prot)).recv_getShipmentInfo();
1131
      }
1132
    }
1133
 
6643 rajveer 1134
    public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
1135
      checkReady();
1136
      storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
1137
      this.___currentMethod = method_call;
1138
      ___manager.call(method_call);
1139
    }
1140
 
1141
    public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
1142
      private AwbUpdate update;
1143
      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 {
1144
        super(client, protocolFactory, transport, resultHandler, false);
1145
        this.update = update;
1146
      }
1147
 
1148
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1149
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
1150
        storeShipmentInfo_args args = new storeShipmentInfo_args();
1151
        args.setUpdate(update);
1152
        args.write(prot);
1153
        prot.writeMessageEnd();
1154
      }
1155
 
1156
      public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1157
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1158
          throw new IllegalStateException("Method call not finished!");
1159
        }
1160
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1161
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1162
        (new Client(prot)).recv_storeShipmentInfo();
1163
      }
1164
    }
1165
 
3430 rajveer 1166
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
1167
      checkReady();
1168
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
1169
      this.___currentMethod = method_call;
1170
      ___manager.call(method_call);
1171
    }
1172
 
1173
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
1174
      private long providerId;
1175
      private String pinCode;
1176
      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 {
1177
        super(client, protocolFactory, transport, resultHandler, false);
1178
        this.providerId = providerId;
1179
        this.pinCode = pinCode;
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("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1184
        getDestinationCode_args args = new getDestinationCode_args();
1185
        args.setProviderId(providerId);
1186
        args.setPinCode(pinCode);
1187
        args.write(prot);
1188
        prot.writeMessageEnd();
1189
      }
1190
 
1191
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1192
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1193
          throw new IllegalStateException("Method call not finished!");
1194
        }
1195
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1196
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1197
        return (new Client(prot)).recv_getDestinationCode();
1198
      }
1199
    }
1200
 
1201
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
1202
      checkReady();
1203
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
1204
      this.___currentMethod = method_call;
1205
      ___manager.call(method_call);
1206
    }
1207
 
1208
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
1209
      private long providerId;
1210
      private String type;
1211
      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 {
1212
        super(client, protocolFactory, transport, resultHandler, false);
1213
        this.providerId = providerId;
1214
        this.type = type;
1215
      }
1216
 
1217
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1218
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
1219
        getFreeAwbCount_args args = new getFreeAwbCount_args();
1220
        args.setProviderId(providerId);
1221
        args.setType(type);
1222
        args.write(prot);
1223
        prot.writeMessageEnd();
1224
      }
1225
 
1226
      public long getResult() throws org.apache.thrift.TException {
1227
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1228
          throw new IllegalStateException("Method call not finished!");
1229
        }
1230
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1231
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1232
        return (new Client(prot)).recv_getFreeAwbCount();
1233
      }
1234
    }
1235
 
1236
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
1237
      checkReady();
1238
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1239
      this.___currentMethod = method_call;
1240
      ___manager.call(method_call);
1241
    }
1242
 
1243
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
1244
      private long fromDate;
1245
      private long toDate;
1246
      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 {
1247
        super(client, protocolFactory, transport, resultHandler, false);
1248
        this.fromDate = fromDate;
1249
        this.toDate = toDate;
1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        getHolidays_args args = new getHolidays_args();
1255
        args.setFromDate(fromDate);
1256
        args.setToDate(toDate);
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public List<Long> getResult() throws org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getHolidays();
1268
      }
1269
    }
1270
 
4934 amit.gupta 1271
    public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private long catalogItemId;
1280
      private String destination_pin;
1281
      private DeliveryType type;
1282
      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 {
1283
        super(client, protocolFactory, transport, resultHandler, false);
1284
        this.catalogItemId = catalogItemId;
1285
        this.destination_pin = destination_pin;
1286
        this.type = type;
1287
      }
1288
 
1289
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1290
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1291
        getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
1292
        args.setCatalogItemId(catalogItemId);
1293
        args.setDestination_pin(destination_pin);
1294
        args.setType(type);
1295
        args.write(prot);
1296
        prot.writeMessageEnd();
1297
      }
1298
 
9840 amit.gupta 1299
      public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
4934 amit.gupta 1300
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1301
          throw new IllegalStateException("Method call not finished!");
1302
        }
1303
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1304
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1305
        return (new Client(prot)).recv_getEntityLogisticsEstimation();
1306
      }
1307
    }
1308
 
5527 anupam.sin 1309
    public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
1310
      checkReady();
1311
      getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
1312
      this.___currentMethod = method_call;
1313
      ___manager.call(method_call);
1314
    }
1315
 
1316
    public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
1317
      private long pickUp;
1318
      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 {
1319
        super(client, protocolFactory, transport, resultHandler, false);
1320
        this.pickUp = pickUp;
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("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1325
        getProviderForPickupType_args args = new getProviderForPickupType_args();
1326
        args.setPickUp(pickUp);
1327
        args.write(prot);
1328
        prot.writeMessageEnd();
1329
      }
1330
 
1331
      public long getResult() throws org.apache.thrift.TException {
1332
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1333
          throw new IllegalStateException("Method call not finished!");
1334
        }
1335
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1336
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1337
        return (new Client(prot)).recv_getProviderForPickupType();
1338
      }
1339
    }
1340
 
5553 rajveer 1341
    public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
1342
      checkReady();
1343
      getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
1344
      this.___currentMethod = method_call;
1345
      ___manager.call(method_call);
1346
    }
1347
 
1348
    public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
1349
      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 {
1350
        super(client, protocolFactory, transport, resultHandler, false);
1351
      }
1352
 
1353
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1354
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
1355
        getAllPickupStores_args args = new getAllPickupStores_args();
1356
        args.write(prot);
1357
        prot.writeMessageEnd();
1358
      }
1359
 
1360
      public List<PickupStore> getResult() throws org.apache.thrift.TException {
1361
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1362
          throw new IllegalStateException("Method call not finished!");
1363
        }
1364
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1366
        return (new Client(prot)).recv_getAllPickupStores();
1367
      }
1368
    }
1369
 
1370
    public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
1371
      checkReady();
1372
      getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
1373
      this.___currentMethod = method_call;
1374
      ___manager.call(method_call);
1375
    }
1376
 
1377
    public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
1378
      private long storeId;
1379
      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 {
1380
        super(client, protocolFactory, transport, resultHandler, false);
1381
        this.storeId = storeId;
1382
      }
1383
 
1384
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1385
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
1386
        getPickupStore_args args = new getPickupStore_args();
1387
        args.setStoreId(storeId);
1388
        args.write(prot);
1389
        prot.writeMessageEnd();
1390
      }
1391
 
1392
      public PickupStore getResult() throws org.apache.thrift.TException {
1393
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1394
          throw new IllegalStateException("Method call not finished!");
1395
        }
1396
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1398
        return (new Client(prot)).recv_getPickupStore();
1399
      }
1400
    }
1401
 
5719 rajveer 1402
    public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
1403
      checkReady();
1404
      getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
1405
      this.___currentMethod = method_call;
1406
      ___manager.call(method_call);
1407
    }
1408
 
1409
    public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
1410
      private String hotspotId;
1411
      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 {
1412
        super(client, protocolFactory, transport, resultHandler, false);
1413
        this.hotspotId = hotspotId;
1414
      }
1415
 
1416
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1417
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1418
        getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
1419
        args.setHotspotId(hotspotId);
1420
        args.write(prot);
1421
        prot.writeMessageEnd();
1422
      }
1423
 
1424
      public PickupStore getResult() throws org.apache.thrift.TException {
1425
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1426
          throw new IllegalStateException("Method call not finished!");
1427
        }
1428
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1429
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1430
        return (new Client(prot)).recv_getPickupStoreByHotspotId();
1431
      }
1432
    }
1433
 
6524 rajveer 1434
    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 1435
      checkReady();
6524 rajveer 1436
      addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1437
      this.___currentMethod = method_call;
1438
      ___manager.call(method_call);
1439
    }
1440
 
1441
    public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1442
      private long providerId;
1443
      private String pincode;
1444
      private String destCode;
1445
      private boolean exp;
1446
      private boolean cod;
1447
      private int stationType;
6524 rajveer 1448
      private boolean otgAvailable;
1449
      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 1450
        super(client, protocolFactory, transport, resultHandler, false);
1451
        this.providerId = providerId;
1452
        this.pincode = pincode;
1453
        this.destCode = destCode;
1454
        this.exp = exp;
1455
        this.cod = cod;
1456
        this.stationType = stationType;
6524 rajveer 1457
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1458
      }
1459
 
1460
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1461
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1462
        addPincode_args args = new addPincode_args();
1463
        args.setProviderId(providerId);
1464
        args.setPincode(pincode);
1465
        args.setDestCode(destCode);
1466
        args.setExp(exp);
1467
        args.setCod(cod);
1468
        args.setStationType(stationType);
6524 rajveer 1469
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1470
        args.write(prot);
1471
        prot.writeMessageEnd();
1472
      }
1473
 
1474
      public void getResult() throws org.apache.thrift.TException {
1475
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1476
          throw new IllegalStateException("Method call not finished!");
1477
        }
1478
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1479
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1480
        (new Client(prot)).recv_addPincode();
1481
      }
1482
    }
1483
 
6524 rajveer 1484
    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 1485
      checkReady();
6524 rajveer 1486
      updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
6322 amar.kumar 1487
      this.___currentMethod = method_call;
1488
      ___manager.call(method_call);
1489
    }
1490
 
1491
    public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1492
      private long providerId;
1493
      private String pincode;
1494
      private boolean exp;
1495
      private boolean cod;
6524 rajveer 1496
      private boolean otgAvailable;
1497
      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 1498
        super(client, protocolFactory, transport, resultHandler, false);
1499
        this.providerId = providerId;
1500
        this.pincode = pincode;
1501
        this.exp = exp;
1502
        this.cod = cod;
6524 rajveer 1503
        this.otgAvailable = otgAvailable;
6322 amar.kumar 1504
      }
1505
 
1506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1508
        updatePincode_args args = new updatePincode_args();
1509
        args.setProviderId(providerId);
1510
        args.setPincode(pincode);
1511
        args.setExp(exp);
1512
        args.setCod(cod);
6524 rajveer 1513
        args.setOtgAvailable(otgAvailable);
6322 amar.kumar 1514
        args.write(prot);
1515
        prot.writeMessageEnd();
1516
      }
1517
 
1518
      public void getResult() throws org.apache.thrift.TException {
1519
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1520
          throw new IllegalStateException("Method call not finished!");
1521
        }
1522
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1523
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1524
        (new Client(prot)).recv_updatePincode();
1525
      }
1526
    }
1527
 
13146 manish.sha 1528
    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 1529
      checkReady();
13146 manish.sha 1530
      addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, awbUsedFor, resultHandler, this, ___protocolFactory, ___transport);
7567 rajveer 1531
      this.___currentMethod = method_call;
1532
      ___manager.call(method_call);
1533
    }
1534
 
1535
    public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
1536
      private long providerId;
1537
      private boolean cod;
1538
      private List<String> awbs;
13146 manish.sha 1539
      private long awbUsedFor;
1540
      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 1541
        super(client, protocolFactory, transport, resultHandler, false);
1542
        this.providerId = providerId;
1543
        this.cod = cod;
1544
        this.awbs = awbs;
13146 manish.sha 1545
        this.awbUsedFor = awbUsedFor;
7567 rajveer 1546
      }
1547
 
1548
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1549
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
1550
        addNewAwbs_args args = new addNewAwbs_args();
1551
        args.setProviderId(providerId);
1552
        args.setCod(cod);
1553
        args.setAwbs(awbs);
13146 manish.sha 1554
        args.setAwbUsedFor(awbUsedFor);
7567 rajveer 1555
        args.write(prot);
1556
        prot.writeMessageEnd();
1557
      }
1558
 
1559
      public boolean getResult() throws org.apache.thrift.TException {
1560
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1561
          throw new IllegalStateException("Method call not finished!");
1562
        }
1563
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1564
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1565
        return (new Client(prot)).recv_addNewAwbs();
1566
      }
1567
    }
1568
 
7788 manish.sha 1569
    public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
7737 manish.sha 1570
      checkReady();
7788 manish.sha 1571
      runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
7737 manish.sha 1572
      this.___currentMethod = method_call;
1573
      ___manager.call(method_call);
1574
    }
1575
 
7788 manish.sha 1576
    public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
1577
      private List<LogisticsLocationInfo> logisticsLocationInfoList;
1578
      private boolean runCompleteUpdate;
1579
      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 1580
        super(client, protocolFactory, transport, resultHandler, false);
7788 manish.sha 1581
        this.logisticsLocationInfoList = logisticsLocationInfoList;
1582
        this.runCompleteUpdate = runCompleteUpdate;
7737 manish.sha 1583
      }
1584
 
1585
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
7788 manish.sha 1586
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1587
        runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
1588
        args.setLogisticsLocationInfoList(logisticsLocationInfoList);
1589
        args.setRunCompleteUpdate(runCompleteUpdate);
7737 manish.sha 1590
        args.write(prot);
1591
        prot.writeMessageEnd();
1592
      }
1593
 
1594
      public void getResult() throws org.apache.thrift.TException {
1595
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1596
          throw new IllegalStateException("Method call not finished!");
1597
        }
1598
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1599
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7788 manish.sha 1600
        (new Client(prot)).recv_runLogisticsLocationInfoUpdate();
7737 manish.sha 1601
      }
1602
    }
1603
 
7888 rajveer 1604
    public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
1605
      checkReady();
1606
      adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
1607
      this.___currentMethod = method_call;
1608
      ___manager.call(method_call);
1609
    }
1610
 
1611
    public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
1612
      private long startDate;
1613
      private long days;
1614
      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 {
1615
        super(client, protocolFactory, transport, resultHandler, false);
1616
        this.startDate = startDate;
1617
        this.days = days;
1618
      }
1619
 
1620
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1621
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
1622
        adjustDeliveryDays_args args = new adjustDeliveryDays_args();
1623
        args.setStartDate(startDate);
1624
        args.setDays(days);
1625
        args.write(prot);
1626
        prot.writeMessageEnd();
1627
      }
1628
 
1629
      public long getResult() throws org.apache.thrift.TException {
1630
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1631
          throw new IllegalStateException("Method call not finished!");
1632
        }
1633
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1634
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1635
        return (new Client(prot)).recv_adjustDeliveryDays();
1636
      }
1637
    }
1638
 
12895 manish.sha 1639
    public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
1640
      checkReady();
1641
      getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
1642
      this.___currentMethod = method_call;
1643
      ___manager.call(method_call);
1644
    }
1645
 
1646
    public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
1647
      private String pincode;
1648
      private long whLocation;
1649
      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 {
1650
        super(client, protocolFactory, transport, resultHandler, false);
1651
        this.pincode = pincode;
1652
        this.whLocation = whLocation;
1653
      }
1654
 
1655
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1656
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
1657
        getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
1658
        args.setPincode(pincode);
1659
        args.setWhLocation(whLocation);
1660
        args.write(prot);
1661
        prot.writeMessageEnd();
1662
      }
1663
 
1664
      public long getResult() throws org.apache.thrift.TException {
1665
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1666
          throw new IllegalStateException("Method call not finished!");
1667
        }
1668
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1670
        return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
1671
      }
1672
    }
1673
 
13146 manish.sha 1674
    public void getNewEmptyAwb(long providerId, DeliveryType type, long orderQuantity, org.apache.thrift.async.AsyncMethodCallback<getNewEmptyAwb_call> resultHandler) throws org.apache.thrift.TException {
1675
      checkReady();
1676
      getNewEmptyAwb_call method_call = new getNewEmptyAwb_call(providerId, type, orderQuantity, resultHandler, this, ___protocolFactory, ___transport);
1677
      this.___currentMethod = method_call;
1678
      ___manager.call(method_call);
1679
    }
1680
 
1681
    public static class getNewEmptyAwb_call extends org.apache.thrift.async.TAsyncMethodCall {
1682
      private long providerId;
1683
      private DeliveryType type;
1684
      private long orderQuantity;
1685
      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 {
1686
        super(client, protocolFactory, transport, resultHandler, false);
1687
        this.providerId = providerId;
1688
        this.type = type;
1689
        this.orderQuantity = orderQuantity;
1690
      }
1691
 
1692
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1693
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNewEmptyAwb", org.apache.thrift.protocol.TMessageType.CALL, 0));
1694
        getNewEmptyAwb_args args = new getNewEmptyAwb_args();
1695
        args.setProviderId(providerId);
1696
        args.setType(type);
1697
        args.setOrderQuantity(orderQuantity);
1698
        args.write(prot);
1699
        prot.writeMessageEnd();
1700
      }
1701
 
1702
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1703
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1704
          throw new IllegalStateException("Method call not finished!");
1705
        }
1706
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1707
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1708
        return (new Client(prot)).recv_getNewEmptyAwb();
1709
      }
1710
    }
1711
 
1712
    public void getProviderLimitDetailsForPincode(long providerId, String pincode, org.apache.thrift.async.AsyncMethodCallback<getProviderLimitDetailsForPincode_call> resultHandler) throws org.apache.thrift.TException {
1713
      checkReady();
1714
      getProviderLimitDetailsForPincode_call method_call = new getProviderLimitDetailsForPincode_call(providerId, pincode, resultHandler, this, ___protocolFactory, ___transport);
1715
      this.___currentMethod = method_call;
1716
      ___manager.call(method_call);
1717
    }
1718
 
1719
    public static class getProviderLimitDetailsForPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
1720
      private long providerId;
1721
      private String pincode;
1722
      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 {
1723
        super(client, protocolFactory, transport, resultHandler, false);
1724
        this.providerId = providerId;
1725
        this.pincode = pincode;
1726
      }
1727
 
1728
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1729
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderLimitDetailsForPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
1730
        getProviderLimitDetailsForPincode_args args = new getProviderLimitDetailsForPincode_args();
1731
        args.setProviderId(providerId);
1732
        args.setPincode(pincode);
1733
        args.write(prot);
1734
        prot.writeMessageEnd();
1735
      }
1736
 
1737
      public Map<String,String> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
1738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1739
          throw new IllegalStateException("Method call not finished!");
1740
        }
1741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        return (new Client(prot)).recv_getProviderLimitDetailsForPincode();
1744
      }
1745
    }
1746
 
19413 amit.gupta 1747
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException {
1748
      checkReady();
1749
      getLocationInfoMap_call method_call = new getLocationInfoMap_call(destPincode, price, resultHandler, this, ___protocolFactory, ___transport);
1750
      this.___currentMethod = method_call;
1751
      ___manager.call(method_call);
1752
    }
1753
 
1754
    public static class getLocationInfoMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1755
      private String destPincode;
1756
      private List<Long> price;
1757
      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 {
1758
        super(client, protocolFactory, transport, resultHandler, false);
1759
        this.destPincode = destPincode;
1760
        this.price = price;
1761
      }
1762
 
1763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLocationInfoMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1765
        getLocationInfoMap_args args = new getLocationInfoMap_args();
1766
        args.setDestPincode(destPincode);
1767
        args.setPrice(price);
1768
        args.write(prot);
1769
        prot.writeMessageEnd();
1770
      }
1771
 
1772
      public Map<Long,Map<Long,LocationInfo>> getResult() throws org.apache.thrift.TException {
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1774
          throw new IllegalStateException("Method call not finished!");
1775
        }
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        return (new Client(prot)).recv_getLocationInfoMap();
1779
      }
1780
    }
1781
 
3430 rajveer 1782
  }
1783
 
1784
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1785
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1786
    public Processor(I iface) {
1787
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1788
    }
1789
 
1790
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1791
      super(iface, getProcessMap(processMap));
1792
    }
1793
 
1794
    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) {
1795
      processMap.put("getProvider", new getProvider());
1796
      processMap.put("getAllProviders", new getAllProviders());
1797
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
7256 rajveer 1798
      processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
3430 rajveer 1799
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
1800
      processMap.put("getEmptyAWB", new getEmptyAWB());
1801
      processMap.put("getShipmentInfo", new getShipmentInfo());
6643 rajveer 1802
      processMap.put("storeShipmentInfo", new storeShipmentInfo());
3430 rajveer 1803
      processMap.put("getDestinationCode", new getDestinationCode());
1804
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
1805
      processMap.put("getHolidays", new getHolidays());
4934 amit.gupta 1806
      processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
5527 anupam.sin 1807
      processMap.put("getProviderForPickupType", new getProviderForPickupType());
5553 rajveer 1808
      processMap.put("getAllPickupStores", new getAllPickupStores());
1809
      processMap.put("getPickupStore", new getPickupStore());
5719 rajveer 1810
      processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
6322 amar.kumar 1811
      processMap.put("addPincode", new addPincode());
1812
      processMap.put("updatePincode", new updatePincode());
7567 rajveer 1813
      processMap.put("addNewAwbs", new addNewAwbs());
7788 manish.sha 1814
      processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
7888 rajveer 1815
      processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
12895 manish.sha 1816
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
13146 manish.sha 1817
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1818
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
19413 amit.gupta 1819
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
3430 rajveer 1820
      return processMap;
1821
    }
1822
 
1823
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1824
      public getProvider() {
1825
        super("getProvider");
1826
      }
1827
 
1828
      protected getProvider_args getEmptyArgsInstance() {
1829
        return new getProvider_args();
1830
      }
1831
 
1832
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
668 chandransh 1833
        getProvider_result result = new getProvider_result();
1834
        try {
3430 rajveer 1835
          result.success = iface.getProvider(args.providerId);
668 chandransh 1836
        } catch (LogisticsServiceException lse) {
1837
          result.lse = lse;
1838
        }
3430 rajveer 1839
        return result;
668 chandransh 1840
      }
1841
    }
1842
 
3430 rajveer 1843
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
1844
      public getAllProviders() {
1845
        super("getAllProviders");
1846
      }
1847
 
1848
      protected getAllProviders_args getEmptyArgsInstance() {
1849
        return new getAllProviders_args();
1850
      }
1851
 
1852
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
674 chandransh 1853
        getAllProviders_result result = new getAllProviders_result();
1854
        try {
3430 rajveer 1855
          result.success = iface.getAllProviders();
674 chandransh 1856
        } catch (LogisticsServiceException lse) {
1857
          result.lse = lse;
1858
        }
3430 rajveer 1859
        return result;
674 chandransh 1860
      }
1861
    }
1862
 
3430 rajveer 1863
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
1864
      public getLogisticsEstimation() {
1865
        super("getLogisticsEstimation");
1866
      }
1867
 
1868
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
1869
        return new getLogisticsEstimation_args();
1870
      }
1871
 
1872
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
648 chandransh 1873
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
483 rajveer 1874
        try {
4630 mandeep.dh 1875
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
483 rajveer 1876
        } catch (LogisticsServiceException se) {
1877
          result.se = se;
1878
        }
3430 rajveer 1879
        return result;
483 rajveer 1880
      }
1881
    }
1882
 
7256 rajveer 1883
    private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
1884
      public getLogisticsEstimationForStore() {
1885
        super("getLogisticsEstimationForStore");
1886
      }
1887
 
1888
      protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
1889
        return new getLogisticsEstimationForStore_args();
1890
      }
1891
 
1892
      protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
1893
        getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
1894
        try {
1895
          result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
1896
        } catch (LogisticsServiceException se) {
1897
          result.se = se;
1898
        }
1899
        return result;
1900
      }
1901
    }
1902
 
3430 rajveer 1903
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
1904
      public getLogisticsInfo() {
1905
        super("getLogisticsInfo");
1906
      }
1907
 
1908
      protected getLogisticsInfo_args getEmptyArgsInstance() {
1909
        return new getLogisticsInfo_args();
1910
      }
1911
 
1912
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
648 chandransh 1913
        getLogisticsInfo_result result = new getLogisticsInfo_result();
471 rajveer 1914
        try {
5766 rajveer 1915
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
471 rajveer 1916
        } catch (LogisticsServiceException se) {
1917
          result.se = se;
1918
        }
3430 rajveer 1919
        return result;
471 rajveer 1920
      }
1921
    }
1922
 
3430 rajveer 1923
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
1924
      public getEmptyAWB() {
1925
        super("getEmptyAWB");
1926
      }
1927
 
1928
      protected getEmptyAWB_args getEmptyArgsInstance() {
1929
        return new getEmptyAWB_args();
1930
      }
1931
 
1932
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
412 ashish 1933
        getEmptyAWB_result result = new getEmptyAWB_result();
648 chandransh 1934
        try {
5247 rajveer 1935
          result.success = iface.getEmptyAWB(args.providerId, args.type);
648 chandransh 1936
        } catch (LogisticsServiceException se) {
1937
          result.se = se;
1938
        }
3430 rajveer 1939
        return result;
412 ashish 1940
      }
1941
    }
1942
 
3430 rajveer 1943
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
1944
      public getShipmentInfo() {
1945
        super("getShipmentInfo");
1946
      }
1947
 
1948
      protected getShipmentInfo_args getEmptyArgsInstance() {
1949
        return new getShipmentInfo_args();
1950
      }
1951
 
1952
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
412 ashish 1953
        getShipmentInfo_result result = new getShipmentInfo_result();
648 chandransh 1954
        try {
6643 rajveer 1955
          result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
648 chandransh 1956
        } catch (LogisticsServiceException se) {
1957
          result.se = se;
1958
        }
3430 rajveer 1959
        return result;
412 ashish 1960
      }
1961
    }
1962
 
6643 rajveer 1963
    private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
1964
      public storeShipmentInfo() {
1965
        super("storeShipmentInfo");
1966
      }
1967
 
1968
      protected storeShipmentInfo_args getEmptyArgsInstance() {
1969
        return new storeShipmentInfo_args();
1970
      }
1971
 
1972
      protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
1973
        storeShipmentInfo_result result = new storeShipmentInfo_result();
1974
        try {
1975
          iface.storeShipmentInfo(args.update);
1976
        } catch (LogisticsServiceException se) {
1977
          result.se = se;
1978
        }
1979
        return result;
1980
      }
1981
    }
1982
 
3430 rajveer 1983
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
1984
      public getDestinationCode() {
1985
        super("getDestinationCode");
1986
      }
1987
 
1988
      protected getDestinationCode_args getEmptyArgsInstance() {
1989
        return new getDestinationCode_args();
1990
      }
1991
 
1992
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
730 chandransh 1993
        getDestinationCode_result result = new getDestinationCode_result();
1994
        try {
3430 rajveer 1995
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
730 chandransh 1996
        } catch (LogisticsServiceException se) {
1997
          result.se = se;
1998
        }
3430 rajveer 1999
        return result;
730 chandransh 2000
      }
2001
    }
2002
 
3430 rajveer 2003
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
2004
      public getFreeAwbCount() {
2005
        super("getFreeAwbCount");
2006
      }
2007
 
2008
      protected getFreeAwbCount_args getEmptyArgsInstance() {
2009
        return new getFreeAwbCount_args();
2010
      }
2011
 
2012
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
1139 chandransh 2013
        getFreeAwbCount_result result = new getFreeAwbCount_result();
3430 rajveer 2014
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
1139 chandransh 2015
        result.setSuccessIsSet(true);
3430 rajveer 2016
        return result;
1139 chandransh 2017
      }
2018
    }
2019
 
3430 rajveer 2020
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
2021
      public getHolidays() {
2022
        super("getHolidays");
2023
      }
2024
 
2025
      protected getHolidays_args getEmptyArgsInstance() {
2026
        return new getHolidays_args();
2027
      }
2028
 
2029
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
1730 ankur.sing 2030
        getHolidays_result result = new getHolidays_result();
3430 rajveer 2031
        result.success = iface.getHolidays(args.fromDate, args.toDate);
2032
        return result;
1730 ankur.sing 2033
      }
2034
    }
2035
 
4934 amit.gupta 2036
    private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
2037
      public getEntityLogisticsEstimation() {
2038
        super("getEntityLogisticsEstimation");
2039
      }
2040
 
2041
      protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
2042
        return new getEntityLogisticsEstimation_args();
2043
      }
2044
 
2045
      protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
2046
        getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
2047
        try {
2048
          result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
2049
        } catch (LogisticsServiceException se) {
2050
          result.se = se;
2051
        }
2052
        return result;
2053
      }
2054
    }
2055
 
5527 anupam.sin 2056
    private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
2057
      public getProviderForPickupType() {
2058
        super("getProviderForPickupType");
2059
      }
2060
 
2061
      protected getProviderForPickupType_args getEmptyArgsInstance() {
2062
        return new getProviderForPickupType_args();
2063
      }
2064
 
2065
      protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
2066
        getProviderForPickupType_result result = new getProviderForPickupType_result();
2067
        result.success = iface.getProviderForPickupType(args.pickUp);
2068
        result.setSuccessIsSet(true);
2069
        return result;
2070
      }
2071
    }
2072
 
5553 rajveer 2073
    private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
2074
      public getAllPickupStores() {
2075
        super("getAllPickupStores");
2076
      }
2077
 
2078
      protected getAllPickupStores_args getEmptyArgsInstance() {
2079
        return new getAllPickupStores_args();
2080
      }
2081
 
2082
      protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
2083
        getAllPickupStores_result result = new getAllPickupStores_result();
2084
        result.success = iface.getAllPickupStores();
2085
        return result;
2086
      }
2087
    }
2088
 
2089
    private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
2090
      public getPickupStore() {
2091
        super("getPickupStore");
2092
      }
2093
 
2094
      protected getPickupStore_args getEmptyArgsInstance() {
2095
        return new getPickupStore_args();
2096
      }
2097
 
2098
      protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
2099
        getPickupStore_result result = new getPickupStore_result();
2100
        result.success = iface.getPickupStore(args.storeId);
2101
        return result;
2102
      }
2103
    }
2104
 
5719 rajveer 2105
    private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
2106
      public getPickupStoreByHotspotId() {
2107
        super("getPickupStoreByHotspotId");
2108
      }
2109
 
2110
      protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
2111
        return new getPickupStoreByHotspotId_args();
2112
      }
2113
 
2114
      protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
2115
        getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
2116
        result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
2117
        return result;
2118
      }
2119
    }
2120
 
6322 amar.kumar 2121
    private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
2122
      public addPincode() {
2123
        super("addPincode");
2124
      }
2125
 
2126
      protected addPincode_args getEmptyArgsInstance() {
2127
        return new addPincode_args();
2128
      }
2129
 
2130
      protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
2131
        addPincode_result result = new addPincode_result();
6524 rajveer 2132
        iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
6322 amar.kumar 2133
        return result;
2134
      }
2135
    }
2136
 
2137
    private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
2138
      public updatePincode() {
2139
        super("updatePincode");
2140
      }
2141
 
2142
      protected updatePincode_args getEmptyArgsInstance() {
2143
        return new updatePincode_args();
2144
      }
2145
 
2146
      protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
2147
        updatePincode_result result = new updatePincode_result();
6524 rajveer 2148
        iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
6322 amar.kumar 2149
        return result;
2150
      }
2151
    }
2152
 
7567 rajveer 2153
    private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
2154
      public addNewAwbs() {
2155
        super("addNewAwbs");
2156
      }
2157
 
2158
      protected addNewAwbs_args getEmptyArgsInstance() {
2159
        return new addNewAwbs_args();
2160
      }
2161
 
2162
      protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
2163
        addNewAwbs_result result = new addNewAwbs_result();
13146 manish.sha 2164
        result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs, args.awbUsedFor);
7567 rajveer 2165
        result.setSuccessIsSet(true);
2166
        return result;
2167
      }
2168
    }
2169
 
7788 manish.sha 2170
    private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
2171
      public runLogisticsLocationInfoUpdate() {
2172
        super("runLogisticsLocationInfoUpdate");
7737 manish.sha 2173
      }
2174
 
7788 manish.sha 2175
      protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
2176
        return new runLogisticsLocationInfoUpdate_args();
7737 manish.sha 2177
      }
2178
 
7788 manish.sha 2179
      protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
2180
        runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
2181
        iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
7737 manish.sha 2182
        return result;
2183
      }
2184
    }
2185
 
7888 rajveer 2186
    private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
2187
      public adjustDeliveryDays() {
2188
        super("adjustDeliveryDays");
2189
      }
2190
 
2191
      protected adjustDeliveryDays_args getEmptyArgsInstance() {
2192
        return new adjustDeliveryDays_args();
2193
      }
2194
 
2195
      protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
2196
        adjustDeliveryDays_result result = new adjustDeliveryDays_result();
2197
        result.success = iface.adjustDeliveryDays(args.startDate, args.days);
2198
        result.setSuccessIsSet(true);
2199
        return result;
2200
      }
2201
    }
2202
 
12895 manish.sha 2203
    private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
2204
      public getFirstDeliveryEstimateForWhLocation() {
2205
        super("getFirstDeliveryEstimateForWhLocation");
2206
      }
2207
 
2208
      protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
2209
        return new getFirstDeliveryEstimateForWhLocation_args();
2210
      }
2211
 
2212
      protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
2213
        getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
2214
        result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
2215
        result.setSuccessIsSet(true);
2216
        return result;
2217
      }
2218
    }
2219
 
13146 manish.sha 2220
    private static class getNewEmptyAwb<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNewEmptyAwb_args> {
2221
      public getNewEmptyAwb() {
2222
        super("getNewEmptyAwb");
2223
      }
2224
 
2225
      protected getNewEmptyAwb_args getEmptyArgsInstance() {
2226
        return new getNewEmptyAwb_args();
2227
      }
2228
 
2229
      protected getNewEmptyAwb_result getResult(I iface, getNewEmptyAwb_args args) throws org.apache.thrift.TException {
2230
        getNewEmptyAwb_result result = new getNewEmptyAwb_result();
2231
        try {
2232
          result.success = iface.getNewEmptyAwb(args.providerId, args.type, args.orderQuantity);
2233
        } catch (LogisticsServiceException se) {
2234
          result.se = se;
2235
        }
2236
        return result;
2237
      }
2238
    }
2239
 
2240
    private static class getProviderLimitDetailsForPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderLimitDetailsForPincode_args> {
2241
      public getProviderLimitDetailsForPincode() {
2242
        super("getProviderLimitDetailsForPincode");
2243
      }
2244
 
2245
      protected getProviderLimitDetailsForPincode_args getEmptyArgsInstance() {
2246
        return new getProviderLimitDetailsForPincode_args();
2247
      }
2248
 
2249
      protected getProviderLimitDetailsForPincode_result getResult(I iface, getProviderLimitDetailsForPincode_args args) throws org.apache.thrift.TException {
2250
        getProviderLimitDetailsForPincode_result result = new getProviderLimitDetailsForPincode_result();
2251
        try {
2252
          result.success = iface.getProviderLimitDetailsForPincode(args.providerId, args.pincode);
2253
        } catch (LogisticsServiceException se) {
2254
          result.se = se;
2255
        }
2256
        return result;
2257
      }
2258
    }
2259
 
19413 amit.gupta 2260
    private static class getLocationInfoMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLocationInfoMap_args> {
2261
      public getLocationInfoMap() {
2262
        super("getLocationInfoMap");
2263
      }
2264
 
2265
      protected getLocationInfoMap_args getEmptyArgsInstance() {
2266
        return new getLocationInfoMap_args();
2267
      }
2268
 
2269
      protected getLocationInfoMap_result getResult(I iface, getLocationInfoMap_args args) throws org.apache.thrift.TException {
2270
        getLocationInfoMap_result result = new getLocationInfoMap_result();
2271
        result.success = iface.getLocationInfoMap(args.destPincode, args.price);
2272
        return result;
2273
      }
2274
    }
2275
 
412 ashish 2276
  }
2277
 
3430 rajveer 2278
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
668 chandransh 2280
 
3430 rajveer 2281
    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 2282
 
3430 rajveer 2283
    private long providerId; // required
668 chandransh 2284
 
2285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2286
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2287
      PROVIDER_ID((short)1, "providerId");
2288
 
2289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2290
 
2291
      static {
2292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2293
          byName.put(field.getFieldName(), field);
2294
        }
2295
      }
2296
 
2297
      /**
2298
       * Find the _Fields constant that matches fieldId, or null if its not found.
2299
       */
2300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2301
        switch(fieldId) {
2302
          case 1: // PROVIDER_ID
2303
            return PROVIDER_ID;
2304
          default:
2305
            return null;
2306
        }
668 chandransh 2307
      }
2308
 
2309
      /**
2310
       * Find the _Fields constant that matches fieldId, throwing an exception
2311
       * if it is not found.
2312
       */
2313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2314
        _Fields fields = findByThriftId(fieldId);
2315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2316
        return fields;
2317
      }
2318
 
2319
      /**
2320
       * Find the _Fields constant that matches name, or null if its not found.
2321
       */
2322
      public static _Fields findByName(String name) {
2323
        return byName.get(name);
2324
      }
2325
 
2326
      private final short _thriftId;
2327
      private final String _fieldName;
2328
 
2329
      _Fields(short thriftId, String fieldName) {
2330
        _thriftId = thriftId;
2331
        _fieldName = fieldName;
2332
      }
2333
 
2334
      public short getThriftFieldId() {
2335
        return _thriftId;
2336
      }
2337
 
2338
      public String getFieldName() {
2339
        return _fieldName;
2340
      }
2341
    }
2342
 
2343
    // isset id assignments
2344
    private static final int __PROVIDERID_ISSET_ID = 0;
2345
    private BitSet __isset_bit_vector = new BitSet(1);
2346
 
3430 rajveer 2347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2348
    static {
3430 rajveer 2349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2350
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
668 chandransh 2354
    }
2355
 
2356
    public getProvider_args() {
2357
    }
2358
 
2359
    public getProvider_args(
2360
      long providerId)
2361
    {
2362
      this();
2363
      this.providerId = providerId;
2364
      setProviderIdIsSet(true);
2365
    }
2366
 
2367
    /**
2368
     * Performs a deep copy on <i>other</i>.
2369
     */
2370
    public getProvider_args(getProvider_args other) {
2371
      __isset_bit_vector.clear();
2372
      __isset_bit_vector.or(other.__isset_bit_vector);
2373
      this.providerId = other.providerId;
2374
    }
2375
 
2376
    public getProvider_args deepCopy() {
2377
      return new getProvider_args(this);
2378
    }
2379
 
3430 rajveer 2380
    @Override
2381
    public void clear() {
2382
      setProviderIdIsSet(false);
2383
      this.providerId = 0;
668 chandransh 2384
    }
2385
 
2386
    public long getProviderId() {
2387
      return this.providerId;
2388
    }
2389
 
3430 rajveer 2390
    public void setProviderId(long providerId) {
668 chandransh 2391
      this.providerId = providerId;
2392
      setProviderIdIsSet(true);
2393
    }
2394
 
2395
    public void unsetProviderId() {
2396
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
2397
    }
2398
 
3430 rajveer 2399
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
668 chandransh 2400
    public boolean isSetProviderId() {
2401
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
2402
    }
2403
 
2404
    public void setProviderIdIsSet(boolean value) {
2405
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
2406
    }
2407
 
2408
    public void setFieldValue(_Fields field, Object value) {
2409
      switch (field) {
2410
      case PROVIDER_ID:
2411
        if (value == null) {
2412
          unsetProviderId();
2413
        } else {
2414
          setProviderId((Long)value);
2415
        }
2416
        break;
2417
 
2418
      }
2419
    }
2420
 
2421
    public Object getFieldValue(_Fields field) {
2422
      switch (field) {
2423
      case PROVIDER_ID:
3430 rajveer 2424
        return Long.valueOf(getProviderId());
668 chandransh 2425
 
2426
      }
2427
      throw new IllegalStateException();
2428
    }
2429
 
3430 rajveer 2430
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2431
    public boolean isSet(_Fields field) {
2432
      if (field == null) {
2433
        throw new IllegalArgumentException();
2434
      }
668 chandransh 2435
 
2436
      switch (field) {
2437
      case PROVIDER_ID:
2438
        return isSetProviderId();
2439
      }
2440
      throw new IllegalStateException();
2441
    }
2442
 
2443
    @Override
2444
    public boolean equals(Object that) {
2445
      if (that == null)
2446
        return false;
2447
      if (that instanceof getProvider_args)
2448
        return this.equals((getProvider_args)that);
2449
      return false;
2450
    }
2451
 
2452
    public boolean equals(getProvider_args that) {
2453
      if (that == null)
2454
        return false;
2455
 
2456
      boolean this_present_providerId = true;
2457
      boolean that_present_providerId = true;
2458
      if (this_present_providerId || that_present_providerId) {
2459
        if (!(this_present_providerId && that_present_providerId))
2460
          return false;
2461
        if (this.providerId != that.providerId)
2462
          return false;
2463
      }
2464
 
2465
      return true;
2466
    }
2467
 
2468
    @Override
2469
    public int hashCode() {
2470
      return 0;
2471
    }
2472
 
2473
    public int compareTo(getProvider_args other) {
2474
      if (!getClass().equals(other.getClass())) {
2475
        return getClass().getName().compareTo(other.getClass().getName());
2476
      }
2477
 
2478
      int lastComparison = 0;
2479
      getProvider_args typedOther = (getProvider_args)other;
2480
 
3430 rajveer 2481
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
668 chandransh 2482
      if (lastComparison != 0) {
2483
        return lastComparison;
2484
      }
3430 rajveer 2485
      if (isSetProviderId()) {
2486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
2487
        if (lastComparison != 0) {
2488
          return lastComparison;
2489
        }
668 chandransh 2490
      }
2491
      return 0;
2492
    }
2493
 
3430 rajveer 2494
    public _Fields fieldForId(int fieldId) {
2495
      return _Fields.findByThriftId(fieldId);
2496
    }
2497
 
2498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2499
      org.apache.thrift.protocol.TField field;
668 chandransh 2500
      iprot.readStructBegin();
2501
      while (true)
2502
      {
2503
        field = iprot.readFieldBegin();
3430 rajveer 2504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2505
          break;
2506
        }
3430 rajveer 2507
        switch (field.id) {
2508
          case 1: // PROVIDER_ID
2509
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2510
              this.providerId = iprot.readI64();
2511
              setProviderIdIsSet(true);
2512
            } else { 
2513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2514
            }
2515
            break;
2516
          default:
2517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2518
        }
3430 rajveer 2519
        iprot.readFieldEnd();
668 chandransh 2520
      }
2521
      iprot.readStructEnd();
2522
      validate();
2523
    }
2524
 
3430 rajveer 2525
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2526
      validate();
2527
 
2528
      oprot.writeStructBegin(STRUCT_DESC);
2529
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
2530
      oprot.writeI64(this.providerId);
2531
      oprot.writeFieldEnd();
2532
      oprot.writeFieldStop();
2533
      oprot.writeStructEnd();
2534
    }
2535
 
2536
    @Override
2537
    public String toString() {
2538
      StringBuilder sb = new StringBuilder("getProvider_args(");
2539
      boolean first = true;
2540
 
2541
      sb.append("providerId:");
2542
      sb.append(this.providerId);
2543
      first = false;
2544
      sb.append(")");
2545
      return sb.toString();
2546
    }
2547
 
3430 rajveer 2548
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2549
      // check for required fields
2550
    }
2551
 
3430 rajveer 2552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2553
      try {
2554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2555
      } catch (org.apache.thrift.TException te) {
2556
        throw new java.io.IOException(te);
2557
      }
2558
    }
2559
 
2560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2561
      try {
2562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2563
      } catch (org.apache.thrift.TException te) {
2564
        throw new java.io.IOException(te);
2565
      }
2566
    }
2567
 
668 chandransh 2568
  }
2569
 
3430 rajveer 2570
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
2571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
668 chandransh 2572
 
3430 rajveer 2573
    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);
2574
    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 2575
 
3430 rajveer 2576
    private Provider success; // required
2577
    private LogisticsServiceException lse; // required
668 chandransh 2578
 
2579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
668 chandransh 2581
      SUCCESS((short)0, "success"),
2582
      LSE((short)1, "lse");
2583
 
2584
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2585
 
2586
      static {
2587
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2588
          byName.put(field.getFieldName(), field);
2589
        }
2590
      }
2591
 
2592
      /**
2593
       * Find the _Fields constant that matches fieldId, or null if its not found.
2594
       */
2595
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2596
        switch(fieldId) {
2597
          case 0: // SUCCESS
2598
            return SUCCESS;
2599
          case 1: // LSE
2600
            return LSE;
2601
          default:
2602
            return null;
2603
        }
668 chandransh 2604
      }
2605
 
2606
      /**
2607
       * Find the _Fields constant that matches fieldId, throwing an exception
2608
       * if it is not found.
2609
       */
2610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2611
        _Fields fields = findByThriftId(fieldId);
2612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2613
        return fields;
2614
      }
2615
 
2616
      /**
2617
       * Find the _Fields constant that matches name, or null if its not found.
2618
       */
2619
      public static _Fields findByName(String name) {
2620
        return byName.get(name);
2621
      }
2622
 
2623
      private final short _thriftId;
2624
      private final String _fieldName;
2625
 
2626
      _Fields(short thriftId, String fieldName) {
2627
        _thriftId = thriftId;
2628
        _fieldName = fieldName;
2629
      }
2630
 
2631
      public short getThriftFieldId() {
2632
        return _thriftId;
2633
      }
2634
 
2635
      public String getFieldName() {
2636
        return _fieldName;
2637
      }
2638
    }
2639
 
2640
    // isset id assignments
2641
 
3430 rajveer 2642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
668 chandransh 2643
    static {
3430 rajveer 2644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2645
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2646
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
2647
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
668 chandransh 2651
    }
2652
 
2653
    public getProvider_result() {
2654
    }
2655
 
2656
    public getProvider_result(
2657
      Provider success,
2658
      LogisticsServiceException lse)
2659
    {
2660
      this();
2661
      this.success = success;
2662
      this.lse = lse;
2663
    }
2664
 
2665
    /**
2666
     * Performs a deep copy on <i>other</i>.
2667
     */
2668
    public getProvider_result(getProvider_result other) {
2669
      if (other.isSetSuccess()) {
2670
        this.success = new Provider(other.success);
2671
      }
2672
      if (other.isSetLse()) {
2673
        this.lse = new LogisticsServiceException(other.lse);
2674
      }
2675
    }
2676
 
2677
    public getProvider_result deepCopy() {
2678
      return new getProvider_result(this);
2679
    }
2680
 
3430 rajveer 2681
    @Override
2682
    public void clear() {
2683
      this.success = null;
2684
      this.lse = null;
668 chandransh 2685
    }
2686
 
2687
    public Provider getSuccess() {
2688
      return this.success;
2689
    }
2690
 
3430 rajveer 2691
    public void setSuccess(Provider success) {
668 chandransh 2692
      this.success = success;
2693
    }
2694
 
2695
    public void unsetSuccess() {
2696
      this.success = null;
2697
    }
2698
 
3430 rajveer 2699
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
668 chandransh 2700
    public boolean isSetSuccess() {
2701
      return this.success != null;
2702
    }
2703
 
2704
    public void setSuccessIsSet(boolean value) {
2705
      if (!value) {
2706
        this.success = null;
2707
      }
2708
    }
2709
 
2710
    public LogisticsServiceException getLse() {
2711
      return this.lse;
2712
    }
2713
 
3430 rajveer 2714
    public void setLse(LogisticsServiceException lse) {
668 chandransh 2715
      this.lse = lse;
2716
    }
2717
 
2718
    public void unsetLse() {
2719
      this.lse = null;
2720
    }
2721
 
3430 rajveer 2722
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
668 chandransh 2723
    public boolean isSetLse() {
2724
      return this.lse != null;
2725
    }
2726
 
2727
    public void setLseIsSet(boolean value) {
2728
      if (!value) {
2729
        this.lse = null;
2730
      }
2731
    }
2732
 
2733
    public void setFieldValue(_Fields field, Object value) {
2734
      switch (field) {
2735
      case SUCCESS:
2736
        if (value == null) {
2737
          unsetSuccess();
2738
        } else {
2739
          setSuccess((Provider)value);
2740
        }
2741
        break;
2742
 
2743
      case LSE:
2744
        if (value == null) {
2745
          unsetLse();
2746
        } else {
2747
          setLse((LogisticsServiceException)value);
2748
        }
2749
        break;
2750
 
2751
      }
2752
    }
2753
 
2754
    public Object getFieldValue(_Fields field) {
2755
      switch (field) {
2756
      case SUCCESS:
2757
        return getSuccess();
2758
 
2759
      case LSE:
2760
        return getLse();
2761
 
2762
      }
2763
      throw new IllegalStateException();
2764
    }
2765
 
3430 rajveer 2766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2767
    public boolean isSet(_Fields field) {
2768
      if (field == null) {
2769
        throw new IllegalArgumentException();
2770
      }
668 chandransh 2771
 
2772
      switch (field) {
2773
      case SUCCESS:
2774
        return isSetSuccess();
2775
      case LSE:
2776
        return isSetLse();
2777
      }
2778
      throw new IllegalStateException();
2779
    }
2780
 
2781
    @Override
2782
    public boolean equals(Object that) {
2783
      if (that == null)
2784
        return false;
2785
      if (that instanceof getProvider_result)
2786
        return this.equals((getProvider_result)that);
2787
      return false;
2788
    }
2789
 
2790
    public boolean equals(getProvider_result that) {
2791
      if (that == null)
2792
        return false;
2793
 
2794
      boolean this_present_success = true && this.isSetSuccess();
2795
      boolean that_present_success = true && that.isSetSuccess();
2796
      if (this_present_success || that_present_success) {
2797
        if (!(this_present_success && that_present_success))
2798
          return false;
2799
        if (!this.success.equals(that.success))
2800
          return false;
2801
      }
2802
 
2803
      boolean this_present_lse = true && this.isSetLse();
2804
      boolean that_present_lse = true && that.isSetLse();
2805
      if (this_present_lse || that_present_lse) {
2806
        if (!(this_present_lse && that_present_lse))
2807
          return false;
2808
        if (!this.lse.equals(that.lse))
2809
          return false;
2810
      }
2811
 
2812
      return true;
2813
    }
2814
 
2815
    @Override
2816
    public int hashCode() {
2817
      return 0;
2818
    }
2819
 
3430 rajveer 2820
    public int compareTo(getProvider_result other) {
2821
      if (!getClass().equals(other.getClass())) {
2822
        return getClass().getName().compareTo(other.getClass().getName());
2823
      }
2824
 
2825
      int lastComparison = 0;
2826
      getProvider_result typedOther = (getProvider_result)other;
2827
 
2828
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2829
      if (lastComparison != 0) {
2830
        return lastComparison;
2831
      }
2832
      if (isSetSuccess()) {
2833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2834
        if (lastComparison != 0) {
2835
          return lastComparison;
2836
        }
2837
      }
2838
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
2839
      if (lastComparison != 0) {
2840
        return lastComparison;
2841
      }
2842
      if (isSetLse()) {
2843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
2844
        if (lastComparison != 0) {
2845
          return lastComparison;
2846
        }
2847
      }
2848
      return 0;
2849
    }
2850
 
2851
    public _Fields fieldForId(int fieldId) {
2852
      return _Fields.findByThriftId(fieldId);
2853
    }
2854
 
2855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2856
      org.apache.thrift.protocol.TField field;
668 chandransh 2857
      iprot.readStructBegin();
2858
      while (true)
2859
      {
2860
        field = iprot.readFieldBegin();
3430 rajveer 2861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
668 chandransh 2862
          break;
2863
        }
3430 rajveer 2864
        switch (field.id) {
2865
          case 0: // SUCCESS
2866
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2867
              this.success = new Provider();
2868
              this.success.read(iprot);
2869
            } else { 
2870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2871
            }
2872
            break;
2873
          case 1: // LSE
2874
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2875
              this.lse = new LogisticsServiceException();
2876
              this.lse.read(iprot);
2877
            } else { 
2878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2879
            }
2880
            break;
2881
          default:
2882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
668 chandransh 2883
        }
3430 rajveer 2884
        iprot.readFieldEnd();
668 chandransh 2885
      }
2886
      iprot.readStructEnd();
2887
      validate();
2888
    }
2889
 
3430 rajveer 2890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 chandransh 2891
      oprot.writeStructBegin(STRUCT_DESC);
2892
 
2893
      if (this.isSetSuccess()) {
2894
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2895
        this.success.write(oprot);
2896
        oprot.writeFieldEnd();
2897
      } else if (this.isSetLse()) {
2898
        oprot.writeFieldBegin(LSE_FIELD_DESC);
2899
        this.lse.write(oprot);
2900
        oprot.writeFieldEnd();
2901
      }
2902
      oprot.writeFieldStop();
2903
      oprot.writeStructEnd();
2904
    }
2905
 
2906
    @Override
2907
    public String toString() {
2908
      StringBuilder sb = new StringBuilder("getProvider_result(");
2909
      boolean first = true;
2910
 
2911
      sb.append("success:");
2912
      if (this.success == null) {
2913
        sb.append("null");
2914
      } else {
2915
        sb.append(this.success);
2916
      }
2917
      first = false;
2918
      if (!first) sb.append(", ");
2919
      sb.append("lse:");
2920
      if (this.lse == null) {
2921
        sb.append("null");
2922
      } else {
2923
        sb.append(this.lse);
2924
      }
2925
      first = false;
2926
      sb.append(")");
2927
      return sb.toString();
2928
    }
2929
 
3430 rajveer 2930
    public void validate() throws org.apache.thrift.TException {
668 chandransh 2931
      // check for required fields
2932
    }
2933
 
3430 rajveer 2934
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2935
      try {
2936
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2937
      } catch (org.apache.thrift.TException te) {
2938
        throw new java.io.IOException(te);
2939
      }
2940
    }
2941
 
2942
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2943
      try {
2944
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2945
      } catch (org.apache.thrift.TException te) {
2946
        throw new java.io.IOException(te);
2947
      }
2948
    }
2949
 
668 chandransh 2950
  }
2951
 
3430 rajveer 2952
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
2953
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
674 chandransh 2954
 
2955
 
2956
 
2957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 2959
;
2960
 
2961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2962
 
2963
      static {
2964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2965
          byName.put(field.getFieldName(), field);
2966
        }
2967
      }
2968
 
2969
      /**
2970
       * Find the _Fields constant that matches fieldId, or null if its not found.
2971
       */
2972
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2973
        switch(fieldId) {
2974
          default:
2975
            return null;
2976
        }
674 chandransh 2977
      }
2978
 
2979
      /**
2980
       * Find the _Fields constant that matches fieldId, throwing an exception
2981
       * if it is not found.
2982
       */
2983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2984
        _Fields fields = findByThriftId(fieldId);
2985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2986
        return fields;
2987
      }
2988
 
2989
      /**
2990
       * Find the _Fields constant that matches name, or null if its not found.
2991
       */
2992
      public static _Fields findByName(String name) {
2993
        return byName.get(name);
2994
      }
2995
 
2996
      private final short _thriftId;
2997
      private final String _fieldName;
2998
 
2999
      _Fields(short thriftId, String fieldName) {
3000
        _thriftId = thriftId;
3001
        _fieldName = fieldName;
3002
      }
3003
 
3004
      public short getThriftFieldId() {
3005
        return _thriftId;
3006
      }
3007
 
3008
      public String getFieldName() {
3009
        return _fieldName;
3010
      }
3011
    }
3430 rajveer 3012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3013
    static {
3430 rajveer 3014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3015
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3016
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
674 chandransh 3017
    }
3018
 
3019
    public getAllProviders_args() {
3020
    }
3021
 
3022
    /**
3023
     * Performs a deep copy on <i>other</i>.
3024
     */
3025
    public getAllProviders_args(getAllProviders_args other) {
3026
    }
3027
 
3028
    public getAllProviders_args deepCopy() {
3029
      return new getAllProviders_args(this);
3030
    }
3031
 
3430 rajveer 3032
    @Override
3033
    public void clear() {
674 chandransh 3034
    }
3035
 
3036
    public void setFieldValue(_Fields field, Object value) {
3037
      switch (field) {
3038
      }
3039
    }
3040
 
3041
    public Object getFieldValue(_Fields field) {
3042
      switch (field) {
3043
      }
3044
      throw new IllegalStateException();
3045
    }
3046
 
3430 rajveer 3047
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3048
    public boolean isSet(_Fields field) {
3049
      if (field == null) {
3050
        throw new IllegalArgumentException();
3051
      }
674 chandransh 3052
 
3053
      switch (field) {
3054
      }
3055
      throw new IllegalStateException();
3056
    }
3057
 
3058
    @Override
3059
    public boolean equals(Object that) {
3060
      if (that == null)
3061
        return false;
3062
      if (that instanceof getAllProviders_args)
3063
        return this.equals((getAllProviders_args)that);
3064
      return false;
3065
    }
3066
 
3067
    public boolean equals(getAllProviders_args that) {
3068
      if (that == null)
3069
        return false;
3070
 
3071
      return true;
3072
    }
3073
 
3074
    @Override
3075
    public int hashCode() {
3076
      return 0;
3077
    }
3078
 
3079
    public int compareTo(getAllProviders_args other) {
3080
      if (!getClass().equals(other.getClass())) {
3081
        return getClass().getName().compareTo(other.getClass().getName());
3082
      }
3083
 
3084
      int lastComparison = 0;
3085
      getAllProviders_args typedOther = (getAllProviders_args)other;
3086
 
3087
      return 0;
3088
    }
3089
 
3430 rajveer 3090
    public _Fields fieldForId(int fieldId) {
3091
      return _Fields.findByThriftId(fieldId);
3092
    }
3093
 
3094
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3095
      org.apache.thrift.protocol.TField field;
674 chandransh 3096
      iprot.readStructBegin();
3097
      while (true)
3098
      {
3099
        field = iprot.readFieldBegin();
3430 rajveer 3100
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3101
          break;
3102
        }
3430 rajveer 3103
        switch (field.id) {
3104
          default:
3105
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3106
        }
3430 rajveer 3107
        iprot.readFieldEnd();
674 chandransh 3108
      }
3109
      iprot.readStructEnd();
3110
      validate();
3111
    }
3112
 
3430 rajveer 3113
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3114
      validate();
3115
 
3116
      oprot.writeStructBegin(STRUCT_DESC);
3117
      oprot.writeFieldStop();
3118
      oprot.writeStructEnd();
3119
    }
3120
 
3121
    @Override
3122
    public String toString() {
3123
      StringBuilder sb = new StringBuilder("getAllProviders_args(");
3124
      boolean first = true;
3125
 
3126
      sb.append(")");
3127
      return sb.toString();
3128
    }
3129
 
3430 rajveer 3130
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3131
      // check for required fields
3132
    }
3133
 
3430 rajveer 3134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3135
      try {
3136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3137
      } catch (org.apache.thrift.TException te) {
3138
        throw new java.io.IOException(te);
3139
      }
3140
    }
3141
 
3142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3143
      try {
3144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3145
      } catch (org.apache.thrift.TException te) {
3146
        throw new java.io.IOException(te);
3147
      }
3148
    }
3149
 
674 chandransh 3150
  }
3151
 
3430 rajveer 3152
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
3153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
674 chandransh 3154
 
3430 rajveer 3155
    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);
3156
    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 3157
 
3430 rajveer 3158
    private List<Provider> success; // required
3159
    private LogisticsServiceException lse; // required
674 chandransh 3160
 
3161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
674 chandransh 3163
      SUCCESS((short)0, "success"),
3164
      LSE((short)1, "lse");
3165
 
3166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3167
 
3168
      static {
3169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3170
          byName.put(field.getFieldName(), field);
3171
        }
3172
      }
3173
 
3174
      /**
3175
       * Find the _Fields constant that matches fieldId, or null if its not found.
3176
       */
3177
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3178
        switch(fieldId) {
3179
          case 0: // SUCCESS
3180
            return SUCCESS;
3181
          case 1: // LSE
3182
            return LSE;
3183
          default:
3184
            return null;
3185
        }
674 chandransh 3186
      }
3187
 
3188
      /**
3189
       * Find the _Fields constant that matches fieldId, throwing an exception
3190
       * if it is not found.
3191
       */
3192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3193
        _Fields fields = findByThriftId(fieldId);
3194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3195
        return fields;
3196
      }
3197
 
3198
      /**
3199
       * Find the _Fields constant that matches name, or null if its not found.
3200
       */
3201
      public static _Fields findByName(String name) {
3202
        return byName.get(name);
3203
      }
3204
 
3205
      private final short _thriftId;
3206
      private final String _fieldName;
3207
 
3208
      _Fields(short thriftId, String fieldName) {
3209
        _thriftId = thriftId;
3210
        _fieldName = fieldName;
3211
      }
3212
 
3213
      public short getThriftFieldId() {
3214
        return _thriftId;
3215
      }
3216
 
3217
      public String getFieldName() {
3218
        return _fieldName;
3219
      }
3220
    }
3221
 
3222
    // isset id assignments
3223
 
3430 rajveer 3224
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
674 chandransh 3225
    static {
3430 rajveer 3226
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3227
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3228
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3229
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
3230
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3232
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3233
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
674 chandransh 3234
    }
3235
 
3236
    public getAllProviders_result() {
3237
    }
3238
 
3239
    public getAllProviders_result(
3240
      List<Provider> success,
3241
      LogisticsServiceException lse)
3242
    {
3243
      this();
3244
      this.success = success;
3245
      this.lse = lse;
3246
    }
3247
 
3248
    /**
3249
     * Performs a deep copy on <i>other</i>.
3250
     */
3251
    public getAllProviders_result(getAllProviders_result other) {
3252
      if (other.isSetSuccess()) {
3253
        List<Provider> __this__success = new ArrayList<Provider>();
3254
        for (Provider other_element : other.success) {
3255
          __this__success.add(new Provider(other_element));
3256
        }
3257
        this.success = __this__success;
3258
      }
3259
      if (other.isSetLse()) {
3260
        this.lse = new LogisticsServiceException(other.lse);
3261
      }
3262
    }
3263
 
3264
    public getAllProviders_result deepCopy() {
3265
      return new getAllProviders_result(this);
3266
    }
3267
 
3430 rajveer 3268
    @Override
3269
    public void clear() {
3270
      this.success = null;
3271
      this.lse = null;
674 chandransh 3272
    }
3273
 
3274
    public int getSuccessSize() {
3275
      return (this.success == null) ? 0 : this.success.size();
3276
    }
3277
 
3278
    public java.util.Iterator<Provider> getSuccessIterator() {
3279
      return (this.success == null) ? null : this.success.iterator();
3280
    }
3281
 
3282
    public void addToSuccess(Provider elem) {
3283
      if (this.success == null) {
3284
        this.success = new ArrayList<Provider>();
3285
      }
3286
      this.success.add(elem);
3287
    }
3288
 
3289
    public List<Provider> getSuccess() {
3290
      return this.success;
3291
    }
3292
 
3430 rajveer 3293
    public void setSuccess(List<Provider> success) {
674 chandransh 3294
      this.success = success;
3295
    }
3296
 
3297
    public void unsetSuccess() {
3298
      this.success = null;
3299
    }
3300
 
3430 rajveer 3301
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
674 chandransh 3302
    public boolean isSetSuccess() {
3303
      return this.success != null;
3304
    }
3305
 
3306
    public void setSuccessIsSet(boolean value) {
3307
      if (!value) {
3308
        this.success = null;
3309
      }
3310
    }
3311
 
3312
    public LogisticsServiceException getLse() {
3313
      return this.lse;
3314
    }
3315
 
3430 rajveer 3316
    public void setLse(LogisticsServiceException lse) {
674 chandransh 3317
      this.lse = lse;
3318
    }
3319
 
3320
    public void unsetLse() {
3321
      this.lse = null;
3322
    }
3323
 
3430 rajveer 3324
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
674 chandransh 3325
    public boolean isSetLse() {
3326
      return this.lse != null;
3327
    }
3328
 
3329
    public void setLseIsSet(boolean value) {
3330
      if (!value) {
3331
        this.lse = null;
3332
      }
3333
    }
3334
 
3335
    public void setFieldValue(_Fields field, Object value) {
3336
      switch (field) {
3337
      case SUCCESS:
3338
        if (value == null) {
3339
          unsetSuccess();
3340
        } else {
3341
          setSuccess((List<Provider>)value);
3342
        }
3343
        break;
3344
 
3345
      case LSE:
3346
        if (value == null) {
3347
          unsetLse();
3348
        } else {
3349
          setLse((LogisticsServiceException)value);
3350
        }
3351
        break;
3352
 
3353
      }
3354
    }
3355
 
3356
    public Object getFieldValue(_Fields field) {
3357
      switch (field) {
3358
      case SUCCESS:
3359
        return getSuccess();
3360
 
3361
      case LSE:
3362
        return getLse();
3363
 
3364
      }
3365
      throw new IllegalStateException();
3366
    }
3367
 
3430 rajveer 3368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3369
    public boolean isSet(_Fields field) {
3370
      if (field == null) {
3371
        throw new IllegalArgumentException();
3372
      }
674 chandransh 3373
 
3374
      switch (field) {
3375
      case SUCCESS:
3376
        return isSetSuccess();
3377
      case LSE:
3378
        return isSetLse();
3379
      }
3380
      throw new IllegalStateException();
3381
    }
3382
 
3383
    @Override
3384
    public boolean equals(Object that) {
3385
      if (that == null)
3386
        return false;
3387
      if (that instanceof getAllProviders_result)
3388
        return this.equals((getAllProviders_result)that);
3389
      return false;
3390
    }
3391
 
3392
    public boolean equals(getAllProviders_result that) {
3393
      if (that == null)
3394
        return false;
3395
 
3396
      boolean this_present_success = true && this.isSetSuccess();
3397
      boolean that_present_success = true && that.isSetSuccess();
3398
      if (this_present_success || that_present_success) {
3399
        if (!(this_present_success && that_present_success))
3400
          return false;
3401
        if (!this.success.equals(that.success))
3402
          return false;
3403
      }
3404
 
3405
      boolean this_present_lse = true && this.isSetLse();
3406
      boolean that_present_lse = true && that.isSetLse();
3407
      if (this_present_lse || that_present_lse) {
3408
        if (!(this_present_lse && that_present_lse))
3409
          return false;
3410
        if (!this.lse.equals(that.lse))
3411
          return false;
3412
      }
3413
 
3414
      return true;
3415
    }
3416
 
3417
    @Override
3418
    public int hashCode() {
3419
      return 0;
3420
    }
3421
 
3430 rajveer 3422
    public int compareTo(getAllProviders_result other) {
3423
      if (!getClass().equals(other.getClass())) {
3424
        return getClass().getName().compareTo(other.getClass().getName());
3425
      }
3426
 
3427
      int lastComparison = 0;
3428
      getAllProviders_result typedOther = (getAllProviders_result)other;
3429
 
3430
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3431
      if (lastComparison != 0) {
3432
        return lastComparison;
3433
      }
3434
      if (isSetSuccess()) {
3435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3436
        if (lastComparison != 0) {
3437
          return lastComparison;
3438
        }
3439
      }
3440
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
3441
      if (lastComparison != 0) {
3442
        return lastComparison;
3443
      }
3444
      if (isSetLse()) {
3445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
3446
        if (lastComparison != 0) {
3447
          return lastComparison;
3448
        }
3449
      }
3450
      return 0;
3451
    }
3452
 
3453
    public _Fields fieldForId(int fieldId) {
3454
      return _Fields.findByThriftId(fieldId);
3455
    }
3456
 
3457
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3458
      org.apache.thrift.protocol.TField field;
674 chandransh 3459
      iprot.readStructBegin();
3460
      while (true)
3461
      {
3462
        field = iprot.readFieldBegin();
3430 rajveer 3463
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
674 chandransh 3464
          break;
3465
        }
3430 rajveer 3466
        switch (field.id) {
3467
          case 0: // SUCCESS
3468
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3469
              {
7792 anupam.sin 3470
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
3471
                this.success = new ArrayList<Provider>(_list4.size);
3472
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
674 chandransh 3473
                {
7792 anupam.sin 3474
                  Provider _elem6; // required
3475
                  _elem6 = new Provider();
3476
                  _elem6.read(iprot);
3477
                  this.success.add(_elem6);
674 chandransh 3478
                }
3430 rajveer 3479
                iprot.readListEnd();
674 chandransh 3480
              }
3430 rajveer 3481
            } else { 
3482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3483
            }
3484
            break;
3485
          case 1: // LSE
3486
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3487
              this.lse = new LogisticsServiceException();
3488
              this.lse.read(iprot);
3489
            } else { 
3490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3491
            }
3492
            break;
3493
          default:
3494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674 chandransh 3495
        }
3430 rajveer 3496
        iprot.readFieldEnd();
674 chandransh 3497
      }
3498
      iprot.readStructEnd();
3499
      validate();
3500
    }
3501
 
3430 rajveer 3502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
674 chandransh 3503
      oprot.writeStructBegin(STRUCT_DESC);
3504
 
3505
      if (this.isSetSuccess()) {
3506
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3507
        {
3430 rajveer 3508
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 3509
          for (Provider _iter7 : this.success)
674 chandransh 3510
          {
7792 anupam.sin 3511
            _iter7.write(oprot);
674 chandransh 3512
          }
3513
          oprot.writeListEnd();
3514
        }
3515
        oprot.writeFieldEnd();
3516
      } else if (this.isSetLse()) {
3517
        oprot.writeFieldBegin(LSE_FIELD_DESC);
3518
        this.lse.write(oprot);
3519
        oprot.writeFieldEnd();
3520
      }
3521
      oprot.writeFieldStop();
3522
      oprot.writeStructEnd();
3523
    }
3524
 
3525
    @Override
3526
    public String toString() {
3527
      StringBuilder sb = new StringBuilder("getAllProviders_result(");
3528
      boolean first = true;
3529
 
3530
      sb.append("success:");
3531
      if (this.success == null) {
3532
        sb.append("null");
3533
      } else {
3534
        sb.append(this.success);
3535
      }
3536
      first = false;
3537
      if (!first) sb.append(", ");
3538
      sb.append("lse:");
3539
      if (this.lse == null) {
3540
        sb.append("null");
3541
      } else {
3542
        sb.append(this.lse);
3543
      }
3544
      first = false;
3545
      sb.append(")");
3546
      return sb.toString();
3547
    }
3548
 
3430 rajveer 3549
    public void validate() throws org.apache.thrift.TException {
674 chandransh 3550
      // check for required fields
3551
    }
3552
 
3430 rajveer 3553
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3554
      try {
3555
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3556
      } catch (org.apache.thrift.TException te) {
3557
        throw new java.io.IOException(te);
3558
      }
3559
    }
3560
 
3561
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3562
      try {
3563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3564
      } catch (org.apache.thrift.TException te) {
3565
        throw new java.io.IOException(te);
3566
      }
3567
    }
3568
 
674 chandransh 3569
  }
3570
 
3430 rajveer 3571
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
3572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
471 rajveer 3573
 
3430 rajveer 3574
    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);
3575
    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 3576
    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 3577
 
3430 rajveer 3578
    private long itemId; // required
3579
    private String destination_pin; // required
4630 mandeep.dh 3580
    private DeliveryType type; // required
471 rajveer 3581
 
3582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 3584
      ITEM_ID((short)1, "itemId"),
4630 mandeep.dh 3585
      DESTINATION_PIN((short)2, "destination_pin"),
3586
      /**
3587
       * 
3588
       * @see DeliveryType
3589
       */
3590
      TYPE((short)3, "type");
471 rajveer 3591
 
3592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3593
 
3594
      static {
3595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3596
          byName.put(field.getFieldName(), field);
3597
        }
3598
      }
3599
 
3600
      /**
3601
       * Find the _Fields constant that matches fieldId, or null if its not found.
3602
       */
3603
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3604
        switch(fieldId) {
3605
          case 1: // ITEM_ID
3606
            return ITEM_ID;
3607
          case 2: // DESTINATION_PIN
3608
            return DESTINATION_PIN;
4630 mandeep.dh 3609
          case 3: // TYPE
3610
            return TYPE;
3430 rajveer 3611
          default:
3612
            return null;
3613
        }
471 rajveer 3614
      }
3615
 
3616
      /**
3617
       * Find the _Fields constant that matches fieldId, throwing an exception
3618
       * if it is not found.
3619
       */
3620
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3621
        _Fields fields = findByThriftId(fieldId);
3622
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3623
        return fields;
3624
      }
3625
 
3626
      /**
3627
       * Find the _Fields constant that matches name, or null if its not found.
3628
       */
3629
      public static _Fields findByName(String name) {
3630
        return byName.get(name);
3631
      }
3632
 
3633
      private final short _thriftId;
3634
      private final String _fieldName;
3635
 
3636
      _Fields(short thriftId, String fieldName) {
3637
        _thriftId = thriftId;
3638
        _fieldName = fieldName;
3639
      }
3640
 
3641
      public short getThriftFieldId() {
3642
        return _thriftId;
3643
      }
3644
 
3645
      public String getFieldName() {
3646
        return _fieldName;
3647
      }
3648
    }
3649
 
3650
    // isset id assignments
3651
    private static final int __ITEMID_ISSET_ID = 0;
648 chandransh 3652
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 3653
 
3430 rajveer 3654
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 3655
    static {
3430 rajveer 3656
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3657
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3658
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3659
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3660
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4630 mandeep.dh 3661
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3662
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 3663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
471 rajveer 3665
    }
3666
 
3667
    public getLogisticsEstimation_args() {
3668
    }
3669
 
3670
    public getLogisticsEstimation_args(
3671
      long itemId,
4630 mandeep.dh 3672
      String destination_pin,
3673
      DeliveryType type)
471 rajveer 3674
    {
3675
      this();
3676
      this.itemId = itemId;
3677
      setItemIdIsSet(true);
3678
      this.destination_pin = destination_pin;
4630 mandeep.dh 3679
      this.type = type;
471 rajveer 3680
    }
3681
 
3682
    /**
3683
     * Performs a deep copy on <i>other</i>.
3684
     */
3685
    public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
3686
      __isset_bit_vector.clear();
3687
      __isset_bit_vector.or(other.__isset_bit_vector);
3688
      this.itemId = other.itemId;
3689
      if (other.isSetDestination_pin()) {
3690
        this.destination_pin = other.destination_pin;
3691
      }
4630 mandeep.dh 3692
      if (other.isSetType()) {
3693
        this.type = other.type;
3694
      }
471 rajveer 3695
    }
3696
 
3697
    public getLogisticsEstimation_args deepCopy() {
3698
      return new getLogisticsEstimation_args(this);
3699
    }
3700
 
3430 rajveer 3701
    @Override
3702
    public void clear() {
3703
      setItemIdIsSet(false);
3704
      this.itemId = 0;
3705
      this.destination_pin = null;
4630 mandeep.dh 3706
      this.type = null;
471 rajveer 3707
    }
3708
 
3709
    public long getItemId() {
3710
      return this.itemId;
3711
    }
3712
 
3430 rajveer 3713
    public void setItemId(long itemId) {
471 rajveer 3714
      this.itemId = itemId;
3715
      setItemIdIsSet(true);
3716
    }
3717
 
3718
    public void unsetItemId() {
3719
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
3720
    }
3721
 
3430 rajveer 3722
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
471 rajveer 3723
    public boolean isSetItemId() {
3724
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
3725
    }
3726
 
3727
    public void setItemIdIsSet(boolean value) {
3728
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
3729
    }
3730
 
3731
    public String getDestination_pin() {
3732
      return this.destination_pin;
3733
    }
3734
 
3430 rajveer 3735
    public void setDestination_pin(String destination_pin) {
471 rajveer 3736
      this.destination_pin = destination_pin;
3737
    }
3738
 
3739
    public void unsetDestination_pin() {
3740
      this.destination_pin = null;
3741
    }
3742
 
3430 rajveer 3743
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
471 rajveer 3744
    public boolean isSetDestination_pin() {
3745
      return this.destination_pin != null;
3746
    }
3747
 
3748
    public void setDestination_pinIsSet(boolean value) {
3749
      if (!value) {
3750
        this.destination_pin = null;
3751
      }
3752
    }
3753
 
4630 mandeep.dh 3754
    /**
3755
     * 
3756
     * @see DeliveryType
3757
     */
3758
    public DeliveryType getType() {
3759
      return this.type;
3760
    }
3761
 
3762
    /**
3763
     * 
3764
     * @see DeliveryType
3765
     */
3766
    public void setType(DeliveryType type) {
3767
      this.type = type;
3768
    }
3769
 
3770
    public void unsetType() {
3771
      this.type = null;
3772
    }
3773
 
3774
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3775
    public boolean isSetType() {
3776
      return this.type != null;
3777
    }
3778
 
3779
    public void setTypeIsSet(boolean value) {
3780
      if (!value) {
3781
        this.type = null;
3782
      }
3783
    }
3784
 
471 rajveer 3785
    public void setFieldValue(_Fields field, Object value) {
3786
      switch (field) {
3787
      case ITEM_ID:
3788
        if (value == null) {
3789
          unsetItemId();
3790
        } else {
3791
          setItemId((Long)value);
3792
        }
3793
        break;
3794
 
3795
      case DESTINATION_PIN:
3796
        if (value == null) {
3797
          unsetDestination_pin();
3798
        } else {
3799
          setDestination_pin((String)value);
3800
        }
3801
        break;
3802
 
4630 mandeep.dh 3803
      case TYPE:
3804
        if (value == null) {
3805
          unsetType();
3806
        } else {
3807
          setType((DeliveryType)value);
3808
        }
3809
        break;
3810
 
471 rajveer 3811
      }
3812
    }
3813
 
3814
    public Object getFieldValue(_Fields field) {
3815
      switch (field) {
3816
      case ITEM_ID:
3430 rajveer 3817
        return Long.valueOf(getItemId());
471 rajveer 3818
 
3819
      case DESTINATION_PIN:
3820
        return getDestination_pin();
3821
 
4630 mandeep.dh 3822
      case TYPE:
3823
        return getType();
3824
 
471 rajveer 3825
      }
3826
      throw new IllegalStateException();
3827
    }
3828
 
3430 rajveer 3829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3830
    public boolean isSet(_Fields field) {
3831
      if (field == null) {
3832
        throw new IllegalArgumentException();
3833
      }
471 rajveer 3834
 
3835
      switch (field) {
3836
      case ITEM_ID:
3837
        return isSetItemId();
3838
      case DESTINATION_PIN:
3839
        return isSetDestination_pin();
4630 mandeep.dh 3840
      case TYPE:
3841
        return isSetType();
471 rajveer 3842
      }
3843
      throw new IllegalStateException();
3844
    }
3845
 
3846
    @Override
3847
    public boolean equals(Object that) {
3848
      if (that == null)
3849
        return false;
3850
      if (that instanceof getLogisticsEstimation_args)
3851
        return this.equals((getLogisticsEstimation_args)that);
3852
      return false;
3853
    }
3854
 
3855
    public boolean equals(getLogisticsEstimation_args that) {
3856
      if (that == null)
3857
        return false;
3858
 
3859
      boolean this_present_itemId = true;
3860
      boolean that_present_itemId = true;
3861
      if (this_present_itemId || that_present_itemId) {
3862
        if (!(this_present_itemId && that_present_itemId))
3863
          return false;
3864
        if (this.itemId != that.itemId)
3865
          return false;
3866
      }
3867
 
3868
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
3869
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
3870
      if (this_present_destination_pin || that_present_destination_pin) {
3871
        if (!(this_present_destination_pin && that_present_destination_pin))
3872
          return false;
3873
        if (!this.destination_pin.equals(that.destination_pin))
3874
          return false;
3875
      }
3876
 
4630 mandeep.dh 3877
      boolean this_present_type = true && this.isSetType();
3878
      boolean that_present_type = true && that.isSetType();
3879
      if (this_present_type || that_present_type) {
3880
        if (!(this_present_type && that_present_type))
3881
          return false;
3882
        if (!this.type.equals(that.type))
3883
          return false;
3884
      }
3885
 
471 rajveer 3886
      return true;
3887
    }
3888
 
3889
    @Override
3890
    public int hashCode() {
3891
      return 0;
3892
    }
3893
 
3894
    public int compareTo(getLogisticsEstimation_args other) {
3895
      if (!getClass().equals(other.getClass())) {
3896
        return getClass().getName().compareTo(other.getClass().getName());
3897
      }
3898
 
3899
      int lastComparison = 0;
3900
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
3901
 
3430 rajveer 3902
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
471 rajveer 3903
      if (lastComparison != 0) {
3904
        return lastComparison;
3905
      }
3430 rajveer 3906
      if (isSetItemId()) {
3907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3908
        if (lastComparison != 0) {
3909
          return lastComparison;
3910
        }
471 rajveer 3911
      }
3430 rajveer 3912
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
471 rajveer 3913
      if (lastComparison != 0) {
3914
        return lastComparison;
3915
      }
3430 rajveer 3916
      if (isSetDestination_pin()) {
3917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
3918
        if (lastComparison != 0) {
3919
          return lastComparison;
3920
        }
471 rajveer 3921
      }
4630 mandeep.dh 3922
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3923
      if (lastComparison != 0) {
3924
        return lastComparison;
3925
      }
3926
      if (isSetType()) {
3927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3928
        if (lastComparison != 0) {
3929
          return lastComparison;
3930
        }
3931
      }
471 rajveer 3932
      return 0;
3933
    }
3934
 
3430 rajveer 3935
    public _Fields fieldForId(int fieldId) {
3936
      return _Fields.findByThriftId(fieldId);
3937
    }
3938
 
3939
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3940
      org.apache.thrift.protocol.TField field;
471 rajveer 3941
      iprot.readStructBegin();
3942
      while (true)
3943
      {
3944
        field = iprot.readFieldBegin();
3430 rajveer 3945
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 3946
          break;
3947
        }
3430 rajveer 3948
        switch (field.id) {
3949
          case 1: // ITEM_ID
3950
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3951
              this.itemId = iprot.readI64();
3952
              setItemIdIsSet(true);
3953
            } else { 
3954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3955
            }
3956
            break;
3957
          case 2: // DESTINATION_PIN
3958
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3959
              this.destination_pin = iprot.readString();
3960
            } else { 
3961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3962
            }
3963
            break;
4630 mandeep.dh 3964
          case 3: // TYPE
3965
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3966
              this.type = DeliveryType.findByValue(iprot.readI32());
3967
            } else { 
3968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3969
            }
3970
            break;
3430 rajveer 3971
          default:
3972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 3973
        }
3430 rajveer 3974
        iprot.readFieldEnd();
471 rajveer 3975
      }
3976
      iprot.readStructEnd();
3977
      validate();
3978
    }
3979
 
3430 rajveer 3980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 3981
      validate();
3982
 
3983
      oprot.writeStructBegin(STRUCT_DESC);
3984
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
3985
      oprot.writeI64(this.itemId);
3986
      oprot.writeFieldEnd();
3987
      if (this.destination_pin != null) {
3988
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
3989
        oprot.writeString(this.destination_pin);
3990
        oprot.writeFieldEnd();
3991
      }
4630 mandeep.dh 3992
      if (this.type != null) {
3993
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
3994
        oprot.writeI32(this.type.getValue());
3995
        oprot.writeFieldEnd();
3996
      }
471 rajveer 3997
      oprot.writeFieldStop();
3998
      oprot.writeStructEnd();
3999
    }
4000
 
4001
    @Override
4002
    public String toString() {
4003
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
4004
      boolean first = true;
4005
 
4006
      sb.append("itemId:");
4007
      sb.append(this.itemId);
4008
      first = false;
4009
      if (!first) sb.append(", ");
4010
      sb.append("destination_pin:");
4011
      if (this.destination_pin == null) {
4012
        sb.append("null");
4013
      } else {
4014
        sb.append(this.destination_pin);
4015
      }
4016
      first = false;
4630 mandeep.dh 4017
      if (!first) sb.append(", ");
4018
      sb.append("type:");
4019
      if (this.type == null) {
4020
        sb.append("null");
4021
      } else {
4022
        sb.append(this.type);
4023
      }
4024
      first = false;
471 rajveer 4025
      sb.append(")");
4026
      return sb.toString();
4027
    }
4028
 
3430 rajveer 4029
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4030
      // check for required fields
4031
    }
4032
 
3430 rajveer 4033
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4034
      try {
4035
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4036
      } catch (org.apache.thrift.TException te) {
4037
        throw new java.io.IOException(te);
4038
      }
4039
    }
4040
 
4041
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4042
      try {
4043
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4044
      } catch (org.apache.thrift.TException te) {
4045
        throw new java.io.IOException(te);
4046
      }
4047
    }
4048
 
471 rajveer 4049
  }
4050
 
3430 rajveer 4051
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
4052
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
471 rajveer 4053
 
3430 rajveer 4054
    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);
4055
    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 4056
 
3430 rajveer 4057
    private LogisticsInfo success; // required
4058
    private LogisticsServiceException se; // required
471 rajveer 4059
 
4060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4061
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
471 rajveer 4062
      SUCCESS((short)0, "success"),
4063
      SE((short)1, "se");
4064
 
4065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4066
 
4067
      static {
4068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4069
          byName.put(field.getFieldName(), field);
4070
        }
4071
      }
4072
 
4073
      /**
4074
       * Find the _Fields constant that matches fieldId, or null if its not found.
4075
       */
4076
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4077
        switch(fieldId) {
4078
          case 0: // SUCCESS
4079
            return SUCCESS;
4080
          case 1: // SE
4081
            return SE;
4082
          default:
4083
            return null;
4084
        }
471 rajveer 4085
      }
4086
 
4087
      /**
4088
       * Find the _Fields constant that matches fieldId, throwing an exception
4089
       * if it is not found.
4090
       */
4091
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4092
        _Fields fields = findByThriftId(fieldId);
4093
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4094
        return fields;
4095
      }
4096
 
4097
      /**
4098
       * Find the _Fields constant that matches name, or null if its not found.
4099
       */
4100
      public static _Fields findByName(String name) {
4101
        return byName.get(name);
4102
      }
4103
 
4104
      private final short _thriftId;
4105
      private final String _fieldName;
4106
 
4107
      _Fields(short thriftId, String fieldName) {
4108
        _thriftId = thriftId;
4109
        _fieldName = fieldName;
4110
      }
4111
 
4112
      public short getThriftFieldId() {
4113
        return _thriftId;
4114
      }
4115
 
4116
      public String getFieldName() {
4117
        return _fieldName;
4118
      }
4119
    }
4120
 
4121
    // isset id assignments
4122
 
3430 rajveer 4123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
471 rajveer 4124
    static {
3430 rajveer 4125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4126
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4127
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4128
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4130
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4131
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
471 rajveer 4132
    }
4133
 
4134
    public getLogisticsEstimation_result() {
4135
    }
4136
 
4137
    public getLogisticsEstimation_result(
648 chandransh 4138
      LogisticsInfo success,
471 rajveer 4139
      LogisticsServiceException se)
4140
    {
4141
      this();
4142
      this.success = success;
4143
      this.se = se;
4144
    }
4145
 
4146
    /**
4147
     * Performs a deep copy on <i>other</i>.
4148
     */
4149
    public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
4150
      if (other.isSetSuccess()) {
648 chandransh 4151
        this.success = new LogisticsInfo(other.success);
471 rajveer 4152
      }
4153
      if (other.isSetSe()) {
4154
        this.se = new LogisticsServiceException(other.se);
4155
      }
4156
    }
4157
 
4158
    public getLogisticsEstimation_result deepCopy() {
4159
      return new getLogisticsEstimation_result(this);
4160
    }
4161
 
3430 rajveer 4162
    @Override
4163
    public void clear() {
4164
      this.success = null;
4165
      this.se = null;
471 rajveer 4166
    }
4167
 
648 chandransh 4168
    public LogisticsInfo getSuccess() {
471 rajveer 4169
      return this.success;
4170
    }
4171
 
3430 rajveer 4172
    public void setSuccess(LogisticsInfo success) {
471 rajveer 4173
      this.success = success;
4174
    }
4175
 
4176
    public void unsetSuccess() {
4177
      this.success = null;
4178
    }
4179
 
3430 rajveer 4180
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
471 rajveer 4181
    public boolean isSetSuccess() {
4182
      return this.success != null;
4183
    }
4184
 
4185
    public void setSuccessIsSet(boolean value) {
4186
      if (!value) {
4187
        this.success = null;
4188
      }
4189
    }
4190
 
4191
    public LogisticsServiceException getSe() {
4192
      return this.se;
4193
    }
4194
 
3430 rajveer 4195
    public void setSe(LogisticsServiceException se) {
471 rajveer 4196
      this.se = se;
4197
    }
4198
 
4199
    public void unsetSe() {
4200
      this.se = null;
4201
    }
4202
 
3430 rajveer 4203
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
471 rajveer 4204
    public boolean isSetSe() {
4205
      return this.se != null;
4206
    }
4207
 
4208
    public void setSeIsSet(boolean value) {
4209
      if (!value) {
4210
        this.se = null;
4211
      }
4212
    }
4213
 
4214
    public void setFieldValue(_Fields field, Object value) {
4215
      switch (field) {
4216
      case SUCCESS:
4217
        if (value == null) {
4218
          unsetSuccess();
4219
        } else {
648 chandransh 4220
          setSuccess((LogisticsInfo)value);
471 rajveer 4221
        }
4222
        break;
4223
 
4224
      case SE:
4225
        if (value == null) {
4226
          unsetSe();
4227
        } else {
4228
          setSe((LogisticsServiceException)value);
4229
        }
4230
        break;
4231
 
4232
      }
4233
    }
4234
 
4235
    public Object getFieldValue(_Fields field) {
4236
      switch (field) {
4237
      case SUCCESS:
4238
        return getSuccess();
4239
 
4240
      case SE:
4241
        return getSe();
4242
 
4243
      }
4244
      throw new IllegalStateException();
4245
    }
4246
 
3430 rajveer 4247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4248
    public boolean isSet(_Fields field) {
4249
      if (field == null) {
4250
        throw new IllegalArgumentException();
4251
      }
471 rajveer 4252
 
4253
      switch (field) {
4254
      case SUCCESS:
4255
        return isSetSuccess();
4256
      case SE:
4257
        return isSetSe();
4258
      }
4259
      throw new IllegalStateException();
4260
    }
4261
 
4262
    @Override
4263
    public boolean equals(Object that) {
4264
      if (that == null)
4265
        return false;
4266
      if (that instanceof getLogisticsEstimation_result)
4267
        return this.equals((getLogisticsEstimation_result)that);
4268
      return false;
4269
    }
4270
 
4271
    public boolean equals(getLogisticsEstimation_result that) {
4272
      if (that == null)
4273
        return false;
4274
 
4275
      boolean this_present_success = true && this.isSetSuccess();
4276
      boolean that_present_success = true && that.isSetSuccess();
4277
      if (this_present_success || that_present_success) {
4278
        if (!(this_present_success && that_present_success))
4279
          return false;
4280
        if (!this.success.equals(that.success))
4281
          return false;
4282
      }
4283
 
4284
      boolean this_present_se = true && this.isSetSe();
4285
      boolean that_present_se = true && that.isSetSe();
4286
      if (this_present_se || that_present_se) {
4287
        if (!(this_present_se && that_present_se))
4288
          return false;
4289
        if (!this.se.equals(that.se))
4290
          return false;
4291
      }
4292
 
4293
      return true;
4294
    }
4295
 
4296
    @Override
4297
    public int hashCode() {
4298
      return 0;
4299
    }
4300
 
4301
    public int compareTo(getLogisticsEstimation_result other) {
4302
      if (!getClass().equals(other.getClass())) {
4303
        return getClass().getName().compareTo(other.getClass().getName());
4304
      }
4305
 
4306
      int lastComparison = 0;
4307
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
4308
 
3430 rajveer 4309
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
471 rajveer 4310
      if (lastComparison != 0) {
4311
        return lastComparison;
4312
      }
3430 rajveer 4313
      if (isSetSuccess()) {
4314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4315
        if (lastComparison != 0) {
4316
          return lastComparison;
4317
        }
471 rajveer 4318
      }
3430 rajveer 4319
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
471 rajveer 4320
      if (lastComparison != 0) {
4321
        return lastComparison;
4322
      }
3430 rajveer 4323
      if (isSetSe()) {
4324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4325
        if (lastComparison != 0) {
4326
          return lastComparison;
4327
        }
471 rajveer 4328
      }
4329
      return 0;
4330
    }
4331
 
3430 rajveer 4332
    public _Fields fieldForId(int fieldId) {
4333
      return _Fields.findByThriftId(fieldId);
4334
    }
4335
 
4336
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4337
      org.apache.thrift.protocol.TField field;
471 rajveer 4338
      iprot.readStructBegin();
4339
      while (true)
4340
      {
4341
        field = iprot.readFieldBegin();
3430 rajveer 4342
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
471 rajveer 4343
          break;
4344
        }
3430 rajveer 4345
        switch (field.id) {
4346
          case 0: // SUCCESS
4347
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4348
              this.success = new LogisticsInfo();
4349
              this.success.read(iprot);
4350
            } else { 
4351
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4352
            }
4353
            break;
4354
          case 1: // SE
4355
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4356
              this.se = new LogisticsServiceException();
4357
              this.se.read(iprot);
4358
            } else { 
4359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4360
            }
4361
            break;
4362
          default:
4363
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471 rajveer 4364
        }
3430 rajveer 4365
        iprot.readFieldEnd();
471 rajveer 4366
      }
4367
      iprot.readStructEnd();
4368
      validate();
4369
    }
4370
 
3430 rajveer 4371
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
471 rajveer 4372
      oprot.writeStructBegin(STRUCT_DESC);
4373
 
4374
      if (this.isSetSuccess()) {
4375
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4376
        this.success.write(oprot);
4377
        oprot.writeFieldEnd();
4378
      } else if (this.isSetSe()) {
4379
        oprot.writeFieldBegin(SE_FIELD_DESC);
4380
        this.se.write(oprot);
4381
        oprot.writeFieldEnd();
4382
      }
4383
      oprot.writeFieldStop();
4384
      oprot.writeStructEnd();
4385
    }
4386
 
4387
    @Override
4388
    public String toString() {
4389
      StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
4390
      boolean first = true;
4391
 
4392
      sb.append("success:");
4393
      if (this.success == null) {
4394
        sb.append("null");
4395
      } else {
4396
        sb.append(this.success);
4397
      }
4398
      first = false;
4399
      if (!first) sb.append(", ");
4400
      sb.append("se:");
4401
      if (this.se == null) {
4402
        sb.append("null");
4403
      } else {
4404
        sb.append(this.se);
4405
      }
4406
      first = false;
4407
      sb.append(")");
4408
      return sb.toString();
4409
    }
4410
 
3430 rajveer 4411
    public void validate() throws org.apache.thrift.TException {
471 rajveer 4412
      // check for required fields
4413
    }
4414
 
3430 rajveer 4415
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4416
      try {
4417
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4418
      } catch (org.apache.thrift.TException te) {
4419
        throw new java.io.IOException(te);
4420
      }
4421
    }
4422
 
4423
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4424
      try {
4425
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4426
      } catch (org.apache.thrift.TException te) {
4427
        throw new java.io.IOException(te);
4428
      }
4429
    }
4430
 
471 rajveer 4431
  }
4432
 
7256 rajveer 4433
  public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable   {
4434
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
4435
 
4436
    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);
4437
    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);
4438
    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);
4439
 
4440
    private long itemId; // required
4441
    private String destination_pin; // required
4442
    private DeliveryType type; // required
4443
 
4444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4446
      ITEM_ID((short)1, "itemId"),
4447
      DESTINATION_PIN((short)2, "destination_pin"),
4448
      /**
4449
       * 
4450
       * @see DeliveryType
4451
       */
4452
      TYPE((short)3, "type");
4453
 
4454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4455
 
4456
      static {
4457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4458
          byName.put(field.getFieldName(), field);
4459
        }
4460
      }
4461
 
4462
      /**
4463
       * Find the _Fields constant that matches fieldId, or null if its not found.
4464
       */
4465
      public static _Fields findByThriftId(int fieldId) {
4466
        switch(fieldId) {
4467
          case 1: // ITEM_ID
4468
            return ITEM_ID;
4469
          case 2: // DESTINATION_PIN
4470
            return DESTINATION_PIN;
4471
          case 3: // TYPE
4472
            return TYPE;
4473
          default:
4474
            return null;
4475
        }
4476
      }
4477
 
4478
      /**
4479
       * Find the _Fields constant that matches fieldId, throwing an exception
4480
       * if it is not found.
4481
       */
4482
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4483
        _Fields fields = findByThriftId(fieldId);
4484
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4485
        return fields;
4486
      }
4487
 
4488
      /**
4489
       * Find the _Fields constant that matches name, or null if its not found.
4490
       */
4491
      public static _Fields findByName(String name) {
4492
        return byName.get(name);
4493
      }
4494
 
4495
      private final short _thriftId;
4496
      private final String _fieldName;
4497
 
4498
      _Fields(short thriftId, String fieldName) {
4499
        _thriftId = thriftId;
4500
        _fieldName = fieldName;
4501
      }
4502
 
4503
      public short getThriftFieldId() {
4504
        return _thriftId;
4505
      }
4506
 
4507
      public String getFieldName() {
4508
        return _fieldName;
4509
      }
4510
    }
4511
 
4512
    // isset id assignments
4513
    private static final int __ITEMID_ISSET_ID = 0;
4514
    private BitSet __isset_bit_vector = new BitSet(1);
4515
 
4516
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4517
    static {
4518
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4519
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4521
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4523
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4524
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
4527
    }
4528
 
4529
    public getLogisticsEstimationForStore_args() {
4530
    }
4531
 
4532
    public getLogisticsEstimationForStore_args(
4533
      long itemId,
4534
      String destination_pin,
4535
      DeliveryType type)
4536
    {
4537
      this();
4538
      this.itemId = itemId;
4539
      setItemIdIsSet(true);
4540
      this.destination_pin = destination_pin;
4541
      this.type = type;
4542
    }
4543
 
4544
    /**
4545
     * Performs a deep copy on <i>other</i>.
4546
     */
4547
    public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
4548
      __isset_bit_vector.clear();
4549
      __isset_bit_vector.or(other.__isset_bit_vector);
4550
      this.itemId = other.itemId;
4551
      if (other.isSetDestination_pin()) {
4552
        this.destination_pin = other.destination_pin;
4553
      }
4554
      if (other.isSetType()) {
4555
        this.type = other.type;
4556
      }
4557
    }
4558
 
4559
    public getLogisticsEstimationForStore_args deepCopy() {
4560
      return new getLogisticsEstimationForStore_args(this);
4561
    }
4562
 
4563
    @Override
4564
    public void clear() {
4565
      setItemIdIsSet(false);
4566
      this.itemId = 0;
4567
      this.destination_pin = null;
4568
      this.type = null;
4569
    }
4570
 
4571
    public long getItemId() {
4572
      return this.itemId;
4573
    }
4574
 
4575
    public void setItemId(long itemId) {
4576
      this.itemId = itemId;
4577
      setItemIdIsSet(true);
4578
    }
4579
 
4580
    public void unsetItemId() {
4581
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
4582
    }
4583
 
4584
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4585
    public boolean isSetItemId() {
4586
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
4587
    }
4588
 
4589
    public void setItemIdIsSet(boolean value) {
4590
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
4591
    }
4592
 
4593
    public String getDestination_pin() {
4594
      return this.destination_pin;
4595
    }
4596
 
4597
    public void setDestination_pin(String destination_pin) {
4598
      this.destination_pin = destination_pin;
4599
    }
4600
 
4601
    public void unsetDestination_pin() {
4602
      this.destination_pin = null;
4603
    }
4604
 
4605
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
4606
    public boolean isSetDestination_pin() {
4607
      return this.destination_pin != null;
4608
    }
4609
 
4610
    public void setDestination_pinIsSet(boolean value) {
4611
      if (!value) {
4612
        this.destination_pin = null;
4613
      }
4614
    }
4615
 
4616
    /**
4617
     * 
4618
     * @see DeliveryType
4619
     */
4620
    public DeliveryType getType() {
4621
      return this.type;
4622
    }
4623
 
4624
    /**
4625
     * 
4626
     * @see DeliveryType
4627
     */
4628
    public void setType(DeliveryType type) {
4629
      this.type = type;
4630
    }
4631
 
4632
    public void unsetType() {
4633
      this.type = null;
4634
    }
4635
 
4636
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
4637
    public boolean isSetType() {
4638
      return this.type != null;
4639
    }
4640
 
4641
    public void setTypeIsSet(boolean value) {
4642
      if (!value) {
4643
        this.type = null;
4644
      }
4645
    }
4646
 
4647
    public void setFieldValue(_Fields field, Object value) {
4648
      switch (field) {
4649
      case ITEM_ID:
4650
        if (value == null) {
4651
          unsetItemId();
4652
        } else {
4653
          setItemId((Long)value);
4654
        }
4655
        break;
4656
 
4657
      case DESTINATION_PIN:
4658
        if (value == null) {
4659
          unsetDestination_pin();
4660
        } else {
4661
          setDestination_pin((String)value);
4662
        }
4663
        break;
4664
 
4665
      case TYPE:
4666
        if (value == null) {
4667
          unsetType();
4668
        } else {
4669
          setType((DeliveryType)value);
4670
        }
4671
        break;
4672
 
4673
      }
4674
    }
4675
 
4676
    public Object getFieldValue(_Fields field) {
4677
      switch (field) {
4678
      case ITEM_ID:
4679
        return Long.valueOf(getItemId());
4680
 
4681
      case DESTINATION_PIN:
4682
        return getDestination_pin();
4683
 
4684
      case TYPE:
4685
        return getType();
4686
 
4687
      }
4688
      throw new IllegalStateException();
4689
    }
4690
 
4691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4692
    public boolean isSet(_Fields field) {
4693
      if (field == null) {
4694
        throw new IllegalArgumentException();
4695
      }
4696
 
4697
      switch (field) {
4698
      case ITEM_ID:
4699
        return isSetItemId();
4700
      case DESTINATION_PIN:
4701
        return isSetDestination_pin();
4702
      case TYPE:
4703
        return isSetType();
4704
      }
4705
      throw new IllegalStateException();
4706
    }
4707
 
4708
    @Override
4709
    public boolean equals(Object that) {
4710
      if (that == null)
4711
        return false;
4712
      if (that instanceof getLogisticsEstimationForStore_args)
4713
        return this.equals((getLogisticsEstimationForStore_args)that);
4714
      return false;
4715
    }
4716
 
4717
    public boolean equals(getLogisticsEstimationForStore_args that) {
4718
      if (that == null)
4719
        return false;
4720
 
4721
      boolean this_present_itemId = true;
4722
      boolean that_present_itemId = true;
4723
      if (this_present_itemId || that_present_itemId) {
4724
        if (!(this_present_itemId && that_present_itemId))
4725
          return false;
4726
        if (this.itemId != that.itemId)
4727
          return false;
4728
      }
4729
 
4730
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
4731
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
4732
      if (this_present_destination_pin || that_present_destination_pin) {
4733
        if (!(this_present_destination_pin && that_present_destination_pin))
4734
          return false;
4735
        if (!this.destination_pin.equals(that.destination_pin))
4736
          return false;
4737
      }
4738
 
4739
      boolean this_present_type = true && this.isSetType();
4740
      boolean that_present_type = true && that.isSetType();
4741
      if (this_present_type || that_present_type) {
4742
        if (!(this_present_type && that_present_type))
4743
          return false;
4744
        if (!this.type.equals(that.type))
4745
          return false;
4746
      }
4747
 
4748
      return true;
4749
    }
4750
 
4751
    @Override
4752
    public int hashCode() {
4753
      return 0;
4754
    }
4755
 
4756
    public int compareTo(getLogisticsEstimationForStore_args other) {
4757
      if (!getClass().equals(other.getClass())) {
4758
        return getClass().getName().compareTo(other.getClass().getName());
4759
      }
4760
 
4761
      int lastComparison = 0;
4762
      getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
4763
 
4764
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
4765
      if (lastComparison != 0) {
4766
        return lastComparison;
4767
      }
4768
      if (isSetItemId()) {
4769
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
4770
        if (lastComparison != 0) {
4771
          return lastComparison;
4772
        }
4773
      }
4774
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
4775
      if (lastComparison != 0) {
4776
        return lastComparison;
4777
      }
4778
      if (isSetDestination_pin()) {
4779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
4780
        if (lastComparison != 0) {
4781
          return lastComparison;
4782
        }
4783
      }
4784
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
4785
      if (lastComparison != 0) {
4786
        return lastComparison;
4787
      }
4788
      if (isSetType()) {
4789
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
4790
        if (lastComparison != 0) {
4791
          return lastComparison;
4792
        }
4793
      }
4794
      return 0;
4795
    }
4796
 
4797
    public _Fields fieldForId(int fieldId) {
4798
      return _Fields.findByThriftId(fieldId);
4799
    }
4800
 
4801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4802
      org.apache.thrift.protocol.TField field;
4803
      iprot.readStructBegin();
4804
      while (true)
4805
      {
4806
        field = iprot.readFieldBegin();
4807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4808
          break;
4809
        }
4810
        switch (field.id) {
4811
          case 1: // ITEM_ID
4812
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4813
              this.itemId = iprot.readI64();
4814
              setItemIdIsSet(true);
4815
            } else { 
4816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4817
            }
4818
            break;
4819
          case 2: // DESTINATION_PIN
4820
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4821
              this.destination_pin = iprot.readString();
4822
            } else { 
4823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4824
            }
4825
            break;
4826
          case 3: // TYPE
4827
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4828
              this.type = DeliveryType.findByValue(iprot.readI32());
4829
            } else { 
4830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4831
            }
4832
            break;
4833
          default:
4834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4835
        }
4836
        iprot.readFieldEnd();
4837
      }
4838
      iprot.readStructEnd();
4839
      validate();
4840
    }
4841
 
4842
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4843
      validate();
4844
 
4845
      oprot.writeStructBegin(STRUCT_DESC);
4846
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4847
      oprot.writeI64(this.itemId);
4848
      oprot.writeFieldEnd();
4849
      if (this.destination_pin != null) {
4850
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
4851
        oprot.writeString(this.destination_pin);
4852
        oprot.writeFieldEnd();
4853
      }
4854
      if (this.type != null) {
4855
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
4856
        oprot.writeI32(this.type.getValue());
4857
        oprot.writeFieldEnd();
4858
      }
4859
      oprot.writeFieldStop();
4860
      oprot.writeStructEnd();
4861
    }
4862
 
4863
    @Override
4864
    public String toString() {
4865
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
4866
      boolean first = true;
4867
 
4868
      sb.append("itemId:");
4869
      sb.append(this.itemId);
4870
      first = false;
4871
      if (!first) sb.append(", ");
4872
      sb.append("destination_pin:");
4873
      if (this.destination_pin == null) {
4874
        sb.append("null");
4875
      } else {
4876
        sb.append(this.destination_pin);
4877
      }
4878
      first = false;
4879
      if (!first) sb.append(", ");
4880
      sb.append("type:");
4881
      if (this.type == null) {
4882
        sb.append("null");
4883
      } else {
4884
        sb.append(this.type);
4885
      }
4886
      first = false;
4887
      sb.append(")");
4888
      return sb.toString();
4889
    }
4890
 
4891
    public void validate() throws org.apache.thrift.TException {
4892
      // check for required fields
4893
    }
4894
 
4895
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4896
      try {
4897
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4898
      } catch (org.apache.thrift.TException te) {
4899
        throw new java.io.IOException(te);
4900
      }
4901
    }
4902
 
4903
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4904
      try {
4905
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4906
        __isset_bit_vector = new BitSet(1);
4907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4908
      } catch (org.apache.thrift.TException te) {
4909
        throw new java.io.IOException(te);
4910
      }
4911
    }
4912
 
4913
  }
4914
 
4915
  public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable   {
4916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
4917
 
4918
    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);
4919
    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);
4920
 
4921
    private LogisticsInfo success; // required
4922
    private LogisticsServiceException se; // required
4923
 
4924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4926
      SUCCESS((short)0, "success"),
4927
      SE((short)1, "se");
4928
 
4929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4930
 
4931
      static {
4932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4933
          byName.put(field.getFieldName(), field);
4934
        }
4935
      }
4936
 
4937
      /**
4938
       * Find the _Fields constant that matches fieldId, or null if its not found.
4939
       */
4940
      public static _Fields findByThriftId(int fieldId) {
4941
        switch(fieldId) {
4942
          case 0: // SUCCESS
4943
            return SUCCESS;
4944
          case 1: // SE
4945
            return SE;
4946
          default:
4947
            return null;
4948
        }
4949
      }
4950
 
4951
      /**
4952
       * Find the _Fields constant that matches fieldId, throwing an exception
4953
       * if it is not found.
4954
       */
4955
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4956
        _Fields fields = findByThriftId(fieldId);
4957
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4958
        return fields;
4959
      }
4960
 
4961
      /**
4962
       * Find the _Fields constant that matches name, or null if its not found.
4963
       */
4964
      public static _Fields findByName(String name) {
4965
        return byName.get(name);
4966
      }
4967
 
4968
      private final short _thriftId;
4969
      private final String _fieldName;
4970
 
4971
      _Fields(short thriftId, String fieldName) {
4972
        _thriftId = thriftId;
4973
        _fieldName = fieldName;
4974
      }
4975
 
4976
      public short getThriftFieldId() {
4977
        return _thriftId;
4978
      }
4979
 
4980
      public String getFieldName() {
4981
        return _fieldName;
4982
      }
4983
    }
4984
 
4985
    // isset id assignments
4986
 
4987
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4988
    static {
4989
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4990
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4991
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
4992
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4993
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4994
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4995
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
4996
    }
4997
 
4998
    public getLogisticsEstimationForStore_result() {
4999
    }
5000
 
5001
    public getLogisticsEstimationForStore_result(
5002
      LogisticsInfo success,
5003
      LogisticsServiceException se)
5004
    {
5005
      this();
5006
      this.success = success;
5007
      this.se = se;
5008
    }
5009
 
5010
    /**
5011
     * Performs a deep copy on <i>other</i>.
5012
     */
5013
    public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
5014
      if (other.isSetSuccess()) {
5015
        this.success = new LogisticsInfo(other.success);
5016
      }
5017
      if (other.isSetSe()) {
5018
        this.se = new LogisticsServiceException(other.se);
5019
      }
5020
    }
5021
 
5022
    public getLogisticsEstimationForStore_result deepCopy() {
5023
      return new getLogisticsEstimationForStore_result(this);
5024
    }
5025
 
5026
    @Override
5027
    public void clear() {
5028
      this.success = null;
5029
      this.se = null;
5030
    }
5031
 
5032
    public LogisticsInfo getSuccess() {
5033
      return this.success;
5034
    }
5035
 
5036
    public void setSuccess(LogisticsInfo success) {
5037
      this.success = success;
5038
    }
5039
 
5040
    public void unsetSuccess() {
5041
      this.success = null;
5042
    }
5043
 
5044
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5045
    public boolean isSetSuccess() {
5046
      return this.success != null;
5047
    }
5048
 
5049
    public void setSuccessIsSet(boolean value) {
5050
      if (!value) {
5051
        this.success = null;
5052
      }
5053
    }
5054
 
5055
    public LogisticsServiceException getSe() {
5056
      return this.se;
5057
    }
5058
 
5059
    public void setSe(LogisticsServiceException se) {
5060
      this.se = se;
5061
    }
5062
 
5063
    public void unsetSe() {
5064
      this.se = null;
5065
    }
5066
 
5067
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5068
    public boolean isSetSe() {
5069
      return this.se != null;
5070
    }
5071
 
5072
    public void setSeIsSet(boolean value) {
5073
      if (!value) {
5074
        this.se = null;
5075
      }
5076
    }
5077
 
5078
    public void setFieldValue(_Fields field, Object value) {
5079
      switch (field) {
5080
      case SUCCESS:
5081
        if (value == null) {
5082
          unsetSuccess();
5083
        } else {
5084
          setSuccess((LogisticsInfo)value);
5085
        }
5086
        break;
5087
 
5088
      case SE:
5089
        if (value == null) {
5090
          unsetSe();
5091
        } else {
5092
          setSe((LogisticsServiceException)value);
5093
        }
5094
        break;
5095
 
5096
      }
5097
    }
5098
 
5099
    public Object getFieldValue(_Fields field) {
5100
      switch (field) {
5101
      case SUCCESS:
5102
        return getSuccess();
5103
 
5104
      case SE:
5105
        return getSe();
5106
 
5107
      }
5108
      throw new IllegalStateException();
5109
    }
5110
 
5111
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5112
    public boolean isSet(_Fields field) {
5113
      if (field == null) {
5114
        throw new IllegalArgumentException();
5115
      }
5116
 
5117
      switch (field) {
5118
      case SUCCESS:
5119
        return isSetSuccess();
5120
      case SE:
5121
        return isSetSe();
5122
      }
5123
      throw new IllegalStateException();
5124
    }
5125
 
5126
    @Override
5127
    public boolean equals(Object that) {
5128
      if (that == null)
5129
        return false;
5130
      if (that instanceof getLogisticsEstimationForStore_result)
5131
        return this.equals((getLogisticsEstimationForStore_result)that);
5132
      return false;
5133
    }
5134
 
5135
    public boolean equals(getLogisticsEstimationForStore_result that) {
5136
      if (that == null)
5137
        return false;
5138
 
5139
      boolean this_present_success = true && this.isSetSuccess();
5140
      boolean that_present_success = true && that.isSetSuccess();
5141
      if (this_present_success || that_present_success) {
5142
        if (!(this_present_success && that_present_success))
5143
          return false;
5144
        if (!this.success.equals(that.success))
5145
          return false;
5146
      }
5147
 
5148
      boolean this_present_se = true && this.isSetSe();
5149
      boolean that_present_se = true && that.isSetSe();
5150
      if (this_present_se || that_present_se) {
5151
        if (!(this_present_se && that_present_se))
5152
          return false;
5153
        if (!this.se.equals(that.se))
5154
          return false;
5155
      }
5156
 
5157
      return true;
5158
    }
5159
 
5160
    @Override
5161
    public int hashCode() {
5162
      return 0;
5163
    }
5164
 
5165
    public int compareTo(getLogisticsEstimationForStore_result other) {
5166
      if (!getClass().equals(other.getClass())) {
5167
        return getClass().getName().compareTo(other.getClass().getName());
5168
      }
5169
 
5170
      int lastComparison = 0;
5171
      getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
5172
 
5173
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5174
      if (lastComparison != 0) {
5175
        return lastComparison;
5176
      }
5177
      if (isSetSuccess()) {
5178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5179
        if (lastComparison != 0) {
5180
          return lastComparison;
5181
        }
5182
      }
5183
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5184
      if (lastComparison != 0) {
5185
        return lastComparison;
5186
      }
5187
      if (isSetSe()) {
5188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5189
        if (lastComparison != 0) {
5190
          return lastComparison;
5191
        }
5192
      }
5193
      return 0;
5194
    }
5195
 
5196
    public _Fields fieldForId(int fieldId) {
5197
      return _Fields.findByThriftId(fieldId);
5198
    }
5199
 
5200
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5201
      org.apache.thrift.protocol.TField field;
5202
      iprot.readStructBegin();
5203
      while (true)
5204
      {
5205
        field = iprot.readFieldBegin();
5206
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5207
          break;
5208
        }
5209
        switch (field.id) {
5210
          case 0: // SUCCESS
5211
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5212
              this.success = new LogisticsInfo();
5213
              this.success.read(iprot);
5214
            } else { 
5215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5216
            }
5217
            break;
5218
          case 1: // SE
5219
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5220
              this.se = new LogisticsServiceException();
5221
              this.se.read(iprot);
5222
            } else { 
5223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5224
            }
5225
            break;
5226
          default:
5227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5228
        }
5229
        iprot.readFieldEnd();
5230
      }
5231
      iprot.readStructEnd();
5232
      validate();
5233
    }
5234
 
5235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5236
      oprot.writeStructBegin(STRUCT_DESC);
5237
 
5238
      if (this.isSetSuccess()) {
5239
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5240
        this.success.write(oprot);
5241
        oprot.writeFieldEnd();
5242
      } else if (this.isSetSe()) {
5243
        oprot.writeFieldBegin(SE_FIELD_DESC);
5244
        this.se.write(oprot);
5245
        oprot.writeFieldEnd();
5246
      }
5247
      oprot.writeFieldStop();
5248
      oprot.writeStructEnd();
5249
    }
5250
 
5251
    @Override
5252
    public String toString() {
5253
      StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
5254
      boolean first = true;
5255
 
5256
      sb.append("success:");
5257
      if (this.success == null) {
5258
        sb.append("null");
5259
      } else {
5260
        sb.append(this.success);
5261
      }
5262
      first = false;
5263
      if (!first) sb.append(", ");
5264
      sb.append("se:");
5265
      if (this.se == null) {
5266
        sb.append("null");
5267
      } else {
5268
        sb.append(this.se);
5269
      }
5270
      first = false;
5271
      sb.append(")");
5272
      return sb.toString();
5273
    }
5274
 
5275
    public void validate() throws org.apache.thrift.TException {
5276
      // check for required fields
5277
    }
5278
 
5279
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5280
      try {
5281
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5282
      } catch (org.apache.thrift.TException te) {
5283
        throw new java.io.IOException(te);
5284
      }
5285
    }
5286
 
5287
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5288
      try {
5289
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5290
      } catch (org.apache.thrift.TException te) {
5291
        throw new java.io.IOException(te);
5292
      }
5293
    }
5294
 
5295
  }
5296
 
3430 rajveer 5297
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
5298
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
471 rajveer 5299
 
3430 rajveer 5300
    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);
5301
    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);
5302
    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 5303
    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 5304
 
3430 rajveer 5305
    private String destination_pincode; // required
5306
    private long item_id; // required
5307
    private DeliveryType type; // required
5766 rajveer 5308
    private PickUpType pickUp; // required
471 rajveer 5309
 
5310
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5311
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5312
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3044 chandransh 5313
      ITEM_ID((short)2, "item_id"),
5314
      /**
5315
       * 
5316
       * @see DeliveryType
5317
       */
5766 rajveer 5318
      TYPE((short)3, "type"),
5319
      /**
5320
       * 
5321
       * @see PickUpType
5322
       */
5323
      PICK_UP((short)4, "pickUp");
471 rajveer 5324
 
5325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5326
 
5327
      static {
5328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5329
          byName.put(field.getFieldName(), field);
5330
        }
5331
      }
5332
 
5333
      /**
5334
       * Find the _Fields constant that matches fieldId, or null if its not found.
5335
       */
5336
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5337
        switch(fieldId) {
5338
          case 1: // DESTINATION_PINCODE
5339
            return DESTINATION_PINCODE;
5340
          case 2: // ITEM_ID
5341
            return ITEM_ID;
5342
          case 3: // TYPE
5343
            return TYPE;
5766 rajveer 5344
          case 4: // PICK_UP
5345
            return PICK_UP;
3430 rajveer 5346
          default:
5347
            return null;
5348
        }
471 rajveer 5349
      }
5350
 
5351
      /**
5352
       * Find the _Fields constant that matches fieldId, throwing an exception
5353
       * if it is not found.
5354
       */
5355
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5356
        _Fields fields = findByThriftId(fieldId);
5357
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5358
        return fields;
5359
      }
5360
 
5361
      /**
5362
       * Find the _Fields constant that matches name, or null if its not found.
5363
       */
5364
      public static _Fields findByName(String name) {
5365
        return byName.get(name);
5366
      }
5367
 
5368
      private final short _thriftId;
5369
      private final String _fieldName;
5370
 
5371
      _Fields(short thriftId, String fieldName) {
5372
        _thriftId = thriftId;
5373
        _fieldName = fieldName;
5374
      }
5375
 
5376
      public short getThriftFieldId() {
5377
        return _thriftId;
5378
      }
5379
 
5380
      public String getFieldName() {
5381
        return _fieldName;
5382
      }
5383
    }
5384
 
5385
    // isset id assignments
715 rajveer 5386
    private static final int __ITEM_ID_ISSET_ID = 0;
5387
    private BitSet __isset_bit_vector = new BitSet(1);
471 rajveer 5388
 
3430 rajveer 5389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
477 rajveer 5390
    static {
3430 rajveer 5391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5392
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5394
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5396
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5397
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
5766 rajveer 5398
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5399
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
3430 rajveer 5400
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5401
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
477 rajveer 5402
    }
5403
 
648 chandransh 5404
    public getLogisticsInfo_args() {
477 rajveer 5405
    }
5406
 
648 chandransh 5407
    public getLogisticsInfo_args(
5408
      String destination_pincode,
3044 chandransh 5409
      long item_id,
5766 rajveer 5410
      DeliveryType type,
5411
      PickUpType pickUp)
477 rajveer 5412
    {
5413
      this();
648 chandransh 5414
      this.destination_pincode = destination_pincode;
5415
      this.item_id = item_id;
715 rajveer 5416
      setItem_idIsSet(true);
3044 chandransh 5417
      this.type = type;
5766 rajveer 5418
      this.pickUp = pickUp;
477 rajveer 5419
    }
5420
 
5421
    /**
5422
     * Performs a deep copy on <i>other</i>.
5423
     */
648 chandransh 5424
    public getLogisticsInfo_args(getLogisticsInfo_args other) {
715 rajveer 5425
      __isset_bit_vector.clear();
5426
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 5427
      if (other.isSetDestination_pincode()) {
5428
        this.destination_pincode = other.destination_pincode;
477 rajveer 5429
      }
715 rajveer 5430
      this.item_id = other.item_id;
3044 chandransh 5431
      if (other.isSetType()) {
5432
        this.type = other.type;
5433
      }
5766 rajveer 5434
      if (other.isSetPickUp()) {
5435
        this.pickUp = other.pickUp;
5436
      }
477 rajveer 5437
    }
5438
 
648 chandransh 5439
    public getLogisticsInfo_args deepCopy() {
5440
      return new getLogisticsInfo_args(this);
477 rajveer 5441
    }
5442
 
3430 rajveer 5443
    @Override
5444
    public void clear() {
5445
      this.destination_pincode = null;
5446
      setItem_idIsSet(false);
5447
      this.item_id = 0;
5448
      this.type = null;
5766 rajveer 5449
      this.pickUp = null;
477 rajveer 5450
    }
5451
 
648 chandransh 5452
    public String getDestination_pincode() {
5453
      return this.destination_pincode;
477 rajveer 5454
    }
5455
 
3430 rajveer 5456
    public void setDestination_pincode(String destination_pincode) {
648 chandransh 5457
      this.destination_pincode = destination_pincode;
477 rajveer 5458
    }
5459
 
648 chandransh 5460
    public void unsetDestination_pincode() {
5461
      this.destination_pincode = null;
477 rajveer 5462
    }
5463
 
3430 rajveer 5464
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
648 chandransh 5465
    public boolean isSetDestination_pincode() {
5466
      return this.destination_pincode != null;
477 rajveer 5467
    }
5468
 
648 chandransh 5469
    public void setDestination_pincodeIsSet(boolean value) {
477 rajveer 5470
      if (!value) {
648 chandransh 5471
        this.destination_pincode = null;
477 rajveer 5472
      }
5473
    }
5474
 
715 rajveer 5475
    public long getItem_id() {
648 chandransh 5476
      return this.item_id;
477 rajveer 5477
    }
5478
 
3430 rajveer 5479
    public void setItem_id(long item_id) {
648 chandransh 5480
      this.item_id = item_id;
715 rajveer 5481
      setItem_idIsSet(true);
477 rajveer 5482
    }
5483
 
648 chandransh 5484
    public void unsetItem_id() {
715 rajveer 5485
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
477 rajveer 5486
    }
5487
 
3430 rajveer 5488
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
648 chandransh 5489
    public boolean isSetItem_id() {
715 rajveer 5490
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
477 rajveer 5491
    }
5492
 
648 chandransh 5493
    public void setItem_idIsSet(boolean value) {
715 rajveer 5494
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
477 rajveer 5495
    }
5496
 
3044 chandransh 5497
    /**
5498
     * 
5499
     * @see DeliveryType
5500
     */
5501
    public DeliveryType getType() {
5502
      return this.type;
5503
    }
5504
 
5505
    /**
5506
     * 
5507
     * @see DeliveryType
5508
     */
3430 rajveer 5509
    public void setType(DeliveryType type) {
3044 chandransh 5510
      this.type = type;
5511
    }
5512
 
5513
    public void unsetType() {
5514
      this.type = null;
5515
    }
5516
 
3430 rajveer 5517
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3044 chandransh 5518
    public boolean isSetType() {
5519
      return this.type != null;
5520
    }
5521
 
5522
    public void setTypeIsSet(boolean value) {
5523
      if (!value) {
5524
        this.type = null;
5525
      }
5526
    }
5527
 
5766 rajveer 5528
    /**
5529
     * 
5530
     * @see PickUpType
5531
     */
5532
    public PickUpType getPickUp() {
5533
      return this.pickUp;
5534
    }
5535
 
5536
    /**
5537
     * 
5538
     * @see PickUpType
5539
     */
5540
    public void setPickUp(PickUpType pickUp) {
5541
      this.pickUp = pickUp;
5542
    }
5543
 
5544
    public void unsetPickUp() {
5545
      this.pickUp = null;
5546
    }
5547
 
5548
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
5549
    public boolean isSetPickUp() {
5550
      return this.pickUp != null;
5551
    }
5552
 
5553
    public void setPickUpIsSet(boolean value) {
5554
      if (!value) {
5555
        this.pickUp = null;
5556
      }
5557
    }
5558
 
477 rajveer 5559
    public void setFieldValue(_Fields field, Object value) {
5560
      switch (field) {
648 chandransh 5561
      case DESTINATION_PINCODE:
477 rajveer 5562
        if (value == null) {
648 chandransh 5563
          unsetDestination_pincode();
477 rajveer 5564
        } else {
648 chandransh 5565
          setDestination_pincode((String)value);
477 rajveer 5566
        }
5567
        break;
5568
 
648 chandransh 5569
      case ITEM_ID:
477 rajveer 5570
        if (value == null) {
648 chandransh 5571
          unsetItem_id();
477 rajveer 5572
        } else {
715 rajveer 5573
          setItem_id((Long)value);
477 rajveer 5574
        }
5575
        break;
5576
 
3044 chandransh 5577
      case TYPE:
5578
        if (value == null) {
5579
          unsetType();
5580
        } else {
5581
          setType((DeliveryType)value);
5582
        }
5583
        break;
5584
 
5766 rajveer 5585
      case PICK_UP:
5586
        if (value == null) {
5587
          unsetPickUp();
5588
        } else {
5589
          setPickUp((PickUpType)value);
5590
        }
5591
        break;
5592
 
477 rajveer 5593
      }
5594
    }
5595
 
5596
    public Object getFieldValue(_Fields field) {
5597
      switch (field) {
648 chandransh 5598
      case DESTINATION_PINCODE:
5599
        return getDestination_pincode();
477 rajveer 5600
 
648 chandransh 5601
      case ITEM_ID:
3430 rajveer 5602
        return Long.valueOf(getItem_id());
477 rajveer 5603
 
3044 chandransh 5604
      case TYPE:
5605
        return getType();
5606
 
5766 rajveer 5607
      case PICK_UP:
5608
        return getPickUp();
5609
 
477 rajveer 5610
      }
5611
      throw new IllegalStateException();
5612
    }
5613
 
3430 rajveer 5614
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5615
    public boolean isSet(_Fields field) {
5616
      if (field == null) {
5617
        throw new IllegalArgumentException();
5618
      }
477 rajveer 5619
 
5620
      switch (field) {
648 chandransh 5621
      case DESTINATION_PINCODE:
5622
        return isSetDestination_pincode();
5623
      case ITEM_ID:
5624
        return isSetItem_id();
3044 chandransh 5625
      case TYPE:
5626
        return isSetType();
5766 rajveer 5627
      case PICK_UP:
5628
        return isSetPickUp();
477 rajveer 5629
      }
5630
      throw new IllegalStateException();
5631
    }
5632
 
5633
    @Override
5634
    public boolean equals(Object that) {
5635
      if (that == null)
5636
        return false;
648 chandransh 5637
      if (that instanceof getLogisticsInfo_args)
5638
        return this.equals((getLogisticsInfo_args)that);
477 rajveer 5639
      return false;
5640
    }
5641
 
648 chandransh 5642
    public boolean equals(getLogisticsInfo_args that) {
477 rajveer 5643
      if (that == null)
5644
        return false;
5645
 
648 chandransh 5646
      boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
5647
      boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
5648
      if (this_present_destination_pincode || that_present_destination_pincode) {
5649
        if (!(this_present_destination_pincode && that_present_destination_pincode))
477 rajveer 5650
          return false;
648 chandransh 5651
        if (!this.destination_pincode.equals(that.destination_pincode))
477 rajveer 5652
          return false;
5653
      }
5654
 
715 rajveer 5655
      boolean this_present_item_id = true;
5656
      boolean that_present_item_id = true;
648 chandransh 5657
      if (this_present_item_id || that_present_item_id) {
5658
        if (!(this_present_item_id && that_present_item_id))
477 rajveer 5659
          return false;
715 rajveer 5660
        if (this.item_id != that.item_id)
477 rajveer 5661
          return false;
5662
      }
5663
 
3044 chandransh 5664
      boolean this_present_type = true && this.isSetType();
5665
      boolean that_present_type = true && that.isSetType();
5666
      if (this_present_type || that_present_type) {
5667
        if (!(this_present_type && that_present_type))
5668
          return false;
5669
        if (!this.type.equals(that.type))
5670
          return false;
5671
      }
5672
 
5766 rajveer 5673
      boolean this_present_pickUp = true && this.isSetPickUp();
5674
      boolean that_present_pickUp = true && that.isSetPickUp();
5675
      if (this_present_pickUp || that_present_pickUp) {
5676
        if (!(this_present_pickUp && that_present_pickUp))
5677
          return false;
5678
        if (!this.pickUp.equals(that.pickUp))
5679
          return false;
5680
      }
5681
 
477 rajveer 5682
      return true;
5683
    }
5684
 
5685
    @Override
5686
    public int hashCode() {
5687
      return 0;
5688
    }
5689
 
648 chandransh 5690
    public int compareTo(getLogisticsInfo_args other) {
477 rajveer 5691
      if (!getClass().equals(other.getClass())) {
5692
        return getClass().getName().compareTo(other.getClass().getName());
5693
      }
5694
 
5695
      int lastComparison = 0;
648 chandransh 5696
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
477 rajveer 5697
 
3430 rajveer 5698
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
477 rajveer 5699
      if (lastComparison != 0) {
5700
        return lastComparison;
5701
      }
3430 rajveer 5702
      if (isSetDestination_pincode()) {
5703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
5704
        if (lastComparison != 0) {
5705
          return lastComparison;
5706
        }
477 rajveer 5707
      }
3430 rajveer 5708
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
477 rajveer 5709
      if (lastComparison != 0) {
5710
        return lastComparison;
5711
      }
3430 rajveer 5712
      if (isSetItem_id()) {
5713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
5714
        if (lastComparison != 0) {
5715
          return lastComparison;
5716
        }
477 rajveer 5717
      }
3430 rajveer 5718
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3044 chandransh 5719
      if (lastComparison != 0) {
5720
        return lastComparison;
5721
      }
3430 rajveer 5722
      if (isSetType()) {
5723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5724
        if (lastComparison != 0) {
5725
          return lastComparison;
5726
        }
3044 chandransh 5727
      }
5766 rajveer 5728
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
5729
      if (lastComparison != 0) {
5730
        return lastComparison;
5731
      }
5732
      if (isSetPickUp()) {
5733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
5734
        if (lastComparison != 0) {
5735
          return lastComparison;
5736
        }
5737
      }
477 rajveer 5738
      return 0;
5739
    }
5740
 
3430 rajveer 5741
    public _Fields fieldForId(int fieldId) {
5742
      return _Fields.findByThriftId(fieldId);
5743
    }
5744
 
5745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5746
      org.apache.thrift.protocol.TField field;
477 rajveer 5747
      iprot.readStructBegin();
5748
      while (true)
5749
      {
5750
        field = iprot.readFieldBegin();
3430 rajveer 5751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
477 rajveer 5752
          break;
5753
        }
3430 rajveer 5754
        switch (field.id) {
5755
          case 1: // DESTINATION_PINCODE
5756
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5757
              this.destination_pincode = iprot.readString();
5758
            } else { 
5759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5760
            }
5761
            break;
5762
          case 2: // ITEM_ID
5763
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5764
              this.item_id = iprot.readI64();
5765
              setItem_idIsSet(true);
5766
            } else { 
5767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5768
            }
5769
            break;
5770
          case 3: // TYPE
5771
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5772
              this.type = DeliveryType.findByValue(iprot.readI32());
5773
            } else { 
5774
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5775
            }
5776
            break;
5766 rajveer 5777
          case 4: // PICK_UP
5778
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5779
              this.pickUp = PickUpType.findByValue(iprot.readI32());
5780
            } else { 
5781
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5782
            }
5783
            break;
3430 rajveer 5784
          default:
5785
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
477 rajveer 5786
        }
3430 rajveer 5787
        iprot.readFieldEnd();
477 rajveer 5788
      }
5789
      iprot.readStructEnd();
5790
      validate();
5791
    }
5792
 
3430 rajveer 5793
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
477 rajveer 5794
      validate();
5795
 
5796
      oprot.writeStructBegin(STRUCT_DESC);
648 chandransh 5797
      if (this.destination_pincode != null) {
5798
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
5799
        oprot.writeString(this.destination_pincode);
477 rajveer 5800
        oprot.writeFieldEnd();
5801
      }
715 rajveer 5802
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
5803
      oprot.writeI64(this.item_id);
5804
      oprot.writeFieldEnd();
3044 chandransh 5805
      if (this.type != null) {
5806
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5807
        oprot.writeI32(this.type.getValue());
5808
        oprot.writeFieldEnd();
5809
      }
5766 rajveer 5810
      if (this.pickUp != null) {
5811
        oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
5812
        oprot.writeI32(this.pickUp.getValue());
5813
        oprot.writeFieldEnd();
5814
      }
477 rajveer 5815
      oprot.writeFieldStop();
5816
      oprot.writeStructEnd();
5817
    }
5818
 
5819
    @Override
5820
    public String toString() {
648 chandransh 5821
      StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
477 rajveer 5822
      boolean first = true;
5823
 
648 chandransh 5824
      sb.append("destination_pincode:");
5825
      if (this.destination_pincode == null) {
477 rajveer 5826
        sb.append("null");
5827
      } else {
648 chandransh 5828
        sb.append(this.destination_pincode);
477 rajveer 5829
      }
5830
      first = false;
5831
      if (!first) sb.append(", ");
648 chandransh 5832
      sb.append("item_id:");
715 rajveer 5833
      sb.append(this.item_id);
477 rajveer 5834
      first = false;
3044 chandransh 5835
      if (!first) sb.append(", ");
5836
      sb.append("type:");
5837
      if (this.type == null) {
5838
        sb.append("null");
5839
      } else {
5840
        sb.append(this.type);
5841
      }
5842
      first = false;
5766 rajveer 5843
      if (!first) sb.append(", ");
5844
      sb.append("pickUp:");
5845
      if (this.pickUp == null) {
5846
        sb.append("null");
5847
      } else {
5848
        sb.append(this.pickUp);
5849
      }
5850
      first = false;
477 rajveer 5851
      sb.append(")");
5852
      return sb.toString();
5853
    }
5854
 
3430 rajveer 5855
    public void validate() throws org.apache.thrift.TException {
477 rajveer 5856
      // check for required fields
5857
    }
5858
 
3430 rajveer 5859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5860
      try {
5861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5862
      } catch (org.apache.thrift.TException te) {
5863
        throw new java.io.IOException(te);
5864
      }
5865
    }
5866
 
5867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5868
      try {
5869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5870
      } catch (org.apache.thrift.TException te) {
5871
        throw new java.io.IOException(te);
5872
      }
5873
    }
5874
 
477 rajveer 5875
  }
5876
 
3430 rajveer 5877
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
5878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
477 rajveer 5879
 
3430 rajveer 5880
    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);
5881
    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 5882
 
3430 rajveer 5883
    private LogisticsInfo success; // required
5884
    private LogisticsServiceException se; // required
477 rajveer 5885
 
5886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 5888
      SUCCESS((short)0, "success"),
5889
      SE((short)1, "se");
477 rajveer 5890
 
5891
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5892
 
5893
      static {
5894
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5895
          byName.put(field.getFieldName(), field);
5896
        }
5897
      }
5898
 
5899
      /**
5900
       * Find the _Fields constant that matches fieldId, or null if its not found.
5901
       */
5902
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5903
        switch(fieldId) {
5904
          case 0: // SUCCESS
5905
            return SUCCESS;
5906
          case 1: // SE
5907
            return SE;
5908
          default:
5909
            return null;
5910
        }
477 rajveer 5911
      }
5912
 
5913
      /**
5914
       * Find the _Fields constant that matches fieldId, throwing an exception
5915
       * if it is not found.
5916
       */
5917
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5918
        _Fields fields = findByThriftId(fieldId);
5919
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5920
        return fields;
5921
      }
5922
 
5923
      /**
5924
       * Find the _Fields constant that matches name, or null if its not found.
5925
       */
5926
      public static _Fields findByName(String name) {
5927
        return byName.get(name);
5928
      }
5929
 
5930
      private final short _thriftId;
5931
      private final String _fieldName;
5932
 
5933
      _Fields(short thriftId, String fieldName) {
5934
        _thriftId = thriftId;
5935
        _fieldName = fieldName;
5936
      }
5937
 
5938
      public short getThriftFieldId() {
5939
        return _thriftId;
5940
      }
5941
 
5942
      public String getFieldName() {
5943
        return _fieldName;
5944
      }
5945
    }
5946
 
412 ashish 5947
    // isset id assignments
5948
 
3430 rajveer 5949
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 5950
    static {
3430 rajveer 5951
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5952
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5953
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
5954
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
412 ashish 5958
    }
5959
 
648 chandransh 5960
    public getLogisticsInfo_result() {
412 ashish 5961
    }
5962
 
648 chandransh 5963
    public getLogisticsInfo_result(
5964
      LogisticsInfo success,
5965
      LogisticsServiceException se)
412 ashish 5966
    {
5967
      this();
648 chandransh 5968
      this.success = success;
5969
      this.se = se;
412 ashish 5970
    }
5971
 
5972
    /**
5973
     * Performs a deep copy on <i>other</i>.
5974
     */
648 chandransh 5975
    public getLogisticsInfo_result(getLogisticsInfo_result other) {
5976
      if (other.isSetSuccess()) {
5977
        this.success = new LogisticsInfo(other.success);
412 ashish 5978
      }
648 chandransh 5979
      if (other.isSetSe()) {
5980
        this.se = new LogisticsServiceException(other.se);
5981
      }
412 ashish 5982
    }
5983
 
648 chandransh 5984
    public getLogisticsInfo_result deepCopy() {
5985
      return new getLogisticsInfo_result(this);
412 ashish 5986
    }
5987
 
3430 rajveer 5988
    @Override
5989
    public void clear() {
5990
      this.success = null;
5991
      this.se = null;
412 ashish 5992
    }
5993
 
648 chandransh 5994
    public LogisticsInfo getSuccess() {
5995
      return this.success;
412 ashish 5996
    }
5997
 
3430 rajveer 5998
    public void setSuccess(LogisticsInfo success) {
648 chandransh 5999
      this.success = success;
412 ashish 6000
    }
6001
 
648 chandransh 6002
    public void unsetSuccess() {
6003
      this.success = null;
412 ashish 6004
    }
6005
 
3430 rajveer 6006
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
648 chandransh 6007
    public boolean isSetSuccess() {
6008
      return this.success != null;
412 ashish 6009
    }
6010
 
648 chandransh 6011
    public void setSuccessIsSet(boolean value) {
412 ashish 6012
      if (!value) {
648 chandransh 6013
        this.success = null;
412 ashish 6014
      }
6015
    }
6016
 
648 chandransh 6017
    public LogisticsServiceException getSe() {
6018
      return this.se;
412 ashish 6019
    }
6020
 
3430 rajveer 6021
    public void setSe(LogisticsServiceException se) {
648 chandransh 6022
      this.se = se;
412 ashish 6023
    }
6024
 
648 chandransh 6025
    public void unsetSe() {
6026
      this.se = null;
412 ashish 6027
    }
6028
 
3430 rajveer 6029
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6030
    public boolean isSetSe() {
6031
      return this.se != null;
412 ashish 6032
    }
6033
 
648 chandransh 6034
    public void setSeIsSet(boolean value) {
6035
      if (!value) {
6036
        this.se = null;
6037
      }
412 ashish 6038
    }
6039
 
6040
    public void setFieldValue(_Fields field, Object value) {
6041
      switch (field) {
648 chandransh 6042
      case SUCCESS:
412 ashish 6043
        if (value == null) {
648 chandransh 6044
          unsetSuccess();
412 ashish 6045
        } else {
648 chandransh 6046
          setSuccess((LogisticsInfo)value);
412 ashish 6047
        }
6048
        break;
6049
 
648 chandransh 6050
      case SE:
412 ashish 6051
        if (value == null) {
648 chandransh 6052
          unsetSe();
412 ashish 6053
        } else {
648 chandransh 6054
          setSe((LogisticsServiceException)value);
412 ashish 6055
        }
6056
        break;
6057
 
6058
      }
6059
    }
6060
 
6061
    public Object getFieldValue(_Fields field) {
6062
      switch (field) {
648 chandransh 6063
      case SUCCESS:
6064
        return getSuccess();
412 ashish 6065
 
648 chandransh 6066
      case SE:
6067
        return getSe();
412 ashish 6068
 
6069
      }
6070
      throw new IllegalStateException();
6071
    }
6072
 
3430 rajveer 6073
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6074
    public boolean isSet(_Fields field) {
6075
      if (field == null) {
6076
        throw new IllegalArgumentException();
6077
      }
412 ashish 6078
 
6079
      switch (field) {
648 chandransh 6080
      case SUCCESS:
6081
        return isSetSuccess();
6082
      case SE:
6083
        return isSetSe();
412 ashish 6084
      }
6085
      throw new IllegalStateException();
6086
    }
6087
 
6088
    @Override
6089
    public boolean equals(Object that) {
6090
      if (that == null)
6091
        return false;
648 chandransh 6092
      if (that instanceof getLogisticsInfo_result)
6093
        return this.equals((getLogisticsInfo_result)that);
412 ashish 6094
      return false;
6095
    }
6096
 
648 chandransh 6097
    public boolean equals(getLogisticsInfo_result that) {
412 ashish 6098
      if (that == null)
6099
        return false;
6100
 
648 chandransh 6101
      boolean this_present_success = true && this.isSetSuccess();
6102
      boolean that_present_success = true && that.isSetSuccess();
6103
      if (this_present_success || that_present_success) {
6104
        if (!(this_present_success && that_present_success))
412 ashish 6105
          return false;
648 chandransh 6106
        if (!this.success.equals(that.success))
412 ashish 6107
          return false;
6108
      }
6109
 
648 chandransh 6110
      boolean this_present_se = true && this.isSetSe();
6111
      boolean that_present_se = true && that.isSetSe();
6112
      if (this_present_se || that_present_se) {
6113
        if (!(this_present_se && that_present_se))
412 ashish 6114
          return false;
648 chandransh 6115
        if (!this.se.equals(that.se))
412 ashish 6116
          return false;
6117
      }
6118
 
6119
      return true;
6120
    }
6121
 
6122
    @Override
6123
    public int hashCode() {
6124
      return 0;
6125
    }
6126
 
648 chandransh 6127
    public int compareTo(getLogisticsInfo_result other) {
412 ashish 6128
      if (!getClass().equals(other.getClass())) {
6129
        return getClass().getName().compareTo(other.getClass().getName());
6130
      }
6131
 
6132
      int lastComparison = 0;
648 chandransh 6133
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
412 ashish 6134
 
3430 rajveer 6135
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6136
      if (lastComparison != 0) {
6137
        return lastComparison;
6138
      }
3430 rajveer 6139
      if (isSetSuccess()) {
6140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6141
        if (lastComparison != 0) {
6142
          return lastComparison;
6143
        }
412 ashish 6144
      }
3430 rajveer 6145
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6146
      if (lastComparison != 0) {
6147
        return lastComparison;
6148
      }
3430 rajveer 6149
      if (isSetSe()) {
6150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6151
        if (lastComparison != 0) {
6152
          return lastComparison;
6153
        }
412 ashish 6154
      }
6155
      return 0;
6156
    }
6157
 
3430 rajveer 6158
    public _Fields fieldForId(int fieldId) {
6159
      return _Fields.findByThriftId(fieldId);
6160
    }
6161
 
6162
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6163
      org.apache.thrift.protocol.TField field;
412 ashish 6164
      iprot.readStructBegin();
6165
      while (true)
6166
      {
6167
        field = iprot.readFieldBegin();
3430 rajveer 6168
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6169
          break;
6170
        }
3430 rajveer 6171
        switch (field.id) {
6172
          case 0: // SUCCESS
6173
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6174
              this.success = new LogisticsInfo();
6175
              this.success.read(iprot);
6176
            } else { 
6177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6178
            }
6179
            break;
6180
          case 1: // SE
6181
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6182
              this.se = new LogisticsServiceException();
6183
              this.se.read(iprot);
6184
            } else { 
6185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6186
            }
6187
            break;
6188
          default:
6189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6190
        }
3430 rajveer 6191
        iprot.readFieldEnd();
412 ashish 6192
      }
6193
      iprot.readStructEnd();
6194
      validate();
6195
    }
6196
 
3430 rajveer 6197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 6198
      oprot.writeStructBegin(STRUCT_DESC);
412 ashish 6199
 
648 chandransh 6200
      if (this.isSetSuccess()) {
6201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6202
        this.success.write(oprot);
412 ashish 6203
        oprot.writeFieldEnd();
648 chandransh 6204
      } else if (this.isSetSe()) {
6205
        oprot.writeFieldBegin(SE_FIELD_DESC);
6206
        this.se.write(oprot);
6207
        oprot.writeFieldEnd();
412 ashish 6208
      }
6209
      oprot.writeFieldStop();
6210
      oprot.writeStructEnd();
6211
    }
6212
 
6213
    @Override
6214
    public String toString() {
648 chandransh 6215
      StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
412 ashish 6216
      boolean first = true;
6217
 
648 chandransh 6218
      sb.append("success:");
6219
      if (this.success == null) {
412 ashish 6220
        sb.append("null");
6221
      } else {
648 chandransh 6222
        sb.append(this.success);
412 ashish 6223
      }
6224
      first = false;
6225
      if (!first) sb.append(", ");
648 chandransh 6226
      sb.append("se:");
6227
      if (this.se == null) {
6228
        sb.append("null");
6229
      } else {
6230
        sb.append(this.se);
6231
      }
412 ashish 6232
      first = false;
6233
      sb.append(")");
6234
      return sb.toString();
6235
    }
6236
 
3430 rajveer 6237
    public void validate() throws org.apache.thrift.TException {
412 ashish 6238
      // check for required fields
6239
    }
6240
 
3430 rajveer 6241
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6242
      try {
6243
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6244
      } catch (org.apache.thrift.TException te) {
6245
        throw new java.io.IOException(te);
6246
      }
6247
    }
6248
 
6249
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6250
      try {
6251
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6252
      } catch (org.apache.thrift.TException te) {
6253
        throw new java.io.IOException(te);
6254
      }
6255
    }
6256
 
412 ashish 6257
  }
6258
 
3430 rajveer 6259
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
6260
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
412 ashish 6261
 
3430 rajveer 6262
    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 6263
    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 6264
 
3430 rajveer 6265
    private long providerId; // required
5247 rajveer 6266
    private DeliveryType type; // required
412 ashish 6267
 
6268
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6269
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5247 rajveer 6270
      PROVIDER_ID((short)1, "providerId"),
6271
      /**
6272
       * 
6273
       * @see DeliveryType
6274
       */
6275
      TYPE((short)-1, "type");
412 ashish 6276
 
6277
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6278
 
6279
      static {
6280
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6281
          byName.put(field.getFieldName(), field);
6282
        }
6283
      }
6284
 
6285
      /**
6286
       * Find the _Fields constant that matches fieldId, or null if its not found.
6287
       */
6288
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6289
        switch(fieldId) {
6290
          case 1: // PROVIDER_ID
6291
            return PROVIDER_ID;
5247 rajveer 6292
          case -1: // TYPE
6293
            return TYPE;
3430 rajveer 6294
          default:
6295
            return null;
6296
        }
412 ashish 6297
      }
6298
 
6299
      /**
6300
       * Find the _Fields constant that matches fieldId, throwing an exception
6301
       * if it is not found.
6302
       */
6303
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6304
        _Fields fields = findByThriftId(fieldId);
6305
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6306
        return fields;
6307
      }
6308
 
6309
      /**
6310
       * Find the _Fields constant that matches name, or null if its not found.
6311
       */
6312
      public static _Fields findByName(String name) {
6313
        return byName.get(name);
6314
      }
6315
 
6316
      private final short _thriftId;
6317
      private final String _fieldName;
6318
 
6319
      _Fields(short thriftId, String fieldName) {
6320
        _thriftId = thriftId;
6321
        _fieldName = fieldName;
6322
      }
6323
 
6324
      public short getThriftFieldId() {
6325
        return _thriftId;
6326
      }
6327
 
6328
      public String getFieldName() {
6329
        return _fieldName;
6330
      }
6331
    }
6332
 
6333
    // isset id assignments
648 chandransh 6334
    private static final int __PROVIDERID_ISSET_ID = 0;
412 ashish 6335
    private BitSet __isset_bit_vector = new BitSet(1);
6336
 
3430 rajveer 6337
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6338
    static {
3430 rajveer 6339
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6340
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6341
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5247 rajveer 6342
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6343
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
3430 rajveer 6344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
412 ashish 6346
    }
6347
 
6348
    public getEmptyAWB_args() {
6349
    }
6350
 
6351
    public getEmptyAWB_args(
5247 rajveer 6352
      long providerId,
6353
      DeliveryType type)
412 ashish 6354
    {
6355
      this();
648 chandransh 6356
      this.providerId = providerId;
6357
      setProviderIdIsSet(true);
5247 rajveer 6358
      this.type = type;
412 ashish 6359
    }
6360
 
6361
    /**
6362
     * Performs a deep copy on <i>other</i>.
6363
     */
6364
    public getEmptyAWB_args(getEmptyAWB_args other) {
6365
      __isset_bit_vector.clear();
6366
      __isset_bit_vector.or(other.__isset_bit_vector);
648 chandransh 6367
      this.providerId = other.providerId;
5247 rajveer 6368
      if (other.isSetType()) {
6369
        this.type = other.type;
6370
      }
412 ashish 6371
    }
6372
 
6373
    public getEmptyAWB_args deepCopy() {
6374
      return new getEmptyAWB_args(this);
6375
    }
6376
 
3430 rajveer 6377
    @Override
6378
    public void clear() {
6379
      setProviderIdIsSet(false);
6380
      this.providerId = 0;
5247 rajveer 6381
      this.type = null;
412 ashish 6382
    }
6383
 
648 chandransh 6384
    public long getProviderId() {
6385
      return this.providerId;
412 ashish 6386
    }
6387
 
3430 rajveer 6388
    public void setProviderId(long providerId) {
648 chandransh 6389
      this.providerId = providerId;
6390
      setProviderIdIsSet(true);
412 ashish 6391
    }
6392
 
648 chandransh 6393
    public void unsetProviderId() {
6394
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
412 ashish 6395
    }
6396
 
3430 rajveer 6397
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 6398
    public boolean isSetProviderId() {
6399
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
412 ashish 6400
    }
6401
 
648 chandransh 6402
    public void setProviderIdIsSet(boolean value) {
6403
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
412 ashish 6404
    }
6405
 
5247 rajveer 6406
    /**
6407
     * 
6408
     * @see DeliveryType
6409
     */
6410
    public DeliveryType getType() {
6411
      return this.type;
6412
    }
6413
 
6414
    /**
6415
     * 
6416
     * @see DeliveryType
6417
     */
6418
    public void setType(DeliveryType type) {
6419
      this.type = type;
6420
    }
6421
 
6422
    public void unsetType() {
6423
      this.type = null;
6424
    }
6425
 
6426
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6427
    public boolean isSetType() {
6428
      return this.type != null;
6429
    }
6430
 
6431
    public void setTypeIsSet(boolean value) {
6432
      if (!value) {
6433
        this.type = null;
6434
      }
6435
    }
6436
 
412 ashish 6437
    public void setFieldValue(_Fields field, Object value) {
6438
      switch (field) {
6439
      case PROVIDER_ID:
6440
        if (value == null) {
648 chandransh 6441
          unsetProviderId();
412 ashish 6442
        } else {
648 chandransh 6443
          setProviderId((Long)value);
412 ashish 6444
        }
6445
        break;
6446
 
5247 rajveer 6447
      case TYPE:
6448
        if (value == null) {
6449
          unsetType();
6450
        } else {
6451
          setType((DeliveryType)value);
6452
        }
6453
        break;
6454
 
412 ashish 6455
      }
6456
    }
6457
 
6458
    public Object getFieldValue(_Fields field) {
6459
      switch (field) {
6460
      case PROVIDER_ID:
3430 rajveer 6461
        return Long.valueOf(getProviderId());
412 ashish 6462
 
5247 rajveer 6463
      case TYPE:
6464
        return getType();
6465
 
412 ashish 6466
      }
6467
      throw new IllegalStateException();
6468
    }
6469
 
3430 rajveer 6470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6471
    public boolean isSet(_Fields field) {
6472
      if (field == null) {
6473
        throw new IllegalArgumentException();
6474
      }
412 ashish 6475
 
6476
      switch (field) {
6477
      case PROVIDER_ID:
648 chandransh 6478
        return isSetProviderId();
5247 rajveer 6479
      case TYPE:
6480
        return isSetType();
412 ashish 6481
      }
6482
      throw new IllegalStateException();
6483
    }
6484
 
6485
    @Override
6486
    public boolean equals(Object that) {
6487
      if (that == null)
6488
        return false;
6489
      if (that instanceof getEmptyAWB_args)
6490
        return this.equals((getEmptyAWB_args)that);
6491
      return false;
6492
    }
6493
 
6494
    public boolean equals(getEmptyAWB_args that) {
6495
      if (that == null)
6496
        return false;
6497
 
648 chandransh 6498
      boolean this_present_providerId = true;
6499
      boolean that_present_providerId = true;
6500
      if (this_present_providerId || that_present_providerId) {
6501
        if (!(this_present_providerId && that_present_providerId))
412 ashish 6502
          return false;
648 chandransh 6503
        if (this.providerId != that.providerId)
412 ashish 6504
          return false;
6505
      }
6506
 
5247 rajveer 6507
      boolean this_present_type = true && this.isSetType();
6508
      boolean that_present_type = true && that.isSetType();
6509
      if (this_present_type || that_present_type) {
6510
        if (!(this_present_type && that_present_type))
6511
          return false;
6512
        if (!this.type.equals(that.type))
6513
          return false;
6514
      }
6515
 
412 ashish 6516
      return true;
6517
    }
6518
 
6519
    @Override
6520
    public int hashCode() {
6521
      return 0;
6522
    }
6523
 
6524
    public int compareTo(getEmptyAWB_args other) {
6525
      if (!getClass().equals(other.getClass())) {
6526
        return getClass().getName().compareTo(other.getClass().getName());
6527
      }
6528
 
6529
      int lastComparison = 0;
6530
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
6531
 
3430 rajveer 6532
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
412 ashish 6533
      if (lastComparison != 0) {
6534
        return lastComparison;
6535
      }
3430 rajveer 6536
      if (isSetProviderId()) {
6537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
6538
        if (lastComparison != 0) {
6539
          return lastComparison;
6540
        }
412 ashish 6541
      }
5247 rajveer 6542
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
6543
      if (lastComparison != 0) {
6544
        return lastComparison;
6545
      }
6546
      if (isSetType()) {
6547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
6548
        if (lastComparison != 0) {
6549
          return lastComparison;
6550
        }
6551
      }
412 ashish 6552
      return 0;
6553
    }
6554
 
3430 rajveer 6555
    public _Fields fieldForId(int fieldId) {
6556
      return _Fields.findByThriftId(fieldId);
6557
    }
6558
 
6559
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6560
      org.apache.thrift.protocol.TField field;
412 ashish 6561
      iprot.readStructBegin();
6562
      while (true)
6563
      {
6564
        field = iprot.readFieldBegin();
3430 rajveer 6565
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6566
          break;
6567
        }
3430 rajveer 6568
        switch (field.id) {
6569
          case 1: // PROVIDER_ID
6570
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6571
              this.providerId = iprot.readI64();
6572
              setProviderIdIsSet(true);
6573
            } else { 
6574
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6575
            }
6576
            break;
5247 rajveer 6577
          case -1: // TYPE
6578
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6579
              this.type = DeliveryType.findByValue(iprot.readI32());
6580
            } else { 
6581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6582
            }
6583
            break;
3430 rajveer 6584
          default:
6585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6586
        }
3430 rajveer 6587
        iprot.readFieldEnd();
412 ashish 6588
      }
6589
      iprot.readStructEnd();
6590
      validate();
6591
    }
6592
 
3430 rajveer 6593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6594
      validate();
6595
 
6596
      oprot.writeStructBegin(STRUCT_DESC);
5247 rajveer 6597
      if (this.type != null) {
6598
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6599
        oprot.writeI32(this.type.getValue());
6600
        oprot.writeFieldEnd();
6601
      }
412 ashish 6602
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
648 chandransh 6603
      oprot.writeI64(this.providerId);
412 ashish 6604
      oprot.writeFieldEnd();
6605
      oprot.writeFieldStop();
6606
      oprot.writeStructEnd();
6607
    }
6608
 
6609
    @Override
6610
    public String toString() {
6611
      StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
6612
      boolean first = true;
6613
 
648 chandransh 6614
      sb.append("providerId:");
6615
      sb.append(this.providerId);
412 ashish 6616
      first = false;
5247 rajveer 6617
      if (!first) sb.append(", ");
6618
      sb.append("type:");
6619
      if (this.type == null) {
6620
        sb.append("null");
6621
      } else {
6622
        sb.append(this.type);
6623
      }
6624
      first = false;
412 ashish 6625
      sb.append(")");
6626
      return sb.toString();
6627
    }
6628
 
3430 rajveer 6629
    public void validate() throws org.apache.thrift.TException {
412 ashish 6630
      // check for required fields
6631
    }
6632
 
3430 rajveer 6633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6634
      try {
6635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6636
      } catch (org.apache.thrift.TException te) {
6637
        throw new java.io.IOException(te);
6638
      }
6639
    }
6640
 
6641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6642
      try {
6643
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6644
        __isset_bit_vector = new BitSet(1);
6645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6646
      } catch (org.apache.thrift.TException te) {
6647
        throw new java.io.IOException(te);
6648
      }
6649
    }
6650
 
412 ashish 6651
  }
6652
 
3430 rajveer 6653
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
6654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
412 ashish 6655
 
3430 rajveer 6656
    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);
6657
    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 6658
 
3430 rajveer 6659
    private String success; // required
6660
    private LogisticsServiceException se; // required
412 ashish 6661
 
6662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 6664
      SUCCESS((short)0, "success"),
6665
      SE((short)1, "se");
412 ashish 6666
 
6667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6668
 
6669
      static {
6670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6671
          byName.put(field.getFieldName(), field);
6672
        }
6673
      }
6674
 
6675
      /**
6676
       * Find the _Fields constant that matches fieldId, or null if its not found.
6677
       */
6678
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6679
        switch(fieldId) {
6680
          case 0: // SUCCESS
6681
            return SUCCESS;
6682
          case 1: // SE
6683
            return SE;
6684
          default:
6685
            return null;
6686
        }
412 ashish 6687
      }
6688
 
6689
      /**
6690
       * Find the _Fields constant that matches fieldId, throwing an exception
6691
       * if it is not found.
6692
       */
6693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6694
        _Fields fields = findByThriftId(fieldId);
6695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6696
        return fields;
6697
      }
6698
 
6699
      /**
6700
       * Find the _Fields constant that matches name, or null if its not found.
6701
       */
6702
      public static _Fields findByName(String name) {
6703
        return byName.get(name);
6704
      }
6705
 
6706
      private final short _thriftId;
6707
      private final String _fieldName;
6708
 
6709
      _Fields(short thriftId, String fieldName) {
6710
        _thriftId = thriftId;
6711
        _fieldName = fieldName;
6712
      }
6713
 
6714
      public short getThriftFieldId() {
6715
        return _thriftId;
6716
      }
6717
 
6718
      public String getFieldName() {
6719
        return _fieldName;
6720
      }
6721
    }
6722
 
6723
    // isset id assignments
6724
 
3430 rajveer 6725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 6726
    static {
3430 rajveer 6727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6728
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6729
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6730
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
412 ashish 6734
    }
6735
 
6736
    public getEmptyAWB_result() {
6737
    }
6738
 
6739
    public getEmptyAWB_result(
648 chandransh 6740
      String success,
6741
      LogisticsServiceException se)
412 ashish 6742
    {
6743
      this();
6744
      this.success = success;
648 chandransh 6745
      this.se = se;
412 ashish 6746
    }
6747
 
6748
    /**
6749
     * Performs a deep copy on <i>other</i>.
6750
     */
6751
    public getEmptyAWB_result(getEmptyAWB_result other) {
6752
      if (other.isSetSuccess()) {
6753
        this.success = other.success;
6754
      }
648 chandransh 6755
      if (other.isSetSe()) {
6756
        this.se = new LogisticsServiceException(other.se);
6757
      }
412 ashish 6758
    }
6759
 
6760
    public getEmptyAWB_result deepCopy() {
6761
      return new getEmptyAWB_result(this);
6762
    }
6763
 
3430 rajveer 6764
    @Override
6765
    public void clear() {
6766
      this.success = null;
6767
      this.se = null;
412 ashish 6768
    }
6769
 
6770
    public String getSuccess() {
6771
      return this.success;
6772
    }
6773
 
3430 rajveer 6774
    public void setSuccess(String success) {
412 ashish 6775
      this.success = success;
6776
    }
6777
 
6778
    public void unsetSuccess() {
6779
      this.success = null;
6780
    }
6781
 
3430 rajveer 6782
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 6783
    public boolean isSetSuccess() {
6784
      return this.success != null;
6785
    }
6786
 
6787
    public void setSuccessIsSet(boolean value) {
6788
      if (!value) {
6789
        this.success = null;
6790
      }
6791
    }
6792
 
648 chandransh 6793
    public LogisticsServiceException getSe() {
6794
      return this.se;
412 ashish 6795
    }
6796
 
3430 rajveer 6797
    public void setSe(LogisticsServiceException se) {
648 chandransh 6798
      this.se = se;
412 ashish 6799
    }
6800
 
648 chandransh 6801
    public void unsetSe() {
6802
      this.se = null;
412 ashish 6803
    }
6804
 
3430 rajveer 6805
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 6806
    public boolean isSetSe() {
6807
      return this.se != null;
412 ashish 6808
    }
6809
 
648 chandransh 6810
    public void setSeIsSet(boolean value) {
412 ashish 6811
      if (!value) {
648 chandransh 6812
        this.se = null;
412 ashish 6813
      }
6814
    }
6815
 
6816
    public void setFieldValue(_Fields field, Object value) {
6817
      switch (field) {
6818
      case SUCCESS:
6819
        if (value == null) {
6820
          unsetSuccess();
6821
        } else {
648 chandransh 6822
          setSuccess((String)value);
412 ashish 6823
        }
6824
        break;
6825
 
648 chandransh 6826
      case SE:
6827
        if (value == null) {
6828
          unsetSe();
6829
        } else {
6830
          setSe((LogisticsServiceException)value);
6831
        }
6832
        break;
6833
 
412 ashish 6834
      }
6835
    }
6836
 
6837
    public Object getFieldValue(_Fields field) {
6838
      switch (field) {
6839
      case SUCCESS:
6840
        return getSuccess();
6841
 
648 chandransh 6842
      case SE:
6843
        return getSe();
6844
 
412 ashish 6845
      }
6846
      throw new IllegalStateException();
6847
    }
6848
 
3430 rajveer 6849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6850
    public boolean isSet(_Fields field) {
6851
      if (field == null) {
6852
        throw new IllegalArgumentException();
6853
      }
412 ashish 6854
 
6855
      switch (field) {
6856
      case SUCCESS:
6857
        return isSetSuccess();
648 chandransh 6858
      case SE:
6859
        return isSetSe();
412 ashish 6860
      }
6861
      throw new IllegalStateException();
6862
    }
6863
 
6864
    @Override
6865
    public boolean equals(Object that) {
6866
      if (that == null)
6867
        return false;
648 chandransh 6868
      if (that instanceof getEmptyAWB_result)
6869
        return this.equals((getEmptyAWB_result)that);
412 ashish 6870
      return false;
6871
    }
6872
 
648 chandransh 6873
    public boolean equals(getEmptyAWB_result that) {
412 ashish 6874
      if (that == null)
6875
        return false;
6876
 
6877
      boolean this_present_success = true && this.isSetSuccess();
6878
      boolean that_present_success = true && that.isSetSuccess();
6879
      if (this_present_success || that_present_success) {
6880
        if (!(this_present_success && that_present_success))
6881
          return false;
6882
        if (!this.success.equals(that.success))
6883
          return false;
6884
      }
6885
 
648 chandransh 6886
      boolean this_present_se = true && this.isSetSe();
6887
      boolean that_present_se = true && that.isSetSe();
6888
      if (this_present_se || that_present_se) {
6889
        if (!(this_present_se && that_present_se))
6890
          return false;
6891
        if (!this.se.equals(that.se))
6892
          return false;
6893
      }
6894
 
412 ashish 6895
      return true;
6896
    }
6897
 
6898
    @Override
6899
    public int hashCode() {
6900
      return 0;
6901
    }
6902
 
648 chandransh 6903
    public int compareTo(getEmptyAWB_result other) {
412 ashish 6904
      if (!getClass().equals(other.getClass())) {
6905
        return getClass().getName().compareTo(other.getClass().getName());
6906
      }
6907
 
6908
      int lastComparison = 0;
648 chandransh 6909
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
412 ashish 6910
 
3430 rajveer 6911
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 6912
      if (lastComparison != 0) {
6913
        return lastComparison;
6914
      }
3430 rajveer 6915
      if (isSetSuccess()) {
6916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6917
        if (lastComparison != 0) {
6918
          return lastComparison;
6919
        }
412 ashish 6920
      }
3430 rajveer 6921
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 6922
      if (lastComparison != 0) {
6923
        return lastComparison;
6924
      }
3430 rajveer 6925
      if (isSetSe()) {
6926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6927
        if (lastComparison != 0) {
6928
          return lastComparison;
6929
        }
412 ashish 6930
      }
6931
      return 0;
6932
    }
6933
 
3430 rajveer 6934
    public _Fields fieldForId(int fieldId) {
6935
      return _Fields.findByThriftId(fieldId);
6936
    }
6937
 
6938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6939
      org.apache.thrift.protocol.TField field;
412 ashish 6940
      iprot.readStructBegin();
6941
      while (true)
6942
      {
6943
        field = iprot.readFieldBegin();
3430 rajveer 6944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 6945
          break;
6946
        }
3430 rajveer 6947
        switch (field.id) {
6948
          case 0: // SUCCESS
6949
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6950
              this.success = iprot.readString();
6951
            } else { 
6952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6953
            }
6954
            break;
6955
          case 1: // SE
6956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6957
              this.se = new LogisticsServiceException();
6958
              this.se.read(iprot);
6959
            } else { 
6960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6961
            }
6962
            break;
6963
          default:
6964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 6965
        }
3430 rajveer 6966
        iprot.readFieldEnd();
412 ashish 6967
      }
6968
      iprot.readStructEnd();
6969
      validate();
6970
    }
6971
 
3430 rajveer 6972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 6973
      oprot.writeStructBegin(STRUCT_DESC);
6974
 
6975
      if (this.isSetSuccess()) {
6976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
648 chandransh 6977
        oprot.writeString(this.success);
412 ashish 6978
        oprot.writeFieldEnd();
648 chandransh 6979
      } else if (this.isSetSe()) {
6980
        oprot.writeFieldBegin(SE_FIELD_DESC);
6981
        this.se.write(oprot);
6982
        oprot.writeFieldEnd();
412 ashish 6983
      }
6984
      oprot.writeFieldStop();
6985
      oprot.writeStructEnd();
6986
    }
6987
 
6988
    @Override
6989
    public String toString() {
648 chandransh 6990
      StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
412 ashish 6991
      boolean first = true;
6992
 
6993
      sb.append("success:");
6994
      if (this.success == null) {
6995
        sb.append("null");
6996
      } else {
6997
        sb.append(this.success);
6998
      }
6999
      first = false;
648 chandransh 7000
      if (!first) sb.append(", ");
7001
      sb.append("se:");
7002
      if (this.se == null) {
442 rajveer 7003
        sb.append("null");
7004
      } else {
648 chandransh 7005
        sb.append(this.se);
442 rajveer 7006
      }
7007
      first = false;
7008
      sb.append(")");
7009
      return sb.toString();
7010
    }
7011
 
3430 rajveer 7012
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7013
      // check for required fields
7014
    }
7015
 
3430 rajveer 7016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7017
      try {
7018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7019
      } catch (org.apache.thrift.TException te) {
7020
        throw new java.io.IOException(te);
7021
      }
7022
    }
7023
 
7024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7025
      try {
7026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7027
      } catch (org.apache.thrift.TException te) {
7028
        throw new java.io.IOException(te);
7029
      }
7030
    }
7031
 
442 rajveer 7032
  }
7033
 
3430 rajveer 7034
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
442 rajveer 7036
 
6643 rajveer 7037
    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 7038
    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 7039
 
6643 rajveer 7040
    private String awbNumber; // required
3430 rajveer 7041
    private long providerId; // required
442 rajveer 7042
 
7043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6643 rajveer 7045
      AWB_NUMBER((short)1, "awbNumber"),
648 chandransh 7046
      PROVIDER_ID((short)2, "providerId");
442 rajveer 7047
 
7048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7049
 
7050
      static {
7051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7052
          byName.put(field.getFieldName(), field);
7053
        }
7054
      }
7055
 
7056
      /**
7057
       * Find the _Fields constant that matches fieldId, or null if its not found.
7058
       */
7059
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7060
        switch(fieldId) {
6643 rajveer 7061
          case 1: // AWB_NUMBER
7062
            return AWB_NUMBER;
3430 rajveer 7063
          case 2: // PROVIDER_ID
7064
            return PROVIDER_ID;
7065
          default:
7066
            return null;
7067
        }
442 rajveer 7068
      }
7069
 
7070
      /**
7071
       * Find the _Fields constant that matches fieldId, throwing an exception
7072
       * if it is not found.
7073
       */
7074
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7075
        _Fields fields = findByThriftId(fieldId);
7076
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7077
        return fields;
7078
      }
7079
 
7080
      /**
7081
       * Find the _Fields constant that matches name, or null if its not found.
7082
       */
7083
      public static _Fields findByName(String name) {
7084
        return byName.get(name);
7085
      }
7086
 
7087
      private final short _thriftId;
7088
      private final String _fieldName;
7089
 
7090
      _Fields(short thriftId, String fieldName) {
7091
        _thriftId = thriftId;
7092
        _fieldName = fieldName;
7093
      }
7094
 
7095
      public short getThriftFieldId() {
7096
        return _thriftId;
7097
      }
7098
 
7099
      public String getFieldName() {
7100
        return _fieldName;
7101
      }
7102
    }
7103
 
7104
    // isset id assignments
648 chandransh 7105
    private static final int __PROVIDERID_ISSET_ID = 0;
7106
    private BitSet __isset_bit_vector = new BitSet(1);
442 rajveer 7107
 
3430 rajveer 7108
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
442 rajveer 7109
    static {
3430 rajveer 7110
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6643 rajveer 7111
      tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 7112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7113
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7114
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
442 rajveer 7117
    }
7118
 
648 chandransh 7119
    public getShipmentInfo_args() {
442 rajveer 7120
    }
7121
 
648 chandransh 7122
    public getShipmentInfo_args(
6643 rajveer 7123
      String awbNumber,
648 chandransh 7124
      long providerId)
442 rajveer 7125
    {
7126
      this();
6643 rajveer 7127
      this.awbNumber = awbNumber;
648 chandransh 7128
      this.providerId = providerId;
7129
      setProviderIdIsSet(true);
442 rajveer 7130
    }
7131
 
7132
    /**
7133
     * Performs a deep copy on <i>other</i>.
7134
     */
648 chandransh 7135
    public getShipmentInfo_args(getShipmentInfo_args other) {
7136
      __isset_bit_vector.clear();
7137
      __isset_bit_vector.or(other.__isset_bit_vector);
6643 rajveer 7138
      if (other.isSetAwbNumber()) {
7139
        this.awbNumber = other.awbNumber;
442 rajveer 7140
      }
648 chandransh 7141
      this.providerId = other.providerId;
442 rajveer 7142
    }
7143
 
648 chandransh 7144
    public getShipmentInfo_args deepCopy() {
7145
      return new getShipmentInfo_args(this);
442 rajveer 7146
    }
7147
 
3430 rajveer 7148
    @Override
7149
    public void clear() {
6643 rajveer 7150
      this.awbNumber = null;
3430 rajveer 7151
      setProviderIdIsSet(false);
7152
      this.providerId = 0;
442 rajveer 7153
    }
7154
 
6643 rajveer 7155
    public String getAwbNumber() {
7156
      return this.awbNumber;
442 rajveer 7157
    }
7158
 
6643 rajveer 7159
    public void setAwbNumber(String awbNumber) {
7160
      this.awbNumber = awbNumber;
442 rajveer 7161
    }
7162
 
6643 rajveer 7163
    public void unsetAwbNumber() {
7164
      this.awbNumber = null;
442 rajveer 7165
    }
7166
 
6643 rajveer 7167
    /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
7168
    public boolean isSetAwbNumber() {
7169
      return this.awbNumber != null;
442 rajveer 7170
    }
7171
 
6643 rajveer 7172
    public void setAwbNumberIsSet(boolean value) {
442 rajveer 7173
      if (!value) {
6643 rajveer 7174
        this.awbNumber = null;
442 rajveer 7175
      }
7176
    }
7177
 
648 chandransh 7178
    public long getProviderId() {
7179
      return this.providerId;
442 rajveer 7180
    }
7181
 
3430 rajveer 7182
    public void setProviderId(long providerId) {
648 chandransh 7183
      this.providerId = providerId;
7184
      setProviderIdIsSet(true);
442 rajveer 7185
    }
7186
 
648 chandransh 7187
    public void unsetProviderId() {
7188
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
442 rajveer 7189
    }
7190
 
3430 rajveer 7191
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
648 chandransh 7192
    public boolean isSetProviderId() {
7193
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
442 rajveer 7194
    }
7195
 
648 chandransh 7196
    public void setProviderIdIsSet(boolean value) {
7197
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
442 rajveer 7198
    }
7199
 
7200
    public void setFieldValue(_Fields field, Object value) {
7201
      switch (field) {
6643 rajveer 7202
      case AWB_NUMBER:
442 rajveer 7203
        if (value == null) {
6643 rajveer 7204
          unsetAwbNumber();
442 rajveer 7205
        } else {
6643 rajveer 7206
          setAwbNumber((String)value);
442 rajveer 7207
        }
7208
        break;
7209
 
648 chandransh 7210
      case PROVIDER_ID:
442 rajveer 7211
        if (value == null) {
648 chandransh 7212
          unsetProviderId();
442 rajveer 7213
        } else {
648 chandransh 7214
          setProviderId((Long)value);
442 rajveer 7215
        }
7216
        break;
7217
 
7218
      }
7219
    }
7220
 
7221
    public Object getFieldValue(_Fields field) {
7222
      switch (field) {
6643 rajveer 7223
      case AWB_NUMBER:
7224
        return getAwbNumber();
442 rajveer 7225
 
648 chandransh 7226
      case PROVIDER_ID:
3430 rajveer 7227
        return Long.valueOf(getProviderId());
442 rajveer 7228
 
7229
      }
7230
      throw new IllegalStateException();
7231
    }
7232
 
3430 rajveer 7233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7234
    public boolean isSet(_Fields field) {
7235
      if (field == null) {
7236
        throw new IllegalArgumentException();
7237
      }
442 rajveer 7238
 
7239
      switch (field) {
6643 rajveer 7240
      case AWB_NUMBER:
7241
        return isSetAwbNumber();
648 chandransh 7242
      case PROVIDER_ID:
7243
        return isSetProviderId();
442 rajveer 7244
      }
7245
      throw new IllegalStateException();
7246
    }
7247
 
7248
    @Override
7249
    public boolean equals(Object that) {
7250
      if (that == null)
7251
        return false;
648 chandransh 7252
      if (that instanceof getShipmentInfo_args)
7253
        return this.equals((getShipmentInfo_args)that);
442 rajveer 7254
      return false;
7255
    }
7256
 
648 chandransh 7257
    public boolean equals(getShipmentInfo_args that) {
442 rajveer 7258
      if (that == null)
7259
        return false;
7260
 
6643 rajveer 7261
      boolean this_present_awbNumber = true && this.isSetAwbNumber();
7262
      boolean that_present_awbNumber = true && that.isSetAwbNumber();
7263
      if (this_present_awbNumber || that_present_awbNumber) {
7264
        if (!(this_present_awbNumber && that_present_awbNumber))
442 rajveer 7265
          return false;
6643 rajveer 7266
        if (!this.awbNumber.equals(that.awbNumber))
442 rajveer 7267
          return false;
7268
      }
7269
 
648 chandransh 7270
      boolean this_present_providerId = true;
7271
      boolean that_present_providerId = true;
7272
      if (this_present_providerId || that_present_providerId) {
7273
        if (!(this_present_providerId && that_present_providerId))
442 rajveer 7274
          return false;
648 chandransh 7275
        if (this.providerId != that.providerId)
442 rajveer 7276
          return false;
7277
      }
7278
 
7279
      return true;
7280
    }
7281
 
7282
    @Override
7283
    public int hashCode() {
7284
      return 0;
7285
    }
7286
 
648 chandransh 7287
    public int compareTo(getShipmentInfo_args other) {
442 rajveer 7288
      if (!getClass().equals(other.getClass())) {
7289
        return getClass().getName().compareTo(other.getClass().getName());
7290
      }
7291
 
7292
      int lastComparison = 0;
648 chandransh 7293
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
442 rajveer 7294
 
6643 rajveer 7295
      lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
442 rajveer 7296
      if (lastComparison != 0) {
7297
        return lastComparison;
7298
      }
6643 rajveer 7299
      if (isSetAwbNumber()) {
7300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
3430 rajveer 7301
        if (lastComparison != 0) {
7302
          return lastComparison;
7303
        }
442 rajveer 7304
      }
3430 rajveer 7305
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
442 rajveer 7306
      if (lastComparison != 0) {
7307
        return lastComparison;
7308
      }
3430 rajveer 7309
      if (isSetProviderId()) {
7310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
7311
        if (lastComparison != 0) {
7312
          return lastComparison;
7313
        }
442 rajveer 7314
      }
7315
      return 0;
7316
    }
7317
 
3430 rajveer 7318
    public _Fields fieldForId(int fieldId) {
7319
      return _Fields.findByThriftId(fieldId);
7320
    }
7321
 
7322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7323
      org.apache.thrift.protocol.TField field;
442 rajveer 7324
      iprot.readStructBegin();
7325
      while (true)
7326
      {
7327
        field = iprot.readFieldBegin();
3430 rajveer 7328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
442 rajveer 7329
          break;
7330
        }
3430 rajveer 7331
        switch (field.id) {
6643 rajveer 7332
          case 1: // AWB_NUMBER
3430 rajveer 7333
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6643 rajveer 7334
              this.awbNumber = iprot.readString();
3430 rajveer 7335
            } else { 
7336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7337
            }
7338
            break;
7339
          case 2: // PROVIDER_ID
7340
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7341
              this.providerId = iprot.readI64();
7342
              setProviderIdIsSet(true);
7343
            } else { 
7344
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7345
            }
7346
            break;
7347
          default:
7348
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
442 rajveer 7349
        }
3430 rajveer 7350
        iprot.readFieldEnd();
442 rajveer 7351
      }
7352
      iprot.readStructEnd();
7353
      validate();
7354
    }
7355
 
3430 rajveer 7356
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
442 rajveer 7357
      validate();
7358
 
7359
      oprot.writeStructBegin(STRUCT_DESC);
6643 rajveer 7360
      if (this.awbNumber != null) {
7361
        oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
7362
        oprot.writeString(this.awbNumber);
442 rajveer 7363
        oprot.writeFieldEnd();
7364
      }
648 chandransh 7365
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
7366
      oprot.writeI64(this.providerId);
7367
      oprot.writeFieldEnd();
442 rajveer 7368
      oprot.writeFieldStop();
7369
      oprot.writeStructEnd();
7370
    }
7371
 
7372
    @Override
7373
    public String toString() {
648 chandransh 7374
      StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
442 rajveer 7375
      boolean first = true;
7376
 
6643 rajveer 7377
      sb.append("awbNumber:");
7378
      if (this.awbNumber == null) {
442 rajveer 7379
        sb.append("null");
7380
      } else {
6643 rajveer 7381
        sb.append(this.awbNumber);
442 rajveer 7382
      }
7383
      first = false;
7384
      if (!first) sb.append(", ");
648 chandransh 7385
      sb.append("providerId:");
7386
      sb.append(this.providerId);
442 rajveer 7387
      first = false;
7388
      sb.append(")");
7389
      return sb.toString();
7390
    }
7391
 
3430 rajveer 7392
    public void validate() throws org.apache.thrift.TException {
442 rajveer 7393
      // check for required fields
7394
    }
7395
 
3430 rajveer 7396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7397
      try {
7398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7399
      } catch (org.apache.thrift.TException te) {
7400
        throw new java.io.IOException(te);
7401
      }
7402
    }
7403
 
7404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7405
      try {
7406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7407
      } catch (org.apache.thrift.TException te) {
7408
        throw new java.io.IOException(te);
7409
      }
7410
    }
7411
 
442 rajveer 7412
  }
7413
 
3430 rajveer 7414
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
7415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
412 ashish 7416
 
3430 rajveer 7417
    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);
7418
    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 7419
 
3430 rajveer 7420
    private List<AwbUpdate> success; // required
7421
    private LogisticsServiceException se; // required
412 ashish 7422
 
7423
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7424
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 7425
      SUCCESS((short)0, "success"),
7426
      SE((short)1, "se");
412 ashish 7427
 
7428
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7429
 
7430
      static {
7431
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7432
          byName.put(field.getFieldName(), field);
7433
        }
7434
      }
7435
 
7436
      /**
7437
       * Find the _Fields constant that matches fieldId, or null if its not found.
7438
       */
7439
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7440
        switch(fieldId) {
7441
          case 0: // SUCCESS
7442
            return SUCCESS;
7443
          case 1: // SE
7444
            return SE;
7445
          default:
7446
            return null;
7447
        }
412 ashish 7448
      }
7449
 
7450
      /**
7451
       * Find the _Fields constant that matches fieldId, throwing an exception
7452
       * if it is not found.
7453
       */
7454
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7455
        _Fields fields = findByThriftId(fieldId);
7456
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7457
        return fields;
7458
      }
7459
 
7460
      /**
7461
       * Find the _Fields constant that matches name, or null if its not found.
7462
       */
7463
      public static _Fields findByName(String name) {
7464
        return byName.get(name);
7465
      }
7466
 
7467
      private final short _thriftId;
7468
      private final String _fieldName;
7469
 
7470
      _Fields(short thriftId, String fieldName) {
7471
        _thriftId = thriftId;
7472
        _fieldName = fieldName;
7473
      }
7474
 
7475
      public short getThriftFieldId() {
7476
        return _thriftId;
7477
      }
7478
 
7479
      public String getFieldName() {
7480
        return _fieldName;
7481
      }
7482
    }
7483
 
7484
    // isset id assignments
7485
 
3430 rajveer 7486
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
412 ashish 7487
    static {
3430 rajveer 7488
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7489
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7490
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7491
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
7492
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7494
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7495
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
412 ashish 7496
    }
7497
 
7498
    public getShipmentInfo_result() {
7499
    }
7500
 
7501
    public getShipmentInfo_result(
648 chandransh 7502
      List<AwbUpdate> success,
7503
      LogisticsServiceException se)
412 ashish 7504
    {
7505
      this();
7506
      this.success = success;
648 chandransh 7507
      this.se = se;
412 ashish 7508
    }
7509
 
7510
    /**
7511
     * Performs a deep copy on <i>other</i>.
7512
     */
7513
    public getShipmentInfo_result(getShipmentInfo_result other) {
7514
      if (other.isSetSuccess()) {
648 chandransh 7515
        List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
7516
        for (AwbUpdate other_element : other.success) {
7517
          __this__success.add(new AwbUpdate(other_element));
7518
        }
7519
        this.success = __this__success;
412 ashish 7520
      }
648 chandransh 7521
      if (other.isSetSe()) {
7522
        this.se = new LogisticsServiceException(other.se);
7523
      }
412 ashish 7524
    }
7525
 
7526
    public getShipmentInfo_result deepCopy() {
7527
      return new getShipmentInfo_result(this);
7528
    }
7529
 
3430 rajveer 7530
    @Override
7531
    public void clear() {
7532
      this.success = null;
7533
      this.se = null;
412 ashish 7534
    }
7535
 
7536
    public int getSuccessSize() {
7537
      return (this.success == null) ? 0 : this.success.size();
7538
    }
7539
 
648 chandransh 7540
    public java.util.Iterator<AwbUpdate> getSuccessIterator() {
412 ashish 7541
      return (this.success == null) ? null : this.success.iterator();
7542
    }
7543
 
648 chandransh 7544
    public void addToSuccess(AwbUpdate elem) {
412 ashish 7545
      if (this.success == null) {
648 chandransh 7546
        this.success = new ArrayList<AwbUpdate>();
412 ashish 7547
      }
7548
      this.success.add(elem);
7549
    }
7550
 
648 chandransh 7551
    public List<AwbUpdate> getSuccess() {
412 ashish 7552
      return this.success;
7553
    }
7554
 
3430 rajveer 7555
    public void setSuccess(List<AwbUpdate> success) {
412 ashish 7556
      this.success = success;
7557
    }
7558
 
7559
    public void unsetSuccess() {
7560
      this.success = null;
7561
    }
7562
 
3430 rajveer 7563
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
412 ashish 7564
    public boolean isSetSuccess() {
7565
      return this.success != null;
7566
    }
7567
 
7568
    public void setSuccessIsSet(boolean value) {
7569
      if (!value) {
7570
        this.success = null;
7571
      }
7572
    }
7573
 
648 chandransh 7574
    public LogisticsServiceException getSe() {
7575
      return this.se;
412 ashish 7576
    }
7577
 
3430 rajveer 7578
    public void setSe(LogisticsServiceException se) {
648 chandransh 7579
      this.se = se;
412 ashish 7580
    }
7581
 
648 chandransh 7582
    public void unsetSe() {
7583
      this.se = null;
412 ashish 7584
    }
7585
 
3430 rajveer 7586
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
648 chandransh 7587
    public boolean isSetSe() {
7588
      return this.se != null;
412 ashish 7589
    }
7590
 
648 chandransh 7591
    public void setSeIsSet(boolean value) {
7592
      if (!value) {
7593
        this.se = null;
412 ashish 7594
      }
7595
    }
7596
 
7597
    public void setFieldValue(_Fields field, Object value) {
7598
      switch (field) {
648 chandransh 7599
      case SUCCESS:
412 ashish 7600
        if (value == null) {
648 chandransh 7601
          unsetSuccess();
412 ashish 7602
        } else {
648 chandransh 7603
          setSuccess((List<AwbUpdate>)value);
412 ashish 7604
        }
7605
        break;
7606
 
648 chandransh 7607
      case SE:
412 ashish 7608
        if (value == null) {
648 chandransh 7609
          unsetSe();
412 ashish 7610
        } else {
648 chandransh 7611
          setSe((LogisticsServiceException)value);
412 ashish 7612
        }
7613
        break;
7614
 
7615
      }
7616
    }
7617
 
7618
    public Object getFieldValue(_Fields field) {
7619
      switch (field) {
648 chandransh 7620
      case SUCCESS:
7621
        return getSuccess();
412 ashish 7622
 
648 chandransh 7623
      case SE:
7624
        return getSe();
412 ashish 7625
 
7626
      }
7627
      throw new IllegalStateException();
7628
    }
7629
 
3430 rajveer 7630
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7631
    public boolean isSet(_Fields field) {
7632
      if (field == null) {
7633
        throw new IllegalArgumentException();
7634
      }
412 ashish 7635
 
7636
      switch (field) {
648 chandransh 7637
      case SUCCESS:
7638
        return isSetSuccess();
7639
      case SE:
7640
        return isSetSe();
412 ashish 7641
      }
7642
      throw new IllegalStateException();
7643
    }
7644
 
7645
    @Override
7646
    public boolean equals(Object that) {
7647
      if (that == null)
7648
        return false;
648 chandransh 7649
      if (that instanceof getShipmentInfo_result)
7650
        return this.equals((getShipmentInfo_result)that);
412 ashish 7651
      return false;
7652
    }
7653
 
648 chandransh 7654
    public boolean equals(getShipmentInfo_result that) {
412 ashish 7655
      if (that == null)
7656
        return false;
7657
 
648 chandransh 7658
      boolean this_present_success = true && this.isSetSuccess();
7659
      boolean that_present_success = true && that.isSetSuccess();
7660
      if (this_present_success || that_present_success) {
7661
        if (!(this_present_success && that_present_success))
412 ashish 7662
          return false;
648 chandransh 7663
        if (!this.success.equals(that.success))
412 ashish 7664
          return false;
7665
      }
7666
 
648 chandransh 7667
      boolean this_present_se = true && this.isSetSe();
7668
      boolean that_present_se = true && that.isSetSe();
7669
      if (this_present_se || that_present_se) {
7670
        if (!(this_present_se && that_present_se))
412 ashish 7671
          return false;
648 chandransh 7672
        if (!this.se.equals(that.se))
412 ashish 7673
          return false;
7674
      }
7675
 
7676
      return true;
7677
    }
7678
 
7679
    @Override
7680
    public int hashCode() {
7681
      return 0;
7682
    }
7683
 
648 chandransh 7684
    public int compareTo(getShipmentInfo_result other) {
412 ashish 7685
      if (!getClass().equals(other.getClass())) {
7686
        return getClass().getName().compareTo(other.getClass().getName());
7687
      }
7688
 
7689
      int lastComparison = 0;
648 chandransh 7690
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
412 ashish 7691
 
3430 rajveer 7692
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
412 ashish 7693
      if (lastComparison != 0) {
7694
        return lastComparison;
7695
      }
3430 rajveer 7696
      if (isSetSuccess()) {
7697
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7698
        if (lastComparison != 0) {
7699
          return lastComparison;
7700
        }
412 ashish 7701
      }
3430 rajveer 7702
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
412 ashish 7703
      if (lastComparison != 0) {
7704
        return lastComparison;
7705
      }
3430 rajveer 7706
      if (isSetSe()) {
7707
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7708
        if (lastComparison != 0) {
7709
          return lastComparison;
7710
        }
412 ashish 7711
      }
7712
      return 0;
7713
    }
7714
 
3430 rajveer 7715
    public _Fields fieldForId(int fieldId) {
7716
      return _Fields.findByThriftId(fieldId);
7717
    }
7718
 
7719
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7720
      org.apache.thrift.protocol.TField field;
412 ashish 7721
      iprot.readStructBegin();
7722
      while (true)
7723
      {
7724
        field = iprot.readFieldBegin();
3430 rajveer 7725
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
412 ashish 7726
          break;
7727
        }
3430 rajveer 7728
        switch (field.id) {
7729
          case 0: // SUCCESS
7730
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7731
              {
7792 anupam.sin 7732
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
7733
                this.success = new ArrayList<AwbUpdate>(_list8.size);
7734
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
412 ashish 7735
                {
7792 anupam.sin 7736
                  AwbUpdate _elem10; // required
7737
                  _elem10 = new AwbUpdate();
7738
                  _elem10.read(iprot);
7739
                  this.success.add(_elem10);
412 ashish 7740
                }
3430 rajveer 7741
                iprot.readListEnd();
412 ashish 7742
              }
3430 rajveer 7743
            } else { 
7744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7745
            }
7746
            break;
7747
          case 1: // SE
7748
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7749
              this.se = new LogisticsServiceException();
7750
              this.se.read(iprot);
7751
            } else { 
7752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7753
            }
7754
            break;
7755
          default:
7756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
412 ashish 7757
        }
3430 rajveer 7758
        iprot.readFieldEnd();
412 ashish 7759
      }
7760
      iprot.readStructEnd();
7761
      validate();
7762
    }
7763
 
3430 rajveer 7764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
412 ashish 7765
      oprot.writeStructBegin(STRUCT_DESC);
7766
 
7767
      if (this.isSetSuccess()) {
7768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7769
        {
3430 rajveer 7770
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 7771
          for (AwbUpdate _iter11 : this.success)
412 ashish 7772
          {
7792 anupam.sin 7773
            _iter11.write(oprot);
412 ashish 7774
          }
7775
          oprot.writeListEnd();
7776
        }
7777
        oprot.writeFieldEnd();
648 chandransh 7778
      } else if (this.isSetSe()) {
7779
        oprot.writeFieldBegin(SE_FIELD_DESC);
7780
        this.se.write(oprot);
7781
        oprot.writeFieldEnd();
412 ashish 7782
      }
7783
      oprot.writeFieldStop();
7784
      oprot.writeStructEnd();
7785
    }
7786
 
7787
    @Override
7788
    public String toString() {
648 chandransh 7789
      StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
412 ashish 7790
      boolean first = true;
7791
 
7792
      sb.append("success:");
7793
      if (this.success == null) {
7794
        sb.append("null");
7795
      } else {
7796
        sb.append(this.success);
7797
      }
7798
      first = false;
648 chandransh 7799
      if (!first) sb.append(", ");
7800
      sb.append("se:");
7801
      if (this.se == null) {
7802
        sb.append("null");
7803
      } else {
7804
        sb.append(this.se);
7805
      }
7806
      first = false;
412 ashish 7807
      sb.append(")");
7808
      return sb.toString();
7809
    }
7810
 
3430 rajveer 7811
    public void validate() throws org.apache.thrift.TException {
412 ashish 7812
      // check for required fields
7813
    }
7814
 
3430 rajveer 7815
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7816
      try {
7817
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7818
      } catch (org.apache.thrift.TException te) {
7819
        throw new java.io.IOException(te);
7820
      }
7821
    }
7822
 
7823
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7824
      try {
7825
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7826
      } catch (org.apache.thrift.TException te) {
7827
        throw new java.io.IOException(te);
7828
      }
7829
    }
7830
 
412 ashish 7831
  }
7832
 
6643 rajveer 7833
  public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
7834
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
7835
 
7836
    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);
7837
 
7838
    private AwbUpdate update; // required
7839
 
7840
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7841
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7842
      UPDATE((short)1, "update");
7843
 
7844
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7845
 
7846
      static {
7847
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7848
          byName.put(field.getFieldName(), field);
7849
        }
7850
      }
7851
 
7852
      /**
7853
       * Find the _Fields constant that matches fieldId, or null if its not found.
7854
       */
7855
      public static _Fields findByThriftId(int fieldId) {
7856
        switch(fieldId) {
7857
          case 1: // UPDATE
7858
            return UPDATE;
7859
          default:
7860
            return null;
7861
        }
7862
      }
7863
 
7864
      /**
7865
       * Find the _Fields constant that matches fieldId, throwing an exception
7866
       * if it is not found.
7867
       */
7868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7869
        _Fields fields = findByThriftId(fieldId);
7870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7871
        return fields;
7872
      }
7873
 
7874
      /**
7875
       * Find the _Fields constant that matches name, or null if its not found.
7876
       */
7877
      public static _Fields findByName(String name) {
7878
        return byName.get(name);
7879
      }
7880
 
7881
      private final short _thriftId;
7882
      private final String _fieldName;
7883
 
7884
      _Fields(short thriftId, String fieldName) {
7885
        _thriftId = thriftId;
7886
        _fieldName = fieldName;
7887
      }
7888
 
7889
      public short getThriftFieldId() {
7890
        return _thriftId;
7891
      }
7892
 
7893
      public String getFieldName() {
7894
        return _fieldName;
7895
      }
7896
    }
7897
 
7898
    // isset id assignments
7899
 
7900
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7901
    static {
7902
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7903
      tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7904
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
7905
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7906
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
7907
    }
7908
 
7909
    public storeShipmentInfo_args() {
7910
    }
7911
 
7912
    public storeShipmentInfo_args(
7913
      AwbUpdate update)
7914
    {
7915
      this();
7916
      this.update = update;
7917
    }
7918
 
7919
    /**
7920
     * Performs a deep copy on <i>other</i>.
7921
     */
7922
    public storeShipmentInfo_args(storeShipmentInfo_args other) {
7923
      if (other.isSetUpdate()) {
7924
        this.update = new AwbUpdate(other.update);
7925
      }
7926
    }
7927
 
7928
    public storeShipmentInfo_args deepCopy() {
7929
      return new storeShipmentInfo_args(this);
7930
    }
7931
 
7932
    @Override
7933
    public void clear() {
7934
      this.update = null;
7935
    }
7936
 
7937
    public AwbUpdate getUpdate() {
7938
      return this.update;
7939
    }
7940
 
7941
    public void setUpdate(AwbUpdate update) {
7942
      this.update = update;
7943
    }
7944
 
7945
    public void unsetUpdate() {
7946
      this.update = null;
7947
    }
7948
 
7949
    /** Returns true if field update is set (has been assigned a value) and false otherwise */
7950
    public boolean isSetUpdate() {
7951
      return this.update != null;
7952
    }
7953
 
7954
    public void setUpdateIsSet(boolean value) {
7955
      if (!value) {
7956
        this.update = null;
7957
      }
7958
    }
7959
 
7960
    public void setFieldValue(_Fields field, Object value) {
7961
      switch (field) {
7962
      case UPDATE:
7963
        if (value == null) {
7964
          unsetUpdate();
7965
        } else {
7966
          setUpdate((AwbUpdate)value);
7967
        }
7968
        break;
7969
 
7970
      }
7971
    }
7972
 
7973
    public Object getFieldValue(_Fields field) {
7974
      switch (field) {
7975
      case UPDATE:
7976
        return getUpdate();
7977
 
7978
      }
7979
      throw new IllegalStateException();
7980
    }
7981
 
7982
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7983
    public boolean isSet(_Fields field) {
7984
      if (field == null) {
7985
        throw new IllegalArgumentException();
7986
      }
7987
 
7988
      switch (field) {
7989
      case UPDATE:
7990
        return isSetUpdate();
7991
      }
7992
      throw new IllegalStateException();
7993
    }
7994
 
7995
    @Override
7996
    public boolean equals(Object that) {
7997
      if (that == null)
7998
        return false;
7999
      if (that instanceof storeShipmentInfo_args)
8000
        return this.equals((storeShipmentInfo_args)that);
8001
      return false;
8002
    }
8003
 
8004
    public boolean equals(storeShipmentInfo_args that) {
8005
      if (that == null)
8006
        return false;
8007
 
8008
      boolean this_present_update = true && this.isSetUpdate();
8009
      boolean that_present_update = true && that.isSetUpdate();
8010
      if (this_present_update || that_present_update) {
8011
        if (!(this_present_update && that_present_update))
8012
          return false;
8013
        if (!this.update.equals(that.update))
8014
          return false;
8015
      }
8016
 
8017
      return true;
8018
    }
8019
 
8020
    @Override
8021
    public int hashCode() {
8022
      return 0;
8023
    }
8024
 
8025
    public int compareTo(storeShipmentInfo_args other) {
8026
      if (!getClass().equals(other.getClass())) {
8027
        return getClass().getName().compareTo(other.getClass().getName());
8028
      }
8029
 
8030
      int lastComparison = 0;
8031
      storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
8032
 
8033
      lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
8034
      if (lastComparison != 0) {
8035
        return lastComparison;
8036
      }
8037
      if (isSetUpdate()) {
8038
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
8039
        if (lastComparison != 0) {
8040
          return lastComparison;
8041
        }
8042
      }
8043
      return 0;
8044
    }
8045
 
8046
    public _Fields fieldForId(int fieldId) {
8047
      return _Fields.findByThriftId(fieldId);
8048
    }
8049
 
8050
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8051
      org.apache.thrift.protocol.TField field;
8052
      iprot.readStructBegin();
8053
      while (true)
8054
      {
8055
        field = iprot.readFieldBegin();
8056
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8057
          break;
8058
        }
8059
        switch (field.id) {
8060
          case 1: // UPDATE
8061
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8062
              this.update = new AwbUpdate();
8063
              this.update.read(iprot);
8064
            } else { 
8065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8066
            }
8067
            break;
8068
          default:
8069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8070
        }
8071
        iprot.readFieldEnd();
8072
      }
8073
      iprot.readStructEnd();
8074
      validate();
8075
    }
8076
 
8077
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8078
      validate();
8079
 
8080
      oprot.writeStructBegin(STRUCT_DESC);
8081
      if (this.update != null) {
8082
        oprot.writeFieldBegin(UPDATE_FIELD_DESC);
8083
        this.update.write(oprot);
8084
        oprot.writeFieldEnd();
8085
      }
8086
      oprot.writeFieldStop();
8087
      oprot.writeStructEnd();
8088
    }
8089
 
8090
    @Override
8091
    public String toString() {
8092
      StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
8093
      boolean first = true;
8094
 
8095
      sb.append("update:");
8096
      if (this.update == null) {
8097
        sb.append("null");
8098
      } else {
8099
        sb.append(this.update);
8100
      }
8101
      first = false;
8102
      sb.append(")");
8103
      return sb.toString();
8104
    }
8105
 
8106
    public void validate() throws org.apache.thrift.TException {
8107
      // check for required fields
8108
    }
8109
 
8110
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8111
      try {
8112
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8113
      } catch (org.apache.thrift.TException te) {
8114
        throw new java.io.IOException(te);
8115
      }
8116
    }
8117
 
8118
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8119
      try {
8120
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8121
      } catch (org.apache.thrift.TException te) {
8122
        throw new java.io.IOException(te);
8123
      }
8124
    }
8125
 
8126
  }
8127
 
8128
  public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
8129
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
8130
 
8131
    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);
8132
 
8133
    private LogisticsServiceException se; // required
8134
 
8135
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8136
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8137
      SE((short)1, "se");
8138
 
8139
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8140
 
8141
      static {
8142
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8143
          byName.put(field.getFieldName(), field);
8144
        }
8145
      }
8146
 
8147
      /**
8148
       * Find the _Fields constant that matches fieldId, or null if its not found.
8149
       */
8150
      public static _Fields findByThriftId(int fieldId) {
8151
        switch(fieldId) {
8152
          case 1: // SE
8153
            return SE;
8154
          default:
8155
            return null;
8156
        }
8157
      }
8158
 
8159
      /**
8160
       * Find the _Fields constant that matches fieldId, throwing an exception
8161
       * if it is not found.
8162
       */
8163
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8164
        _Fields fields = findByThriftId(fieldId);
8165
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8166
        return fields;
8167
      }
8168
 
8169
      /**
8170
       * Find the _Fields constant that matches name, or null if its not found.
8171
       */
8172
      public static _Fields findByName(String name) {
8173
        return byName.get(name);
8174
      }
8175
 
8176
      private final short _thriftId;
8177
      private final String _fieldName;
8178
 
8179
      _Fields(short thriftId, String fieldName) {
8180
        _thriftId = thriftId;
8181
        _fieldName = fieldName;
8182
      }
8183
 
8184
      public short getThriftFieldId() {
8185
        return _thriftId;
8186
      }
8187
 
8188
      public String getFieldName() {
8189
        return _fieldName;
8190
      }
8191
    }
8192
 
8193
    // isset id assignments
8194
 
8195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8196
    static {
8197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8198
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8199
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8200
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8201
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
8202
    }
8203
 
8204
    public storeShipmentInfo_result() {
8205
    }
8206
 
8207
    public storeShipmentInfo_result(
8208
      LogisticsServiceException se)
8209
    {
8210
      this();
8211
      this.se = se;
8212
    }
8213
 
8214
    /**
8215
     * Performs a deep copy on <i>other</i>.
8216
     */
8217
    public storeShipmentInfo_result(storeShipmentInfo_result other) {
8218
      if (other.isSetSe()) {
8219
        this.se = new LogisticsServiceException(other.se);
8220
      }
8221
    }
8222
 
8223
    public storeShipmentInfo_result deepCopy() {
8224
      return new storeShipmentInfo_result(this);
8225
    }
8226
 
8227
    @Override
8228
    public void clear() {
8229
      this.se = null;
8230
    }
8231
 
8232
    public LogisticsServiceException getSe() {
8233
      return this.se;
8234
    }
8235
 
8236
    public void setSe(LogisticsServiceException se) {
8237
      this.se = se;
8238
    }
8239
 
8240
    public void unsetSe() {
8241
      this.se = null;
8242
    }
8243
 
8244
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8245
    public boolean isSetSe() {
8246
      return this.se != null;
8247
    }
8248
 
8249
    public void setSeIsSet(boolean value) {
8250
      if (!value) {
8251
        this.se = null;
8252
      }
8253
    }
8254
 
8255
    public void setFieldValue(_Fields field, Object value) {
8256
      switch (field) {
8257
      case SE:
8258
        if (value == null) {
8259
          unsetSe();
8260
        } else {
8261
          setSe((LogisticsServiceException)value);
8262
        }
8263
        break;
8264
 
8265
      }
8266
    }
8267
 
8268
    public Object getFieldValue(_Fields field) {
8269
      switch (field) {
8270
      case SE:
8271
        return getSe();
8272
 
8273
      }
8274
      throw new IllegalStateException();
8275
    }
8276
 
8277
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8278
    public boolean isSet(_Fields field) {
8279
      if (field == null) {
8280
        throw new IllegalArgumentException();
8281
      }
8282
 
8283
      switch (field) {
8284
      case SE:
8285
        return isSetSe();
8286
      }
8287
      throw new IllegalStateException();
8288
    }
8289
 
8290
    @Override
8291
    public boolean equals(Object that) {
8292
      if (that == null)
8293
        return false;
8294
      if (that instanceof storeShipmentInfo_result)
8295
        return this.equals((storeShipmentInfo_result)that);
8296
      return false;
8297
    }
8298
 
8299
    public boolean equals(storeShipmentInfo_result that) {
8300
      if (that == null)
8301
        return false;
8302
 
8303
      boolean this_present_se = true && this.isSetSe();
8304
      boolean that_present_se = true && that.isSetSe();
8305
      if (this_present_se || that_present_se) {
8306
        if (!(this_present_se && that_present_se))
8307
          return false;
8308
        if (!this.se.equals(that.se))
8309
          return false;
8310
      }
8311
 
8312
      return true;
8313
    }
8314
 
8315
    @Override
8316
    public int hashCode() {
8317
      return 0;
8318
    }
8319
 
8320
    public int compareTo(storeShipmentInfo_result other) {
8321
      if (!getClass().equals(other.getClass())) {
8322
        return getClass().getName().compareTo(other.getClass().getName());
8323
      }
8324
 
8325
      int lastComparison = 0;
8326
      storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
8327
 
8328
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8329
      if (lastComparison != 0) {
8330
        return lastComparison;
8331
      }
8332
      if (isSetSe()) {
8333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8334
        if (lastComparison != 0) {
8335
          return lastComparison;
8336
        }
8337
      }
8338
      return 0;
8339
    }
8340
 
8341
    public _Fields fieldForId(int fieldId) {
8342
      return _Fields.findByThriftId(fieldId);
8343
    }
8344
 
8345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8346
      org.apache.thrift.protocol.TField field;
8347
      iprot.readStructBegin();
8348
      while (true)
8349
      {
8350
        field = iprot.readFieldBegin();
8351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8352
          break;
8353
        }
8354
        switch (field.id) {
8355
          case 1: // SE
8356
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8357
              this.se = new LogisticsServiceException();
8358
              this.se.read(iprot);
8359
            } else { 
8360
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8361
            }
8362
            break;
8363
          default:
8364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8365
        }
8366
        iprot.readFieldEnd();
8367
      }
8368
      iprot.readStructEnd();
8369
      validate();
8370
    }
8371
 
8372
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8373
      oprot.writeStructBegin(STRUCT_DESC);
8374
 
8375
      if (this.isSetSe()) {
8376
        oprot.writeFieldBegin(SE_FIELD_DESC);
8377
        this.se.write(oprot);
8378
        oprot.writeFieldEnd();
8379
      }
8380
      oprot.writeFieldStop();
8381
      oprot.writeStructEnd();
8382
    }
8383
 
8384
    @Override
8385
    public String toString() {
8386
      StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
8387
      boolean first = true;
8388
 
8389
      sb.append("se:");
8390
      if (this.se == null) {
8391
        sb.append("null");
8392
      } else {
8393
        sb.append(this.se);
8394
      }
8395
      first = false;
8396
      sb.append(")");
8397
      return sb.toString();
8398
    }
8399
 
8400
    public void validate() throws org.apache.thrift.TException {
8401
      // check for required fields
8402
    }
8403
 
8404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8405
      try {
8406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8407
      } catch (org.apache.thrift.TException te) {
8408
        throw new java.io.IOException(te);
8409
      }
8410
    }
8411
 
8412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8413
      try {
8414
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8415
      } catch (org.apache.thrift.TException te) {
8416
        throw new java.io.IOException(te);
8417
      }
8418
    }
8419
 
8420
  }
8421
 
3430 rajveer 8422
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
8423
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
730 chandransh 8424
 
3430 rajveer 8425
    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);
8426
    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 8427
 
3430 rajveer 8428
    private long providerId; // required
8429
    private String pinCode; // required
730 chandransh 8430
 
8431
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8432
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8433
      PROVIDER_ID((short)1, "providerId"),
8434
      PIN_CODE((short)2, "pinCode");
8435
 
8436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8437
 
8438
      static {
8439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8440
          byName.put(field.getFieldName(), field);
8441
        }
8442
      }
8443
 
8444
      /**
8445
       * Find the _Fields constant that matches fieldId, or null if its not found.
8446
       */
8447
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8448
        switch(fieldId) {
8449
          case 1: // PROVIDER_ID
8450
            return PROVIDER_ID;
8451
          case 2: // PIN_CODE
8452
            return PIN_CODE;
8453
          default:
8454
            return null;
8455
        }
730 chandransh 8456
      }
8457
 
8458
      /**
8459
       * Find the _Fields constant that matches fieldId, throwing an exception
8460
       * if it is not found.
8461
       */
8462
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8463
        _Fields fields = findByThriftId(fieldId);
8464
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8465
        return fields;
8466
      }
8467
 
8468
      /**
8469
       * Find the _Fields constant that matches name, or null if its not found.
8470
       */
8471
      public static _Fields findByName(String name) {
8472
        return byName.get(name);
8473
      }
8474
 
8475
      private final short _thriftId;
8476
      private final String _fieldName;
8477
 
8478
      _Fields(short thriftId, String fieldName) {
8479
        _thriftId = thriftId;
8480
        _fieldName = fieldName;
8481
      }
8482
 
8483
      public short getThriftFieldId() {
8484
        return _thriftId;
8485
      }
8486
 
8487
      public String getFieldName() {
8488
        return _fieldName;
8489
      }
8490
    }
8491
 
8492
    // isset id assignments
8493
    private static final int __PROVIDERID_ISSET_ID = 0;
8494
    private BitSet __isset_bit_vector = new BitSet(1);
8495
 
3430 rajveer 8496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8497
    static {
3430 rajveer 8498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8499
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8501
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
730 chandransh 8505
    }
8506
 
8507
    public getDestinationCode_args() {
8508
    }
8509
 
8510
    public getDestinationCode_args(
8511
      long providerId,
8512
      String pinCode)
8513
    {
8514
      this();
8515
      this.providerId = providerId;
8516
      setProviderIdIsSet(true);
8517
      this.pinCode = pinCode;
8518
    }
8519
 
8520
    /**
8521
     * Performs a deep copy on <i>other</i>.
8522
     */
8523
    public getDestinationCode_args(getDestinationCode_args other) {
8524
      __isset_bit_vector.clear();
8525
      __isset_bit_vector.or(other.__isset_bit_vector);
8526
      this.providerId = other.providerId;
8527
      if (other.isSetPinCode()) {
8528
        this.pinCode = other.pinCode;
8529
      }
8530
    }
8531
 
8532
    public getDestinationCode_args deepCopy() {
8533
      return new getDestinationCode_args(this);
8534
    }
8535
 
3430 rajveer 8536
    @Override
8537
    public void clear() {
8538
      setProviderIdIsSet(false);
8539
      this.providerId = 0;
8540
      this.pinCode = null;
730 chandransh 8541
    }
8542
 
8543
    public long getProviderId() {
8544
      return this.providerId;
8545
    }
8546
 
3430 rajveer 8547
    public void setProviderId(long providerId) {
730 chandransh 8548
      this.providerId = providerId;
8549
      setProviderIdIsSet(true);
8550
    }
8551
 
8552
    public void unsetProviderId() {
8553
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
8554
    }
8555
 
3430 rajveer 8556
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
730 chandransh 8557
    public boolean isSetProviderId() {
8558
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
8559
    }
8560
 
8561
    public void setProviderIdIsSet(boolean value) {
8562
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
8563
    }
8564
 
8565
    public String getPinCode() {
8566
      return this.pinCode;
8567
    }
8568
 
3430 rajveer 8569
    public void setPinCode(String pinCode) {
730 chandransh 8570
      this.pinCode = pinCode;
8571
    }
8572
 
8573
    public void unsetPinCode() {
8574
      this.pinCode = null;
8575
    }
8576
 
3430 rajveer 8577
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
730 chandransh 8578
    public boolean isSetPinCode() {
8579
      return this.pinCode != null;
8580
    }
8581
 
8582
    public void setPinCodeIsSet(boolean value) {
8583
      if (!value) {
8584
        this.pinCode = null;
8585
      }
8586
    }
8587
 
8588
    public void setFieldValue(_Fields field, Object value) {
8589
      switch (field) {
8590
      case PROVIDER_ID:
8591
        if (value == null) {
8592
          unsetProviderId();
8593
        } else {
8594
          setProviderId((Long)value);
8595
        }
8596
        break;
8597
 
8598
      case PIN_CODE:
8599
        if (value == null) {
8600
          unsetPinCode();
8601
        } else {
8602
          setPinCode((String)value);
8603
        }
8604
        break;
8605
 
8606
      }
8607
    }
8608
 
8609
    public Object getFieldValue(_Fields field) {
8610
      switch (field) {
8611
      case PROVIDER_ID:
3430 rajveer 8612
        return Long.valueOf(getProviderId());
730 chandransh 8613
 
8614
      case PIN_CODE:
8615
        return getPinCode();
8616
 
8617
      }
8618
      throw new IllegalStateException();
8619
    }
8620
 
3430 rajveer 8621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8622
    public boolean isSet(_Fields field) {
8623
      if (field == null) {
8624
        throw new IllegalArgumentException();
8625
      }
730 chandransh 8626
 
8627
      switch (field) {
8628
      case PROVIDER_ID:
8629
        return isSetProviderId();
8630
      case PIN_CODE:
8631
        return isSetPinCode();
8632
      }
8633
      throw new IllegalStateException();
8634
    }
8635
 
8636
    @Override
8637
    public boolean equals(Object that) {
8638
      if (that == null)
8639
        return false;
8640
      if (that instanceof getDestinationCode_args)
8641
        return this.equals((getDestinationCode_args)that);
8642
      return false;
8643
    }
8644
 
8645
    public boolean equals(getDestinationCode_args that) {
8646
      if (that == null)
8647
        return false;
8648
 
8649
      boolean this_present_providerId = true;
8650
      boolean that_present_providerId = true;
8651
      if (this_present_providerId || that_present_providerId) {
8652
        if (!(this_present_providerId && that_present_providerId))
8653
          return false;
8654
        if (this.providerId != that.providerId)
8655
          return false;
8656
      }
8657
 
8658
      boolean this_present_pinCode = true && this.isSetPinCode();
8659
      boolean that_present_pinCode = true && that.isSetPinCode();
8660
      if (this_present_pinCode || that_present_pinCode) {
8661
        if (!(this_present_pinCode && that_present_pinCode))
8662
          return false;
8663
        if (!this.pinCode.equals(that.pinCode))
8664
          return false;
8665
      }
8666
 
8667
      return true;
8668
    }
8669
 
8670
    @Override
8671
    public int hashCode() {
8672
      return 0;
8673
    }
8674
 
8675
    public int compareTo(getDestinationCode_args other) {
8676
      if (!getClass().equals(other.getClass())) {
8677
        return getClass().getName().compareTo(other.getClass().getName());
8678
      }
8679
 
8680
      int lastComparison = 0;
8681
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
8682
 
3430 rajveer 8683
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
730 chandransh 8684
      if (lastComparison != 0) {
8685
        return lastComparison;
8686
      }
3430 rajveer 8687
      if (isSetProviderId()) {
8688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
8689
        if (lastComparison != 0) {
8690
          return lastComparison;
8691
        }
730 chandransh 8692
      }
3430 rajveer 8693
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
730 chandransh 8694
      if (lastComparison != 0) {
8695
        return lastComparison;
8696
      }
3430 rajveer 8697
      if (isSetPinCode()) {
8698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
8699
        if (lastComparison != 0) {
8700
          return lastComparison;
8701
        }
730 chandransh 8702
      }
8703
      return 0;
8704
    }
8705
 
3430 rajveer 8706
    public _Fields fieldForId(int fieldId) {
8707
      return _Fields.findByThriftId(fieldId);
8708
    }
8709
 
8710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8711
      org.apache.thrift.protocol.TField field;
730 chandransh 8712
      iprot.readStructBegin();
8713
      while (true)
8714
      {
8715
        field = iprot.readFieldBegin();
3430 rajveer 8716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 8717
          break;
8718
        }
3430 rajveer 8719
        switch (field.id) {
8720
          case 1: // PROVIDER_ID
8721
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8722
              this.providerId = iprot.readI64();
8723
              setProviderIdIsSet(true);
8724
            } else { 
8725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8726
            }
8727
            break;
8728
          case 2: // PIN_CODE
8729
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8730
              this.pinCode = iprot.readString();
8731
            } else { 
8732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8733
            }
8734
            break;
8735
          default:
8736
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 8737
        }
3430 rajveer 8738
        iprot.readFieldEnd();
730 chandransh 8739
      }
8740
      iprot.readStructEnd();
8741
      validate();
8742
    }
8743
 
3430 rajveer 8744
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 8745
      validate();
8746
 
8747
      oprot.writeStructBegin(STRUCT_DESC);
8748
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
8749
      oprot.writeI64(this.providerId);
8750
      oprot.writeFieldEnd();
8751
      if (this.pinCode != null) {
8752
        oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
8753
        oprot.writeString(this.pinCode);
8754
        oprot.writeFieldEnd();
8755
      }
8756
      oprot.writeFieldStop();
8757
      oprot.writeStructEnd();
8758
    }
8759
 
8760
    @Override
8761
    public String toString() {
8762
      StringBuilder sb = new StringBuilder("getDestinationCode_args(");
8763
      boolean first = true;
8764
 
8765
      sb.append("providerId:");
8766
      sb.append(this.providerId);
8767
      first = false;
8768
      if (!first) sb.append(", ");
8769
      sb.append("pinCode:");
8770
      if (this.pinCode == null) {
8771
        sb.append("null");
8772
      } else {
8773
        sb.append(this.pinCode);
8774
      }
8775
      first = false;
8776
      sb.append(")");
8777
      return sb.toString();
8778
    }
8779
 
3430 rajveer 8780
    public void validate() throws org.apache.thrift.TException {
730 chandransh 8781
      // check for required fields
8782
    }
8783
 
3430 rajveer 8784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8785
      try {
8786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8787
      } catch (org.apache.thrift.TException te) {
8788
        throw new java.io.IOException(te);
8789
      }
8790
    }
8791
 
8792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8793
      try {
8794
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8795
      } catch (org.apache.thrift.TException te) {
8796
        throw new java.io.IOException(te);
8797
      }
8798
    }
8799
 
730 chandransh 8800
  }
8801
 
3430 rajveer 8802
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
8803
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
730 chandransh 8804
 
3430 rajveer 8805
    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);
8806
    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 8807
 
3430 rajveer 8808
    private String success; // required
8809
    private LogisticsServiceException se; // required
730 chandransh 8810
 
8811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8812
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
730 chandransh 8813
      SUCCESS((short)0, "success"),
8814
      SE((short)1, "se");
8815
 
8816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8817
 
8818
      static {
8819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8820
          byName.put(field.getFieldName(), field);
8821
        }
8822
      }
8823
 
8824
      /**
8825
       * Find the _Fields constant that matches fieldId, or null if its not found.
8826
       */
8827
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8828
        switch(fieldId) {
8829
          case 0: // SUCCESS
8830
            return SUCCESS;
8831
          case 1: // SE
8832
            return SE;
8833
          default:
8834
            return null;
8835
        }
730 chandransh 8836
      }
8837
 
8838
      /**
8839
       * Find the _Fields constant that matches fieldId, throwing an exception
8840
       * if it is not found.
8841
       */
8842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8843
        _Fields fields = findByThriftId(fieldId);
8844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8845
        return fields;
8846
      }
8847
 
8848
      /**
8849
       * Find the _Fields constant that matches name, or null if its not found.
8850
       */
8851
      public static _Fields findByName(String name) {
8852
        return byName.get(name);
8853
      }
8854
 
8855
      private final short _thriftId;
8856
      private final String _fieldName;
8857
 
8858
      _Fields(short thriftId, String fieldName) {
8859
        _thriftId = thriftId;
8860
        _fieldName = fieldName;
8861
      }
8862
 
8863
      public short getThriftFieldId() {
8864
        return _thriftId;
8865
      }
8866
 
8867
      public String getFieldName() {
8868
        return _fieldName;
8869
      }
8870
    }
8871
 
8872
    // isset id assignments
8873
 
3430 rajveer 8874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
730 chandransh 8875
    static {
3430 rajveer 8876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8877
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8878
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8879
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
730 chandransh 8883
    }
8884
 
8885
    public getDestinationCode_result() {
8886
    }
8887
 
8888
    public getDestinationCode_result(
8889
      String success,
8890
      LogisticsServiceException se)
8891
    {
8892
      this();
8893
      this.success = success;
8894
      this.se = se;
8895
    }
8896
 
8897
    /**
8898
     * Performs a deep copy on <i>other</i>.
8899
     */
8900
    public getDestinationCode_result(getDestinationCode_result other) {
8901
      if (other.isSetSuccess()) {
8902
        this.success = other.success;
8903
      }
8904
      if (other.isSetSe()) {
8905
        this.se = new LogisticsServiceException(other.se);
8906
      }
8907
    }
8908
 
8909
    public getDestinationCode_result deepCopy() {
8910
      return new getDestinationCode_result(this);
8911
    }
8912
 
3430 rajveer 8913
    @Override
8914
    public void clear() {
8915
      this.success = null;
8916
      this.se = null;
730 chandransh 8917
    }
8918
 
8919
    public String getSuccess() {
8920
      return this.success;
8921
    }
8922
 
3430 rajveer 8923
    public void setSuccess(String success) {
730 chandransh 8924
      this.success = success;
8925
    }
8926
 
8927
    public void unsetSuccess() {
8928
      this.success = null;
8929
    }
8930
 
3430 rajveer 8931
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
730 chandransh 8932
    public boolean isSetSuccess() {
8933
      return this.success != null;
8934
    }
8935
 
8936
    public void setSuccessIsSet(boolean value) {
8937
      if (!value) {
8938
        this.success = null;
8939
      }
8940
    }
8941
 
8942
    public LogisticsServiceException getSe() {
8943
      return this.se;
8944
    }
8945
 
3430 rajveer 8946
    public void setSe(LogisticsServiceException se) {
730 chandransh 8947
      this.se = se;
8948
    }
8949
 
8950
    public void unsetSe() {
8951
      this.se = null;
8952
    }
8953
 
3430 rajveer 8954
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
730 chandransh 8955
    public boolean isSetSe() {
8956
      return this.se != null;
8957
    }
8958
 
8959
    public void setSeIsSet(boolean value) {
8960
      if (!value) {
8961
        this.se = null;
8962
      }
8963
    }
8964
 
8965
    public void setFieldValue(_Fields field, Object value) {
8966
      switch (field) {
8967
      case SUCCESS:
8968
        if (value == null) {
8969
          unsetSuccess();
8970
        } else {
8971
          setSuccess((String)value);
8972
        }
8973
        break;
8974
 
8975
      case SE:
8976
        if (value == null) {
8977
          unsetSe();
8978
        } else {
8979
          setSe((LogisticsServiceException)value);
8980
        }
8981
        break;
8982
 
8983
      }
8984
    }
8985
 
8986
    public Object getFieldValue(_Fields field) {
8987
      switch (field) {
8988
      case SUCCESS:
8989
        return getSuccess();
8990
 
8991
      case SE:
8992
        return getSe();
8993
 
8994
      }
8995
      throw new IllegalStateException();
8996
    }
8997
 
3430 rajveer 8998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8999
    public boolean isSet(_Fields field) {
9000
      if (field == null) {
9001
        throw new IllegalArgumentException();
9002
      }
730 chandransh 9003
 
9004
      switch (field) {
9005
      case SUCCESS:
9006
        return isSetSuccess();
9007
      case SE:
9008
        return isSetSe();
9009
      }
9010
      throw new IllegalStateException();
9011
    }
9012
 
9013
    @Override
9014
    public boolean equals(Object that) {
9015
      if (that == null)
9016
        return false;
9017
      if (that instanceof getDestinationCode_result)
9018
        return this.equals((getDestinationCode_result)that);
9019
      return false;
9020
    }
9021
 
9022
    public boolean equals(getDestinationCode_result that) {
9023
      if (that == null)
9024
        return false;
9025
 
9026
      boolean this_present_success = true && this.isSetSuccess();
9027
      boolean that_present_success = true && that.isSetSuccess();
9028
      if (this_present_success || that_present_success) {
9029
        if (!(this_present_success && that_present_success))
9030
          return false;
9031
        if (!this.success.equals(that.success))
9032
          return false;
9033
      }
9034
 
9035
      boolean this_present_se = true && this.isSetSe();
9036
      boolean that_present_se = true && that.isSetSe();
9037
      if (this_present_se || that_present_se) {
9038
        if (!(this_present_se && that_present_se))
9039
          return false;
9040
        if (!this.se.equals(that.se))
9041
          return false;
9042
      }
9043
 
9044
      return true;
9045
    }
9046
 
9047
    @Override
9048
    public int hashCode() {
9049
      return 0;
9050
    }
9051
 
9052
    public int compareTo(getDestinationCode_result other) {
9053
      if (!getClass().equals(other.getClass())) {
9054
        return getClass().getName().compareTo(other.getClass().getName());
9055
      }
9056
 
9057
      int lastComparison = 0;
9058
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
9059
 
3430 rajveer 9060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
730 chandransh 9061
      if (lastComparison != 0) {
9062
        return lastComparison;
9063
      }
3430 rajveer 9064
      if (isSetSuccess()) {
9065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9066
        if (lastComparison != 0) {
9067
          return lastComparison;
9068
        }
730 chandransh 9069
      }
3430 rajveer 9070
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
730 chandransh 9071
      if (lastComparison != 0) {
9072
        return lastComparison;
9073
      }
3430 rajveer 9074
      if (isSetSe()) {
9075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9076
        if (lastComparison != 0) {
9077
          return lastComparison;
9078
        }
730 chandransh 9079
      }
9080
      return 0;
9081
    }
9082
 
3430 rajveer 9083
    public _Fields fieldForId(int fieldId) {
9084
      return _Fields.findByThriftId(fieldId);
9085
    }
9086
 
9087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9088
      org.apache.thrift.protocol.TField field;
730 chandransh 9089
      iprot.readStructBegin();
9090
      while (true)
9091
      {
9092
        field = iprot.readFieldBegin();
3430 rajveer 9093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
730 chandransh 9094
          break;
9095
        }
3430 rajveer 9096
        switch (field.id) {
9097
          case 0: // SUCCESS
9098
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9099
              this.success = iprot.readString();
9100
            } else { 
9101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9102
            }
9103
            break;
9104
          case 1: // SE
9105
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9106
              this.se = new LogisticsServiceException();
9107
              this.se.read(iprot);
9108
            } else { 
9109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9110
            }
9111
            break;
9112
          default:
9113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
730 chandransh 9114
        }
3430 rajveer 9115
        iprot.readFieldEnd();
730 chandransh 9116
      }
9117
      iprot.readStructEnd();
9118
      validate();
9119
    }
9120
 
3430 rajveer 9121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
730 chandransh 9122
      oprot.writeStructBegin(STRUCT_DESC);
9123
 
9124
      if (this.isSetSuccess()) {
9125
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9126
        oprot.writeString(this.success);
9127
        oprot.writeFieldEnd();
9128
      } else if (this.isSetSe()) {
9129
        oprot.writeFieldBegin(SE_FIELD_DESC);
9130
        this.se.write(oprot);
9131
        oprot.writeFieldEnd();
9132
      }
9133
      oprot.writeFieldStop();
9134
      oprot.writeStructEnd();
9135
    }
9136
 
9137
    @Override
9138
    public String toString() {
9139
      StringBuilder sb = new StringBuilder("getDestinationCode_result(");
9140
      boolean first = true;
9141
 
9142
      sb.append("success:");
9143
      if (this.success == null) {
9144
        sb.append("null");
9145
      } else {
9146
        sb.append(this.success);
9147
      }
9148
      first = false;
9149
      if (!first) sb.append(", ");
9150
      sb.append("se:");
9151
      if (this.se == null) {
9152
        sb.append("null");
9153
      } else {
9154
        sb.append(this.se);
9155
      }
9156
      first = false;
9157
      sb.append(")");
9158
      return sb.toString();
9159
    }
9160
 
3430 rajveer 9161
    public void validate() throws org.apache.thrift.TException {
730 chandransh 9162
      // check for required fields
9163
    }
9164
 
3430 rajveer 9165
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9166
      try {
9167
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9168
      } catch (org.apache.thrift.TException te) {
9169
        throw new java.io.IOException(te);
9170
      }
9171
    }
9172
 
9173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9174
      try {
9175
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9176
      } catch (org.apache.thrift.TException te) {
9177
        throw new java.io.IOException(te);
9178
      }
9179
    }
9180
 
730 chandransh 9181
  }
9182
 
3430 rajveer 9183
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
9184
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
1139 chandransh 9185
 
3430 rajveer 9186
    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);
9187
    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 9188
 
3430 rajveer 9189
    private long providerId; // required
9190
    private String type; // required
1139 chandransh 9191
 
9192
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9193
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3103 chandransh 9194
      PROVIDER_ID((short)1, "providerId"),
9195
      TYPE((short)2, "type");
1139 chandransh 9196
 
9197
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9198
 
9199
      static {
9200
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9201
          byName.put(field.getFieldName(), field);
9202
        }
9203
      }
9204
 
9205
      /**
9206
       * Find the _Fields constant that matches fieldId, or null if its not found.
9207
       */
9208
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9209
        switch(fieldId) {
9210
          case 1: // PROVIDER_ID
9211
            return PROVIDER_ID;
9212
          case 2: // TYPE
9213
            return TYPE;
9214
          default:
9215
            return null;
9216
        }
1139 chandransh 9217
      }
9218
 
9219
      /**
9220
       * Find the _Fields constant that matches fieldId, throwing an exception
9221
       * if it is not found.
9222
       */
9223
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9224
        _Fields fields = findByThriftId(fieldId);
9225
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9226
        return fields;
9227
      }
9228
 
9229
      /**
9230
       * Find the _Fields constant that matches name, or null if its not found.
9231
       */
9232
      public static _Fields findByName(String name) {
9233
        return byName.get(name);
9234
      }
9235
 
9236
      private final short _thriftId;
9237
      private final String _fieldName;
9238
 
9239
      _Fields(short thriftId, String fieldName) {
9240
        _thriftId = thriftId;
9241
        _fieldName = fieldName;
9242
      }
9243
 
9244
      public short getThriftFieldId() {
9245
        return _thriftId;
9246
      }
9247
 
9248
      public String getFieldName() {
9249
        return _fieldName;
9250
      }
9251
    }
9252
 
9253
    // isset id assignments
9254
    private static final int __PROVIDERID_ISSET_ID = 0;
9255
    private BitSet __isset_bit_vector = new BitSet(1);
9256
 
3430 rajveer 9257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9258
    static {
3430 rajveer 9259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9260
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9262
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
1139 chandransh 9266
    }
9267
 
9268
    public getFreeAwbCount_args() {
9269
    }
9270
 
9271
    public getFreeAwbCount_args(
3103 chandransh 9272
      long providerId,
9273
      String type)
1139 chandransh 9274
    {
9275
      this();
9276
      this.providerId = providerId;
9277
      setProviderIdIsSet(true);
3103 chandransh 9278
      this.type = type;
1139 chandransh 9279
    }
9280
 
9281
    /**
9282
     * Performs a deep copy on <i>other</i>.
9283
     */
9284
    public getFreeAwbCount_args(getFreeAwbCount_args other) {
9285
      __isset_bit_vector.clear();
9286
      __isset_bit_vector.or(other.__isset_bit_vector);
9287
      this.providerId = other.providerId;
3103 chandransh 9288
      if (other.isSetType()) {
9289
        this.type = other.type;
9290
      }
1139 chandransh 9291
    }
9292
 
9293
    public getFreeAwbCount_args deepCopy() {
9294
      return new getFreeAwbCount_args(this);
9295
    }
9296
 
3430 rajveer 9297
    @Override
9298
    public void clear() {
9299
      setProviderIdIsSet(false);
9300
      this.providerId = 0;
9301
      this.type = null;
1139 chandransh 9302
    }
9303
 
9304
    public long getProviderId() {
9305
      return this.providerId;
9306
    }
9307
 
3430 rajveer 9308
    public void setProviderId(long providerId) {
1139 chandransh 9309
      this.providerId = providerId;
9310
      setProviderIdIsSet(true);
9311
    }
9312
 
9313
    public void unsetProviderId() {
9314
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
9315
    }
9316
 
3430 rajveer 9317
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
1139 chandransh 9318
    public boolean isSetProviderId() {
9319
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
9320
    }
9321
 
9322
    public void setProviderIdIsSet(boolean value) {
9323
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
9324
    }
9325
 
3103 chandransh 9326
    public String getType() {
9327
      return this.type;
9328
    }
9329
 
3430 rajveer 9330
    public void setType(String type) {
3103 chandransh 9331
      this.type = type;
9332
    }
9333
 
9334
    public void unsetType() {
9335
      this.type = null;
9336
    }
9337
 
3430 rajveer 9338
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
3103 chandransh 9339
    public boolean isSetType() {
9340
      return this.type != null;
9341
    }
9342
 
9343
    public void setTypeIsSet(boolean value) {
9344
      if (!value) {
9345
        this.type = null;
9346
      }
9347
    }
9348
 
1139 chandransh 9349
    public void setFieldValue(_Fields field, Object value) {
9350
      switch (field) {
9351
      case PROVIDER_ID:
9352
        if (value == null) {
9353
          unsetProviderId();
9354
        } else {
9355
          setProviderId((Long)value);
9356
        }
9357
        break;
9358
 
3103 chandransh 9359
      case TYPE:
9360
        if (value == null) {
9361
          unsetType();
9362
        } else {
9363
          setType((String)value);
9364
        }
9365
        break;
9366
 
1139 chandransh 9367
      }
9368
    }
9369
 
9370
    public Object getFieldValue(_Fields field) {
9371
      switch (field) {
9372
      case PROVIDER_ID:
3430 rajveer 9373
        return Long.valueOf(getProviderId());
1139 chandransh 9374
 
3103 chandransh 9375
      case TYPE:
9376
        return getType();
9377
 
1139 chandransh 9378
      }
9379
      throw new IllegalStateException();
9380
    }
9381
 
3430 rajveer 9382
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9383
    public boolean isSet(_Fields field) {
9384
      if (field == null) {
9385
        throw new IllegalArgumentException();
9386
      }
1139 chandransh 9387
 
9388
      switch (field) {
9389
      case PROVIDER_ID:
9390
        return isSetProviderId();
3103 chandransh 9391
      case TYPE:
9392
        return isSetType();
1139 chandransh 9393
      }
9394
      throw new IllegalStateException();
9395
    }
9396
 
9397
    @Override
9398
    public boolean equals(Object that) {
9399
      if (that == null)
9400
        return false;
9401
      if (that instanceof getFreeAwbCount_args)
9402
        return this.equals((getFreeAwbCount_args)that);
9403
      return false;
9404
    }
9405
 
9406
    public boolean equals(getFreeAwbCount_args that) {
9407
      if (that == null)
9408
        return false;
9409
 
9410
      boolean this_present_providerId = true;
9411
      boolean that_present_providerId = true;
9412
      if (this_present_providerId || that_present_providerId) {
9413
        if (!(this_present_providerId && that_present_providerId))
9414
          return false;
9415
        if (this.providerId != that.providerId)
9416
          return false;
9417
      }
9418
 
3103 chandransh 9419
      boolean this_present_type = true && this.isSetType();
9420
      boolean that_present_type = true && that.isSetType();
9421
      if (this_present_type || that_present_type) {
9422
        if (!(this_present_type && that_present_type))
9423
          return false;
9424
        if (!this.type.equals(that.type))
9425
          return false;
9426
      }
9427
 
1139 chandransh 9428
      return true;
9429
    }
9430
 
9431
    @Override
9432
    public int hashCode() {
9433
      return 0;
9434
    }
9435
 
9436
    public int compareTo(getFreeAwbCount_args other) {
9437
      if (!getClass().equals(other.getClass())) {
9438
        return getClass().getName().compareTo(other.getClass().getName());
9439
      }
9440
 
9441
      int lastComparison = 0;
9442
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
9443
 
3430 rajveer 9444
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
1139 chandransh 9445
      if (lastComparison != 0) {
9446
        return lastComparison;
9447
      }
3430 rajveer 9448
      if (isSetProviderId()) {
9449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
9450
        if (lastComparison != 0) {
9451
          return lastComparison;
9452
        }
1139 chandransh 9453
      }
3430 rajveer 9454
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3103 chandransh 9455
      if (lastComparison != 0) {
9456
        return lastComparison;
9457
      }
3430 rajveer 9458
      if (isSetType()) {
9459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
9460
        if (lastComparison != 0) {
9461
          return lastComparison;
9462
        }
3103 chandransh 9463
      }
1139 chandransh 9464
      return 0;
9465
    }
9466
 
3430 rajveer 9467
    public _Fields fieldForId(int fieldId) {
9468
      return _Fields.findByThriftId(fieldId);
9469
    }
9470
 
9471
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9472
      org.apache.thrift.protocol.TField field;
1139 chandransh 9473
      iprot.readStructBegin();
9474
      while (true)
9475
      {
9476
        field = iprot.readFieldBegin();
3430 rajveer 9477
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9478
          break;
9479
        }
3430 rajveer 9480
        switch (field.id) {
9481
          case 1: // PROVIDER_ID
9482
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9483
              this.providerId = iprot.readI64();
9484
              setProviderIdIsSet(true);
9485
            } else { 
9486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9487
            }
9488
            break;
9489
          case 2: // TYPE
9490
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9491
              this.type = iprot.readString();
9492
            } else { 
9493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9494
            }
9495
            break;
9496
          default:
9497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9498
        }
3430 rajveer 9499
        iprot.readFieldEnd();
1139 chandransh 9500
      }
9501
      iprot.readStructEnd();
9502
      validate();
9503
    }
9504
 
3430 rajveer 9505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9506
      validate();
9507
 
9508
      oprot.writeStructBegin(STRUCT_DESC);
9509
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
9510
      oprot.writeI64(this.providerId);
9511
      oprot.writeFieldEnd();
3103 chandransh 9512
      if (this.type != null) {
9513
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
9514
        oprot.writeString(this.type);
9515
        oprot.writeFieldEnd();
9516
      }
1139 chandransh 9517
      oprot.writeFieldStop();
9518
      oprot.writeStructEnd();
9519
    }
9520
 
9521
    @Override
9522
    public String toString() {
9523
      StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
9524
      boolean first = true;
9525
 
9526
      sb.append("providerId:");
9527
      sb.append(this.providerId);
9528
      first = false;
3103 chandransh 9529
      if (!first) sb.append(", ");
9530
      sb.append("type:");
9531
      if (this.type == null) {
9532
        sb.append("null");
9533
      } else {
9534
        sb.append(this.type);
9535
      }
9536
      first = false;
1139 chandransh 9537
      sb.append(")");
9538
      return sb.toString();
9539
    }
9540
 
3430 rajveer 9541
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9542
      // check for required fields
9543
    }
9544
 
3430 rajveer 9545
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9546
      try {
9547
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9548
      } catch (org.apache.thrift.TException te) {
9549
        throw new java.io.IOException(te);
9550
      }
9551
    }
9552
 
9553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9554
      try {
9555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9556
      } catch (org.apache.thrift.TException te) {
9557
        throw new java.io.IOException(te);
9558
      }
9559
    }
9560
 
1139 chandransh 9561
  }
9562
 
3430 rajveer 9563
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
9564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
1139 chandransh 9565
 
3430 rajveer 9566
    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 9567
 
3430 rajveer 9568
    private long success; // required
1139 chandransh 9569
 
9570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1139 chandransh 9572
      SUCCESS((short)0, "success");
9573
 
9574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9575
 
9576
      static {
9577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9578
          byName.put(field.getFieldName(), field);
9579
        }
9580
      }
9581
 
9582
      /**
9583
       * Find the _Fields constant that matches fieldId, or null if its not found.
9584
       */
9585
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9586
        switch(fieldId) {
9587
          case 0: // SUCCESS
9588
            return SUCCESS;
9589
          default:
9590
            return null;
9591
        }
1139 chandransh 9592
      }
9593
 
9594
      /**
9595
       * Find the _Fields constant that matches fieldId, throwing an exception
9596
       * if it is not found.
9597
       */
9598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9599
        _Fields fields = findByThriftId(fieldId);
9600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9601
        return fields;
9602
      }
9603
 
9604
      /**
9605
       * Find the _Fields constant that matches name, or null if its not found.
9606
       */
9607
      public static _Fields findByName(String name) {
9608
        return byName.get(name);
9609
      }
9610
 
9611
      private final short _thriftId;
9612
      private final String _fieldName;
9613
 
9614
      _Fields(short thriftId, String fieldName) {
9615
        _thriftId = thriftId;
9616
        _fieldName = fieldName;
9617
      }
9618
 
9619
      public short getThriftFieldId() {
9620
        return _thriftId;
9621
      }
9622
 
9623
      public String getFieldName() {
9624
        return _fieldName;
9625
      }
9626
    }
9627
 
9628
    // isset id assignments
9629
    private static final int __SUCCESS_ISSET_ID = 0;
9630
    private BitSet __isset_bit_vector = new BitSet(1);
9631
 
3430 rajveer 9632
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1139 chandransh 9633
    static {
3430 rajveer 9634
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9635
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
1139 chandransh 9639
    }
9640
 
9641
    public getFreeAwbCount_result() {
9642
    }
9643
 
9644
    public getFreeAwbCount_result(
9645
      long success)
9646
    {
9647
      this();
9648
      this.success = success;
9649
      setSuccessIsSet(true);
9650
    }
9651
 
9652
    /**
9653
     * Performs a deep copy on <i>other</i>.
9654
     */
9655
    public getFreeAwbCount_result(getFreeAwbCount_result other) {
9656
      __isset_bit_vector.clear();
9657
      __isset_bit_vector.or(other.__isset_bit_vector);
9658
      this.success = other.success;
9659
    }
9660
 
9661
    public getFreeAwbCount_result deepCopy() {
9662
      return new getFreeAwbCount_result(this);
9663
    }
9664
 
3430 rajveer 9665
    @Override
9666
    public void clear() {
9667
      setSuccessIsSet(false);
9668
      this.success = 0;
1139 chandransh 9669
    }
9670
 
9671
    public long getSuccess() {
9672
      return this.success;
9673
    }
9674
 
3430 rajveer 9675
    public void setSuccess(long success) {
1139 chandransh 9676
      this.success = success;
9677
      setSuccessIsSet(true);
9678
    }
9679
 
9680
    public void unsetSuccess() {
9681
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9682
    }
9683
 
3430 rajveer 9684
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1139 chandransh 9685
    public boolean isSetSuccess() {
9686
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9687
    }
9688
 
9689
    public void setSuccessIsSet(boolean value) {
9690
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9691
    }
9692
 
9693
    public void setFieldValue(_Fields field, Object value) {
9694
      switch (field) {
9695
      case SUCCESS:
9696
        if (value == null) {
9697
          unsetSuccess();
9698
        } else {
9699
          setSuccess((Long)value);
9700
        }
9701
        break;
9702
 
9703
      }
9704
    }
9705
 
9706
    public Object getFieldValue(_Fields field) {
9707
      switch (field) {
9708
      case SUCCESS:
3430 rajveer 9709
        return Long.valueOf(getSuccess());
1139 chandransh 9710
 
9711
      }
9712
      throw new IllegalStateException();
9713
    }
9714
 
3430 rajveer 9715
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9716
    public boolean isSet(_Fields field) {
9717
      if (field == null) {
9718
        throw new IllegalArgumentException();
9719
      }
1139 chandransh 9720
 
9721
      switch (field) {
9722
      case SUCCESS:
9723
        return isSetSuccess();
9724
      }
9725
      throw new IllegalStateException();
9726
    }
9727
 
9728
    @Override
9729
    public boolean equals(Object that) {
9730
      if (that == null)
9731
        return false;
9732
      if (that instanceof getFreeAwbCount_result)
9733
        return this.equals((getFreeAwbCount_result)that);
9734
      return false;
9735
    }
9736
 
9737
    public boolean equals(getFreeAwbCount_result that) {
9738
      if (that == null)
9739
        return false;
9740
 
9741
      boolean this_present_success = true;
9742
      boolean that_present_success = true;
9743
      if (this_present_success || that_present_success) {
9744
        if (!(this_present_success && that_present_success))
9745
          return false;
9746
        if (this.success != that.success)
9747
          return false;
9748
      }
9749
 
9750
      return true;
9751
    }
9752
 
9753
    @Override
9754
    public int hashCode() {
9755
      return 0;
9756
    }
9757
 
9758
    public int compareTo(getFreeAwbCount_result other) {
9759
      if (!getClass().equals(other.getClass())) {
9760
        return getClass().getName().compareTo(other.getClass().getName());
9761
      }
9762
 
9763
      int lastComparison = 0;
9764
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
9765
 
3430 rajveer 9766
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1139 chandransh 9767
      if (lastComparison != 0) {
9768
        return lastComparison;
9769
      }
3430 rajveer 9770
      if (isSetSuccess()) {
9771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9772
        if (lastComparison != 0) {
9773
          return lastComparison;
9774
        }
1139 chandransh 9775
      }
9776
      return 0;
9777
    }
9778
 
3430 rajveer 9779
    public _Fields fieldForId(int fieldId) {
9780
      return _Fields.findByThriftId(fieldId);
9781
    }
9782
 
9783
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9784
      org.apache.thrift.protocol.TField field;
1139 chandransh 9785
      iprot.readStructBegin();
9786
      while (true)
9787
      {
9788
        field = iprot.readFieldBegin();
3430 rajveer 9789
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1139 chandransh 9790
          break;
9791
        }
3430 rajveer 9792
        switch (field.id) {
9793
          case 0: // SUCCESS
9794
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9795
              this.success = iprot.readI64();
9796
              setSuccessIsSet(true);
9797
            } else { 
9798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9799
            }
9800
            break;
9801
          default:
9802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1139 chandransh 9803
        }
3430 rajveer 9804
        iprot.readFieldEnd();
1139 chandransh 9805
      }
9806
      iprot.readStructEnd();
9807
      validate();
9808
    }
9809
 
3430 rajveer 9810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1139 chandransh 9811
      oprot.writeStructBegin(STRUCT_DESC);
9812
 
9813
      if (this.isSetSuccess()) {
9814
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9815
        oprot.writeI64(this.success);
9816
        oprot.writeFieldEnd();
9817
      }
9818
      oprot.writeFieldStop();
9819
      oprot.writeStructEnd();
9820
    }
9821
 
9822
    @Override
9823
    public String toString() {
9824
      StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
9825
      boolean first = true;
9826
 
9827
      sb.append("success:");
9828
      sb.append(this.success);
9829
      first = false;
9830
      sb.append(")");
9831
      return sb.toString();
9832
    }
9833
 
3430 rajveer 9834
    public void validate() throws org.apache.thrift.TException {
1139 chandransh 9835
      // check for required fields
9836
    }
9837
 
3430 rajveer 9838
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9839
      try {
9840
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9841
      } catch (org.apache.thrift.TException te) {
9842
        throw new java.io.IOException(te);
9843
      }
9844
    }
9845
 
9846
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9847
      try {
9848
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9849
      } catch (org.apache.thrift.TException te) {
9850
        throw new java.io.IOException(te);
9851
      }
9852
    }
9853
 
1139 chandransh 9854
  }
9855
 
3430 rajveer 9856
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
9857
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
1730 ankur.sing 9858
 
3430 rajveer 9859
    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);
9860
    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 9861
 
3430 rajveer 9862
    private long fromDate; // required
9863
    private long toDate; // required
1730 ankur.sing 9864
 
9865
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9866
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 9867
      FROM_DATE((short)1, "fromDate"),
9868
      TO_DATE((short)2, "toDate");
9869
 
9870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9871
 
9872
      static {
9873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9874
          byName.put(field.getFieldName(), field);
9875
        }
9876
      }
9877
 
9878
      /**
9879
       * Find the _Fields constant that matches fieldId, or null if its not found.
9880
       */
9881
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9882
        switch(fieldId) {
9883
          case 1: // FROM_DATE
9884
            return FROM_DATE;
9885
          case 2: // TO_DATE
9886
            return TO_DATE;
9887
          default:
9888
            return null;
9889
        }
1730 ankur.sing 9890
      }
9891
 
9892
      /**
9893
       * Find the _Fields constant that matches fieldId, throwing an exception
9894
       * if it is not found.
9895
       */
9896
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9897
        _Fields fields = findByThriftId(fieldId);
9898
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9899
        return fields;
9900
      }
9901
 
9902
      /**
9903
       * Find the _Fields constant that matches name, or null if its not found.
9904
       */
9905
      public static _Fields findByName(String name) {
9906
        return byName.get(name);
9907
      }
9908
 
9909
      private final short _thriftId;
9910
      private final String _fieldName;
9911
 
9912
      _Fields(short thriftId, String fieldName) {
9913
        _thriftId = thriftId;
9914
        _fieldName = fieldName;
9915
      }
9916
 
9917
      public short getThriftFieldId() {
9918
        return _thriftId;
9919
      }
9920
 
9921
      public String getFieldName() {
9922
        return _fieldName;
9923
      }
9924
    }
9925
 
9926
    // isset id assignments
9927
    private static final int __FROMDATE_ISSET_ID = 0;
9928
    private static final int __TODATE_ISSET_ID = 1;
9929
    private BitSet __isset_bit_vector = new BitSet(2);
9930
 
3430 rajveer 9931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 9932
    static {
3430 rajveer 9933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9934
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9936
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9938
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9939
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
1730 ankur.sing 9940
    }
9941
 
9942
    public getHolidays_args() {
9943
    }
9944
 
9945
    public getHolidays_args(
9946
      long fromDate,
9947
      long toDate)
9948
    {
9949
      this();
9950
      this.fromDate = fromDate;
9951
      setFromDateIsSet(true);
9952
      this.toDate = toDate;
9953
      setToDateIsSet(true);
9954
    }
9955
 
9956
    /**
9957
     * Performs a deep copy on <i>other</i>.
9958
     */
9959
    public getHolidays_args(getHolidays_args other) {
9960
      __isset_bit_vector.clear();
9961
      __isset_bit_vector.or(other.__isset_bit_vector);
9962
      this.fromDate = other.fromDate;
9963
      this.toDate = other.toDate;
9964
    }
9965
 
9966
    public getHolidays_args deepCopy() {
9967
      return new getHolidays_args(this);
9968
    }
9969
 
3430 rajveer 9970
    @Override
9971
    public void clear() {
9972
      setFromDateIsSet(false);
9973
      this.fromDate = 0;
9974
      setToDateIsSet(false);
9975
      this.toDate = 0;
1730 ankur.sing 9976
    }
9977
 
9978
    public long getFromDate() {
9979
      return this.fromDate;
9980
    }
9981
 
3430 rajveer 9982
    public void setFromDate(long fromDate) {
1730 ankur.sing 9983
      this.fromDate = fromDate;
9984
      setFromDateIsSet(true);
9985
    }
9986
 
9987
    public void unsetFromDate() {
9988
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
9989
    }
9990
 
3430 rajveer 9991
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 9992
    public boolean isSetFromDate() {
9993
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
9994
    }
9995
 
9996
    public void setFromDateIsSet(boolean value) {
9997
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
9998
    }
9999
 
10000
    public long getToDate() {
10001
      return this.toDate;
10002
    }
10003
 
3430 rajveer 10004
    public void setToDate(long toDate) {
1730 ankur.sing 10005
      this.toDate = toDate;
10006
      setToDateIsSet(true);
10007
    }
10008
 
10009
    public void unsetToDate() {
10010
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
10011
    }
10012
 
3430 rajveer 10013
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10014
    public boolean isSetToDate() {
10015
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
10016
    }
10017
 
10018
    public void setToDateIsSet(boolean value) {
10019
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
10020
    }
10021
 
10022
    public void setFieldValue(_Fields field, Object value) {
10023
      switch (field) {
10024
      case FROM_DATE:
10025
        if (value == null) {
10026
          unsetFromDate();
10027
        } else {
10028
          setFromDate((Long)value);
10029
        }
10030
        break;
10031
 
10032
      case TO_DATE:
10033
        if (value == null) {
10034
          unsetToDate();
10035
        } else {
10036
          setToDate((Long)value);
10037
        }
10038
        break;
10039
 
10040
      }
10041
    }
10042
 
10043
    public Object getFieldValue(_Fields field) {
10044
      switch (field) {
10045
      case FROM_DATE:
3430 rajveer 10046
        return Long.valueOf(getFromDate());
1730 ankur.sing 10047
 
10048
      case TO_DATE:
3430 rajveer 10049
        return Long.valueOf(getToDate());
1730 ankur.sing 10050
 
10051
      }
10052
      throw new IllegalStateException();
10053
    }
10054
 
3430 rajveer 10055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10056
    public boolean isSet(_Fields field) {
10057
      if (field == null) {
10058
        throw new IllegalArgumentException();
10059
      }
1730 ankur.sing 10060
 
10061
      switch (field) {
10062
      case FROM_DATE:
10063
        return isSetFromDate();
10064
      case TO_DATE:
10065
        return isSetToDate();
10066
      }
10067
      throw new IllegalStateException();
10068
    }
10069
 
10070
    @Override
10071
    public boolean equals(Object that) {
10072
      if (that == null)
10073
        return false;
10074
      if (that instanceof getHolidays_args)
10075
        return this.equals((getHolidays_args)that);
10076
      return false;
10077
    }
10078
 
10079
    public boolean equals(getHolidays_args that) {
10080
      if (that == null)
10081
        return false;
10082
 
10083
      boolean this_present_fromDate = true;
10084
      boolean that_present_fromDate = true;
10085
      if (this_present_fromDate || that_present_fromDate) {
10086
        if (!(this_present_fromDate && that_present_fromDate))
10087
          return false;
10088
        if (this.fromDate != that.fromDate)
10089
          return false;
10090
      }
10091
 
10092
      boolean this_present_toDate = true;
10093
      boolean that_present_toDate = true;
10094
      if (this_present_toDate || that_present_toDate) {
10095
        if (!(this_present_toDate && that_present_toDate))
10096
          return false;
10097
        if (this.toDate != that.toDate)
10098
          return false;
10099
      }
10100
 
10101
      return true;
10102
    }
10103
 
10104
    @Override
10105
    public int hashCode() {
10106
      return 0;
10107
    }
10108
 
10109
    public int compareTo(getHolidays_args other) {
10110
      if (!getClass().equals(other.getClass())) {
10111
        return getClass().getName().compareTo(other.getClass().getName());
10112
      }
10113
 
10114
      int lastComparison = 0;
10115
      getHolidays_args typedOther = (getHolidays_args)other;
10116
 
3430 rajveer 10117
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
1730 ankur.sing 10118
      if (lastComparison != 0) {
10119
        return lastComparison;
10120
      }
3430 rajveer 10121
      if (isSetFromDate()) {
10122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
10123
        if (lastComparison != 0) {
10124
          return lastComparison;
10125
        }
1730 ankur.sing 10126
      }
3430 rajveer 10127
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
1730 ankur.sing 10128
      if (lastComparison != 0) {
10129
        return lastComparison;
10130
      }
3430 rajveer 10131
      if (isSetToDate()) {
10132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
10133
        if (lastComparison != 0) {
10134
          return lastComparison;
10135
        }
1730 ankur.sing 10136
      }
10137
      return 0;
10138
    }
10139
 
3430 rajveer 10140
    public _Fields fieldForId(int fieldId) {
10141
      return _Fields.findByThriftId(fieldId);
10142
    }
10143
 
10144
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10145
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10146
      iprot.readStructBegin();
10147
      while (true)
10148
      {
10149
        field = iprot.readFieldBegin();
3430 rajveer 10150
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10151
          break;
10152
        }
3430 rajveer 10153
        switch (field.id) {
10154
          case 1: // FROM_DATE
10155
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10156
              this.fromDate = iprot.readI64();
10157
              setFromDateIsSet(true);
10158
            } else { 
10159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10160
            }
10161
            break;
10162
          case 2: // TO_DATE
10163
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10164
              this.toDate = iprot.readI64();
10165
              setToDateIsSet(true);
10166
            } else { 
10167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10168
            }
10169
            break;
10170
          default:
10171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10172
        }
3430 rajveer 10173
        iprot.readFieldEnd();
1730 ankur.sing 10174
      }
10175
      iprot.readStructEnd();
10176
      validate();
10177
    }
10178
 
3430 rajveer 10179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10180
      validate();
10181
 
10182
      oprot.writeStructBegin(STRUCT_DESC);
10183
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
10184
      oprot.writeI64(this.fromDate);
10185
      oprot.writeFieldEnd();
10186
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
10187
      oprot.writeI64(this.toDate);
10188
      oprot.writeFieldEnd();
10189
      oprot.writeFieldStop();
10190
      oprot.writeStructEnd();
10191
    }
10192
 
10193
    @Override
10194
    public String toString() {
10195
      StringBuilder sb = new StringBuilder("getHolidays_args(");
10196
      boolean first = true;
10197
 
10198
      sb.append("fromDate:");
10199
      sb.append(this.fromDate);
10200
      first = false;
10201
      if (!first) sb.append(", ");
10202
      sb.append("toDate:");
10203
      sb.append(this.toDate);
10204
      first = false;
10205
      sb.append(")");
10206
      return sb.toString();
10207
    }
10208
 
3430 rajveer 10209
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10210
      // check for required fields
10211
    }
10212
 
3430 rajveer 10213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10214
      try {
10215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10216
      } catch (org.apache.thrift.TException te) {
10217
        throw new java.io.IOException(te);
10218
      }
10219
    }
10220
 
10221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10222
      try {
10223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10224
      } catch (org.apache.thrift.TException te) {
10225
        throw new java.io.IOException(te);
10226
      }
10227
    }
10228
 
1730 ankur.sing 10229
  }
10230
 
3430 rajveer 10231
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
10232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
1730 ankur.sing 10233
 
3430 rajveer 10234
    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 10235
 
3430 rajveer 10236
    private List<Long> success; // required
1730 ankur.sing 10237
 
10238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1730 ankur.sing 10240
      SUCCESS((short)0, "success");
10241
 
10242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10243
 
10244
      static {
10245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10246
          byName.put(field.getFieldName(), field);
10247
        }
10248
      }
10249
 
10250
      /**
10251
       * Find the _Fields constant that matches fieldId, or null if its not found.
10252
       */
10253
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10254
        switch(fieldId) {
10255
          case 0: // SUCCESS
10256
            return SUCCESS;
10257
          default:
10258
            return null;
10259
        }
1730 ankur.sing 10260
      }
10261
 
10262
      /**
10263
       * Find the _Fields constant that matches fieldId, throwing an exception
10264
       * if it is not found.
10265
       */
10266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10267
        _Fields fields = findByThriftId(fieldId);
10268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10269
        return fields;
10270
      }
10271
 
10272
      /**
10273
       * Find the _Fields constant that matches name, or null if its not found.
10274
       */
10275
      public static _Fields findByName(String name) {
10276
        return byName.get(name);
10277
      }
10278
 
10279
      private final short _thriftId;
10280
      private final String _fieldName;
10281
 
10282
      _Fields(short thriftId, String fieldName) {
10283
        _thriftId = thriftId;
10284
        _fieldName = fieldName;
10285
      }
10286
 
10287
      public short getThriftFieldId() {
10288
        return _thriftId;
10289
      }
10290
 
10291
      public String getFieldName() {
10292
        return _fieldName;
10293
      }
10294
    }
10295
 
10296
    // isset id assignments
10297
 
3430 rajveer 10298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1730 ankur.sing 10299
    static {
3430 rajveer 10300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10301
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10302
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10303
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
10304
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10305
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
1730 ankur.sing 10306
    }
10307
 
10308
    public getHolidays_result() {
10309
    }
10310
 
10311
    public getHolidays_result(
10312
      List<Long> success)
10313
    {
10314
      this();
10315
      this.success = success;
10316
    }
10317
 
10318
    /**
10319
     * Performs a deep copy on <i>other</i>.
10320
     */
10321
    public getHolidays_result(getHolidays_result other) {
10322
      if (other.isSetSuccess()) {
10323
        List<Long> __this__success = new ArrayList<Long>();
10324
        for (Long other_element : other.success) {
10325
          __this__success.add(other_element);
10326
        }
10327
        this.success = __this__success;
10328
      }
10329
    }
10330
 
10331
    public getHolidays_result deepCopy() {
10332
      return new getHolidays_result(this);
10333
    }
10334
 
3430 rajveer 10335
    @Override
10336
    public void clear() {
10337
      this.success = null;
1730 ankur.sing 10338
    }
10339
 
10340
    public int getSuccessSize() {
10341
      return (this.success == null) ? 0 : this.success.size();
10342
    }
10343
 
10344
    public java.util.Iterator<Long> getSuccessIterator() {
10345
      return (this.success == null) ? null : this.success.iterator();
10346
    }
10347
 
10348
    public void addToSuccess(long elem) {
10349
      if (this.success == null) {
10350
        this.success = new ArrayList<Long>();
10351
      }
10352
      this.success.add(elem);
10353
    }
10354
 
10355
    public List<Long> getSuccess() {
10356
      return this.success;
10357
    }
10358
 
3430 rajveer 10359
    public void setSuccess(List<Long> success) {
1730 ankur.sing 10360
      this.success = success;
10361
    }
10362
 
10363
    public void unsetSuccess() {
10364
      this.success = null;
10365
    }
10366
 
3430 rajveer 10367
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1730 ankur.sing 10368
    public boolean isSetSuccess() {
10369
      return this.success != null;
10370
    }
10371
 
10372
    public void setSuccessIsSet(boolean value) {
10373
      if (!value) {
10374
        this.success = null;
10375
      }
10376
    }
10377
 
10378
    public void setFieldValue(_Fields field, Object value) {
10379
      switch (field) {
10380
      case SUCCESS:
10381
        if (value == null) {
10382
          unsetSuccess();
10383
        } else {
10384
          setSuccess((List<Long>)value);
10385
        }
10386
        break;
10387
 
10388
      }
10389
    }
10390
 
10391
    public Object getFieldValue(_Fields field) {
10392
      switch (field) {
10393
      case SUCCESS:
10394
        return getSuccess();
10395
 
10396
      }
10397
      throw new IllegalStateException();
10398
    }
10399
 
3430 rajveer 10400
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10401
    public boolean isSet(_Fields field) {
10402
      if (field == null) {
10403
        throw new IllegalArgumentException();
10404
      }
1730 ankur.sing 10405
 
10406
      switch (field) {
10407
      case SUCCESS:
10408
        return isSetSuccess();
10409
      }
10410
      throw new IllegalStateException();
10411
    }
10412
 
10413
    @Override
10414
    public boolean equals(Object that) {
10415
      if (that == null)
10416
        return false;
10417
      if (that instanceof getHolidays_result)
10418
        return this.equals((getHolidays_result)that);
10419
      return false;
10420
    }
10421
 
10422
    public boolean equals(getHolidays_result that) {
10423
      if (that == null)
10424
        return false;
10425
 
10426
      boolean this_present_success = true && this.isSetSuccess();
10427
      boolean that_present_success = true && that.isSetSuccess();
10428
      if (this_present_success || that_present_success) {
10429
        if (!(this_present_success && that_present_success))
10430
          return false;
10431
        if (!this.success.equals(that.success))
10432
          return false;
10433
      }
10434
 
10435
      return true;
10436
    }
10437
 
10438
    @Override
10439
    public int hashCode() {
10440
      return 0;
10441
    }
10442
 
10443
    public int compareTo(getHolidays_result other) {
10444
      if (!getClass().equals(other.getClass())) {
10445
        return getClass().getName().compareTo(other.getClass().getName());
10446
      }
10447
 
10448
      int lastComparison = 0;
10449
      getHolidays_result typedOther = (getHolidays_result)other;
10450
 
3430 rajveer 10451
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1730 ankur.sing 10452
      if (lastComparison != 0) {
10453
        return lastComparison;
10454
      }
3430 rajveer 10455
      if (isSetSuccess()) {
10456
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10457
        if (lastComparison != 0) {
10458
          return lastComparison;
10459
        }
1730 ankur.sing 10460
      }
10461
      return 0;
10462
    }
10463
 
3430 rajveer 10464
    public _Fields fieldForId(int fieldId) {
10465
      return _Fields.findByThriftId(fieldId);
10466
    }
10467
 
10468
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10469
      org.apache.thrift.protocol.TField field;
1730 ankur.sing 10470
      iprot.readStructBegin();
10471
      while (true)
10472
      {
10473
        field = iprot.readFieldBegin();
3430 rajveer 10474
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1730 ankur.sing 10475
          break;
10476
        }
3430 rajveer 10477
        switch (field.id) {
10478
          case 0: // SUCCESS
10479
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10480
              {
7792 anupam.sin 10481
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
10482
                this.success = new ArrayList<Long>(_list12.size);
10483
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1730 ankur.sing 10484
                {
7792 anupam.sin 10485
                  long _elem14; // required
10486
                  _elem14 = iprot.readI64();
10487
                  this.success.add(_elem14);
1730 ankur.sing 10488
                }
3430 rajveer 10489
                iprot.readListEnd();
1730 ankur.sing 10490
              }
3430 rajveer 10491
            } else { 
10492
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10493
            }
10494
            break;
10495
          default:
10496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1730 ankur.sing 10497
        }
3430 rajveer 10498
        iprot.readFieldEnd();
1730 ankur.sing 10499
      }
10500
      iprot.readStructEnd();
10501
      validate();
10502
    }
10503
 
3430 rajveer 10504
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1730 ankur.sing 10505
      oprot.writeStructBegin(STRUCT_DESC);
10506
 
10507
      if (this.isSetSuccess()) {
10508
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10509
        {
3430 rajveer 10510
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7792 anupam.sin 10511
          for (long _iter15 : this.success)
1730 ankur.sing 10512
          {
7792 anupam.sin 10513
            oprot.writeI64(_iter15);
1730 ankur.sing 10514
          }
10515
          oprot.writeListEnd();
10516
        }
10517
        oprot.writeFieldEnd();
10518
      }
10519
      oprot.writeFieldStop();
10520
      oprot.writeStructEnd();
10521
    }
10522
 
10523
    @Override
10524
    public String toString() {
10525
      StringBuilder sb = new StringBuilder("getHolidays_result(");
10526
      boolean first = true;
10527
 
10528
      sb.append("success:");
10529
      if (this.success == null) {
10530
        sb.append("null");
10531
      } else {
10532
        sb.append(this.success);
10533
      }
10534
      first = false;
10535
      sb.append(")");
10536
      return sb.toString();
10537
    }
10538
 
3430 rajveer 10539
    public void validate() throws org.apache.thrift.TException {
1730 ankur.sing 10540
      // check for required fields
10541
    }
10542
 
3430 rajveer 10543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10544
      try {
10545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10546
      } catch (org.apache.thrift.TException te) {
10547
        throw new java.io.IOException(te);
10548
      }
10549
    }
10550
 
10551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10552
      try {
10553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10554
      } catch (org.apache.thrift.TException te) {
10555
        throw new java.io.IOException(te);
10556
      }
10557
    }
10558
 
1730 ankur.sing 10559
  }
10560
 
4934 amit.gupta 10561
  public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
10562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
10563
 
10564
    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);
10565
    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);
10566
    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);
10567
 
10568
    private long catalogItemId; // required
10569
    private String destination_pin; // required
10570
    private DeliveryType type; // required
10571
 
10572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10574
      CATALOG_ITEM_ID((short)1, "catalogItemId"),
10575
      DESTINATION_PIN((short)2, "destination_pin"),
10576
      /**
10577
       * 
10578
       * @see DeliveryType
10579
       */
10580
      TYPE((short)3, "type");
10581
 
10582
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10583
 
10584
      static {
10585
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10586
          byName.put(field.getFieldName(), field);
10587
        }
10588
      }
10589
 
10590
      /**
10591
       * Find the _Fields constant that matches fieldId, or null if its not found.
10592
       */
10593
      public static _Fields findByThriftId(int fieldId) {
10594
        switch(fieldId) {
10595
          case 1: // CATALOG_ITEM_ID
10596
            return CATALOG_ITEM_ID;
10597
          case 2: // DESTINATION_PIN
10598
            return DESTINATION_PIN;
10599
          case 3: // TYPE
10600
            return TYPE;
10601
          default:
10602
            return null;
10603
        }
10604
      }
10605
 
10606
      /**
10607
       * Find the _Fields constant that matches fieldId, throwing an exception
10608
       * if it is not found.
10609
       */
10610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10611
        _Fields fields = findByThriftId(fieldId);
10612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10613
        return fields;
10614
      }
10615
 
10616
      /**
10617
       * Find the _Fields constant that matches name, or null if its not found.
10618
       */
10619
      public static _Fields findByName(String name) {
10620
        return byName.get(name);
10621
      }
10622
 
10623
      private final short _thriftId;
10624
      private final String _fieldName;
10625
 
10626
      _Fields(short thriftId, String fieldName) {
10627
        _thriftId = thriftId;
10628
        _fieldName = fieldName;
10629
      }
10630
 
10631
      public short getThriftFieldId() {
10632
        return _thriftId;
10633
      }
10634
 
10635
      public String getFieldName() {
10636
        return _fieldName;
10637
      }
10638
    }
10639
 
10640
    // isset id assignments
10641
    private static final int __CATALOGITEMID_ISSET_ID = 0;
10642
    private BitSet __isset_bit_vector = new BitSet(1);
10643
 
10644
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10645
    static {
10646
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10647
      tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10649
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10651
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10652
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
10653
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10654
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
10655
    }
10656
 
10657
    public getEntityLogisticsEstimation_args() {
10658
    }
10659
 
10660
    public getEntityLogisticsEstimation_args(
10661
      long catalogItemId,
10662
      String destination_pin,
10663
      DeliveryType type)
10664
    {
10665
      this();
10666
      this.catalogItemId = catalogItemId;
10667
      setCatalogItemIdIsSet(true);
10668
      this.destination_pin = destination_pin;
10669
      this.type = type;
10670
    }
10671
 
10672
    /**
10673
     * Performs a deep copy on <i>other</i>.
10674
     */
10675
    public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
10676
      __isset_bit_vector.clear();
10677
      __isset_bit_vector.or(other.__isset_bit_vector);
10678
      this.catalogItemId = other.catalogItemId;
10679
      if (other.isSetDestination_pin()) {
10680
        this.destination_pin = other.destination_pin;
10681
      }
10682
      if (other.isSetType()) {
10683
        this.type = other.type;
10684
      }
10685
    }
10686
 
10687
    public getEntityLogisticsEstimation_args deepCopy() {
10688
      return new getEntityLogisticsEstimation_args(this);
10689
    }
10690
 
10691
    @Override
10692
    public void clear() {
10693
      setCatalogItemIdIsSet(false);
10694
      this.catalogItemId = 0;
10695
      this.destination_pin = null;
10696
      this.type = null;
10697
    }
10698
 
10699
    public long getCatalogItemId() {
10700
      return this.catalogItemId;
10701
    }
10702
 
10703
    public void setCatalogItemId(long catalogItemId) {
10704
      this.catalogItemId = catalogItemId;
10705
      setCatalogItemIdIsSet(true);
10706
    }
10707
 
10708
    public void unsetCatalogItemId() {
10709
      __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
10710
    }
10711
 
10712
    /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
10713
    public boolean isSetCatalogItemId() {
10714
      return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
10715
    }
10716
 
10717
    public void setCatalogItemIdIsSet(boolean value) {
10718
      __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
10719
    }
10720
 
10721
    public String getDestination_pin() {
10722
      return this.destination_pin;
10723
    }
10724
 
10725
    public void setDestination_pin(String destination_pin) {
10726
      this.destination_pin = destination_pin;
10727
    }
10728
 
10729
    public void unsetDestination_pin() {
10730
      this.destination_pin = null;
10731
    }
10732
 
10733
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
10734
    public boolean isSetDestination_pin() {
10735
      return this.destination_pin != null;
10736
    }
10737
 
10738
    public void setDestination_pinIsSet(boolean value) {
10739
      if (!value) {
10740
        this.destination_pin = null;
10741
      }
10742
    }
10743
 
10744
    /**
10745
     * 
10746
     * @see DeliveryType
10747
     */
10748
    public DeliveryType getType() {
10749
      return this.type;
10750
    }
10751
 
10752
    /**
10753
     * 
10754
     * @see DeliveryType
10755
     */
10756
    public void setType(DeliveryType type) {
10757
      this.type = type;
10758
    }
10759
 
10760
    public void unsetType() {
10761
      this.type = null;
10762
    }
10763
 
10764
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
10765
    public boolean isSetType() {
10766
      return this.type != null;
10767
    }
10768
 
10769
    public void setTypeIsSet(boolean value) {
10770
      if (!value) {
10771
        this.type = null;
10772
      }
10773
    }
10774
 
10775
    public void setFieldValue(_Fields field, Object value) {
10776
      switch (field) {
10777
      case CATALOG_ITEM_ID:
10778
        if (value == null) {
10779
          unsetCatalogItemId();
10780
        } else {
10781
          setCatalogItemId((Long)value);
10782
        }
10783
        break;
10784
 
10785
      case DESTINATION_PIN:
10786
        if (value == null) {
10787
          unsetDestination_pin();
10788
        } else {
10789
          setDestination_pin((String)value);
10790
        }
10791
        break;
10792
 
10793
      case TYPE:
10794
        if (value == null) {
10795
          unsetType();
10796
        } else {
10797
          setType((DeliveryType)value);
10798
        }
10799
        break;
10800
 
10801
      }
10802
    }
10803
 
10804
    public Object getFieldValue(_Fields field) {
10805
      switch (field) {
10806
      case CATALOG_ITEM_ID:
10807
        return Long.valueOf(getCatalogItemId());
10808
 
10809
      case DESTINATION_PIN:
10810
        return getDestination_pin();
10811
 
10812
      case TYPE:
10813
        return getType();
10814
 
10815
      }
10816
      throw new IllegalStateException();
10817
    }
10818
 
10819
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10820
    public boolean isSet(_Fields field) {
10821
      if (field == null) {
10822
        throw new IllegalArgumentException();
10823
      }
10824
 
10825
      switch (field) {
10826
      case CATALOG_ITEM_ID:
10827
        return isSetCatalogItemId();
10828
      case DESTINATION_PIN:
10829
        return isSetDestination_pin();
10830
      case TYPE:
10831
        return isSetType();
10832
      }
10833
      throw new IllegalStateException();
10834
    }
10835
 
10836
    @Override
10837
    public boolean equals(Object that) {
10838
      if (that == null)
10839
        return false;
10840
      if (that instanceof getEntityLogisticsEstimation_args)
10841
        return this.equals((getEntityLogisticsEstimation_args)that);
10842
      return false;
10843
    }
10844
 
10845
    public boolean equals(getEntityLogisticsEstimation_args that) {
10846
      if (that == null)
10847
        return false;
10848
 
10849
      boolean this_present_catalogItemId = true;
10850
      boolean that_present_catalogItemId = true;
10851
      if (this_present_catalogItemId || that_present_catalogItemId) {
10852
        if (!(this_present_catalogItemId && that_present_catalogItemId))
10853
          return false;
10854
        if (this.catalogItemId != that.catalogItemId)
10855
          return false;
10856
      }
10857
 
10858
      boolean this_present_destination_pin = true && this.isSetDestination_pin();
10859
      boolean that_present_destination_pin = true && that.isSetDestination_pin();
10860
      if (this_present_destination_pin || that_present_destination_pin) {
10861
        if (!(this_present_destination_pin && that_present_destination_pin))
10862
          return false;
10863
        if (!this.destination_pin.equals(that.destination_pin))
10864
          return false;
10865
      }
10866
 
10867
      boolean this_present_type = true && this.isSetType();
10868
      boolean that_present_type = true && that.isSetType();
10869
      if (this_present_type || that_present_type) {
10870
        if (!(this_present_type && that_present_type))
10871
          return false;
10872
        if (!this.type.equals(that.type))
10873
          return false;
10874
      }
10875
 
10876
      return true;
10877
    }
10878
 
10879
    @Override
10880
    public int hashCode() {
10881
      return 0;
10882
    }
10883
 
10884
    public int compareTo(getEntityLogisticsEstimation_args other) {
10885
      if (!getClass().equals(other.getClass())) {
10886
        return getClass().getName().compareTo(other.getClass().getName());
10887
      }
10888
 
10889
      int lastComparison = 0;
10890
      getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
10891
 
10892
      lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
10893
      if (lastComparison != 0) {
10894
        return lastComparison;
10895
      }
10896
      if (isSetCatalogItemId()) {
10897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
10898
        if (lastComparison != 0) {
10899
          return lastComparison;
10900
        }
10901
      }
10902
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
10903
      if (lastComparison != 0) {
10904
        return lastComparison;
10905
      }
10906
      if (isSetDestination_pin()) {
10907
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
10908
        if (lastComparison != 0) {
10909
          return lastComparison;
10910
        }
10911
      }
10912
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
10913
      if (lastComparison != 0) {
10914
        return lastComparison;
10915
      }
10916
      if (isSetType()) {
10917
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
10918
        if (lastComparison != 0) {
10919
          return lastComparison;
10920
        }
10921
      }
10922
      return 0;
10923
    }
10924
 
10925
    public _Fields fieldForId(int fieldId) {
10926
      return _Fields.findByThriftId(fieldId);
10927
    }
10928
 
10929
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10930
      org.apache.thrift.protocol.TField field;
10931
      iprot.readStructBegin();
10932
      while (true)
10933
      {
10934
        field = iprot.readFieldBegin();
10935
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10936
          break;
10937
        }
10938
        switch (field.id) {
10939
          case 1: // CATALOG_ITEM_ID
10940
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10941
              this.catalogItemId = iprot.readI64();
10942
              setCatalogItemIdIsSet(true);
10943
            } else { 
10944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10945
            }
10946
            break;
10947
          case 2: // DESTINATION_PIN
10948
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10949
              this.destination_pin = iprot.readString();
10950
            } else { 
10951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10952
            }
10953
            break;
10954
          case 3: // TYPE
10955
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10956
              this.type = DeliveryType.findByValue(iprot.readI32());
10957
            } else { 
10958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10959
            }
10960
            break;
10961
          default:
10962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10963
        }
10964
        iprot.readFieldEnd();
10965
      }
10966
      iprot.readStructEnd();
10967
      validate();
10968
    }
10969
 
10970
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10971
      validate();
10972
 
10973
      oprot.writeStructBegin(STRUCT_DESC);
10974
      oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
10975
      oprot.writeI64(this.catalogItemId);
10976
      oprot.writeFieldEnd();
10977
      if (this.destination_pin != null) {
10978
        oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
10979
        oprot.writeString(this.destination_pin);
10980
        oprot.writeFieldEnd();
10981
      }
10982
      if (this.type != null) {
10983
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
10984
        oprot.writeI32(this.type.getValue());
10985
        oprot.writeFieldEnd();
10986
      }
10987
      oprot.writeFieldStop();
10988
      oprot.writeStructEnd();
10989
    }
10990
 
10991
    @Override
10992
    public String toString() {
10993
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
10994
      boolean first = true;
10995
 
10996
      sb.append("catalogItemId:");
10997
      sb.append(this.catalogItemId);
10998
      first = false;
10999
      if (!first) sb.append(", ");
11000
      sb.append("destination_pin:");
11001
      if (this.destination_pin == null) {
11002
        sb.append("null");
11003
      } else {
11004
        sb.append(this.destination_pin);
11005
      }
11006
      first = false;
11007
      if (!first) sb.append(", ");
11008
      sb.append("type:");
11009
      if (this.type == null) {
11010
        sb.append("null");
11011
      } else {
11012
        sb.append(this.type);
11013
      }
11014
      first = false;
11015
      sb.append(")");
11016
      return sb.toString();
11017
    }
11018
 
11019
    public void validate() throws org.apache.thrift.TException {
11020
      // check for required fields
11021
    }
11022
 
11023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11024
      try {
11025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11026
      } catch (org.apache.thrift.TException te) {
11027
        throw new java.io.IOException(te);
11028
      }
11029
    }
11030
 
11031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11032
      try {
11033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11034
      } catch (org.apache.thrift.TException te) {
11035
        throw new java.io.IOException(te);
11036
      }
11037
    }
11038
 
11039
  }
11040
 
11041
  public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
11042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
11043
 
11044
    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);
11045
    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);
11046
 
9840 amit.gupta 11047
    private List<ItemText> success; // required
4934 amit.gupta 11048
    private LogisticsServiceException se; // required
11049
 
11050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11052
      SUCCESS((short)0, "success"),
11053
      SE((short)1, "se");
11054
 
11055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11056
 
11057
      static {
11058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11059
          byName.put(field.getFieldName(), field);
11060
        }
11061
      }
11062
 
11063
      /**
11064
       * Find the _Fields constant that matches fieldId, or null if its not found.
11065
       */
11066
      public static _Fields findByThriftId(int fieldId) {
11067
        switch(fieldId) {
11068
          case 0: // SUCCESS
11069
            return SUCCESS;
11070
          case 1: // SE
11071
            return SE;
11072
          default:
11073
            return null;
11074
        }
11075
      }
11076
 
11077
      /**
11078
       * Find the _Fields constant that matches fieldId, throwing an exception
11079
       * if it is not found.
11080
       */
11081
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11082
        _Fields fields = findByThriftId(fieldId);
11083
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11084
        return fields;
11085
      }
11086
 
11087
      /**
11088
       * Find the _Fields constant that matches name, or null if its not found.
11089
       */
11090
      public static _Fields findByName(String name) {
11091
        return byName.get(name);
11092
      }
11093
 
11094
      private final short _thriftId;
11095
      private final String _fieldName;
11096
 
11097
      _Fields(short thriftId, String fieldName) {
11098
        _thriftId = thriftId;
11099
        _fieldName = fieldName;
11100
      }
11101
 
11102
      public short getThriftFieldId() {
11103
        return _thriftId;
11104
      }
11105
 
11106
      public String getFieldName() {
11107
        return _fieldName;
11108
      }
11109
    }
11110
 
11111
    // isset id assignments
11112
 
11113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11114
    static {
11115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11116
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11117
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9840 amit.gupta 11118
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
4934 amit.gupta 11119
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11121
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11122
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
11123
    }
11124
 
11125
    public getEntityLogisticsEstimation_result() {
11126
    }
11127
 
11128
    public getEntityLogisticsEstimation_result(
9840 amit.gupta 11129
      List<ItemText> success,
4934 amit.gupta 11130
      LogisticsServiceException se)
11131
    {
11132
      this();
11133
      this.success = success;
11134
      this.se = se;
11135
    }
11136
 
11137
    /**
11138
     * Performs a deep copy on <i>other</i>.
11139
     */
11140
    public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
11141
      if (other.isSetSuccess()) {
9840 amit.gupta 11142
        List<ItemText> __this__success = new ArrayList<ItemText>();
11143
        for (ItemText other_element : other.success) {
11144
          __this__success.add(new ItemText(other_element));
4934 amit.gupta 11145
        }
11146
        this.success = __this__success;
11147
      }
11148
      if (other.isSetSe()) {
11149
        this.se = new LogisticsServiceException(other.se);
11150
      }
11151
    }
11152
 
11153
    public getEntityLogisticsEstimation_result deepCopy() {
11154
      return new getEntityLogisticsEstimation_result(this);
11155
    }
11156
 
11157
    @Override
11158
    public void clear() {
11159
      this.success = null;
11160
      this.se = null;
11161
    }
11162
 
11163
    public int getSuccessSize() {
11164
      return (this.success == null) ? 0 : this.success.size();
11165
    }
11166
 
9840 amit.gupta 11167
    public java.util.Iterator<ItemText> getSuccessIterator() {
4934 amit.gupta 11168
      return (this.success == null) ? null : this.success.iterator();
11169
    }
11170
 
9840 amit.gupta 11171
    public void addToSuccess(ItemText elem) {
4934 amit.gupta 11172
      if (this.success == null) {
9840 amit.gupta 11173
        this.success = new ArrayList<ItemText>();
4934 amit.gupta 11174
      }
11175
      this.success.add(elem);
11176
    }
11177
 
9840 amit.gupta 11178
    public List<ItemText> getSuccess() {
4934 amit.gupta 11179
      return this.success;
11180
    }
11181
 
9840 amit.gupta 11182
    public void setSuccess(List<ItemText> success) {
4934 amit.gupta 11183
      this.success = success;
11184
    }
11185
 
11186
    public void unsetSuccess() {
11187
      this.success = null;
11188
    }
11189
 
11190
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11191
    public boolean isSetSuccess() {
11192
      return this.success != null;
11193
    }
11194
 
11195
    public void setSuccessIsSet(boolean value) {
11196
      if (!value) {
11197
        this.success = null;
11198
      }
11199
    }
11200
 
11201
    public LogisticsServiceException getSe() {
11202
      return this.se;
11203
    }
11204
 
11205
    public void setSe(LogisticsServiceException se) {
11206
      this.se = se;
11207
    }
11208
 
11209
    public void unsetSe() {
11210
      this.se = null;
11211
    }
11212
 
11213
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
11214
    public boolean isSetSe() {
11215
      return this.se != null;
11216
    }
11217
 
11218
    public void setSeIsSet(boolean value) {
11219
      if (!value) {
11220
        this.se = null;
11221
      }
11222
    }
11223
 
11224
    public void setFieldValue(_Fields field, Object value) {
11225
      switch (field) {
11226
      case SUCCESS:
11227
        if (value == null) {
11228
          unsetSuccess();
11229
        } else {
9840 amit.gupta 11230
          setSuccess((List<ItemText>)value);
4934 amit.gupta 11231
        }
11232
        break;
11233
 
11234
      case SE:
11235
        if (value == null) {
11236
          unsetSe();
11237
        } else {
11238
          setSe((LogisticsServiceException)value);
11239
        }
11240
        break;
11241
 
11242
      }
11243
    }
11244
 
11245
    public Object getFieldValue(_Fields field) {
11246
      switch (field) {
11247
      case SUCCESS:
11248
        return getSuccess();
11249
 
11250
      case SE:
11251
        return getSe();
11252
 
11253
      }
11254
      throw new IllegalStateException();
11255
    }
11256
 
11257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11258
    public boolean isSet(_Fields field) {
11259
      if (field == null) {
11260
        throw new IllegalArgumentException();
11261
      }
11262
 
11263
      switch (field) {
11264
      case SUCCESS:
11265
        return isSetSuccess();
11266
      case SE:
11267
        return isSetSe();
11268
      }
11269
      throw new IllegalStateException();
11270
    }
11271
 
11272
    @Override
11273
    public boolean equals(Object that) {
11274
      if (that == null)
11275
        return false;
11276
      if (that instanceof getEntityLogisticsEstimation_result)
11277
        return this.equals((getEntityLogisticsEstimation_result)that);
11278
      return false;
11279
    }
11280
 
11281
    public boolean equals(getEntityLogisticsEstimation_result that) {
11282
      if (that == null)
11283
        return false;
11284
 
11285
      boolean this_present_success = true && this.isSetSuccess();
11286
      boolean that_present_success = true && that.isSetSuccess();
11287
      if (this_present_success || that_present_success) {
11288
        if (!(this_present_success && that_present_success))
11289
          return false;
11290
        if (!this.success.equals(that.success))
11291
          return false;
11292
      }
11293
 
11294
      boolean this_present_se = true && this.isSetSe();
11295
      boolean that_present_se = true && that.isSetSe();
11296
      if (this_present_se || that_present_se) {
11297
        if (!(this_present_se && that_present_se))
11298
          return false;
11299
        if (!this.se.equals(that.se))
11300
          return false;
11301
      }
11302
 
11303
      return true;
11304
    }
11305
 
11306
    @Override
11307
    public int hashCode() {
11308
      return 0;
11309
    }
11310
 
11311
    public int compareTo(getEntityLogisticsEstimation_result other) {
11312
      if (!getClass().equals(other.getClass())) {
11313
        return getClass().getName().compareTo(other.getClass().getName());
11314
      }
11315
 
11316
      int lastComparison = 0;
11317
      getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
11318
 
11319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11320
      if (lastComparison != 0) {
11321
        return lastComparison;
11322
      }
11323
      if (isSetSuccess()) {
11324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11325
        if (lastComparison != 0) {
11326
          return lastComparison;
11327
        }
11328
      }
11329
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
11330
      if (lastComparison != 0) {
11331
        return lastComparison;
11332
      }
11333
      if (isSetSe()) {
11334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11335
        if (lastComparison != 0) {
11336
          return lastComparison;
11337
        }
11338
      }
11339
      return 0;
11340
    }
11341
 
11342
    public _Fields fieldForId(int fieldId) {
11343
      return _Fields.findByThriftId(fieldId);
11344
    }
11345
 
11346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11347
      org.apache.thrift.protocol.TField field;
11348
      iprot.readStructBegin();
11349
      while (true)
11350
      {
11351
        field = iprot.readFieldBegin();
11352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11353
          break;
11354
        }
11355
        switch (field.id) {
11356
          case 0: // SUCCESS
11357
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11358
              {
7792 anupam.sin 11359
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
9840 amit.gupta 11360
                this.success = new ArrayList<ItemText>(_list16.size);
7792 anupam.sin 11361
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
4934 amit.gupta 11362
                {
9840 amit.gupta 11363
                  ItemText _elem18; // required
11364
                  _elem18 = new ItemText();
11365
                  _elem18.read(iprot);
7792 anupam.sin 11366
                  this.success.add(_elem18);
4934 amit.gupta 11367
                }
11368
                iprot.readListEnd();
11369
              }
11370
            } else { 
11371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11372
            }
11373
            break;
11374
          case 1: // SE
11375
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11376
              this.se = new LogisticsServiceException();
11377
              this.se.read(iprot);
11378
            } else { 
11379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11380
            }
11381
            break;
11382
          default:
11383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11384
        }
11385
        iprot.readFieldEnd();
11386
      }
11387
      iprot.readStructEnd();
11388
      validate();
11389
    }
11390
 
11391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11392
      oprot.writeStructBegin(STRUCT_DESC);
11393
 
11394
      if (this.isSetSuccess()) {
11395
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11396
        {
9840 amit.gupta 11397
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
11398
          for (ItemText _iter19 : this.success)
4934 amit.gupta 11399
          {
9840 amit.gupta 11400
            _iter19.write(oprot);
4934 amit.gupta 11401
          }
11402
          oprot.writeListEnd();
11403
        }
11404
        oprot.writeFieldEnd();
11405
      } else if (this.isSetSe()) {
11406
        oprot.writeFieldBegin(SE_FIELD_DESC);
11407
        this.se.write(oprot);
11408
        oprot.writeFieldEnd();
11409
      }
11410
      oprot.writeFieldStop();
11411
      oprot.writeStructEnd();
11412
    }
11413
 
11414
    @Override
11415
    public String toString() {
11416
      StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
11417
      boolean first = true;
11418
 
11419
      sb.append("success:");
11420
      if (this.success == null) {
11421
        sb.append("null");
11422
      } else {
11423
        sb.append(this.success);
11424
      }
11425
      first = false;
11426
      if (!first) sb.append(", ");
11427
      sb.append("se:");
11428
      if (this.se == null) {
11429
        sb.append("null");
11430
      } else {
11431
        sb.append(this.se);
11432
      }
11433
      first = false;
11434
      sb.append(")");
11435
      return sb.toString();
11436
    }
11437
 
11438
    public void validate() throws org.apache.thrift.TException {
11439
      // check for required fields
11440
    }
11441
 
11442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11443
      try {
11444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11445
      } catch (org.apache.thrift.TException te) {
11446
        throw new java.io.IOException(te);
11447
      }
11448
    }
11449
 
11450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11451
      try {
11452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11453
      } catch (org.apache.thrift.TException te) {
11454
        throw new java.io.IOException(te);
11455
      }
11456
    }
11457
 
11458
  }
11459
 
5527 anupam.sin 11460
  public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable   {
11461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
11462
 
11463
    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);
11464
 
11465
    private long pickUp; // required
11466
 
11467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11469
      PICK_UP((short)1, "pickUp");
11470
 
11471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11472
 
11473
      static {
11474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11475
          byName.put(field.getFieldName(), field);
11476
        }
11477
      }
11478
 
11479
      /**
11480
       * Find the _Fields constant that matches fieldId, or null if its not found.
11481
       */
11482
      public static _Fields findByThriftId(int fieldId) {
11483
        switch(fieldId) {
11484
          case 1: // PICK_UP
11485
            return PICK_UP;
11486
          default:
11487
            return null;
11488
        }
11489
      }
11490
 
11491
      /**
11492
       * Find the _Fields constant that matches fieldId, throwing an exception
11493
       * if it is not found.
11494
       */
11495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11496
        _Fields fields = findByThriftId(fieldId);
11497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11498
        return fields;
11499
      }
11500
 
11501
      /**
11502
       * Find the _Fields constant that matches name, or null if its not found.
11503
       */
11504
      public static _Fields findByName(String name) {
11505
        return byName.get(name);
11506
      }
11507
 
11508
      private final short _thriftId;
11509
      private final String _fieldName;
11510
 
11511
      _Fields(short thriftId, String fieldName) {
11512
        _thriftId = thriftId;
11513
        _fieldName = fieldName;
11514
      }
11515
 
11516
      public short getThriftFieldId() {
11517
        return _thriftId;
11518
      }
11519
 
11520
      public String getFieldName() {
11521
        return _fieldName;
11522
      }
11523
    }
11524
 
11525
    // isset id assignments
11526
    private static final int __PICKUP_ISSET_ID = 0;
11527
    private BitSet __isset_bit_vector = new BitSet(1);
11528
 
11529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11530
    static {
11531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11532
      tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
11536
    }
11537
 
11538
    public getProviderForPickupType_args() {
11539
    }
11540
 
11541
    public getProviderForPickupType_args(
11542
      long pickUp)
11543
    {
11544
      this();
11545
      this.pickUp = pickUp;
11546
      setPickUpIsSet(true);
11547
    }
11548
 
11549
    /**
11550
     * Performs a deep copy on <i>other</i>.
11551
     */
11552
    public getProviderForPickupType_args(getProviderForPickupType_args other) {
11553
      __isset_bit_vector.clear();
11554
      __isset_bit_vector.or(other.__isset_bit_vector);
11555
      this.pickUp = other.pickUp;
11556
    }
11557
 
11558
    public getProviderForPickupType_args deepCopy() {
11559
      return new getProviderForPickupType_args(this);
11560
    }
11561
 
11562
    @Override
11563
    public void clear() {
11564
      setPickUpIsSet(false);
11565
      this.pickUp = 0;
11566
    }
11567
 
11568
    public long getPickUp() {
11569
      return this.pickUp;
11570
    }
11571
 
11572
    public void setPickUp(long pickUp) {
11573
      this.pickUp = pickUp;
11574
      setPickUpIsSet(true);
11575
    }
11576
 
11577
    public void unsetPickUp() {
11578
      __isset_bit_vector.clear(__PICKUP_ISSET_ID);
11579
    }
11580
 
11581
    /** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
11582
    public boolean isSetPickUp() {
11583
      return __isset_bit_vector.get(__PICKUP_ISSET_ID);
11584
    }
11585
 
11586
    public void setPickUpIsSet(boolean value) {
11587
      __isset_bit_vector.set(__PICKUP_ISSET_ID, value);
11588
    }
11589
 
11590
    public void setFieldValue(_Fields field, Object value) {
11591
      switch (field) {
11592
      case PICK_UP:
11593
        if (value == null) {
11594
          unsetPickUp();
11595
        } else {
11596
          setPickUp((Long)value);
11597
        }
11598
        break;
11599
 
11600
      }
11601
    }
11602
 
11603
    public Object getFieldValue(_Fields field) {
11604
      switch (field) {
11605
      case PICK_UP:
11606
        return Long.valueOf(getPickUp());
11607
 
11608
      }
11609
      throw new IllegalStateException();
11610
    }
11611
 
11612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11613
    public boolean isSet(_Fields field) {
11614
      if (field == null) {
11615
        throw new IllegalArgumentException();
11616
      }
11617
 
11618
      switch (field) {
11619
      case PICK_UP:
11620
        return isSetPickUp();
11621
      }
11622
      throw new IllegalStateException();
11623
    }
11624
 
11625
    @Override
11626
    public boolean equals(Object that) {
11627
      if (that == null)
11628
        return false;
11629
      if (that instanceof getProviderForPickupType_args)
11630
        return this.equals((getProviderForPickupType_args)that);
11631
      return false;
11632
    }
11633
 
11634
    public boolean equals(getProviderForPickupType_args that) {
11635
      if (that == null)
11636
        return false;
11637
 
11638
      boolean this_present_pickUp = true;
11639
      boolean that_present_pickUp = true;
11640
      if (this_present_pickUp || that_present_pickUp) {
11641
        if (!(this_present_pickUp && that_present_pickUp))
11642
          return false;
11643
        if (this.pickUp != that.pickUp)
11644
          return false;
11645
      }
11646
 
11647
      return true;
11648
    }
11649
 
11650
    @Override
11651
    public int hashCode() {
11652
      return 0;
11653
    }
11654
 
11655
    public int compareTo(getProviderForPickupType_args other) {
11656
      if (!getClass().equals(other.getClass())) {
11657
        return getClass().getName().compareTo(other.getClass().getName());
11658
      }
11659
 
11660
      int lastComparison = 0;
11661
      getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
11662
 
11663
      lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
11664
      if (lastComparison != 0) {
11665
        return lastComparison;
11666
      }
11667
      if (isSetPickUp()) {
11668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
11669
        if (lastComparison != 0) {
11670
          return lastComparison;
11671
        }
11672
      }
11673
      return 0;
11674
    }
11675
 
11676
    public _Fields fieldForId(int fieldId) {
11677
      return _Fields.findByThriftId(fieldId);
11678
    }
11679
 
11680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11681
      org.apache.thrift.protocol.TField field;
11682
      iprot.readStructBegin();
11683
      while (true)
11684
      {
11685
        field = iprot.readFieldBegin();
11686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11687
          break;
11688
        }
11689
        switch (field.id) {
11690
          case 1: // PICK_UP
11691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11692
              this.pickUp = iprot.readI64();
11693
              setPickUpIsSet(true);
11694
            } else { 
11695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11696
            }
11697
            break;
11698
          default:
11699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11700
        }
11701
        iprot.readFieldEnd();
11702
      }
11703
      iprot.readStructEnd();
11704
      validate();
11705
    }
11706
 
11707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11708
      validate();
11709
 
11710
      oprot.writeStructBegin(STRUCT_DESC);
11711
      oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
11712
      oprot.writeI64(this.pickUp);
11713
      oprot.writeFieldEnd();
11714
      oprot.writeFieldStop();
11715
      oprot.writeStructEnd();
11716
    }
11717
 
11718
    @Override
11719
    public String toString() {
11720
      StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
11721
      boolean first = true;
11722
 
11723
      sb.append("pickUp:");
11724
      sb.append(this.pickUp);
11725
      first = false;
11726
      sb.append(")");
11727
      return sb.toString();
11728
    }
11729
 
11730
    public void validate() throws org.apache.thrift.TException {
11731
      // check for required fields
11732
    }
11733
 
11734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11735
      try {
11736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11737
      } catch (org.apache.thrift.TException te) {
11738
        throw new java.io.IOException(te);
11739
      }
11740
    }
11741
 
11742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11743
      try {
11744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11745
        __isset_bit_vector = new BitSet(1);
11746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11747
      } catch (org.apache.thrift.TException te) {
11748
        throw new java.io.IOException(te);
11749
      }
11750
    }
11751
 
11752
  }
11753
 
11754
  public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable   {
11755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
11756
 
11757
    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);
11758
 
11759
    private long success; // required
11760
 
11761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11763
      SUCCESS((short)0, "success");
11764
 
11765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11766
 
11767
      static {
11768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11769
          byName.put(field.getFieldName(), field);
11770
        }
11771
      }
11772
 
11773
      /**
11774
       * Find the _Fields constant that matches fieldId, or null if its not found.
11775
       */
11776
      public static _Fields findByThriftId(int fieldId) {
11777
        switch(fieldId) {
11778
          case 0: // SUCCESS
11779
            return SUCCESS;
11780
          default:
11781
            return null;
11782
        }
11783
      }
11784
 
11785
      /**
11786
       * Find the _Fields constant that matches fieldId, throwing an exception
11787
       * if it is not found.
11788
       */
11789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11790
        _Fields fields = findByThriftId(fieldId);
11791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11792
        return fields;
11793
      }
11794
 
11795
      /**
11796
       * Find the _Fields constant that matches name, or null if its not found.
11797
       */
11798
      public static _Fields findByName(String name) {
11799
        return byName.get(name);
11800
      }
11801
 
11802
      private final short _thriftId;
11803
      private final String _fieldName;
11804
 
11805
      _Fields(short thriftId, String fieldName) {
11806
        _thriftId = thriftId;
11807
        _fieldName = fieldName;
11808
      }
11809
 
11810
      public short getThriftFieldId() {
11811
        return _thriftId;
11812
      }
11813
 
11814
      public String getFieldName() {
11815
        return _fieldName;
11816
      }
11817
    }
11818
 
11819
    // isset id assignments
11820
    private static final int __SUCCESS_ISSET_ID = 0;
11821
    private BitSet __isset_bit_vector = new BitSet(1);
11822
 
11823
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11824
    static {
11825
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11826
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11827
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11828
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11829
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
11830
    }
11831
 
11832
    public getProviderForPickupType_result() {
11833
    }
11834
 
11835
    public getProviderForPickupType_result(
11836
      long success)
11837
    {
11838
      this();
11839
      this.success = success;
11840
      setSuccessIsSet(true);
11841
    }
11842
 
11843
    /**
11844
     * Performs a deep copy on <i>other</i>.
11845
     */
11846
    public getProviderForPickupType_result(getProviderForPickupType_result other) {
11847
      __isset_bit_vector.clear();
11848
      __isset_bit_vector.or(other.__isset_bit_vector);
11849
      this.success = other.success;
11850
    }
11851
 
11852
    public getProviderForPickupType_result deepCopy() {
11853
      return new getProviderForPickupType_result(this);
11854
    }
11855
 
11856
    @Override
11857
    public void clear() {
11858
      setSuccessIsSet(false);
11859
      this.success = 0;
11860
    }
11861
 
11862
    public long getSuccess() {
11863
      return this.success;
11864
    }
11865
 
11866
    public void setSuccess(long success) {
11867
      this.success = success;
11868
      setSuccessIsSet(true);
11869
    }
11870
 
11871
    public void unsetSuccess() {
11872
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11873
    }
11874
 
11875
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11876
    public boolean isSetSuccess() {
11877
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11878
    }
11879
 
11880
    public void setSuccessIsSet(boolean value) {
11881
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11882
    }
11883
 
11884
    public void setFieldValue(_Fields field, Object value) {
11885
      switch (field) {
11886
      case SUCCESS:
11887
        if (value == null) {
11888
          unsetSuccess();
11889
        } else {
11890
          setSuccess((Long)value);
11891
        }
11892
        break;
11893
 
11894
      }
11895
    }
11896
 
11897
    public Object getFieldValue(_Fields field) {
11898
      switch (field) {
11899
      case SUCCESS:
11900
        return Long.valueOf(getSuccess());
11901
 
11902
      }
11903
      throw new IllegalStateException();
11904
    }
11905
 
11906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11907
    public boolean isSet(_Fields field) {
11908
      if (field == null) {
11909
        throw new IllegalArgumentException();
11910
      }
11911
 
11912
      switch (field) {
11913
      case SUCCESS:
11914
        return isSetSuccess();
11915
      }
11916
      throw new IllegalStateException();
11917
    }
11918
 
11919
    @Override
11920
    public boolean equals(Object that) {
11921
      if (that == null)
11922
        return false;
11923
      if (that instanceof getProviderForPickupType_result)
11924
        return this.equals((getProviderForPickupType_result)that);
11925
      return false;
11926
    }
11927
 
11928
    public boolean equals(getProviderForPickupType_result that) {
11929
      if (that == null)
11930
        return false;
11931
 
11932
      boolean this_present_success = true;
11933
      boolean that_present_success = true;
11934
      if (this_present_success || that_present_success) {
11935
        if (!(this_present_success && that_present_success))
11936
          return false;
11937
        if (this.success != that.success)
11938
          return false;
11939
      }
11940
 
11941
      return true;
11942
    }
11943
 
11944
    @Override
11945
    public int hashCode() {
11946
      return 0;
11947
    }
11948
 
11949
    public int compareTo(getProviderForPickupType_result other) {
11950
      if (!getClass().equals(other.getClass())) {
11951
        return getClass().getName().compareTo(other.getClass().getName());
11952
      }
11953
 
11954
      int lastComparison = 0;
11955
      getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
11956
 
11957
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11958
      if (lastComparison != 0) {
11959
        return lastComparison;
11960
      }
11961
      if (isSetSuccess()) {
11962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11963
        if (lastComparison != 0) {
11964
          return lastComparison;
11965
        }
11966
      }
11967
      return 0;
11968
    }
11969
 
11970
    public _Fields fieldForId(int fieldId) {
11971
      return _Fields.findByThriftId(fieldId);
11972
    }
11973
 
11974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11975
      org.apache.thrift.protocol.TField field;
11976
      iprot.readStructBegin();
11977
      while (true)
11978
      {
11979
        field = iprot.readFieldBegin();
11980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11981
          break;
11982
        }
11983
        switch (field.id) {
11984
          case 0: // SUCCESS
11985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11986
              this.success = iprot.readI64();
11987
              setSuccessIsSet(true);
11988
            } else { 
11989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11990
            }
11991
            break;
11992
          default:
11993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11994
        }
11995
        iprot.readFieldEnd();
11996
      }
11997
      iprot.readStructEnd();
11998
      validate();
11999
    }
12000
 
12001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12002
      oprot.writeStructBegin(STRUCT_DESC);
12003
 
12004
      if (this.isSetSuccess()) {
12005
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12006
        oprot.writeI64(this.success);
12007
        oprot.writeFieldEnd();
12008
      }
12009
      oprot.writeFieldStop();
12010
      oprot.writeStructEnd();
12011
    }
12012
 
12013
    @Override
12014
    public String toString() {
12015
      StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
12016
      boolean first = true;
12017
 
12018
      sb.append("success:");
12019
      sb.append(this.success);
12020
      first = false;
12021
      sb.append(")");
12022
      return sb.toString();
12023
    }
12024
 
12025
    public void validate() throws org.apache.thrift.TException {
12026
      // check for required fields
12027
    }
12028
 
12029
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12030
      try {
12031
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12032
      } catch (org.apache.thrift.TException te) {
12033
        throw new java.io.IOException(te);
12034
      }
12035
    }
12036
 
12037
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12038
      try {
12039
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12040
      } catch (org.apache.thrift.TException te) {
12041
        throw new java.io.IOException(te);
12042
      }
12043
    }
12044
 
12045
  }
12046
 
5553 rajveer 12047
  public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable   {
12048
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
12049
 
12050
 
12051
 
12052
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12053
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12054
;
12055
 
12056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12057
 
12058
      static {
12059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12060
          byName.put(field.getFieldName(), field);
12061
        }
12062
      }
12063
 
12064
      /**
12065
       * Find the _Fields constant that matches fieldId, or null if its not found.
12066
       */
12067
      public static _Fields findByThriftId(int fieldId) {
12068
        switch(fieldId) {
12069
          default:
12070
            return null;
12071
        }
12072
      }
12073
 
12074
      /**
12075
       * Find the _Fields constant that matches fieldId, throwing an exception
12076
       * if it is not found.
12077
       */
12078
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12079
        _Fields fields = findByThriftId(fieldId);
12080
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12081
        return fields;
12082
      }
12083
 
12084
      /**
12085
       * Find the _Fields constant that matches name, or null if its not found.
12086
       */
12087
      public static _Fields findByName(String name) {
12088
        return byName.get(name);
12089
      }
12090
 
12091
      private final short _thriftId;
12092
      private final String _fieldName;
12093
 
12094
      _Fields(short thriftId, String fieldName) {
12095
        _thriftId = thriftId;
12096
        _fieldName = fieldName;
12097
      }
12098
 
12099
      public short getThriftFieldId() {
12100
        return _thriftId;
12101
      }
12102
 
12103
      public String getFieldName() {
12104
        return _fieldName;
12105
      }
12106
    }
12107
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12108
    static {
12109
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
12112
    }
12113
 
12114
    public getAllPickupStores_args() {
12115
    }
12116
 
12117
    /**
12118
     * Performs a deep copy on <i>other</i>.
12119
     */
12120
    public getAllPickupStores_args(getAllPickupStores_args other) {
12121
    }
12122
 
12123
    public getAllPickupStores_args deepCopy() {
12124
      return new getAllPickupStores_args(this);
12125
    }
12126
 
12127
    @Override
12128
    public void clear() {
12129
    }
12130
 
12131
    public void setFieldValue(_Fields field, Object value) {
12132
      switch (field) {
12133
      }
12134
    }
12135
 
12136
    public Object getFieldValue(_Fields field) {
12137
      switch (field) {
12138
      }
12139
      throw new IllegalStateException();
12140
    }
12141
 
12142
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12143
    public boolean isSet(_Fields field) {
12144
      if (field == null) {
12145
        throw new IllegalArgumentException();
12146
      }
12147
 
12148
      switch (field) {
12149
      }
12150
      throw new IllegalStateException();
12151
    }
12152
 
12153
    @Override
12154
    public boolean equals(Object that) {
12155
      if (that == null)
12156
        return false;
12157
      if (that instanceof getAllPickupStores_args)
12158
        return this.equals((getAllPickupStores_args)that);
12159
      return false;
12160
    }
12161
 
12162
    public boolean equals(getAllPickupStores_args that) {
12163
      if (that == null)
12164
        return false;
12165
 
12166
      return true;
12167
    }
12168
 
12169
    @Override
12170
    public int hashCode() {
12171
      return 0;
12172
    }
12173
 
12174
    public int compareTo(getAllPickupStores_args other) {
12175
      if (!getClass().equals(other.getClass())) {
12176
        return getClass().getName().compareTo(other.getClass().getName());
12177
      }
12178
 
12179
      int lastComparison = 0;
12180
      getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
12181
 
12182
      return 0;
12183
    }
12184
 
12185
    public _Fields fieldForId(int fieldId) {
12186
      return _Fields.findByThriftId(fieldId);
12187
    }
12188
 
12189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12190
      org.apache.thrift.protocol.TField field;
12191
      iprot.readStructBegin();
12192
      while (true)
12193
      {
12194
        field = iprot.readFieldBegin();
12195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12196
          break;
12197
        }
12198
        switch (field.id) {
12199
          default:
12200
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12201
        }
12202
        iprot.readFieldEnd();
12203
      }
12204
      iprot.readStructEnd();
12205
      validate();
12206
    }
12207
 
12208
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12209
      validate();
12210
 
12211
      oprot.writeStructBegin(STRUCT_DESC);
12212
      oprot.writeFieldStop();
12213
      oprot.writeStructEnd();
12214
    }
12215
 
12216
    @Override
12217
    public String toString() {
12218
      StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
12219
      boolean first = true;
12220
 
12221
      sb.append(")");
12222
      return sb.toString();
12223
    }
12224
 
12225
    public void validate() throws org.apache.thrift.TException {
12226
      // check for required fields
12227
    }
12228
 
12229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12230
      try {
12231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12232
      } catch (org.apache.thrift.TException te) {
12233
        throw new java.io.IOException(te);
12234
      }
12235
    }
12236
 
12237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12238
      try {
12239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12240
      } catch (org.apache.thrift.TException te) {
12241
        throw new java.io.IOException(te);
12242
      }
12243
    }
12244
 
12245
  }
12246
 
12247
  public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable   {
12248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
12249
 
12250
    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);
12251
 
12252
    private List<PickupStore> success; // required
12253
 
12254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12255
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12256
      SUCCESS((short)0, "success");
12257
 
12258
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12259
 
12260
      static {
12261
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12262
          byName.put(field.getFieldName(), field);
12263
        }
12264
      }
12265
 
12266
      /**
12267
       * Find the _Fields constant that matches fieldId, or null if its not found.
12268
       */
12269
      public static _Fields findByThriftId(int fieldId) {
12270
        switch(fieldId) {
12271
          case 0: // SUCCESS
12272
            return SUCCESS;
12273
          default:
12274
            return null;
12275
        }
12276
      }
12277
 
12278
      /**
12279
       * Find the _Fields constant that matches fieldId, throwing an exception
12280
       * if it is not found.
12281
       */
12282
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12283
        _Fields fields = findByThriftId(fieldId);
12284
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12285
        return fields;
12286
      }
12287
 
12288
      /**
12289
       * Find the _Fields constant that matches name, or null if its not found.
12290
       */
12291
      public static _Fields findByName(String name) {
12292
        return byName.get(name);
12293
      }
12294
 
12295
      private final short _thriftId;
12296
      private final String _fieldName;
12297
 
12298
      _Fields(short thriftId, String fieldName) {
12299
        _thriftId = thriftId;
12300
        _fieldName = fieldName;
12301
      }
12302
 
12303
      public short getThriftFieldId() {
12304
        return _thriftId;
12305
      }
12306
 
12307
      public String getFieldName() {
12308
        return _fieldName;
12309
      }
12310
    }
12311
 
12312
    // isset id assignments
12313
 
12314
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12315
    static {
12316
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12317
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12318
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12319
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
12320
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12321
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
12322
    }
12323
 
12324
    public getAllPickupStores_result() {
12325
    }
12326
 
12327
    public getAllPickupStores_result(
12328
      List<PickupStore> success)
12329
    {
12330
      this();
12331
      this.success = success;
12332
    }
12333
 
12334
    /**
12335
     * Performs a deep copy on <i>other</i>.
12336
     */
12337
    public getAllPickupStores_result(getAllPickupStores_result other) {
12338
      if (other.isSetSuccess()) {
12339
        List<PickupStore> __this__success = new ArrayList<PickupStore>();
12340
        for (PickupStore other_element : other.success) {
12341
          __this__success.add(new PickupStore(other_element));
12342
        }
12343
        this.success = __this__success;
12344
      }
12345
    }
12346
 
12347
    public getAllPickupStores_result deepCopy() {
12348
      return new getAllPickupStores_result(this);
12349
    }
12350
 
12351
    @Override
12352
    public void clear() {
12353
      this.success = null;
12354
    }
12355
 
12356
    public int getSuccessSize() {
12357
      return (this.success == null) ? 0 : this.success.size();
12358
    }
12359
 
12360
    public java.util.Iterator<PickupStore> getSuccessIterator() {
12361
      return (this.success == null) ? null : this.success.iterator();
12362
    }
12363
 
12364
    public void addToSuccess(PickupStore elem) {
12365
      if (this.success == null) {
12366
        this.success = new ArrayList<PickupStore>();
12367
      }
12368
      this.success.add(elem);
12369
    }
12370
 
12371
    public List<PickupStore> getSuccess() {
12372
      return this.success;
12373
    }
12374
 
12375
    public void setSuccess(List<PickupStore> success) {
12376
      this.success = success;
12377
    }
12378
 
12379
    public void unsetSuccess() {
12380
      this.success = null;
12381
    }
12382
 
12383
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12384
    public boolean isSetSuccess() {
12385
      return this.success != null;
12386
    }
12387
 
12388
    public void setSuccessIsSet(boolean value) {
12389
      if (!value) {
12390
        this.success = null;
12391
      }
12392
    }
12393
 
12394
    public void setFieldValue(_Fields field, Object value) {
12395
      switch (field) {
12396
      case SUCCESS:
12397
        if (value == null) {
12398
          unsetSuccess();
12399
        } else {
12400
          setSuccess((List<PickupStore>)value);
12401
        }
12402
        break;
12403
 
12404
      }
12405
    }
12406
 
12407
    public Object getFieldValue(_Fields field) {
12408
      switch (field) {
12409
      case SUCCESS:
12410
        return getSuccess();
12411
 
12412
      }
12413
      throw new IllegalStateException();
12414
    }
12415
 
12416
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12417
    public boolean isSet(_Fields field) {
12418
      if (field == null) {
12419
        throw new IllegalArgumentException();
12420
      }
12421
 
12422
      switch (field) {
12423
      case SUCCESS:
12424
        return isSetSuccess();
12425
      }
12426
      throw new IllegalStateException();
12427
    }
12428
 
12429
    @Override
12430
    public boolean equals(Object that) {
12431
      if (that == null)
12432
        return false;
12433
      if (that instanceof getAllPickupStores_result)
12434
        return this.equals((getAllPickupStores_result)that);
12435
      return false;
12436
    }
12437
 
12438
    public boolean equals(getAllPickupStores_result that) {
12439
      if (that == null)
12440
        return false;
12441
 
12442
      boolean this_present_success = true && this.isSetSuccess();
12443
      boolean that_present_success = true && that.isSetSuccess();
12444
      if (this_present_success || that_present_success) {
12445
        if (!(this_present_success && that_present_success))
12446
          return false;
12447
        if (!this.success.equals(that.success))
12448
          return false;
12449
      }
12450
 
12451
      return true;
12452
    }
12453
 
12454
    @Override
12455
    public int hashCode() {
12456
      return 0;
12457
    }
12458
 
12459
    public int compareTo(getAllPickupStores_result other) {
12460
      if (!getClass().equals(other.getClass())) {
12461
        return getClass().getName().compareTo(other.getClass().getName());
12462
      }
12463
 
12464
      int lastComparison = 0;
12465
      getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
12466
 
12467
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12468
      if (lastComparison != 0) {
12469
        return lastComparison;
12470
      }
12471
      if (isSetSuccess()) {
12472
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12473
        if (lastComparison != 0) {
12474
          return lastComparison;
12475
        }
12476
      }
12477
      return 0;
12478
    }
12479
 
12480
    public _Fields fieldForId(int fieldId) {
12481
      return _Fields.findByThriftId(fieldId);
12482
    }
12483
 
12484
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12485
      org.apache.thrift.protocol.TField field;
12486
      iprot.readStructBegin();
12487
      while (true)
12488
      {
12489
        field = iprot.readFieldBegin();
12490
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12491
          break;
12492
        }
12493
        switch (field.id) {
12494
          case 0: // SUCCESS
12495
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12496
              {
7792 anupam.sin 12497
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
12498
                this.success = new ArrayList<PickupStore>(_list20.size);
12499
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5553 rajveer 12500
                {
7792 anupam.sin 12501
                  PickupStore _elem22; // required
12502
                  _elem22 = new PickupStore();
12503
                  _elem22.read(iprot);
12504
                  this.success.add(_elem22);
5553 rajveer 12505
                }
12506
                iprot.readListEnd();
12507
              }
12508
            } else { 
12509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12510
            }
12511
            break;
12512
          default:
12513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12514
        }
12515
        iprot.readFieldEnd();
12516
      }
12517
      iprot.readStructEnd();
12518
      validate();
12519
    }
12520
 
12521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12522
      oprot.writeStructBegin(STRUCT_DESC);
12523
 
12524
      if (this.isSetSuccess()) {
12525
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12526
        {
12527
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7792 anupam.sin 12528
          for (PickupStore _iter23 : this.success)
5553 rajveer 12529
          {
7792 anupam.sin 12530
            _iter23.write(oprot);
5553 rajveer 12531
          }
12532
          oprot.writeListEnd();
12533
        }
12534
        oprot.writeFieldEnd();
12535
      }
12536
      oprot.writeFieldStop();
12537
      oprot.writeStructEnd();
12538
    }
12539
 
12540
    @Override
12541
    public String toString() {
12542
      StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
12543
      boolean first = true;
12544
 
12545
      sb.append("success:");
12546
      if (this.success == null) {
12547
        sb.append("null");
12548
      } else {
12549
        sb.append(this.success);
12550
      }
12551
      first = false;
12552
      sb.append(")");
12553
      return sb.toString();
12554
    }
12555
 
12556
    public void validate() throws org.apache.thrift.TException {
12557
      // check for required fields
12558
    }
12559
 
12560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12561
      try {
12562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12563
      } catch (org.apache.thrift.TException te) {
12564
        throw new java.io.IOException(te);
12565
      }
12566
    }
12567
 
12568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12569
      try {
12570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12571
      } catch (org.apache.thrift.TException te) {
12572
        throw new java.io.IOException(te);
12573
      }
12574
    }
12575
 
12576
  }
12577
 
12578
  public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable   {
12579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
12580
 
12581
    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);
12582
 
12583
    private long storeId; // required
12584
 
12585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12587
      STORE_ID((short)1, "storeId");
12588
 
12589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12590
 
12591
      static {
12592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12593
          byName.put(field.getFieldName(), field);
12594
        }
12595
      }
12596
 
12597
      /**
12598
       * Find the _Fields constant that matches fieldId, or null if its not found.
12599
       */
12600
      public static _Fields findByThriftId(int fieldId) {
12601
        switch(fieldId) {
12602
          case 1: // STORE_ID
12603
            return STORE_ID;
12604
          default:
12605
            return null;
12606
        }
12607
      }
12608
 
12609
      /**
12610
       * Find the _Fields constant that matches fieldId, throwing an exception
12611
       * if it is not found.
12612
       */
12613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12614
        _Fields fields = findByThriftId(fieldId);
12615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12616
        return fields;
12617
      }
12618
 
12619
      /**
12620
       * Find the _Fields constant that matches name, or null if its not found.
12621
       */
12622
      public static _Fields findByName(String name) {
12623
        return byName.get(name);
12624
      }
12625
 
12626
      private final short _thriftId;
12627
      private final String _fieldName;
12628
 
12629
      _Fields(short thriftId, String fieldName) {
12630
        _thriftId = thriftId;
12631
        _fieldName = fieldName;
12632
      }
12633
 
12634
      public short getThriftFieldId() {
12635
        return _thriftId;
12636
      }
12637
 
12638
      public String getFieldName() {
12639
        return _fieldName;
12640
      }
12641
    }
12642
 
12643
    // isset id assignments
12644
    private static final int __STOREID_ISSET_ID = 0;
12645
    private BitSet __isset_bit_vector = new BitSet(1);
12646
 
12647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12648
    static {
12649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12650
      tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
12654
    }
12655
 
12656
    public getPickupStore_args() {
12657
    }
12658
 
12659
    public getPickupStore_args(
12660
      long storeId)
12661
    {
12662
      this();
12663
      this.storeId = storeId;
12664
      setStoreIdIsSet(true);
12665
    }
12666
 
12667
    /**
12668
     * Performs a deep copy on <i>other</i>.
12669
     */
12670
    public getPickupStore_args(getPickupStore_args other) {
12671
      __isset_bit_vector.clear();
12672
      __isset_bit_vector.or(other.__isset_bit_vector);
12673
      this.storeId = other.storeId;
12674
    }
12675
 
12676
    public getPickupStore_args deepCopy() {
12677
      return new getPickupStore_args(this);
12678
    }
12679
 
12680
    @Override
12681
    public void clear() {
12682
      setStoreIdIsSet(false);
12683
      this.storeId = 0;
12684
    }
12685
 
12686
    public long getStoreId() {
12687
      return this.storeId;
12688
    }
12689
 
12690
    public void setStoreId(long storeId) {
12691
      this.storeId = storeId;
12692
      setStoreIdIsSet(true);
12693
    }
12694
 
12695
    public void unsetStoreId() {
12696
      __isset_bit_vector.clear(__STOREID_ISSET_ID);
12697
    }
12698
 
12699
    /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
12700
    public boolean isSetStoreId() {
12701
      return __isset_bit_vector.get(__STOREID_ISSET_ID);
12702
    }
12703
 
12704
    public void setStoreIdIsSet(boolean value) {
12705
      __isset_bit_vector.set(__STOREID_ISSET_ID, value);
12706
    }
12707
 
12708
    public void setFieldValue(_Fields field, Object value) {
12709
      switch (field) {
12710
      case STORE_ID:
12711
        if (value == null) {
12712
          unsetStoreId();
12713
        } else {
12714
          setStoreId((Long)value);
12715
        }
12716
        break;
12717
 
12718
      }
12719
    }
12720
 
12721
    public Object getFieldValue(_Fields field) {
12722
      switch (field) {
12723
      case STORE_ID:
12724
        return Long.valueOf(getStoreId());
12725
 
12726
      }
12727
      throw new IllegalStateException();
12728
    }
12729
 
12730
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12731
    public boolean isSet(_Fields field) {
12732
      if (field == null) {
12733
        throw new IllegalArgumentException();
12734
      }
12735
 
12736
      switch (field) {
12737
      case STORE_ID:
12738
        return isSetStoreId();
12739
      }
12740
      throw new IllegalStateException();
12741
    }
12742
 
12743
    @Override
12744
    public boolean equals(Object that) {
12745
      if (that == null)
12746
        return false;
12747
      if (that instanceof getPickupStore_args)
12748
        return this.equals((getPickupStore_args)that);
12749
      return false;
12750
    }
12751
 
12752
    public boolean equals(getPickupStore_args that) {
12753
      if (that == null)
12754
        return false;
12755
 
12756
      boolean this_present_storeId = true;
12757
      boolean that_present_storeId = true;
12758
      if (this_present_storeId || that_present_storeId) {
12759
        if (!(this_present_storeId && that_present_storeId))
12760
          return false;
12761
        if (this.storeId != that.storeId)
12762
          return false;
12763
      }
12764
 
12765
      return true;
12766
    }
12767
 
12768
    @Override
12769
    public int hashCode() {
12770
      return 0;
12771
    }
12772
 
12773
    public int compareTo(getPickupStore_args other) {
12774
      if (!getClass().equals(other.getClass())) {
12775
        return getClass().getName().compareTo(other.getClass().getName());
12776
      }
12777
 
12778
      int lastComparison = 0;
12779
      getPickupStore_args typedOther = (getPickupStore_args)other;
12780
 
12781
      lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
12782
      if (lastComparison != 0) {
12783
        return lastComparison;
12784
      }
12785
      if (isSetStoreId()) {
12786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
12787
        if (lastComparison != 0) {
12788
          return lastComparison;
12789
        }
12790
      }
12791
      return 0;
12792
    }
12793
 
12794
    public _Fields fieldForId(int fieldId) {
12795
      return _Fields.findByThriftId(fieldId);
12796
    }
12797
 
12798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12799
      org.apache.thrift.protocol.TField field;
12800
      iprot.readStructBegin();
12801
      while (true)
12802
      {
12803
        field = iprot.readFieldBegin();
12804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12805
          break;
12806
        }
12807
        switch (field.id) {
12808
          case 1: // STORE_ID
12809
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12810
              this.storeId = iprot.readI64();
12811
              setStoreIdIsSet(true);
12812
            } else { 
12813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12814
            }
12815
            break;
12816
          default:
12817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12818
        }
12819
        iprot.readFieldEnd();
12820
      }
12821
      iprot.readStructEnd();
12822
      validate();
12823
    }
12824
 
12825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12826
      validate();
12827
 
12828
      oprot.writeStructBegin(STRUCT_DESC);
12829
      oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
12830
      oprot.writeI64(this.storeId);
12831
      oprot.writeFieldEnd();
12832
      oprot.writeFieldStop();
12833
      oprot.writeStructEnd();
12834
    }
12835
 
12836
    @Override
12837
    public String toString() {
12838
      StringBuilder sb = new StringBuilder("getPickupStore_args(");
12839
      boolean first = true;
12840
 
12841
      sb.append("storeId:");
12842
      sb.append(this.storeId);
12843
      first = false;
12844
      sb.append(")");
12845
      return sb.toString();
12846
    }
12847
 
12848
    public void validate() throws org.apache.thrift.TException {
12849
      // check for required fields
12850
    }
12851
 
12852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12853
      try {
12854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12855
      } catch (org.apache.thrift.TException te) {
12856
        throw new java.io.IOException(te);
12857
      }
12858
    }
12859
 
12860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12861
      try {
12862
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12863
        __isset_bit_vector = new BitSet(1);
12864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12865
      } catch (org.apache.thrift.TException te) {
12866
        throw new java.io.IOException(te);
12867
      }
12868
    }
12869
 
12870
  }
12871
 
12872
  public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable   {
12873
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
12874
 
12875
    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);
12876
 
12877
    private PickupStore success; // required
12878
 
12879
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12880
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12881
      SUCCESS((short)0, "success");
12882
 
12883
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12884
 
12885
      static {
12886
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12887
          byName.put(field.getFieldName(), field);
12888
        }
12889
      }
12890
 
12891
      /**
12892
       * Find the _Fields constant that matches fieldId, or null if its not found.
12893
       */
12894
      public static _Fields findByThriftId(int fieldId) {
12895
        switch(fieldId) {
12896
          case 0: // SUCCESS
12897
            return SUCCESS;
12898
          default:
12899
            return null;
12900
        }
12901
      }
12902
 
12903
      /**
12904
       * Find the _Fields constant that matches fieldId, throwing an exception
12905
       * if it is not found.
12906
       */
12907
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12908
        _Fields fields = findByThriftId(fieldId);
12909
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12910
        return fields;
12911
      }
12912
 
12913
      /**
12914
       * Find the _Fields constant that matches name, or null if its not found.
12915
       */
12916
      public static _Fields findByName(String name) {
12917
        return byName.get(name);
12918
      }
12919
 
12920
      private final short _thriftId;
12921
      private final String _fieldName;
12922
 
12923
      _Fields(short thriftId, String fieldName) {
12924
        _thriftId = thriftId;
12925
        _fieldName = fieldName;
12926
      }
12927
 
12928
      public short getThriftFieldId() {
12929
        return _thriftId;
12930
      }
12931
 
12932
      public String getFieldName() {
12933
        return _fieldName;
12934
      }
12935
    }
12936
 
12937
    // isset id assignments
12938
 
12939
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12940
    static {
12941
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12942
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12943
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
12944
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12945
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
12946
    }
12947
 
12948
    public getPickupStore_result() {
12949
    }
12950
 
12951
    public getPickupStore_result(
12952
      PickupStore success)
12953
    {
12954
      this();
12955
      this.success = success;
12956
    }
12957
 
12958
    /**
12959
     * Performs a deep copy on <i>other</i>.
12960
     */
12961
    public getPickupStore_result(getPickupStore_result other) {
12962
      if (other.isSetSuccess()) {
12963
        this.success = new PickupStore(other.success);
12964
      }
12965
    }
12966
 
12967
    public getPickupStore_result deepCopy() {
12968
      return new getPickupStore_result(this);
12969
    }
12970
 
12971
    @Override
12972
    public void clear() {
12973
      this.success = null;
12974
    }
12975
 
12976
    public PickupStore getSuccess() {
12977
      return this.success;
12978
    }
12979
 
12980
    public void setSuccess(PickupStore success) {
12981
      this.success = success;
12982
    }
12983
 
12984
    public void unsetSuccess() {
12985
      this.success = null;
12986
    }
12987
 
12988
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12989
    public boolean isSetSuccess() {
12990
      return this.success != null;
12991
    }
12992
 
12993
    public void setSuccessIsSet(boolean value) {
12994
      if (!value) {
12995
        this.success = null;
12996
      }
12997
    }
12998
 
12999
    public void setFieldValue(_Fields field, Object value) {
13000
      switch (field) {
13001
      case SUCCESS:
13002
        if (value == null) {
13003
          unsetSuccess();
13004
        } else {
13005
          setSuccess((PickupStore)value);
13006
        }
13007
        break;
13008
 
13009
      }
13010
    }
13011
 
13012
    public Object getFieldValue(_Fields field) {
13013
      switch (field) {
13014
      case SUCCESS:
13015
        return getSuccess();
13016
 
13017
      }
13018
      throw new IllegalStateException();
13019
    }
13020
 
13021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13022
    public boolean isSet(_Fields field) {
13023
      if (field == null) {
13024
        throw new IllegalArgumentException();
13025
      }
13026
 
13027
      switch (field) {
13028
      case SUCCESS:
13029
        return isSetSuccess();
13030
      }
13031
      throw new IllegalStateException();
13032
    }
13033
 
13034
    @Override
13035
    public boolean equals(Object that) {
13036
      if (that == null)
13037
        return false;
13038
      if (that instanceof getPickupStore_result)
13039
        return this.equals((getPickupStore_result)that);
13040
      return false;
13041
    }
13042
 
13043
    public boolean equals(getPickupStore_result that) {
13044
      if (that == null)
13045
        return false;
13046
 
13047
      boolean this_present_success = true && this.isSetSuccess();
13048
      boolean that_present_success = true && that.isSetSuccess();
13049
      if (this_present_success || that_present_success) {
13050
        if (!(this_present_success && that_present_success))
13051
          return false;
13052
        if (!this.success.equals(that.success))
13053
          return false;
13054
      }
13055
 
13056
      return true;
13057
    }
13058
 
13059
    @Override
13060
    public int hashCode() {
13061
      return 0;
13062
    }
13063
 
13064
    public int compareTo(getPickupStore_result other) {
13065
      if (!getClass().equals(other.getClass())) {
13066
        return getClass().getName().compareTo(other.getClass().getName());
13067
      }
13068
 
13069
      int lastComparison = 0;
13070
      getPickupStore_result typedOther = (getPickupStore_result)other;
13071
 
13072
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13073
      if (lastComparison != 0) {
13074
        return lastComparison;
13075
      }
13076
      if (isSetSuccess()) {
13077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13078
        if (lastComparison != 0) {
13079
          return lastComparison;
13080
        }
13081
      }
13082
      return 0;
13083
    }
13084
 
13085
    public _Fields fieldForId(int fieldId) {
13086
      return _Fields.findByThriftId(fieldId);
13087
    }
13088
 
13089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13090
      org.apache.thrift.protocol.TField field;
13091
      iprot.readStructBegin();
13092
      while (true)
13093
      {
13094
        field = iprot.readFieldBegin();
13095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13096
          break;
13097
        }
13098
        switch (field.id) {
13099
          case 0: // SUCCESS
13100
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13101
              this.success = new PickupStore();
13102
              this.success.read(iprot);
13103
            } else { 
13104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13105
            }
13106
            break;
13107
          default:
13108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13109
        }
13110
        iprot.readFieldEnd();
13111
      }
13112
      iprot.readStructEnd();
13113
      validate();
13114
    }
13115
 
13116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13117
      oprot.writeStructBegin(STRUCT_DESC);
13118
 
13119
      if (this.isSetSuccess()) {
13120
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13121
        this.success.write(oprot);
13122
        oprot.writeFieldEnd();
13123
      }
13124
      oprot.writeFieldStop();
13125
      oprot.writeStructEnd();
13126
    }
13127
 
13128
    @Override
13129
    public String toString() {
13130
      StringBuilder sb = new StringBuilder("getPickupStore_result(");
13131
      boolean first = true;
13132
 
13133
      sb.append("success:");
13134
      if (this.success == null) {
13135
        sb.append("null");
13136
      } else {
13137
        sb.append(this.success);
13138
      }
13139
      first = false;
13140
      sb.append(")");
13141
      return sb.toString();
13142
    }
13143
 
13144
    public void validate() throws org.apache.thrift.TException {
13145
      // check for required fields
13146
    }
13147
 
13148
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13149
      try {
13150
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13151
      } catch (org.apache.thrift.TException te) {
13152
        throw new java.io.IOException(te);
13153
      }
13154
    }
13155
 
13156
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13157
      try {
13158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13159
      } catch (org.apache.thrift.TException te) {
13160
        throw new java.io.IOException(te);
13161
      }
13162
    }
13163
 
13164
  }
13165
 
5719 rajveer 13166
  public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable   {
13167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
13168
 
13169
    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);
13170
 
13171
    private String hotspotId; // required
13172
 
13173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13175
      HOTSPOT_ID((short)1, "hotspotId");
13176
 
13177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13178
 
13179
      static {
13180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13181
          byName.put(field.getFieldName(), field);
13182
        }
13183
      }
13184
 
13185
      /**
13186
       * Find the _Fields constant that matches fieldId, or null if its not found.
13187
       */
13188
      public static _Fields findByThriftId(int fieldId) {
13189
        switch(fieldId) {
13190
          case 1: // HOTSPOT_ID
13191
            return HOTSPOT_ID;
13192
          default:
13193
            return null;
13194
        }
13195
      }
13196
 
13197
      /**
13198
       * Find the _Fields constant that matches fieldId, throwing an exception
13199
       * if it is not found.
13200
       */
13201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13202
        _Fields fields = findByThriftId(fieldId);
13203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13204
        return fields;
13205
      }
13206
 
13207
      /**
13208
       * Find the _Fields constant that matches name, or null if its not found.
13209
       */
13210
      public static _Fields findByName(String name) {
13211
        return byName.get(name);
13212
      }
13213
 
13214
      private final short _thriftId;
13215
      private final String _fieldName;
13216
 
13217
      _Fields(short thriftId, String fieldName) {
13218
        _thriftId = thriftId;
13219
        _fieldName = fieldName;
13220
      }
13221
 
13222
      public short getThriftFieldId() {
13223
        return _thriftId;
13224
      }
13225
 
13226
      public String getFieldName() {
13227
        return _fieldName;
13228
      }
13229
    }
13230
 
13231
    // isset id assignments
13232
 
13233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13234
    static {
13235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13236
      tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
13240
    }
13241
 
13242
    public getPickupStoreByHotspotId_args() {
13243
    }
13244
 
13245
    public getPickupStoreByHotspotId_args(
13246
      String hotspotId)
13247
    {
13248
      this();
13249
      this.hotspotId = hotspotId;
13250
    }
13251
 
13252
    /**
13253
     * Performs a deep copy on <i>other</i>.
13254
     */
13255
    public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
13256
      if (other.isSetHotspotId()) {
13257
        this.hotspotId = other.hotspotId;
13258
      }
13259
    }
13260
 
13261
    public getPickupStoreByHotspotId_args deepCopy() {
13262
      return new getPickupStoreByHotspotId_args(this);
13263
    }
13264
 
13265
    @Override
13266
    public void clear() {
13267
      this.hotspotId = null;
13268
    }
13269
 
13270
    public String getHotspotId() {
13271
      return this.hotspotId;
13272
    }
13273
 
13274
    public void setHotspotId(String hotspotId) {
13275
      this.hotspotId = hotspotId;
13276
    }
13277
 
13278
    public void unsetHotspotId() {
13279
      this.hotspotId = null;
13280
    }
13281
 
13282
    /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
13283
    public boolean isSetHotspotId() {
13284
      return this.hotspotId != null;
13285
    }
13286
 
13287
    public void setHotspotIdIsSet(boolean value) {
13288
      if (!value) {
13289
        this.hotspotId = null;
13290
      }
13291
    }
13292
 
13293
    public void setFieldValue(_Fields field, Object value) {
13294
      switch (field) {
13295
      case HOTSPOT_ID:
13296
        if (value == null) {
13297
          unsetHotspotId();
13298
        } else {
13299
          setHotspotId((String)value);
13300
        }
13301
        break;
13302
 
13303
      }
13304
    }
13305
 
13306
    public Object getFieldValue(_Fields field) {
13307
      switch (field) {
13308
      case HOTSPOT_ID:
13309
        return getHotspotId();
13310
 
13311
      }
13312
      throw new IllegalStateException();
13313
    }
13314
 
13315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13316
    public boolean isSet(_Fields field) {
13317
      if (field == null) {
13318
        throw new IllegalArgumentException();
13319
      }
13320
 
13321
      switch (field) {
13322
      case HOTSPOT_ID:
13323
        return isSetHotspotId();
13324
      }
13325
      throw new IllegalStateException();
13326
    }
13327
 
13328
    @Override
13329
    public boolean equals(Object that) {
13330
      if (that == null)
13331
        return false;
13332
      if (that instanceof getPickupStoreByHotspotId_args)
13333
        return this.equals((getPickupStoreByHotspotId_args)that);
13334
      return false;
13335
    }
13336
 
13337
    public boolean equals(getPickupStoreByHotspotId_args that) {
13338
      if (that == null)
13339
        return false;
13340
 
13341
      boolean this_present_hotspotId = true && this.isSetHotspotId();
13342
      boolean that_present_hotspotId = true && that.isSetHotspotId();
13343
      if (this_present_hotspotId || that_present_hotspotId) {
13344
        if (!(this_present_hotspotId && that_present_hotspotId))
13345
          return false;
13346
        if (!this.hotspotId.equals(that.hotspotId))
13347
          return false;
13348
      }
13349
 
13350
      return true;
13351
    }
13352
 
13353
    @Override
13354
    public int hashCode() {
13355
      return 0;
13356
    }
13357
 
13358
    public int compareTo(getPickupStoreByHotspotId_args other) {
13359
      if (!getClass().equals(other.getClass())) {
13360
        return getClass().getName().compareTo(other.getClass().getName());
13361
      }
13362
 
13363
      int lastComparison = 0;
13364
      getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
13365
 
13366
      lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
13367
      if (lastComparison != 0) {
13368
        return lastComparison;
13369
      }
13370
      if (isSetHotspotId()) {
13371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
13372
        if (lastComparison != 0) {
13373
          return lastComparison;
13374
        }
13375
      }
13376
      return 0;
13377
    }
13378
 
13379
    public _Fields fieldForId(int fieldId) {
13380
      return _Fields.findByThriftId(fieldId);
13381
    }
13382
 
13383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13384
      org.apache.thrift.protocol.TField field;
13385
      iprot.readStructBegin();
13386
      while (true)
13387
      {
13388
        field = iprot.readFieldBegin();
13389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13390
          break;
13391
        }
13392
        switch (field.id) {
13393
          case 1: // HOTSPOT_ID
13394
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13395
              this.hotspotId = iprot.readString();
13396
            } else { 
13397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13398
            }
13399
            break;
13400
          default:
13401
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13402
        }
13403
        iprot.readFieldEnd();
13404
      }
13405
      iprot.readStructEnd();
13406
      validate();
13407
    }
13408
 
13409
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13410
      validate();
13411
 
13412
      oprot.writeStructBegin(STRUCT_DESC);
13413
      if (this.hotspotId != null) {
13414
        oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
13415
        oprot.writeString(this.hotspotId);
13416
        oprot.writeFieldEnd();
13417
      }
13418
      oprot.writeFieldStop();
13419
      oprot.writeStructEnd();
13420
    }
13421
 
13422
    @Override
13423
    public String toString() {
13424
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
13425
      boolean first = true;
13426
 
13427
      sb.append("hotspotId:");
13428
      if (this.hotspotId == null) {
13429
        sb.append("null");
13430
      } else {
13431
        sb.append(this.hotspotId);
13432
      }
13433
      first = false;
13434
      sb.append(")");
13435
      return sb.toString();
13436
    }
13437
 
13438
    public void validate() throws org.apache.thrift.TException {
13439
      // check for required fields
13440
    }
13441
 
13442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13443
      try {
13444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13445
      } catch (org.apache.thrift.TException te) {
13446
        throw new java.io.IOException(te);
13447
      }
13448
    }
13449
 
13450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13451
      try {
13452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13453
      } catch (org.apache.thrift.TException te) {
13454
        throw new java.io.IOException(te);
13455
      }
13456
    }
13457
 
13458
  }
13459
 
13460
  public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable   {
13461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
13462
 
13463
    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);
13464
 
13465
    private PickupStore success; // required
13466
 
13467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13469
      SUCCESS((short)0, "success");
13470
 
13471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13472
 
13473
      static {
13474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13475
          byName.put(field.getFieldName(), field);
13476
        }
13477
      }
13478
 
13479
      /**
13480
       * Find the _Fields constant that matches fieldId, or null if its not found.
13481
       */
13482
      public static _Fields findByThriftId(int fieldId) {
13483
        switch(fieldId) {
13484
          case 0: // SUCCESS
13485
            return SUCCESS;
13486
          default:
13487
            return null;
13488
        }
13489
      }
13490
 
13491
      /**
13492
       * Find the _Fields constant that matches fieldId, throwing an exception
13493
       * if it is not found.
13494
       */
13495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13496
        _Fields fields = findByThriftId(fieldId);
13497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13498
        return fields;
13499
      }
13500
 
13501
      /**
13502
       * Find the _Fields constant that matches name, or null if its not found.
13503
       */
13504
      public static _Fields findByName(String name) {
13505
        return byName.get(name);
13506
      }
13507
 
13508
      private final short _thriftId;
13509
      private final String _fieldName;
13510
 
13511
      _Fields(short thriftId, String fieldName) {
13512
        _thriftId = thriftId;
13513
        _fieldName = fieldName;
13514
      }
13515
 
13516
      public short getThriftFieldId() {
13517
        return _thriftId;
13518
      }
13519
 
13520
      public String getFieldName() {
13521
        return _fieldName;
13522
      }
13523
    }
13524
 
13525
    // isset id assignments
13526
 
13527
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13528
    static {
13529
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13530
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13531
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
13532
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13533
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
13534
    }
13535
 
13536
    public getPickupStoreByHotspotId_result() {
13537
    }
13538
 
13539
    public getPickupStoreByHotspotId_result(
13540
      PickupStore success)
13541
    {
13542
      this();
13543
      this.success = success;
13544
    }
13545
 
13546
    /**
13547
     * Performs a deep copy on <i>other</i>.
13548
     */
13549
    public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
13550
      if (other.isSetSuccess()) {
13551
        this.success = new PickupStore(other.success);
13552
      }
13553
    }
13554
 
13555
    public getPickupStoreByHotspotId_result deepCopy() {
13556
      return new getPickupStoreByHotspotId_result(this);
13557
    }
13558
 
13559
    @Override
13560
    public void clear() {
13561
      this.success = null;
13562
    }
13563
 
13564
    public PickupStore getSuccess() {
13565
      return this.success;
13566
    }
13567
 
13568
    public void setSuccess(PickupStore success) {
13569
      this.success = success;
13570
    }
13571
 
13572
    public void unsetSuccess() {
13573
      this.success = null;
13574
    }
13575
 
13576
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13577
    public boolean isSetSuccess() {
13578
      return this.success != null;
13579
    }
13580
 
13581
    public void setSuccessIsSet(boolean value) {
13582
      if (!value) {
13583
        this.success = null;
13584
      }
13585
    }
13586
 
13587
    public void setFieldValue(_Fields field, Object value) {
13588
      switch (field) {
13589
      case SUCCESS:
13590
        if (value == null) {
13591
          unsetSuccess();
13592
        } else {
13593
          setSuccess((PickupStore)value);
13594
        }
13595
        break;
13596
 
13597
      }
13598
    }
13599
 
13600
    public Object getFieldValue(_Fields field) {
13601
      switch (field) {
13602
      case SUCCESS:
13603
        return getSuccess();
13604
 
13605
      }
13606
      throw new IllegalStateException();
13607
    }
13608
 
13609
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13610
    public boolean isSet(_Fields field) {
13611
      if (field == null) {
13612
        throw new IllegalArgumentException();
13613
      }
13614
 
13615
      switch (field) {
13616
      case SUCCESS:
13617
        return isSetSuccess();
13618
      }
13619
      throw new IllegalStateException();
13620
    }
13621
 
13622
    @Override
13623
    public boolean equals(Object that) {
13624
      if (that == null)
13625
        return false;
13626
      if (that instanceof getPickupStoreByHotspotId_result)
13627
        return this.equals((getPickupStoreByHotspotId_result)that);
13628
      return false;
13629
    }
13630
 
13631
    public boolean equals(getPickupStoreByHotspotId_result that) {
13632
      if (that == null)
13633
        return false;
13634
 
13635
      boolean this_present_success = true && this.isSetSuccess();
13636
      boolean that_present_success = true && that.isSetSuccess();
13637
      if (this_present_success || that_present_success) {
13638
        if (!(this_present_success && that_present_success))
13639
          return false;
13640
        if (!this.success.equals(that.success))
13641
          return false;
13642
      }
13643
 
13644
      return true;
13645
    }
13646
 
13647
    @Override
13648
    public int hashCode() {
13649
      return 0;
13650
    }
13651
 
13652
    public int compareTo(getPickupStoreByHotspotId_result other) {
13653
      if (!getClass().equals(other.getClass())) {
13654
        return getClass().getName().compareTo(other.getClass().getName());
13655
      }
13656
 
13657
      int lastComparison = 0;
13658
      getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
13659
 
13660
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13661
      if (lastComparison != 0) {
13662
        return lastComparison;
13663
      }
13664
      if (isSetSuccess()) {
13665
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13666
        if (lastComparison != 0) {
13667
          return lastComparison;
13668
        }
13669
      }
13670
      return 0;
13671
    }
13672
 
13673
    public _Fields fieldForId(int fieldId) {
13674
      return _Fields.findByThriftId(fieldId);
13675
    }
13676
 
13677
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13678
      org.apache.thrift.protocol.TField field;
13679
      iprot.readStructBegin();
13680
      while (true)
13681
      {
13682
        field = iprot.readFieldBegin();
13683
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13684
          break;
13685
        }
13686
        switch (field.id) {
13687
          case 0: // SUCCESS
13688
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13689
              this.success = new PickupStore();
13690
              this.success.read(iprot);
13691
            } else { 
13692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13693
            }
13694
            break;
13695
          default:
13696
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13697
        }
13698
        iprot.readFieldEnd();
13699
      }
13700
      iprot.readStructEnd();
13701
      validate();
13702
    }
13703
 
13704
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13705
      oprot.writeStructBegin(STRUCT_DESC);
13706
 
13707
      if (this.isSetSuccess()) {
13708
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13709
        this.success.write(oprot);
13710
        oprot.writeFieldEnd();
13711
      }
13712
      oprot.writeFieldStop();
13713
      oprot.writeStructEnd();
13714
    }
13715
 
13716
    @Override
13717
    public String toString() {
13718
      StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
13719
      boolean first = true;
13720
 
13721
      sb.append("success:");
13722
      if (this.success == null) {
13723
        sb.append("null");
13724
      } else {
13725
        sb.append(this.success);
13726
      }
13727
      first = false;
13728
      sb.append(")");
13729
      return sb.toString();
13730
    }
13731
 
13732
    public void validate() throws org.apache.thrift.TException {
13733
      // check for required fields
13734
    }
13735
 
13736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13737
      try {
13738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13739
      } catch (org.apache.thrift.TException te) {
13740
        throw new java.io.IOException(te);
13741
      }
13742
    }
13743
 
13744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13745
      try {
13746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13747
      } catch (org.apache.thrift.TException te) {
13748
        throw new java.io.IOException(te);
13749
      }
13750
    }
13751
 
13752
  }
13753
 
6322 amar.kumar 13754
  public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable   {
13755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
13756
 
13757
    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);
13758
    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);
13759
    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);
13760
    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);
13761
    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);
13762
    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 13763
    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 13764
 
13765
    private long providerId; // required
13766
    private String pincode; // required
13767
    private String destCode; // required
13768
    private boolean exp; // required
13769
    private boolean cod; // required
13770
    private int stationType; // required
6524 rajveer 13771
    private boolean otgAvailable; // required
6322 amar.kumar 13772
 
13773
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13774
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13775
      PROVIDER_ID((short)1, "providerId"),
13776
      PINCODE((short)2, "pincode"),
13777
      DEST_CODE((short)3, "destCode"),
13778
      EXP((short)4, "exp"),
13779
      COD((short)5, "cod"),
6524 rajveer 13780
      STATION_TYPE((short)6, "stationType"),
13781
      OTG_AVAILABLE((short)7, "otgAvailable");
6322 amar.kumar 13782
 
13783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13784
 
13785
      static {
13786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13787
          byName.put(field.getFieldName(), field);
13788
        }
13789
      }
13790
 
13791
      /**
13792
       * Find the _Fields constant that matches fieldId, or null if its not found.
13793
       */
13794
      public static _Fields findByThriftId(int fieldId) {
13795
        switch(fieldId) {
13796
          case 1: // PROVIDER_ID
13797
            return PROVIDER_ID;
13798
          case 2: // PINCODE
13799
            return PINCODE;
13800
          case 3: // DEST_CODE
13801
            return DEST_CODE;
13802
          case 4: // EXP
13803
            return EXP;
13804
          case 5: // COD
13805
            return COD;
13806
          case 6: // STATION_TYPE
13807
            return STATION_TYPE;
6524 rajveer 13808
          case 7: // OTG_AVAILABLE
13809
            return OTG_AVAILABLE;
6322 amar.kumar 13810
          default:
13811
            return null;
13812
        }
13813
      }
13814
 
13815
      /**
13816
       * Find the _Fields constant that matches fieldId, throwing an exception
13817
       * if it is not found.
13818
       */
13819
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13820
        _Fields fields = findByThriftId(fieldId);
13821
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13822
        return fields;
13823
      }
13824
 
13825
      /**
13826
       * Find the _Fields constant that matches name, or null if its not found.
13827
       */
13828
      public static _Fields findByName(String name) {
13829
        return byName.get(name);
13830
      }
13831
 
13832
      private final short _thriftId;
13833
      private final String _fieldName;
13834
 
13835
      _Fields(short thriftId, String fieldName) {
13836
        _thriftId = thriftId;
13837
        _fieldName = fieldName;
13838
      }
13839
 
13840
      public short getThriftFieldId() {
13841
        return _thriftId;
13842
      }
13843
 
13844
      public String getFieldName() {
13845
        return _fieldName;
13846
      }
13847
    }
13848
 
13849
    // isset id assignments
13850
    private static final int __PROVIDERID_ISSET_ID = 0;
13851
    private static final int __EXP_ISSET_ID = 1;
13852
    private static final int __COD_ISSET_ID = 2;
13853
    private static final int __STATIONTYPE_ISSET_ID = 3;
6524 rajveer 13854
    private static final int __OTGAVAILABLE_ISSET_ID = 4;
13855
    private BitSet __isset_bit_vector = new BitSet(5);
6322 amar.kumar 13856
 
13857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13858
    static {
13859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13860
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13862
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13864
      tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13866
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13868
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13870
      tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13871
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6524 rajveer 13872
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 13874
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13875
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
13876
    }
13877
 
13878
    public addPincode_args() {
13879
    }
13880
 
13881
    public addPincode_args(
13882
      long providerId,
13883
      String pincode,
13884
      String destCode,
13885
      boolean exp,
13886
      boolean cod,
6524 rajveer 13887
      int stationType,
13888
      boolean otgAvailable)
6322 amar.kumar 13889
    {
13890
      this();
13891
      this.providerId = providerId;
13892
      setProviderIdIsSet(true);
13893
      this.pincode = pincode;
13894
      this.destCode = destCode;
13895
      this.exp = exp;
13896
      setExpIsSet(true);
13897
      this.cod = cod;
13898
      setCodIsSet(true);
13899
      this.stationType = stationType;
13900
      setStationTypeIsSet(true);
6524 rajveer 13901
      this.otgAvailable = otgAvailable;
13902
      setOtgAvailableIsSet(true);
6322 amar.kumar 13903
    }
13904
 
13905
    /**
13906
     * Performs a deep copy on <i>other</i>.
13907
     */
13908
    public addPincode_args(addPincode_args other) {
13909
      __isset_bit_vector.clear();
13910
      __isset_bit_vector.or(other.__isset_bit_vector);
13911
      this.providerId = other.providerId;
13912
      if (other.isSetPincode()) {
13913
        this.pincode = other.pincode;
13914
      }
13915
      if (other.isSetDestCode()) {
13916
        this.destCode = other.destCode;
13917
      }
13918
      this.exp = other.exp;
13919
      this.cod = other.cod;
13920
      this.stationType = other.stationType;
6524 rajveer 13921
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 13922
    }
13923
 
13924
    public addPincode_args deepCopy() {
13925
      return new addPincode_args(this);
13926
    }
13927
 
13928
    @Override
13929
    public void clear() {
13930
      setProviderIdIsSet(false);
13931
      this.providerId = 0;
13932
      this.pincode = null;
13933
      this.destCode = null;
13934
      setExpIsSet(false);
13935
      this.exp = false;
13936
      setCodIsSet(false);
13937
      this.cod = false;
13938
      setStationTypeIsSet(false);
13939
      this.stationType = 0;
6524 rajveer 13940
      setOtgAvailableIsSet(false);
13941
      this.otgAvailable = false;
6322 amar.kumar 13942
    }
13943
 
13944
    public long getProviderId() {
13945
      return this.providerId;
13946
    }
13947
 
13948
    public void setProviderId(long providerId) {
13949
      this.providerId = providerId;
13950
      setProviderIdIsSet(true);
13951
    }
13952
 
13953
    public void unsetProviderId() {
13954
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
13955
    }
13956
 
13957
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
13958
    public boolean isSetProviderId() {
13959
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
13960
    }
13961
 
13962
    public void setProviderIdIsSet(boolean value) {
13963
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
13964
    }
13965
 
13966
    public String getPincode() {
13967
      return this.pincode;
13968
    }
13969
 
13970
    public void setPincode(String pincode) {
13971
      this.pincode = pincode;
13972
    }
13973
 
13974
    public void unsetPincode() {
13975
      this.pincode = null;
13976
    }
13977
 
13978
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
13979
    public boolean isSetPincode() {
13980
      return this.pincode != null;
13981
    }
13982
 
13983
    public void setPincodeIsSet(boolean value) {
13984
      if (!value) {
13985
        this.pincode = null;
13986
      }
13987
    }
13988
 
13989
    public String getDestCode() {
13990
      return this.destCode;
13991
    }
13992
 
13993
    public void setDestCode(String destCode) {
13994
      this.destCode = destCode;
13995
    }
13996
 
13997
    public void unsetDestCode() {
13998
      this.destCode = null;
13999
    }
14000
 
14001
    /** Returns true if field destCode is set (has been assigned a value) and false otherwise */
14002
    public boolean isSetDestCode() {
14003
      return this.destCode != null;
14004
    }
14005
 
14006
    public void setDestCodeIsSet(boolean value) {
14007
      if (!value) {
14008
        this.destCode = null;
14009
      }
14010
    }
14011
 
14012
    public boolean isExp() {
14013
      return this.exp;
14014
    }
14015
 
14016
    public void setExp(boolean exp) {
14017
      this.exp = exp;
14018
      setExpIsSet(true);
14019
    }
14020
 
14021
    public void unsetExp() {
14022
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14023
    }
14024
 
14025
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14026
    public boolean isSetExp() {
14027
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14028
    }
14029
 
14030
    public void setExpIsSet(boolean value) {
14031
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14032
    }
14033
 
14034
    public boolean isCod() {
14035
      return this.cod;
14036
    }
14037
 
14038
    public void setCod(boolean cod) {
14039
      this.cod = cod;
14040
      setCodIsSet(true);
14041
    }
14042
 
14043
    public void unsetCod() {
14044
      __isset_bit_vector.clear(__COD_ISSET_ID);
14045
    }
14046
 
14047
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14048
    public boolean isSetCod() {
14049
      return __isset_bit_vector.get(__COD_ISSET_ID);
14050
    }
14051
 
14052
    public void setCodIsSet(boolean value) {
14053
      __isset_bit_vector.set(__COD_ISSET_ID, value);
14054
    }
14055
 
14056
    public int getStationType() {
14057
      return this.stationType;
14058
    }
14059
 
14060
    public void setStationType(int stationType) {
14061
      this.stationType = stationType;
14062
      setStationTypeIsSet(true);
14063
    }
14064
 
14065
    public void unsetStationType() {
14066
      __isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
14067
    }
14068
 
14069
    /** Returns true if field stationType is set (has been assigned a value) and false otherwise */
14070
    public boolean isSetStationType() {
14071
      return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
14072
    }
14073
 
14074
    public void setStationTypeIsSet(boolean value) {
14075
      __isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
14076
    }
14077
 
6524 rajveer 14078
    public boolean isOtgAvailable() {
14079
      return this.otgAvailable;
14080
    }
14081
 
14082
    public void setOtgAvailable(boolean otgAvailable) {
14083
      this.otgAvailable = otgAvailable;
14084
      setOtgAvailableIsSet(true);
14085
    }
14086
 
14087
    public void unsetOtgAvailable() {
14088
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
14089
    }
14090
 
14091
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
14092
    public boolean isSetOtgAvailable() {
14093
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
14094
    }
14095
 
14096
    public void setOtgAvailableIsSet(boolean value) {
14097
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
14098
    }
14099
 
6322 amar.kumar 14100
    public void setFieldValue(_Fields field, Object value) {
14101
      switch (field) {
14102
      case PROVIDER_ID:
14103
        if (value == null) {
14104
          unsetProviderId();
14105
        } else {
14106
          setProviderId((Long)value);
14107
        }
14108
        break;
14109
 
14110
      case PINCODE:
14111
        if (value == null) {
14112
          unsetPincode();
14113
        } else {
14114
          setPincode((String)value);
14115
        }
14116
        break;
14117
 
14118
      case DEST_CODE:
14119
        if (value == null) {
14120
          unsetDestCode();
14121
        } else {
14122
          setDestCode((String)value);
14123
        }
14124
        break;
14125
 
14126
      case EXP:
14127
        if (value == null) {
14128
          unsetExp();
14129
        } else {
14130
          setExp((Boolean)value);
14131
        }
14132
        break;
14133
 
14134
      case COD:
14135
        if (value == null) {
14136
          unsetCod();
14137
        } else {
14138
          setCod((Boolean)value);
14139
        }
14140
        break;
14141
 
14142
      case STATION_TYPE:
14143
        if (value == null) {
14144
          unsetStationType();
14145
        } else {
14146
          setStationType((Integer)value);
14147
        }
14148
        break;
14149
 
6524 rajveer 14150
      case OTG_AVAILABLE:
14151
        if (value == null) {
14152
          unsetOtgAvailable();
14153
        } else {
14154
          setOtgAvailable((Boolean)value);
14155
        }
14156
        break;
14157
 
6322 amar.kumar 14158
      }
14159
    }
14160
 
14161
    public Object getFieldValue(_Fields field) {
14162
      switch (field) {
14163
      case PROVIDER_ID:
14164
        return Long.valueOf(getProviderId());
14165
 
14166
      case PINCODE:
14167
        return getPincode();
14168
 
14169
      case DEST_CODE:
14170
        return getDestCode();
14171
 
14172
      case EXP:
14173
        return Boolean.valueOf(isExp());
14174
 
14175
      case COD:
14176
        return Boolean.valueOf(isCod());
14177
 
14178
      case STATION_TYPE:
14179
        return Integer.valueOf(getStationType());
14180
 
6524 rajveer 14181
      case OTG_AVAILABLE:
14182
        return Boolean.valueOf(isOtgAvailable());
14183
 
6322 amar.kumar 14184
      }
14185
      throw new IllegalStateException();
14186
    }
14187
 
14188
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14189
    public boolean isSet(_Fields field) {
14190
      if (field == null) {
14191
        throw new IllegalArgumentException();
14192
      }
14193
 
14194
      switch (field) {
14195
      case PROVIDER_ID:
14196
        return isSetProviderId();
14197
      case PINCODE:
14198
        return isSetPincode();
14199
      case DEST_CODE:
14200
        return isSetDestCode();
14201
      case EXP:
14202
        return isSetExp();
14203
      case COD:
14204
        return isSetCod();
14205
      case STATION_TYPE:
14206
        return isSetStationType();
6524 rajveer 14207
      case OTG_AVAILABLE:
14208
        return isSetOtgAvailable();
6322 amar.kumar 14209
      }
14210
      throw new IllegalStateException();
14211
    }
14212
 
14213
    @Override
14214
    public boolean equals(Object that) {
14215
      if (that == null)
14216
        return false;
14217
      if (that instanceof addPincode_args)
14218
        return this.equals((addPincode_args)that);
14219
      return false;
14220
    }
14221
 
14222
    public boolean equals(addPincode_args that) {
14223
      if (that == null)
14224
        return false;
14225
 
14226
      boolean this_present_providerId = true;
14227
      boolean that_present_providerId = true;
14228
      if (this_present_providerId || that_present_providerId) {
14229
        if (!(this_present_providerId && that_present_providerId))
14230
          return false;
14231
        if (this.providerId != that.providerId)
14232
          return false;
14233
      }
14234
 
14235
      boolean this_present_pincode = true && this.isSetPincode();
14236
      boolean that_present_pincode = true && that.isSetPincode();
14237
      if (this_present_pincode || that_present_pincode) {
14238
        if (!(this_present_pincode && that_present_pincode))
14239
          return false;
14240
        if (!this.pincode.equals(that.pincode))
14241
          return false;
14242
      }
14243
 
14244
      boolean this_present_destCode = true && this.isSetDestCode();
14245
      boolean that_present_destCode = true && that.isSetDestCode();
14246
      if (this_present_destCode || that_present_destCode) {
14247
        if (!(this_present_destCode && that_present_destCode))
14248
          return false;
14249
        if (!this.destCode.equals(that.destCode))
14250
          return false;
14251
      }
14252
 
14253
      boolean this_present_exp = true;
14254
      boolean that_present_exp = true;
14255
      if (this_present_exp || that_present_exp) {
14256
        if (!(this_present_exp && that_present_exp))
14257
          return false;
14258
        if (this.exp != that.exp)
14259
          return false;
14260
      }
14261
 
14262
      boolean this_present_cod = true;
14263
      boolean that_present_cod = true;
14264
      if (this_present_cod || that_present_cod) {
14265
        if (!(this_present_cod && that_present_cod))
14266
          return false;
14267
        if (this.cod != that.cod)
14268
          return false;
14269
      }
14270
 
14271
      boolean this_present_stationType = true;
14272
      boolean that_present_stationType = true;
14273
      if (this_present_stationType || that_present_stationType) {
14274
        if (!(this_present_stationType && that_present_stationType))
14275
          return false;
14276
        if (this.stationType != that.stationType)
14277
          return false;
14278
      }
14279
 
6524 rajveer 14280
      boolean this_present_otgAvailable = true;
14281
      boolean that_present_otgAvailable = true;
14282
      if (this_present_otgAvailable || that_present_otgAvailable) {
14283
        if (!(this_present_otgAvailable && that_present_otgAvailable))
14284
          return false;
14285
        if (this.otgAvailable != that.otgAvailable)
14286
          return false;
14287
      }
14288
 
6322 amar.kumar 14289
      return true;
14290
    }
14291
 
14292
    @Override
14293
    public int hashCode() {
14294
      return 0;
14295
    }
14296
 
14297
    public int compareTo(addPincode_args other) {
14298
      if (!getClass().equals(other.getClass())) {
14299
        return getClass().getName().compareTo(other.getClass().getName());
14300
      }
14301
 
14302
      int lastComparison = 0;
14303
      addPincode_args typedOther = (addPincode_args)other;
14304
 
14305
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
14306
      if (lastComparison != 0) {
14307
        return lastComparison;
14308
      }
14309
      if (isSetProviderId()) {
14310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
14311
        if (lastComparison != 0) {
14312
          return lastComparison;
14313
        }
14314
      }
14315
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
14316
      if (lastComparison != 0) {
14317
        return lastComparison;
14318
      }
14319
      if (isSetPincode()) {
14320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
14321
        if (lastComparison != 0) {
14322
          return lastComparison;
14323
        }
14324
      }
14325
      lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
14326
      if (lastComparison != 0) {
14327
        return lastComparison;
14328
      }
14329
      if (isSetDestCode()) {
14330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
14331
        if (lastComparison != 0) {
14332
          return lastComparison;
14333
        }
14334
      }
14335
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
14336
      if (lastComparison != 0) {
14337
        return lastComparison;
14338
      }
14339
      if (isSetExp()) {
14340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
14341
        if (lastComparison != 0) {
14342
          return lastComparison;
14343
        }
14344
      }
14345
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
14346
      if (lastComparison != 0) {
14347
        return lastComparison;
14348
      }
14349
      if (isSetCod()) {
14350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
14351
        if (lastComparison != 0) {
14352
          return lastComparison;
14353
        }
14354
      }
14355
      lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
14356
      if (lastComparison != 0) {
14357
        return lastComparison;
14358
      }
14359
      if (isSetStationType()) {
14360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
14361
        if (lastComparison != 0) {
14362
          return lastComparison;
14363
        }
14364
      }
6524 rajveer 14365
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
14366
      if (lastComparison != 0) {
14367
        return lastComparison;
14368
      }
14369
      if (isSetOtgAvailable()) {
14370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
14371
        if (lastComparison != 0) {
14372
          return lastComparison;
14373
        }
14374
      }
6322 amar.kumar 14375
      return 0;
14376
    }
14377
 
14378
    public _Fields fieldForId(int fieldId) {
14379
      return _Fields.findByThriftId(fieldId);
14380
    }
14381
 
14382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14383
      org.apache.thrift.protocol.TField field;
14384
      iprot.readStructBegin();
14385
      while (true)
14386
      {
14387
        field = iprot.readFieldBegin();
14388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14389
          break;
14390
        }
14391
        switch (field.id) {
14392
          case 1: // PROVIDER_ID
14393
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14394
              this.providerId = iprot.readI64();
14395
              setProviderIdIsSet(true);
14396
            } else { 
14397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14398
            }
14399
            break;
14400
          case 2: // PINCODE
14401
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14402
              this.pincode = iprot.readString();
14403
            } else { 
14404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14405
            }
14406
            break;
14407
          case 3: // DEST_CODE
14408
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14409
              this.destCode = iprot.readString();
14410
            } else { 
14411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14412
            }
14413
            break;
14414
          case 4: // EXP
14415
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14416
              this.exp = iprot.readBool();
14417
              setExpIsSet(true);
14418
            } else { 
14419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14420
            }
14421
            break;
14422
          case 5: // COD
14423
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14424
              this.cod = iprot.readBool();
14425
              setCodIsSet(true);
14426
            } else { 
14427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14428
            }
14429
            break;
14430
          case 6: // STATION_TYPE
14431
            if (field.type == org.apache.thrift.protocol.TType.I32) {
14432
              this.stationType = iprot.readI32();
14433
              setStationTypeIsSet(true);
14434
            } else { 
14435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14436
            }
14437
            break;
6524 rajveer 14438
          case 7: // OTG_AVAILABLE
14439
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14440
              this.otgAvailable = iprot.readBool();
14441
              setOtgAvailableIsSet(true);
14442
            } else { 
14443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14444
            }
14445
            break;
6322 amar.kumar 14446
          default:
14447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14448
        }
14449
        iprot.readFieldEnd();
14450
      }
14451
      iprot.readStructEnd();
14452
      validate();
14453
    }
14454
 
14455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14456
      validate();
14457
 
14458
      oprot.writeStructBegin(STRUCT_DESC);
14459
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
14460
      oprot.writeI64(this.providerId);
14461
      oprot.writeFieldEnd();
14462
      if (this.pincode != null) {
14463
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
14464
        oprot.writeString(this.pincode);
14465
        oprot.writeFieldEnd();
14466
      }
14467
      if (this.destCode != null) {
14468
        oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
14469
        oprot.writeString(this.destCode);
14470
        oprot.writeFieldEnd();
14471
      }
14472
      oprot.writeFieldBegin(EXP_FIELD_DESC);
14473
      oprot.writeBool(this.exp);
14474
      oprot.writeFieldEnd();
14475
      oprot.writeFieldBegin(COD_FIELD_DESC);
14476
      oprot.writeBool(this.cod);
14477
      oprot.writeFieldEnd();
14478
      oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
14479
      oprot.writeI32(this.stationType);
14480
      oprot.writeFieldEnd();
6524 rajveer 14481
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
14482
      oprot.writeBool(this.otgAvailable);
14483
      oprot.writeFieldEnd();
6322 amar.kumar 14484
      oprot.writeFieldStop();
14485
      oprot.writeStructEnd();
14486
    }
14487
 
14488
    @Override
14489
    public String toString() {
14490
      StringBuilder sb = new StringBuilder("addPincode_args(");
14491
      boolean first = true;
14492
 
14493
      sb.append("providerId:");
14494
      sb.append(this.providerId);
14495
      first = false;
14496
      if (!first) sb.append(", ");
14497
      sb.append("pincode:");
14498
      if (this.pincode == null) {
14499
        sb.append("null");
14500
      } else {
14501
        sb.append(this.pincode);
14502
      }
14503
      first = false;
14504
      if (!first) sb.append(", ");
14505
      sb.append("destCode:");
14506
      if (this.destCode == null) {
14507
        sb.append("null");
14508
      } else {
14509
        sb.append(this.destCode);
14510
      }
14511
      first = false;
14512
      if (!first) sb.append(", ");
14513
      sb.append("exp:");
14514
      sb.append(this.exp);
14515
      first = false;
14516
      if (!first) sb.append(", ");
14517
      sb.append("cod:");
14518
      sb.append(this.cod);
14519
      first = false;
14520
      if (!first) sb.append(", ");
14521
      sb.append("stationType:");
14522
      sb.append(this.stationType);
14523
      first = false;
6524 rajveer 14524
      if (!first) sb.append(", ");
14525
      sb.append("otgAvailable:");
14526
      sb.append(this.otgAvailable);
14527
      first = false;
6322 amar.kumar 14528
      sb.append(")");
14529
      return sb.toString();
14530
    }
14531
 
14532
    public void validate() throws org.apache.thrift.TException {
14533
      // check for required fields
14534
    }
14535
 
14536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14537
      try {
14538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14539
      } catch (org.apache.thrift.TException te) {
14540
        throw new java.io.IOException(te);
14541
      }
14542
    }
14543
 
14544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14545
      try {
14546
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14547
        __isset_bit_vector = new BitSet(1);
14548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14549
      } catch (org.apache.thrift.TException te) {
14550
        throw new java.io.IOException(te);
14551
      }
14552
    }
14553
 
14554
  }
14555
 
14556
  public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable   {
14557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
14558
 
14559
 
14560
 
14561
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14562
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14563
;
14564
 
14565
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14566
 
14567
      static {
14568
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14569
          byName.put(field.getFieldName(), field);
14570
        }
14571
      }
14572
 
14573
      /**
14574
       * Find the _Fields constant that matches fieldId, or null if its not found.
14575
       */
14576
      public static _Fields findByThriftId(int fieldId) {
14577
        switch(fieldId) {
14578
          default:
14579
            return null;
14580
        }
14581
      }
14582
 
14583
      /**
14584
       * Find the _Fields constant that matches fieldId, throwing an exception
14585
       * if it is not found.
14586
       */
14587
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14588
        _Fields fields = findByThriftId(fieldId);
14589
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14590
        return fields;
14591
      }
14592
 
14593
      /**
14594
       * Find the _Fields constant that matches name, or null if its not found.
14595
       */
14596
      public static _Fields findByName(String name) {
14597
        return byName.get(name);
14598
      }
14599
 
14600
      private final short _thriftId;
14601
      private final String _fieldName;
14602
 
14603
      _Fields(short thriftId, String fieldName) {
14604
        _thriftId = thriftId;
14605
        _fieldName = fieldName;
14606
      }
14607
 
14608
      public short getThriftFieldId() {
14609
        return _thriftId;
14610
      }
14611
 
14612
      public String getFieldName() {
14613
        return _fieldName;
14614
      }
14615
    }
14616
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14617
    static {
14618
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
14621
    }
14622
 
14623
    public addPincode_result() {
14624
    }
14625
 
14626
    /**
14627
     * Performs a deep copy on <i>other</i>.
14628
     */
14629
    public addPincode_result(addPincode_result other) {
14630
    }
14631
 
14632
    public addPincode_result deepCopy() {
14633
      return new addPincode_result(this);
14634
    }
14635
 
14636
    @Override
14637
    public void clear() {
14638
    }
14639
 
14640
    public void setFieldValue(_Fields field, Object value) {
14641
      switch (field) {
14642
      }
14643
    }
14644
 
14645
    public Object getFieldValue(_Fields field) {
14646
      switch (field) {
14647
      }
14648
      throw new IllegalStateException();
14649
    }
14650
 
14651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14652
    public boolean isSet(_Fields field) {
14653
      if (field == null) {
14654
        throw new IllegalArgumentException();
14655
      }
14656
 
14657
      switch (field) {
14658
      }
14659
      throw new IllegalStateException();
14660
    }
14661
 
14662
    @Override
14663
    public boolean equals(Object that) {
14664
      if (that == null)
14665
        return false;
14666
      if (that instanceof addPincode_result)
14667
        return this.equals((addPincode_result)that);
14668
      return false;
14669
    }
14670
 
14671
    public boolean equals(addPincode_result that) {
14672
      if (that == null)
14673
        return false;
14674
 
14675
      return true;
14676
    }
14677
 
14678
    @Override
14679
    public int hashCode() {
14680
      return 0;
14681
    }
14682
 
14683
    public int compareTo(addPincode_result other) {
14684
      if (!getClass().equals(other.getClass())) {
14685
        return getClass().getName().compareTo(other.getClass().getName());
14686
      }
14687
 
14688
      int lastComparison = 0;
14689
      addPincode_result typedOther = (addPincode_result)other;
14690
 
14691
      return 0;
14692
    }
14693
 
14694
    public _Fields fieldForId(int fieldId) {
14695
      return _Fields.findByThriftId(fieldId);
14696
    }
14697
 
14698
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14699
      org.apache.thrift.protocol.TField field;
14700
      iprot.readStructBegin();
14701
      while (true)
14702
      {
14703
        field = iprot.readFieldBegin();
14704
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14705
          break;
14706
        }
14707
        switch (field.id) {
14708
          default:
14709
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14710
        }
14711
        iprot.readFieldEnd();
14712
      }
14713
      iprot.readStructEnd();
14714
      validate();
14715
    }
14716
 
14717
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14718
      oprot.writeStructBegin(STRUCT_DESC);
14719
 
14720
      oprot.writeFieldStop();
14721
      oprot.writeStructEnd();
14722
    }
14723
 
14724
    @Override
14725
    public String toString() {
14726
      StringBuilder sb = new StringBuilder("addPincode_result(");
14727
      boolean first = true;
14728
 
14729
      sb.append(")");
14730
      return sb.toString();
14731
    }
14732
 
14733
    public void validate() throws org.apache.thrift.TException {
14734
      // check for required fields
14735
    }
14736
 
14737
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14738
      try {
14739
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14740
      } catch (org.apache.thrift.TException te) {
14741
        throw new java.io.IOException(te);
14742
      }
14743
    }
14744
 
14745
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14746
      try {
14747
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14748
      } catch (org.apache.thrift.TException te) {
14749
        throw new java.io.IOException(te);
14750
      }
14751
    }
14752
 
14753
  }
14754
 
14755
  public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable   {
14756
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
14757
 
14758
    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);
14759
    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);
14760
    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);
14761
    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 14762
    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 14763
 
14764
    private long providerId; // required
14765
    private String pincode; // required
14766
    private boolean exp; // required
14767
    private boolean cod; // required
6524 rajveer 14768
    private boolean otgAvailable; // required
6322 amar.kumar 14769
 
14770
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14771
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14772
      PROVIDER_ID((short)1, "providerId"),
14773
      PINCODE((short)2, "pincode"),
14774
      EXP((short)3, "exp"),
6524 rajveer 14775
      COD((short)4, "cod"),
14776
      OTG_AVAILABLE((short)5, "otgAvailable");
6322 amar.kumar 14777
 
14778
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14779
 
14780
      static {
14781
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14782
          byName.put(field.getFieldName(), field);
14783
        }
14784
      }
14785
 
14786
      /**
14787
       * Find the _Fields constant that matches fieldId, or null if its not found.
14788
       */
14789
      public static _Fields findByThriftId(int fieldId) {
14790
        switch(fieldId) {
14791
          case 1: // PROVIDER_ID
14792
            return PROVIDER_ID;
14793
          case 2: // PINCODE
14794
            return PINCODE;
14795
          case 3: // EXP
14796
            return EXP;
14797
          case 4: // COD
14798
            return COD;
6524 rajveer 14799
          case 5: // OTG_AVAILABLE
14800
            return OTG_AVAILABLE;
6322 amar.kumar 14801
          default:
14802
            return null;
14803
        }
14804
      }
14805
 
14806
      /**
14807
       * Find the _Fields constant that matches fieldId, throwing an exception
14808
       * if it is not found.
14809
       */
14810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14811
        _Fields fields = findByThriftId(fieldId);
14812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14813
        return fields;
14814
      }
14815
 
14816
      /**
14817
       * Find the _Fields constant that matches name, or null if its not found.
14818
       */
14819
      public static _Fields findByName(String name) {
14820
        return byName.get(name);
14821
      }
14822
 
14823
      private final short _thriftId;
14824
      private final String _fieldName;
14825
 
14826
      _Fields(short thriftId, String fieldName) {
14827
        _thriftId = thriftId;
14828
        _fieldName = fieldName;
14829
      }
14830
 
14831
      public short getThriftFieldId() {
14832
        return _thriftId;
14833
      }
14834
 
14835
      public String getFieldName() {
14836
        return _fieldName;
14837
      }
14838
    }
14839
 
14840
    // isset id assignments
14841
    private static final int __PROVIDERID_ISSET_ID = 0;
14842
    private static final int __EXP_ISSET_ID = 1;
14843
    private static final int __COD_ISSET_ID = 2;
6524 rajveer 14844
    private static final int __OTGAVAILABLE_ISSET_ID = 3;
14845
    private BitSet __isset_bit_vector = new BitSet(4);
6322 amar.kumar 14846
 
14847
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14848
    static {
14849
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14850
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14852
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14854
      tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14856
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6524 rajveer 14858
      tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6322 amar.kumar 14860
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14861
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
14862
    }
14863
 
14864
    public updatePincode_args() {
14865
    }
14866
 
14867
    public updatePincode_args(
14868
      long providerId,
14869
      String pincode,
14870
      boolean exp,
6524 rajveer 14871
      boolean cod,
14872
      boolean otgAvailable)
6322 amar.kumar 14873
    {
14874
      this();
14875
      this.providerId = providerId;
14876
      setProviderIdIsSet(true);
14877
      this.pincode = pincode;
14878
      this.exp = exp;
14879
      setExpIsSet(true);
14880
      this.cod = cod;
14881
      setCodIsSet(true);
6524 rajveer 14882
      this.otgAvailable = otgAvailable;
14883
      setOtgAvailableIsSet(true);
6322 amar.kumar 14884
    }
14885
 
14886
    /**
14887
     * Performs a deep copy on <i>other</i>.
14888
     */
14889
    public updatePincode_args(updatePincode_args other) {
14890
      __isset_bit_vector.clear();
14891
      __isset_bit_vector.or(other.__isset_bit_vector);
14892
      this.providerId = other.providerId;
14893
      if (other.isSetPincode()) {
14894
        this.pincode = other.pincode;
14895
      }
14896
      this.exp = other.exp;
14897
      this.cod = other.cod;
6524 rajveer 14898
      this.otgAvailable = other.otgAvailable;
6322 amar.kumar 14899
    }
14900
 
14901
    public updatePincode_args deepCopy() {
14902
      return new updatePincode_args(this);
14903
    }
14904
 
14905
    @Override
14906
    public void clear() {
14907
      setProviderIdIsSet(false);
14908
      this.providerId = 0;
14909
      this.pincode = null;
14910
      setExpIsSet(false);
14911
      this.exp = false;
14912
      setCodIsSet(false);
14913
      this.cod = false;
6524 rajveer 14914
      setOtgAvailableIsSet(false);
14915
      this.otgAvailable = false;
6322 amar.kumar 14916
    }
14917
 
14918
    public long getProviderId() {
14919
      return this.providerId;
14920
    }
14921
 
14922
    public void setProviderId(long providerId) {
14923
      this.providerId = providerId;
14924
      setProviderIdIsSet(true);
14925
    }
14926
 
14927
    public void unsetProviderId() {
14928
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
14929
    }
14930
 
14931
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
14932
    public boolean isSetProviderId() {
14933
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
14934
    }
14935
 
14936
    public void setProviderIdIsSet(boolean value) {
14937
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
14938
    }
14939
 
14940
    public String getPincode() {
14941
      return this.pincode;
14942
    }
14943
 
14944
    public void setPincode(String pincode) {
14945
      this.pincode = pincode;
14946
    }
14947
 
14948
    public void unsetPincode() {
14949
      this.pincode = null;
14950
    }
14951
 
14952
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
14953
    public boolean isSetPincode() {
14954
      return this.pincode != null;
14955
    }
14956
 
14957
    public void setPincodeIsSet(boolean value) {
14958
      if (!value) {
14959
        this.pincode = null;
14960
      }
14961
    }
14962
 
14963
    public boolean isExp() {
14964
      return this.exp;
14965
    }
14966
 
14967
    public void setExp(boolean exp) {
14968
      this.exp = exp;
14969
      setExpIsSet(true);
14970
    }
14971
 
14972
    public void unsetExp() {
14973
      __isset_bit_vector.clear(__EXP_ISSET_ID);
14974
    }
14975
 
14976
    /** Returns true if field exp is set (has been assigned a value) and false otherwise */
14977
    public boolean isSetExp() {
14978
      return __isset_bit_vector.get(__EXP_ISSET_ID);
14979
    }
14980
 
14981
    public void setExpIsSet(boolean value) {
14982
      __isset_bit_vector.set(__EXP_ISSET_ID, value);
14983
    }
14984
 
14985
    public boolean isCod() {
14986
      return this.cod;
14987
    }
14988
 
14989
    public void setCod(boolean cod) {
14990
      this.cod = cod;
14991
      setCodIsSet(true);
14992
    }
14993
 
14994
    public void unsetCod() {
14995
      __isset_bit_vector.clear(__COD_ISSET_ID);
14996
    }
14997
 
14998
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
14999
    public boolean isSetCod() {
15000
      return __isset_bit_vector.get(__COD_ISSET_ID);
15001
    }
15002
 
15003
    public void setCodIsSet(boolean value) {
15004
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15005
    }
15006
 
6524 rajveer 15007
    public boolean isOtgAvailable() {
15008
      return this.otgAvailable;
15009
    }
15010
 
15011
    public void setOtgAvailable(boolean otgAvailable) {
15012
      this.otgAvailable = otgAvailable;
15013
      setOtgAvailableIsSet(true);
15014
    }
15015
 
15016
    public void unsetOtgAvailable() {
15017
      __isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
15018
    }
15019
 
15020
    /** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
15021
    public boolean isSetOtgAvailable() {
15022
      return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
15023
    }
15024
 
15025
    public void setOtgAvailableIsSet(boolean value) {
15026
      __isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
15027
    }
15028
 
6322 amar.kumar 15029
    public void setFieldValue(_Fields field, Object value) {
15030
      switch (field) {
15031
      case PROVIDER_ID:
15032
        if (value == null) {
15033
          unsetProviderId();
15034
        } else {
15035
          setProviderId((Long)value);
15036
        }
15037
        break;
15038
 
15039
      case PINCODE:
15040
        if (value == null) {
15041
          unsetPincode();
15042
        } else {
15043
          setPincode((String)value);
15044
        }
15045
        break;
15046
 
15047
      case EXP:
15048
        if (value == null) {
15049
          unsetExp();
15050
        } else {
15051
          setExp((Boolean)value);
15052
        }
15053
        break;
15054
 
15055
      case COD:
15056
        if (value == null) {
15057
          unsetCod();
15058
        } else {
15059
          setCod((Boolean)value);
15060
        }
15061
        break;
15062
 
6524 rajveer 15063
      case OTG_AVAILABLE:
15064
        if (value == null) {
15065
          unsetOtgAvailable();
15066
        } else {
15067
          setOtgAvailable((Boolean)value);
15068
        }
15069
        break;
15070
 
6322 amar.kumar 15071
      }
15072
    }
15073
 
15074
    public Object getFieldValue(_Fields field) {
15075
      switch (field) {
15076
      case PROVIDER_ID:
15077
        return Long.valueOf(getProviderId());
15078
 
15079
      case PINCODE:
15080
        return getPincode();
15081
 
15082
      case EXP:
15083
        return Boolean.valueOf(isExp());
15084
 
15085
      case COD:
15086
        return Boolean.valueOf(isCod());
15087
 
6524 rajveer 15088
      case OTG_AVAILABLE:
15089
        return Boolean.valueOf(isOtgAvailable());
15090
 
6322 amar.kumar 15091
      }
15092
      throw new IllegalStateException();
15093
    }
15094
 
15095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15096
    public boolean isSet(_Fields field) {
15097
      if (field == null) {
15098
        throw new IllegalArgumentException();
15099
      }
15100
 
15101
      switch (field) {
15102
      case PROVIDER_ID:
15103
        return isSetProviderId();
15104
      case PINCODE:
15105
        return isSetPincode();
15106
      case EXP:
15107
        return isSetExp();
15108
      case COD:
15109
        return isSetCod();
6524 rajveer 15110
      case OTG_AVAILABLE:
15111
        return isSetOtgAvailable();
6322 amar.kumar 15112
      }
15113
      throw new IllegalStateException();
15114
    }
15115
 
15116
    @Override
15117
    public boolean equals(Object that) {
15118
      if (that == null)
15119
        return false;
15120
      if (that instanceof updatePincode_args)
15121
        return this.equals((updatePincode_args)that);
15122
      return false;
15123
    }
15124
 
15125
    public boolean equals(updatePincode_args that) {
15126
      if (that == null)
15127
        return false;
15128
 
15129
      boolean this_present_providerId = true;
15130
      boolean that_present_providerId = true;
15131
      if (this_present_providerId || that_present_providerId) {
15132
        if (!(this_present_providerId && that_present_providerId))
15133
          return false;
15134
        if (this.providerId != that.providerId)
15135
          return false;
15136
      }
15137
 
15138
      boolean this_present_pincode = true && this.isSetPincode();
15139
      boolean that_present_pincode = true && that.isSetPincode();
15140
      if (this_present_pincode || that_present_pincode) {
15141
        if (!(this_present_pincode && that_present_pincode))
15142
          return false;
15143
        if (!this.pincode.equals(that.pincode))
15144
          return false;
15145
      }
15146
 
15147
      boolean this_present_exp = true;
15148
      boolean that_present_exp = true;
15149
      if (this_present_exp || that_present_exp) {
15150
        if (!(this_present_exp && that_present_exp))
15151
          return false;
15152
        if (this.exp != that.exp)
15153
          return false;
15154
      }
15155
 
15156
      boolean this_present_cod = true;
15157
      boolean that_present_cod = true;
15158
      if (this_present_cod || that_present_cod) {
15159
        if (!(this_present_cod && that_present_cod))
15160
          return false;
15161
        if (this.cod != that.cod)
15162
          return false;
15163
      }
15164
 
6524 rajveer 15165
      boolean this_present_otgAvailable = true;
15166
      boolean that_present_otgAvailable = true;
15167
      if (this_present_otgAvailable || that_present_otgAvailable) {
15168
        if (!(this_present_otgAvailable && that_present_otgAvailable))
15169
          return false;
15170
        if (this.otgAvailable != that.otgAvailable)
15171
          return false;
15172
      }
15173
 
6322 amar.kumar 15174
      return true;
15175
    }
15176
 
15177
    @Override
15178
    public int hashCode() {
15179
      return 0;
15180
    }
15181
 
15182
    public int compareTo(updatePincode_args other) {
15183
      if (!getClass().equals(other.getClass())) {
15184
        return getClass().getName().compareTo(other.getClass().getName());
15185
      }
15186
 
15187
      int lastComparison = 0;
15188
      updatePincode_args typedOther = (updatePincode_args)other;
15189
 
15190
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15191
      if (lastComparison != 0) {
15192
        return lastComparison;
15193
      }
15194
      if (isSetProviderId()) {
15195
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15196
        if (lastComparison != 0) {
15197
          return lastComparison;
15198
        }
15199
      }
15200
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
15201
      if (lastComparison != 0) {
15202
        return lastComparison;
15203
      }
15204
      if (isSetPincode()) {
15205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
15206
        if (lastComparison != 0) {
15207
          return lastComparison;
15208
        }
15209
      }
15210
      lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
15211
      if (lastComparison != 0) {
15212
        return lastComparison;
15213
      }
15214
      if (isSetExp()) {
15215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
15216
        if (lastComparison != 0) {
15217
          return lastComparison;
15218
        }
15219
      }
15220
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15221
      if (lastComparison != 0) {
15222
        return lastComparison;
15223
      }
15224
      if (isSetCod()) {
15225
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15226
        if (lastComparison != 0) {
15227
          return lastComparison;
15228
        }
15229
      }
6524 rajveer 15230
      lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
15231
      if (lastComparison != 0) {
15232
        return lastComparison;
15233
      }
15234
      if (isSetOtgAvailable()) {
15235
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
15236
        if (lastComparison != 0) {
15237
          return lastComparison;
15238
        }
15239
      }
6322 amar.kumar 15240
      return 0;
15241
    }
15242
 
15243
    public _Fields fieldForId(int fieldId) {
15244
      return _Fields.findByThriftId(fieldId);
15245
    }
15246
 
15247
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15248
      org.apache.thrift.protocol.TField field;
15249
      iprot.readStructBegin();
15250
      while (true)
15251
      {
15252
        field = iprot.readFieldBegin();
15253
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15254
          break;
15255
        }
15256
        switch (field.id) {
15257
          case 1: // PROVIDER_ID
15258
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15259
              this.providerId = iprot.readI64();
15260
              setProviderIdIsSet(true);
15261
            } else { 
15262
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15263
            }
15264
            break;
15265
          case 2: // PINCODE
15266
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15267
              this.pincode = iprot.readString();
15268
            } else { 
15269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15270
            }
15271
            break;
15272
          case 3: // EXP
15273
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15274
              this.exp = iprot.readBool();
15275
              setExpIsSet(true);
15276
            } else { 
15277
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15278
            }
15279
            break;
15280
          case 4: // COD
15281
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15282
              this.cod = iprot.readBool();
15283
              setCodIsSet(true);
15284
            } else { 
15285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15286
            }
15287
            break;
6524 rajveer 15288
          case 5: // OTG_AVAILABLE
15289
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15290
              this.otgAvailable = iprot.readBool();
15291
              setOtgAvailableIsSet(true);
15292
            } else { 
15293
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15294
            }
15295
            break;
6322 amar.kumar 15296
          default:
15297
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15298
        }
15299
        iprot.readFieldEnd();
15300
      }
15301
      iprot.readStructEnd();
15302
      validate();
15303
    }
15304
 
15305
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15306
      validate();
15307
 
15308
      oprot.writeStructBegin(STRUCT_DESC);
15309
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
15310
      oprot.writeI64(this.providerId);
15311
      oprot.writeFieldEnd();
15312
      if (this.pincode != null) {
15313
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
15314
        oprot.writeString(this.pincode);
15315
        oprot.writeFieldEnd();
15316
      }
15317
      oprot.writeFieldBegin(EXP_FIELD_DESC);
15318
      oprot.writeBool(this.exp);
15319
      oprot.writeFieldEnd();
15320
      oprot.writeFieldBegin(COD_FIELD_DESC);
15321
      oprot.writeBool(this.cod);
15322
      oprot.writeFieldEnd();
6524 rajveer 15323
      oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
15324
      oprot.writeBool(this.otgAvailable);
15325
      oprot.writeFieldEnd();
6322 amar.kumar 15326
      oprot.writeFieldStop();
15327
      oprot.writeStructEnd();
15328
    }
15329
 
15330
    @Override
15331
    public String toString() {
15332
      StringBuilder sb = new StringBuilder("updatePincode_args(");
15333
      boolean first = true;
15334
 
15335
      sb.append("providerId:");
15336
      sb.append(this.providerId);
15337
      first = false;
15338
      if (!first) sb.append(", ");
15339
      sb.append("pincode:");
15340
      if (this.pincode == null) {
15341
        sb.append("null");
15342
      } else {
15343
        sb.append(this.pincode);
15344
      }
15345
      first = false;
15346
      if (!first) sb.append(", ");
15347
      sb.append("exp:");
15348
      sb.append(this.exp);
15349
      first = false;
15350
      if (!first) sb.append(", ");
15351
      sb.append("cod:");
15352
      sb.append(this.cod);
15353
      first = false;
6524 rajveer 15354
      if (!first) sb.append(", ");
15355
      sb.append("otgAvailable:");
15356
      sb.append(this.otgAvailable);
15357
      first = false;
6322 amar.kumar 15358
      sb.append(")");
15359
      return sb.toString();
15360
    }
15361
 
15362
    public void validate() throws org.apache.thrift.TException {
15363
      // check for required fields
15364
    }
15365
 
15366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15367
      try {
15368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15369
      } catch (org.apache.thrift.TException te) {
15370
        throw new java.io.IOException(te);
15371
      }
15372
    }
15373
 
15374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15375
      try {
15376
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15377
        __isset_bit_vector = new BitSet(1);
15378
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15379
      } catch (org.apache.thrift.TException te) {
15380
        throw new java.io.IOException(te);
15381
      }
15382
    }
15383
 
15384
  }
15385
 
15386
  public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable   {
15387
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
15388
 
15389
 
15390
 
15391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15393
;
15394
 
15395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15396
 
15397
      static {
15398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15399
          byName.put(field.getFieldName(), field);
15400
        }
15401
      }
15402
 
15403
      /**
15404
       * Find the _Fields constant that matches fieldId, or null if its not found.
15405
       */
15406
      public static _Fields findByThriftId(int fieldId) {
15407
        switch(fieldId) {
15408
          default:
15409
            return null;
15410
        }
15411
      }
15412
 
15413
      /**
15414
       * Find the _Fields constant that matches fieldId, throwing an exception
15415
       * if it is not found.
15416
       */
15417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15418
        _Fields fields = findByThriftId(fieldId);
15419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15420
        return fields;
15421
      }
15422
 
15423
      /**
15424
       * Find the _Fields constant that matches name, or null if its not found.
15425
       */
15426
      public static _Fields findByName(String name) {
15427
        return byName.get(name);
15428
      }
15429
 
15430
      private final short _thriftId;
15431
      private final String _fieldName;
15432
 
15433
      _Fields(short thriftId, String fieldName) {
15434
        _thriftId = thriftId;
15435
        _fieldName = fieldName;
15436
      }
15437
 
15438
      public short getThriftFieldId() {
15439
        return _thriftId;
15440
      }
15441
 
15442
      public String getFieldName() {
15443
        return _fieldName;
15444
      }
15445
    }
15446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15447
    static {
15448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
15451
    }
15452
 
15453
    public updatePincode_result() {
15454
    }
15455
 
15456
    /**
15457
     * Performs a deep copy on <i>other</i>.
15458
     */
15459
    public updatePincode_result(updatePincode_result other) {
15460
    }
15461
 
15462
    public updatePincode_result deepCopy() {
15463
      return new updatePincode_result(this);
15464
    }
15465
 
15466
    @Override
15467
    public void clear() {
15468
    }
15469
 
15470
    public void setFieldValue(_Fields field, Object value) {
15471
      switch (field) {
15472
      }
15473
    }
15474
 
15475
    public Object getFieldValue(_Fields field) {
15476
      switch (field) {
15477
      }
15478
      throw new IllegalStateException();
15479
    }
15480
 
15481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15482
    public boolean isSet(_Fields field) {
15483
      if (field == null) {
15484
        throw new IllegalArgumentException();
15485
      }
15486
 
15487
      switch (field) {
15488
      }
15489
      throw new IllegalStateException();
15490
    }
15491
 
15492
    @Override
15493
    public boolean equals(Object that) {
15494
      if (that == null)
15495
        return false;
15496
      if (that instanceof updatePincode_result)
15497
        return this.equals((updatePincode_result)that);
15498
      return false;
15499
    }
15500
 
15501
    public boolean equals(updatePincode_result that) {
15502
      if (that == null)
15503
        return false;
15504
 
15505
      return true;
15506
    }
15507
 
15508
    @Override
15509
    public int hashCode() {
15510
      return 0;
15511
    }
15512
 
15513
    public int compareTo(updatePincode_result other) {
15514
      if (!getClass().equals(other.getClass())) {
15515
        return getClass().getName().compareTo(other.getClass().getName());
15516
      }
15517
 
15518
      int lastComparison = 0;
15519
      updatePincode_result typedOther = (updatePincode_result)other;
15520
 
15521
      return 0;
15522
    }
15523
 
15524
    public _Fields fieldForId(int fieldId) {
15525
      return _Fields.findByThriftId(fieldId);
15526
    }
15527
 
15528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15529
      org.apache.thrift.protocol.TField field;
15530
      iprot.readStructBegin();
15531
      while (true)
15532
      {
15533
        field = iprot.readFieldBegin();
15534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15535
          break;
15536
        }
15537
        switch (field.id) {
15538
          default:
15539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15540
        }
15541
        iprot.readFieldEnd();
15542
      }
15543
      iprot.readStructEnd();
15544
      validate();
15545
    }
15546
 
15547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15548
      oprot.writeStructBegin(STRUCT_DESC);
15549
 
15550
      oprot.writeFieldStop();
15551
      oprot.writeStructEnd();
15552
    }
15553
 
15554
    @Override
15555
    public String toString() {
15556
      StringBuilder sb = new StringBuilder("updatePincode_result(");
15557
      boolean first = true;
15558
 
15559
      sb.append(")");
15560
      return sb.toString();
15561
    }
15562
 
15563
    public void validate() throws org.apache.thrift.TException {
15564
      // check for required fields
15565
    }
15566
 
15567
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15568
      try {
15569
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15570
      } catch (org.apache.thrift.TException te) {
15571
        throw new java.io.IOException(te);
15572
      }
15573
    }
15574
 
15575
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15576
      try {
15577
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15578
      } catch (org.apache.thrift.TException te) {
15579
        throw new java.io.IOException(te);
15580
      }
15581
    }
15582
 
15583
  }
15584
 
7567 rajveer 15585
  public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable   {
15586
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
15587
 
15588
    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);
15589
    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);
15590
    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 15591
    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 15592
 
15593
    private long providerId; // required
15594
    private boolean cod; // required
15595
    private List<String> awbs; // required
13146 manish.sha 15596
    private long awbUsedFor; // required
7567 rajveer 15597
 
15598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15599
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15600
      PROVIDER_ID((short)1, "providerId"),
15601
      COD((short)2, "cod"),
13146 manish.sha 15602
      AWBS((short)3, "awbs"),
15603
      AWB_USED_FOR((short)4, "awbUsedFor");
7567 rajveer 15604
 
15605
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15606
 
15607
      static {
15608
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15609
          byName.put(field.getFieldName(), field);
15610
        }
15611
      }
15612
 
15613
      /**
15614
       * Find the _Fields constant that matches fieldId, or null if its not found.
15615
       */
15616
      public static _Fields findByThriftId(int fieldId) {
15617
        switch(fieldId) {
15618
          case 1: // PROVIDER_ID
15619
            return PROVIDER_ID;
15620
          case 2: // COD
15621
            return COD;
15622
          case 3: // AWBS
15623
            return AWBS;
13146 manish.sha 15624
          case 4: // AWB_USED_FOR
15625
            return AWB_USED_FOR;
7567 rajveer 15626
          default:
15627
            return null;
15628
        }
15629
      }
15630
 
15631
      /**
15632
       * Find the _Fields constant that matches fieldId, throwing an exception
15633
       * if it is not found.
15634
       */
15635
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15636
        _Fields fields = findByThriftId(fieldId);
15637
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15638
        return fields;
15639
      }
15640
 
15641
      /**
15642
       * Find the _Fields constant that matches name, or null if its not found.
15643
       */
15644
      public static _Fields findByName(String name) {
15645
        return byName.get(name);
15646
      }
15647
 
15648
      private final short _thriftId;
15649
      private final String _fieldName;
15650
 
15651
      _Fields(short thriftId, String fieldName) {
15652
        _thriftId = thriftId;
15653
        _fieldName = fieldName;
15654
      }
15655
 
15656
      public short getThriftFieldId() {
15657
        return _thriftId;
15658
      }
15659
 
15660
      public String getFieldName() {
15661
        return _fieldName;
15662
      }
15663
    }
15664
 
15665
    // isset id assignments
15666
    private static final int __PROVIDERID_ISSET_ID = 0;
15667
    private static final int __COD_ISSET_ID = 1;
13146 manish.sha 15668
    private static final int __AWBUSEDFOR_ISSET_ID = 2;
15669
    private BitSet __isset_bit_vector = new BitSet(3);
7567 rajveer 15670
 
15671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15672
    static {
15673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15674
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15676
      tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
15678
      tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15679
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15680
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13146 manish.sha 15681
      tmpMap.put(_Fields.AWB_USED_FOR, new org.apache.thrift.meta_data.FieldMetaData("awbUsedFor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7567 rajveer 15683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
15685
    }
15686
 
15687
    public addNewAwbs_args() {
15688
    }
15689
 
15690
    public addNewAwbs_args(
15691
      long providerId,
15692
      boolean cod,
13146 manish.sha 15693
      List<String> awbs,
15694
      long awbUsedFor)
7567 rajveer 15695
    {
15696
      this();
15697
      this.providerId = providerId;
15698
      setProviderIdIsSet(true);
15699
      this.cod = cod;
15700
      setCodIsSet(true);
15701
      this.awbs = awbs;
13146 manish.sha 15702
      this.awbUsedFor = awbUsedFor;
15703
      setAwbUsedForIsSet(true);
7567 rajveer 15704
    }
15705
 
15706
    /**
15707
     * Performs a deep copy on <i>other</i>.
15708
     */
15709
    public addNewAwbs_args(addNewAwbs_args other) {
15710
      __isset_bit_vector.clear();
15711
      __isset_bit_vector.or(other.__isset_bit_vector);
15712
      this.providerId = other.providerId;
15713
      this.cod = other.cod;
15714
      if (other.isSetAwbs()) {
15715
        List<String> __this__awbs = new ArrayList<String>();
15716
        for (String other_element : other.awbs) {
15717
          __this__awbs.add(other_element);
15718
        }
15719
        this.awbs = __this__awbs;
15720
      }
13146 manish.sha 15721
      this.awbUsedFor = other.awbUsedFor;
7567 rajveer 15722
    }
15723
 
15724
    public addNewAwbs_args deepCopy() {
15725
      return new addNewAwbs_args(this);
15726
    }
15727
 
15728
    @Override
15729
    public void clear() {
15730
      setProviderIdIsSet(false);
15731
      this.providerId = 0;
15732
      setCodIsSet(false);
15733
      this.cod = false;
15734
      this.awbs = null;
13146 manish.sha 15735
      setAwbUsedForIsSet(false);
15736
      this.awbUsedFor = 0;
7567 rajveer 15737
    }
15738
 
15739
    public long getProviderId() {
15740
      return this.providerId;
15741
    }
15742
 
15743
    public void setProviderId(long providerId) {
15744
      this.providerId = providerId;
15745
      setProviderIdIsSet(true);
15746
    }
15747
 
15748
    public void unsetProviderId() {
15749
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
15750
    }
15751
 
15752
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
15753
    public boolean isSetProviderId() {
15754
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
15755
    }
15756
 
15757
    public void setProviderIdIsSet(boolean value) {
15758
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
15759
    }
15760
 
15761
    public boolean isCod() {
15762
      return this.cod;
15763
    }
15764
 
15765
    public void setCod(boolean cod) {
15766
      this.cod = cod;
15767
      setCodIsSet(true);
15768
    }
15769
 
15770
    public void unsetCod() {
15771
      __isset_bit_vector.clear(__COD_ISSET_ID);
15772
    }
15773
 
15774
    /** Returns true if field cod is set (has been assigned a value) and false otherwise */
15775
    public boolean isSetCod() {
15776
      return __isset_bit_vector.get(__COD_ISSET_ID);
15777
    }
15778
 
15779
    public void setCodIsSet(boolean value) {
15780
      __isset_bit_vector.set(__COD_ISSET_ID, value);
15781
    }
15782
 
15783
    public int getAwbsSize() {
15784
      return (this.awbs == null) ? 0 : this.awbs.size();
15785
    }
15786
 
15787
    public java.util.Iterator<String> getAwbsIterator() {
15788
      return (this.awbs == null) ? null : this.awbs.iterator();
15789
    }
15790
 
15791
    public void addToAwbs(String elem) {
15792
      if (this.awbs == null) {
15793
        this.awbs = new ArrayList<String>();
15794
      }
15795
      this.awbs.add(elem);
15796
    }
15797
 
15798
    public List<String> getAwbs() {
15799
      return this.awbs;
15800
    }
15801
 
15802
    public void setAwbs(List<String> awbs) {
15803
      this.awbs = awbs;
15804
    }
15805
 
15806
    public void unsetAwbs() {
15807
      this.awbs = null;
15808
    }
15809
 
15810
    /** Returns true if field awbs is set (has been assigned a value) and false otherwise */
15811
    public boolean isSetAwbs() {
15812
      return this.awbs != null;
15813
    }
15814
 
15815
    public void setAwbsIsSet(boolean value) {
15816
      if (!value) {
15817
        this.awbs = null;
15818
      }
15819
    }
15820
 
13146 manish.sha 15821
    public long getAwbUsedFor() {
15822
      return this.awbUsedFor;
15823
    }
15824
 
15825
    public void setAwbUsedFor(long awbUsedFor) {
15826
      this.awbUsedFor = awbUsedFor;
15827
      setAwbUsedForIsSet(true);
15828
    }
15829
 
15830
    public void unsetAwbUsedFor() {
15831
      __isset_bit_vector.clear(__AWBUSEDFOR_ISSET_ID);
15832
    }
15833
 
15834
    /** Returns true if field awbUsedFor is set (has been assigned a value) and false otherwise */
15835
    public boolean isSetAwbUsedFor() {
15836
      return __isset_bit_vector.get(__AWBUSEDFOR_ISSET_ID);
15837
    }
15838
 
15839
    public void setAwbUsedForIsSet(boolean value) {
15840
      __isset_bit_vector.set(__AWBUSEDFOR_ISSET_ID, value);
15841
    }
15842
 
7567 rajveer 15843
    public void setFieldValue(_Fields field, Object value) {
15844
      switch (field) {
15845
      case PROVIDER_ID:
15846
        if (value == null) {
15847
          unsetProviderId();
15848
        } else {
15849
          setProviderId((Long)value);
15850
        }
15851
        break;
15852
 
15853
      case COD:
15854
        if (value == null) {
15855
          unsetCod();
15856
        } else {
15857
          setCod((Boolean)value);
15858
        }
15859
        break;
15860
 
15861
      case AWBS:
15862
        if (value == null) {
15863
          unsetAwbs();
15864
        } else {
15865
          setAwbs((List<String>)value);
15866
        }
15867
        break;
15868
 
13146 manish.sha 15869
      case AWB_USED_FOR:
15870
        if (value == null) {
15871
          unsetAwbUsedFor();
15872
        } else {
15873
          setAwbUsedFor((Long)value);
15874
        }
15875
        break;
15876
 
7567 rajveer 15877
      }
15878
    }
15879
 
15880
    public Object getFieldValue(_Fields field) {
15881
      switch (field) {
15882
      case PROVIDER_ID:
15883
        return Long.valueOf(getProviderId());
15884
 
15885
      case COD:
15886
        return Boolean.valueOf(isCod());
15887
 
15888
      case AWBS:
15889
        return getAwbs();
15890
 
13146 manish.sha 15891
      case AWB_USED_FOR:
15892
        return Long.valueOf(getAwbUsedFor());
15893
 
7567 rajveer 15894
      }
15895
      throw new IllegalStateException();
15896
    }
15897
 
15898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15899
    public boolean isSet(_Fields field) {
15900
      if (field == null) {
15901
        throw new IllegalArgumentException();
15902
      }
15903
 
15904
      switch (field) {
15905
      case PROVIDER_ID:
15906
        return isSetProviderId();
15907
      case COD:
15908
        return isSetCod();
15909
      case AWBS:
15910
        return isSetAwbs();
13146 manish.sha 15911
      case AWB_USED_FOR:
15912
        return isSetAwbUsedFor();
7567 rajveer 15913
      }
15914
      throw new IllegalStateException();
15915
    }
15916
 
15917
    @Override
15918
    public boolean equals(Object that) {
15919
      if (that == null)
15920
        return false;
15921
      if (that instanceof addNewAwbs_args)
15922
        return this.equals((addNewAwbs_args)that);
15923
      return false;
15924
    }
15925
 
15926
    public boolean equals(addNewAwbs_args that) {
15927
      if (that == null)
15928
        return false;
15929
 
15930
      boolean this_present_providerId = true;
15931
      boolean that_present_providerId = true;
15932
      if (this_present_providerId || that_present_providerId) {
15933
        if (!(this_present_providerId && that_present_providerId))
15934
          return false;
15935
        if (this.providerId != that.providerId)
15936
          return false;
15937
      }
15938
 
15939
      boolean this_present_cod = true;
15940
      boolean that_present_cod = true;
15941
      if (this_present_cod || that_present_cod) {
15942
        if (!(this_present_cod && that_present_cod))
15943
          return false;
15944
        if (this.cod != that.cod)
15945
          return false;
15946
      }
15947
 
15948
      boolean this_present_awbs = true && this.isSetAwbs();
15949
      boolean that_present_awbs = true && that.isSetAwbs();
15950
      if (this_present_awbs || that_present_awbs) {
15951
        if (!(this_present_awbs && that_present_awbs))
15952
          return false;
15953
        if (!this.awbs.equals(that.awbs))
15954
          return false;
15955
      }
15956
 
13146 manish.sha 15957
      boolean this_present_awbUsedFor = true;
15958
      boolean that_present_awbUsedFor = true;
15959
      if (this_present_awbUsedFor || that_present_awbUsedFor) {
15960
        if (!(this_present_awbUsedFor && that_present_awbUsedFor))
15961
          return false;
15962
        if (this.awbUsedFor != that.awbUsedFor)
15963
          return false;
15964
      }
15965
 
7567 rajveer 15966
      return true;
15967
    }
15968
 
15969
    @Override
15970
    public int hashCode() {
15971
      return 0;
15972
    }
15973
 
15974
    public int compareTo(addNewAwbs_args other) {
15975
      if (!getClass().equals(other.getClass())) {
15976
        return getClass().getName().compareTo(other.getClass().getName());
15977
      }
15978
 
15979
      int lastComparison = 0;
15980
      addNewAwbs_args typedOther = (addNewAwbs_args)other;
15981
 
15982
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
15983
      if (lastComparison != 0) {
15984
        return lastComparison;
15985
      }
15986
      if (isSetProviderId()) {
15987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
15988
        if (lastComparison != 0) {
15989
          return lastComparison;
15990
        }
15991
      }
15992
      lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
15993
      if (lastComparison != 0) {
15994
        return lastComparison;
15995
      }
15996
      if (isSetCod()) {
15997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
15998
        if (lastComparison != 0) {
15999
          return lastComparison;
16000
        }
16001
      }
16002
      lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
16003
      if (lastComparison != 0) {
16004
        return lastComparison;
16005
      }
16006
      if (isSetAwbs()) {
16007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
16008
        if (lastComparison != 0) {
16009
          return lastComparison;
16010
        }
16011
      }
13146 manish.sha 16012
      lastComparison = Boolean.valueOf(isSetAwbUsedFor()).compareTo(typedOther.isSetAwbUsedFor());
16013
      if (lastComparison != 0) {
16014
        return lastComparison;
16015
      }
16016
      if (isSetAwbUsedFor()) {
16017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbUsedFor, typedOther.awbUsedFor);
16018
        if (lastComparison != 0) {
16019
          return lastComparison;
16020
        }
16021
      }
7567 rajveer 16022
      return 0;
16023
    }
16024
 
16025
    public _Fields fieldForId(int fieldId) {
16026
      return _Fields.findByThriftId(fieldId);
16027
    }
16028
 
16029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16030
      org.apache.thrift.protocol.TField field;
16031
      iprot.readStructBegin();
16032
      while (true)
16033
      {
16034
        field = iprot.readFieldBegin();
16035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16036
          break;
16037
        }
16038
        switch (field.id) {
16039
          case 1: // PROVIDER_ID
16040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16041
              this.providerId = iprot.readI64();
16042
              setProviderIdIsSet(true);
16043
            } else { 
16044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16045
            }
16046
            break;
16047
          case 2: // COD
16048
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16049
              this.cod = iprot.readBool();
16050
              setCodIsSet(true);
16051
            } else { 
16052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16053
            }
16054
            break;
16055
          case 3: // AWBS
16056
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16057
              {
7792 anupam.sin 16058
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
16059
                this.awbs = new ArrayList<String>(_list24.size);
16060
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
7567 rajveer 16061
                {
7792 anupam.sin 16062
                  String _elem26; // required
16063
                  _elem26 = iprot.readString();
16064
                  this.awbs.add(_elem26);
7567 rajveer 16065
                }
16066
                iprot.readListEnd();
16067
              }
16068
            } else { 
16069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16070
            }
16071
            break;
13146 manish.sha 16072
          case 4: // AWB_USED_FOR
16073
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16074
              this.awbUsedFor = iprot.readI64();
16075
              setAwbUsedForIsSet(true);
16076
            } else { 
16077
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16078
            }
16079
            break;
7567 rajveer 16080
          default:
16081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16082
        }
16083
        iprot.readFieldEnd();
16084
      }
16085
      iprot.readStructEnd();
16086
      validate();
16087
    }
16088
 
16089
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16090
      validate();
16091
 
16092
      oprot.writeStructBegin(STRUCT_DESC);
16093
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
16094
      oprot.writeI64(this.providerId);
16095
      oprot.writeFieldEnd();
16096
      oprot.writeFieldBegin(COD_FIELD_DESC);
16097
      oprot.writeBool(this.cod);
16098
      oprot.writeFieldEnd();
16099
      if (this.awbs != null) {
16100
        oprot.writeFieldBegin(AWBS_FIELD_DESC);
16101
        {
16102
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
7792 anupam.sin 16103
          for (String _iter27 : this.awbs)
7567 rajveer 16104
          {
7792 anupam.sin 16105
            oprot.writeString(_iter27);
7567 rajveer 16106
          }
16107
          oprot.writeListEnd();
16108
        }
16109
        oprot.writeFieldEnd();
16110
      }
13146 manish.sha 16111
      oprot.writeFieldBegin(AWB_USED_FOR_FIELD_DESC);
16112
      oprot.writeI64(this.awbUsedFor);
16113
      oprot.writeFieldEnd();
7567 rajveer 16114
      oprot.writeFieldStop();
16115
      oprot.writeStructEnd();
16116
    }
16117
 
16118
    @Override
16119
    public String toString() {
16120
      StringBuilder sb = new StringBuilder("addNewAwbs_args(");
16121
      boolean first = true;
16122
 
16123
      sb.append("providerId:");
16124
      sb.append(this.providerId);
16125
      first = false;
16126
      if (!first) sb.append(", ");
16127
      sb.append("cod:");
16128
      sb.append(this.cod);
16129
      first = false;
16130
      if (!first) sb.append(", ");
16131
      sb.append("awbs:");
16132
      if (this.awbs == null) {
16133
        sb.append("null");
16134
      } else {
16135
        sb.append(this.awbs);
16136
      }
16137
      first = false;
13146 manish.sha 16138
      if (!first) sb.append(", ");
16139
      sb.append("awbUsedFor:");
16140
      sb.append(this.awbUsedFor);
16141
      first = false;
7567 rajveer 16142
      sb.append(")");
16143
      return sb.toString();
16144
    }
16145
 
16146
    public void validate() throws org.apache.thrift.TException {
16147
      // check for required fields
16148
    }
16149
 
16150
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16151
      try {
16152
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16153
      } catch (org.apache.thrift.TException te) {
16154
        throw new java.io.IOException(te);
16155
      }
16156
    }
16157
 
16158
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16159
      try {
16160
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16161
        __isset_bit_vector = new BitSet(1);
16162
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16163
      } catch (org.apache.thrift.TException te) {
16164
        throw new java.io.IOException(te);
16165
      }
16166
    }
16167
 
16168
  }
16169
 
16170
  public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable   {
16171
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
16172
 
16173
    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);
16174
 
16175
    private boolean success; // required
16176
 
16177
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16178
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16179
      SUCCESS((short)0, "success");
16180
 
16181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16182
 
16183
      static {
16184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16185
          byName.put(field.getFieldName(), field);
16186
        }
16187
      }
16188
 
16189
      /**
16190
       * Find the _Fields constant that matches fieldId, or null if its not found.
16191
       */
16192
      public static _Fields findByThriftId(int fieldId) {
16193
        switch(fieldId) {
16194
          case 0: // SUCCESS
16195
            return SUCCESS;
16196
          default:
16197
            return null;
16198
        }
16199
      }
16200
 
16201
      /**
16202
       * Find the _Fields constant that matches fieldId, throwing an exception
16203
       * if it is not found.
16204
       */
16205
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16206
        _Fields fields = findByThriftId(fieldId);
16207
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16208
        return fields;
16209
      }
16210
 
16211
      /**
16212
       * Find the _Fields constant that matches name, or null if its not found.
16213
       */
16214
      public static _Fields findByName(String name) {
16215
        return byName.get(name);
16216
      }
16217
 
16218
      private final short _thriftId;
16219
      private final String _fieldName;
16220
 
16221
      _Fields(short thriftId, String fieldName) {
16222
        _thriftId = thriftId;
16223
        _fieldName = fieldName;
16224
      }
16225
 
16226
      public short getThriftFieldId() {
16227
        return _thriftId;
16228
      }
16229
 
16230
      public String getFieldName() {
16231
        return _fieldName;
16232
      }
16233
    }
16234
 
16235
    // isset id assignments
16236
    private static final int __SUCCESS_ISSET_ID = 0;
16237
    private BitSet __isset_bit_vector = new BitSet(1);
16238
 
16239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16240
    static {
16241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16244
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16245
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
16246
    }
16247
 
16248
    public addNewAwbs_result() {
16249
    }
16250
 
16251
    public addNewAwbs_result(
16252
      boolean success)
16253
    {
16254
      this();
16255
      this.success = success;
16256
      setSuccessIsSet(true);
16257
    }
16258
 
16259
    /**
16260
     * Performs a deep copy on <i>other</i>.
16261
     */
16262
    public addNewAwbs_result(addNewAwbs_result other) {
16263
      __isset_bit_vector.clear();
16264
      __isset_bit_vector.or(other.__isset_bit_vector);
16265
      this.success = other.success;
16266
    }
16267
 
16268
    public addNewAwbs_result deepCopy() {
16269
      return new addNewAwbs_result(this);
16270
    }
16271
 
16272
    @Override
16273
    public void clear() {
16274
      setSuccessIsSet(false);
16275
      this.success = false;
16276
    }
16277
 
16278
    public boolean isSuccess() {
16279
      return this.success;
16280
    }
16281
 
16282
    public void setSuccess(boolean success) {
16283
      this.success = success;
16284
      setSuccessIsSet(true);
16285
    }
16286
 
16287
    public void unsetSuccess() {
16288
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16289
    }
16290
 
16291
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16292
    public boolean isSetSuccess() {
16293
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16294
    }
16295
 
16296
    public void setSuccessIsSet(boolean value) {
16297
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16298
    }
16299
 
16300
    public void setFieldValue(_Fields field, Object value) {
16301
      switch (field) {
16302
      case SUCCESS:
16303
        if (value == null) {
16304
          unsetSuccess();
16305
        } else {
16306
          setSuccess((Boolean)value);
16307
        }
16308
        break;
16309
 
16310
      }
16311
    }
16312
 
16313
    public Object getFieldValue(_Fields field) {
16314
      switch (field) {
16315
      case SUCCESS:
16316
        return Boolean.valueOf(isSuccess());
16317
 
16318
      }
16319
      throw new IllegalStateException();
16320
    }
16321
 
16322
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16323
    public boolean isSet(_Fields field) {
16324
      if (field == null) {
16325
        throw new IllegalArgumentException();
16326
      }
16327
 
16328
      switch (field) {
16329
      case SUCCESS:
16330
        return isSetSuccess();
16331
      }
16332
      throw new IllegalStateException();
16333
    }
16334
 
16335
    @Override
16336
    public boolean equals(Object that) {
16337
      if (that == null)
16338
        return false;
16339
      if (that instanceof addNewAwbs_result)
16340
        return this.equals((addNewAwbs_result)that);
16341
      return false;
16342
    }
16343
 
16344
    public boolean equals(addNewAwbs_result that) {
16345
      if (that == null)
16346
        return false;
16347
 
16348
      boolean this_present_success = true;
16349
      boolean that_present_success = true;
16350
      if (this_present_success || that_present_success) {
16351
        if (!(this_present_success && that_present_success))
16352
          return false;
16353
        if (this.success != that.success)
16354
          return false;
16355
      }
16356
 
16357
      return true;
16358
    }
16359
 
16360
    @Override
16361
    public int hashCode() {
16362
      return 0;
16363
    }
16364
 
16365
    public int compareTo(addNewAwbs_result other) {
16366
      if (!getClass().equals(other.getClass())) {
16367
        return getClass().getName().compareTo(other.getClass().getName());
16368
      }
16369
 
16370
      int lastComparison = 0;
16371
      addNewAwbs_result typedOther = (addNewAwbs_result)other;
16372
 
16373
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16374
      if (lastComparison != 0) {
16375
        return lastComparison;
16376
      }
16377
      if (isSetSuccess()) {
16378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16379
        if (lastComparison != 0) {
16380
          return lastComparison;
16381
        }
16382
      }
16383
      return 0;
16384
    }
16385
 
16386
    public _Fields fieldForId(int fieldId) {
16387
      return _Fields.findByThriftId(fieldId);
16388
    }
16389
 
16390
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16391
      org.apache.thrift.protocol.TField field;
16392
      iprot.readStructBegin();
16393
      while (true)
16394
      {
16395
        field = iprot.readFieldBegin();
16396
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16397
          break;
16398
        }
16399
        switch (field.id) {
16400
          case 0: // SUCCESS
16401
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16402
              this.success = iprot.readBool();
16403
              setSuccessIsSet(true);
16404
            } else { 
16405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16406
            }
16407
            break;
16408
          default:
16409
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16410
        }
16411
        iprot.readFieldEnd();
16412
      }
16413
      iprot.readStructEnd();
16414
      validate();
16415
    }
16416
 
16417
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16418
      oprot.writeStructBegin(STRUCT_DESC);
16419
 
16420
      if (this.isSetSuccess()) {
16421
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16422
        oprot.writeBool(this.success);
16423
        oprot.writeFieldEnd();
16424
      }
16425
      oprot.writeFieldStop();
16426
      oprot.writeStructEnd();
16427
    }
16428
 
16429
    @Override
16430
    public String toString() {
16431
      StringBuilder sb = new StringBuilder("addNewAwbs_result(");
16432
      boolean first = true;
16433
 
16434
      sb.append("success:");
16435
      sb.append(this.success);
16436
      first = false;
16437
      sb.append(")");
16438
      return sb.toString();
16439
    }
16440
 
16441
    public void validate() throws org.apache.thrift.TException {
16442
      // check for required fields
16443
    }
16444
 
16445
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16446
      try {
16447
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16448
      } catch (org.apache.thrift.TException te) {
16449
        throw new java.io.IOException(te);
16450
      }
16451
    }
16452
 
16453
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16454
      try {
16455
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16456
      } catch (org.apache.thrift.TException te) {
16457
        throw new java.io.IOException(te);
16458
      }
16459
    }
16460
 
16461
  }
16462
 
7788 manish.sha 16463
  public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable   {
16464
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
7737 manish.sha 16465
 
7788 manish.sha 16466
    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);
16467
    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 16468
 
7788 manish.sha 16469
    private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
16470
    private boolean runCompleteUpdate; // required
7737 manish.sha 16471
 
16472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7788 manish.sha 16474
      LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
16475
      RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
7737 manish.sha 16476
 
16477
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16478
 
16479
      static {
16480
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16481
          byName.put(field.getFieldName(), field);
16482
        }
16483
      }
16484
 
16485
      /**
16486
       * Find the _Fields constant that matches fieldId, or null if its not found.
16487
       */
16488
      public static _Fields findByThriftId(int fieldId) {
16489
        switch(fieldId) {
7788 manish.sha 16490
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16491
            return LOGISTICS_LOCATION_INFO_LIST;
16492
          case 2: // RUN_COMPLETE_UPDATE
16493
            return RUN_COMPLETE_UPDATE;
7737 manish.sha 16494
          default:
16495
            return null;
16496
        }
16497
      }
16498
 
16499
      /**
16500
       * Find the _Fields constant that matches fieldId, throwing an exception
16501
       * if it is not found.
16502
       */
16503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16504
        _Fields fields = findByThriftId(fieldId);
16505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16506
        return fields;
16507
      }
16508
 
16509
      /**
16510
       * Find the _Fields constant that matches name, or null if its not found.
16511
       */
16512
      public static _Fields findByName(String name) {
16513
        return byName.get(name);
16514
      }
16515
 
16516
      private final short _thriftId;
16517
      private final String _fieldName;
16518
 
16519
      _Fields(short thriftId, String fieldName) {
16520
        _thriftId = thriftId;
16521
        _fieldName = fieldName;
16522
      }
16523
 
16524
      public short getThriftFieldId() {
16525
        return _thriftId;
16526
      }
16527
 
16528
      public String getFieldName() {
16529
        return _fieldName;
16530
      }
16531
    }
16532
 
16533
    // isset id assignments
7788 manish.sha 16534
    private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
7737 manish.sha 16535
    private BitSet __isset_bit_vector = new BitSet(1);
16536
 
16537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16538
    static {
16539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7788 manish.sha 16540
      tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16541
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16542
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
16543
      tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16544
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7737 manish.sha 16545
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16546
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
7737 manish.sha 16547
    }
16548
 
7788 manish.sha 16549
    public runLogisticsLocationInfoUpdate_args() {
7737 manish.sha 16550
    }
16551
 
7788 manish.sha 16552
    public runLogisticsLocationInfoUpdate_args(
16553
      List<LogisticsLocationInfo> logisticsLocationInfoList,
16554
      boolean runCompleteUpdate)
7737 manish.sha 16555
    {
16556
      this();
7788 manish.sha 16557
      this.logisticsLocationInfoList = logisticsLocationInfoList;
16558
      this.runCompleteUpdate = runCompleteUpdate;
16559
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16560
    }
16561
 
16562
    /**
16563
     * Performs a deep copy on <i>other</i>.
16564
     */
7788 manish.sha 16565
    public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16566
      __isset_bit_vector.clear();
16567
      __isset_bit_vector.or(other.__isset_bit_vector);
7788 manish.sha 16568
      if (other.isSetLogisticsLocationInfoList()) {
16569
        List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16570
        for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
16571
          __this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
16572
        }
16573
        this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
7737 manish.sha 16574
      }
7788 manish.sha 16575
      this.runCompleteUpdate = other.runCompleteUpdate;
7737 manish.sha 16576
    }
16577
 
7788 manish.sha 16578
    public runLogisticsLocationInfoUpdate_args deepCopy() {
16579
      return new runLogisticsLocationInfoUpdate_args(this);
7737 manish.sha 16580
    }
16581
 
16582
    @Override
16583
    public void clear() {
7788 manish.sha 16584
      this.logisticsLocationInfoList = null;
16585
      setRunCompleteUpdateIsSet(false);
16586
      this.runCompleteUpdate = false;
7737 manish.sha 16587
    }
16588
 
7788 manish.sha 16589
    public int getLogisticsLocationInfoListSize() {
16590
      return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
7737 manish.sha 16591
    }
16592
 
7788 manish.sha 16593
    public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
16594
      return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
7737 manish.sha 16595
    }
16596
 
7788 manish.sha 16597
    public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
16598
      if (this.logisticsLocationInfoList == null) {
16599
        this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
16600
      }
16601
      this.logisticsLocationInfoList.add(elem);
7737 manish.sha 16602
    }
16603
 
7788 manish.sha 16604
    public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
16605
      return this.logisticsLocationInfoList;
7737 manish.sha 16606
    }
16607
 
7788 manish.sha 16608
    public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
16609
      this.logisticsLocationInfoList = logisticsLocationInfoList;
7737 manish.sha 16610
    }
16611
 
7788 manish.sha 16612
    public void unsetLogisticsLocationInfoList() {
16613
      this.logisticsLocationInfoList = null;
7737 manish.sha 16614
    }
16615
 
7788 manish.sha 16616
    /** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
16617
    public boolean isSetLogisticsLocationInfoList() {
16618
      return this.logisticsLocationInfoList != null;
7737 manish.sha 16619
    }
16620
 
7788 manish.sha 16621
    public void setLogisticsLocationInfoListIsSet(boolean value) {
16622
      if (!value) {
16623
        this.logisticsLocationInfoList = null;
16624
      }
7737 manish.sha 16625
    }
16626
 
7788 manish.sha 16627
    public boolean isRunCompleteUpdate() {
16628
      return this.runCompleteUpdate;
7737 manish.sha 16629
    }
16630
 
7788 manish.sha 16631
    public void setRunCompleteUpdate(boolean runCompleteUpdate) {
16632
      this.runCompleteUpdate = runCompleteUpdate;
16633
      setRunCompleteUpdateIsSet(true);
7737 manish.sha 16634
    }
16635
 
7788 manish.sha 16636
    public void unsetRunCompleteUpdate() {
16637
      __isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
16638
    }
16639
 
16640
    /** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
16641
    public boolean isSetRunCompleteUpdate() {
16642
      return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
16643
    }
16644
 
16645
    public void setRunCompleteUpdateIsSet(boolean value) {
16646
      __isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
16647
    }
16648
 
7737 manish.sha 16649
    public void setFieldValue(_Fields field, Object value) {
16650
      switch (field) {
7788 manish.sha 16651
      case LOGISTICS_LOCATION_INFO_LIST:
7737 manish.sha 16652
        if (value == null) {
7788 manish.sha 16653
          unsetLogisticsLocationInfoList();
7737 manish.sha 16654
        } else {
7788 manish.sha 16655
          setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
7737 manish.sha 16656
        }
16657
        break;
16658
 
7788 manish.sha 16659
      case RUN_COMPLETE_UPDATE:
7737 manish.sha 16660
        if (value == null) {
7788 manish.sha 16661
          unsetRunCompleteUpdate();
7737 manish.sha 16662
        } else {
7788 manish.sha 16663
          setRunCompleteUpdate((Boolean)value);
7737 manish.sha 16664
        }
16665
        break;
16666
 
16667
      }
16668
    }
16669
 
16670
    public Object getFieldValue(_Fields field) {
16671
      switch (field) {
7788 manish.sha 16672
      case LOGISTICS_LOCATION_INFO_LIST:
16673
        return getLogisticsLocationInfoList();
7737 manish.sha 16674
 
7788 manish.sha 16675
      case RUN_COMPLETE_UPDATE:
16676
        return Boolean.valueOf(isRunCompleteUpdate());
7737 manish.sha 16677
 
16678
      }
16679
      throw new IllegalStateException();
16680
    }
16681
 
16682
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16683
    public boolean isSet(_Fields field) {
16684
      if (field == null) {
16685
        throw new IllegalArgumentException();
16686
      }
16687
 
16688
      switch (field) {
7788 manish.sha 16689
      case LOGISTICS_LOCATION_INFO_LIST:
16690
        return isSetLogisticsLocationInfoList();
16691
      case RUN_COMPLETE_UPDATE:
16692
        return isSetRunCompleteUpdate();
7737 manish.sha 16693
      }
16694
      throw new IllegalStateException();
16695
    }
16696
 
16697
    @Override
16698
    public boolean equals(Object that) {
16699
      if (that == null)
16700
        return false;
7788 manish.sha 16701
      if (that instanceof runLogisticsLocationInfoUpdate_args)
16702
        return this.equals((runLogisticsLocationInfoUpdate_args)that);
7737 manish.sha 16703
      return false;
16704
    }
16705
 
7788 manish.sha 16706
    public boolean equals(runLogisticsLocationInfoUpdate_args that) {
7737 manish.sha 16707
      if (that == null)
16708
        return false;
16709
 
7788 manish.sha 16710
      boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
16711
      boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
16712
      if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
16713
        if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
7737 manish.sha 16714
          return false;
7788 manish.sha 16715
        if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
7737 manish.sha 16716
          return false;
16717
      }
16718
 
7788 manish.sha 16719
      boolean this_present_runCompleteUpdate = true;
16720
      boolean that_present_runCompleteUpdate = true;
16721
      if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
16722
        if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
7737 manish.sha 16723
          return false;
7788 manish.sha 16724
        if (this.runCompleteUpdate != that.runCompleteUpdate)
7737 manish.sha 16725
          return false;
16726
      }
16727
 
16728
      return true;
16729
    }
16730
 
16731
    @Override
16732
    public int hashCode() {
16733
      return 0;
16734
    }
16735
 
7788 manish.sha 16736
    public int compareTo(runLogisticsLocationInfoUpdate_args other) {
7737 manish.sha 16737
      if (!getClass().equals(other.getClass())) {
16738
        return getClass().getName().compareTo(other.getClass().getName());
16739
      }
16740
 
16741
      int lastComparison = 0;
7788 manish.sha 16742
      runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
7737 manish.sha 16743
 
7788 manish.sha 16744
      lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
7737 manish.sha 16745
      if (lastComparison != 0) {
16746
        return lastComparison;
16747
      }
7788 manish.sha 16748
      if (isSetLogisticsLocationInfoList()) {
16749
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
7737 manish.sha 16750
        if (lastComparison != 0) {
16751
          return lastComparison;
16752
        }
16753
      }
7788 manish.sha 16754
      lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
7737 manish.sha 16755
      if (lastComparison != 0) {
16756
        return lastComparison;
16757
      }
7788 manish.sha 16758
      if (isSetRunCompleteUpdate()) {
16759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
7737 manish.sha 16760
        if (lastComparison != 0) {
16761
          return lastComparison;
16762
        }
16763
      }
16764
      return 0;
16765
    }
16766
 
16767
    public _Fields fieldForId(int fieldId) {
16768
      return _Fields.findByThriftId(fieldId);
16769
    }
16770
 
16771
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16772
      org.apache.thrift.protocol.TField field;
16773
      iprot.readStructBegin();
16774
      while (true)
16775
      {
16776
        field = iprot.readFieldBegin();
16777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16778
          break;
16779
        }
16780
        switch (field.id) {
7788 manish.sha 16781
          case 1: // LOGISTICS_LOCATION_INFO_LIST
16782
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16783
              {
7808 anupam.sin 16784
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
16785
                this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
16786
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7788 manish.sha 16787
                {
7808 anupam.sin 16788
                  LogisticsLocationInfo _elem30; // required
16789
                  _elem30 = new LogisticsLocationInfo();
16790
                  _elem30.read(iprot);
16791
                  this.logisticsLocationInfoList.add(_elem30);
7788 manish.sha 16792
                }
16793
                iprot.readListEnd();
16794
              }
7737 manish.sha 16795
            } else { 
16796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16797
            }
16798
            break;
7788 manish.sha 16799
          case 2: // RUN_COMPLETE_UPDATE
16800
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16801
              this.runCompleteUpdate = iprot.readBool();
16802
              setRunCompleteUpdateIsSet(true);
7737 manish.sha 16803
            } else { 
16804
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16805
            }
16806
            break;
16807
          default:
16808
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16809
        }
16810
        iprot.readFieldEnd();
16811
      }
16812
      iprot.readStructEnd();
16813
      validate();
16814
    }
16815
 
16816
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16817
      validate();
16818
 
16819
      oprot.writeStructBegin(STRUCT_DESC);
7788 manish.sha 16820
      if (this.logisticsLocationInfoList != null) {
16821
        oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
16822
        {
16823
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
7808 anupam.sin 16824
          for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
7788 manish.sha 16825
          {
7808 anupam.sin 16826
            _iter31.write(oprot);
7788 manish.sha 16827
          }
16828
          oprot.writeListEnd();
16829
        }
7737 manish.sha 16830
        oprot.writeFieldEnd();
16831
      }
7788 manish.sha 16832
      oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
16833
      oprot.writeBool(this.runCompleteUpdate);
16834
      oprot.writeFieldEnd();
7737 manish.sha 16835
      oprot.writeFieldStop();
16836
      oprot.writeStructEnd();
16837
    }
16838
 
16839
    @Override
16840
    public String toString() {
7788 manish.sha 16841
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
7737 manish.sha 16842
      boolean first = true;
16843
 
7788 manish.sha 16844
      sb.append("logisticsLocationInfoList:");
16845
      if (this.logisticsLocationInfoList == null) {
7737 manish.sha 16846
        sb.append("null");
16847
      } else {
7788 manish.sha 16848
        sb.append(this.logisticsLocationInfoList);
7737 manish.sha 16849
      }
16850
      first = false;
7788 manish.sha 16851
      if (!first) sb.append(", ");
16852
      sb.append("runCompleteUpdate:");
16853
      sb.append(this.runCompleteUpdate);
7737 manish.sha 16854
      first = false;
16855
      sb.append(")");
16856
      return sb.toString();
16857
    }
16858
 
16859
    public void validate() throws org.apache.thrift.TException {
16860
      // check for required fields
16861
    }
16862
 
16863
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16864
      try {
16865
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16866
      } catch (org.apache.thrift.TException te) {
16867
        throw new java.io.IOException(te);
16868
      }
16869
    }
16870
 
16871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16872
      try {
7788 manish.sha 16873
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16874
        __isset_bit_vector = new BitSet(1);
7737 manish.sha 16875
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16876
      } catch (org.apache.thrift.TException te) {
16877
        throw new java.io.IOException(te);
16878
      }
16879
    }
16880
 
16881
  }
16882
 
7788 manish.sha 16883
  public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable   {
16884
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
7737 manish.sha 16885
 
16886
 
16887
 
16888
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16889
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16890
;
16891
 
16892
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16893
 
16894
      static {
16895
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16896
          byName.put(field.getFieldName(), field);
16897
        }
16898
      }
16899
 
16900
      /**
16901
       * Find the _Fields constant that matches fieldId, or null if its not found.
16902
       */
16903
      public static _Fields findByThriftId(int fieldId) {
16904
        switch(fieldId) {
16905
          default:
16906
            return null;
16907
        }
16908
      }
16909
 
16910
      /**
16911
       * Find the _Fields constant that matches fieldId, throwing an exception
16912
       * if it is not found.
16913
       */
16914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16915
        _Fields fields = findByThriftId(fieldId);
16916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16917
        return fields;
16918
      }
16919
 
16920
      /**
16921
       * Find the _Fields constant that matches name, or null if its not found.
16922
       */
16923
      public static _Fields findByName(String name) {
16924
        return byName.get(name);
16925
      }
16926
 
16927
      private final short _thriftId;
16928
      private final String _fieldName;
16929
 
16930
      _Fields(short thriftId, String fieldName) {
16931
        _thriftId = thriftId;
16932
        _fieldName = fieldName;
16933
      }
16934
 
16935
      public short getThriftFieldId() {
16936
        return _thriftId;
16937
      }
16938
 
16939
      public String getFieldName() {
16940
        return _fieldName;
16941
      }
16942
    }
16943
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16944
    static {
16945
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16946
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7788 manish.sha 16947
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
7737 manish.sha 16948
    }
16949
 
7788 manish.sha 16950
    public runLogisticsLocationInfoUpdate_result() {
7737 manish.sha 16951
    }
16952
 
16953
    /**
16954
     * Performs a deep copy on <i>other</i>.
16955
     */
7788 manish.sha 16956
    public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 16957
    }
16958
 
7788 manish.sha 16959
    public runLogisticsLocationInfoUpdate_result deepCopy() {
16960
      return new runLogisticsLocationInfoUpdate_result(this);
7737 manish.sha 16961
    }
16962
 
16963
    @Override
16964
    public void clear() {
16965
    }
16966
 
16967
    public void setFieldValue(_Fields field, Object value) {
16968
      switch (field) {
16969
      }
16970
    }
16971
 
16972
    public Object getFieldValue(_Fields field) {
16973
      switch (field) {
16974
      }
16975
      throw new IllegalStateException();
16976
    }
16977
 
16978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16979
    public boolean isSet(_Fields field) {
16980
      if (field == null) {
16981
        throw new IllegalArgumentException();
16982
      }
16983
 
16984
      switch (field) {
16985
      }
16986
      throw new IllegalStateException();
16987
    }
16988
 
16989
    @Override
16990
    public boolean equals(Object that) {
16991
      if (that == null)
16992
        return false;
7788 manish.sha 16993
      if (that instanceof runLogisticsLocationInfoUpdate_result)
16994
        return this.equals((runLogisticsLocationInfoUpdate_result)that);
7737 manish.sha 16995
      return false;
16996
    }
16997
 
7788 manish.sha 16998
    public boolean equals(runLogisticsLocationInfoUpdate_result that) {
7737 manish.sha 16999
      if (that == null)
17000
        return false;
17001
 
17002
      return true;
17003
    }
17004
 
17005
    @Override
17006
    public int hashCode() {
17007
      return 0;
17008
    }
17009
 
7788 manish.sha 17010
    public int compareTo(runLogisticsLocationInfoUpdate_result other) {
7737 manish.sha 17011
      if (!getClass().equals(other.getClass())) {
17012
        return getClass().getName().compareTo(other.getClass().getName());
17013
      }
17014
 
17015
      int lastComparison = 0;
7788 manish.sha 17016
      runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
7737 manish.sha 17017
 
17018
      return 0;
17019
    }
17020
 
17021
    public _Fields fieldForId(int fieldId) {
17022
      return _Fields.findByThriftId(fieldId);
17023
    }
17024
 
17025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17026
      org.apache.thrift.protocol.TField field;
17027
      iprot.readStructBegin();
17028
      while (true)
17029
      {
17030
        field = iprot.readFieldBegin();
17031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17032
          break;
17033
        }
17034
        switch (field.id) {
17035
          default:
17036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17037
        }
17038
        iprot.readFieldEnd();
17039
      }
17040
      iprot.readStructEnd();
17041
      validate();
17042
    }
17043
 
17044
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17045
      oprot.writeStructBegin(STRUCT_DESC);
17046
 
17047
      oprot.writeFieldStop();
17048
      oprot.writeStructEnd();
17049
    }
17050
 
17051
    @Override
17052
    public String toString() {
7788 manish.sha 17053
      StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
7737 manish.sha 17054
      boolean first = true;
17055
 
17056
      sb.append(")");
17057
      return sb.toString();
17058
    }
17059
 
17060
    public void validate() throws org.apache.thrift.TException {
17061
      // check for required fields
17062
    }
17063
 
17064
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17065
      try {
17066
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17067
      } catch (org.apache.thrift.TException te) {
17068
        throw new java.io.IOException(te);
17069
      }
17070
    }
17071
 
17072
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17073
      try {
17074
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17075
      } catch (org.apache.thrift.TException te) {
17076
        throw new java.io.IOException(te);
17077
      }
17078
    }
17079
 
17080
  }
17081
 
7888 rajveer 17082
  public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable   {
17083
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
17084
 
17085
    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);
17086
    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);
17087
 
17088
    private long startDate; // required
17089
    private long days; // required
17090
 
17091
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17092
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17093
      START_DATE((short)1, "startDate"),
17094
      DAYS((short)2, "days");
17095
 
17096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17097
 
17098
      static {
17099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17100
          byName.put(field.getFieldName(), field);
17101
        }
17102
      }
17103
 
17104
      /**
17105
       * Find the _Fields constant that matches fieldId, or null if its not found.
17106
       */
17107
      public static _Fields findByThriftId(int fieldId) {
17108
        switch(fieldId) {
17109
          case 1: // START_DATE
17110
            return START_DATE;
17111
          case 2: // DAYS
17112
            return DAYS;
17113
          default:
17114
            return null;
17115
        }
17116
      }
17117
 
17118
      /**
17119
       * Find the _Fields constant that matches fieldId, throwing an exception
17120
       * if it is not found.
17121
       */
17122
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17123
        _Fields fields = findByThriftId(fieldId);
17124
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17125
        return fields;
17126
      }
17127
 
17128
      /**
17129
       * Find the _Fields constant that matches name, or null if its not found.
17130
       */
17131
      public static _Fields findByName(String name) {
17132
        return byName.get(name);
17133
      }
17134
 
17135
      private final short _thriftId;
17136
      private final String _fieldName;
17137
 
17138
      _Fields(short thriftId, String fieldName) {
17139
        _thriftId = thriftId;
17140
        _fieldName = fieldName;
17141
      }
17142
 
17143
      public short getThriftFieldId() {
17144
        return _thriftId;
17145
      }
17146
 
17147
      public String getFieldName() {
17148
        return _fieldName;
17149
      }
17150
    }
17151
 
17152
    // isset id assignments
17153
    private static final int __STARTDATE_ISSET_ID = 0;
17154
    private static final int __DAYS_ISSET_ID = 1;
17155
    private BitSet __isset_bit_vector = new BitSet(2);
17156
 
17157
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17158
    static {
17159
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17160
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17162
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17163
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
17166
    }
17167
 
17168
    public adjustDeliveryDays_args() {
17169
    }
17170
 
17171
    public adjustDeliveryDays_args(
17172
      long startDate,
17173
      long days)
17174
    {
17175
      this();
17176
      this.startDate = startDate;
17177
      setStartDateIsSet(true);
17178
      this.days = days;
17179
      setDaysIsSet(true);
17180
    }
17181
 
17182
    /**
17183
     * Performs a deep copy on <i>other</i>.
17184
     */
17185
    public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
17186
      __isset_bit_vector.clear();
17187
      __isset_bit_vector.or(other.__isset_bit_vector);
17188
      this.startDate = other.startDate;
17189
      this.days = other.days;
17190
    }
17191
 
17192
    public adjustDeliveryDays_args deepCopy() {
17193
      return new adjustDeliveryDays_args(this);
17194
    }
17195
 
17196
    @Override
17197
    public void clear() {
17198
      setStartDateIsSet(false);
17199
      this.startDate = 0;
17200
      setDaysIsSet(false);
17201
      this.days = 0;
17202
    }
17203
 
17204
    public long getStartDate() {
17205
      return this.startDate;
17206
    }
17207
 
17208
    public void setStartDate(long startDate) {
17209
      this.startDate = startDate;
17210
      setStartDateIsSet(true);
17211
    }
17212
 
17213
    public void unsetStartDate() {
17214
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
17215
    }
17216
 
17217
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
17218
    public boolean isSetStartDate() {
17219
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
17220
    }
17221
 
17222
    public void setStartDateIsSet(boolean value) {
17223
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
17224
    }
17225
 
17226
    public long getDays() {
17227
      return this.days;
17228
    }
17229
 
17230
    public void setDays(long days) {
17231
      this.days = days;
17232
      setDaysIsSet(true);
17233
    }
17234
 
17235
    public void unsetDays() {
17236
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
17237
    }
17238
 
17239
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
17240
    public boolean isSetDays() {
17241
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
17242
    }
17243
 
17244
    public void setDaysIsSet(boolean value) {
17245
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
17246
    }
17247
 
17248
    public void setFieldValue(_Fields field, Object value) {
17249
      switch (field) {
17250
      case START_DATE:
17251
        if (value == null) {
17252
          unsetStartDate();
17253
        } else {
17254
          setStartDate((Long)value);
17255
        }
17256
        break;
17257
 
17258
      case DAYS:
17259
        if (value == null) {
17260
          unsetDays();
17261
        } else {
17262
          setDays((Long)value);
17263
        }
17264
        break;
17265
 
17266
      }
17267
    }
17268
 
17269
    public Object getFieldValue(_Fields field) {
17270
      switch (field) {
17271
      case START_DATE:
17272
        return Long.valueOf(getStartDate());
17273
 
17274
      case DAYS:
17275
        return Long.valueOf(getDays());
17276
 
17277
      }
17278
      throw new IllegalStateException();
17279
    }
17280
 
17281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17282
    public boolean isSet(_Fields field) {
17283
      if (field == null) {
17284
        throw new IllegalArgumentException();
17285
      }
17286
 
17287
      switch (field) {
17288
      case START_DATE:
17289
        return isSetStartDate();
17290
      case DAYS:
17291
        return isSetDays();
17292
      }
17293
      throw new IllegalStateException();
17294
    }
17295
 
17296
    @Override
17297
    public boolean equals(Object that) {
17298
      if (that == null)
17299
        return false;
17300
      if (that instanceof adjustDeliveryDays_args)
17301
        return this.equals((adjustDeliveryDays_args)that);
17302
      return false;
17303
    }
17304
 
17305
    public boolean equals(adjustDeliveryDays_args that) {
17306
      if (that == null)
17307
        return false;
17308
 
17309
      boolean this_present_startDate = true;
17310
      boolean that_present_startDate = true;
17311
      if (this_present_startDate || that_present_startDate) {
17312
        if (!(this_present_startDate && that_present_startDate))
17313
          return false;
17314
        if (this.startDate != that.startDate)
17315
          return false;
17316
      }
17317
 
17318
      boolean this_present_days = true;
17319
      boolean that_present_days = true;
17320
      if (this_present_days || that_present_days) {
17321
        if (!(this_present_days && that_present_days))
17322
          return false;
17323
        if (this.days != that.days)
17324
          return false;
17325
      }
17326
 
17327
      return true;
17328
    }
17329
 
17330
    @Override
17331
    public int hashCode() {
17332
      return 0;
17333
    }
17334
 
17335
    public int compareTo(adjustDeliveryDays_args other) {
17336
      if (!getClass().equals(other.getClass())) {
17337
        return getClass().getName().compareTo(other.getClass().getName());
17338
      }
17339
 
17340
      int lastComparison = 0;
17341
      adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
17342
 
17343
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
17344
      if (lastComparison != 0) {
17345
        return lastComparison;
17346
      }
17347
      if (isSetStartDate()) {
17348
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
17349
        if (lastComparison != 0) {
17350
          return lastComparison;
17351
        }
17352
      }
17353
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
17354
      if (lastComparison != 0) {
17355
        return lastComparison;
17356
      }
17357
      if (isSetDays()) {
17358
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
17359
        if (lastComparison != 0) {
17360
          return lastComparison;
17361
        }
17362
      }
17363
      return 0;
17364
    }
17365
 
17366
    public _Fields fieldForId(int fieldId) {
17367
      return _Fields.findByThriftId(fieldId);
17368
    }
17369
 
17370
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17371
      org.apache.thrift.protocol.TField field;
17372
      iprot.readStructBegin();
17373
      while (true)
17374
      {
17375
        field = iprot.readFieldBegin();
17376
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17377
          break;
17378
        }
17379
        switch (field.id) {
17380
          case 1: // START_DATE
17381
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17382
              this.startDate = iprot.readI64();
17383
              setStartDateIsSet(true);
17384
            } else { 
17385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17386
            }
17387
            break;
17388
          case 2: // DAYS
17389
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17390
              this.days = iprot.readI64();
17391
              setDaysIsSet(true);
17392
            } else { 
17393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17394
            }
17395
            break;
17396
          default:
17397
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17398
        }
17399
        iprot.readFieldEnd();
17400
      }
17401
      iprot.readStructEnd();
17402
      validate();
17403
    }
17404
 
17405
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17406
      validate();
17407
 
17408
      oprot.writeStructBegin(STRUCT_DESC);
17409
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
17410
      oprot.writeI64(this.startDate);
17411
      oprot.writeFieldEnd();
17412
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
17413
      oprot.writeI64(this.days);
17414
      oprot.writeFieldEnd();
17415
      oprot.writeFieldStop();
17416
      oprot.writeStructEnd();
17417
    }
17418
 
17419
    @Override
17420
    public String toString() {
17421
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
17422
      boolean first = true;
17423
 
17424
      sb.append("startDate:");
17425
      sb.append(this.startDate);
17426
      first = false;
17427
      if (!first) sb.append(", ");
17428
      sb.append("days:");
17429
      sb.append(this.days);
17430
      first = false;
17431
      sb.append(")");
17432
      return sb.toString();
17433
    }
17434
 
17435
    public void validate() throws org.apache.thrift.TException {
17436
      // check for required fields
17437
    }
17438
 
17439
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17440
      try {
17441
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17442
      } catch (org.apache.thrift.TException te) {
17443
        throw new java.io.IOException(te);
17444
      }
17445
    }
17446
 
17447
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17448
      try {
17449
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17450
        __isset_bit_vector = new BitSet(1);
17451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17452
      } catch (org.apache.thrift.TException te) {
17453
        throw new java.io.IOException(te);
17454
      }
17455
    }
17456
 
17457
  }
17458
 
17459
  public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable   {
17460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
17461
 
17462
    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);
17463
 
17464
    private long success; // required
17465
 
17466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17468
      SUCCESS((short)0, "success");
17469
 
17470
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17471
 
17472
      static {
17473
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17474
          byName.put(field.getFieldName(), field);
17475
        }
17476
      }
17477
 
17478
      /**
17479
       * Find the _Fields constant that matches fieldId, or null if its not found.
17480
       */
17481
      public static _Fields findByThriftId(int fieldId) {
17482
        switch(fieldId) {
17483
          case 0: // SUCCESS
17484
            return SUCCESS;
17485
          default:
17486
            return null;
17487
        }
17488
      }
17489
 
17490
      /**
17491
       * Find the _Fields constant that matches fieldId, throwing an exception
17492
       * if it is not found.
17493
       */
17494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17495
        _Fields fields = findByThriftId(fieldId);
17496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17497
        return fields;
17498
      }
17499
 
17500
      /**
17501
       * Find the _Fields constant that matches name, or null if its not found.
17502
       */
17503
      public static _Fields findByName(String name) {
17504
        return byName.get(name);
17505
      }
17506
 
17507
      private final short _thriftId;
17508
      private final String _fieldName;
17509
 
17510
      _Fields(short thriftId, String fieldName) {
17511
        _thriftId = thriftId;
17512
        _fieldName = fieldName;
17513
      }
17514
 
17515
      public short getThriftFieldId() {
17516
        return _thriftId;
17517
      }
17518
 
17519
      public String getFieldName() {
17520
        return _fieldName;
17521
      }
17522
    }
17523
 
17524
    // isset id assignments
17525
    private static final int __SUCCESS_ISSET_ID = 0;
17526
    private BitSet __isset_bit_vector = new BitSet(1);
17527
 
17528
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17529
    static {
17530
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17531
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
17535
    }
17536
 
17537
    public adjustDeliveryDays_result() {
17538
    }
17539
 
17540
    public adjustDeliveryDays_result(
17541
      long success)
17542
    {
17543
      this();
17544
      this.success = success;
17545
      setSuccessIsSet(true);
17546
    }
17547
 
17548
    /**
17549
     * Performs a deep copy on <i>other</i>.
17550
     */
17551
    public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
17552
      __isset_bit_vector.clear();
17553
      __isset_bit_vector.or(other.__isset_bit_vector);
17554
      this.success = other.success;
17555
    }
17556
 
17557
    public adjustDeliveryDays_result deepCopy() {
17558
      return new adjustDeliveryDays_result(this);
17559
    }
17560
 
17561
    @Override
17562
    public void clear() {
17563
      setSuccessIsSet(false);
17564
      this.success = 0;
17565
    }
17566
 
17567
    public long getSuccess() {
17568
      return this.success;
17569
    }
17570
 
17571
    public void setSuccess(long success) {
17572
      this.success = success;
17573
      setSuccessIsSet(true);
17574
    }
17575
 
17576
    public void unsetSuccess() {
17577
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17578
    }
17579
 
17580
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17581
    public boolean isSetSuccess() {
17582
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17583
    }
17584
 
17585
    public void setSuccessIsSet(boolean value) {
17586
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17587
    }
17588
 
17589
    public void setFieldValue(_Fields field, Object value) {
17590
      switch (field) {
17591
      case SUCCESS:
17592
        if (value == null) {
17593
          unsetSuccess();
17594
        } else {
17595
          setSuccess((Long)value);
17596
        }
17597
        break;
17598
 
17599
      }
17600
    }
17601
 
17602
    public Object getFieldValue(_Fields field) {
17603
      switch (field) {
17604
      case SUCCESS:
17605
        return Long.valueOf(getSuccess());
17606
 
17607
      }
17608
      throw new IllegalStateException();
17609
    }
17610
 
17611
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17612
    public boolean isSet(_Fields field) {
17613
      if (field == null) {
17614
        throw new IllegalArgumentException();
17615
      }
17616
 
17617
      switch (field) {
17618
      case SUCCESS:
17619
        return isSetSuccess();
17620
      }
17621
      throw new IllegalStateException();
17622
    }
17623
 
17624
    @Override
17625
    public boolean equals(Object that) {
17626
      if (that == null)
17627
        return false;
17628
      if (that instanceof adjustDeliveryDays_result)
17629
        return this.equals((adjustDeliveryDays_result)that);
17630
      return false;
17631
    }
17632
 
17633
    public boolean equals(adjustDeliveryDays_result that) {
17634
      if (that == null)
17635
        return false;
17636
 
17637
      boolean this_present_success = true;
17638
      boolean that_present_success = true;
17639
      if (this_present_success || that_present_success) {
17640
        if (!(this_present_success && that_present_success))
17641
          return false;
17642
        if (this.success != that.success)
17643
          return false;
17644
      }
17645
 
17646
      return true;
17647
    }
17648
 
17649
    @Override
17650
    public int hashCode() {
17651
      return 0;
17652
    }
17653
 
17654
    public int compareTo(adjustDeliveryDays_result other) {
17655
      if (!getClass().equals(other.getClass())) {
17656
        return getClass().getName().compareTo(other.getClass().getName());
17657
      }
17658
 
17659
      int lastComparison = 0;
17660
      adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
17661
 
17662
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17663
      if (lastComparison != 0) {
17664
        return lastComparison;
17665
      }
17666
      if (isSetSuccess()) {
17667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17668
        if (lastComparison != 0) {
17669
          return lastComparison;
17670
        }
17671
      }
17672
      return 0;
17673
    }
17674
 
17675
    public _Fields fieldForId(int fieldId) {
17676
      return _Fields.findByThriftId(fieldId);
17677
    }
17678
 
17679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17680
      org.apache.thrift.protocol.TField field;
17681
      iprot.readStructBegin();
17682
      while (true)
17683
      {
17684
        field = iprot.readFieldBegin();
17685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17686
          break;
17687
        }
17688
        switch (field.id) {
17689
          case 0: // SUCCESS
17690
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17691
              this.success = iprot.readI64();
17692
              setSuccessIsSet(true);
17693
            } else { 
17694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17695
            }
17696
            break;
17697
          default:
17698
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17699
        }
17700
        iprot.readFieldEnd();
17701
      }
17702
      iprot.readStructEnd();
17703
      validate();
17704
    }
17705
 
17706
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17707
      oprot.writeStructBegin(STRUCT_DESC);
17708
 
17709
      if (this.isSetSuccess()) {
17710
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17711
        oprot.writeI64(this.success);
17712
        oprot.writeFieldEnd();
17713
      }
17714
      oprot.writeFieldStop();
17715
      oprot.writeStructEnd();
17716
    }
17717
 
17718
    @Override
17719
    public String toString() {
17720
      StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
17721
      boolean first = true;
17722
 
17723
      sb.append("success:");
17724
      sb.append(this.success);
17725
      first = false;
17726
      sb.append(")");
17727
      return sb.toString();
17728
    }
17729
 
17730
    public void validate() throws org.apache.thrift.TException {
17731
      // check for required fields
17732
    }
17733
 
17734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17735
      try {
17736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17737
      } catch (org.apache.thrift.TException te) {
17738
        throw new java.io.IOException(te);
17739
      }
17740
    }
17741
 
17742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17743
      try {
17744
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17745
      } catch (org.apache.thrift.TException te) {
17746
        throw new java.io.IOException(te);
17747
      }
17748
    }
17749
 
17750
  }
17751
 
12895 manish.sha 17752
  public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable   {
17753
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
17754
 
17755
    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);
17756
    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);
17757
 
17758
    private String pincode; // required
17759
    private long whLocation; // required
17760
 
17761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17763
      PINCODE((short)1, "pincode"),
17764
      WH_LOCATION((short)2, "whLocation");
17765
 
17766
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17767
 
17768
      static {
17769
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17770
          byName.put(field.getFieldName(), field);
17771
        }
17772
      }
17773
 
17774
      /**
17775
       * Find the _Fields constant that matches fieldId, or null if its not found.
17776
       */
17777
      public static _Fields findByThriftId(int fieldId) {
17778
        switch(fieldId) {
17779
          case 1: // PINCODE
17780
            return PINCODE;
17781
          case 2: // WH_LOCATION
17782
            return WH_LOCATION;
17783
          default:
17784
            return null;
17785
        }
17786
      }
17787
 
17788
      /**
17789
       * Find the _Fields constant that matches fieldId, throwing an exception
17790
       * if it is not found.
17791
       */
17792
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17793
        _Fields fields = findByThriftId(fieldId);
17794
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17795
        return fields;
17796
      }
17797
 
17798
      /**
17799
       * Find the _Fields constant that matches name, or null if its not found.
17800
       */
17801
      public static _Fields findByName(String name) {
17802
        return byName.get(name);
17803
      }
17804
 
17805
      private final short _thriftId;
17806
      private final String _fieldName;
17807
 
17808
      _Fields(short thriftId, String fieldName) {
17809
        _thriftId = thriftId;
17810
        _fieldName = fieldName;
17811
      }
17812
 
17813
      public short getThriftFieldId() {
17814
        return _thriftId;
17815
      }
17816
 
17817
      public String getFieldName() {
17818
        return _fieldName;
17819
      }
17820
    }
17821
 
17822
    // isset id assignments
17823
    private static final int __WHLOCATION_ISSET_ID = 0;
17824
    private BitSet __isset_bit_vector = new BitSet(1);
17825
 
17826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17827
    static {
17828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17829
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17830
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17831
      tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
17835
    }
17836
 
17837
    public getFirstDeliveryEstimateForWhLocation_args() {
17838
    }
17839
 
17840
    public getFirstDeliveryEstimateForWhLocation_args(
17841
      String pincode,
17842
      long whLocation)
17843
    {
17844
      this();
17845
      this.pincode = pincode;
17846
      this.whLocation = whLocation;
17847
      setWhLocationIsSet(true);
17848
    }
17849
 
17850
    /**
17851
     * Performs a deep copy on <i>other</i>.
17852
     */
17853
    public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
17854
      __isset_bit_vector.clear();
17855
      __isset_bit_vector.or(other.__isset_bit_vector);
17856
      if (other.isSetPincode()) {
17857
        this.pincode = other.pincode;
17858
      }
17859
      this.whLocation = other.whLocation;
17860
    }
17861
 
17862
    public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
17863
      return new getFirstDeliveryEstimateForWhLocation_args(this);
17864
    }
17865
 
17866
    @Override
17867
    public void clear() {
17868
      this.pincode = null;
17869
      setWhLocationIsSet(false);
17870
      this.whLocation = 0;
17871
    }
17872
 
17873
    public String getPincode() {
17874
      return this.pincode;
17875
    }
17876
 
17877
    public void setPincode(String pincode) {
17878
      this.pincode = pincode;
17879
    }
17880
 
17881
    public void unsetPincode() {
17882
      this.pincode = null;
17883
    }
17884
 
17885
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
17886
    public boolean isSetPincode() {
17887
      return this.pincode != null;
17888
    }
17889
 
17890
    public void setPincodeIsSet(boolean value) {
17891
      if (!value) {
17892
        this.pincode = null;
17893
      }
17894
    }
17895
 
17896
    public long getWhLocation() {
17897
      return this.whLocation;
17898
    }
17899
 
17900
    public void setWhLocation(long whLocation) {
17901
      this.whLocation = whLocation;
17902
      setWhLocationIsSet(true);
17903
    }
17904
 
17905
    public void unsetWhLocation() {
17906
      __isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
17907
    }
17908
 
17909
    /** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
17910
    public boolean isSetWhLocation() {
17911
      return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
17912
    }
17913
 
17914
    public void setWhLocationIsSet(boolean value) {
17915
      __isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
17916
    }
17917
 
17918
    public void setFieldValue(_Fields field, Object value) {
17919
      switch (field) {
17920
      case PINCODE:
17921
        if (value == null) {
17922
          unsetPincode();
17923
        } else {
17924
          setPincode((String)value);
17925
        }
17926
        break;
17927
 
17928
      case WH_LOCATION:
17929
        if (value == null) {
17930
          unsetWhLocation();
17931
        } else {
17932
          setWhLocation((Long)value);
17933
        }
17934
        break;
17935
 
17936
      }
17937
    }
17938
 
17939
    public Object getFieldValue(_Fields field) {
17940
      switch (field) {
17941
      case PINCODE:
17942
        return getPincode();
17943
 
17944
      case WH_LOCATION:
17945
        return Long.valueOf(getWhLocation());
17946
 
17947
      }
17948
      throw new IllegalStateException();
17949
    }
17950
 
17951
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17952
    public boolean isSet(_Fields field) {
17953
      if (field == null) {
17954
        throw new IllegalArgumentException();
17955
      }
17956
 
17957
      switch (field) {
17958
      case PINCODE:
17959
        return isSetPincode();
17960
      case WH_LOCATION:
17961
        return isSetWhLocation();
17962
      }
17963
      throw new IllegalStateException();
17964
    }
17965
 
17966
    @Override
17967
    public boolean equals(Object that) {
17968
      if (that == null)
17969
        return false;
17970
      if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
17971
        return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
17972
      return false;
17973
    }
17974
 
17975
    public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
17976
      if (that == null)
17977
        return false;
17978
 
17979
      boolean this_present_pincode = true && this.isSetPincode();
17980
      boolean that_present_pincode = true && that.isSetPincode();
17981
      if (this_present_pincode || that_present_pincode) {
17982
        if (!(this_present_pincode && that_present_pincode))
17983
          return false;
17984
        if (!this.pincode.equals(that.pincode))
17985
          return false;
17986
      }
17987
 
17988
      boolean this_present_whLocation = true;
17989
      boolean that_present_whLocation = true;
17990
      if (this_present_whLocation || that_present_whLocation) {
17991
        if (!(this_present_whLocation && that_present_whLocation))
17992
          return false;
17993
        if (this.whLocation != that.whLocation)
17994
          return false;
17995
      }
17996
 
17997
      return true;
17998
    }
17999
 
18000
    @Override
18001
    public int hashCode() {
18002
      return 0;
18003
    }
18004
 
18005
    public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
18006
      if (!getClass().equals(other.getClass())) {
18007
        return getClass().getName().compareTo(other.getClass().getName());
18008
      }
18009
 
18010
      int lastComparison = 0;
18011
      getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
18012
 
18013
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
18014
      if (lastComparison != 0) {
18015
        return lastComparison;
18016
      }
18017
      if (isSetPincode()) {
18018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
18019
        if (lastComparison != 0) {
18020
          return lastComparison;
18021
        }
18022
      }
18023
      lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
18024
      if (lastComparison != 0) {
18025
        return lastComparison;
18026
      }
18027
      if (isSetWhLocation()) {
18028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
18029
        if (lastComparison != 0) {
18030
          return lastComparison;
18031
        }
18032
      }
18033
      return 0;
18034
    }
18035
 
18036
    public _Fields fieldForId(int fieldId) {
18037
      return _Fields.findByThriftId(fieldId);
18038
    }
18039
 
18040
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18041
      org.apache.thrift.protocol.TField field;
18042
      iprot.readStructBegin();
18043
      while (true)
18044
      {
18045
        field = iprot.readFieldBegin();
18046
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18047
          break;
18048
        }
18049
        switch (field.id) {
18050
          case 1: // PINCODE
18051
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18052
              this.pincode = iprot.readString();
18053
            } else { 
18054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18055
            }
18056
            break;
18057
          case 2: // WH_LOCATION
18058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18059
              this.whLocation = iprot.readI64();
18060
              setWhLocationIsSet(true);
18061
            } else { 
18062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18063
            }
18064
            break;
18065
          default:
18066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18067
        }
18068
        iprot.readFieldEnd();
18069
      }
18070
      iprot.readStructEnd();
18071
      validate();
18072
    }
18073
 
18074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18075
      validate();
18076
 
18077
      oprot.writeStructBegin(STRUCT_DESC);
18078
      if (this.pincode != null) {
18079
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
18080
        oprot.writeString(this.pincode);
18081
        oprot.writeFieldEnd();
18082
      }
18083
      oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
18084
      oprot.writeI64(this.whLocation);
18085
      oprot.writeFieldEnd();
18086
      oprot.writeFieldStop();
18087
      oprot.writeStructEnd();
18088
    }
18089
 
18090
    @Override
18091
    public String toString() {
18092
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
18093
      boolean first = true;
18094
 
18095
      sb.append("pincode:");
18096
      if (this.pincode == null) {
18097
        sb.append("null");
18098
      } else {
18099
        sb.append(this.pincode);
18100
      }
18101
      first = false;
18102
      if (!first) sb.append(", ");
18103
      sb.append("whLocation:");
18104
      sb.append(this.whLocation);
18105
      first = false;
18106
      sb.append(")");
18107
      return sb.toString();
18108
    }
18109
 
18110
    public void validate() throws org.apache.thrift.TException {
18111
      // check for required fields
18112
    }
18113
 
18114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18115
      try {
18116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18117
      } catch (org.apache.thrift.TException te) {
18118
        throw new java.io.IOException(te);
18119
      }
18120
    }
18121
 
18122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18123
      try {
18124
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18125
        __isset_bit_vector = new BitSet(1);
18126
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18127
      } catch (org.apache.thrift.TException te) {
18128
        throw new java.io.IOException(te);
18129
      }
18130
    }
18131
 
18132
  }
18133
 
18134
  public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable   {
18135
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
18136
 
18137
    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);
18138
 
18139
    private long success; // required
18140
 
18141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18143
      SUCCESS((short)0, "success");
18144
 
18145
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18146
 
18147
      static {
18148
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18149
          byName.put(field.getFieldName(), field);
18150
        }
18151
      }
18152
 
18153
      /**
18154
       * Find the _Fields constant that matches fieldId, or null if its not found.
18155
       */
18156
      public static _Fields findByThriftId(int fieldId) {
18157
        switch(fieldId) {
18158
          case 0: // SUCCESS
18159
            return SUCCESS;
18160
          default:
18161
            return null;
18162
        }
18163
      }
18164
 
18165
      /**
18166
       * Find the _Fields constant that matches fieldId, throwing an exception
18167
       * if it is not found.
18168
       */
18169
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18170
        _Fields fields = findByThriftId(fieldId);
18171
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18172
        return fields;
18173
      }
18174
 
18175
      /**
18176
       * Find the _Fields constant that matches name, or null if its not found.
18177
       */
18178
      public static _Fields findByName(String name) {
18179
        return byName.get(name);
18180
      }
18181
 
18182
      private final short _thriftId;
18183
      private final String _fieldName;
18184
 
18185
      _Fields(short thriftId, String fieldName) {
18186
        _thriftId = thriftId;
18187
        _fieldName = fieldName;
18188
      }
18189
 
18190
      public short getThriftFieldId() {
18191
        return _thriftId;
18192
      }
18193
 
18194
      public String getFieldName() {
18195
        return _fieldName;
18196
      }
18197
    }
18198
 
18199
    // isset id assignments
18200
    private static final int __SUCCESS_ISSET_ID = 0;
18201
    private BitSet __isset_bit_vector = new BitSet(1);
18202
 
18203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18204
    static {
18205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18206
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18207
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18208
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18209
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
18210
    }
18211
 
18212
    public getFirstDeliveryEstimateForWhLocation_result() {
18213
    }
18214
 
18215
    public getFirstDeliveryEstimateForWhLocation_result(
18216
      long success)
18217
    {
18218
      this();
18219
      this.success = success;
18220
      setSuccessIsSet(true);
18221
    }
18222
 
18223
    /**
18224
     * Performs a deep copy on <i>other</i>.
18225
     */
18226
    public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
18227
      __isset_bit_vector.clear();
18228
      __isset_bit_vector.or(other.__isset_bit_vector);
18229
      this.success = other.success;
18230
    }
18231
 
18232
    public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
18233
      return new getFirstDeliveryEstimateForWhLocation_result(this);
18234
    }
18235
 
18236
    @Override
18237
    public void clear() {
18238
      setSuccessIsSet(false);
18239
      this.success = 0;
18240
    }
18241
 
18242
    public long getSuccess() {
18243
      return this.success;
18244
    }
18245
 
18246
    public void setSuccess(long success) {
18247
      this.success = success;
18248
      setSuccessIsSet(true);
18249
    }
18250
 
18251
    public void unsetSuccess() {
18252
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18253
    }
18254
 
18255
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18256
    public boolean isSetSuccess() {
18257
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18258
    }
18259
 
18260
    public void setSuccessIsSet(boolean value) {
18261
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18262
    }
18263
 
18264
    public void setFieldValue(_Fields field, Object value) {
18265
      switch (field) {
18266
      case SUCCESS:
18267
        if (value == null) {
18268
          unsetSuccess();
18269
        } else {
18270
          setSuccess((Long)value);
18271
        }
18272
        break;
18273
 
18274
      }
18275
    }
18276
 
18277
    public Object getFieldValue(_Fields field) {
18278
      switch (field) {
18279
      case SUCCESS:
18280
        return Long.valueOf(getSuccess());
18281
 
18282
      }
18283
      throw new IllegalStateException();
18284
    }
18285
 
18286
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18287
    public boolean isSet(_Fields field) {
18288
      if (field == null) {
18289
        throw new IllegalArgumentException();
18290
      }
18291
 
18292
      switch (field) {
18293
      case SUCCESS:
18294
        return isSetSuccess();
18295
      }
18296
      throw new IllegalStateException();
18297
    }
18298
 
18299
    @Override
18300
    public boolean equals(Object that) {
18301
      if (that == null)
18302
        return false;
18303
      if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
18304
        return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
18305
      return false;
18306
    }
18307
 
18308
    public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
18309
      if (that == null)
18310
        return false;
18311
 
18312
      boolean this_present_success = true;
18313
      boolean that_present_success = true;
18314
      if (this_present_success || that_present_success) {
18315
        if (!(this_present_success && that_present_success))
18316
          return false;
18317
        if (this.success != that.success)
18318
          return false;
18319
      }
18320
 
18321
      return true;
18322
    }
18323
 
18324
    @Override
18325
    public int hashCode() {
18326
      return 0;
18327
    }
18328
 
18329
    public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
18330
      if (!getClass().equals(other.getClass())) {
18331
        return getClass().getName().compareTo(other.getClass().getName());
18332
      }
18333
 
18334
      int lastComparison = 0;
18335
      getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
18336
 
18337
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18338
      if (lastComparison != 0) {
18339
        return lastComparison;
18340
      }
18341
      if (isSetSuccess()) {
18342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18343
        if (lastComparison != 0) {
18344
          return lastComparison;
18345
        }
18346
      }
18347
      return 0;
18348
    }
18349
 
18350
    public _Fields fieldForId(int fieldId) {
18351
      return _Fields.findByThriftId(fieldId);
18352
    }
18353
 
18354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18355
      org.apache.thrift.protocol.TField field;
18356
      iprot.readStructBegin();
18357
      while (true)
18358
      {
18359
        field = iprot.readFieldBegin();
18360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18361
          break;
18362
        }
18363
        switch (field.id) {
18364
          case 0: // SUCCESS
18365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18366
              this.success = iprot.readI64();
18367
              setSuccessIsSet(true);
18368
            } else { 
18369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18370
            }
18371
            break;
18372
          default:
18373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18374
        }
18375
        iprot.readFieldEnd();
18376
      }
18377
      iprot.readStructEnd();
18378
      validate();
18379
    }
18380
 
18381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18382
      oprot.writeStructBegin(STRUCT_DESC);
18383
 
18384
      if (this.isSetSuccess()) {
18385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18386
        oprot.writeI64(this.success);
18387
        oprot.writeFieldEnd();
18388
      }
18389
      oprot.writeFieldStop();
18390
      oprot.writeStructEnd();
18391
    }
18392
 
18393
    @Override
18394
    public String toString() {
18395
      StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
18396
      boolean first = true;
18397
 
18398
      sb.append("success:");
18399
      sb.append(this.success);
18400
      first = false;
18401
      sb.append(")");
18402
      return sb.toString();
18403
    }
18404
 
18405
    public void validate() throws org.apache.thrift.TException {
18406
      // check for required fields
18407
    }
18408
 
18409
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18410
      try {
18411
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18412
      } catch (org.apache.thrift.TException te) {
18413
        throw new java.io.IOException(te);
18414
      }
18415
    }
18416
 
18417
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18418
      try {
18419
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18420
      } catch (org.apache.thrift.TException te) {
18421
        throw new java.io.IOException(te);
18422
      }
18423
    }
18424
 
18425
  }
18426
 
13146 manish.sha 18427
  public static class getNewEmptyAwb_args implements org.apache.thrift.TBase<getNewEmptyAwb_args, getNewEmptyAwb_args._Fields>, java.io.Serializable, Cloneable   {
18428
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_args");
18429
 
18430
    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);
18431
    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);
18432
    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);
18433
 
18434
    private long providerId; // required
18435
    private DeliveryType type; // required
18436
    private long orderQuantity; // required
18437
 
18438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18440
      PROVIDER_ID((short)1, "providerId"),
18441
      /**
18442
       * 
18443
       * @see DeliveryType
18444
       */
18445
      TYPE((short)2, "type"),
18446
      ORDER_QUANTITY((short)3, "orderQuantity");
18447
 
18448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18449
 
18450
      static {
18451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18452
          byName.put(field.getFieldName(), field);
18453
        }
18454
      }
18455
 
18456
      /**
18457
       * Find the _Fields constant that matches fieldId, or null if its not found.
18458
       */
18459
      public static _Fields findByThriftId(int fieldId) {
18460
        switch(fieldId) {
18461
          case 1: // PROVIDER_ID
18462
            return PROVIDER_ID;
18463
          case 2: // TYPE
18464
            return TYPE;
18465
          case 3: // ORDER_QUANTITY
18466
            return ORDER_QUANTITY;
18467
          default:
18468
            return null;
18469
        }
18470
      }
18471
 
18472
      /**
18473
       * Find the _Fields constant that matches fieldId, throwing an exception
18474
       * if it is not found.
18475
       */
18476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18477
        _Fields fields = findByThriftId(fieldId);
18478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18479
        return fields;
18480
      }
18481
 
18482
      /**
18483
       * Find the _Fields constant that matches name, or null if its not found.
18484
       */
18485
      public static _Fields findByName(String name) {
18486
        return byName.get(name);
18487
      }
18488
 
18489
      private final short _thriftId;
18490
      private final String _fieldName;
18491
 
18492
      _Fields(short thriftId, String fieldName) {
18493
        _thriftId = thriftId;
18494
        _fieldName = fieldName;
18495
      }
18496
 
18497
      public short getThriftFieldId() {
18498
        return _thriftId;
18499
      }
18500
 
18501
      public String getFieldName() {
18502
        return _fieldName;
18503
      }
18504
    }
18505
 
18506
    // isset id assignments
18507
    private static final int __PROVIDERID_ISSET_ID = 0;
18508
    private static final int __ORDERQUANTITY_ISSET_ID = 1;
18509
    private BitSet __isset_bit_vector = new BitSet(2);
18510
 
18511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18512
    static {
18513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18514
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18516
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18517
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
18518
      tmpMap.put(_Fields.ORDER_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("orderQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18519
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18520
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18521
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_args.class, metaDataMap);
18522
    }
18523
 
18524
    public getNewEmptyAwb_args() {
18525
    }
18526
 
18527
    public getNewEmptyAwb_args(
18528
      long providerId,
18529
      DeliveryType type,
18530
      long orderQuantity)
18531
    {
18532
      this();
18533
      this.providerId = providerId;
18534
      setProviderIdIsSet(true);
18535
      this.type = type;
18536
      this.orderQuantity = orderQuantity;
18537
      setOrderQuantityIsSet(true);
18538
    }
18539
 
18540
    /**
18541
     * Performs a deep copy on <i>other</i>.
18542
     */
18543
    public getNewEmptyAwb_args(getNewEmptyAwb_args other) {
18544
      __isset_bit_vector.clear();
18545
      __isset_bit_vector.or(other.__isset_bit_vector);
18546
      this.providerId = other.providerId;
18547
      if (other.isSetType()) {
18548
        this.type = other.type;
18549
      }
18550
      this.orderQuantity = other.orderQuantity;
18551
    }
18552
 
18553
    public getNewEmptyAwb_args deepCopy() {
18554
      return new getNewEmptyAwb_args(this);
18555
    }
18556
 
18557
    @Override
18558
    public void clear() {
18559
      setProviderIdIsSet(false);
18560
      this.providerId = 0;
18561
      this.type = null;
18562
      setOrderQuantityIsSet(false);
18563
      this.orderQuantity = 0;
18564
    }
18565
 
18566
    public long getProviderId() {
18567
      return this.providerId;
18568
    }
18569
 
18570
    public void setProviderId(long providerId) {
18571
      this.providerId = providerId;
18572
      setProviderIdIsSet(true);
18573
    }
18574
 
18575
    public void unsetProviderId() {
18576
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
18577
    }
18578
 
18579
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
18580
    public boolean isSetProviderId() {
18581
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
18582
    }
18583
 
18584
    public void setProviderIdIsSet(boolean value) {
18585
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
18586
    }
18587
 
18588
    /**
18589
     * 
18590
     * @see DeliveryType
18591
     */
18592
    public DeliveryType getType() {
18593
      return this.type;
18594
    }
18595
 
18596
    /**
18597
     * 
18598
     * @see DeliveryType
18599
     */
18600
    public void setType(DeliveryType type) {
18601
      this.type = type;
18602
    }
18603
 
18604
    public void unsetType() {
18605
      this.type = null;
18606
    }
18607
 
18608
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
18609
    public boolean isSetType() {
18610
      return this.type != null;
18611
    }
18612
 
18613
    public void setTypeIsSet(boolean value) {
18614
      if (!value) {
18615
        this.type = null;
18616
      }
18617
    }
18618
 
18619
    public long getOrderQuantity() {
18620
      return this.orderQuantity;
18621
    }
18622
 
18623
    public void setOrderQuantity(long orderQuantity) {
18624
      this.orderQuantity = orderQuantity;
18625
      setOrderQuantityIsSet(true);
18626
    }
18627
 
18628
    public void unsetOrderQuantity() {
18629
      __isset_bit_vector.clear(__ORDERQUANTITY_ISSET_ID);
18630
    }
18631
 
18632
    /** Returns true if field orderQuantity is set (has been assigned a value) and false otherwise */
18633
    public boolean isSetOrderQuantity() {
18634
      return __isset_bit_vector.get(__ORDERQUANTITY_ISSET_ID);
18635
    }
18636
 
18637
    public void setOrderQuantityIsSet(boolean value) {
18638
      __isset_bit_vector.set(__ORDERQUANTITY_ISSET_ID, value);
18639
    }
18640
 
18641
    public void setFieldValue(_Fields field, Object value) {
18642
      switch (field) {
18643
      case PROVIDER_ID:
18644
        if (value == null) {
18645
          unsetProviderId();
18646
        } else {
18647
          setProviderId((Long)value);
18648
        }
18649
        break;
18650
 
18651
      case TYPE:
18652
        if (value == null) {
18653
          unsetType();
18654
        } else {
18655
          setType((DeliveryType)value);
18656
        }
18657
        break;
18658
 
18659
      case ORDER_QUANTITY:
18660
        if (value == null) {
18661
          unsetOrderQuantity();
18662
        } else {
18663
          setOrderQuantity((Long)value);
18664
        }
18665
        break;
18666
 
18667
      }
18668
    }
18669
 
18670
    public Object getFieldValue(_Fields field) {
18671
      switch (field) {
18672
      case PROVIDER_ID:
18673
        return Long.valueOf(getProviderId());
18674
 
18675
      case TYPE:
18676
        return getType();
18677
 
18678
      case ORDER_QUANTITY:
18679
        return Long.valueOf(getOrderQuantity());
18680
 
18681
      }
18682
      throw new IllegalStateException();
18683
    }
18684
 
18685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18686
    public boolean isSet(_Fields field) {
18687
      if (field == null) {
18688
        throw new IllegalArgumentException();
18689
      }
18690
 
18691
      switch (field) {
18692
      case PROVIDER_ID:
18693
        return isSetProviderId();
18694
      case TYPE:
18695
        return isSetType();
18696
      case ORDER_QUANTITY:
18697
        return isSetOrderQuantity();
18698
      }
18699
      throw new IllegalStateException();
18700
    }
18701
 
18702
    @Override
18703
    public boolean equals(Object that) {
18704
      if (that == null)
18705
        return false;
18706
      if (that instanceof getNewEmptyAwb_args)
18707
        return this.equals((getNewEmptyAwb_args)that);
18708
      return false;
18709
    }
18710
 
18711
    public boolean equals(getNewEmptyAwb_args that) {
18712
      if (that == null)
18713
        return false;
18714
 
18715
      boolean this_present_providerId = true;
18716
      boolean that_present_providerId = true;
18717
      if (this_present_providerId || that_present_providerId) {
18718
        if (!(this_present_providerId && that_present_providerId))
18719
          return false;
18720
        if (this.providerId != that.providerId)
18721
          return false;
18722
      }
18723
 
18724
      boolean this_present_type = true && this.isSetType();
18725
      boolean that_present_type = true && that.isSetType();
18726
      if (this_present_type || that_present_type) {
18727
        if (!(this_present_type && that_present_type))
18728
          return false;
18729
        if (!this.type.equals(that.type))
18730
          return false;
18731
      }
18732
 
18733
      boolean this_present_orderQuantity = true;
18734
      boolean that_present_orderQuantity = true;
18735
      if (this_present_orderQuantity || that_present_orderQuantity) {
18736
        if (!(this_present_orderQuantity && that_present_orderQuantity))
18737
          return false;
18738
        if (this.orderQuantity != that.orderQuantity)
18739
          return false;
18740
      }
18741
 
18742
      return true;
18743
    }
18744
 
18745
    @Override
18746
    public int hashCode() {
18747
      return 0;
18748
    }
18749
 
18750
    public int compareTo(getNewEmptyAwb_args other) {
18751
      if (!getClass().equals(other.getClass())) {
18752
        return getClass().getName().compareTo(other.getClass().getName());
18753
      }
18754
 
18755
      int lastComparison = 0;
18756
      getNewEmptyAwb_args typedOther = (getNewEmptyAwb_args)other;
18757
 
18758
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
18759
      if (lastComparison != 0) {
18760
        return lastComparison;
18761
      }
18762
      if (isSetProviderId()) {
18763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
18764
        if (lastComparison != 0) {
18765
          return lastComparison;
18766
        }
18767
      }
18768
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
18769
      if (lastComparison != 0) {
18770
        return lastComparison;
18771
      }
18772
      if (isSetType()) {
18773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
18774
        if (lastComparison != 0) {
18775
          return lastComparison;
18776
        }
18777
      }
18778
      lastComparison = Boolean.valueOf(isSetOrderQuantity()).compareTo(typedOther.isSetOrderQuantity());
18779
      if (lastComparison != 0) {
18780
        return lastComparison;
18781
      }
18782
      if (isSetOrderQuantity()) {
18783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderQuantity, typedOther.orderQuantity);
18784
        if (lastComparison != 0) {
18785
          return lastComparison;
18786
        }
18787
      }
18788
      return 0;
18789
    }
18790
 
18791
    public _Fields fieldForId(int fieldId) {
18792
      return _Fields.findByThriftId(fieldId);
18793
    }
18794
 
18795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18796
      org.apache.thrift.protocol.TField field;
18797
      iprot.readStructBegin();
18798
      while (true)
18799
      {
18800
        field = iprot.readFieldBegin();
18801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18802
          break;
18803
        }
18804
        switch (field.id) {
18805
          case 1: // PROVIDER_ID
18806
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18807
              this.providerId = iprot.readI64();
18808
              setProviderIdIsSet(true);
18809
            } else { 
18810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18811
            }
18812
            break;
18813
          case 2: // TYPE
18814
            if (field.type == org.apache.thrift.protocol.TType.I32) {
18815
              this.type = DeliveryType.findByValue(iprot.readI32());
18816
            } else { 
18817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18818
            }
18819
            break;
18820
          case 3: // ORDER_QUANTITY
18821
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18822
              this.orderQuantity = iprot.readI64();
18823
              setOrderQuantityIsSet(true);
18824
            } else { 
18825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18826
            }
18827
            break;
18828
          default:
18829
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18830
        }
18831
        iprot.readFieldEnd();
18832
      }
18833
      iprot.readStructEnd();
18834
      validate();
18835
    }
18836
 
18837
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18838
      validate();
18839
 
18840
      oprot.writeStructBegin(STRUCT_DESC);
18841
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
18842
      oprot.writeI64(this.providerId);
18843
      oprot.writeFieldEnd();
18844
      if (this.type != null) {
18845
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
18846
        oprot.writeI32(this.type.getValue());
18847
        oprot.writeFieldEnd();
18848
      }
18849
      oprot.writeFieldBegin(ORDER_QUANTITY_FIELD_DESC);
18850
      oprot.writeI64(this.orderQuantity);
18851
      oprot.writeFieldEnd();
18852
      oprot.writeFieldStop();
18853
      oprot.writeStructEnd();
18854
    }
18855
 
18856
    @Override
18857
    public String toString() {
18858
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_args(");
18859
      boolean first = true;
18860
 
18861
      sb.append("providerId:");
18862
      sb.append(this.providerId);
18863
      first = false;
18864
      if (!first) sb.append(", ");
18865
      sb.append("type:");
18866
      if (this.type == null) {
18867
        sb.append("null");
18868
      } else {
18869
        sb.append(this.type);
18870
      }
18871
      first = false;
18872
      if (!first) sb.append(", ");
18873
      sb.append("orderQuantity:");
18874
      sb.append(this.orderQuantity);
18875
      first = false;
18876
      sb.append(")");
18877
      return sb.toString();
18878
    }
18879
 
18880
    public void validate() throws org.apache.thrift.TException {
18881
      // check for required fields
18882
    }
18883
 
18884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18885
      try {
18886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18887
      } catch (org.apache.thrift.TException te) {
18888
        throw new java.io.IOException(te);
18889
      }
18890
    }
18891
 
18892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18893
      try {
18894
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18895
        __isset_bit_vector = new BitSet(1);
18896
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18897
      } catch (org.apache.thrift.TException te) {
18898
        throw new java.io.IOException(te);
18899
      }
18900
    }
18901
 
18902
  }
18903
 
18904
  public static class getNewEmptyAwb_result implements org.apache.thrift.TBase<getNewEmptyAwb_result, getNewEmptyAwb_result._Fields>, java.io.Serializable, Cloneable   {
18905
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNewEmptyAwb_result");
18906
 
18907
    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);
18908
    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);
18909
 
18910
    private String success; // required
18911
    private LogisticsServiceException se; // required
18912
 
18913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18915
      SUCCESS((short)0, "success"),
18916
      SE((short)1, "se");
18917
 
18918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18919
 
18920
      static {
18921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18922
          byName.put(field.getFieldName(), field);
18923
        }
18924
      }
18925
 
18926
      /**
18927
       * Find the _Fields constant that matches fieldId, or null if its not found.
18928
       */
18929
      public static _Fields findByThriftId(int fieldId) {
18930
        switch(fieldId) {
18931
          case 0: // SUCCESS
18932
            return SUCCESS;
18933
          case 1: // SE
18934
            return SE;
18935
          default:
18936
            return null;
18937
        }
18938
      }
18939
 
18940
      /**
18941
       * Find the _Fields constant that matches fieldId, throwing an exception
18942
       * if it is not found.
18943
       */
18944
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18945
        _Fields fields = findByThriftId(fieldId);
18946
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18947
        return fields;
18948
      }
18949
 
18950
      /**
18951
       * Find the _Fields constant that matches name, or null if its not found.
18952
       */
18953
      public static _Fields findByName(String name) {
18954
        return byName.get(name);
18955
      }
18956
 
18957
      private final short _thriftId;
18958
      private final String _fieldName;
18959
 
18960
      _Fields(short thriftId, String fieldName) {
18961
        _thriftId = thriftId;
18962
        _fieldName = fieldName;
18963
      }
18964
 
18965
      public short getThriftFieldId() {
18966
        return _thriftId;
18967
      }
18968
 
18969
      public String getFieldName() {
18970
        return _fieldName;
18971
      }
18972
    }
18973
 
18974
    // isset id assignments
18975
 
18976
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18977
    static {
18978
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18979
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18981
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18982
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18983
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18984
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNewEmptyAwb_result.class, metaDataMap);
18985
    }
18986
 
18987
    public getNewEmptyAwb_result() {
18988
    }
18989
 
18990
    public getNewEmptyAwb_result(
18991
      String success,
18992
      LogisticsServiceException se)
18993
    {
18994
      this();
18995
      this.success = success;
18996
      this.se = se;
18997
    }
18998
 
18999
    /**
19000
     * Performs a deep copy on <i>other</i>.
19001
     */
19002
    public getNewEmptyAwb_result(getNewEmptyAwb_result other) {
19003
      if (other.isSetSuccess()) {
19004
        this.success = other.success;
19005
      }
19006
      if (other.isSetSe()) {
19007
        this.se = new LogisticsServiceException(other.se);
19008
      }
19009
    }
19010
 
19011
    public getNewEmptyAwb_result deepCopy() {
19012
      return new getNewEmptyAwb_result(this);
19013
    }
19014
 
19015
    @Override
19016
    public void clear() {
19017
      this.success = null;
19018
      this.se = null;
19019
    }
19020
 
19021
    public String getSuccess() {
19022
      return this.success;
19023
    }
19024
 
19025
    public void setSuccess(String success) {
19026
      this.success = success;
19027
    }
19028
 
19029
    public void unsetSuccess() {
19030
      this.success = null;
19031
    }
19032
 
19033
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19034
    public boolean isSetSuccess() {
19035
      return this.success != null;
19036
    }
19037
 
19038
    public void setSuccessIsSet(boolean value) {
19039
      if (!value) {
19040
        this.success = null;
19041
      }
19042
    }
19043
 
19044
    public LogisticsServiceException getSe() {
19045
      return this.se;
19046
    }
19047
 
19048
    public void setSe(LogisticsServiceException se) {
19049
      this.se = se;
19050
    }
19051
 
19052
    public void unsetSe() {
19053
      this.se = null;
19054
    }
19055
 
19056
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19057
    public boolean isSetSe() {
19058
      return this.se != null;
19059
    }
19060
 
19061
    public void setSeIsSet(boolean value) {
19062
      if (!value) {
19063
        this.se = null;
19064
      }
19065
    }
19066
 
19067
    public void setFieldValue(_Fields field, Object value) {
19068
      switch (field) {
19069
      case SUCCESS:
19070
        if (value == null) {
19071
          unsetSuccess();
19072
        } else {
19073
          setSuccess((String)value);
19074
        }
19075
        break;
19076
 
19077
      case SE:
19078
        if (value == null) {
19079
          unsetSe();
19080
        } else {
19081
          setSe((LogisticsServiceException)value);
19082
        }
19083
        break;
19084
 
19085
      }
19086
    }
19087
 
19088
    public Object getFieldValue(_Fields field) {
19089
      switch (field) {
19090
      case SUCCESS:
19091
        return getSuccess();
19092
 
19093
      case SE:
19094
        return getSe();
19095
 
19096
      }
19097
      throw new IllegalStateException();
19098
    }
19099
 
19100
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19101
    public boolean isSet(_Fields field) {
19102
      if (field == null) {
19103
        throw new IllegalArgumentException();
19104
      }
19105
 
19106
      switch (field) {
19107
      case SUCCESS:
19108
        return isSetSuccess();
19109
      case SE:
19110
        return isSetSe();
19111
      }
19112
      throw new IllegalStateException();
19113
    }
19114
 
19115
    @Override
19116
    public boolean equals(Object that) {
19117
      if (that == null)
19118
        return false;
19119
      if (that instanceof getNewEmptyAwb_result)
19120
        return this.equals((getNewEmptyAwb_result)that);
19121
      return false;
19122
    }
19123
 
19124
    public boolean equals(getNewEmptyAwb_result that) {
19125
      if (that == null)
19126
        return false;
19127
 
19128
      boolean this_present_success = true && this.isSetSuccess();
19129
      boolean that_present_success = true && that.isSetSuccess();
19130
      if (this_present_success || that_present_success) {
19131
        if (!(this_present_success && that_present_success))
19132
          return false;
19133
        if (!this.success.equals(that.success))
19134
          return false;
19135
      }
19136
 
19137
      boolean this_present_se = true && this.isSetSe();
19138
      boolean that_present_se = true && that.isSetSe();
19139
      if (this_present_se || that_present_se) {
19140
        if (!(this_present_se && that_present_se))
19141
          return false;
19142
        if (!this.se.equals(that.se))
19143
          return false;
19144
      }
19145
 
19146
      return true;
19147
    }
19148
 
19149
    @Override
19150
    public int hashCode() {
19151
      return 0;
19152
    }
19153
 
19154
    public int compareTo(getNewEmptyAwb_result other) {
19155
      if (!getClass().equals(other.getClass())) {
19156
        return getClass().getName().compareTo(other.getClass().getName());
19157
      }
19158
 
19159
      int lastComparison = 0;
19160
      getNewEmptyAwb_result typedOther = (getNewEmptyAwb_result)other;
19161
 
19162
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19163
      if (lastComparison != 0) {
19164
        return lastComparison;
19165
      }
19166
      if (isSetSuccess()) {
19167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19168
        if (lastComparison != 0) {
19169
          return lastComparison;
19170
        }
19171
      }
19172
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19173
      if (lastComparison != 0) {
19174
        return lastComparison;
19175
      }
19176
      if (isSetSe()) {
19177
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19178
        if (lastComparison != 0) {
19179
          return lastComparison;
19180
        }
19181
      }
19182
      return 0;
19183
    }
19184
 
19185
    public _Fields fieldForId(int fieldId) {
19186
      return _Fields.findByThriftId(fieldId);
19187
    }
19188
 
19189
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19190
      org.apache.thrift.protocol.TField field;
19191
      iprot.readStructBegin();
19192
      while (true)
19193
      {
19194
        field = iprot.readFieldBegin();
19195
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19196
          break;
19197
        }
19198
        switch (field.id) {
19199
          case 0: // SUCCESS
19200
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19201
              this.success = iprot.readString();
19202
            } else { 
19203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19204
            }
19205
            break;
19206
          case 1: // SE
19207
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19208
              this.se = new LogisticsServiceException();
19209
              this.se.read(iprot);
19210
            } else { 
19211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19212
            }
19213
            break;
19214
          default:
19215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19216
        }
19217
        iprot.readFieldEnd();
19218
      }
19219
      iprot.readStructEnd();
19220
      validate();
19221
    }
19222
 
19223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19224
      oprot.writeStructBegin(STRUCT_DESC);
19225
 
19226
      if (this.isSetSuccess()) {
19227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19228
        oprot.writeString(this.success);
19229
        oprot.writeFieldEnd();
19230
      } else if (this.isSetSe()) {
19231
        oprot.writeFieldBegin(SE_FIELD_DESC);
19232
        this.se.write(oprot);
19233
        oprot.writeFieldEnd();
19234
      }
19235
      oprot.writeFieldStop();
19236
      oprot.writeStructEnd();
19237
    }
19238
 
19239
    @Override
19240
    public String toString() {
19241
      StringBuilder sb = new StringBuilder("getNewEmptyAwb_result(");
19242
      boolean first = true;
19243
 
19244
      sb.append("success:");
19245
      if (this.success == null) {
19246
        sb.append("null");
19247
      } else {
19248
        sb.append(this.success);
19249
      }
19250
      first = false;
19251
      if (!first) sb.append(", ");
19252
      sb.append("se:");
19253
      if (this.se == null) {
19254
        sb.append("null");
19255
      } else {
19256
        sb.append(this.se);
19257
      }
19258
      first = false;
19259
      sb.append(")");
19260
      return sb.toString();
19261
    }
19262
 
19263
    public void validate() throws org.apache.thrift.TException {
19264
      // check for required fields
19265
    }
19266
 
19267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19268
      try {
19269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19270
      } catch (org.apache.thrift.TException te) {
19271
        throw new java.io.IOException(te);
19272
      }
19273
    }
19274
 
19275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19276
      try {
19277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19278
      } catch (org.apache.thrift.TException te) {
19279
        throw new java.io.IOException(te);
19280
      }
19281
    }
19282
 
19283
  }
19284
 
19285
  public static class getProviderLimitDetailsForPincode_args implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_args, getProviderLimitDetailsForPincode_args._Fields>, java.io.Serializable, Cloneable   {
19286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_args");
19287
 
19288
    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);
19289
    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);
19290
 
19291
    private long providerId; // required
19292
    private String pincode; // required
19293
 
19294
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19295
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19296
      PROVIDER_ID((short)1, "providerId"),
19297
      PINCODE((short)2, "pincode");
19298
 
19299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19300
 
19301
      static {
19302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19303
          byName.put(field.getFieldName(), field);
19304
        }
19305
      }
19306
 
19307
      /**
19308
       * Find the _Fields constant that matches fieldId, or null if its not found.
19309
       */
19310
      public static _Fields findByThriftId(int fieldId) {
19311
        switch(fieldId) {
19312
          case 1: // PROVIDER_ID
19313
            return PROVIDER_ID;
19314
          case 2: // PINCODE
19315
            return PINCODE;
19316
          default:
19317
            return null;
19318
        }
19319
      }
19320
 
19321
      /**
19322
       * Find the _Fields constant that matches fieldId, throwing an exception
19323
       * if it is not found.
19324
       */
19325
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19326
        _Fields fields = findByThriftId(fieldId);
19327
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19328
        return fields;
19329
      }
19330
 
19331
      /**
19332
       * Find the _Fields constant that matches name, or null if its not found.
19333
       */
19334
      public static _Fields findByName(String name) {
19335
        return byName.get(name);
19336
      }
19337
 
19338
      private final short _thriftId;
19339
      private final String _fieldName;
19340
 
19341
      _Fields(short thriftId, String fieldName) {
19342
        _thriftId = thriftId;
19343
        _fieldName = fieldName;
19344
      }
19345
 
19346
      public short getThriftFieldId() {
19347
        return _thriftId;
19348
      }
19349
 
19350
      public String getFieldName() {
19351
        return _fieldName;
19352
      }
19353
    }
19354
 
19355
    // isset id assignments
19356
    private static final int __PROVIDERID_ISSET_ID = 0;
19357
    private BitSet __isset_bit_vector = new BitSet(1);
19358
 
19359
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19360
    static {
19361
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19362
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19363
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19364
      tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_args.class, metaDataMap);
19368
    }
19369
 
19370
    public getProviderLimitDetailsForPincode_args() {
19371
    }
19372
 
19373
    public getProviderLimitDetailsForPincode_args(
19374
      long providerId,
19375
      String pincode)
19376
    {
19377
      this();
19378
      this.providerId = providerId;
19379
      setProviderIdIsSet(true);
19380
      this.pincode = pincode;
19381
    }
19382
 
19383
    /**
19384
     * Performs a deep copy on <i>other</i>.
19385
     */
19386
    public getProviderLimitDetailsForPincode_args(getProviderLimitDetailsForPincode_args other) {
19387
      __isset_bit_vector.clear();
19388
      __isset_bit_vector.or(other.__isset_bit_vector);
19389
      this.providerId = other.providerId;
19390
      if (other.isSetPincode()) {
19391
        this.pincode = other.pincode;
19392
      }
19393
    }
19394
 
19395
    public getProviderLimitDetailsForPincode_args deepCopy() {
19396
      return new getProviderLimitDetailsForPincode_args(this);
19397
    }
19398
 
19399
    @Override
19400
    public void clear() {
19401
      setProviderIdIsSet(false);
19402
      this.providerId = 0;
19403
      this.pincode = null;
19404
    }
19405
 
19406
    public long getProviderId() {
19407
      return this.providerId;
19408
    }
19409
 
19410
    public void setProviderId(long providerId) {
19411
      this.providerId = providerId;
19412
      setProviderIdIsSet(true);
19413
    }
19414
 
19415
    public void unsetProviderId() {
19416
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
19417
    }
19418
 
19419
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
19420
    public boolean isSetProviderId() {
19421
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
19422
    }
19423
 
19424
    public void setProviderIdIsSet(boolean value) {
19425
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
19426
    }
19427
 
19428
    public String getPincode() {
19429
      return this.pincode;
19430
    }
19431
 
19432
    public void setPincode(String pincode) {
19433
      this.pincode = pincode;
19434
    }
19435
 
19436
    public void unsetPincode() {
19437
      this.pincode = null;
19438
    }
19439
 
19440
    /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
19441
    public boolean isSetPincode() {
19442
      return this.pincode != null;
19443
    }
19444
 
19445
    public void setPincodeIsSet(boolean value) {
19446
      if (!value) {
19447
        this.pincode = null;
19448
      }
19449
    }
19450
 
19451
    public void setFieldValue(_Fields field, Object value) {
19452
      switch (field) {
19453
      case PROVIDER_ID:
19454
        if (value == null) {
19455
          unsetProviderId();
19456
        } else {
19457
          setProviderId((Long)value);
19458
        }
19459
        break;
19460
 
19461
      case PINCODE:
19462
        if (value == null) {
19463
          unsetPincode();
19464
        } else {
19465
          setPincode((String)value);
19466
        }
19467
        break;
19468
 
19469
      }
19470
    }
19471
 
19472
    public Object getFieldValue(_Fields field) {
19473
      switch (field) {
19474
      case PROVIDER_ID:
19475
        return Long.valueOf(getProviderId());
19476
 
19477
      case PINCODE:
19478
        return getPincode();
19479
 
19480
      }
19481
      throw new IllegalStateException();
19482
    }
19483
 
19484
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19485
    public boolean isSet(_Fields field) {
19486
      if (field == null) {
19487
        throw new IllegalArgumentException();
19488
      }
19489
 
19490
      switch (field) {
19491
      case PROVIDER_ID:
19492
        return isSetProviderId();
19493
      case PINCODE:
19494
        return isSetPincode();
19495
      }
19496
      throw new IllegalStateException();
19497
    }
19498
 
19499
    @Override
19500
    public boolean equals(Object that) {
19501
      if (that == null)
19502
        return false;
19503
      if (that instanceof getProviderLimitDetailsForPincode_args)
19504
        return this.equals((getProviderLimitDetailsForPincode_args)that);
19505
      return false;
19506
    }
19507
 
19508
    public boolean equals(getProviderLimitDetailsForPincode_args that) {
19509
      if (that == null)
19510
        return false;
19511
 
19512
      boolean this_present_providerId = true;
19513
      boolean that_present_providerId = true;
19514
      if (this_present_providerId || that_present_providerId) {
19515
        if (!(this_present_providerId && that_present_providerId))
19516
          return false;
19517
        if (this.providerId != that.providerId)
19518
          return false;
19519
      }
19520
 
19521
      boolean this_present_pincode = true && this.isSetPincode();
19522
      boolean that_present_pincode = true && that.isSetPincode();
19523
      if (this_present_pincode || that_present_pincode) {
19524
        if (!(this_present_pincode && that_present_pincode))
19525
          return false;
19526
        if (!this.pincode.equals(that.pincode))
19527
          return false;
19528
      }
19529
 
19530
      return true;
19531
    }
19532
 
19533
    @Override
19534
    public int hashCode() {
19535
      return 0;
19536
    }
19537
 
19538
    public int compareTo(getProviderLimitDetailsForPincode_args other) {
19539
      if (!getClass().equals(other.getClass())) {
19540
        return getClass().getName().compareTo(other.getClass().getName());
19541
      }
19542
 
19543
      int lastComparison = 0;
19544
      getProviderLimitDetailsForPincode_args typedOther = (getProviderLimitDetailsForPincode_args)other;
19545
 
19546
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
19547
      if (lastComparison != 0) {
19548
        return lastComparison;
19549
      }
19550
      if (isSetProviderId()) {
19551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
19552
        if (lastComparison != 0) {
19553
          return lastComparison;
19554
        }
19555
      }
19556
      lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
19557
      if (lastComparison != 0) {
19558
        return lastComparison;
19559
      }
19560
      if (isSetPincode()) {
19561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
19562
        if (lastComparison != 0) {
19563
          return lastComparison;
19564
        }
19565
      }
19566
      return 0;
19567
    }
19568
 
19569
    public _Fields fieldForId(int fieldId) {
19570
      return _Fields.findByThriftId(fieldId);
19571
    }
19572
 
19573
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19574
      org.apache.thrift.protocol.TField field;
19575
      iprot.readStructBegin();
19576
      while (true)
19577
      {
19578
        field = iprot.readFieldBegin();
19579
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19580
          break;
19581
        }
19582
        switch (field.id) {
19583
          case 1: // PROVIDER_ID
19584
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19585
              this.providerId = iprot.readI64();
19586
              setProviderIdIsSet(true);
19587
            } else { 
19588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19589
            }
19590
            break;
19591
          case 2: // PINCODE
19592
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19593
              this.pincode = iprot.readString();
19594
            } else { 
19595
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19596
            }
19597
            break;
19598
          default:
19599
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19600
        }
19601
        iprot.readFieldEnd();
19602
      }
19603
      iprot.readStructEnd();
19604
      validate();
19605
    }
19606
 
19607
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19608
      validate();
19609
 
19610
      oprot.writeStructBegin(STRUCT_DESC);
19611
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
19612
      oprot.writeI64(this.providerId);
19613
      oprot.writeFieldEnd();
19614
      if (this.pincode != null) {
19615
        oprot.writeFieldBegin(PINCODE_FIELD_DESC);
19616
        oprot.writeString(this.pincode);
19617
        oprot.writeFieldEnd();
19618
      }
19619
      oprot.writeFieldStop();
19620
      oprot.writeStructEnd();
19621
    }
19622
 
19623
    @Override
19624
    public String toString() {
19625
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_args(");
19626
      boolean first = true;
19627
 
19628
      sb.append("providerId:");
19629
      sb.append(this.providerId);
19630
      first = false;
19631
      if (!first) sb.append(", ");
19632
      sb.append("pincode:");
19633
      if (this.pincode == null) {
19634
        sb.append("null");
19635
      } else {
19636
        sb.append(this.pincode);
19637
      }
19638
      first = false;
19639
      sb.append(")");
19640
      return sb.toString();
19641
    }
19642
 
19643
    public void validate() throws org.apache.thrift.TException {
19644
      // check for required fields
19645
    }
19646
 
19647
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19648
      try {
19649
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19650
      } catch (org.apache.thrift.TException te) {
19651
        throw new java.io.IOException(te);
19652
      }
19653
    }
19654
 
19655
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19656
      try {
19657
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19658
        __isset_bit_vector = new BitSet(1);
19659
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19660
      } catch (org.apache.thrift.TException te) {
19661
        throw new java.io.IOException(te);
19662
      }
19663
    }
19664
 
19665
  }
19666
 
19667
  public static class getProviderLimitDetailsForPincode_result implements org.apache.thrift.TBase<getProviderLimitDetailsForPincode_result, getProviderLimitDetailsForPincode_result._Fields>, java.io.Serializable, Cloneable   {
19668
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderLimitDetailsForPincode_result");
19669
 
19670
    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);
19671
    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);
19672
 
19673
    private Map<String,String> success; // required
19674
    private LogisticsServiceException se; // required
19675
 
19676
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19677
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19678
      SUCCESS((short)0, "success"),
19679
      SE((short)1, "se");
19680
 
19681
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19682
 
19683
      static {
19684
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19685
          byName.put(field.getFieldName(), field);
19686
        }
19687
      }
19688
 
19689
      /**
19690
       * Find the _Fields constant that matches fieldId, or null if its not found.
19691
       */
19692
      public static _Fields findByThriftId(int fieldId) {
19693
        switch(fieldId) {
19694
          case 0: // SUCCESS
19695
            return SUCCESS;
19696
          case 1: // SE
19697
            return SE;
19698
          default:
19699
            return null;
19700
        }
19701
      }
19702
 
19703
      /**
19704
       * Find the _Fields constant that matches fieldId, throwing an exception
19705
       * if it is not found.
19706
       */
19707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19708
        _Fields fields = findByThriftId(fieldId);
19709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19710
        return fields;
19711
      }
19712
 
19713
      /**
19714
       * Find the _Fields constant that matches name, or null if its not found.
19715
       */
19716
      public static _Fields findByName(String name) {
19717
        return byName.get(name);
19718
      }
19719
 
19720
      private final short _thriftId;
19721
      private final String _fieldName;
19722
 
19723
      _Fields(short thriftId, String fieldName) {
19724
        _thriftId = thriftId;
19725
        _fieldName = fieldName;
19726
      }
19727
 
19728
      public short getThriftFieldId() {
19729
        return _thriftId;
19730
      }
19731
 
19732
      public String getFieldName() {
19733
        return _fieldName;
19734
      }
19735
    }
19736
 
19737
    // isset id assignments
19738
 
19739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19740
    static {
19741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19743
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
19744
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
19745
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19746
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderLimitDetailsForPincode_result.class, metaDataMap);
19750
    }
19751
 
19752
    public getProviderLimitDetailsForPincode_result() {
19753
    }
19754
 
19755
    public getProviderLimitDetailsForPincode_result(
19756
      Map<String,String> success,
19757
      LogisticsServiceException se)
19758
    {
19759
      this();
19760
      this.success = success;
19761
      this.se = se;
19762
    }
19763
 
19764
    /**
19765
     * Performs a deep copy on <i>other</i>.
19766
     */
19767
    public getProviderLimitDetailsForPincode_result(getProviderLimitDetailsForPincode_result other) {
19768
      if (other.isSetSuccess()) {
19769
        Map<String,String> __this__success = new HashMap<String,String>();
19770
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
19771
 
19772
          String other_element_key = other_element.getKey();
19773
          String other_element_value = other_element.getValue();
19774
 
19775
          String __this__success_copy_key = other_element_key;
19776
 
19777
          String __this__success_copy_value = other_element_value;
19778
 
19779
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
19780
        }
19781
        this.success = __this__success;
19782
      }
19783
      if (other.isSetSe()) {
19784
        this.se = new LogisticsServiceException(other.se);
19785
      }
19786
    }
19787
 
19788
    public getProviderLimitDetailsForPincode_result deepCopy() {
19789
      return new getProviderLimitDetailsForPincode_result(this);
19790
    }
19791
 
19792
    @Override
19793
    public void clear() {
19794
      this.success = null;
19795
      this.se = null;
19796
    }
19797
 
19798
    public int getSuccessSize() {
19799
      return (this.success == null) ? 0 : this.success.size();
19800
    }
19801
 
19802
    public void putToSuccess(String key, String val) {
19803
      if (this.success == null) {
19804
        this.success = new HashMap<String,String>();
19805
      }
19806
      this.success.put(key, val);
19807
    }
19808
 
19809
    public Map<String,String> getSuccess() {
19810
      return this.success;
19811
    }
19812
 
19813
    public void setSuccess(Map<String,String> success) {
19814
      this.success = success;
19815
    }
19816
 
19817
    public void unsetSuccess() {
19818
      this.success = null;
19819
    }
19820
 
19821
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19822
    public boolean isSetSuccess() {
19823
      return this.success != null;
19824
    }
19825
 
19826
    public void setSuccessIsSet(boolean value) {
19827
      if (!value) {
19828
        this.success = null;
19829
      }
19830
    }
19831
 
19832
    public LogisticsServiceException getSe() {
19833
      return this.se;
19834
    }
19835
 
19836
    public void setSe(LogisticsServiceException se) {
19837
      this.se = se;
19838
    }
19839
 
19840
    public void unsetSe() {
19841
      this.se = null;
19842
    }
19843
 
19844
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
19845
    public boolean isSetSe() {
19846
      return this.se != null;
19847
    }
19848
 
19849
    public void setSeIsSet(boolean value) {
19850
      if (!value) {
19851
        this.se = null;
19852
      }
19853
    }
19854
 
19855
    public void setFieldValue(_Fields field, Object value) {
19856
      switch (field) {
19857
      case SUCCESS:
19858
        if (value == null) {
19859
          unsetSuccess();
19860
        } else {
19861
          setSuccess((Map<String,String>)value);
19862
        }
19863
        break;
19864
 
19865
      case SE:
19866
        if (value == null) {
19867
          unsetSe();
19868
        } else {
19869
          setSe((LogisticsServiceException)value);
19870
        }
19871
        break;
19872
 
19873
      }
19874
    }
19875
 
19876
    public Object getFieldValue(_Fields field) {
19877
      switch (field) {
19878
      case SUCCESS:
19879
        return getSuccess();
19880
 
19881
      case SE:
19882
        return getSe();
19883
 
19884
      }
19885
      throw new IllegalStateException();
19886
    }
19887
 
19888
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19889
    public boolean isSet(_Fields field) {
19890
      if (field == null) {
19891
        throw new IllegalArgumentException();
19892
      }
19893
 
19894
      switch (field) {
19895
      case SUCCESS:
19896
        return isSetSuccess();
19897
      case SE:
19898
        return isSetSe();
19899
      }
19900
      throw new IllegalStateException();
19901
    }
19902
 
19903
    @Override
19904
    public boolean equals(Object that) {
19905
      if (that == null)
19906
        return false;
19907
      if (that instanceof getProviderLimitDetailsForPincode_result)
19908
        return this.equals((getProviderLimitDetailsForPincode_result)that);
19909
      return false;
19910
    }
19911
 
19912
    public boolean equals(getProviderLimitDetailsForPincode_result that) {
19913
      if (that == null)
19914
        return false;
19915
 
19916
      boolean this_present_success = true && this.isSetSuccess();
19917
      boolean that_present_success = true && that.isSetSuccess();
19918
      if (this_present_success || that_present_success) {
19919
        if (!(this_present_success && that_present_success))
19920
          return false;
19921
        if (!this.success.equals(that.success))
19922
          return false;
19923
      }
19924
 
19925
      boolean this_present_se = true && this.isSetSe();
19926
      boolean that_present_se = true && that.isSetSe();
19927
      if (this_present_se || that_present_se) {
19928
        if (!(this_present_se && that_present_se))
19929
          return false;
19930
        if (!this.se.equals(that.se))
19931
          return false;
19932
      }
19933
 
19934
      return true;
19935
    }
19936
 
19937
    @Override
19938
    public int hashCode() {
19939
      return 0;
19940
    }
19941
 
19942
    public int compareTo(getProviderLimitDetailsForPincode_result other) {
19943
      if (!getClass().equals(other.getClass())) {
19944
        return getClass().getName().compareTo(other.getClass().getName());
19945
      }
19946
 
19947
      int lastComparison = 0;
19948
      getProviderLimitDetailsForPincode_result typedOther = (getProviderLimitDetailsForPincode_result)other;
19949
 
19950
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19951
      if (lastComparison != 0) {
19952
        return lastComparison;
19953
      }
19954
      if (isSetSuccess()) {
19955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19956
        if (lastComparison != 0) {
19957
          return lastComparison;
19958
        }
19959
      }
19960
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
19961
      if (lastComparison != 0) {
19962
        return lastComparison;
19963
      }
19964
      if (isSetSe()) {
19965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
19966
        if (lastComparison != 0) {
19967
          return lastComparison;
19968
        }
19969
      }
19970
      return 0;
19971
    }
19972
 
19973
    public _Fields fieldForId(int fieldId) {
19974
      return _Fields.findByThriftId(fieldId);
19975
    }
19976
 
19977
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19978
      org.apache.thrift.protocol.TField field;
19979
      iprot.readStructBegin();
19980
      while (true)
19981
      {
19982
        field = iprot.readFieldBegin();
19983
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19984
          break;
19985
        }
19986
        switch (field.id) {
19987
          case 0: // SUCCESS
19988
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
19989
              {
19990
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
19991
                this.success = new HashMap<String,String>(2*_map32.size);
19992
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
19993
                {
19994
                  String _key34; // required
19995
                  String _val35; // required
19996
                  _key34 = iprot.readString();
19997
                  _val35 = iprot.readString();
19998
                  this.success.put(_key34, _val35);
19999
                }
20000
                iprot.readMapEnd();
20001
              }
20002
            } else { 
20003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20004
            }
20005
            break;
20006
          case 1: // SE
20007
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20008
              this.se = new LogisticsServiceException();
20009
              this.se.read(iprot);
20010
            } else { 
20011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20012
            }
20013
            break;
20014
          default:
20015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20016
        }
20017
        iprot.readFieldEnd();
20018
      }
20019
      iprot.readStructEnd();
20020
      validate();
20021
    }
20022
 
20023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20024
      oprot.writeStructBegin(STRUCT_DESC);
20025
 
20026
      if (this.isSetSuccess()) {
20027
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20028
        {
20029
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
20030
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
20031
          {
20032
            oprot.writeString(_iter36.getKey());
20033
            oprot.writeString(_iter36.getValue());
20034
          }
20035
          oprot.writeMapEnd();
20036
        }
20037
        oprot.writeFieldEnd();
20038
      } else if (this.isSetSe()) {
20039
        oprot.writeFieldBegin(SE_FIELD_DESC);
20040
        this.se.write(oprot);
20041
        oprot.writeFieldEnd();
20042
      }
20043
      oprot.writeFieldStop();
20044
      oprot.writeStructEnd();
20045
    }
20046
 
20047
    @Override
20048
    public String toString() {
20049
      StringBuilder sb = new StringBuilder("getProviderLimitDetailsForPincode_result(");
20050
      boolean first = true;
20051
 
20052
      sb.append("success:");
20053
      if (this.success == null) {
20054
        sb.append("null");
20055
      } else {
20056
        sb.append(this.success);
20057
      }
20058
      first = false;
20059
      if (!first) sb.append(", ");
20060
      sb.append("se:");
20061
      if (this.se == null) {
20062
        sb.append("null");
20063
      } else {
20064
        sb.append(this.se);
20065
      }
20066
      first = false;
20067
      sb.append(")");
20068
      return sb.toString();
20069
    }
20070
 
20071
    public void validate() throws org.apache.thrift.TException {
20072
      // check for required fields
20073
    }
20074
 
20075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20076
      try {
20077
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20078
      } catch (org.apache.thrift.TException te) {
20079
        throw new java.io.IOException(te);
20080
      }
20081
    }
20082
 
20083
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20084
      try {
20085
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20086
      } catch (org.apache.thrift.TException te) {
20087
        throw new java.io.IOException(te);
20088
      }
20089
    }
20090
 
20091
  }
20092
 
19413 amit.gupta 20093
  public static class getLocationInfoMap_args implements org.apache.thrift.TBase<getLocationInfoMap_args, getLocationInfoMap_args._Fields>, java.io.Serializable, Cloneable   {
20094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_args");
20095
 
20096
    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);
20097
    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);
20098
 
20099
    private String destPincode; // required
20100
    private List<Long> price; // required
20101
 
20102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20104
      DEST_PINCODE((short)1, "destPincode"),
20105
      PRICE((short)2, "price");
20106
 
20107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20108
 
20109
      static {
20110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20111
          byName.put(field.getFieldName(), field);
20112
        }
20113
      }
20114
 
20115
      /**
20116
       * Find the _Fields constant that matches fieldId, or null if its not found.
20117
       */
20118
      public static _Fields findByThriftId(int fieldId) {
20119
        switch(fieldId) {
20120
          case 1: // DEST_PINCODE
20121
            return DEST_PINCODE;
20122
          case 2: // PRICE
20123
            return PRICE;
20124
          default:
20125
            return null;
20126
        }
20127
      }
20128
 
20129
      /**
20130
       * Find the _Fields constant that matches fieldId, throwing an exception
20131
       * if it is not found.
20132
       */
20133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20134
        _Fields fields = findByThriftId(fieldId);
20135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20136
        return fields;
20137
      }
20138
 
20139
      /**
20140
       * Find the _Fields constant that matches name, or null if its not found.
20141
       */
20142
      public static _Fields findByName(String name) {
20143
        return byName.get(name);
20144
      }
20145
 
20146
      private final short _thriftId;
20147
      private final String _fieldName;
20148
 
20149
      _Fields(short thriftId, String fieldName) {
20150
        _thriftId = thriftId;
20151
        _fieldName = fieldName;
20152
      }
20153
 
20154
      public short getThriftFieldId() {
20155
        return _thriftId;
20156
      }
20157
 
20158
      public String getFieldName() {
20159
        return _fieldName;
20160
      }
20161
    }
20162
 
20163
    // isset id assignments
20164
 
20165
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20166
    static {
20167
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20168
      tmpMap.put(_Fields.DEST_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destPincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20170
      tmpMap.put(_Fields.PRICE, new org.apache.thrift.meta_data.FieldMetaData("price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20171
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20172
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
20173
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20174
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_args.class, metaDataMap);
20175
    }
20176
 
20177
    public getLocationInfoMap_args() {
20178
    }
20179
 
20180
    public getLocationInfoMap_args(
20181
      String destPincode,
20182
      List<Long> price)
20183
    {
20184
      this();
20185
      this.destPincode = destPincode;
20186
      this.price = price;
20187
    }
20188
 
20189
    /**
20190
     * Performs a deep copy on <i>other</i>.
20191
     */
20192
    public getLocationInfoMap_args(getLocationInfoMap_args other) {
20193
      if (other.isSetDestPincode()) {
20194
        this.destPincode = other.destPincode;
20195
      }
20196
      if (other.isSetPrice()) {
20197
        List<Long> __this__price = new ArrayList<Long>();
20198
        for (Long other_element : other.price) {
20199
          __this__price.add(other_element);
20200
        }
20201
        this.price = __this__price;
20202
      }
20203
    }
20204
 
20205
    public getLocationInfoMap_args deepCopy() {
20206
      return new getLocationInfoMap_args(this);
20207
    }
20208
 
20209
    @Override
20210
    public void clear() {
20211
      this.destPincode = null;
20212
      this.price = null;
20213
    }
20214
 
20215
    public String getDestPincode() {
20216
      return this.destPincode;
20217
    }
20218
 
20219
    public void setDestPincode(String destPincode) {
20220
      this.destPincode = destPincode;
20221
    }
20222
 
20223
    public void unsetDestPincode() {
20224
      this.destPincode = null;
20225
    }
20226
 
20227
    /** Returns true if field destPincode is set (has been assigned a value) and false otherwise */
20228
    public boolean isSetDestPincode() {
20229
      return this.destPincode != null;
20230
    }
20231
 
20232
    public void setDestPincodeIsSet(boolean value) {
20233
      if (!value) {
20234
        this.destPincode = null;
20235
      }
20236
    }
20237
 
20238
    public int getPriceSize() {
20239
      return (this.price == null) ? 0 : this.price.size();
20240
    }
20241
 
20242
    public java.util.Iterator<Long> getPriceIterator() {
20243
      return (this.price == null) ? null : this.price.iterator();
20244
    }
20245
 
20246
    public void addToPrice(long elem) {
20247
      if (this.price == null) {
20248
        this.price = new ArrayList<Long>();
20249
      }
20250
      this.price.add(elem);
20251
    }
20252
 
20253
    public List<Long> getPrice() {
20254
      return this.price;
20255
    }
20256
 
20257
    public void setPrice(List<Long> price) {
20258
      this.price = price;
20259
    }
20260
 
20261
    public void unsetPrice() {
20262
      this.price = null;
20263
    }
20264
 
20265
    /** Returns true if field price is set (has been assigned a value) and false otherwise */
20266
    public boolean isSetPrice() {
20267
      return this.price != null;
20268
    }
20269
 
20270
    public void setPriceIsSet(boolean value) {
20271
      if (!value) {
20272
        this.price = null;
20273
      }
20274
    }
20275
 
20276
    public void setFieldValue(_Fields field, Object value) {
20277
      switch (field) {
20278
      case DEST_PINCODE:
20279
        if (value == null) {
20280
          unsetDestPincode();
20281
        } else {
20282
          setDestPincode((String)value);
20283
        }
20284
        break;
20285
 
20286
      case PRICE:
20287
        if (value == null) {
20288
          unsetPrice();
20289
        } else {
20290
          setPrice((List<Long>)value);
20291
        }
20292
        break;
20293
 
20294
      }
20295
    }
20296
 
20297
    public Object getFieldValue(_Fields field) {
20298
      switch (field) {
20299
      case DEST_PINCODE:
20300
        return getDestPincode();
20301
 
20302
      case PRICE:
20303
        return getPrice();
20304
 
20305
      }
20306
      throw new IllegalStateException();
20307
    }
20308
 
20309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20310
    public boolean isSet(_Fields field) {
20311
      if (field == null) {
20312
        throw new IllegalArgumentException();
20313
      }
20314
 
20315
      switch (field) {
20316
      case DEST_PINCODE:
20317
        return isSetDestPincode();
20318
      case PRICE:
20319
        return isSetPrice();
20320
      }
20321
      throw new IllegalStateException();
20322
    }
20323
 
20324
    @Override
20325
    public boolean equals(Object that) {
20326
      if (that == null)
20327
        return false;
20328
      if (that instanceof getLocationInfoMap_args)
20329
        return this.equals((getLocationInfoMap_args)that);
20330
      return false;
20331
    }
20332
 
20333
    public boolean equals(getLocationInfoMap_args that) {
20334
      if (that == null)
20335
        return false;
20336
 
20337
      boolean this_present_destPincode = true && this.isSetDestPincode();
20338
      boolean that_present_destPincode = true && that.isSetDestPincode();
20339
      if (this_present_destPincode || that_present_destPincode) {
20340
        if (!(this_present_destPincode && that_present_destPincode))
20341
          return false;
20342
        if (!this.destPincode.equals(that.destPincode))
20343
          return false;
20344
      }
20345
 
20346
      boolean this_present_price = true && this.isSetPrice();
20347
      boolean that_present_price = true && that.isSetPrice();
20348
      if (this_present_price || that_present_price) {
20349
        if (!(this_present_price && that_present_price))
20350
          return false;
20351
        if (!this.price.equals(that.price))
20352
          return false;
20353
      }
20354
 
20355
      return true;
20356
    }
20357
 
20358
    @Override
20359
    public int hashCode() {
20360
      return 0;
20361
    }
20362
 
20363
    public int compareTo(getLocationInfoMap_args other) {
20364
      if (!getClass().equals(other.getClass())) {
20365
        return getClass().getName().compareTo(other.getClass().getName());
20366
      }
20367
 
20368
      int lastComparison = 0;
20369
      getLocationInfoMap_args typedOther = (getLocationInfoMap_args)other;
20370
 
20371
      lastComparison = Boolean.valueOf(isSetDestPincode()).compareTo(typedOther.isSetDestPincode());
20372
      if (lastComparison != 0) {
20373
        return lastComparison;
20374
      }
20375
      if (isSetDestPincode()) {
20376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destPincode, typedOther.destPincode);
20377
        if (lastComparison != 0) {
20378
          return lastComparison;
20379
        }
20380
      }
20381
      lastComparison = Boolean.valueOf(isSetPrice()).compareTo(typedOther.isSetPrice());
20382
      if (lastComparison != 0) {
20383
        return lastComparison;
20384
      }
20385
      if (isSetPrice()) {
20386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.price, typedOther.price);
20387
        if (lastComparison != 0) {
20388
          return lastComparison;
20389
        }
20390
      }
20391
      return 0;
20392
    }
20393
 
20394
    public _Fields fieldForId(int fieldId) {
20395
      return _Fields.findByThriftId(fieldId);
20396
    }
20397
 
20398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20399
      org.apache.thrift.protocol.TField field;
20400
      iprot.readStructBegin();
20401
      while (true)
20402
      {
20403
        field = iprot.readFieldBegin();
20404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20405
          break;
20406
        }
20407
        switch (field.id) {
20408
          case 1: // DEST_PINCODE
20409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20410
              this.destPincode = iprot.readString();
20411
            } else { 
20412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20413
            }
20414
            break;
20415
          case 2: // PRICE
20416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20417
              {
20418
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20419
                this.price = new ArrayList<Long>(_list37.size);
20420
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20421
                {
20422
                  long _elem39; // required
20423
                  _elem39 = iprot.readI64();
20424
                  this.price.add(_elem39);
20425
                }
20426
                iprot.readListEnd();
20427
              }
20428
            } else { 
20429
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20430
            }
20431
            break;
20432
          default:
20433
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20434
        }
20435
        iprot.readFieldEnd();
20436
      }
20437
      iprot.readStructEnd();
20438
      validate();
20439
    }
20440
 
20441
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20442
      validate();
20443
 
20444
      oprot.writeStructBegin(STRUCT_DESC);
20445
      if (this.destPincode != null) {
20446
        oprot.writeFieldBegin(DEST_PINCODE_FIELD_DESC);
20447
        oprot.writeString(this.destPincode);
20448
        oprot.writeFieldEnd();
20449
      }
20450
      if (this.price != null) {
20451
        oprot.writeFieldBegin(PRICE_FIELD_DESC);
20452
        {
20453
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.price.size()));
20454
          for (long _iter40 : this.price)
20455
          {
20456
            oprot.writeI64(_iter40);
20457
          }
20458
          oprot.writeListEnd();
20459
        }
20460
        oprot.writeFieldEnd();
20461
      }
20462
      oprot.writeFieldStop();
20463
      oprot.writeStructEnd();
20464
    }
20465
 
20466
    @Override
20467
    public String toString() {
20468
      StringBuilder sb = new StringBuilder("getLocationInfoMap_args(");
20469
      boolean first = true;
20470
 
20471
      sb.append("destPincode:");
20472
      if (this.destPincode == null) {
20473
        sb.append("null");
20474
      } else {
20475
        sb.append(this.destPincode);
20476
      }
20477
      first = false;
20478
      if (!first) sb.append(", ");
20479
      sb.append("price:");
20480
      if (this.price == null) {
20481
        sb.append("null");
20482
      } else {
20483
        sb.append(this.price);
20484
      }
20485
      first = false;
20486
      sb.append(")");
20487
      return sb.toString();
20488
    }
20489
 
20490
    public void validate() throws org.apache.thrift.TException {
20491
      // check for required fields
20492
    }
20493
 
20494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20495
      try {
20496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20497
      } catch (org.apache.thrift.TException te) {
20498
        throw new java.io.IOException(te);
20499
      }
20500
    }
20501
 
20502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20503
      try {
20504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20505
      } catch (org.apache.thrift.TException te) {
20506
        throw new java.io.IOException(te);
20507
      }
20508
    }
20509
 
20510
  }
20511
 
20512
  public static class getLocationInfoMap_result implements org.apache.thrift.TBase<getLocationInfoMap_result, getLocationInfoMap_result._Fields>, java.io.Serializable, Cloneable   {
20513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLocationInfoMap_result");
20514
 
20515
    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);
20516
 
20517
    private Map<Long,Map<Long,LocationInfo>> success; // required
20518
 
20519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20521
      SUCCESS((short)0, "success");
20522
 
20523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20524
 
20525
      static {
20526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20527
          byName.put(field.getFieldName(), field);
20528
        }
20529
      }
20530
 
20531
      /**
20532
       * Find the _Fields constant that matches fieldId, or null if its not found.
20533
       */
20534
      public static _Fields findByThriftId(int fieldId) {
20535
        switch(fieldId) {
20536
          case 0: // SUCCESS
20537
            return SUCCESS;
20538
          default:
20539
            return null;
20540
        }
20541
      }
20542
 
20543
      /**
20544
       * Find the _Fields constant that matches fieldId, throwing an exception
20545
       * if it is not found.
20546
       */
20547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20548
        _Fields fields = findByThriftId(fieldId);
20549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20550
        return fields;
20551
      }
20552
 
20553
      /**
20554
       * Find the _Fields constant that matches name, or null if its not found.
20555
       */
20556
      public static _Fields findByName(String name) {
20557
        return byName.get(name);
20558
      }
20559
 
20560
      private final short _thriftId;
20561
      private final String _fieldName;
20562
 
20563
      _Fields(short thriftId, String fieldName) {
20564
        _thriftId = thriftId;
20565
        _fieldName = fieldName;
20566
      }
20567
 
20568
      public short getThriftFieldId() {
20569
        return _thriftId;
20570
      }
20571
 
20572
      public String getFieldName() {
20573
        return _fieldName;
20574
      }
20575
    }
20576
 
20577
    // isset id assignments
20578
 
20579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20580
    static {
20581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20583
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20584
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20585
              new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
20586
                  new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
20587
                  new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LocationInfo.class)))));
20588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLocationInfoMap_result.class, metaDataMap);
20590
    }
20591
 
20592
    public getLocationInfoMap_result() {
20593
    }
20594
 
20595
    public getLocationInfoMap_result(
20596
      Map<Long,Map<Long,LocationInfo>> success)
20597
    {
20598
      this();
20599
      this.success = success;
20600
    }
20601
 
20602
    /**
20603
     * Performs a deep copy on <i>other</i>.
20604
     */
20605
    public getLocationInfoMap_result(getLocationInfoMap_result other) {
20606
      if (other.isSetSuccess()) {
20607
        Map<Long,Map<Long,LocationInfo>> __this__success = new HashMap<Long,Map<Long,LocationInfo>>();
20608
        for (Map.Entry<Long, Map<Long,LocationInfo>> other_element : other.success.entrySet()) {
20609
 
20610
          Long other_element_key = other_element.getKey();
20611
          Map<Long,LocationInfo> other_element_value = other_element.getValue();
20612
 
20613
          Long __this__success_copy_key = other_element_key;
20614
 
20615
          Map<Long,LocationInfo> __this__success_copy_value = new HashMap<Long,LocationInfo>();
20616
          for (Map.Entry<Long, LocationInfo> other_element_value_element : other_element_value.entrySet()) {
20617
 
20618
            Long other_element_value_element_key = other_element_value_element.getKey();
20619
            LocationInfo other_element_value_element_value = other_element_value_element.getValue();
20620
 
20621
            Long __this__success_copy_value_copy_key = other_element_value_element_key;
20622
 
20623
            LocationInfo __this__success_copy_value_copy_value = new LocationInfo(other_element_value_element_value);
20624
 
20625
            __this__success_copy_value.put(__this__success_copy_value_copy_key, __this__success_copy_value_copy_value);
20626
          }
20627
 
20628
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
20629
        }
20630
        this.success = __this__success;
20631
      }
20632
    }
20633
 
20634
    public getLocationInfoMap_result deepCopy() {
20635
      return new getLocationInfoMap_result(this);
20636
    }
20637
 
20638
    @Override
20639
    public void clear() {
20640
      this.success = null;
20641
    }
20642
 
20643
    public int getSuccessSize() {
20644
      return (this.success == null) ? 0 : this.success.size();
20645
    }
20646
 
20647
    public void putToSuccess(long key, Map<Long,LocationInfo> val) {
20648
      if (this.success == null) {
20649
        this.success = new HashMap<Long,Map<Long,LocationInfo>>();
20650
      }
20651
      this.success.put(key, val);
20652
    }
20653
 
20654
    public Map<Long,Map<Long,LocationInfo>> getSuccess() {
20655
      return this.success;
20656
    }
20657
 
20658
    public void setSuccess(Map<Long,Map<Long,LocationInfo>> success) {
20659
      this.success = success;
20660
    }
20661
 
20662
    public void unsetSuccess() {
20663
      this.success = null;
20664
    }
20665
 
20666
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20667
    public boolean isSetSuccess() {
20668
      return this.success != null;
20669
    }
20670
 
20671
    public void setSuccessIsSet(boolean value) {
20672
      if (!value) {
20673
        this.success = null;
20674
      }
20675
    }
20676
 
20677
    public void setFieldValue(_Fields field, Object value) {
20678
      switch (field) {
20679
      case SUCCESS:
20680
        if (value == null) {
20681
          unsetSuccess();
20682
        } else {
20683
          setSuccess((Map<Long,Map<Long,LocationInfo>>)value);
20684
        }
20685
        break;
20686
 
20687
      }
20688
    }
20689
 
20690
    public Object getFieldValue(_Fields field) {
20691
      switch (field) {
20692
      case SUCCESS:
20693
        return getSuccess();
20694
 
20695
      }
20696
      throw new IllegalStateException();
20697
    }
20698
 
20699
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20700
    public boolean isSet(_Fields field) {
20701
      if (field == null) {
20702
        throw new IllegalArgumentException();
20703
      }
20704
 
20705
      switch (field) {
20706
      case SUCCESS:
20707
        return isSetSuccess();
20708
      }
20709
      throw new IllegalStateException();
20710
    }
20711
 
20712
    @Override
20713
    public boolean equals(Object that) {
20714
      if (that == null)
20715
        return false;
20716
      if (that instanceof getLocationInfoMap_result)
20717
        return this.equals((getLocationInfoMap_result)that);
20718
      return false;
20719
    }
20720
 
20721
    public boolean equals(getLocationInfoMap_result that) {
20722
      if (that == null)
20723
        return false;
20724
 
20725
      boolean this_present_success = true && this.isSetSuccess();
20726
      boolean that_present_success = true && that.isSetSuccess();
20727
      if (this_present_success || that_present_success) {
20728
        if (!(this_present_success && that_present_success))
20729
          return false;
20730
        if (!this.success.equals(that.success))
20731
          return false;
20732
      }
20733
 
20734
      return true;
20735
    }
20736
 
20737
    @Override
20738
    public int hashCode() {
20739
      return 0;
20740
    }
20741
 
20742
    public int compareTo(getLocationInfoMap_result other) {
20743
      if (!getClass().equals(other.getClass())) {
20744
        return getClass().getName().compareTo(other.getClass().getName());
20745
      }
20746
 
20747
      int lastComparison = 0;
20748
      getLocationInfoMap_result typedOther = (getLocationInfoMap_result)other;
20749
 
20750
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20751
      if (lastComparison != 0) {
20752
        return lastComparison;
20753
      }
20754
      if (isSetSuccess()) {
20755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20756
        if (lastComparison != 0) {
20757
          return lastComparison;
20758
        }
20759
      }
20760
      return 0;
20761
    }
20762
 
20763
    public _Fields fieldForId(int fieldId) {
20764
      return _Fields.findByThriftId(fieldId);
20765
    }
20766
 
20767
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20768
      org.apache.thrift.protocol.TField field;
20769
      iprot.readStructBegin();
20770
      while (true)
20771
      {
20772
        field = iprot.readFieldBegin();
20773
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20774
          break;
20775
        }
20776
        switch (field.id) {
20777
          case 0: // SUCCESS
20778
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
20779
              {
20780
                org.apache.thrift.protocol.TMap _map41 = iprot.readMapBegin();
20781
                this.success = new HashMap<Long,Map<Long,LocationInfo>>(2*_map41.size);
20782
                for (int _i42 = 0; _i42 < _map41.size; ++_i42)
20783
                {
20784
                  long _key43; // required
20785
                  Map<Long,LocationInfo> _val44; // required
20786
                  _key43 = iprot.readI64();
20787
                  {
20788
                    org.apache.thrift.protocol.TMap _map45 = iprot.readMapBegin();
20789
                    _val44 = new HashMap<Long,LocationInfo>(2*_map45.size);
20790
                    for (int _i46 = 0; _i46 < _map45.size; ++_i46)
20791
                    {
20792
                      long _key47; // required
20793
                      LocationInfo _val48; // required
20794
                      _key47 = iprot.readI64();
20795
                      _val48 = new LocationInfo();
20796
                      _val48.read(iprot);
20797
                      _val44.put(_key47, _val48);
20798
                    }
20799
                    iprot.readMapEnd();
20800
                  }
20801
                  this.success.put(_key43, _val44);
20802
                }
20803
                iprot.readMapEnd();
20804
              }
20805
            } else { 
20806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20807
            }
20808
            break;
20809
          default:
20810
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20811
        }
20812
        iprot.readFieldEnd();
20813
      }
20814
      iprot.readStructEnd();
20815
      validate();
20816
    }
20817
 
20818
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20819
      oprot.writeStructBegin(STRUCT_DESC);
20820
 
20821
      if (this.isSetSuccess()) {
20822
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20823
        {
20824
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, this.success.size()));
20825
          for (Map.Entry<Long, Map<Long,LocationInfo>> _iter49 : this.success.entrySet())
20826
          {
20827
            oprot.writeI64(_iter49.getKey());
20828
            {
20829
              oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, _iter49.getValue().size()));
20830
              for (Map.Entry<Long, LocationInfo> _iter50 : _iter49.getValue().entrySet())
20831
              {
20832
                oprot.writeI64(_iter50.getKey());
20833
                _iter50.getValue().write(oprot);
20834
              }
20835
              oprot.writeMapEnd();
20836
            }
20837
          }
20838
          oprot.writeMapEnd();
20839
        }
20840
        oprot.writeFieldEnd();
20841
      }
20842
      oprot.writeFieldStop();
20843
      oprot.writeStructEnd();
20844
    }
20845
 
20846
    @Override
20847
    public String toString() {
20848
      StringBuilder sb = new StringBuilder("getLocationInfoMap_result(");
20849
      boolean first = true;
20850
 
20851
      sb.append("success:");
20852
      if (this.success == null) {
20853
        sb.append("null");
20854
      } else {
20855
        sb.append(this.success);
20856
      }
20857
      first = false;
20858
      sb.append(")");
20859
      return sb.toString();
20860
    }
20861
 
20862
    public void validate() throws org.apache.thrift.TException {
20863
      // check for required fields
20864
    }
20865
 
20866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20867
      try {
20868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20869
      } catch (org.apache.thrift.TException te) {
20870
        throw new java.io.IOException(te);
20871
      }
20872
    }
20873
 
20874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20875
      try {
20876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20877
      } catch (org.apache.thrift.TException te) {
20878
        throw new java.io.IOException(te);
20879
      }
20880
    }
20881
 
20882
  }
20883
 
412 ashish 20884
}